generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes a bug while truncating OBX-23-1.
- Loading branch information
1 parent
e804079
commit f532061
Showing
1 changed file
with
22 additions
and
23 deletions.
There are no files selected for viewing
45 changes: 22 additions & 23 deletions
45
...router/src/main/resources/metadata/fhir_transforms/common/suppress-device-information.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 |
---|---|---|
@@ -1,28 +1,27 @@ | ||
## Suppresses Device information OBX-18-1,OBX-18-2,OBX-18-3 | ||
elements: | ||
##OBX-18-1 | ||
- name: suppress-device-name | ||
resource: 'Bundle.entry.resource.ofType(Device).identifier' | ||
value: [ '""' ] | ||
bundleProperty: '%resource.value' | ||
|
||
##OBX-18-1 | ||
- name: suppress-device-name | ||
resource: 'Bundle.entry.resource.ofType(Device).identifier' | ||
value: [ '""' ] | ||
bundleProperty: '%resource.value' | ||
##OBX-18-2 | ||
- name: suppess-device-namespace_id | ||
resource: 'Bundle.entry.resource.ofType(Device).identifier' | ||
condition: '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority").extension("https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id").exists()' | ||
bundleProperty: [ '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority").extension("https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id").value[x]' ] | ||
value: [ '""' ] | ||
|
||
##OBX-18-2 | ||
- name: suppess-device-namespace_id | ||
resource: 'Bundle.entry.resource.ofType(Device).identifier' | ||
condition: '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority").extension("https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id").exists()' | ||
bundleProperty: [ '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority").extension("https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id").value[x]' ] | ||
value: [ '""' ] | ||
##OBX-18-3 | ||
- name: suppress-device-universal-id | ||
resource: 'Bundle.entry.resource.ofType(Device).identifier' | ||
condition: '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority").extension("https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id").exists()' | ||
bundleProperty: [ '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority").extension("https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id").value[x]' ] | ||
value: [ '""' ] | ||
|
||
##OBX-18-3 | ||
- name: suppress-device-universal-id | ||
resource: 'Bundle.entry.resource.ofType(Device).identifier' | ||
condition: '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority").extension("https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id").exists()' | ||
bundleProperty: [ '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority").extension("https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id").value[x]' ] | ||
value: [ '""' ] | ||
|
||
##OBX-18-3 different mappings | ||
- name: suppress-device-type-id | ||
resource: 'Bundle.entry.resource.ofType(Device).identifier' | ||
bundleProperty: [ '%resource.type.coding.code' ] | ||
value: [ '""' ] | ||
##OBX-18-3 different mappings | ||
- name: suppress-device-type-id | ||
resource: 'Bundle.entry.resource.ofType(Device).identifier' | ||
bundleProperty: [ '%resource.type.coding.code' ] | ||
value: [ '""' ] |