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

FHIR -> CDA: text.reference #30

Closed ziegm closed 3 years ago

ziegm commented 3 years ago

Original FHIR

"text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<span id=\"co1\">\nKommentar zu Medication Treatment\n</span>\n</div>"
            }

Transformed CDA

          <text>
            <content ID="co1">
                  Kommentar zu Medication Treatment
              </content>
          </text>
          <text>
                <reference value="#co1"/>
          </text>

Generated JSON

"text": {
                            "status": "generated",
                            "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Kommentar zu Medication Treatment</div>"
                        }

Transformed CDA

<text>Kommentar zu Medication Treatment</text>
              <text>
                <reference value="#&lt;div xmlns="/>
              </text>
ziegm commented 3 years ago

To be changed in the source system