Stream: IG creation
Topic: Presentation of FHIR documents
Richard Townley-O'Neill (Jun 21 2018 at 07:37):
http://build.fhir.org/documents.html#presentation says that documents should be presented as
The subject resource Narrative
The Composition resource Narrative
The section.text Narratives
It also says
The Composition resource narrative should summarize the important parts of the document header that are required to establish clinical context for the document (other than the subject, which is displayed in its own right). To actually build the combined narrative, simply append all the narrative <div> fragments together.
The HTML pages generated by the ig publisher do not display example documents this way.
I want to display example documents in an IG correctly
Can I edit the Composition.text to include narrative from the subject and the sections?
Should I leave the Composition.text as described above and edit the HTML for the example page to display the document correctly?
Lloyd McKenzie (Jun 21 2018 at 08:39):
The IGPublisher doesn't have a "document" setting when it renders Bundles. At present, it treats them the same as any other Bundle. That doesn't have to be the case though. Can you submit a change request for us to follow the document-rendering rules when producing the "narrative" view of a Bundle that declares itself to be a FHIR document?
Lloyd McKenzie (Jun 21 2018 at 08:40):
In terms of what to do between now and then, manually editing the generated HTML would be the most correct. (Understand that it's also the most painful...)
Richard Townley-O'Neill (Jun 21 2018 at 23:14):
Thanks for confirming my fear that the correct method was the most effortful one.
Issue #17401 created.
Richard Townley-O'Neill (Jun 24 2018 at 11:42):
On further thought the correct solution would not be to edit the example of Composition, but to generate a new page to show the example document involving the bundle, composition, and other resources.
Last updated: Apr 12 2022 at 19:14 UTC