generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'engagement/hl7data-improvements' of https://github.com/…
…CDCgov/prime-reportstream into engagement/hl7data-improvements
- Loading branch information
Showing
7 changed files
with
148 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
prime-router/src/main/resources/metadata/hl7_mapping/ORU_R01/OBX-shadow.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
constants: | ||
hl7ObservationPath: '/PATIENT_RESULT/ORDER_OBSERVATION/OBSERVATION(%{resultIndex})' | ||
|
||
elements: | ||
# OBX 15.2 | ||
- name: obx-producer-text | ||
condition: '%resource.code.coding.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code").value.where(code in ("AOE")).exists()' | ||
value: [ '""' ] | ||
hl7Spec: [ '%{hl7ObservationPath}/OBX-15-2' ] | ||
|
||
# OBX 15.3 | ||
- name: obx-producer-coding-system-name | ||
condition: '%resource.code.coding.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code").value.where(code in ("AOE")).exists()' | ||
value: [ '""' ] | ||
hl7Spec: [ '%{hl7ObservationPath}/OBX-15-3' ] | ||
|
||
# OBX 23-2 | ||
- name: obx-organization-name-type-code | ||
condition: '%resource.code.coding.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code").value.where(code in ("AOE")).exists().not()' | ||
value: [ '"L"' ] | ||
hl7Spec: [ '%{hl7ObservationPath}/OBX-23-2' ] | ||
|
||
# OBX 23-2 - Remove tag if AOE | ||
- name: obx-organization-name-type-code-aoe | ||
condition: '%resource.code.coding.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code").value.where(code in ("AOE")).exists()' | ||
value: [ '""' ] | ||
hl7Spec: [ '%{hl7ObservationPath}/OBX-23-2' ] | ||
|
||
# OBX 23-6.1-3 | ||
- name: obx-assigning-authority-namespace-id | ||
condition: '%resource.code.coding.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code").value.where(code in ("AOE")).exists().not()' | ||
value: [ '"CLIA"' ] | ||
hl7Spec: [ '%{hl7ObservationPath}/OBX-23-6-1' ] | ||
|
||
- name: obx-assigning-authority-universal-id | ||
condition: '%resource.code.coding.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code").value.where(code in ("AOE")).exists().not()' | ||
value: [ '"2.16.840.1.113883.4.7"' ] | ||
hl7Spec: [ '%{hl7ObservationPath}/OBX-23-6-2' ] | ||
|
||
- name: obx-assigning-authority-universal-id-type | ||
condition: '%resource.code.coding.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code").value.where(code in ("AOE")).exists().not()' | ||
value: [ '"ISO"' ] | ||
hl7Spec: [ '%{hl7ObservationPath}/OBX-23-6-3' ] |
16 changes: 16 additions & 0 deletions
16
prime-router/src/main/resources/metadata/hl7_mapping/ORU_R01/ORU_R01-shadow.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# $schema: ./../../../../../../metadata/json_schema/fhir/fhir-to-hl7-mapping.json | ||
|
||
hl7Class: ca.uhn.hl7v2.model.v27.message.ORU_R01 | ||
extends: classpath:/metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml | ||
|
||
elements: | ||
- name: obx-shadow | ||
resource: 'Bundle.entry.resource.ofType(Observation)' | ||
condition: '%resource.count() > 0' | ||
schema: classpath:/metadata/hl7_mapping/ORU_R01/OBX-shadow.yml | ||
resourceIndex: resultIndex | ||
|
||
# ORC 21.7 | ||
- name: orc-identifier-type-code | ||
value: [ '""' ] | ||
hl7Spec: [ /PATIENT_RESULT/ORDER_OBSERVATION/ORC-21-7 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters