FHIR Chat · display-hint extension · terminology

Stream: terminology

Topic: display-hint extension


view this post on Zulip Jay Lyle (Dec 03 2019 at 20:59):

I stumbled on this extension in the Observation structure definition:

<element id="Observation.status">
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint">
    <valueString value="default: final"/> 
  </extension>

This extension is listed back to DSTU2. The extension registry describes it as "Hinting information for the narrative generator - a series of name: value; pairs." I see it used in a handful of places, with various syntax.

ClaimResponse.patient: value="who.focus"
ImagingStudy.uid: value="dicom="
ImagingStudy.patient: value="dicom=http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.2.2.html"
ImagingStudy.started: value="dicom=http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.7.2.html#sect_C.7.2.1"

What does it mean?

view this post on Zulip Lloyd McKenzie (Dec 03 2019 at 21:22):

It's @Grahame Grieve magic for auto-generating narative

view this post on Zulip Grahame Grieve (Dec 03 2019 at 21:31):

the specific extension you quoted is an instruction to the narrative generator that status = final is the default value, and not to generate anything in the narrative for the status if it sees that value

view this post on Zulip Grahame Grieve (Dec 03 2019 at 21:31):

the others just look outright like errors in the definitions that no one noticed till now

view this post on Zulip Jay Lyle (Dec 03 2019 at 21:55):

So, "default" does actually mean that "final" should be inferred if the property is absent, but only in the narrative itself because the generator is told to omit it. Interesting.

view this post on Zulip Grahame Grieve (Dec 03 2019 at 22:04):

no. final should not be inferred if the property is missing

view this post on Zulip Grahame Grieve (Dec 03 2019 at 22:05):

really, 'default' should be renamed here. It's not a default value, it's just a value not to display


Last updated: Apr 12 2022 at 19:14 UTC