Skip to content

Commit

Permalink
Merge pull request #16899 from CDCgov/feature/engagement/apham/16776-…
Browse files Browse the repository at this point in the history
…mmtc-sender-transform

Feature/engagement/apham/16776 mmtc sender transform
  • Loading branch information
the-andrew authored Dec 23, 2024
2 parents 9cdaaba + 3a4bc56 commit 55854a0
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,37 @@ elements:
resource: "Bundle.entry.resource.ofType(ServiceRequest).requester.resolve().organization.resolve().address"
bundleProperty: '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/state-from-zip-code").value[x]'
value: [ '%resource.postalCode.getStateFromZipCode()' ]

# Ticket 16776
# Temporary override for MSH 5 and 6 until original fields are updated
# If this override is removed, the associated test files should also be removed: mmtc-msh5-msh6-sender-override.hl7
- name: msh-5-1-override
resource: 'Bundle.entry.resource.ofType(MessageHeader).destination.where(extension("https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field").value = "MSH.5")'
bundleProperty: '%resource.name'
value: [ '"CDC PRIME"' ]

- name: msh-5-2-override
resource: 'Bundle.entry.resource.ofType(MessageHeader).destination.where(extension("https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field").value = "MSH.5")'
bundleProperty: '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id").value[x]'
value: [ '"2.16.840.1.114222.4.1.237821"' ]

- name: msh-5-3-override
resource: 'Bundle.entry.resource.ofType(MessageHeader).destination.where(extension("https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field").value = "MSH.5")'
bundleProperty: '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type").value[x]'
value: [ '"ISO"' ]

# Assume that HL7 messages will have these extension properties...
- name: msh-6-1-override
resource: 'Bundle.entry.resource.ofType(MessageHeader).destination.receiver.resolve().where(extension("https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field").value = "MSH.6").identifier.where(extension("https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field").value = "HD.1")'
bundleProperty: '%resource.value'
value: [ '"CDC PRIME"' ]

- name: msh-6-2-override
resource: 'Bundle.entry.resource.ofType(MessageHeader).destination.receiver.resolve().where(extension("https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field").value = "MSH.6").identifier.where(extension("https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field").value = "HD.2,HD.3")'
bundleProperty: '%resource.value'
value: [ '"2.16.840.1.114222.4.1.237821"' ]

