HL7 / ig-template-base

Base IG template managed by HL7 but usable by anyone (no logos). The foundation for most HL7-published IGs
14 stars 27 forks source link

Change 'narrative' tab name for resources that don't have narrative. #163

Open lmckenzi opened 3 years ago

lmckenzi commented 3 years ago

The 'fragment' that is used to expose narrative information is being populated even for resources like Bundle, Parameters, etc. E.g. https://build.fhir.org/ig/HL7/davinci-ehrx/Parameters-member-match-out.html.

However, this content isn't actually narrative, even though the tab says it is. This is likely to be confusing to implementers. The template should check the resource type and if it's Bundle, Parameters, Binary or anything else that inherits directly from Resource (and not DomainResource) and change the tab name to "Rendered View" instead of "Narrative View" (perhaps with a flyover that says '[resource type] resources don't have narrative, but a rendered view is provided here for reviewer convenience'.

Also, consider suppressing the 'narrative' tab for resources that don't actually have any narrative.