Skip to content

Commit

Permalink
Fixes a bug while truncating OBX-23-1.
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-chaparro committed Sep 6, 2024
1 parent e804079 commit f532061
Showing 1 changed file with 22 additions and 23 deletions.
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: [ '""' ]

0 comments on commit f532061

Please sign in to comment.