diff --git a/prime-router/settings/prod/0163-sc-onboarding-to-up-receiver.yml b/prime-router/settings/prod/0163-sc-onboarding-to-up-receiver.yml new file mode 100644 index 00000000000..3f154a9918a --- /dev/null +++ b/prime-router/settings/prod/0163-sc-onboarding-to-up-receiver.yml @@ -0,0 +1,94 @@ +# To submit this to localhost, run: +# +# ./prime multiple-settings set --env prod --input ./settings/prod/0163-sc-onboarding-to-up-receiver.yml +--- +- name: "sc-phd" + description: "South Carolina Public Health Department" + jurisdiction: "STATE" + stateCode: "SC" + countyName: null + filters: [] + featureFlags: null + keys: null + senders: [] + receivers: + - name: "full-elr" + organizationName: "sc-phd" + topic: "full-elr" + customerStatus: "inactive" + translation: ! + schemaName: "classpath:/metadata/hl7_mapping/receivers/STLTs/SC/SC-receiver-transform" + useTestProcessingMode: false + useBatchHeaders: true + receivingApplicationName: null + receivingApplicationOID: null + receivingFacilityName: null + receivingFacilityOID: null + messageProfileId: null + replaceValue: {} + replaceValueAwithB: {} + reportingFacilityName: null + reportingFacilityId: null + reportingFacilityIdType: null + suppressQstForAoe: false + suppressHl7Fields: null + suppressAoe: false + defaultAoeToUnknown: false + replaceUnicodeWithAscii: false + useBlankInsteadOfUnknown: null + truncateHDNamespaceIds: false + truncateHl7Fields: null + 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: false + truncateHl7Fields: [] + customLengthHl7Fields: {} + jurisdictionalFilter: + - "(Bundle.entry.resource.ofType(ServiceRequest)[0].requester.resolve().organization.resolve().address.state = 'SC') or (Bundle.entry.resource.ofType(Patient).address.state = 'SC')" + qualityFilter: + - "Bundle.entry.resource.ofType(MessageHeader).id.exists()" + - "Bundle.entry.resource.ofType(Patient).birthDate.exists()" + - "Bundle.entry.resource.ofType(Patient).name.family.exists()" + - "Bundle.entry.resource.ofType(Patient).name.given.count() > 0" + - "Bundle.entry.resource.ofType(Specimen).type.exists()" + - "(Bundle.entry.resource.ofType(Patient).address.line.exists() or Bundle.entry.resource.ofType(Patient).address.postalCode.exists() or Bundle.entry.resource.ofType(Patient).telecom.exists())" + - "((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: [] + mappedConditionFilter: [] + deidentify: false + deidentifiedValue: "" + timing: + operation: "MERGE" + numberPerDay: 12 + initialTime: "01:09" + timeZone: "EASTERN" + maxReportCount: 100 + whenEmpty: + action: "NONE" + onlyOncePerDay: false + description: "" + transport: [] + externalName: null + enrichmentSchemaNames: [] + timeZone: null + dateTimeFormat: "OFFSET" \ No newline at end of file diff --git a/prime-router/settings/staging/0169-sc-onboarding-to-up-receiver.yml b/prime-router/settings/staging/0169-sc-onboarding-to-up-receiver.yml new file mode 100644 index 00000000000..cf00f4dd4ca --- /dev/null +++ b/prime-router/settings/staging/0169-sc-onboarding-to-up-receiver.yml @@ -0,0 +1,99 @@ +# To submit this to localhost, run: +# +# ./prime multiple-settings set --env staging --input ./settings/staging/0163-sc-onboarding-to-up-receiver.yml +--- +- name: "sc-phd" + description: "South Carolina Public Health Department" + jurisdiction: "STATE" + stateCode: "SC" + countyName: null + filters: [] + featureFlags: null + keys: null + senders: [] + receivers: + - name: "full-elr" + organizationName: "sc-phd" + topic: "full-elr" + customerStatus: "inactive" + translation: ! + schemaName: "classpath:/metadata/hl7_mapping/receivers/STLTs/SC/SC-receiver-transform" + useTestProcessingMode: false + useBatchHeaders: true + receivingApplicationName: null + receivingApplicationOID: null + receivingFacilityName: null + receivingFacilityOID: null + messageProfileId: null + replaceValue: {} + replaceValueAwithB: {} + reportingFacilityName: null + reportingFacilityId: null + reportingFacilityIdType: null + suppressQstForAoe: false + suppressHl7Fields: null + suppressAoe: false + defaultAoeToUnknown: false + replaceUnicodeWithAscii: false + useBlankInsteadOfUnknown: null + truncateHDNamespaceIds: false + truncateHl7Fields: null + 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: false + truncateHl7Fields: [] + customLengthHl7Fields: {} + jurisdictionalFilter: + - "(Bundle.entry.resource.ofType(ServiceRequest)[0].requester.resolve().organization.resolve().address.state = 'SC') or (Bundle.entry.resource.ofType(Patient).address.state = 'SC')" + qualityFilter: + - "Bundle.entry.resource.ofType(MessageHeader).id.exists()" + - "Bundle.entry.resource.ofType(Patient).birthDate.exists()" + - "Bundle.entry.resource.ofType(Patient).name.family.exists()" + - "Bundle.entry.resource.ofType(Patient).name.given.count() > 0" + - "Bundle.entry.resource.ofType(Specimen).type.exists()" + - "(Bundle.entry.resource.ofType(Patient).address.line.exists() or Bundle.entry.resource.ofType(Patient).address.postalCode.exists() or Bundle.entry.resource.ofType(Patient).telecom.exists())" + - "((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: [] + mappedConditionFilter: [] + deidentify: false + deidentifiedValue: "" + timing: + operation: "MERGE" + numberPerDay: 12 + initialTime: "01:09" + timeZone: "EASTERN" + maxReportCount: 100 + whenEmpty: + action: "NONE" + onlyOncePerDay: false + description: "" + transport: ! + host: "172.17.6.20" + port: "22" + filePath: "./upload" + credentialName: null + type: "SFTP" + externalName: null + enrichmentSchemaNames: [] + timeZone: null + dateTimeFormat: "OFFSET" \ No newline at end of file diff --git a/prime-router/src/main/kotlin/fhirengine/utils/HL7MessageHelpers.kt b/prime-router/src/main/kotlin/fhirengine/utils/HL7MessageHelpers.kt index 7eee87bd67e..6b05e746c36 100644 --- a/prime-router/src/main/kotlin/fhirengine/utils/HL7MessageHelpers.kt +++ b/prime-router/src/main/kotlin/fhirengine/utils/HL7MessageHelpers.kt @@ -46,6 +46,9 @@ object HL7MessageHelpers : Logging { } val time = DTM(null) time.setValue(Date()) + + val hl7BatchFileHeaderEncodingChar: String? = "${firstMessage?.get("MSH-2") ?: hl7BatchHeaderEncodingChar}" + // The extraction of these values mimics how the COVID HL7 serializer works var sendingApp = "${firstMessage?.get("MSH-3-1") ?: REPORT_STREAM_APPLICATION_NAME}^" + @@ -58,7 +61,7 @@ object HL7MessageHelpers : Logging { val builder = StringBuilder() if (useBatchHeaders) { builder.append( - "FHS|$hl7BatchHeaderEncodingChar|" + + "FHS|$hl7BatchFileHeaderEncodingChar|" + "$sendingApp|" + "$sendingApp|" + "$receivingApp|" + @@ -67,7 +70,7 @@ object HL7MessageHelpers : Logging { ) builder.append(hl7SegmentDelimiter) builder.append( - "BHS|$hl7BatchHeaderEncodingChar|" + + "BHS|$hl7BatchFileHeaderEncodingChar|" + "$sendingApp|" + "$sendingApp|" + "$receivingApp|" + diff --git a/prime-router/src/main/resources/metadata/hl7_mapping/receivers/STLTs/SC/SC-receiver-transform.yml b/prime-router/src/main/resources/metadata/hl7_mapping/receivers/STLTs/SC/SC-receiver-transform.yml new file mode 100644 index 00000000000..0e7c97e4498 --- /dev/null +++ b/prime-router/src/main/resources/metadata/hl7_mapping/receivers/STLTs/SC/SC-receiver-transform.yml @@ -0,0 +1,81 @@ +hl7Class: ca.uhn.hl7v2.model.v251.message.ORU_R01 + +extends: classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml + +elements: + + - name: xtn-use-code-from-system + condition: '%resource.system = "email"' + value: [ '"NET"' ] + hl7Spec: [ '%{hl7TelecomPath}-2' ] + + - name: sc-message-encoding-characters + condition: true + value: [ '"^~\\&#"' ] + hl7Spec: [ 'MSH-2' ] + + - name: sc-name-of-the-receiving-application + condition: true + value: [ '"SCDOH"' ] + hl7Spec: [ 'MSH-5-1' ] + + - name: sc-OID-of-the-receiving-application + condition: true + value: [ '"2.16.840.1.114222.4.3.2.2.1.179.1"' ] + hl7Spec: [ 'MSH-5-2' ] + + - name: sc-indicates-that-5.2-is-an-OID + condition: true + value: [ '"ISO"' ] + hl7Spec: [ 'MSH-5-3' ] + + - name: sc-receiving-facility-namespace-ID + condition: true + value: [ '"SC"' ] + hl7Spec: [ 'MSH-6-1' ] + + - name: sc-receiving-facility-universal-ID + condition: true + value: [ '"2.16.840.1.114222.4.1.3680"' ] + hl7Spec: [ 'MSH-6-2' ] + + - name: sc-receiving-facility-universal-ID-Type + condition: true + value: [ '"ISO"' ] + hl7Spec: [ 'MSH-6-3' ] + + - name: sc-country-code + condition: true + value: [ '""' ] + hl7Spec: [ 'MSH-17' ] + + - name: sc-character-set + condition: true + value: [ '""' ] + hl7Spec: [ 'MSH-18' ] + + - name: sc-character-set-1 + condition: true + value: [ '""' ] + hl7Spec: [ 'MSH-19' ] + + - name: sc-character-set-2 + condition: true + value: [ '""' ] + hl7Spec: [ 'MSH-19-2' ] + + - name: sc-character-set-3 + condition: true + value: [ '""' ] + hl7Spec: [ 'MSH-19-3' ] + + - name: sc-patient-name-type-code + condition: true + value: [ '""' ] + hl7Spec: [ /PATIENT_RESULT/PATIENT/PID-5-7 ] + + - name: sc-patient-race-coding-system + resource: 'Bundle.entry.resource.ofType(Patient).extension("http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd").value.coding' + condition: '%resource.code.exists()' + value: [ '%resource.system.getCodingSystemMapping()' ] + hl7Spec: [ '/PATIENT_RESULT/PATIENT/PID-10-3' ] diff --git a/prime-router/src/main/resources/metadata/hl7_mapping/receivers/STLTs/SC/sc-phd.yml b/prime-router/src/main/resources/metadata/hl7_mapping/receivers/STLTs/SC/sc-phd.yml new file mode 100644 index 00000000000..43bf5135fb8 --- /dev/null +++ b/prime-router/src/main/resources/metadata/hl7_mapping/receivers/STLTs/SC/sc-phd.yml @@ -0,0 +1,91 @@ +--- +- name: "sc-phd" + description: "South Carolina Public Health Department" + jurisdiction: "STATE" + stateCode: "SC" + countyName: null + filters: [] + featureFlags: null + keys: null + senders: [] + receivers: + - name: "full-elr" + organizationName: "sc-phd" + topic: "full-elr" + customerStatus: "active" + translation: ! + schemaName: "classpath:/metadata/hl7_mapping/receivers/STLTs/SC/SC-receiver-transform" + useTestProcessingMode: false + useBatchHeaders: true + receivingApplicationName: null + receivingApplicationOID: null + receivingFacilityName: null + receivingFacilityOID: null + messageProfileId: null + replaceValue: {} + replaceValueAwithB: {} + reportingFacilityName: null + reportingFacilityId: null + reportingFacilityIdType: null + suppressQstForAoe: false + suppressHl7Fields: null + suppressAoe: false + defaultAoeToUnknown: false + replaceUnicodeWithAscii: false + useBlankInsteadOfUnknown: null + truncateHDNamespaceIds: false + truncateHl7Fields: null + 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: false + truncateHl7Fields: [] + customLengthHl7Fields: {} + jurisdictionalFilter: + - "(Bundle.entry.resource.ofType(ServiceRequest)[0].requester.resolve().organization.resolve().address.state = 'SC') or (Bundle.entry.resource.ofType(Patient).address.state = 'SC')" + qualityFilter: + - "Bundle.entry.resource.ofType(MessageHeader).id.exists()" + - "Bundle.entry.resource.ofType(Patient).birthDate.exists()" + - "Bundle.entry.resource.ofType(Patient).name.family.exists()" + - "Bundle.entry.resource.ofType(Patient).name.given.count() > 0" + - "Bundle.entry.resource.ofType(Specimen).type.exists()" + - "(Bundle.entry.resource.ofType(Patient).address.line.exists() or Bundle.entry.resource.ofType(Patient).address.postalCode.exists() or Bundle.entry.resource.ofType(Patient).telecom.exists())" + - "((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: [] + mappedConditionFilter: [] + deidentify: false + deidentifiedValue: "" + timing: + operation: "MERGE" + numberPerDay: 12 + initialTime: "01:09" + timeZone: "EASTERN" + maxReportCount: 100 + whenEmpty: + action: "NONE" + onlyOncePerDay: false + description: "" + transport: [] + externalName: null + enrichmentSchemaNames: [] + timeZone: null + dateTimeFormat: "OFFSET" \ No newline at end of file diff --git a/prime-router/src/test/kotlin/fhirengine/utils/HL7QueueMessageHelpersTests.kt b/prime-router/src/test/kotlin/fhirengine/utils/HL7QueueMessageHelpersTests.kt index fa2bfb1cb77..21e56122939 100644 --- a/prime-router/src/test/kotlin/fhirengine/utils/HL7QueueMessageHelpersTests.kt +++ b/prime-router/src/test/kotlin/fhirengine/utils/HL7QueueMessageHelpersTests.kt @@ -98,13 +98,13 @@ class HL7QueueMessageHelpersTests { result.split(HL7MessageHelpers.hl7SegmentDelimiter).forEachIndexed { index, s -> when (index) { 0 -> { - val regex = """^FHS\|[^|]{4}\|hl7sendingApp.*\|hl7sendingApp.*|hl7recApp\|hl7recFac\|.*""" + val regex = """^FHS\|[^|]{5}\|hl7sendingApp.*\|hl7sendingApp.*|hl7recApp\|hl7recFac\|.*""" .toRegex() assertThat(regex.matches(s)).isTrue() } 1 -> { - val regex = """^BHS\|[^|]{4}\|hl7sendingApp.*\|hl7sendingApp.*|hl7recApp\|hl7recFac\|.*""" + val regex = """^BHS\|[^|]{5}\|hl7sendingApp.*\|hl7sendingApp.*|hl7recApp\|hl7recFac\|.*""" .toRegex() assertThat(regex.matches(s)).isTrue() } diff --git a/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SC_20240305-0001.fhir b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SC_20240305-0001.fhir new file mode 100644 index 00000000000..d133e9557a1 --- /dev/null +++ b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SC_20240305-0001.fhir @@ -0,0 +1,2425 @@ +{ + "resourceType": "Bundle", + "identifier": { + "value": "3ad338c6-125d-4141-9ce1-6040481304ab" + }, + "type": "message", + "timestamp": "2024-02-14T21:06:46.577Z", + "entry": [ + { + "fullUrl": "MessageHeader/2a8ffce6-daa1-43e2-9236-e38bbb59892a", + "resource": { + "resourceType": "MessageHeader", + "id": "2a8ffce6-daa1-43e2-9236-e38bbb59892a", + "meta": { + "tag": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0103", + "code": "P", + "display": "Production" + } + ] + }, + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", + "extension": [ + { + "url": "MSH.15", + "valueString": "NE" + }, + { + "url": "MSH.16", + "valueString": "NE" + }, + { + "url": "MSH.19", + "valueCodeableConcept": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "ISO" + } + ], + "code": "ENG", + "display": "English" + } + ] + } + }, + { + "url": "MSH.21", + "valueIdentifier": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", + "valueString": "ELR_Receiver" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", + "valueString": "2.16.840.1.113883.9.11" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", + "valueString": "ISO" + } + ] + } + ], + "value": "PHLabReport-NoAck" + } + }, + { + "url": "MSH.7", + "valueInstant": "2024-02-14T21:06:46.577Z" + } + ] + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", + "valueString": "UNICODE UTF-8" + } + ], + "eventCoding": { + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "code": "R01", + "display": "ORU^R01^ORU_R01" + }, + "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": "0.2-SNAPSHOT" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-install-date", + "valueInstant": "2024-02-14T16:38:56Z" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-vendor-org", + "valueReference": { + "reference": "Organization/07640c5d-87cd-488b-9343-a226c5166539" + } + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", + "valueString": "CDC PRIME - Atlanta" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", + "valueString": "2.16.840.1.114222.4.1.237821" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", + "valueString": "ISO" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "MSH.3" + } + ], + "name": "CDC PRIME - Atlanta: 2.16.840.1.114222.4.1.237821", + "software": "PRIME ReportStream", + "version": "0.2-SNAPSHOT", + "endpoint": "urn:oid:2.16.840.1.114222.4.1.237821" + }, + "focus": [ + { + "reference": "Provenance/b344d9a8-399a-4607-b10e-9bf86f27a1bf" + }, + { + "reference": "DiagnosticReport/3ad338c6-125d-4141-9ce1-6040481304ab" + } + ] + } + }, + { + "fullUrl": "Provenance/b344d9a8-399a-4607-b10e-9bf86f27a1bf", + "resource": { + "resourceType": "Provenance", + "id": "b344d9a8-399a-4607-b10e-9bf86f27a1bf", + "recorded": "2024-02-14T21:06:46.577Z", + "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/3ad338c6-125d-4141-9ce1-6040481304ab", + "resource": { + "resourceType": "DiagnosticReport", + "id": "3ad338c6-125d-4141-9ce1-6040481304ab", + "identifier": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", + "valueString": "Testing Lab" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", + "valueString": "12D4567890" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", + "valueCode": "CLIA" + } + ] + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "ORC.3" + } + ], + "type": { + "coding": [ + { + "code": "FILL" + } + ] + }, + "value": "3ad338c6-125d-4141-9ce1-6040481304ab" + }, + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "ORC.2" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", + "valueString": "Testing Lab" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", + "valueString": "12D4567890" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", + "valueCode": "CLIA" + } + ] + } + ], + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PLAC" + } + ] + }, + "value": "3ad338c6-125d-4141-9ce1-6040481304ab" + } + ], + "basedOn": [ + { + "reference": "ServiceRequest/c62aa5a7-4624-4b00-9ad6-e089c1aa29c5" + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "95941-1" + } + ] + }, + "subject": { + "reference": "Patient/3551359f-bd1c-411e-b930-789ac694e75f" + }, + "effectiveDateTime": "2024-02-14T20:51:46+00:00", + "_effectiveDateTime": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", + "valueDateTime": "2024-02-14T20:51:46+00:00" + } + ] + }, + "issued": "2024-02-14T21:06:46+00:00", + "_issued": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", + "valueInstant": "2024-02-14T21:06:46+00:00" + } + ] + }, + "specimen": [ + { + "reference": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2" + } + ], + "result": [ + { + "reference": "Observation/a8d3dfac-dd32-4e10-877b-407da556266e" + }, + { + "reference": "Observation/06735b3b-a15d-4249-9ff6-6df8f7aab822" + }, + { + "reference": "Observation/a6655d89-f7ea-4192-be69-92e772c4b8a6" + } + ] + } + }, + { + "fullUrl": "Patient/3551359f-bd1c-411e-b930-789ac694e75f", + "resource": { + "resourceType": "Patient", + "id": "3551359f-bd1c-411e-b930-789ac694e75f", + "extension": [ + { + "url": "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", + "valueCodeableConcept": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + } + ], + "system": "http://terminology.hl7.org/CodeSystem/v3-Race", + "version": "2.5.1", + "code": "2076-8", + "display": "pacific" + } + ], + "text": "pacific" + } + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/ethnic-group", + "valueCodeableConcept": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "HL70189" + } + ], + "system": "http://terminology.hl7.org/CodeSystem/v2-0189", + "version": "2.9", + "code": "N", + "display": "Not Hispanic or Latino" + } + ], + "text": "Not Hispanic or Latino" + } + }, + { + "url": "https://hl7.org/fhir/R4/extension-patient-genderidentity.html", + "valueCoding": { + "system": "https://hl7.org/fhir/R4/valueset-gender-identity.html", + "code": "male", + "display": "male" + } + } + ], + "identifier": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "PID.3" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cx-identifier", + "extension": [ + { + "url": "CX.5", + "valueString": "PI" + } + ] + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-facility", + "valueReference": { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + } + ], + "value": "3551359f-bd1c-411e-b930-789ac694e75f", + "assigner": { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + } + ], + "name": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/xpn-human-name", + "extension": [ + { + "url": "XPN.2", + "valueString": "Cedrick" + }, + { + "url": "XPN.3", + "valueString": "Charles" + } + ] + } + ], + "use": "official", + "family": "Diggory", + "given": [ + "Cedrick", + "Charles" + ] + } + ], + "telecom": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/xtn-contact-point", + "extension": [ + { + "url": "XTN.1", + "valueString": "(340) 555 5555" + }, + { + "url": "XTN.2", + "valueString": "PRS" + }, + { + "url": "XTN.3", + "valueString": "CP" + }, + { + "url": "XTN.7", + "valueInteger": 5555555 + }, + { + "url": "XTN.12", + "valueString": "(340) 555 5555" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/contactpoint-country", + "valueInteger": 1 + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/contactpoint-area", + "valueInteger": 340 + } + ], + "system": "phone", + "value": "(340) 555 5555", + "use": "mobile" + } + ], + "gender": "male", + "birthDate": "2000-12-18", + "deceasedBoolean": false, + "address": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/sad-address-line", + "extension": [ + { + "url": "SAD.1", + "valueString": "123 Main St" + } + ] + } + ] + } + ], + "line": [ + "123 Main St" + ], + "city": "Shawview Heights", + "district": "Shawview Heights", + "state": "SC", + "postalCode": "29152", + "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", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/organization-name-type", + "valueCoding": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueCodeableConcept": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "XON.2" + } + ], + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + } + ], + "code": "L" + } + ] + } + } + ], + "code": "L" + } + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "OBX.25" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "OBX.15" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-organization", + "valueCodeableConcept": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueCode": "CLIA" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + } + ], + "code": "12D4567890", + "display": "Testing Lab" + } + ] + } + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/xon-organization", + "extension": [ + { + "url": "XON.10", + "valueString": "12D4567890" + } + ] + } + ], + "identifier": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "HD.2,HD.3" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", + "valueString": "2.16.840.1.113883.4.7" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", + "valueString": "ISO" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", + "valueString": "CLIA" + } + ] + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system", + "valueCodeableConcept": { + "coding": [ + { + "code": "CLIA" + } + ] + } + } + ], + "use": "official", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0301", + "code": "CLIA" + } + ] + }, + "value": "12D4567890" + }, + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "HD.1" + } + ], + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "XX" + } + ] + }, + "value": "Testing Lab" + } + ], + "name": "Testing Lab", + "telecom": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/xtn-contact-point", + "extension": [ + { + "url": "XTN.1", + "valueString": "(530) 867 5309" + }, + { + "url": "XTN.2", + "valueString": "WPN" + }, + { + "url": "XTN.3", + "valueString": "PH" + }, + { + "url": "XTN.7", + "valueInteger": 8675309 + }, + { + "url": "XTN.12", + "valueString": "(530) 867 5309" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/contactpoint-country", + "valueInteger": 1 + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/contactpoint-area", + "valueInteger": 530 + } + ], + "system": "phone", + "value": "(530) 867 5309", + "use": "work" + } + ], + "address": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/sad-address-line", + "extension": [ + { + "url": "SAD.1", + "valueString": "123 Beach Way" + } + ] + } + ] + } + ], + "line": [ + "123 Beach Way" + ], + "city": "Houston", + "state": "TX", + "postalCode": "77001", + "country": "USA" + } + ] + } + }, + { + "fullUrl": "Practitioner/ee29ccf5-631d-4b35-a6d4-30a61c0eb8d9", + "resource": { + "resourceType": "Practitioner", + "id": "ee29ccf5-631d-4b35-a6d4-30a61c0eb8d9", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/xcn-practitioner", + "extension": [ + { + "url": "XCN.10", + "valueString": "L" + }, + { + "url": "XCN.3", + "valueString": "Phil" + } + ] + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "ORC.12" + } + ], + "identifier": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", + "valueString": "NPI" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", + "valueString": "urn:oid:2.16.840.1.113883.4.6" + } + ], + "system": "http://hl7.org/fhir/sid/us-npi", + "value": "1245319599" + } + ], + "name": [ + { + "family": "McTester", + "given": [ + "Phil" + ] + } + ], + "telecom": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/xtn-contact-point", + "extension": [ + { + "url": "XTN.1", + "valueString": "(530) 867 5309" + }, + { + "url": "XTN.2", + "valueString": "WPN" + }, + { + "url": "XTN.3", + "valueString": "PH" + }, + { + "url": "XTN.7", + "valueInteger": 8675309 + }, + { + "url": "XTN.12", + "valueString": "(530) 867 5309" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/contactpoint-country", + "valueInteger": 1 + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/contactpoint-area", + "valueInteger": 530 + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "ORC.14" + } + ], + "system": "phone", + "value": "(530) 867 5309", + "use": "work" + } + ], + "address": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/sad-address-line", + "extension": [ + { + "url": "SAD.1", + "valueString": "321 Ocean Drive" + } + ] + } + ] + } + ], + "line": [ + "321 Ocean Drive" + ], + "city": "Houston", + "state": "TX", + "postalCode": "77001", + "country": "USA" + } + ] + } + }, + { + "fullUrl": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2", + "resource": { + "resourceType": "Specimen", + "id": "dc7af370-fc07-4b00-abc7-9b5dd87cf4d2", + "identifier": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", + "valueString": "Testing Lab" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", + "valueString": "12D4567890" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", + "valueCode": "CLIA" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Component", + "valueString": "SPM.2.1" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/filler-assigned-identifier", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/entity-identifier", + "valueId": "3ad338c6-125d-4141-9ce1-6040481304ab" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", + "valueString": "Testing Lab" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", + "valueString": "12D4567890" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", + "valueCode": "CLIA" + } + ] + } + ], + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PGN" + } + ] + }, + "value": "3ad338c6-125d-4141-9ce1-6040481304ab" + } + ], + "type": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "SCT" + } + ], + "system": "http://snomed.info/sct", + "version": "2.67", + "code": "258500001", + "display": "Nasopharyngeal swab" + } + ], + "text": "Nasopharyngeal swab" + }, + "subject": { + "reference": "Patient/3551359f-bd1c-411e-b930-789ac694e75f" + }, + "receivedTime": "2024-02-14T20:51:46+00:00", + "collection": { + "collectedDateTime": "2024-02-14T20:51:46+00:00", + "bodySite": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "SCT" + } + ], + "system": "http://snomed.info/sct", + "code": "87100004", + "display": "Topography unknown (body structure)" + } + ], + "text": "Topography unknown (body structure)" + } + } + } + }, + { + "fullUrl": "ServiceRequest/c62aa5a7-4624-4b00-9ad6-e089c1aa29c5", + "resource": { + "resourceType": "ServiceRequest", + "id": "c62aa5a7-4624-4b00-9ad6-e089c1aa29c5", + "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-02-14T21:06:46+00:00" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/business-event", + "valueCode": "RE" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/obr-observation-request", + "extension": [ + { + "url": "OBR.2", + "valueIdentifier": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "ORC.2" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", + "valueString": "Testing Lab" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", + "valueString": "12D4567890" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", + "valueCode": "CLIA" + } + ] + } + ], + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PLAC" + } + ] + }, + "value": "3ad338c6-125d-4141-9ce1-6040481304ab" + } + }, + { + "url": "OBR.3", + "valueIdentifier": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", + "valueString": "Testing Lab" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", + "valueString": "12D4567890" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", + "valueCode": "CLIA" + } + ] + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "ORC.3" + } + ], + "type": { + "coding": [ + { + "code": "FILL" + } + ] + }, + "value": "3ad338c6-125d-4141-9ce1-6040481304ab" + } + }, + { + "url": "OBR.16", + "valueReference": { + "reference": "Practitioner/ee29ccf5-631d-4b35-a6d4-30a61c0eb8d9" + } + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/callback-number", + "valueContactPoint": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/xtn-contact-point", + "extension": [ + { + "url": "XTN.1", + "valueString": "(530) 867 5309" + }, + { + "url": "XTN.2", + "valueString": "WPN" + }, + { + "url": "XTN.3", + "valueString": "PH" + }, + { + "url": "XTN.7", + "valueInteger": 8675309 + }, + { + "url": "XTN.12", + "valueString": "(530) 867 5309" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/contactpoint-country", + "valueInteger": 1 + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/contactpoint-area", + "valueInteger": 530 + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "ORC.14" + } + ], + "system": "phone", + "value": "(530) 867 5309", + "use": "work" + } + } + ] + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/orc-common-order", + "extension": [ + { + "url": "ORC.15", + "valueDateTime": "2024-02-14T21:06:46+00:00" + } + ] + } + ], + "identifier": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "ORC.2" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", + "valueString": "Testing Lab" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", + "valueString": "12D4567890" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", + "valueCode": "CLIA" + } + ] + } + ], + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PLAC" + } + ] + }, + "value": "3ad338c6-125d-4141-9ce1-6040481304ab" + }, + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", + "valueString": "Testing Lab" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", + "valueString": "12D4567890" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", + "valueCode": "CLIA" + } + ] + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "ORC.3" + } + ], + "type": { + "coding": [ + { + "code": "FILL" + } + ] + }, + "value": "3ad338c6-125d-4141-9ce1-6040481304ab" + } + ], + "status": "completed", + "intent": "order", + "code": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "LN" + } + ], + "system": "http://loinc.org", + "code": "95941-1", + "display": "Influenza virus A and B and SARS-CoV-2 (COVID-19) and Respiratory syncytial virus RNA panel - Respiratory system specimen by NAA with probe detection" + } + ] + }, + "subject": { + "reference": "Patient/3551359f-bd1c-411e-b930-789ac694e75f" + }, + "requester": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/callback-number", + "valueContactPoint": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/xtn-contact-point", + "extension": [ + { + "url": "XTN.1", + "valueString": "(530) 867 5309" + }, + { + "url": "XTN.2", + "valueString": "WPN" + }, + { + "url": "XTN.3", + "valueString": "PH" + }, + { + "url": "XTN.7", + "valueInteger": 8675309 + }, + { + "url": "XTN.12", + "valueString": "(530) 867 5309" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/contactpoint-country", + "valueInteger": 1 + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/contactpoint-area", + "valueInteger": 530 + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", + "valueString": "ORC.14" + } + ], + "system": "phone", + "value": "(530) 867 5309", + "use": "work" + } + } + ], + "reference": "PractitionerRole/d31bb3bb-3e5d-4bb3-ba73-13e5b2e96927" + }, + "performer": [ + { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + ], + "supportingInfo": [ + { + "reference": "Observation/81fd6b57-6808-32f6-b4e4-bdace1ea0e26" + }, + { + "reference": "Observation/91dbef95-254a-3398-a8ee-c5eba59121b1" + }, + { + "reference": "Observation/57f557ee-1009-397e-bae5-15d2cd3484fe" + }, + { + "reference": "Observation/f186e153-e06a-32f1-b5f5-38be1fa13345" + }, + { + "reference": "Observation/623a1a02-6925-3595-affd-271175822707" + } + ] + } + }, + { + "fullUrl": "Device/b83b1f5f-b62c-43aa-98f6-0ce34ab41927", + "resource": { + "resourceType": "Device", + "id": "b83b1f5f-b62c-43aa-98f6-0ce34ab41927", + "identifier": [ + { + "value": "00884999048034" + }, + { + "type": { + "coding": [ + { + "code": "DII" + } + ] + } + } + ], + "manufacturer": "Abbott", + "deviceName": [ + { + "name": "Alinity m", + "type": "model-name" + } + ] + } + }, + { + "fullUrl": "PractitionerRole/d31bb3bb-3e5d-4bb3-ba73-13e5b2e96927", + "resource": { + "resourceType": "PractitionerRole", + "id": "d31bb3bb-3e5d-4bb3-ba73-13e5b2e96927", + "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": "Centers for Disease Control and Prevention" + } + }, + { + "fullUrl": "Observation/a8d3dfac-dd32-4e10-877b-407da556266e", + "resource": { + "resourceType": "Observation", + "id": "a8d3dfac-dd32-4e10-877b-407da556266e", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-observation", + "extension": [ + { + "url": "OBX.2", + "valueString": "CWE" + }, + { + "url": "OBX.11", + "valueString": "F" + } + ] + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/analysis-date-time", + "valueInstant": "2024-02-14T21:06:46.490Z", + "_valueInstant": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", + "valueInstant": "2024-02-14T21:06:46.490Z" + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "LN" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code", + "valueCoding": { + "system": "SNOMEDCT", + "code": "55735004", + "display": "Respiratory syncytial virus infection (disorder)" + } + } + ], + "system": "http://loinc.org", + "code": "85479-4", + "display": "Respiratory syncytial virus RNA [Presence] in Upper respiratory specimen by NAA with probe detection" + } + ], + "text": "RSV" + }, + "subject": { + "reference": "Patient/3551359f-bd1c-411e-b930-789ac694e75f" + }, + "effectiveDateTime": "2024-02-14T20:51:46+00:00", + "_effectiveDateTime": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", + "valueDateTime": "2024-02-14T20:51:46+00:00" + } + ] + }, + "issued": "2024-02-14T21:06:46.490Z", + "performer": [ + { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + ], + "valueCodeableConcept": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "SCT" + } + ], + "system": "http://snomed.info/sct", + "code": "260373001", + "display": "Detected" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "HL70078" + } + ], + "system": "http://terminology.hl7.org/CodeSystem/v2-0078", + "version": "2.7", + "code": "A", + "display": "Abnormal" + } + ] + } + ], + "method": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/testkit-name-id", + "valueCoding": { + "code": "Alinity m Resp-4-Plex_Abbott Molecular Inc." + } + } + ], + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + } + ], + "display": "Alinity m" + } + ] + }, + "specimen": { + "reference": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2" + }, + "device": { + "reference": "Device/b83b1f5f-b62c-43aa-98f6-0ce34ab41927" + } + } + }, + { + "fullUrl": "Observation/06735b3b-a15d-4249-9ff6-6df8f7aab822", + "resource": { + "resourceType": "Observation", + "id": "06735b3b-a15d-4249-9ff6-6df8f7aab822", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-observation", + "extension": [ + { + "url": "OBX.2", + "valueString": "CWE" + }, + { + "url": "OBX.11", + "valueString": "F" + } + ] + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/analysis-date-time", + "valueInstant": "2024-02-14T21:06:46.490Z", + "_valueInstant": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", + "valueInstant": "2024-02-14T21:06:46.490Z" + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "LN" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code", + "valueCoding": { + "system": "SNOMEDCT", + "code": "840539006", + "display": "Disease caused by severe acute respiratory syndrome coronavirus 2 (disorder)" + } + } + ], + "system": "http://loinc.org", + "code": "94500-6", + "display": "SARS-CoV-2 (COVID-19) RNA [Presence] in Respiratory system specimen by NAA with probe detection" + } + ], + "text": "COVID-19" + }, + "subject": { + "reference": "Patient/3551359f-bd1c-411e-b930-789ac694e75f" + }, + "effectiveDateTime": "2024-02-14T20:51:46+00:00", + "_effectiveDateTime": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", + "valueDateTime": "2024-02-14T20:51:46+00:00" + } + ] + }, + "issued": "2024-02-14T21:06:46.490Z", + "performer": [ + { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + ], + "valueCodeableConcept": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "SCT" + } + ], + "system": "http://snomed.info/sct", + "code": "260373001", + "display": "Detected" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "HL70078" + } + ], + "system": "http://terminology.hl7.org/CodeSystem/v2-0078", + "version": "2.7", + "code": "A", + "display": "Abnormal" + } + ] + } + ], + "method": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + } + ], + "display": "Alinity m" + } + ] + }, + "specimen": { + "reference": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2" + }, + "device": { + "reference": "Device/b83b1f5f-b62c-43aa-98f6-0ce34ab41927" + } + } + }, + { + "fullUrl": "Observation/a6655d89-f7ea-4192-be69-92e772c4b8a6", + "resource": { + "resourceType": "Observation", + "id": "a6655d89-f7ea-4192-be69-92e772c4b8a6", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-observation", + "extension": [ + { + "url": "OBX.2", + "valueString": "CWE" + }, + { + "url": "OBX.11", + "valueString": "F" + } + ] + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/analysis-date-time", + "valueInstant": "2024-02-14T21:06:46.490Z", + "_valueInstant": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", + "valueInstant": "2024-02-14T21:06:46.490Z" + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "LN" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code", + "valueCoding": { + "system": "SNOMEDCT", + "code": "5.41E+14", + "display": "Infection caused by novel Influenza A virus variant (disorder)" + } + } + ], + "system": "http://loinc.org", + "code": "85478-6", + "display": "Influenza virus B RNA [Presence] in Upper respiratory specimen by NAA with probe detection" + } + ], + "text": "Flu B" + }, + "subject": { + "reference": "Patient/3551359f-bd1c-411e-b930-789ac694e75f" + }, + "effectiveDateTime": "2024-02-14T20:51:46+00:00", + "_effectiveDateTime": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", + "valueDateTime": "2024-02-14T20:51:46+00:00" + } + ] + }, + "issued": "2024-02-14T21:06:46.490Z", + "performer": [ + { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + ], + "valueCodeableConcept": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "SCT" + } + ], + "system": "http://snomed.info/sct", + "code": "260373001", + "display": "Detected" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "HL70078" + } + ], + "system": "http://terminology.hl7.org/CodeSystem/v2-0078", + "version": "2.7", + "code": "A", + "display": "Abnormal" + } + ] + } + ], + "method": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/testkit-name-id", + "valueCoding": { + "code": "Alinity m Resp-4-Plex_Abbott Molecular Inc." + } + } + ], + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + } + ], + "display": "Alinity m" + } + ] + }, + "specimen": { + "reference": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2" + }, + "device": { + "reference": "Device/b83b1f5f-b62c-43aa-98f6-0ce34ab41927" + } + } + }, + { + "fullUrl": "Observation/81fd6b57-6808-32f6-b4e4-bdace1ea0e26", + "resource": { + "resourceType": "Observation", + "id": "81fd6b57-6808-32f6-b4e4-bdace1ea0e26", + "meta": { + "tag": [ + { + "code": "AOE" + } + ] + }, + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-observation", + "extension": [ + { + "url": "OBX.2", + "valueString": "CWE" + }, + { + "url": "OBX.11", + "valueString": "F" + } + ] + } + ], + "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": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "LN" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code", + "valueCoding": { + "system": "ReportStream", + "code": "AOE", + "display": "Ask at order entry question" + } + } + ], + "system": "http://loinc.org", + "version": "2.69", + "code": "95419-8", + "display": "Has symptoms related to condition of interest" + } + ], + "text": "Has symptoms related to condition of interest" + }, + "subject": { + "reference": "Patient/3551359f-bd1c-411e-b930-789ac694e75f" + }, + "effectiveDateTime": "2024-02-14T20:51:46+00:00", + "_effectiveDateTime": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", + "valueDateTime": "2024-02-14T20:51:46+00:00" + } + ] + }, + "performer": [ + { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + ], + "valueCodeableConcept": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "HL70136" + } + ], + "system": "http://terminology.hl7.org/ValueSet/v2-0136", + "code": "Y", + "display": "Yes" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + } + ] + } + ] + } + ], + "method": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + } + ] + } + ] + } + } + }, + { + "fullUrl": "Observation/91dbef95-254a-3398-a8ee-c5eba59121b1", + "resource": { + "resourceType": "Observation", + "id": "91dbef95-254a-3398-a8ee-c5eba59121b1", + "meta": { + "tag": [ + { + "code": "AOE" + } + ] + }, + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-observation", + "extension": [ + { + "url": "OBX.2", + "valueString": "DT" + }, + { + "url": "OBX.11", + "valueString": "F" + } + ] + } + ], + "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": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "LN" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code", + "valueCoding": { + "system": "ReportStream", + "code": "AOE", + "display": "Ask at order entry question" + } + } + ], + "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/3551359f-bd1c-411e-b930-789ac694e75f" + }, + "effectiveDateTime": "2024-02-14T20:51:46+00:00", + "_effectiveDateTime": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", + "valueDateTime": "2024-02-14T20:51:46+00:00" + } + ] + }, + "performer": [ + { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + ], + "valueDateTime": "2024-02-13", + "_valueDateTime": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", + "valueDateTime": "2024-02-13" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + } + ] + } + ] + } + ], + "method": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + } + ] + } + ] + } + } + }, + { + "fullUrl": "Observation/57f557ee-1009-397e-bae5-15d2cd3484fe", + "resource": { + "resourceType": "Observation", + "id": "57f557ee-1009-397e-bae5-15d2cd3484fe", + "meta": { + "tag": [ + { + "code": "AOE" + } + ] + }, + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-observation", + "extension": [ + { + "url": "OBX.2", + "valueString": "CWE" + }, + { + "url": "OBX.11", + "valueString": "F" + } + ] + } + ], + "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": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "LN" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code", + "valueCoding": { + "system": "ReportStream", + "code": "AOE", + "display": "Ask at order entry question" + } + } + ], + "system": "http://loinc.org", + "version": "2.68", + "code": "82810-3", + "display": "Pregnancy status" + } + ], + "text": "Pregnancy status" + }, + "subject": { + "reference": "Patient/3551359f-bd1c-411e-b930-789ac694e75f" + }, + "effectiveDateTime": "2024-02-14T20:51:46+00:00", + "_effectiveDateTime": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", + "valueDateTime": "2024-02-14T20:51:46+00:00" + } + ] + }, + "performer": [ + { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + ], + "valueCodeableConcept": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "SCT" + } + ], + "system": "http://snomed.info/sct", + "code": "60001007", + "display": "Not pregnant" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + } + ] + } + ] + } + ], + "method": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + } + ] + } + ] + } + } + }, + { + "fullUrl": "Observation/f186e153-e06a-32f1-b5f5-38be1fa13345", + "resource": { + "resourceType": "Observation", + "id": "f186e153-e06a-32f1-b5f5-38be1fa13345", + "meta": { + "tag": [ + { + "code": "AOE" + } + ] + }, + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-observation", + "extension": [ + { + "url": "OBX.2", + "valueString": "CWE" + }, + { + "url": "OBX.11", + "valueString": "F" + } + ] + } + ], + "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": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "LN" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code", + "valueCoding": { + "system": "ReportStream", + "code": "AOE", + "display": "Ask at order entry question" + } + } + ], + "system": "http://loinc.org", + "version": "2.69", + "code": "95418-0", + "display": "Employed in a healthcare setting" + } + ], + "text": "Employed in a healthcare setting" + }, + "subject": { + "reference": "Patient/3551359f-bd1c-411e-b930-789ac694e75f" + }, + "effectiveDateTime": "2024-02-14T20:51:46+00:00", + "_effectiveDateTime": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", + "valueDateTime": "2024-02-14T20:51:46+00:00" + } + ] + }, + "performer": [ + { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + ], + "valueCodeableConcept": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "HL70136" + } + ], + "system": "http://terminology.hl7.org/ValueSet/v2-0136", + "code": "N", + "display": "No" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + } + ] + } + ] + } + ], + "method": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + } + ] + } + ] + } + } + }, + { + "fullUrl": "Observation/623a1a02-6925-3595-affd-271175822707", + "resource": { + "resourceType": "Observation", + "id": "623a1a02-6925-3595-affd-271175822707", + "meta": { + "tag": [ + { + "code": "AOE" + } + ] + }, + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-observation", + "extension": [ + { + "url": "OBX.2", + "valueString": "CWE" + }, + { + "url": "OBX.11", + "valueString": "F" + } + ] + } + ], + "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": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "LN" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code", + "valueCoding": { + "system": "ReportStream", + "code": "AOE", + "display": "Ask at order entry question" + } + } + ], + "system": "http://loinc.org", + "version": "2.69", + "code": "95421-4", + "display": "Resides in a congregate care setting" + } + ], + "text": "Resides in a congregate care setting" + }, + "subject": { + "reference": "Patient/3551359f-bd1c-411e-b930-789ac694e75f" + }, + "effectiveDateTime": "2024-02-14T20:51:46+00:00", + "_effectiveDateTime": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", + "valueDateTime": "2024-02-14T20:51:46+00:00" + } + ] + }, + "performer": [ + { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + ], + "valueCodeableConcept": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", + "valueString": "HL70136" + } + ], + "system": "http://terminology.hl7.org/ValueSet/v2-0136", + "code": "N", + "display": "No" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + } + ] + } + ] + } + ], + "method": { + "coding": [ + { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", + "valueString": "coding" + } + ] + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SC_20240305-0001.hl7 b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SC_20240305-0001.hl7 new file mode 100644 index 00000000000..42d1596b0da --- /dev/null +++ b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SC_20240305-0001.hl7 @@ -0,0 +1,14 @@ +MSH|^~\&#|CDC PRIME - Atlanta^2.16.840.1.114222.4.1.237821^ISO|Testing Lab^12D4567890^CLIA|SCDOH^2.16.840.1.114222.4.3.2.2.1.179.1^ISO|SC^2.16.840.1.114222.4.1.3680^ISO|20240214210646+0000||ORU^R01^ORU_R01|3ad338c6-125d-4141-9ce1-6040481304ab|P|2.5.1|||NE|NE|||||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||20240214163856+0000 +PID|1||3551359f-bd1c-411e-b930-789ac694e75f^^^Testing Lab&12D4567890&CLIA^PI^Testing Lab&12D4567890&CLIA||Diggory^Cedrick^Charles||20001218|M||2076-8^pacific^HL70005^^^^2.5.1^^pacific|123 Main St^^Shawview Heights^SC^29152^USA^^^Shawview Heights||(340) 555 5555^PRS^CP^^1^340^5555555^^^^^(340) 555 5555|||||||||N^Not Hispanic or Latino^HL70189^^^^2.9^^Not Hispanic or Latino||||||||N +ORC|RE|3ad338c6-125d-4141-9ce1-6040481304ab^Testing Lab^12D4567890^CLIA|3ad338c6-125d-4141-9ce1-6040481304ab^Testing Lab^12D4567890^CLIA|||||||||1245319599^McTester^Phil^^^^^^^L||(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|20240214210646+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|3ad338c6-125d-4141-9ce1-6040481304ab^Testing Lab^12D4567890^CLIA|3ad338c6-125d-4141-9ce1-6040481304ab^Testing Lab^12D4567890^CLIA|95941-1^Influenza virus A and B and SARS-CoV-2 (COVID-19) and Respiratory syncytial virus RNA panel - Respiratory system specimen by NAA with probe detection^LN|||20240214205146+0000|||||||||1245319599^McTester^Phil^^^^^^^L|(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|||||20240214210646+0000|||F +OBX|1|CWE|85479-4^Respiratory syncytial virus RNA [Presence] in Upper respiratory specimen by NAA with probe detection^LN^^^^^^RSV||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||F|||20240214205146+0000|12D4567890^Testing Lab^CLIA||^Alinity m|00884999048034~|20240214210646+0000||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA +OBX|2|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|||20240214205146+0000|12D4567890^Testing Lab^CLIA||^Alinity m|00884999048034~|20240214210646+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|85478-6^Influenza virus B RNA [Presence] in Upper respiratory specimen by NAA with probe detection^LN^^^^^^Flu B||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||F|||20240214205146+0000|12D4567890^Testing Lab^CLIA||^Alinity m|00884999048034~|20240214210646+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||||||F|||20240214205146+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||20240213000000+0000||||||F|||20240214205146+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||||||F|||20240214205146+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||N^No^HL70136||||||F|||20240214205146+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||N^No^HL70136||||||F|||20240214205146+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|3ad338c6-125d-4141-9ce1-6040481304ab&Testing Lab&12D4567890&CLIA^3ad338c6-125d-4141-9ce1-6040481304ab&Testing Lab&12D4567890&CLIA||258500001^Nasopharyngeal swab^SCT^^^^2.67^^Nasopharyngeal swab||||87100004^Topography unknown (body structure)^SCT^^^^^^Topography unknown (body structure)|||||||||20240214205146+0000|20240214205146+0000 diff --git a/prime-router/src/testIntegration/resources/datatests/translation-test-config-org.csv b/prime-router/src/testIntegration/resources/datatests/translation-test-config-org.csv new file mode 100644 index 00000000000..91a09cbd1b0 --- /dev/null +++ b/prime-router/src/testIntegration/resources/datatests/translation-test-config-org.csv @@ -0,0 +1,37 @@ +Input File,Input schema,Expected File,Output schema,Output format,Result,Ignore Fields,Sender,Sender Transform,Receiver,Condition Filter,Enrichment Schema Names +CSV_to_HL7/sample-batch-pdi-20210608-0001.csv,primedatainput/pdi-covid-19,CSV_to_HL7/sample-batch-pdi-20210608-0001.hl7,fl/fl-covid-19,HL7_BATCH,PASS,"","","","","","" +CSV_to_HL7/sample-single-pdi-20210608-0002.csv,primedatainput/pdi-covid-19,CSV_to_HL7/sample-single-pdi-20210608-0002.hl7,fl/fl-covid-19,HL7,PASS,"","","","","","" +HL7_to_INTERNAL/CE-20200415-0001.hl7,hl7/test-covid-19,HL7_to_INTERNAL/CE-20200415-0001.internal.csv,covid-19,INTERNAL,PASS,"","","","","","" +HL7_to_INTERNAL/EHT-20210316-0001.hl7,hl7/test-covid-19,HL7_to_INTERNAL/EHT-20210316-0001.internal.csv,covid-19,INTERNAL,PASS,"","","","","","" +HL7_to_INTERNAL/FLFHospital-SARSCOV2-20200317-0001.hl7,hl7/test-covid-19,HL7_to_INTERNAL/FLFHospital-SARSCOV2-20200317-0001.internal.csv,covid-19,INTERNAL,FAIL,"","","","","","" +HL7_to_INTERNAL/CA-20211001-sully.hl7,hl7/test-covid-19,HL7_to_INTERNAL/CA-20211018-sully.internal.csv,covid-19,INTERNAL,PASS,"","","","","","" +HL7_to_INTERNAL/LP-covid-19-20220124002222.hl7,hl7/lifepoint-covid-19,HL7_to_INTERNAL/LP-covid-19-20220124002222.internal.csv,covid-19,INTERNAL,PASS,"","ignore.ignore-lifepoint","","","","" +HL7_to_INTERNAL/monkeypox-20221110.hl7,monkeypox,HL7_to_INTERNAL/monkeypox-20221110.internal.csv,monkeypox,INTERNAL,PASS,"current_date","ignore.ignore-monkeypox","","","","" +HL7_to_FHIR/sample_orm_20230809-001.hl7,,HL7_to_FHIR/sample_orm_20230809-001.fhir,,FHIR,PASS,"","","","","","" +HL7_to_FHIR_to_HL7/elims_40_4988249_33033.hl7,,HL7_to_FHIR_to_HL7/elims_40_4988249_33033-expected.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml,HL7,PASS,"","test.dev-elims","","","","" +HL7_to_FHIR_to_HL7/elims_40_4988249_33033-with-truncation.hl7,,HL7_to_FHIR_to_HL7/elims_40_4988249_33033-with-truncation-expected.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml,HL7,PASS,"","test.dev-elims","","","","" +HL7_to_FHIR_to_HL7/elims_52_24095_04204575_5120.hl7,,HL7_to_FHIR_to_HL7/elims_52_24095_04204575_5120-expected.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml,HL7,PASS,"","test.dev-elims","","","","" +HL7_to_FHIR_to_HL7/elims_47_3_04608717_11184_mega_specimen.hl7,,HL7_to_FHIR_to_HL7/elims_47_3_04608717_11184_mega_specimen-expected.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml,HL7,PASS,"","test.dev-elims","","","","" +HL7_to_FHIR_to_HL7/elims_47_2_04608646_11024_mega_specimen.hl7,,HL7_to_FHIR_to_HL7/elims_47_2_04608646_11024_mega_specimen-expected.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml,HL7,PASS,"","test.dev-elims","","","","" +HL7_to_FHIR_to_HL7/elims_47_1_32361_04608646_11034_mega_case.hl7,,HL7_to_FHIR_to_HL7/elims_47_1_32361_04608646_11034_mega_case-expected.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml,HL7,PASS,"","test.dev-elims","","","","" +HL7_to_FHIR_to_HL7/elims_2_40_05059364_34872_MIN.hl7,,HL7_to_FHIR_to_HL7/elims_2_40_05059364_34872_MIN-expected.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml,HL7,PASS,"","test.dev-elims","","","","" +HL7_to_FHIR_to_HL7/elims_1_72_3029202646_5532_NoPII.hl7,,HL7_to_FHIR_to_HL7/elims_1_72_3029202646_5532_NoPII-expected.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml,HL7,PASS,"","test.dev-elims","","","","" +HL7_to_FHIR_to_HL7/elims_2_52_5068110_35230_NoPII.hl7,,HL7_to_FHIR_to_HL7/elims_2_52_5068110_35230_NoPII-expected.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml,HL7,PASS,"","test.dev-elims","","","","" +HL7_to_FHIR_to_HL7/elims_2_72_3029198209_5121_NoPII.hl7,,HL7_to_FHIR_to_HL7/elims_2_72_3029198209_5121_NoPII-expected.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml,HL7,PASS,"","test.dev-elims","","","","" +HL7_to_FHIR_to_HL7/elims_29_5065302_35227_NoPII_CANCELED.hl7,,HL7_to_FHIR_to_HL7/elims_29_5065302_35227_NoPII_CANCELED-expected.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml,HL7,PASS,"","test.dev-elims","","","","" +HL7_to_FHIR_to_HL7/hci.hl7,,HL7_to_FHIR_to_HL7/hci-expected.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml,HL7,PASS,"","test.dev-hci","","","","" +FHIR_to_HL7/sample_SR_1_20230302-0001.fhir,,FHIR_to_HL7/sample_SR_1_20230302-0001.hl7,,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml",ca-test.default-receiver,"","" +FHIR_to_HL7/sample_SR_1_20230302-0001-missing-data.fhir,,FHIR_to_HL7/sample_SR_1_20230302-0001-missing-data.hl7,,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml",ca-test.default-receiver,"","" +FHIR_to_HL7/sample_SR_2_20231024-0002.fhir,,FHIR_to_HL7/sample_SR_2_20231024-0002.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/NY/NY-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" +FHIR_to_HL7/sample_OML_20230831-0001.fhir,,FHIR_to_HL7/sample_OML_20230831-0001.hl7,classpath:/metadata/hl7_mapping/receivers/Flexion/TILabOrder.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/Flexion/TILabOrder.yml","","","" +FHIR_to_HL7/sample_SR_2_20231106-0003.fhir,,FHIR_to_HL7/sample_RI_20231213-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/RI/RI-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" +FHIR_to_HL7/simple_report_with_date_aoe_question.fhir,,FHIR_to_HL7/simple_report_with_date_aoe_question.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","","","" +HL7_to_FHIR/sample_orm_20230809-001.hl7,,HL7_to_FHIR/sample_orm_20230809-001-with-enrichment.fhir,,FHIR,PASS,"","","","","","classpath:/enrichments/testing2.yml" +HL7_to_FHIR_to_HL7/elims_40_4988249_33033.hl7,,HL7_to_FHIR_to_HL7/elims_40_4988249_33033_with_enrichment.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-test.yml,HL7,PASS,"","test.dev-elims","","","","classpath:/enrichments/testing2.yml" +HL7_to_FHIR_to_HL7/elims_40_4988249_33033.hl7,,HL7_to_FHIR_to_HL7/elims_40_4988249_33033_with_double_enrichment.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-test.yml,HL7,PASS,"","test.dev-elims","","","","classpath:/enrichments/testing.yml,classpath:/enrichments/testing2.yml" +HL7_to_FHIR_to_HL7/elims_40_4988249_33033.hl7,,HL7_to_FHIR_to_HL7/elims_40_4988249_33033_with_double_enrichment.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-test.yml,HL7,PASS,"","test.dev-elims","","ca-test.enrichment-receiver","","" +FHIR_to_HL7/sample_VI_20231228-001.fhir,,FHIR_to_HL7/sample_VI_20231228-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/VI/VI-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" +FHIR_to_HL7/sample_NV_20240212-0001.fhir,,FHIR_to_HL7/sample_NV_20240212-0001.h7,classpath:/metadata/hl7_mapping/receivers/STLTs/NV/NV-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" +FHIR_to_HL7/sample_AK_20240220-0001.fhir,,FHIR_to_HL7/sample_AK_20240220-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/AK/AK-receiver-transform.yml,HL7,PASS,"","","","","","" +HL7_to_FHIR_to_HL7/etor_ORU_20240220.hl7,,HL7_to_FHIR_to_HL7/etor_ORU_20240220-expected.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml,HL7,PASS,"","flexion.simulated-lab","","","","" +FHIR_to_HL7/sample_SC_20240305-0001.fhir,,FHIR_to_HL7/sample_SC_20240305-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/SC/SC-receiver-transform.yml,HL7,PASS,"","","","","",""