From d1d59190ef8bb2317ea439257c659ae5e0faf41c Mon Sep 17 00:00:00 2001 From: Jessica Willis Date: Wed, 31 Jul 2024 15:20:51 -0400 Subject: [PATCH 1/4] Updating MO test to prove that the truncaiton is working and to make their test more accurate --- prime-router/settings/STLTs/MO/mo-phd.yml | 3 +- .../FHIR_to_HL7/sample_MO_20240628-0001.fhir | 708 +++++++++++++++++- .../FHIR_to_HL7/sample_MO_20240628-0001.hl7 | 2 +- .../datatests/translation-test-config.csv | 2 +- .../resources/settings/organizations.yml | 114 ++- 5 files changed, 823 insertions(+), 6 deletions(-) diff --git a/prime-router/settings/STLTs/MO/mo-phd.yml b/prime-router/settings/STLTs/MO/mo-phd.yml index ac049358ced..ff81ac075c2 100644 --- a/prime-router/settings/STLTs/MO/mo-phd.yml +++ b/prime-router/settings/STLTs/MO/mo-phd.yml @@ -33,8 +33,7 @@ replaceUnicodeWithAscii: false useBlankInsteadOfUnknown: null truncateHDNamespaceIds: true - truncateHl7Fields: "MSH-3-1, PID-3-3, PID-3-6, ORC-2-2, ORC-7-10-5, OBR-2-2,\ - \ OBR-3-2, SPM-2-1-2, SPM-2-2-2, ORC-21-1, OBX-23-1, BX-15.1, OBX-23.10 " + truncateHl7Fields: "MSH-3-1, PID-3-3, PID-3-6, ORC-2-2, ORC-7-10-5, OBR-2-2, OBR-3-2, SPM-2-1-2, SPM-2-2-2, ORC-21-1, OBX-23-1, BX-15.1, OBX-23.10 " usePid14ForPatientEmail: false convertTimestampToDateTime: null cliaForOutOfStateTesting: null diff --git a/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_MO_20240628-0001.fhir b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_MO_20240628-0001.fhir index ba4c0eb6e9b..86057d32469 100644 --- a/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_MO_20240628-0001.fhir +++ b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_MO_20240628-0001.fhir @@ -1 +1,707 @@ -{"resourceType":"Bundle","identifier":{"value":"0bab3f94-feb4-4915-939d-1adc5da201f3"},"type":"message","timestamp":"2024-06-05T18:55:01.277Z","entry":[{"fullUrl":"MessageHeader/5cbae40a-675e-49d4-b12a-04271de671a6","resource":{"resourceType":"MessageHeader","id":"5cbae40a-675e-49d4-b12a-04271de671a6","meta":{"tag":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0103","code":"P","display":"Production"}]},"eventCoding":{"system":"http://terminology.hl7.org/CodeSystem/v2-0003","code":"R01","display":"ORU/ACK - Unsolicited transmission of an observation message"},"destination":[{"name":"PRIME ReportStream","endpoint":"https://prime.cdc.gov/api/reports?option=SkipInvalidItems"}],"sender":{"reference":"Organization/719ec8ad-cf59-405a-9832-c4065945c130"},"source":{"extension":[{"url":"https://reportstream.cdc.gov/fhir/StructureDefinition/software-binary-id","valueString":"d5de310"},{"url":"https://reportstream.cdc.gov/fhir/StructureDefinition/software-install-date","valueInstant":"2024-06-05T15:42:52Z"},{"url":"https://reportstream.cdc.gov/fhir/StructureDefinition/software-vendor-org","valueReference":{"reference":"Organization/07640c5d-87cd-488b-9343-a226c5166539"}}],"software":"PRIME SimpleReport","version":"d5de310","endpoint":"https://simplereport.gov"},"focus":[{"reference":"Provenance/d0dd19cd-76a0-4e16-ab1d-dc5838247b61"},{"reference":"DiagnosticReport/0bab3f94-feb4-4915-939d-1adc5da201f3"}]}},{"fullUrl":"Provenance/d0dd19cd-76a0-4e16-ab1d-dc5838247b61","resource":{"resourceType":"Provenance","id":"d0dd19cd-76a0-4e16-ab1d-dc5838247b61","recorded":"2024-06-05T18:55:01.277Z","activity":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0003","code":"R01","display":"ORU/ACK - Unsolicited transmission of an observation message"}]},"agent":[{"who":{"reference":"Organization/719ec8ad-cf59-405a-9832-c4065945c130"}}]}},{"fullUrl":"DiagnosticReport/0bab3f94-feb4-4915-939d-1adc5da201f3","resource":{"resourceType":"DiagnosticReport","id":"0bab3f94-feb4-4915-939d-1adc5da201f3","identifier":[{"value":"0bab3f94-feb4-4915-939d-1adc5da201f3"}],"basedOn":[{"reference":"ServiceRequest/185170f3-4361-48ff-85e1-808a66624470"}],"status":"final","code":{"coding":[{"system":"http://loinc.org","code":"94531-1"}]},"subject":{"reference":"Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67"},"effectiveDateTime":"2024-06-05T18:39:58+00:00","issued":"2024-06-05T18:55:01+00:00","specimen":[{"reference":"Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2"}],"result":[{"reference":"Observation/5ab37a34-59f5-421f-92bd-baffaf26bb72"}]}},{"fullUrl":"Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67","resource":{"resourceType":"Patient","id":"7c0d1de9-270e-4d9c-a4ec-af92560cec67","extension":[{"url":"http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd","valueCodeableConcept":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v3-Race","code":"2028-9"}],"text":"asian"}},{"url":"https://reportstream.cdc.gov/fhir/StructureDefinition/ethnic-group","valueCodeableConcept":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0189","code":"N","display":"Not Hispanic or Latino"}],"text":"Not Hispanic or Latino"}}],"identifier":[{"value":"7c0d1de9-270e-4d9c-a4ec-af92560cec67"}],"name":[{"family":"Granger","given":["Hermione"]}],"telecom":[{"system":"phone","value":"(212) 555 1234","use":"mobile"}],"gender":"female","birthDate":"1990-07-21","address":[{"line":["53 Buttonwood Ave"],"city":"Brooklyn","state":"MO","postalCode":"11224","country":"USA"}],"managingOrganization":{"reference":"Organization/719ec8ad-cf59-405a-9832-c4065945c130"}}},{"fullUrl":"Organization/719ec8ad-cf59-405a-9832-c4065945c130","resource":{"resourceType":"Organization","id":"719ec8ad-cf59-405a-9832-c4065945c130","identifier":[{"use":"official","type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0301","code":"CLIA"}]},"value":"12D4567890"}],"name":"Testing Lab","telecom":[{"system":"phone","value":"(530) 867 5309","use":"work"}],"address":[{"line":["123 Beach Way"],"city":"Denver","state":"MO","postalCode":"80210","country":"USA"}]}},{"fullUrl":"Practitioner/ee29ccf5-631d-4b35-a6d4-30a61c0eb8d9","resource":{"resourceType":"Practitioner","id":"ee29ccf5-631d-4b35-a6d4-30a61c0eb8d9","identifier":[{"system":"http://hl7.org/fhir/sid/us-npi","value":"1245319599"}],"name":[{"family":"McTester","given":["Phil"]}],"telecom":[{"system":"phone","value":"(530) 867 5309","use":"work"}],"address":[{"line":["321 Ocean Drive"],"city":"Denver","state":"MO","postalCode":"80210","country":"USA"}]}},{"fullUrl":"Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2","resource":{"resourceType":"Specimen","id":"dc7af370-fc07-4b00-abc7-9b5dd87cf4d2","identifier":[{"value":"80ed36a0-4bd1-42c3-bb56-81ea4ac1e75a"}],"type":{"coding":[{"system":"http://snomed.info/sct","code":"258500001"}],"text":"Nasopharyngeal swab"},"subject":{"reference":"Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67"},"receivedTime":"2024-06-05T18:39:58+00:00","collection":{"collectedDateTime":"2024-06-05T18:39:58+00:00","bodySite":{"coding":[{"system":"http://snomed.info/sct","code":"87100004"}],"text":"Topography unknown (body structure)"}}}},{"fullUrl":"ServiceRequest/185170f3-4361-48ff-85e1-808a66624470","resource":{"resourceType":"ServiceRequest","id":"185170f3-4361-48ff-85e1-808a66624470","extension":[{"url":"https://reportstream.cdc.gov/fhir/StructureDefinition/order-control","valueCodeableConcept":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0119","code":"RE"}]}},{"url":"https://reportstream.cdc.gov/fhir/StructureDefinition/order-effective-date","valueDateTime":"2024-06-05T18:54:58+00:00"}],"status":"completed","intent":"order","code":{"coding":[{"system":"http://loinc.org","code":"94531-1"}]},"subject":{"reference":"Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67"},"requester":{"reference":"PractitionerRole/57a1a000-16e5-461a-930a-2e4779944bc2"},"performer":[{"reference":"Organization/719ec8ad-cf59-405a-9832-c4065945c130"}],"supportingInfo":[{"reference":"Observation/dd5369b2-91e7-32d9-8c7f-884cad6b0391"},{"reference":"Observation/fdf748f4-b187-31c6-b08d-334afc1c6a49"},{"reference":"Observation/4c669397-3b8b-3448-a7c8-d2fb8c5afde5"},{"reference":"Observation/4456d162-bfd8-37f3-aafe-1e6444c53934"},{"reference":"Observation/0042a1cb-8473-3181-9b65-fcb08dc112a3"}]}},{"fullUrl":"Device/d303372c-70cb-46b7-bf74-23f4dc91e661","resource":{"resourceType":"Device","id":"d303372c-70cb-46b7-bf74-23f4dc91e661","identifier":[{"type":{"coding":[{"code":"MNI"}]}}],"manufacturer":"Access Bio, Inc.","deviceName":[{"name":"CareStart COVID-19 MDx RT-PCR","type":"model-name"}]}},{"fullUrl":"PractitionerRole/57a1a000-16e5-461a-930a-2e4779944bc2","resource":{"resourceType":"PractitionerRole","id":"57a1a000-16e5-461a-930a-2e4779944bc2","practitioner":{"reference":"Practitioner/ee29ccf5-631d-4b35-a6d4-30a61c0eb8d9"},"organization":{"reference":"Organization/719ec8ad-cf59-405a-9832-c4065945c130"}}},{"fullUrl":"Organization/07640c5d-87cd-488b-9343-a226c5166539","resource":{"resourceType":"Organization","id":"07640c5d-87cd-488b-9343-a226c5166539","name":"SimpleReport"}},{"fullUrl":"Observation/5ab37a34-59f5-421f-92bd-baffaf26bb72","resource":{"resourceType":"Observation","id":"5ab37a34-59f5-421f-92bd-baffaf26bb72","status":"final","code":{"coding":[{"system":"http://loinc.org","code":"94500-6"}],"text":"COVID-19"},"subject":{"reference":"Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67"},"issued":"2024-06-05T18:54:58.594Z","performer":[{"reference":"Organization/719ec8ad-cf59-405a-9832-c4065945c130"}],"valueCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"260373001","display":"Detected"}]},"interpretation":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0078","code":"A","display":"Abnormal"}]}],"method":{"extension":[{"url":"https://reportstream.cdc.gov/fhir/StructureDefinition/testkit-name-id","valueCoding":{"code":"CareStart COVID-19 MDx RT-PCR_Access Bio, Inc."}}],"coding":[{"display":"CareStart COVID-19 MDx RT-PCR"}]},"specimen":{"reference":"Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2"},"device":{"reference":"Device/d303372c-70cb-46b7-bf74-23f4dc91e661"}}},{"fullUrl":"Observation/dd5369b2-91e7-32d9-8c7f-884cad6b0391","resource":{"resourceType":"Observation","id":"dd5369b2-91e7-32d9-8c7f-884cad6b0391","identifier":[{"use":"official","type":{"coding":[{"system":"http://loinc.org","code":"81959-9","display":"Public health laboratory ask at order entry panel"}]}}],"status":"final","code":{"coding":[{"system":"http://loinc.org","code":"95419-8","display":"Has symptoms related to condition of interest"}],"text":"Has symptoms related to condition of interest"},"subject":{"reference":"Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67"},"valueCodeableConcept":{"coding":[{"system":"http://terminology.hl7.org/ValueSet/v2-0136","code":"Y","display":"Yes"}]}}},{"fullUrl":"Observation/fdf748f4-b187-31c6-b08d-334afc1c6a49","resource":{"resourceType":"Observation","id":"fdf748f4-b187-31c6-b08d-334afc1c6a49","identifier":[{"use":"official","type":{"coding":[{"system":"http://loinc.org","code":"81959-9","display":"Public health laboratory ask at order entry panel"}]}}],"status":"final","code":{"coding":[{"system":"http://loinc.org","code":"11368-8","display":"Illness or injury onset date and time"}],"text":"Illness or injury onset date and time"},"subject":{"reference":"Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67"},"valueDateTime":"2024-06-01"}},{"fullUrl":"Observation/4c669397-3b8b-3448-a7c8-d2fb8c5afde5","resource":{"resourceType":"Observation","id":"4c669397-3b8b-3448-a7c8-d2fb8c5afde5","identifier":[{"use":"official","type":{"coding":[{"system":"http://loinc.org","code":"81959-9","display":"Public health laboratory ask at order entry panel"}]}}],"status":"final","code":{"coding":[{"system":"http://loinc.org","code":"82810-3","display":"Pregnancy status"}],"text":"Pregnancy status"},"subject":{"reference":"Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67"},"valueCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"60001007","display":"Not pregnant"}]}}},{"fullUrl":"Observation/4456d162-bfd8-37f3-aafe-1e6444c53934","resource":{"resourceType":"Observation","id":"4456d162-bfd8-37f3-aafe-1e6444c53934","identifier":[{"use":"official","type":{"coding":[{"system":"http://loinc.org","code":"81959-9","display":"Public health laboratory ask at order entry panel"}]}}],"status":"final","code":{"coding":[{"system":"http://loinc.org","code":"95418-0","display":"Employed in a healthcare setting"}],"text":"Employed in a healthcare setting"},"subject":{"reference":"Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67"},"valueCodeableConcept":{"coding":[{"system":"http://terminology.hl7.org/ValueSet/v2-0136","code":"Y","display":"Yes"}]}}},{"fullUrl":"Observation/0042a1cb-8473-3181-9b65-fcb08dc112a3","resource":{"resourceType":"Observation","id":"0042a1cb-8473-3181-9b65-fcb08dc112a3","identifier":[{"use":"official","type":{"coding":[{"system":"http://loinc.org","code":"81959-9","display":"Public health laboratory ask at order entry panel"}]}}],"status":"final","code":{"coding":[{"system":"http://loinc.org","code":"95421-4","display":"Resides in a congregate care setting"}],"text":"Resides in a congregate care setting"},"subject":{"reference":"Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67"},"valueCodeableConcept":{"coding":[{"system":"http://terminology.hl7.org/ValueSet/v2-0136","code":"Y","display":"Yes"}]}}}]} \ No newline at end of file +{ + "resourceType": "Bundle", + "identifier": { + "value": "0bab3f94-feb4-4915-939d-1adc5da201f3" + }, + "type": "message", + "timestamp": "2024-06-05T18:55:01.277Z", + "entry": [ + { + "fullUrl": "MessageHeader/5cbae40a-675e-49d4-b12a-04271de671a6", + "resource": { + "resourceType": "MessageHeader", + "id": "5cbae40a-675e-49d4-b12a-04271de671a6", + "meta": { + "tag": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0103", + "code": "P", + "display": "Production" + } + ] + }, + "eventCoding": { + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "code": "R01", + "display": "ORU/ACK - Unsolicited transmission of an observation message" + }, + "destination": [ + { + "name": "PRIME ReportStream", + "endpoint": "https://prime.cdc.gov/api/reports?option=SkipInvalidItems" + } + ], + "sender": { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + }, + "source": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-binary-id", + "valueString": "d5de310" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-install-date", + "valueInstant": "2024-06-05T15:42:52Z" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-vendor-org", + "valueReference": { + "reference": "Organization/07640c5d-87cd-488b-9343-a226c5166539" + } + } + ], + "software": "PRIME SimpleReport", + "version": "d5de310", + "endpoint": "https://simplereport.gov" + }, + "focus": [ + { + "reference": "Provenance/d0dd19cd-76a0-4e16-ab1d-dc5838247b61" + }, + { + "reference": "DiagnosticReport/0bab3f94-feb4-4915-939d-1adc5da201f3" + } + ] + } + }, + { + "fullUrl": "Provenance/d0dd19cd-76a0-4e16-ab1d-dc5838247b61", + "resource": { + "resourceType": "Provenance", + "id": "d0dd19cd-76a0-4e16-ab1d-dc5838247b61", + "recorded": "2024-06-05T18:55:01.277Z", + "activity": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "code": "R01", + "display": "ORU/ACK - Unsolicited transmission of an observation message" + } + ] + }, + "agent": [ + { + "who": { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + } + ] + } + }, + { + "fullUrl": "DiagnosticReport/0bab3f94-feb4-4915-939d-1adc5da201f3", + "resource": { + "resourceType": "DiagnosticReport", + "id": "0bab3f94-feb4-4915-939d-1adc5da201f3", + "identifier": [ + { + "value": "0bab3f94-feb4-4915-939d-1adc5da201f3" + } + ], + "basedOn": [ + { + "reference": "ServiceRequest/185170f3-4361-48ff-85e1-808a66624470" + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "94531-1" + } + ] + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "effectiveDateTime": "2024-06-05T18:39:58+00:00", + "issued": "2024-06-05T18:55:01+00:00", + "specimen": [ + { + "reference": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2" + } + ], + "result": [ + { + "reference": "Observation/5ab37a34-59f5-421f-92bd-baffaf26bb72" + } + ] + } + }, + { + "fullUrl": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67", + "resource": { + "resourceType": "Patient", + "id": "7c0d1de9-270e-4d9c-a4ec-af92560cec67", + "extension": [ + { + "url": "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-Race", + "code": "2028-9" + } + ], + "text": "asian" + } + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/ethnic-group", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0189", + "code": "N", + "display": "Not Hispanic or Latino" + } + ], + "text": "Not Hispanic or Latino" + } + } + ], + "identifier": [ + { + "value": "7c0d1de9-270e-4d9c-a4ec-af92560cec67" + } + ], + "name": [ + { + "family": "Granger", + "given": [ + "Hermione" + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "(212) 555 1234", + "use": "mobile" + } + ], + "gender": "female", + "birthDate": "1990-07-21", + "address": [ + { + "line": [ + "53 Buttonwood Ave" + ], + "city": "Brooklyn", + "state": "MO", + "postalCode": "11224", + "country": "USA" + } + ], + "managingOrganization": { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + } + }, + { + "fullUrl": "Organization/719ec8ad-cf59-405a-9832-c4065945c130", + "resource": { + "resourceType": "Organization", + "id": "719ec8ad-cf59-405a-9832-c4065945c130", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0301", + "code": "CLIA" + } + ] + }, + "value": "12D4567890" + } + ], + "name": "Testing Lab pakupyyazibjewjklzmadxbqaxgjholhovcgywxpamrkbqktramfvlryonijtkjcctefpztqwdxvjyijsnzagcnazrxmcdcnatpuvoifpektpywzlbbaylloiigvthhjzqhuntxwnmxsbhmzzzmhvdrszuotabmwxgjmysgkiokkkaevrtfctkxfzdxrueqzocptrfpeebbyyrswetzujmeglgdwrbycbbml", + "telecom": [ + { + "system": "phone", + "value": "(530) 867 5309", + "use": "work" + } + ], + "address": [ + { + "line": [ + "123 Beach Way" + ], + "city": "Denver", + "state": "MO", + "postalCode": "80210", + "country": "USA" + } + ] + } + }, + { + "fullUrl": "Practitioner/ee29ccf5-631d-4b35-a6d4-30a61c0eb8d9", + "resource": { + "resourceType": "Practitioner", + "id": "ee29ccf5-631d-4b35-a6d4-30a61c0eb8d9", + "identifier": [ + { + "system": "http://hl7.org/fhir/sid/us-npi", + "value": "1245319599" + } + ], + "name": [ + { + "family": "McTester", + "given": [ + "Phil" + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "(530) 867 5309", + "use": "work" + } + ], + "address": [ + { + "line": [ + "321 Ocean Drive" + ], + "city": "Denver", + "state": "MO", + "postalCode": "80210", + "country": "USA" + } + ] + } + }, + { + "fullUrl": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2", + "resource": { + "resourceType": "Specimen", + "id": "dc7af370-fc07-4b00-abc7-9b5dd87cf4d2", + "identifier": [ + { + "value": "80ed36a0-4bd1-42c3-bb56-81ea4ac1e75a" + } + ], + "type": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "258500001" + } + ], + "text": "Nasopharyngeal swab" + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "receivedTime": "2024-06-05T18:39:58+00:00", + "collection": { + "collectedDateTime": "2024-06-05T18:39:58+00:00", + "bodySite": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "87100004" + } + ], + "text": "Topography unknown (body structure)" + } + } + } + }, + { + "fullUrl": "ServiceRequest/185170f3-4361-48ff-85e1-808a66624470", + "resource": { + "resourceType": "ServiceRequest", + "id": "185170f3-4361-48ff-85e1-808a66624470", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/order-control", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0119", + "code": "RE" + } + ] + } + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/order-effective-date", + "valueDateTime": "2024-06-05T18:54:58+00:00" + } + ], + "status": "completed", + "intent": "order", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "94531-1" + } + ] + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "requester": { + "reference": "PractitionerRole/57a1a000-16e5-461a-930a-2e4779944bc2" + }, + "performer": [ + { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + ], + "supportingInfo": [ + { + "reference": "Observation/dd5369b2-91e7-32d9-8c7f-884cad6b0391" + }, + { + "reference": "Observation/fdf748f4-b187-31c6-b08d-334afc1c6a49" + }, + { + "reference": "Observation/4c669397-3b8b-3448-a7c8-d2fb8c5afde5" + }, + { + "reference": "Observation/4456d162-bfd8-37f3-aafe-1e6444c53934" + }, + { + "reference": "Observation/0042a1cb-8473-3181-9b65-fcb08dc112a3" + } + ] + } + }, + { + "fullUrl": "Device/d303372c-70cb-46b7-bf74-23f4dc91e661", + "resource": { + "resourceType": "Device", + "id": "d303372c-70cb-46b7-bf74-23f4dc91e661", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "MNI" + } + ] + } + } + ], + "manufacturer": "Access Bio, Inc.", + "deviceName": [ + { + "name": "CareStart COVID-19 MDx RT-PCR", + "type": "model-name" + } + ] + } + }, + { + "fullUrl": "PractitionerRole/57a1a000-16e5-461a-930a-2e4779944bc2", + "resource": { + "resourceType": "PractitionerRole", + "id": "57a1a000-16e5-461a-930a-2e4779944bc2", + "practitioner": { + "reference": "Practitioner/ee29ccf5-631d-4b35-a6d4-30a61c0eb8d9" + }, + "organization": { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + } + }, + { + "fullUrl": "Organization/07640c5d-87cd-488b-9343-a226c5166539", + "resource": { + "resourceType": "Organization", + "id": "07640c5d-87cd-488b-9343-a226c5166539", + "name": "SimpleReport" + } + }, + { + "fullUrl": "Observation/5ab37a34-59f5-421f-92bd-baffaf26bb72", + "resource": { + "resourceType": "Observation", + "id": "5ab37a34-59f5-421f-92bd-baffaf26bb72", + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "94500-6" + } + ], + "text": "COVID-19" + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "issued": "2024-06-05T18:54:58.594Z", + "performer": [ + { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + ], + "valueCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "260373001", + "display": "Detected" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0078", + "code": "A", + "display": "Abnormal" + } + ] + } + ], + "method": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/testkit-name-id", + "valueCoding": { + "code": "CareStart COVID-19 MDx RT-PCR_Access Bio, Inc." + } + } + ], + "coding": [ + { + "display": "CareStart COVID-19 MDx RT-PCR" + } + ] + }, + "specimen": { + "reference": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2" + }, + "device": { + "reference": "Device/d303372c-70cb-46b7-bf74-23f4dc91e661" + } + } + }, + { + "fullUrl": "Observation/dd5369b2-91e7-32d9-8c7f-884cad6b0391", + "resource": { + "resourceType": "Observation", + "id": "dd5369b2-91e7-32d9-8c7f-884cad6b0391", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "81959-9", + "display": "Public health laboratory ask at order entry panel" + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "95419-8", + "display": "Has symptoms related to condition of interest" + } + ], + "text": "Has symptoms related to condition of interest" + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/ValueSet/v2-0136", + "code": "Y", + "display": "Yes" + } + ] + } + } + }, + { + "fullUrl": "Observation/fdf748f4-b187-31c6-b08d-334afc1c6a49", + "resource": { + "resourceType": "Observation", + "id": "fdf748f4-b187-31c6-b08d-334afc1c6a49", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "81959-9", + "display": "Public health laboratory ask at order entry panel" + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "11368-8", + "display": "Illness or injury onset date and time" + } + ], + "text": "Illness or injury onset date and time" + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "valueDateTime": "2024-06-01" + } + }, + { + "fullUrl": "Observation/4c669397-3b8b-3448-a7c8-d2fb8c5afde5", + "resource": { + "resourceType": "Observation", + "id": "4c669397-3b8b-3448-a7c8-d2fb8c5afde5", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "81959-9", + "display": "Public health laboratory ask at order entry panel" + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "82810-3", + "display": "Pregnancy status" + } + ], + "text": "Pregnancy status" + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "60001007", + "display": "Not pregnant" + } + ] + } + } + }, + { + "fullUrl": "Observation/4456d162-bfd8-37f3-aafe-1e6444c53934", + "resource": { + "resourceType": "Observation", + "id": "4456d162-bfd8-37f3-aafe-1e6444c53934", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "81959-9", + "display": "Public health laboratory ask at order entry panel" + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "95418-0", + "display": "Employed in a healthcare setting" + } + ], + "text": "Employed in a healthcare setting" + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/ValueSet/v2-0136", + "code": "Y", + "display": "Yes" + } + ] + } + } + }, + { + "fullUrl": "Observation/0042a1cb-8473-3181-9b65-fcb08dc112a3", + "resource": { + "resourceType": "Observation", + "id": "0042a1cb-8473-3181-9b65-fcb08dc112a3", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "81959-9", + "display": "Public health laboratory ask at order entry panel" + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "95421-4", + "display": "Resides in a congregate care setting" + } + ], + "text": "Resides in a congregate care setting" + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/ValueSet/v2-0136", + "code": "Y", + "display": "Yes" + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_MO_20240628-0001.hl7 b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_MO_20240628-0001.hl7 index 6cf9744bbb0..18ee789e54d 100644 --- a/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_MO_20240628-0001.hl7 +++ b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_MO_20240628-0001.hl7 @@ -1 +1 @@ -MSH|^~\&|CDC PRIME - Atlanta^2.16.840.1.114222.4.1.237821^ISO|Testing Lab^12D4567890^CLIA|MOELR^2.16.840.1.114222.4.3.3.36^ISO|MODHSS^2.16.840.1.114222.4.3.2.2.1.163^ISO|20240605185501+0000||ORU^R01^ORU_R01|0bab3f94-feb4-4915-939d-1adc5da201f3|P|2.5.1|||NE|NE|USA|UNICODE UTF-8|ENG^English||PHLabReport-NoAck^ELR_Receiver^2.16.840.1.113883.9.11^ISO SFT|Centers for Disease Control and Prevention|0.2-SNAPSHOT|PRIME ReportStream|0.2-SNAPSHOT||20240605154252+0000 PID|1||7c0d1de9-270e-4d9c-a4ec-af92560cec67^^^Testing Lab&12D4567890&CLIA^PI^Testing Lab&12D4567890&CLIA||Granger^Hermione^^^^^L||19900721|F||2028-9^asian^HL70005^^^^2.5.1^^asian|53 Buttonwood Ave^^Brooklyn^MO^11224^USA||(212) 555 1234^PRS^CP^^1^212^5551234|||||||||N^Not Hispanic or Latino^HL70189^^^^2.9^^Not Hispanic or Latino||||||||N ORC|RE|0bab3f94-feb4-4915-939d-1adc5da201f3^Testing Lab^12D4567890^CLIA|0bab3f94-feb4-4915-939d-1adc5da201f3^Testing Lab^12D4567890^CLIA|||||||||1245319599^McTester^Phil^^^^^^NPI&2.16.840.1.113883.4.6&ISO^L^^^NPI||^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|20240605185458+0000||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Denver^MO^80210^USA|(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|321 Ocean Drive^^Denver^MO^80210^USA OBR|1|0bab3f94-feb4-4915-939d-1adc5da201f3^Testing Lab^12D4567890^CLIA|0bab3f94-feb4-4915-939d-1adc5da201f3^Testing Lab^12D4567890^CLIA|94531-1^SARS-CoV-2 (COVID-19) RNA panel - Respiratory system specimen by NAA with probe detection^LN|||20240605183958+0000|||||||||1245319599^McTester^Phil^^^^^^NPI&2.16.840.1.113883.4.6&ISO^L^^^NPI|^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|||||20240605185501+0000|||F OBX|1|CWE|94500-6^SARS-CoV-2 (COVID-19) RNA [Presence] in Respiratory system specimen by NAA with probe detection^LN^^^^^^COVID-19||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||F|||20240605183958+0000|12D4567890^Testing Lab^CLIA||CareStart COVID-19 MDx RT-PCR_Access Bio, Inc.^CareStart COVID-19 MDx RT-PCR^^^^^^^CareStart COVID-19 MDx RT-PCR_Access Bio, Inc.|^^MNI|20240605185458+0000||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Denver^MO^80210^USA OBX|2|CWE|95419-8^Has symptoms related to condition of interest^LN^^^^2.69^^Has symptoms related to condition of interest||Y^Yes^HL70136||||||F|||20240605183958+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Denver^MO^80210^USA|||||QST OBX|3|DT|11368-8^Illness or injury onset date and time^LN^^^^^^Illness or injury onset date and time||20240601000000+0000||||||F|||20240605183958+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Denver^MO^80210^USA|||||QST OBX|4|CWE|82810-3^Pregnancy status^LN^^^^2.68^^Pregnancy status||60001007^Not pregnant^SCT||||||F|||20240605183958+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Denver^MO^80210^USA|||||QST OBX|5|CWE|95418-0^Employed in a healthcare setting^LN^^^^2.69^^Employed in a healthcare setting||Y^Yes^HL70136||||||F|||20240605183958+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Denver^MO^80210^USA|||||QST OBX|6|CWE|95421-4^Resides in a congregate care setting^LN^^^^2.69^^Resides in a congregate care setting||Y^Yes^HL70136||||||F|||20240605183958+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Denver^MO^80210^USA|||||QST SPM|1|0bab3f94-feb4-4915-939d-1adc5da201f3&Testing Lab&12D4567890&CLIA^0bab3f94-feb4-4915-939d-1adc5da201f3&Testing Lab&12D4567890&CLIA||258500001^Nasopharyngeal swab^SCT^^^^2.67^^Nasopharyngeal swab||||87100004^Topography unknown (body structure)^SCT^^^^^^Topography unknown (body structure)|||||||||20240605183958+0000|20240605183958+0000 \ No newline at end of file +MSH|^~\&|CDC PRIME - Atlanta^2.16.840.1.114222.4.1.237821^ISO|Testing Lab pakupyya^12D4567890^CLIA|MOELR^2.16.840.1.114222.4.3.3.36^ISO|MODHSS^2.16.840.1.114222.4.3.2.2.1.163^ISO|20240605185501||ORU^R01^ORU_R01|0bab3f94-feb4-4915-939d-1adc5da201f3|P|2.5.1|||NE|NE|USA|UNICODE UTF-8|ENG^English||PHLabReport-NoAck^ELR_Receiver^2.16.840.1.113883.9.11^ISO SFT|Centers for Disease Control and Prevention|0.2-SNAPSHOT|PRIME ReportStream|0.2-SNAPSHOT||20240605154252 PID|1||7c0d1de9-270e-4d9c-a4ec-af92560cec67^^^Testing Lab pakupyya&12D4567890&CLIA^PI^Testing Lab pakupyya&12D4567890&CLIA||Granger^Hermione^^^^^L||19900721|F||2028-9^asian^HL70005^^^^2.5.1^^asian|53 Buttonwood Ave^^Brooklyn^MO^11224^USA||(212) 555 1234^PRS^CP^^1^212^5551234|||||||||N^Not Hispanic or Latino^HL70189^^^^2.9^^Not Hispanic or Latino||||||||N ORC|RE|0bab3f94-feb4-4915-939d-1adc5da201f3^Testing Lab pakupyya^12D4567890^CLIA|0bab3f94-feb4-4915-939d-1adc5da201f3^Testing Lab pakupyya^12D4567890^CLIA|||||||||1245319599^McTester^Phil^^^^^^NPI&2.16.840.1.113883.4.6&ISO^L^^^NPI||^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|20240605185458||||||Testing Lab pakupyyazibjewjklzmadxbqaxgjholhovcgyw^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Denver^MO^80210^USA|(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|321 Ocean Drive^^Denver^MO^80210^USA OBR|1|0bab3f94-feb4-4915-939d-1adc5da201f3^Testing Lab pakupyya^12D4567890^CLIA|0bab3f94-feb4-4915-939d-1adc5da201f3^Testing Lab pakupyya^12D4567890^CLIA|94531-1^SARS-CoV-2 (COVID-19) RNA panel - Respiratory system specimen by NAA with probe detection^LN|||20240605183958|||||||||1245319599^McTester^Phil^^^^^^NPI&2.16.840.1.113883.4.6&ISO^L^^^NPI|^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|||||20240605185501|||F OBX|1|CWE|94500-6^SARS-CoV-2 (COVID-19) RNA [Presence] in Respiratory system specimen by NAA with probe detection^LN^^^^^^COVID-19||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||F|||20240605183958|12D4567890^Testing Lab pakupyyazibjewjklzmadxbqaxgjholhovcgywxpamrkbqktramfvlryonijtkjcctefpztqwdxvjyijsnzagcnazrxmcdcnatpuvoifpektpywzlbbaylloiigvthhjzqhuntxwnmxsbhmzzzmhvdrszuotabmwxgjmysgkiokkkaevrtfctkxfzdxrueqzocptrfpeebbyyrswetzujmeglgdwrbycbbml^CLIA||CareStart COVID-19 MDx RT-PCR_Access Bio, Inc.^CareStart COVID-19 MDx RT-PCR^^^^^^^CareStart COVID-19 MDx RT-PCR_Access Bio, Inc.|^^MNI|20240605185458||||Testing Lab pakupyyazibjewjklzmadxbqaxgjholhovcgyw^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Denver^MO^80210^USA OBX|2|CWE|95419-8^Has symptoms related to condition of interest^LN^^^^2.69^^Has symptoms related to condition of interest||Y^Yes^HL70136||||||F|||20240605183958|12D4567890^Testing Lab pakupyyazibjewjklzmadxbqaxgjholhovcgywxpamrkbqktramfvlryonijtkjcctefpztqwdxvjyijsnzagcnazrxmcdcnatpuvoifpektpywzlbbaylloiigvthhjzqhuntxwnmxsbhmzzzmhvdrszuotabmwxgjmysgkiokkkaevrtfctkxfzdxrueqzocptrfpeebbyyrswetzujmeglgdwrbycbbml^CLIA||||||||Testing Lab pakupyyazibjewjklzmadxbqaxgjholhovcgyw^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Denver^MO^80210^USA|||||QST OBX|3|DT|11368-8^Illness or injury onset date and time^LN^^^^^^Illness or injury onset date and time||20240601000000||||||F|||20240605183958|12D4567890^Testing Lab pakupyyazibjewjklzmadxbqaxgjholhovcgywxpamrkbqktramfvlryonijtkjcctefpztqwdxvjyijsnzagcnazrxmcdcnatpuvoifpektpywzlbbaylloiigvthhjzqhuntxwnmxsbhmzzzmhvdrszuotabmwxgjmysgkiokkkaevrtfctkxfzdxrueqzocptrfpeebbyyrswetzujmeglgdwrbycbbml^CLIA||||||||Testing Lab pakupyyazibjewjklzmadxbqaxgjholhovcgyw^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Denver^MO^80210^USA|||||QST OBX|4|CWE|82810-3^Pregnancy status^LN^^^^2.68^^Pregnancy status||60001007^Not pregnant^SCT||||||F|||20240605183958|12D4567890^Testing Lab pakupyyazibjewjklzmadxbqaxgjholhovcgywxpamrkbqktramfvlryonijtkjcctefpztqwdxvjyijsnzagcnazrxmcdcnatpuvoifpektpywzlbbaylloiigvthhjzqhuntxwnmxsbhmzzzmhvdrszuotabmwxgjmysgkiokkkaevrtfctkxfzdxrueqzocptrfpeebbyyrswetzujmeglgdwrbycbbml^CLIA||||||||Testing Lab pakupyyazibjewjklzmadxbqaxgjholhovcgyw^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Denver^MO^80210^USA|||||QST OBX|5|CWE|95418-0^Employed in a healthcare setting^LN^^^^2.69^^Employed in a healthcare setting||Y^Yes^HL70136||||||F|||20240605183958|12D4567890^Testing Lab pakupyyazibjewjklzmadxbqaxgjholhovcgywxpamrkbqktramfvlryonijtkjcctefpztqwdxvjyijsnzagcnazrxmcdcnatpuvoifpektpywzlbbaylloiigvthhjzqhuntxwnmxsbhmzzzmhvdrszuotabmwxgjmysgkiokkkaevrtfctkxfzdxrueqzocptrfpeebbyyrswetzujmeglgdwrbycbbml^CLIA||||||||Testing Lab pakupyyazibjewjklzmadxbqaxgjholhovcgyw^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Denver^MO^80210^USA|||||QST OBX|6|CWE|95421-4^Resides in a congregate care setting^LN^^^^2.69^^Resides in a congregate care setting||Y^Yes^HL70136||||||F|||20240605183958|12D4567890^Testing Lab pakupyyazibjewjklzmadxbqaxgjholhovcgywxpamrkbqktramfvlryonijtkjcctefpztqwdxvjyijsnzagcnazrxmcdcnatpuvoifpektpywzlbbaylloiigvthhjzqhuntxwnmxsbhmzzzmhvdrszuotabmwxgjmysgkiokkkaevrtfctkxfzdxrueqzocptrfpeebbyyrswetzujmeglgdwrbycbbml^CLIA||||||||Testing Lab pakupyyazibjewjklzmadxbqaxgjholhovcgyw^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Denver^MO^80210^USA|||||QST SPM|1|0bab3f94-feb4-4915-939d-1adc5da201f3&Testing Lab pakupyya&12D4567890&CLIA^0bab3f94-feb4-4915-939d-1adc5da201f3&Testing Lab pakupyya&12D4567890&CLIA||258500001^Nasopharyngeal swab^SCT^^^^2.67^^Nasopharyngeal swab||||87100004^Topography unknown (body structure)^SCT^^^^^^Topography unknown (body structure)|||||||||20240605183958|20240605183958 \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/translation-test-config.csv b/prime-router/src/testIntegration/resources/datatests/translation-test-config.csv index 02dafb13acc..b5210fc1b84 100644 --- a/prime-router/src/testIntegration/resources/datatests/translation-test-config.csv +++ b/prime-router/src/testIntegration/resources/datatests/translation-test-config.csv @@ -48,7 +48,7 @@ FHIR_to_HL7/sample_AL_20240624-0001.fhir,,FHIR_to_HL7/sample_AL_20240624-0001.hl FHIR_to_HL7/sample_ID_20240624-0001.fhir,,FHIR_to_HL7/sample_ID_20240624-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/ID/ID-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" FHIR_to_HL7/sample_PR_20240624-0001.fhir,,FHIR_to_HL7/sample_PR_20240624-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/PR/PR-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" FHIR_to_HL7/sample_OK_20240628-0001.fhir,,FHIR_to_HL7/sample_OK_20240628-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/OK/OK-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" -FHIR_to_HL7/sample_MO_20240628-0001.fhir,,FHIR_to_HL7/sample_MO_20240628-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/MO/MO-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" +FHIR_to_HL7/sample_MO_20240628-0001.fhir,,FHIR_to_HL7/sample_MO_20240628-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/MO/MO-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","mo-phd.full-elr","","" FHIR_to_HL7/sample_TN_20240701-0001.fhir,,FHIR_to_HL7/sample_TN_20240701-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/TN/TN-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" FHIR_to_HL7/sample_VT_20240628-0001.fhir,,FHIR_to_HL7/sample_VT_20240628-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/VT/VT-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","vt-doh.full-elr","","" FHIR_to_HL7/sample_MH_20240701-0001.fhir,,FHIR_to_HL7/sample_MH_20240701-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/MH/MH-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" diff --git a/prime-router/src/testIntegration/resources/settings/organizations.yml b/prime-router/src/testIntegration/resources/settings/organizations.yml index 94a76b29998..064f829f62c 100644 --- a/prime-router/src/testIntegration/resources/settings/organizations.yml +++ b/prime-router/src/testIntegration/resources/settings/organizations.yml @@ -575,4 +575,116 @@ enrichmentSchemaNames: - "classpath:/metadata/fhir_transforms/common/suppress-non-npi.yml,classpath:/metadata/fhir_transforms/common/suppress-non-npi.yml" timeZone: null - dateTimeFormat: "OFFSET" \ No newline at end of file + dateTimeFormat: "OFFSET" +- name: "mo-phd" + description: "Missouri Public Health Department" + jurisdiction: "STATE" + stateCode: "MO" + countyName: null + filters: null + featureFlags: null + keys: null + senders: [] + receivers: + - name: "full-elr" + organizationName: "mo-phd" + topic: "full-elr" + customerStatus: "active" + translation: ! + schemaName: "azure:/metadata/hl7_mapping/receivers/STLTs/MO/MO-receiver-transform.yml" + useTestProcessingMode: false + useBatchHeaders: true + receivingApplicationName: "MOELR^2.16.840.1.114222.4.3.3.36^ISO" + receivingApplicationOID: "2.16.840.1.114222.4.3.3.36" + receivingFacilityName: "MODHSS^2.16.840.1.114222.4.3.2.2.1.163^ISO" + receivingFacilityOID: "2.16.840.1.114222.4.3.2.2.1.163" + messageProfileId: null + replaceValue: {} + replaceValueAwithB: null + reportingFacilityName: "CDC PRIME" + reportingFacilityId: "11D2030855" + reportingFacilityIdType: null + suppressQstForAoe: true + suppressHl7Fields: "MSH-19-3, PID-15-3, ORC-14-1, OBR-17-1" + suppressAoe: false + defaultAoeToUnknown: false + replaceUnicodeWithAscii: false + useBlankInsteadOfUnknown: null + truncateHDNamespaceIds: true + truncateHl7Fields: "MSH-3-1, PID-3-3, PID-3-6, ORC-2-2, ORC-7-10-5, OBR-2-2, OBR-3-2, SPM-2-1-2, SPM-2-2-2, ORC-21-1, OBX-23-1, BX-15.1, OBX-23.10 " + usePid14ForPatientEmail: false + convertTimestampToDateTime: null + cliaForOutOfStateTesting: null + cliaForSender: {} + phoneNumberFormatting: "STANDARD" + suppressNonNPI: false + processingModeCode: null + replaceDiiWithOid: null + applyOTCDefault: false + useOrderingFacilityName: "STANDARD" + valueSetOverrides: {} + nameFormat: "STANDARD" + receivingOrganization: null + convertPositiveDateTimeOffsetToNegative: false + stripInvalidCharsRegex: null + convertDateTimesToReceiverLocalTime: false + useHighPrecisionHeaderDateTimeFormat: false + type: "HL7" + truncationConfig: + truncateHDNamespaceIds: true + truncateHl7Fields: + - "MSH-3-1" + - "PID-3-3" + - "PID-3-6" + - "ORC-2-2" + - "ORC-7-10-5" + - "OBR-2-2" + - "OBR-3-2" + - "SPM-2-1-2" + - "SPM-2-2-2" + - "ORC-21-1" + - "OBX-23-1" + - "OBX-15.1" + - "OBX-23.10" + customLengthHl7Fields: {} + jurisdictionalFilter: + - "(Bundle.entry.resource.ofType(ServiceRequest)[0].requester.resolve().organization.resolve().address.state = 'MO') or (Bundle.entry.resource.ofType(Patient).address.state = 'MO')" + qualityFilter: + # Message id is not empty (MSH-10) + - "Bundle.identifier.value.exists()" + - "Bundle.entry.resource.ofType(Patient).name.family.exists()" + - "Bundle.entry.resource.ofType(Patient).name.given.count() > 0" + - "Bundle.entry.resource.ofType(Patient).birthDate.exists()" + # Specimen type (SPM-4) is not empty + - "Bundle.entry.resource.ofType(Specimen).where(type.empty()).count() = 0" + # Patient has at least a street address(PID-11-1), postal code (PID-11-5),phone(PID-13) or email(PID-13-4) + - "Bundle.entry.resource.ofType(Patient).where(address.line[0].empty() and address.postalCode.empty() and telecom.where(system = 'phone').value.empty() and telecom.where(system = 'email').value.empty()).count() = 0" + - "((Bundle.entry.resource.ofType(Specimen).collection.collectedPeriod.exists() or Bundle.entry.resource.ofType(Specimen).collection.collected.exists()) or (Bundle.entry.resource.ofType(ServiceRequest).occurrence.exists() or Bundle.entry.resource.ofType(Observation).effective.exists()))" + routingFilter: [] + processingModeFilter: [] + reverseTheQualityFilter: false + conditionFilter: + # Accept COVID only + - "(%resource.code.coding.extension('https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code').value.where(code in ('840539006')).exists())" + mappedConditionFilter: [] + deidentify: false + deidentifiedValue: "" + timing: + operation: "MERGE" + numberPerDay: 12 + initialTime: "01:20" + timeZone: "EASTERN" + maxReportCount: 100 + whenEmpty: + action: "NONE" + onlyOncePerDay: false + description: "" + transport: + type: SFTP + host: sftp + port: 22 + filePath: ./upload + credentialName: DEFAULT-SFTP + enrichmentSchemaNames: [] + timeZone: "CENTRAL" + dateTimeFormat: "LOCAL" \ No newline at end of file From 56bf6b39a50160ade09bfb76f4b639968ea4946f Mon Sep 17 00:00:00 2001 From: Jessica Willis Date: Thu, 1 Aug 2024 08:58:04 -0400 Subject: [PATCH 2/4] Cleaning up mo list of truncated fields --- prime-router/settings/STLTs/MO/mo-phd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prime-router/settings/STLTs/MO/mo-phd.yml b/prime-router/settings/STLTs/MO/mo-phd.yml index ff81ac075c2..e9be98c80b8 100644 --- a/prime-router/settings/STLTs/MO/mo-phd.yml +++ b/prime-router/settings/STLTs/MO/mo-phd.yml @@ -33,7 +33,7 @@ replaceUnicodeWithAscii: false useBlankInsteadOfUnknown: null truncateHDNamespaceIds: true - truncateHl7Fields: "MSH-3-1, PID-3-3, PID-3-6, ORC-2-2, ORC-7-10-5, OBR-2-2, OBR-3-2, SPM-2-1-2, SPM-2-2-2, ORC-21-1, OBX-23-1, BX-15.1, OBX-23.10 " + truncateHl7Fields: "MSH-3-1, PID-3-3, PID-3-6-1, ORC-2-2, ORC-7-10-5, OBR-2-2, OBR-3-2, SPM-2-1-2, SPM-2-2-2, ORC-21-1, OBX-23-1, OBX-15.1, OBX-23-10 " usePid14ForPatientEmail: false convertTimestampToDateTime: null cliaForOutOfStateTesting: null From bcaafc6e2823151750002093578fca74933bcd1c Mon Sep 17 00:00:00 2001 From: Jessica Willis Date: Fri, 2 Aug 2024 12:21:01 -0400 Subject: [PATCH 3/4] More cleanup --- prime-router/settings/STLTs/MO/mo-phd.yml | 6 +++--- .../testIntegration/resources/settings/organizations.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/prime-router/settings/STLTs/MO/mo-phd.yml b/prime-router/settings/STLTs/MO/mo-phd.yml index e9be98c80b8..f68d5886964 100644 --- a/prime-router/settings/STLTs/MO/mo-phd.yml +++ b/prime-router/settings/STLTs/MO/mo-phd.yml @@ -33,7 +33,7 @@ replaceUnicodeWithAscii: false useBlankInsteadOfUnknown: null truncateHDNamespaceIds: true - truncateHl7Fields: "MSH-3-1, PID-3-3, PID-3-6-1, ORC-2-2, ORC-7-10-5, OBR-2-2, OBR-3-2, SPM-2-1-2, SPM-2-2-2, ORC-21-1, OBX-23-1, OBX-15.1, OBX-23-10 " + truncateHl7Fields: "MSH-3-1, PID-3-3, PID-3-6-1, ORC-2-2, ORC-7-10-5, OBR-2-2, OBR-3-2, SPM-2-1-2, SPM-2-2-2, ORC-21-1, OBX-23-1, OBX-15-1, OBX-23-10 " usePid14ForPatientEmail: false convertTimestampToDateTime: null cliaForOutOfStateTesting: null @@ -66,8 +66,8 @@ - "SPM-2-2-2" - "ORC-21-1" - "OBX-23-1" - - "OBX-15.1" - - "OBX-23.10" + - "OBX-15-1" + - "OBX-23-10" customLengthHl7Fields: {} jurisdictionalFilter: - "(Bundle.entry.resource.ofType(ServiceRequest)[0].requester.resolve().organization.resolve().address.state = 'MO') or (Bundle.entry.resource.ofType(Patient).address.state = 'MO')" diff --git a/prime-router/src/testIntegration/resources/settings/organizations.yml b/prime-router/src/testIntegration/resources/settings/organizations.yml index 064f829f62c..89b4a15e13b 100644 --- a/prime-router/src/testIntegration/resources/settings/organizations.yml +++ b/prime-router/src/testIntegration/resources/settings/organizations.yml @@ -611,7 +611,7 @@ replaceUnicodeWithAscii: false useBlankInsteadOfUnknown: null truncateHDNamespaceIds: true - truncateHl7Fields: "MSH-3-1, PID-3-3, PID-3-6, ORC-2-2, ORC-7-10-5, OBR-2-2, OBR-3-2, SPM-2-1-2, SPM-2-2-2, ORC-21-1, OBX-23-1, BX-15.1, OBX-23.10 " + truncateHl7Fields: "MSH-3-1, PID-3-3, PID-3-6, ORC-2-2, ORC-7-10-5, OBR-2-2, OBR-3-2, SPM-2-1-2, SPM-2-2-2, ORC-21-1, OBX-23-1, OBX-15-1, OBX-23.10 " usePid14ForPatientEmail: false convertTimestampToDateTime: null cliaForOutOfStateTesting: null @@ -644,7 +644,7 @@ - "SPM-2-2-2" - "ORC-21-1" - "OBX-23-1" - - "OBX-15.1" + - "OBX-15-1" - "OBX-23.10" customLengthHl7Fields: {} jurisdictionalFilter: From 7fa53f654941a7250306d3ee5e5d25c7e27524e7 Mon Sep 17 00:00:00 2001 From: Jessica Willis Date: Fri, 9 Aug 2024 13:16:49 -0700 Subject: [PATCH 4/4] Fixing syntax of truncation fields --- .../src/testIntegration/resources/settings/organizations.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prime-router/src/testIntegration/resources/settings/organizations.yml b/prime-router/src/testIntegration/resources/settings/organizations.yml index 89b4a15e13b..1d6a0c9d702 100644 --- a/prime-router/src/testIntegration/resources/settings/organizations.yml +++ b/prime-router/src/testIntegration/resources/settings/organizations.yml @@ -611,7 +611,7 @@ replaceUnicodeWithAscii: false useBlankInsteadOfUnknown: null truncateHDNamespaceIds: true - truncateHl7Fields: "MSH-3-1, PID-3-3, PID-3-6, ORC-2-2, ORC-7-10-5, OBR-2-2, OBR-3-2, SPM-2-1-2, SPM-2-2-2, ORC-21-1, OBX-23-1, OBX-15-1, OBX-23.10 " + truncateHl7Fields: "MSH-3-1, PID-3-3, PID-3-6, ORC-2-2, ORC-7-10-5, OBR-2-2, OBR-3-2, SPM-2-1-2, SPM-2-2-2, ORC-21-1, OBX-23-1, OBX-15-1, OBX-23-10 " usePid14ForPatientEmail: false convertTimestampToDateTime: null cliaForOutOfStateTesting: null @@ -645,7 +645,7 @@ - "ORC-21-1" - "OBX-23-1" - "OBX-15-1" - - "OBX-23.10" + - "OBX-23-10" customLengthHl7Fields: {} jurisdictionalFilter: - "(Bundle.entry.resource.ofType(ServiceRequest)[0].requester.resolve().organization.resolve().address.state = 'MO') or (Bundle.entry.resource.ofType(Patient).address.state = 'MO')"