Stream: IG creation
Topic: adding examples to IG
Lakshmi Thrivarna (Apr 13 2018 at 09:31):
Hi all, when I tried to add an example for an Observation profile to DiagnosticReport example profile, the IG output is displayed as in the screenshot below
asdfghjk.png
Lloyd McKenzie (Apr 13 2018 at 14:29):
Ok. And what's the narrative for your resource? Are the XML & JSON showing up correctly?
Eric Haas (Apr 14 2018 at 00:04):
That is what you expect if your [Resoure].text.div is empty...... add something like 'foo' and you will see it rendered in this tab. The xml and json will show the example in xml and json. You have a couple of options here.
- remove the .text element from the example instance and the ig-publisher will render the narrative for you (and it does a pretty decent job too - thanks to Lloyd and Grahame
- create your own narrative view for the example (in xhtml)
Lakshmi Thrivarna (Apr 17 2018 at 07:10):
@Lloyd McKenzie I created example as observation first and next created DiagnosticReport for DiagnosticReport Profile..
XML & JSON format is showing correctly.
Lloyd McKenzie (Apr 17 2018 at 14:29):
And do your resources have narrative?
Lakshmi Thrivarna (Apr 19 2018 at 09:38):
@Lloyd McKenzie yes, resources have narrative
Lloyd McKenzie (Apr 19 2018 at 14:31):
And the narrative isn't being rendered?
Lakshmi Thrivarna (Apr 20 2018 at 05:06):
@Lloyd McKenzie Example values are there in XML but Output is empty like this
https://chat.fhir.org/user_uploads/10155/lUHmcM47xMuKKPvFS1GrBHPP/asdfghjk.png
Pls help me
Lloyd McKenzie (Apr 20 2018 at 13:02):
Can you share the example XML?
Eric Haas (Apr 20 2018 at 16:07):
send the example.
Last updated: Apr 12 2022 at 19:14 UTC