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

empty narrative #55

Closed ziegm closed 2 years ago

ziegm commented 2 years ago

if there is no content in the narrative, could we add a default text (e.g. no content, -) there, that we have a valid document?

oliveregger commented 2 years ago

where does this happen? there should be not no content in the narrative ..

ziegm commented 2 years ago

the problem was solved already during the projectathon with quentin, there was a missing element in the cda document.

qligier commented 2 years ago

If I remember correctly, there was no missing element, the narrative content looked like <text><content id="narrative" /></text>. It passes CDA validation, but the FHIR validator complained about the transformed content (because the HTML contained only elements, no text?).

ziegm commented 2 years ago

@qligier thanks for the comment. I thought Pedro (monitor of that Gazelle test) told me then you added text? Is the CDA validation correct? Does it make sense to have an empty narrative?

qligier commented 2 years ago

The CDA validator only checks for the existence of referenced IDs, so we may encounter this issue again. But I'd prefer to fix the current state of narrative texts before fixing such small details :)