diff --git a/hl7v2_default.json b/hl7v2_default.json index 773dd61..d48555d 100644 --- a/hl7v2_default.json +++ b/hl7v2_default.json @@ -67,6 +67,7 @@ {"name": "LAN","min": 0, "max": -1}, {"name": "ZPD","min": 0, "max": -1}, {"name": "PD1","min": 0, "max": -1}, + {"name": "ARV","min": 0, "max": -1}, {"name": "ZOE","min": 0, "max": -1}, {"name": "NTE","min": 0, "max": -1}, {"name": "ZPI","min": 0, "max": -1}, @@ -99,6 +100,7 @@ {"name": "ZOE","min": 0, "max": -1}, {"name": "PV2","min": 0, "max": -1}, {"name": "PD1","min": 0, "max": -1}, + {"name": "NK1","min": 0, "max": -1}, {"name": "ZPV","min": 0, "max": -1}, {"name": "ZVI","min": 0, "max": -1}, {"name": "ZIF","min": 0, "max": -1}, @@ -111,6 +113,7 @@ {"name": "allergy", "type":"segment_group","min": 0, "max": -1, "child_segments": [ {"name": "AL1","min": 0,"max": -1}, + {"name": "DG1","min": 0, "max": -1}, {"name": "ZAL","min": 0,"max": -1}, {"name": "NTE","min": 0, "max": -1} ] @@ -223,6 +226,7 @@ }, {"name": "DG1","min": 0, "max": -1}, {"name": "AL1","min": 0, "max": -1}, + {"name": "DG1","min": 0, "max": -1}, {"name": "PR1","min": 0, "max": -1}, {"name": "ACC","min": 0, "max": -1}, {"name": "UB1","min": 0, "max": -1}, @@ -234,16 +238,20 @@ {"name": "ZIN","min": 0, "max": -1}, {"name": "ZIM","min": 0, "max": -1}, {"name": "ZCN","min": 0, "max": -1}, - {"name": "ZCS","min": 0, "max": -1}, {"name": "ZM1","min": 0, "max": -1}, {"name": "ZPV","min": 0, "max": -1}, {"name": "ZEX","min": 0, "max": -1}, {"name": "ZRE","min": 0, "max": -1}, + {"name": "ZAC","min": 0, "max": -1}, {"name": "ZQA","min": 0, "max": -1}, + {"name": "ZCS","min": 0, "max": -1}, + {"name": "ZSU","min": 0, "max": -1}, {"name": "ZMP","min": 0, "max": -1}, {"name": "ZEM","min": 0, "max": -1}, {"name": "ZAD","min": 0, "max": -1}, + {"name": "ZNM","min": 0, "max": -1}, {"name": "ZVQ","min": 0, "max": -1}, + {"name": "ZMS","min": 0, "max": -1}, {"name": "ZMD","min": 0, "max": -1}, {"name": "ZET","min": 0, "max": -1}, {"name": "ZCQ","min": 0, "max": -1}, @@ -846,14 +854,15 @@ "relatedperson_guarantor_resource": { "object": { "fullUrl": { - "custom_func":{ - "name": "concat", - "args": [ - {"const": "urn:uuid:61ebe121-aa05-0001-000"}, - {"xpath": "GT1/set_id"}, - {"const": "-983a382abcd7"} - ] - } + "custom_func":{ + "name": "javascript", + "args": [ + {"const": "prefix + index.toString() + suffix"}, + {"const": "prefix"}, {"const": "urn:uuid:61ebe121-aa05-0001-000"}, + {"const": "index"}, {"xpath": "GT1/set_id", "template": "transform_guarantor_set_id"}, + {"const": "suffix"}, {"const": "-983a382abcd7"} + ] + } }, "resource": { "object": { diff --git a/hl7v2_default_test.json b/hl7v2_default_test.json index 773dd61..d48555d 100644 --- a/hl7v2_default_test.json +++ b/hl7v2_default_test.json @@ -67,6 +67,7 @@ {"name": "LAN","min": 0, "max": -1}, {"name": "ZPD","min": 0, "max": -1}, {"name": "PD1","min": 0, "max": -1}, + {"name": "ARV","min": 0, "max": -1}, {"name": "ZOE","min": 0, "max": -1}, {"name": "NTE","min": 0, "max": -1}, {"name": "ZPI","min": 0, "max": -1}, @@ -99,6 +100,7 @@ {"name": "ZOE","min": 0, "max": -1}, {"name": "PV2","min": 0, "max": -1}, {"name": "PD1","min": 0, "max": -1}, + {"name": "NK1","min": 0, "max": -1}, {"name": "ZPV","min": 0, "max": -1}, {"name": "ZVI","min": 0, "max": -1}, {"name": "ZIF","min": 0, "max": -1}, @@ -111,6 +113,7 @@ {"name": "allergy", "type":"segment_group","min": 0, "max": -1, "child_segments": [ {"name": "AL1","min": 0,"max": -1}, + {"name": "DG1","min": 0, "max": -1}, {"name": "ZAL","min": 0,"max": -1}, {"name": "NTE","min": 0, "max": -1} ] @@ -223,6 +226,7 @@ }, {"name": "DG1","min": 0, "max": -1}, {"name": "AL1","min": 0, "max": -1}, + {"name": "DG1","min": 0, "max": -1}, {"name": "PR1","min": 0, "max": -1}, {"name": "ACC","min": 0, "max": -1}, {"name": "UB1","min": 0, "max": -1}, @@ -234,16 +238,20 @@ {"name": "ZIN","min": 0, "max": -1}, {"name": "ZIM","min": 0, "max": -1}, {"name": "ZCN","min": 0, "max": -1}, - {"name": "ZCS","min": 0, "max": -1}, {"name": "ZM1","min": 0, "max": -1}, {"name": "ZPV","min": 0, "max": -1}, {"name": "ZEX","min": 0, "max": -1}, {"name": "ZRE","min": 0, "max": -1}, + {"name": "ZAC","min": 0, "max": -1}, {"name": "ZQA","min": 0, "max": -1}, + {"name": "ZCS","min": 0, "max": -1}, + {"name": "ZSU","min": 0, "max": -1}, {"name": "ZMP","min": 0, "max": -1}, {"name": "ZEM","min": 0, "max": -1}, {"name": "ZAD","min": 0, "max": -1}, + {"name": "ZNM","min": 0, "max": -1}, {"name": "ZVQ","min": 0, "max": -1}, + {"name": "ZMS","min": 0, "max": -1}, {"name": "ZMD","min": 0, "max": -1}, {"name": "ZET","min": 0, "max": -1}, {"name": "ZCQ","min": 0, "max": -1}, @@ -846,14 +854,15 @@ "relatedperson_guarantor_resource": { "object": { "fullUrl": { - "custom_func":{ - "name": "concat", - "args": [ - {"const": "urn:uuid:61ebe121-aa05-0001-000"}, - {"xpath": "GT1/set_id"}, - {"const": "-983a382abcd7"} - ] - } + "custom_func":{ + "name": "javascript", + "args": [ + {"const": "prefix + index.toString() + suffix"}, + {"const": "prefix"}, {"const": "urn:uuid:61ebe121-aa05-0001-000"}, + {"const": "index"}, {"xpath": "GT1/set_id", "template": "transform_guarantor_set_id"}, + {"const": "suffix"}, {"const": "-983a382abcd7"} + ] + } }, "resource": { "object": { diff --git a/src/omniparser_schemas/parser/main.py b/src/omniparser_schemas/parser/main.py index d074923..323a0ea 100644 --- a/src/omniparser_schemas/parser/main.py +++ b/src/omniparser_schemas/parser/main.py @@ -11,10 +11,10 @@ def validate_ETL_parser(resource, file): # The universal parser need to have carriage return hl7content = hl7content.replace('\\r', '\r') - # call universal utl parser + # call universal etl parser fhir_bundle_from_hl7 = fetch_parsed_text(hl7content) - # Remove first and last character of fhir bundle + # Remove first and last character of fhir bundle fhir_bundle = fhir_bundle_from_hl7[1:-1] json_data = json.loads(fhir_bundle) @@ -26,5 +26,3 @@ def validate_ETL_parser(resource, file): with open(PATH + "/regression_" + str(resource) + "_" + str(file) + ".json", "w") as f: json.dump(json_data, f) - - diff --git a/src/omniparser_schemas/parser/universal_etl_parser.py b/src/omniparser_schemas/parser/universal_etl_parser.py index db76a57..d155702 100644 --- a/src/omniparser_schemas/parser/universal_etl_parser.py +++ b/src/omniparser_schemas/parser/universal_etl_parser.py @@ -23,7 +23,7 @@ def fetch_parsed_text(text_to_parse): if http_response.status_code != HTTPStatus.OK: error_message = http_response.status_code - print(error_message) + print("Error code:",error_message, http_response.text) exit(1) return http_response.text diff --git a/tests/regression/main.py b/tests/regression/main.py index 89c89d2..d1420b3 100644 --- a/tests/regression/main.py +++ b/tests/regression/main.py @@ -22,6 +22,7 @@ from tests.regression.claim_1_resource import claim_1_test from tests.regression.claim_2_resource import claim_2_test from tests.regression.claim_3_resource import claim_3_test +from tests.regression.missing_segment import missing_segment_test def run_tests(): @@ -72,6 +73,8 @@ def run_tests(): relatedperson_insurance_3_test(RESOURCE_NAME[7], "3", IDENTIFIER_URL, IDENTIFIER_ID[4]) relatedperson_insurance_3_test(RESOURCE_NAME[7], "4", IDENTIFIER_URL, IDENTIFIER_ID[4]) + missing_segment_test() + def cli(args=None): """Process command line arguments.""" if not args: diff --git a/tests/regression/missing_segment.py b/tests/regression/missing_segment.py new file mode 100644 index 0000000..7d9db31 --- /dev/null +++ b/tests/regression/missing_segment.py @@ -0,0 +1,39 @@ +import os +import importlib +import json +from omniparser_schemas.parser.universal_etl_parser import fetch_parsed_text + + + +def missing_segment_test(): + + # Get the segments to be tested + segments = "MissingSegments" + + missing_segment_test_data_dir = f"tests/regression/regression_test_data/{segments}" + + filenames = os.listdir(missing_segment_test_data_dir) + + for filename in filenames: + with importlib.resources.path("tests.regression.regression_test_data." + str(segments), str(filename)) as f: + hl7content = f.read_text() + + # The universal parser need to have carriage return + hl7content = hl7content.replace('\\r', '\r') + + # call universal etl parser + fhir_bundle_from_hl7=fetch_parsed_text(hl7content) + fhir_bundle = fhir_bundle_from_hl7[1:-1] + + json_data = json.loads(fhir_bundle) + + OUTPUT_ROOT_PATH = "tests/regression/regression_output/" + PATH = OUTPUT_ROOT_PATH + str(segments) + if not os.path.exists(PATH): + os.makedirs(PATH) + + with open(PATH + "/regression_" + str(segments) + "_" + str(filename) + ".json", "w") as f: + json.dump(json_data, f) + + + print("FHIR bundle with missing segments tests were successful") \ No newline at end of file diff --git a/tests/regression/practitioner_attending_resource.py b/tests/regression/practitioner_attending_resource.py index 5b5372c..f92385d 100644 --- a/tests/regression/practitioner_attending_resource.py +++ b/tests/regression/practitioner_attending_resource.py @@ -67,4 +67,4 @@ def practitioner_attending_test(resource_name, testfile, identifier_url, identif assert not attphys[0]["resource"]["name"][0]["given"][0] == PRACTITIONER_FAMILY_NAME, "negative test case failed" -print("FHIR bundle attending practitioner resource tests were successful") \ No newline at end of file + print("FHIR bundle attending practitioner resource tests were successful") \ No newline at end of file diff --git a/tests/regression/practitioner_referring_resource.py b/tests/regression/practitioner_referring_resource.py index d0d279c..0fdf6c3 100644 --- a/tests/regression/practitioner_referring_resource.py +++ b/tests/regression/practitioner_referring_resource.py @@ -67,4 +67,4 @@ def practitioner_referring_test(resource_name, testfile, identifier_url, identif assert not refphys[1]["resource"]["name"][0]["given"][0] == PRACTITIONER_FAMILY_NAME, "negative test case failed" -print("FHIR bundle referring practitioner resource tests were successful") \ No newline at end of file + print("FHIR bundle referring practitioner resource tests were successful") \ No newline at end of file diff --git a/tests/regression/regression_test_data/MissingSegments/AL1DG1.txt b/tests/regression/regression_test_data/MissingSegments/AL1DG1.txt new file mode 100644 index 0000000..343a29a --- /dev/null +++ b/tests/regression/regression_test_data/MissingSegments/AL1DG1.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\rPV1||E||1|||116596^KAPUR^SIMRAN^S^^^MD|128303^BAUER^JANE^A||EER||||1||||E|00031184017437|2115|||||||||||||||||||BAOM|||||202309070619\rDG1|0001|I10||POV CP DIFF BREATHING||A|||||||||0\rOBX|0001|NM|PRICSN|1|735464236||||||M|||||||||||||||||||||\rOBX|0002|NM|HT^HEIGHT||51.5|cm||||||||20230745145100||||||||||||||||||\rOBX|0003|NM|WT^WEIGHT||2.872|kg||||||||20230752000000||||||||||||||||||\rOBX|0004|TX|ContactType^CONTACT TYPE|1|3|||||||||20240508||||||||||||||||||\rGT1|0001|00H1234^^^MS4^PN|WICK^JOHN||123 MAIN ST^^ANYTOWN^NY^11210^USA^^NYC|(555)888-1234||19960513|M||A|||||DISABLED||||2|||||||||0000000002|S||||||||Y|||YYY||||||||||||||C\rIN1|0001|INS123456|2115|MERCY CARE RBHA|PO BOX 64835^^PHOENIX^NY^85082||(866)796-5598||||||||MCD|WICK^JOHN|A|19960513|123 MAIN ST^^ANYTOWN^NY^11210^USA|||1|||||N|||||||||INS123456||||||3|M||N||||00H1234\rIN1|0002|INS222456|0094|PENDING MEDICAID IHMS|^^^^ |||999999|PENDING||||||COM|WICK^JOHN|A|19960513|123 MAIN ST^^ANYTOWN^NY^11210^USA|||2|||||N|||||||||INS222456||||||3|M||N||||00H1234\rAL1|1|SYSTEMIC|^NO KNOWN ALLERGIES^\rDG1|1||^Newborn|Newborn||^W\rUB1||||||||||||||||23^20230907\rZAC|EXPLOSIVE EXPLODED IN PT FACE\rZQA|1|589723|^589724~^589725~^589726~^589727~^589728~^589729~^589730~^589731~^589732~^589733~^589734~^589735~^589736~^589737~^589738~^589739~^589740~^589741~^589742~^589743~^589744~^589745~^589746~^589747~^589748~^589749~^589750~^589751~^589752~^589753~^589754~^589755~^589756~^589757~^589758~^589759~^589760~^589761~^589762\rZCS||^^^^||||00005\rZSU|A44\r \ No newline at end of file diff --git a/tests/regression/regression_test_data/MissingSegments/ARV.txt b/tests/regression/regression_test_data/MissingSegments/ARV.txt new file mode 100644 index 0000000..7b2d331 --- /dev/null +++ b/tests/regression/regression_test_data/MissingSegments/ARV.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\rDG1|0001|I10||POV CP DIFF BREATHING||A|||||||||0\rOBX|0001|NM|PRICSN|1|735464236||||||M|||||||||||||||||||||\rOBX|0002|NM|HT^HEIGHT||51.5|cm||||||||20230745145100||||||||||||||||||\rOBX|0003|NM|WT^WEIGHT||2.872|kg||||||||20230752000000||||||||||||||||||\rOBX|0004|TX|ContactType^CONTACT TYPE|1|3|||||||||20240508||||||||||||||||||\rGT1|0001|00H1234^^^MS4^PN|WICK^JOHN||123 MAIN ST^^ANYTOWN^NY^11210^USA^^NYC|(555)888-1234||19960513|M||A|||||DISABLED||||2|||||||||0000000002|S||||||||Y|||YYY||||||||||||||C\rIN1|0001|INS123456|2115|MERCY CARE RBHA|PO BOX 64835^^PHOENIX^NY^85082||(866)796-5598||||||||MCD|WICK^JOHN|A|19960513|123 MAIN ST^^ANYTOWN^NY^11210^USA|||1|||||N|||||||||INS123456||||||3|M||N||||00H1234\rIN1|0002|INS222456|0094|PENDING MEDICAID IHMS|^^^^ |||999999|PENDING||||||COM|WICK^JOHN|A|19960513|123 MAIN ST^^ANYTOWN^NY^11210^USA|||2|||||N|||||||||INS222456||||||3|M||N||||00H1234\rAL1|1|SYSTEMIC|^NO KNOWN ALLERGIES^\rDG1|1||^Newborn|Newborn||^W\rUB1||||||||||||||||23^20230907\rZAC|EXPLOSIVE EXPLODED IN PT FACE\rZQA|1|589723|^589724~^589725~^589726~^589727~^589728~^589729~^589730~^589731~^589732~^589733~^589734~^589735~^589736~^589737~^589738~^589739~^589740~^589741~^589742~^589743~^589744~^589745~^589746~^589747~^589748~^589749~^589750~^589751~^589752~^589753~^589754~^589755~^589756~^589757~^589758~^589759~^589760~^589761~^589762\rZCS||^^^^||||00005\rZSU|A44\r \ No newline at end of file diff --git a/tests/regression/regression_test_data/MissingSegments/NK1.txt b/tests/regression/regression_test_data/MissingSegments/NK1.txt new file mode 100644 index 0000000..bf0254c --- /dev/null +++ b/tests/regression/regression_test_data/MissingSegments/NK1.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\rNK1|1|ARES^ARES^^|F|MANOVER STREET^BLOCK 23 2077^NEW YORK^NY^10001^US|(555)111-2222^^PH^^^555^1112222||Emergency Contact 1\rNK1|2|ARES^ARES^^|F|MANOVER STREET^BLOCK 23 2077^NEW YORK^NY^10001^US|(555)111-2222^^PH^^^555^1112222||Partner\rPV1||E||1|||116596^KAPUR^SIMRAN^S^^^MD|128303^BAUER^JANE^A||EER||||1||||E|00031184017437|2115|||||||||||||||||||BAOM|||||202309070619\rDG1|0001|I10||POV CP DIFF BREATHING||A|||||||||0\rOBX|0001|NM|PRICSN|1|735464236||||||M|||||||||||||||||||||\rOBX|0002|NM|HT^HEIGHT||51.5|cm||||||||20230745145100||||||||||||||||||\rOBX|0003|NM|WT^WEIGHT||2.872|kg||||||||20230752000000||||||||||||||||||\rOBX|0004|TX|ContactType^CONTACT TYPE|1|3|||||||||20240508||||||||||||||||||\rGT1|0001|00H1234^^^MS4^PN|WICK^JOHN||123 MAIN ST^^ANYTOWN^NY^11210^USA^^NYC|(555)888-1234||19960513|M||A|||||DISABLED||||2|||||||||0000000002|S||||||||Y|||YYY||||||||||||||C\rIN1|0001|INS123456|2115|MERCY CARE RBHA|PO BOX 64835^^PHOENIX^NY^85082||(866)796-5598||||||||MCD|WICK^JOHN|A|19960513|123 MAIN ST^^ANYTOWN^NY^11210^USA|||1|||||N|||||||||INS123456||||||3|M||N||||00H1234\rIN1|0002|INS222456|0094|PENDING MEDICAID IHMS|^^^^ |||999999|PENDING||||||COM|WICK^JOHN|A|19960513|123 MAIN ST^^ANYTOWN^NY^11210^USA|||2|||||N|||||||||INS222456||||||3|M||N||||00H1234\rAL1|1|SYSTEMIC|^NO KNOWN ALLERGIES^\rDG1|1||^Newborn|Newborn||^W\rUB1||||||||||||||||23^20230907\rZAC|EXPLOSIVE EXPLODED IN PT FACE\rZQA|1|589723|^589724~^589725~^589726~^589727~^589728~^589729~^589730~^589731~^589732~^589733~^589734~^589735~^589736~^589737~^589738~^589739~^589740~^589741~^589742~^589743~^589744~^589745~^589746~^589747~^589748~^589749~^589750~^589751~^589752~^589753~^589754~^589755~^589756~^589757~^589758~^589759~^589760~^589761~^589762\rZCS||^^^^||||00005\rZSU|A44\r \ No newline at end of file diff --git a/tests/regression/regression_test_data/MissingSegments/ZAC.txt b/tests/regression/regression_test_data/MissingSegments/ZAC.txt new file mode 100644 index 0000000..d7c664a --- /dev/null +++ b/tests/regression/regression_test_data/MissingSegments/ZAC.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\rPV1||E||1|||116596^KAPUR^SIMRAN^S^^^MD|128303^BAUER^JANE^A||EER||||1||||E|00031184017437|2115|||||||||||||||||||BAOM|||||202309070619\rDG1|1|I10||POV CP DIFF BREATHING||A|||||||||0\rOBX|1|NM|PRICSN|1|735464236||||||M|||||||||||||||||||||\rOBX|2|NM|HT^HEIGHT||51.5|cm||||||||20230745145100||||||||||||||||||\rOBX|3|NM|WT^WEIGHT||2.872|kg||||||||20230752000000||||||||||||||||||\rOBX|4|TX|ContactType^CONTACT TYPE|1|3|||||||||20240508||||||||||||||||||\rGT1|1|00H1234^^^MS4^PN|WICK^JOHN||123 MAIN ST^^ANYTOWN^NY^11210^USA^^NYC|(555)888-1234||19960513|M||A|||||DISABLED||||2|||||||||0000000002|S||||||||Y|||YYY||||||||||||||C\rIN1|1|INS123456|2115|MERCY CARE RBHA|PO BOX 64835^^PHOENIX^NY^85082||(866)796-5598||||||||MCD|WICK^JOHN|A|19960513|123 MAIN ST^^ANYTOWN^NY^11210^USA|||1|||||N|||||||||INS123456||||||3|M||N||||00H1234\rIN1|2|INS222456|0094|PENDING MEDICAID IHMS|^^^^ |||999999|PENDING||||||COM|WICK^JOHN|A|19960513|123 MAIN ST^^ANYTOWN^NY^11210^USA|||2|||||N|||||||||INS222456||||||3|M||N||||00H1234\rUB1||||||||||||||||23^20230907\rZAC|EXPLOSIVE EXPLODED IN PT FACE\rZQA|1|589723|^589724~^589725~^589726~^589727~^589728~^589729~^589730~^589731~^589732~^589733~^589734~^589735~^589736~^589737~^589738~^589739~^589740~^589741~^589742~^589743~^589744~^589745~^589746~^589747~^589748~^589749~^589750~^589751~^589752~^589753~^589754~^589755~^589756~^589757~^589758~^589759~^589760~^589761~^589762\r diff --git a/tests/regression/regression_test_data/MissingSegments/ZCS.txt b/tests/regression/regression_test_data/MissingSegments/ZCS.txt new file mode 100644 index 0000000..7b2d331 --- /dev/null +++ b/tests/regression/regression_test_data/MissingSegments/ZCS.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\rDG1|0001|I10||POV CP DIFF BREATHING||A|||||||||0\rOBX|0001|NM|PRICSN|1|735464236||||||M|||||||||||||||||||||\rOBX|0002|NM|HT^HEIGHT||51.5|cm||||||||20230745145100||||||||||||||||||\rOBX|0003|NM|WT^WEIGHT||2.872|kg||||||||20230752000000||||||||||||||||||\rOBX|0004|TX|ContactType^CONTACT TYPE|1|3|||||||||20240508||||||||||||||||||\rGT1|0001|00H1234^^^MS4^PN|WICK^JOHN||123 MAIN ST^^ANYTOWN^NY^11210^USA^^NYC|(555)888-1234||19960513|M||A|||||DISABLED||||2|||||||||0000000002|S||||||||Y|||YYY||||||||||||||C\rIN1|0001|INS123456|2115|MERCY CARE RBHA|PO BOX 64835^^PHOENIX^NY^85082||(866)796-5598||||||||MCD|WICK^JOHN|A|19960513|123 MAIN ST^^ANYTOWN^NY^11210^USA|||1|||||N|||||||||INS123456||||||3|M||N||||00H1234\rIN1|0002|INS222456|0094|PENDING MEDICAID IHMS|^^^^ |||999999|PENDING||||||COM|WICK^JOHN|A|19960513|123 MAIN ST^^ANYTOWN^NY^11210^USA|||2|||||N|||||||||INS222456||||||3|M||N||||00H1234\rAL1|1|SYSTEMIC|^NO KNOWN ALLERGIES^\rDG1|1||^Newborn|Newborn||^W\rUB1||||||||||||||||23^20230907\rZAC|EXPLOSIVE EXPLODED IN PT FACE\rZQA|1|589723|^589724~^589725~^589726~^589727~^589728~^589729~^589730~^589731~^589732~^589733~^589734~^589735~^589736~^589737~^589738~^589739~^589740~^589741~^589742~^589743~^589744~^589745~^589746~^589747~^589748~^589749~^589750~^589751~^589752~^589753~^589754~^589755~^589756~^589757~^589758~^589759~^589760~^589761~^589762\rZCS||^^^^||||00005\rZSU|A44\r \ No newline at end of file diff --git a/tests/regression/regression_test_data/MissingSegments/ZMS.txt b/tests/regression/regression_test_data/MissingSegments/ZMS.txt new file mode 100644 index 0000000..55d6759 --- /dev/null +++ b/tests/regression/regression_test_data/MissingSegments/ZMS.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\rPV1||E||1|||116596^KAPUR^SIMRAN^S^^^MD|128303^BAUER^JANE^A||EER||||1||||E|00031184017437|2115|||||||||||||||||||BAOM|||||202309070619\rDG1|0001|I10||POV CP DIFF BREATHING||A|||||||||0\rOBX|0001|NM|PRICSN|1|735464236||||||M|||||||||||||||||||||\rOBX|0002|NM|HT^HEIGHT||51.5|cm||||||||20230745145100||||||||||||||||||\rOBX|0003|NM|WT^WEIGHT||2.872|kg||||||||20230752000000||||||||||||||||||\rOBX|0004|TX|ContactType^CONTACT TYPE|1|3|||||||||20240508||||||||||||||||||\rGT1|0001|00H1234^^^MS4^PN|WICK^JOHN||123 MAIN ST^^ANYTOWN^NY^11210^USA^^NYC|(555)888-1234||19960513|M||A|||||DISABLED||||2|||||||||0000000002|S||||||||Y|||YYY||||||||||||||C\rIN1|0001|INS123456|2115|MERCY CARE RBHA|PO BOX 64835^^PHOENIX^NY^85082||(866)796-5598||||||||MCD|WICK^JOHN|A|19960513|123 MAIN ST^^ANYTOWN^NY^11210^USA|||1|||||N|||||||||INS123456||||||3|M||N||||00H1234\rIN1|0002|INS222456|0094|PENDING MEDICAID IHMS|^^^^ |||999999|PENDING||||||COM|WICK^JOHN|A|19960513|123 MAIN ST^^ANYTOWN^NY^11210^USA|||2|||||N|||||||||INS222456||||||3|M||N||||00H1234\rUB1||||||||||||||||23^20230907\rZAC|EXPLOSIVE EXPLODED IN PT FACE\rZQA|1|589723|^589724~^589725~^589726~^589727~^589728~^589729~^589730~^589731~^589732~^589733~^589734~^589735~^589736~^589737~^589738~^589739~^589740~^589741~^589742~^589743~^589744~^589745~^589746~^589747~^589748~^589749~^589750~^589751~^589752~^589753~^589754~^589755~^589756~^589757~^589758~^589759~^589760~^589761~^589762\rZCS||^^^^||||00005\rZMS|A44\r \ No newline at end of file diff --git a/tests/regression/regression_test_data/MissingSegments/ZNM.txt b/tests/regression/regression_test_data/MissingSegments/ZNM.txt new file mode 100644 index 0000000..feb3338 --- /dev/null +++ b/tests/regression/regression_test_data/MissingSegments/ZNM.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\rPV1||E||1|||116596^KAPUR^SIMRAN^S^^^MD|128303^BAUER^JANE^A||EER||||1||||E|00031184017437|2115|||||||||||||||||||BAOM|||||202309070619\rDG1|1|I10||POV CP DIFF BREATHING||A|||||||||0\rOBX|1|NM|PRICSN|1|735464236||||||M|||||||||||||||||||||\rOBX|2|NM|HT^HEIGHT||51.5|cm||||||||20230745145100||||||||||||||||||\rOBX|3|NM|WT^WEIGHT||2.872|kg||||||||20230752000000||||||||||||||||||\rOBX|4|TX|ContactType^CONTACT TYPE|1|3|||||||||20240508||||||||||||||||||\rGT1|1|00H1234^^^MS4^PN|WICK^JOHN||123 MAIN ST^^ANYTOWN^NY^11210^USA^^NYC|(555)888-1234||19960513|M||A|||||DISABLED||||2|||||||||0000000002|S||||||||Y|||YYY||||||||||||||C\rIN1|1|INS123456|2115|MERCY CARE RBHA|PO BOX 64835^^PHOENIX^NY^85082||(866)796-5598||||||||MCD|WICK^JOHN|A|19960513|123 MAIN ST^^ANYTOWN^NY^11210^USA|||1|||||N|||||||||INS123456||||||3|M||N||||00H1234\rIN1|2|INS222456|0094|PENDING MEDICAID IHMS|^^^^ |||999999|PENDING||||||COM|WICK^JOHN|A|19960513|123 MAIN ST^^ANYTOWN^NY^11210^USA|||2|||||N|||||||||INS222456||||||3|M||N||||00H1234\rUB1||||||||||||||||23^20230907\rZAD|NA|||||||||||||||||WILLSTOUT,STUART|NO|\rZNM|LIU,BABY GIRL SHARON PAN|945687|A||NEWBORN, C SECTION, PREMATURITY/RDS|||||||\rZVQ|||||||N|101||||||||||||||||||\rZMS||||||||||||||||||||||||||||||||||||||||||||||||||||||||\rZMD|2429^1386053031|2429^1386053031||||\rZET|202404091315\rZCQ|1|1|ST|HIE^HIE OPT OUT?|N|||\rZCQ|1|1|CE|MEDGROUP^MEDICAL GROUP|RMG^REGAL MED GRP|||\rZCQ|2|1|CE|MEDGROUP^MEDICAL GROUP|RMG^REGAL MED GRP|||\rZCQ|3|1|CE|MEDGROUP^MEDICAL GROUP|NONE^NONE|||\r diff --git a/tests/regression/regression_test_data/MissingSegments/ZSU.txt b/tests/regression/regression_test_data/MissingSegments/ZSU.txt new file mode 100644 index 0000000..9ffef9e --- /dev/null +++ b/tests/regression/regression_test_data/MissingSegments/ZSU.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\rPV1||E||1|||116596^KAPUR^SIMRAN^S^^^MD|128303^BAUER^JANE^A||EER||||1||||E|00031184017437|2115|||||||||||||||||||BAOM|||||202309070619\rDG1|0001|I10||POV CP DIFF BREATHING||A|||||||||0\rOBX|0001|NM|PRICSN|1|735464236||||||M|||||||||||||||||||||\rOBX|0002|NM|HT^HEIGHT||51.5|cm||||||||20230745145100||||||||||||||||||\rOBX|0003|NM|WT^WEIGHT||2.872|kg||||||||20230752000000||||||||||||||||||\rOBX|0004|TX|ContactType^CONTACT TYPE|1|3|||||||||20240508||||||||||||||||||\rGT1|0001|00H1234^^^MS4^PN|WICK^JOHN||123 MAIN ST^^ANYTOWN^NY^11210^USA^^NYC|(555)888-1234||19960513|M||A|||||DISABLED||||2|||||||||0000000002|S||||||||Y|||YYY||||||||||||||C\rIN1|0001|INS123456|2115|MERCY CARE RBHA|PO BOX 64835^^PHOENIX^NY^85082||(866)796-5598||||||||MCD|WICK^JOHN|A|19960513|123 MAIN ST^^ANYTOWN^NY^11210^USA|||1|||||N|||||||||INS123456||||||3|M||N||||00H1234\rIN1|0002|INS222456|0094|PENDING MEDICAID IHMS|^^^^ |||999999|PENDING||||||COM|WICK^JOHN|A|19960513|123 MAIN ST^^ANYTOWN^NY^11210^USA|||2|||||N|||||||||INS222456||||||3|M||N||||00H1234\rUB1||||||||||||||||23^20230907\rZAC|EXPLOSIVE EXPLODED IN PT FACE\rZQA|1|589723|^589724~^589725~^589726~^589727~^589728~^589729~^589730~^589731~^589732~^589733~^589734~^589735~^589736~^589737~^589738~^589739~^589740~^589741~^589742~^589743~^589744~^589745~^589746~^589747~^589748~^589749~^589750~^589751~^589752~^589753~^589754~^589755~^589756~^589757~^589758~^589759~^589760~^589761~^589762\rZCS||^^^^||||00005\rZSU|A44\r \ No newline at end of file diff --git a/tests/regression/regression_test_data/RelatedPerson/RelatedPerson_test_data_1.txt b/tests/regression/regression_test_data/RelatedPerson/RelatedPerson_test_data_1.txt index 68f0efc..6be3ec0 100644 --- a/tests/regression/regression_test_data/RelatedPerson/RelatedPerson_test_data_1.txt +++ b/tests/regression/regression_test_data/RelatedPerson/RelatedPerson_test_data_1.txt @@ -1 +1 @@ -MSH|^~\&|Epic|STL|Pediatrix||20230411105743145038900|TCO4A|ADT^A08|13503|T|2.3|\rEVN|A08|20230411105743145038900||A31A08A31|TCO4A^COOK^TIM^^^^^^SJMH^^^^^SJMMC|\rPID|1||TEST333345038900^^^EPI^EPI||patient1^girl1testing^sprg^^^^D||20230411|F|||111 first st^apt 1^somewhere^fl^55555-5555^US^P||(479)555-5874^CP^7^pid1@gmail.com^^479^5555874|(479)555-5875^P^7^pid12@gmail.com^^479^5555874||SINGLE||9543332222|954-331-2222|||||Y|2||||21230620|||||||||||||||20230611|20230811|\rPD1|||MERCY HOSPITAL ST LOUIS^^20101|||||||||\rNK1|1|PATIENT^TESTING^SPRG^|Mother|^^^^^US|(555)555-5551^^7^^^555^5555551||EC1||||^^||\rNK1|2|PATIENT^TESTING^SPRG^||^^^^^US|(555)555-5551^^7^^^555^5555551||MOTHER||||^^||\rNK1|3||||||EMP||||^^||NOT EMPLOYED\rPV1|1|INPATIENT|SJMNICUS^2107^^SJMMC^Dirty^^^^STLO NICU 2|NB|||15236798^SOM IP^PHYSICIAN^HOSPITALIST|15236799^SOM IP^REFERRING^HOSPITALIST||NURSERY||||BORN INSIDE |||15236798^SOM IP^PHYSICIAN^HOSPITALIST^|CONF|17723456|COMM C||||||||||||||||||||||||20230411080900|20230511080900|\rPV2||Level 2||||||||||Hospital Encounter||\rDG1|1||^Newborn|Newborn||A|\rGT1|1|100003699|relpatient1^reltesting1^relSPRG1^||1500 corporate Drive^Suite 101^SUNRISE^FL^33322^US|(555)555-5551^P^7^gt1@gmail.com^^555^5555551|(555)555-5552^P^7^gt12@gmail.com^^555^5555551|19870108103000-0500^s|F|P/F|MOT|105-45-2154||||||||\rIN1|1|2000805^AETNA PPO|20008|AETNA|PO BOX 981106^^EL PASO^TX^79998-1106^||(800)789-9009|1234|TEST|||20230101|20250101|3456T789|130|relpatientIN1^reltestingIN1^relSPRGIN1^|Child|198502071030.123|123 downing st^apt 1^Gainesville^FL^33312-5555^US^H|||1|||YES||||||||||465|5678|||||||F||||BOTH||465\rIN2||954-333-2223|||Payer Plan|123456|||||||||||||||||||||||||||||||||||||||||||||||||||||||9876543211||(555)111-2221^^^In1@gmail.com|(555)111-2222^^^In12@gmail.com\rIN2||954-333-2223|||Payer Plan|789101|||||||||||||||||||||||||||||||||||||||||||||||||||||||9876543211||(555)111-2221^^^In1@gmail.com|(555)111-2222^^^In12@gmail.com\rIN1|2|2007118^CIGNA HEALTHSCOPE PPO|20071|CIGNA HEALTHCARE|PO BOX 188061^^CHATTANOOGA^TN^37422-8061^||7898678090|1234||||20230202|20250202|20071PED|130|relpatient2IN1^reltesting2IN1^relSPRG2IN1^|Child|19870304161242.0000-0400|456 downing st^apt 2^Edison^NJ^19702-5342^US|||2|||YES||||||||||466|1789|||||||F||||BOTH||466\rIN2||954-333-2224|||Payer Plan||||||||||||||||||||||||||||||||||||||||||||||||||||||||987654321||(556)112-2222^^^In2@gmail.com|(556)112-2223^^^In22@gmail.com\rIN2||954-333-2223|||Payer Plan|121314|||||||||||||||||||||||||||||||||||||||||||||||||||||||9876543211||(555)111-2221^^^In1@gmail.com|(555)111-2222^^^In12@gmail.com\rIN2||954-333-2223|||Payer Plan|151617|||||||||||||||||||||||||||||||||||||||||||||||||||||||9876543211||(555)111-2221^^^In1@gmail.com|(555)111-2222^^^In12@gmail.com\rIN1|3|2000805^AETNA PPO|20008|AETNA|PO BOX 981106^^EL PASO^TX^79998-1106^||(800)789-9009|1234|TEST|||20230101|20250101|3456T789|130|relpatient3IN1^reltesting3IN1^relSPRG3IN1^|Child|19890201|789 downing st^apt 3^BOSTON^MA^98912-6543^US|||1|||YES||||||||||465|5678|||||||F||||BOTH||465\rIN2||954-333-2225|||Payer Plan|181920|||||||||||||||||||||||||||||||||||||||||||||||||||||||9876543211||(557)113-2223^^^In3@gmail.com|(557)113-2224^^^In32@gmail.com\rIN2||954-333-2223|||Payer Plan|212223|||||||||||||||||||||||||||||||||||||||||||||||||||||||9876543211||(555)111-2221^^^In1@gmail.com|(555)111-2222^^^In12@gmail.com\r \ No newline at end of file +MSH|^~\&|Epic|STL|Pediatrix||20230411105743145038900|TCO4A|ADT^A08|13503|T|2.3|\rEVN|A08|20230411105743145038900||A31A08A31|TCO4A^COOK^TIM^^^^^^SJMH^^^^^SJMMC|\rPID|1||TEST333345038900^^^EPI^EPI||patient1^girl1testing^sprg^^^^D||20230411|F|||111 first st^apt 1^somewhere^fl^55555-5555^US^P||(479)555-5874^CP^7^pid1@gmail.com^^479^5555874|(479)555-5875^P^7^pid12@gmail.com^^479^5555874||SINGLE||9543332222|954-331-2222|||||Y|2||||21230620|||||||||||||||20230611|20230811|\rPD1|||MERCY HOSPITAL ST LOUIS^^20101|||||||||\rNK1|1|PATIENT^TESTING^SPRG^|Mother|^^^^^US|(555)555-5551^^7^^^555^5555551||EC1||||^^||\rNK1|2|PATIENT^TESTING^SPRG^||^^^^^US|(555)555-5551^^7^^^555^5555551||MOTHER||||^^||\rNK1|3||||||EMP||||^^||NOT EMPLOYED\rPV1|1|INPATIENT|SJMNICUS^2107^^SJMMC^Dirty^^^^STLO NICU 2|NB|||15236798^SOM IP^PHYSICIAN^HOSPITALIST|15236799^SOM IP^REFERRING^HOSPITALIST||NURSERY||||BORN INSIDE |||15236798^SOM IP^PHYSICIAN^HOSPITALIST^|CONF|17723456|COMM C||||||||||||||||||||||||20230411080900|20230511080900|\rPV2||Level 2||||||||||Hospital Encounter||\rDG1|1||^Newborn|Newborn||A|\rGT1|0001|100003699|relpatient1^reltesting1^relSPRG1^||1500 corporate Drive^Suite 101^SUNRISE^FL^33322^US|(555)555-5551^P^7^gt1@gmail.com^^555^5555551|(555)555-5552^P^7^gt12@gmail.com^^555^5555551|19870108103000-0500^s|F|P/F|MOT|105-45-2154||||||||\rIN1|1|2000805^AETNA PPO|20008|AETNA|PO BOX 981106^^EL PASO^TX^79998-1106^||(800)789-9009|1234|TEST|||20230101|20250101|3456T789|130|relpatientIN1^reltestingIN1^relSPRGIN1^|Child|198502071030.123|123 downing st^apt 1^Gainesville^FL^33312-5555^US^H|||1|||YES||||||||||465|5678|||||||F||||BOTH||465\rIN2||954-333-2223|||Payer Plan|123456|||||||||||||||||||||||||||||||||||||||||||||||||||||||9876543211||(555)111-2221^^^In1@gmail.com|(555)111-2222^^^In12@gmail.com\rIN2||954-333-2223|||Payer Plan|789101|||||||||||||||||||||||||||||||||||||||||||||||||||||||9876543211||(555)111-2221^^^In1@gmail.com|(555)111-2222^^^In12@gmail.com\rIN1|2|2007118^CIGNA HEALTHSCOPE PPO|20071|CIGNA HEALTHCARE|PO BOX 188061^^CHATTANOOGA^TN^37422-8061^||7898678090|1234||||20230202|20250202|20071PED|130|relpatient2IN1^reltesting2IN1^relSPRG2IN1^|Child|19870304161242.0000-0400|456 downing st^apt 2^Edison^NJ^19702-5342^US|||2|||YES||||||||||466|1789|||||||F||||BOTH||466\rIN2||954-333-2224|||Payer Plan||||||||||||||||||||||||||||||||||||||||||||||||||||||||987654321||(556)112-2222^^^In2@gmail.com|(556)112-2223^^^In22@gmail.com\rIN2||954-333-2223|||Payer Plan|121314|||||||||||||||||||||||||||||||||||||||||||||||||||||||9876543211||(555)111-2221^^^In1@gmail.com|(555)111-2222^^^In12@gmail.com\rIN2||954-333-2223|||Payer Plan|151617|||||||||||||||||||||||||||||||||||||||||||||||||||||||9876543211||(555)111-2221^^^In1@gmail.com|(555)111-2222^^^In12@gmail.com\rIN1|3|2000805^AETNA PPO|20008|AETNA|PO BOX 981106^^EL PASO^TX^79998-1106^||(800)789-9009|1234|TEST|||20230101|20250101|3456T789|130|relpatient3IN1^reltesting3IN1^relSPRG3IN1^|Child|19890201|789 downing st^apt 3^BOSTON^MA^98912-6543^US|||1|||YES||||||||||465|5678|||||||F||||BOTH||465\rIN2||954-333-2225|||Payer Plan|181920|||||||||||||||||||||||||||||||||||||||||||||||||||||||9876543211||(557)113-2223^^^In3@gmail.com|(557)113-2224^^^In32@gmail.com\rIN2||954-333-2223|||Payer Plan|212223|||||||||||||||||||||||||||||||||||||||||||||||||||||||9876543211||(555)111-2221^^^In1@gmail.com|(555)111-2222^^^In12@gmail.com\r \ No newline at end of file