FHIR Chat · Fixed value · implementers

Stream: implementers

Topic: Fixed value


view this post on Zulip Aritra Kundu (Mar 05 2021 at 20:26):

Hi Team,

Can anyone help me to interpret what is Fixed Value: (complex) suggest ?

Ex: DiagnosticReport.category.coding , Observation.category.coding etc.

Regards,
Aritra

view this post on Zulip Lloyd McKenzie (Mar 05 2021 at 21:00):

That's something you'll only see in a profile - and it should be rare. In most cases, profiles should be using 'pattern' rather than 'fixed value'. What it's saying is that it's fixing the value for a complex data type - in this case Coding. That means it's defining a value for Coding.system, Coding .code and possibly Coding.display. It's also preventing other elements, such as Coding.verison, Coding.id and Coding.extension from being present.

view this post on Zulip Eric Haas (Mar 05 2021 at 21:17):

here is an example of fixed value rendering in a profile:

image.png

view this post on Zulip Eric Haas (Mar 05 2021 at 21:18):

vs example of pattern rendering in a profile:

image.png

view this post on Zulip Eric Haas (Mar 05 2021 at 21:19):

both do the same thing... limit your choices. The arcane differences are explained by Lloyd

view this post on Zulip Eric Prud'hommeaux (Mar 06 2021 at 07:04):

so the pattern to which Lloyd referred is on the code, not the coding

view this post on Zulip Eric Prud'hommeaux (Mar 06 2021 at 07:43):

to put these into one example and git rid of the slicing details, i guess this data:

{ "coding": {
  "system": "http://loinc.org",
  "code": "85354-9",
  "version": "2.67",
  "display": "Blood pressure panel with all children optional.",
  "id": "common-coding-loinc-85354-9",
  "language": "en",
  "meta": { "source": "http://myemr.example/standards" }
} }

would not conform to this closed structure:

└📦 code      S 1..*  CodeableConcept     Blood Pressure
 │
 └📦 coding   S 1..*  Coding              Code defined by a terminology system
  │
  ├▭ system   S 1..1  url                 Identity of terminology system
  │                                       Fixed Value http://loinc.org
  ├▭ code     S 1..1  code                Symbol in syntax defined by the system
  │                                       Fixed Value 85354-9
  └▭ version  S 1..1  code                Version of the system - if relevant
                                          Fixed Value 2.67

because "display", "id", "language" and "meta" aren't permitted by a closed complex object.
It would, however, conform to:

└📦 code       S 1..*  CodeableConcept    Blood Pressure
 │                                        Required Pattern: At least the following
 └🔒 coding      1..*  Coding             ode defined by a terminology system
  │                                       Fixed Value: (complex)
  ├🔒 system     1..1  url                dentity of terminology system
  │                                       Fixed Value http://loinc.org
  ├🔒 code       1..1  code               Symbol in syntax defined by the system
  │                                       Fixed Value 85354-9
  └🔒 version    1..1  code               Version of the system - if relevant
                                          Fixed Value 2.67

because the rest of the Coding attributes are permitted.

view this post on Zulip Lloyd McKenzie (Mar 06 2021 at 18:07):

language and meta aren't allowed period because they're not supported in the base type for Coding - which is closed. (There's an extension for language and meta is only allowed at the resource level, not the data element level.)


Last updated: Apr 12 2022 at 19:14 UTC