diff --git a/.github/workflows/frontend_ci.yml b/.github/workflows/frontend_ci.yml index b1f93c6bb21..dc05dc522e0 100644 --- a/.github/workflows/frontend_ci.yml +++ b/.github/workflows/frontend_ci.yml @@ -158,7 +158,7 @@ jobs: cache-dependency-path: frontend-react/yarn.lock - name: Download blob reports from GitHub Actions Artifacts - uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 with: path: frontend-react/e2e-data pattern: frontend-e2e-data--shard-* diff --git a/.github/workflows/release_to_github.yml b/.github/workflows/release_to_github.yml index 363c01282bc..373e48d4ccc 100644 --- a/.github/workflows/release_to_github.yml +++ b/.github/workflows/release_to_github.yml @@ -83,13 +83,13 @@ jobs: fetch-depth: 0 - name: Download router artifact if: ${{ needs.wf_vars.outputs.enable_builds == 'true' }} - uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 with: name: prime-router-build-${{ needs.wf_vars.outputs.version }} path: archives/ - name: Download frontend artifact if: ${{ needs.wf_vars.outputs.enable_builds == 'true' }} - uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 with: name: static-website-react-${{ needs.wf_vars.outputs.version }} path: archives/ diff --git a/prime-router/src/main/resources/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml b/prime-router/src/main/resources/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml index b67d5ddff39..5e3ee512e1e 100644 --- a/prime-router/src/main/resources/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml +++ b/prime-router/src/main/resources/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml @@ -627,12 +627,12 @@ elements: values: partial: A corrected: C + entered-in-error: C amended: C final: F preliminary: P cancelled: X - # Observation - name: sr-observation-value-type-cwe condition: '%resource.value is CodeableConcept' diff --git a/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_CO_20240403.hl7 b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_CO_20240403.hl7 index dab0af227b0..4bbfc29e9c5 100644 --- a/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_CO_20240403.hl7 +++ b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_CO_20240403.hl7 @@ -1 +1 @@ -MSH|^~\&|CDC PRIME - Atlanta, Georgia (Dekalb)^2.16.840.1.114222.4.1.237821^ISO|CDC PRIME^11D2030855^CLIA|CO-ELR|CO|20240321222008+0000||ORU^R01^ORU_R01|a375227a-751f-4035-8e0b-e81322f356c9|P|2.5.1|||NE|NE|USA|UNICODE UTF-8|ENG^English^ISO||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||20240321194832+0000 PID|1||10083d1d-dc8b-4ea0-91fa-8744cf0f013b^^^Testing Lab&12D4567890&CLIA^PI^Testing Lab&12D4567890&CLIA||Wolf^Karolann^^^^^L||19700201|F||1002-5^native^^^^^2.5.1^^native|123 Main st^^Austtin^TX^78731^USA||(800) 232 4636^PRS^CP^^1^800^2324636^^^^^(800) 232 4636|^NET^Internet^wolf@test.com||||||||H^Hispanic or Latino^HL70189^^^^2.9^^Hispanic or Latino||||||||N ORC|RE|a375227a-751f-4035-8e0b-e81322f356c9^Testing Lab^12D4567890^CLIA|a375227a-751f-4035-8e0b-e81322f356c9^Testing Lab^12D4567890^CLIA|||||||||1245319599^McTester^Phil^^^^^^NPI&2.16.840.1.113883.4.6&ISO^L^^^NPI||(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|20240321222008+0000||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|321 Ocean Drive^^Houston^TX^77001^USA OBR|1|a375227a-751f-4035-8e0b-e81322f356c9^Testing Lab^12D4567890^CLIA|a375227a-751f-4035-8e0b-e81322f356c9^Testing Lab^12D4567890^CLIA|95422-2^Influenza virus A and B and SARS-CoV-2 (COVID-19) RNA panel - Respiratory system specimen by NAA with probe detection^LN|||20240321220508+0000|||||||||1245319599^McTester^Phil^^^^^^NPI&2.16.840.1.113883.4.6&ISO^L^^^NPI|(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|||||20240321222008+0000 OBX|1|CWE|92141-1^Influenza virus B RNA [Presence] in Respiratory system specimen by NAA with probe detection^LN^^^^^^Flu B||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||W|||20240321220508+0000|12D4567890^Testing Lab^CLIA||Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay^^^^^^^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)|10190302000222^^DII|20240321222008+0000||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA NTE|1||Corrected Result: DUPLICATE_TEST OBX|2|CWE|95423-0^Influenza virus A and B and SARS-CoV-2 (COVID-19) identified in Respiratory system specimen by NAA with probe detection^LN^^^^^^COVID-19||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||W|||20240321220508+0000|12D4567890^Testing Lab^CLIA||Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay^^^^^^^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)|10190302000222^^DII|20240321222008+0000||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA OBX|3|CWE|92142-9^Influenza virus A RNA [Presence] in Respiratory system specimen by NAA with probe detection^LN^^^^^^Flu A||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||W|||20240321220508+0000|12D4567890^Testing Lab^CLIA||Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay^^^^^^^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)|10190302000222^^DII|20240321222008+0000||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA OBX|4|CWE|95419-8^Has symptoms related to condition of interest^LN^^^^2.69^^Has symptoms related to condition of interest||Y^Yes^HL70136|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|5|DT|11368-8^Illness or injury onset date and time^LN^^^^^^Illness or injury onset date and time||20240321000000+0000|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|6|CWE|82810-3^Pregnancy status^LN^^^^2.68^^Pregnancy status||60001007^Not pregnant^SCT|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|7|CWE|95418-0^Employed in a healthcare setting^LN^^^^2.69^^Employed in a healthcare setting||Y^Yes^HL70136|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|8|CWE|95421-4^Resides in a congregate care setting^LN^^^^2.69^^Resides in a congregate care setting||Y^Yes^HL70136|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|9|CWE|76691-5^Gender identity^LN^^^^^^Gender identity||446151000124109^Male gender identity^SCT|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST SPM|1|a375227a-751f-4035-8e0b-e81322f356c9&Testing Lab&12D4567890&CLIA^a375227a-751f-4035-8e0b-e81322f356c9&Testing Lab&12D4567890&CLIA||258467004^Nasopharyngeal washings^SCT^^^^2.67^^Nasopharyngeal washings||||87100004^Topography unknown (body structure)^SCT^^^^^^Topography unknown (body structure)|||||||||20240321220508+0000|20240321220508+0000 \ No newline at end of file +MSH|^~\&|CDC PRIME - Atlanta, Georgia (Dekalb)^2.16.840.1.114222.4.1.237821^ISO|CDC PRIME^11D2030855^CLIA|CO-ELR|CO|20240321222008+0000||ORU^R01^ORU_R01|a375227a-751f-4035-8e0b-e81322f356c9|P|2.5.1|||NE|NE|USA|UNICODE UTF-8|ENG^English^ISO||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||20240321194832+0000 PID|1||10083d1d-dc8b-4ea0-91fa-8744cf0f013b^^^Testing Lab&12D4567890&CLIA^PI^Testing Lab&12D4567890&CLIA||Wolf^Karolann^^^^^L||19700201|F||1002-5^native^^^^^2.5.1^^native|123 Main st^^Austtin^TX^78731^USA||(800) 232 4636^PRS^CP^^1^800^2324636^^^^^(800) 232 4636|^NET^Internet^wolf@test.com||||||||H^Hispanic or Latino^HL70189^^^^2.9^^Hispanic or Latino||||||||N ORC|RE|a375227a-751f-4035-8e0b-e81322f356c9^Testing Lab^12D4567890^CLIA|a375227a-751f-4035-8e0b-e81322f356c9^Testing Lab^12D4567890^CLIA|||||||||1245319599^McTester^Phil^^^^^^NPI&2.16.840.1.113883.4.6&ISO^L^^^NPI||(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|20240321222008+0000||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|321 Ocean Drive^^Houston^TX^77001^USA OBR|1|a375227a-751f-4035-8e0b-e81322f356c9^Testing Lab^12D4567890^CLIA|a375227a-751f-4035-8e0b-e81322f356c9^Testing Lab^12D4567890^CLIA|95422-2^Influenza virus A and B and SARS-CoV-2 (COVID-19) RNA panel - Respiratory system specimen by NAA with probe detection^LN|||20240321220508+0000|||||||||1245319599^McTester^Phil^^^^^^NPI&2.16.840.1.113883.4.6&ISO^L^^^NPI|(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|||||20240321222008+0000|||C OBX|1|CWE|92141-1^Influenza virus B RNA [Presence] in Respiratory system specimen by NAA with probe detection^LN^^^^^^Flu B||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||W|||20240321220508+0000|12D4567890^Testing Lab^CLIA||Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay^^^^^^^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)|10190302000222^^DII|20240321222008+0000||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA NTE|1||Corrected Result: DUPLICATE_TEST OBX|2|CWE|95423-0^Influenza virus A and B and SARS-CoV-2 (COVID-19) identified in Respiratory system specimen by NAA with probe detection^LN^^^^^^COVID-19||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||W|||20240321220508+0000|12D4567890^Testing Lab^CLIA||Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay^^^^^^^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)|10190302000222^^DII|20240321222008+0000||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA OBX|3|CWE|92142-9^Influenza virus A RNA [Presence] in Respiratory system specimen by NAA with probe detection^LN^^^^^^Flu A||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||W|||20240321220508+0000|12D4567890^Testing Lab^CLIA||Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay^^^^^^^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)|10190302000222^^DII|20240321222008+0000||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA OBX|4|CWE|95419-8^Has symptoms related to condition of interest^LN^^^^2.69^^Has symptoms related to condition of interest||Y^Yes^HL70136|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|5|DT|11368-8^Illness or injury onset date and time^LN^^^^^^Illness or injury onset date and time||20240321000000+0000|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|6|CWE|82810-3^Pregnancy status^LN^^^^2.68^^Pregnancy status||60001007^Not pregnant^SCT|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|7|CWE|95418-0^Employed in a healthcare setting^LN^^^^2.69^^Employed in a healthcare setting||Y^Yes^HL70136|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|8|CWE|95421-4^Resides in a congregate care setting^LN^^^^2.69^^Resides in a congregate care setting||Y^Yes^HL70136|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|9|CWE|76691-5^Gender identity^LN^^^^^^Gender identity||446151000124109^Male gender identity^SCT|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST SPM|1|a375227a-751f-4035-8e0b-e81322f356c9&Testing Lab&12D4567890&CLIA^a375227a-751f-4035-8e0b-e81322f356c9&Testing Lab&12D4567890&CLIA||258467004^Nasopharyngeal washings^SCT^^^^2.67^^Nasopharyngeal washings||||87100004^Topography unknown (body structure)^SCT^^^^^^Topography unknown (body structure)|||||||||20240321220508+0000|20240321220508+0000 \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.fhir b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.fhir new file mode 100644 index 00000000000..fda7c714fba --- /dev/null +++ b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.fhir @@ -0,0 +1,715 @@ +{ + "resourceType": "Bundle", + "identifier": { + "value": "8c66de45-62e3-453c-a5b2-90b6f90a407c" + }, + "type": "message", + "timestamp": "2024-09-04T22:36:25.330Z", + "entry": [ + { + "fullUrl": "MessageHeader/f72ed4cf-0368-4dbb-8be6-66626d96dce0", + "resource": { + "resourceType": "MessageHeader", + "id": "f72ed4cf-0368-4dbb-8be6-66626d96dce0", + "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": "b47c73d" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-install-date", + "valueInstant": "2024-09-03T19:08:30Z" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-vendor-org", + "valueReference": { + "reference": "Organization/07640c5d-87cd-488b-9343-a226c5166539" + } + } + ], + "software": "PRIME SimpleReport", + "version": "b47c73d", + "endpoint": "https://simplereport.gov" + }, + "focus": [ + { + "reference": "Provenance/25ac95a9-e5df-46c3-a0b2-0d938cc13474" + }, + { + "reference": "DiagnosticReport/8c66de45-62e3-453c-a5b2-90b6f90a407c" + } + ] + } + }, + { + "fullUrl": "Provenance/25ac95a9-e5df-46c3-a0b2-0d938cc13474", + "resource": { + "resourceType": "Provenance", + "id": "25ac95a9-e5df-46c3-a0b2-0d938cc13474", + "recorded": "2024-09-04T22:36:25.330Z", + "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/8c66de45-62e3-453c-a5b2-90b6f90a407c", + "resource": { + "resourceType": "DiagnosticReport", + "id": "8c66de45-62e3-453c-a5b2-90b6f90a407c", + "identifier": [ + { + "value": "8c66de45-62e3-453c-a5b2-90b6f90a407c" + } + ], + "basedOn": [ + { + "reference": "ServiceRequest/c68eff18-e441-445e-8087-8c4364b6eec1" + } + ], + "status": "entered-in-error", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "94558-4" + } + ] + }, + "subject": { + "reference": "Patient/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "effectiveDateTime": "2024-09-04T22:21:21+00:00", + "issued": "2024-09-04T22:36:25+00:00", + "specimen": [ + { + "reference": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2" + } + ], + "result": [ + { + "reference": "Observation/003f9a7e-26bf-4c94-811c-ae58d96fb59b" + } + ] + } + }, + { + "fullUrl": "Patient/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e", + "resource": { + "resourceType": "Patient", + "id": "2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e", + "extension": [ + { + "url": "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-Race", + "code": "2131-1" + } + ], + "text": "other" + } + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/ethnic-group", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0189", + "code": "H", + "display": "Hispanic or Latino" + } + ], + "text": "Hispanic or Latino" + } + } + ], + "identifier": [ + { + "value": "2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + } + ], + "name": [ + { + "family": "Test", + "given": [ + "Patientfour" + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "(340) 555 5555", + "use": "mobile" + } + ], + "gender": "male", + "birthDate": "1994-07-28", + "address": [ + { + "line": [ + "456 SE Broadway" + ], + "city": "Fresno", + "district": "Fresno", + "state": "CA", + "postalCode": "93650", + "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": "CO", + "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": "CO", + "postalCode": "80210", + "country": "USA" + } + ] + } + }, + { + "fullUrl": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2", + "resource": { + "resourceType": "Specimen", + "id": "dc7af370-fc07-4b00-abc7-9b5dd87cf4d2", + "identifier": [ + { + "value": "12252b87-7cf7-46bd-af95-678ad8494417" + } + ], + "type": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "258500001" + } + ], + "text": "Nasopharyngeal swab" + }, + "subject": { + "reference": "Patient/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "receivedTime": "2024-09-04T22:21:21+00:00", + "collection": { + "collectedDateTime": "2024-09-04T22:21:21+00:00", + "bodySite": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "87100004" + } + ], + "text": "Topography unknown (body structure)" + } + } + } + }, + { + "fullUrl": "ServiceRequest/c68eff18-e441-445e-8087-8c4364b6eec1", + "resource": { + "resourceType": "ServiceRequest", + "id": "c68eff18-e441-445e-8087-8c4364b6eec1", + "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-09-04T22:36:21+00:00" + } + ], + "status": "completed", + "intent": "order", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "94558-4" + } + ] + }, + "subject": { + "reference": "Patient/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "requester": { + "reference": "PractitionerRole/2f27ddec-3920-47f3-ba7c-060489481b13" + }, + "performer": [ + { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + ], + "supportingInfo": [ + { + "reference": "Observation/a502cd02-074d-34f5-ae58-c43b495b5b42" + }, + { + "reference": "Observation/aa396021-efb3-3a87-8425-ff09d2830706" + }, + { + "reference": "Observation/e121ce8a-f781-3c42-8c88-5e40a76a6fd0" + }, + { + "reference": "Observation/42279871-9913-3168-8363-a2be9b7c3f55" + }, + { + "reference": "Observation/32c4068c-ccb8-3b97-a7e7-5456ae20eba4" + } + ] + } + }, + { + "fullUrl": "Device/3b4282df-bb1d-495c-aecb-790d202159cc", + "resource": { + "resourceType": "Device", + "id": "3b4282df-bb1d-495c-aecb-790d202159cc", + "identifier": [ + { + "value": "No Equipment" + } + ], + "manufacturer": "Access Bio, Inc.", + "deviceName": [ + { + "name": "CareStart COVID-19 Antigen test", + "type": "model-name" + } + ] + } + }, + { + "fullUrl": "PractitionerRole/2f27ddec-3920-47f3-ba7c-060489481b13", + "resource": { + "resourceType": "PractitionerRole", + "id": "2f27ddec-3920-47f3-ba7c-060489481b13", + "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/003f9a7e-26bf-4c94-811c-ae58d96fb59b", + "resource": { + "resourceType": "Observation", + "id": "003f9a7e-26bf-4c94-811c-ae58d96fb59b", + "status": "entered-in-error", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "94558-4" + } + ], + "text": "COVID-19" + }, + "subject": { + "reference": "Patient/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "issued": "2024-09-04T22:36:21.596Z", + "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" + } + ] + } + ], + "note": [ + { + "text": "Corrected Result: DUPLICATE_TEST" + } + ], + "method": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/testkit-name-id", + "valueCoding": { + "code": "CareStart COVID-19 Antigen test_Access Bio, Inc." + } + } + ], + "coding": [ + { + "display": "CareStart COVID-19 Antigen test" + } + ] + }, + "specimen": { + "reference": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2" + }, + "device": { + "reference": "Device/3b4282df-bb1d-495c-aecb-790d202159cc" + } + } + }, + { + "fullUrl": "Observation/a502cd02-074d-34f5-ae58-c43b495b5b42", + "resource": { + "resourceType": "Observation", + "id": "a502cd02-074d-34f5-ae58-c43b495b5b42", + "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/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/ValueSet/v2-0136", + "code": "N", + "display": "No" + } + ] + } + } + }, + { + "fullUrl": "Observation/aa396021-efb3-3a87-8425-ff09d2830706", + "resource": { + "resourceType": "Observation", + "id": "aa396021-efb3-3a87-8425-ff09d2830706", + "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/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "60001007", + "display": "Not pregnant" + } + ] + } + } + }, + { + "fullUrl": "Observation/e121ce8a-f781-3c42-8c88-5e40a76a6fd0", + "resource": { + "resourceType": "Observation", + "id": "e121ce8a-f781-3c42-8c88-5e40a76a6fd0", + "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/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/ValueSet/v2-0136", + "code": "N", + "display": "No" + } + ] + } + } + }, + { + "fullUrl": "Observation/42279871-9913-3168-8363-a2be9b7c3f55", + "resource": { + "resourceType": "Observation", + "id": "42279871-9913-3168-8363-a2be9b7c3f55", + "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/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/ValueSet/v2-0136", + "code": "N", + "display": "No" + } + ] + } + } + }, + { + "fullUrl": "Observation/32c4068c-ccb8-3b97-a7e7-5456ae20eba4", + "resource": { + "resourceType": "Observation", + "id": "32c4068c-ccb8-3b97-a7e7-5456ae20eba4", + "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": "76691-5", + "display": "Gender identity" + } + ], + "text": "Gender identity" + }, + "subject": { + "reference": "Patient/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/5.0.0/CodeSystem-data-absent-reason.html", + "code": "asked-declined", + "display": "Asked But Declined" + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.hl7 b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.hl7 new file mode 100644 index 00000000000..e8c00cabbcc --- /dev/null +++ b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.hl7 @@ -0,0 +1,13 @@ +MSH|^~\&|CDC PRIME - Atlanta^2.16.840.1.114222.4.1.237821^ISO|Simple Report^CDPH000085^CLIA|CDPH CA REDIE^2.16.840.1.114222.4.3.3.10.1.1^ISO|CDPH_CID^2.16.840.1.114222.4.1.214104^ISO|20240904223625+0000||ORU^R01^ORU_R01|8c66de45-62e3-453c-a5b2-90b6f90a407c|P|2.5.1|||NE|NE|USA|UNICODE UTF-8|ENG^English^ISO||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||20240903190830+0000 +PID|1||2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e^^^Testing Lab&12D4567890&CLIA^PI^Testing Lab&12D4567890&CLIA||Test^Patientfour^^^^^L||19940728|M||2131-1^other^HL70005^^^^2.5.1|456 SE Broadway^^Fresno^CA^93650^USA^^^Fresno||(340) 555 5555^PRS^CP^^1^340^5555555^^^^^(340) 555 5555|||||||||H^Hispanic or Latino^HL70189^^^^2.9||||||||N +ORC|RE|8c66de45-62e3-453c-a5b2-90b6f90a407c^Testing Lab^12D4567890^CLIA|8c66de45-62e3-453c-a5b2-90b6f90a407c^Testing Lab^12D4567890^CLIA|||||||||1245319599^McTester^Phil^^^^^^NPI&2.16.840.1.113883.4.6&ISO^L^^^NPI||(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|20240904223621+0000||||||Testing Lab^^^^^^XX|123 Beach Way^^Denver^CO^80210^USA|(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|321 Ocean Drive^^Denver^CO^80210^USA +OBR|1|8c66de45-62e3-453c-a5b2-90b6f90a407c^Testing Lab^12D4567890^CLIA|8c66de45-62e3-453c-a5b2-90b6f90a407c^Testing Lab^12D4567890^CLIA|94558-4^^LN|||20240904222121+0000|||||||||1245319599^McTester^Phil^^^^^^NPI&2.16.840.1.113883.4.6&ISO^L^^^NPI|(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|||||20240904223625+0000|||C +OBX|1|CE|94558-4^COVID-19^LN||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||W|||20240904222121+0000|12D4567890^Testing Lab^CLIA||^CareStart COVID-19 Antigen test^^^^^^^CareStart COVID-19 Antigen test|No Equipment|20240904223621+0000||||Testing Lab-12D4567890^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Denver^CO^80210^USA +NTE|1|L +NTE|2|L|95419-8 Has symptoms related to condition of interest: No N HL70136 +NTE|3|L|82810-3 Pregnancy status: Not pregnant 60001007 SCT +NTE|4|L|95418-0 Employed in a healthcare setting: No N HL70136 +NTE|5|L|95421-4 Resides in a congregate care setting: No N HL70136 +NTE|6|L|76691-5 Gender identity: Asked But Declined asked-declined +SPM|1|8c66de45-62e3-453c-a5b2-90b6f90a407c&Testing Lab&12D4567890&CLIA^8c66de45-62e3-453c-a5b2-90b6f90a407c&Testing Lab&12D4567890&CLIA||258500001^Nasopharyngeal swab^SCT^^^^2.67||||87100004^Topography unknown (body structure)^SCT^^^^^^Topography unknown (body structure)|||||||||20240904222121+0000|20240904222121+0000 \ 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 48a4472482d..98ca0f96664 100644 --- a/prime-router/src/testIntegration/resources/datatests/translation-test-config.csv +++ b/prime-router/src/testIntegration/resources/datatests/translation-test-config.csv @@ -67,4 +67,5 @@ FHIR_to_HL7/sample_MN_20240816-0001.fhir,,FHIR_to_HL7/sample_MN_20240816-0001.hl FHIR_to_HL7/sample_MA_20240805-0001.fhir,,FHIR_to_HL7/sample_MA_20240805-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/MA/MA-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" FHIR_to_HL7/sample_AR_20240805-0001.fhir,,FHIR_to_HL7/sample_AR_20240805-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/AR/AR-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" FHIR_to_HL7/sample_ME_20240806-0001.fhir,,FHIR_to_HL7/sample_ME_20240806-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/ME/ME-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" -FHIR_to_HL7/sample_SR_CSVUPLOADER_20240819-0001.fhir,,FHIR_to_HL7/sample_SR_CSVUPLOADER_20240819-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/MA/MA-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" \ No newline at end of file +FHIR_to_HL7/sample_SR_CSVUPLOADER_20240819-0001.fhir,,FHIR_to_HL7/sample_SR_CSVUPLOADER_20240819-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/MA/MA-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" +FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.fhir,,FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/CA/CA-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" \ No newline at end of file