diff --git a/prime-router/src/main/resources/metadata/fhir_transforms/common/suppress-device-information.yml b/prime-router/src/main/resources/metadata/fhir_transforms/common/suppress-device-information.yml index 3d3cdcb452b..33d0f6d7a81 100644 --- a/prime-router/src/main/resources/metadata/fhir_transforms/common/suppress-device-information.yml +++ b/prime-router/src/main/resources/metadata/fhir_transforms/common/suppress-device-information.yml @@ -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: [ '""' ] \ No newline at end of file + ##OBX-18-3 different mappings + - name: suppress-device-type-id + resource: 'Bundle.entry.resource.ofType(Device).identifier' + bundleProperty: [ '%resource.type.coding.code' ] + value: [ '""' ] \ No newline at end of file