From e37dedb0326f3d890b2f5fad1a423244d5007ed8 Mon Sep 17 00:00:00 2001 From: Jason Callender Date: Tue, 28 May 2024 15:25:05 -0400 Subject: [PATCH 1/2] PDIP-120 Add IAM segment found in A60, and ignore --- hl7v2_default.json | 1 + hl7v2_default_test.json | 1 + 2 files changed, 2 insertions(+) diff --git a/hl7v2_default.json b/hl7v2_default.json index d48555d..cee1d97 100644 --- a/hl7v2_default.json +++ b/hl7v2_default.json @@ -99,6 +99,7 @@ }, {"name": "ZOE","min": 0, "max": -1}, {"name": "PV2","min": 0, "max": -1}, + {"name": "IAM","min": 0, "max": -1}, {"name": "PD1","min": 0, "max": -1}, {"name": "NK1","min": 0, "max": -1}, {"name": "ZPV","min": 0, "max": -1}, diff --git a/hl7v2_default_test.json b/hl7v2_default_test.json index d48555d..cee1d97 100644 --- a/hl7v2_default_test.json +++ b/hl7v2_default_test.json @@ -99,6 +99,7 @@ }, {"name": "ZOE","min": 0, "max": -1}, {"name": "PV2","min": 0, "max": -1}, + {"name": "IAM","min": 0, "max": -1}, {"name": "PD1","min": 0, "max": -1}, {"name": "NK1","min": 0, "max": -1}, {"name": "ZPV","min": 0, "max": -1}, From 86ff6a585d9f302c54a4b48f9fad19a5eb65983d Mon Sep 17 00:00:00 2001 From: Anil Date: Wed, 29 May 2024 10:45:30 -0400 Subject: [PATCH 2/2] SMILECDR-917-Add-automated-test-for-iam-missing-seg --- .env.example | 4 ---- tests/regression/regression_test_data/MissingSegments/IAM.txt | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 .env.example create mode 100644 tests/regression/regression_test_data/MissingSegments/IAM.txt diff --git a/.env.example b/.env.example deleted file mode 100644 index 6e2c664..0000000 --- a/.env.example +++ /dev/null @@ -1,4 +0,0 @@ -CLIENT_ID="" -CLIENT_SECRET="" -ROOT_URL="https://cdr-dev.mednax.azure.smilecdr.com" -UNIVERSAL_ETL_PARSER_URL="https://universal-etl-parser.mdnxdev.com/" \ No newline at end of file diff --git a/tests/regression/regression_test_data/MissingSegments/IAM.txt b/tests/regression/regression_test_data/MissingSegments/IAM.txt new file mode 100644 index 0000000..868dd87 --- /dev/null +++ b/tests/regression/regression_test_data/MissingSegments/IAM.txt @@ -0,0 +1 @@ +MSH|^~\\&|MS4_NY|BAOM|PDX|437|20230907070903||ADT^A08|00000000300746007|P|2.3\rEVN|A08|20230907070902|||TUSER1\rPID|1|H1234^^^MS4^PN|MR4567^^^MS4^MR^437||WICK^JOHN||19960513|Male||2106-3|123 MAIN ST^^ANYTOWN^NY^11210^USA^^NYC|NYC|(555)888-1234||en|Single|OTH|31184017||||U|NY|||USA\rZPD||||ACTIVATED|||Y|20240507||||||||||N\rZTP|Health Maintenance Reminders^Health Maintenance Reminders|MYCH^Y\rZTP|Bulk Communication^Bulk Communication|MYCH^Y~Mail^Y\rZTP|Communication Management^Communication Management|MYCH^Y\rZTP|New Estimate^New Estimate|Email^Y~Push^Y~Text^Y\rPD1||||128303^BAUER^JANE^A|||N|||||N\rARV|1|S|CELEBCONFIDENTIAL||Patient is a widely known celebrity. Restrict communication of parties involved.\rPV1||E||1|||116596^KAPUR^SIMRAN^S^^^MD|128303^BAUER^JANE^A||EER||||1||||E|00031184017437|2115|||||||||||||||||||BAOM|||||202309070619\rIAM|1|DRUG INGREDI|4615^SERTRALINE^HIC||OTHER|A|12345678||||20230907||20230907|119444^BLUE^JIM||||119444^BLUE^JIM||20230907\r \ No newline at end of file