hl7ch / cda-fhir-maps

Maps (FHIR Mapping Language) to transform documents from CDA to FHIR and back
Apache License 2.0
19 stars 8 forks source link

CDA -> FHIR: quantity mapping isn't complete #19

Closed ziegm closed 3 years ago

ziegm commented 3 years ago

Transformation from CDA to FHIR

actual mapping: <doseQuantity value="40" unit="mg"/>

"doseAndRate": [{
       "doseQuantity": {
                "value": 40,
                 "code": "mg"
          }
      }
]

Validation error: qty-3: If a code for the unit is present, the system SHALL also be present [code.empty() or system.exists()]

target mapping:

"doseQuantity": {
      "value": 40,
      "unit": "mg",
      "system": "http://unitsofmeasure.org",
      "code": "mg"
},
oliveregger commented 3 years ago

@ziegm can you add a link to the source file this is happening?

ziegm commented 3 years ago

https://github.com/hl7ch/cda-fhir-maps/blob/master/input/cda-ch-emed/pmlc2.xml

ziegm commented 3 years ago

reviewed and tested