- name: msh-6-3-override
resource: 'Bundle.entry.resource.ofType(MessageHeader).destination.receiver.resolve().where(extension("https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field").value = "MSH.6").identifier.where(extension("https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field").value = "HD.2,HD.3")'
bundleProperty: '%resource.type.coding[0].code'
value: [ '"ISO"' ]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MSH|^~\&|MMTC.STAG^2.16.840.1.113883.3.8589.4.2.106.2^ISO|CAREEVOLUTION^00Z0000024^CLIA|CDC PRIME^2.16.840.1.114222.4.1.237821^ISO|CDC PRIME^2.16.840.1.114222.4.1.237821^ISO|20241212005051+0000||ORU^R01^ORU_R01|20241212005051_b1a608d13bee414faf86e1420c41305e|T|2.5.1|||NE|NE||UNICODE UTF-8|ENG^English^ISO||PHLabReport-NoAck^ELR251R1_Rcvr_Prof^2.16.840.1.113883.9.11^ISOSFT|CAREEVOLUTION|2022|MMTC.STAG|16498||20241203PID|1||a0fbea5818d347b8ba981d90ba48c63c^^^MMTC.STAG&2.16.840.1.113883.3.8589.4.2.106.2&ISO^PI||^^^^^^S||||||^^^^15206^USA||^^^^^111^1111111ORC|RE||b1a608d13bee414faf86e1420c41305e^MMTC.STAG^2.16.840.1.113883.3.8589.4.2.106.2^ISO|||||||||^^SA.OTCSelfReport|||||||||SA.OTCSelfReport|^^^^15206|^^^^^111^1111111OBR|1||b1a608d13bee414faf86e1420c41305e^MMTC.STAG^2.16.840.1.113883.3.8589.4.2.106.2^ISO|94558-4^SARS-CoV-2 (COVID-19) Ag [Presence] in Respiratory specimen by Rapid immunoassay^LN^^^^2.71|||20241211120000-0500|||||||20241211120000-0500||^^SA.OTCSelfReport||||||20241211120000-0500|||FOBX|1|CWE|94558-4^SARS-CoV-2 (COVID-19) Ag [Presence] in Respiratory specimen by Rapid immunoassay^LN^^^^2.71||260373001^Detected^SCT^^^^20200901||||||F||||00Z0000042||BinaxNOW COVID-19 Antigen Self Test_Abbott Diagnostics Scarborough, Inc._EUA^^99ELR^^^^Vunknown||20241211120000||||SA.OTCSelfReport^^^^^&2.16.840.1.113883.3.8589.4.1.152&ISO^XX^^^00Z0000042|14 Fake AtHome Test Street^^Fake CityNTE|1|L|BinaxNOW COVID-19 Antigen Self Test_Abbott Diagnostics Scarborough, Inc._EUAOBX|2|NM|35659-2^Age at specimen collection^LN^^^^2.71||33|a^year^UCUM^^^^2.1|||||F||||00Z0000042||||||||SA.OTCSelfReport^^^^^&2.16.840.1.113883.3.8589.4.1.152&ISO^XX^^^00Z0000042|14 Fake AtHome Test Street^^Fake City|||||QSTSPM|1|^b1a608d13bee414faf86e1420c41305e&MMTC.STAG&2.16.840.1.113883.3.8589.4.2.106.2&ISO||697989009^Anterior nares swab^SCT^^^^20200901|||||||||||||20241211120000-0500|20241211120000-0500
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MSH|^~\&|MMTC.STAG^2.16.840.1.113883.3.8589.4.2.106.2^ISO|CAREEVOLUTION^00Z0000024^CLIA|AIMS.INTEGRATION.STG^2.16.840.1.114222.4.3.15.2^ISO|AIMS.PLATFORM^2.16.840.1.114222.4.1.217446^ISO|20241212005051+0000||ORU^R01^ORU_R01|20241212005051_b1a608d13bee414faf86e1420c41305e|T|2.5.1|||NE|NE|||||PHLabReport-NoAck^ELR251R1_Rcvr_Prof^2.16.840.1.113883.9.11^ISO
SFT|CAREEVOLUTION|2022|MMTC.STAG|16498||20241203
PID|1||a0fbea5818d347b8ba981d90ba48c63c^^^MMTC.STAG&2.16.840.1.113883.3.8589.4.2.106.2&ISO^PI||^^^^^^S||||||^^^^15206^USA||^^^^^111^1111111
ORC|RE||b1a608d13bee414faf86e1420c41305e^MMTC.STAG^2.16.840.1.113883.3.8589.4.2.106.2^ISO|||||||||^^SA.OTCSelfReport|||||||||SA.OTCSelfReport|^^^^15206|^^^^^111^1111111
OBR|1||b1a608d13bee414faf86e1420c41305e^MMTC.STAG^2.16.840.1.113883.3.8589.4.2.106.2^ISO|94558-4^SARS-CoV-2 (COVID-19) Ag [Presence] in Respiratory specimen by Rapid immunoassay^LN^^^^2.71|||20241211120000-0500|||||||||^^SA.OTCSelfReport||||||20241211120000-0500|||F
OBX|1|CWE|94558-4^SARS-CoV-2 (COVID-19) Ag [Presence] in Respiratory specimen by Rapid immunoassay^LN^^^^2.71||260373001^Detected^SCT^^^^20200901||||||F||||00Z0000042||BinaxNOW COVID-19 Antigen Self Test_Abbott Diagnostics Scarborough, Inc._EUA^^99ELR^^^^Vunknown||20241211120000||||SA.OTCSelfReport^^^^^&2.16.840.1.113883.3.8589.4.1.152&ISO^XX^^^00Z0000042|14 Fake AtHome Test Street^^Fake City
NTE|1|L|BinaxNOW COVID-19 Antigen Self Test_Abbott Diagnostics Scarborough, Inc._EUA
OBX|2|NM|35659-2^Age at specimen collection^LN^^^^2.71||33|a^year^UCUM^^^^2.1|||||F||||00Z0000042||||||||SA.OTCSelfReport^^^^^&2.16.840.1.113883.3.8589.4.1.152&ISO^XX^^^00Z0000042|14 Fake AtHome Test Street^^Fake City|||||QST
SPM|1|^b1a608d13bee414faf86e1420c41305e&MMTC.STAG&2.16.840.1.113883.3.8589.4.2.106.2&ISO||697989009^Anterior nares swab^SCT^^^^20200901|||||||||||||20241211120000-0500|20241211120000-0500
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,5 @@ FHIR_to_HL7/sample_ME_20240806-0001.fhir,,FHIR_to_HL7/sample_ME_20240806-0001.hl
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/mars_unwanted_condition_to_notes.fhir,,FHIR_to_HL7/mars_unwanted_condition_to_notes.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/Test/test-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","","",""
HL7_to_FHIR/sample_oru_20241015-001.hl7,,HL7_to_FHIR/sample_oru_20241015-001.fhir,,FHIR,PASS,"","","","","",""
HL7_to_FHIR/sample_oru_20241015-001.hl7,,HL7_to_FHIR/sample_oru_20241015-001.fhir,,FHIR,PASS,"","","","","",""
HL7_to_FHIR_to_HL7/mmtc-msh5-msh6-sender-override.hl7,,HL7_to_FHIR_to_HL7/mmtc-msh5-msh6-sender-override-expected.hl7,classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/MMTC/mmtc-sender-transform.yml","","",""

0 comments on commit 55854a0

Please sign in to comment.