Stream: implementers
Topic: Narrative reference to a PDF as FHIR doc representation
Oliver Egger (May 20 2021 at 18:18):
We have a similar challenge as @James Dinsmore mentioned in Narrative Text via DocumentReference, but i didn't want to hijack his thread . We need to have the document representation for a structured document (FHIR Bundle) added as an embedded pdf. In CDA we made this with an entry observationMedia and referenced it form narrative via renderMultiMedia. For a FHIR document we handled it in a first approach as a Binary entry with a reference from the section through an img tag:
<section>
...
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
Representation of the original view:
<img src="2-7-pdf"/>
</div>
</text>
<entry>
<reference value="Binary/2-7-pdf"/>
</entry>
</section>
However this seems wrong since a pdf is not an xhtml <img> tag, but we did not find yet another way to refer the Binary pdf from the narrartive except maye adding an extension to the text element, see our discussion here. Any input highly appreciated how to better represent a pdf representation in a FHIR Document bundle.
Vassil Peytchev (May 20 2021 at 18:22):
Are <a> links not allowed in the text <div>?
Oliver Egger (May 20 2021 at 18:36):
:+1: @Vassil Peytchev i missed maybe the obvious, thanks a lot ... spes says '' <a> elements (either name or href)", so the example could be rewritten as?
<section>
...
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
<a href="2-7-pdf">Representation of the original view</a>
</div>
</text>
<entry>
<reference value="Binary/2-7-pdf"/>
</entry>
</section>
since the Binary is not contained, but in the bundle as an entry with an id the href would not be prefixed with an # and the stylesheet would know hot reference the Binary.
Vassil Peytchev (May 20 2021 at 18:44):
I am not sure if that will work, but if the <img> example is supposed to work for images, then I don't see why this example won't work for <a> links...
Last updated: Apr 12 2022 at 19:14 UTC