Stream: implementers
Topic: FHIR Docs- Pattern "mappings"
Colin E. (Mar 10 2020 at 15:48):
As a relative newcomer to FHIR I have been working my way through the online documentation, particularly on the ServiceRequest resource and related materials, including the Request pattern.
At the bottom of the documentation page for the Request pattern is a table entitled Mappings [https://www.hl7.org/fhir/request.html#mappings]. This appears to contain some potentially important information. Unfortunately as far as i can see there is no key or guidance provided as to what the content actually mean?
Given the labels on the row and column headers, my guess is that a non-blank entry in the table shows where a property/element described in the pattern is present and used in a particular resource, so this is a "Resource conformance to the Pattern" table. However the values used to populate the table cells are not obvious.
Is there a key somewhere that identifies what codes like "1 N", "E", "1 C", "1 T" mean, or are these meanings imported / re-used from somewhere else, and I just haven't run into the relevant page in the documentation yet?
Any hints would be helpful.
Lloyd McKenzie (Mar 10 2020 at 15:50):
@Grahame Grieve
Grahame Grieve (Mar 10 2020 at 19:25):
number = number of matching elements in the resource. mouse-over will show you what the actually are.
N = name is different in the resource
T = there's a type mismatch
C = there's a cardinality mismatch
E = it's marked to be an extension in the resource
colors:
grey - no match
salmon - there's an error
aqua - the name is different
yellow - it's an extension
white - matched ok
Colin E. (Mar 10 2020 at 21:18):
Thank you @Grahame Grieve. I have submitted an issue report on the page in question as I don't think I could have guessed these (esp. the colour codes). Presumably there may be other tables of the same type elsewhere in the documentation, at least on the other Pattern types?
Grahame Grieve (Mar 10 2020 at 22:46):
I should have made a legend, yes.
Grahame Grieve (Mar 10 2020 at 22:46):
each pattern will have the same table generated by the same code
Last updated: Apr 12 2022 at 19:14 UTC