Stream: IG creation
Topic: Not all the profiled items shown in the Differential View
Giorgio Cangioli (Jul 17 2018 at 15:27):
For some IPS profiles the differential view in the published IG doesn't include all the profiled items.
This is the differential content of one of the simplest profiles
<differential>
<element id="Device.identifier">
<path value="Device.identifier"/>
<mustSupport value="true"/>
</element>
<element id="Device.manufacturer">
<path value="Device.manufacturer"/>
<mustSupport value="true"/>
</element>
<element id="Device.model">
<path value="Device.model"/>
<mustSupport value="true"/>
</element>
</differential>
and this is what is shown
The snapshot view seems to be instead correct.
Have you any suggestion for fixing this kind of issue ?
Thanks, Giorgio
Michel Rutten (Jul 17 2018 at 15:51):
@Giorgio Cangioli just a lucky guess, but you might be able to fix the diff rendering by (manually) including missing parent elements in the profile diff component; in this particular case by explicitly including a root element with path and id equal to "Device". According to the FHIR spec, differential component may be sparse, however not all rendering logic is smart enough to automatically render any missing parent nodes.
Giorgio Cangioli (Jul 17 2018 at 21:46):
@Michel Rutten for my simple case your "lucky guess" seems to work :-)
Giorgio Cangioli (Jul 17 2018 at 21:48):
I'l try tomorrow to apply the same approach also to all the other "wrongly displayed" profiles and I let you know. Thanks.
Giorgio Cangioli (Jul 18 2018 at 13:24):
... Yes adding the missing parent items the differential view seems now correct for all the profiles...
Last updated: Apr 12 2022 at 19:14 UTC