FHIR Chat · References in FHIR spec · implementers

Stream: implementers

Topic: References in FHIR spec


view this post on Zulip Joshua Bell (Aug 25 2017 at 16:12):

Are the reference suggested types just suggestions, or is it ok to diverge from them? For example, Observation has a related field which is a reference "Reference(Observation | QuestionnaireResponse | Sequence)" - Can I use this to relate an Observation to anything other than those three Resources listed, or would that be a misuse of that field and frowned upon/cause problems down the line?

And side question, I want a Condition to 'relate' to some other resource, but Condition does not have a relates to field. Is the only possible way to group/relate things at that point to use an extension? Or is there a standard for relating/grouping resources?

view this post on Zulip Igor Sirkovich (Aug 25 2017 at 17:07):

The reference has to be to Observation, QuestionnaireResponse or Sequence. You cannot use this to relate an observation to any other resource type. I believe you would need an extension to address the requirement described in your second question.

view this post on Zulip Lloyd McKenzie (Aug 25 2017 at 17:13):

If you have a use-case for something else, you can submit a change request and a future version of the spec might accomodate your needs. However Igor is correct. In the current release of the specification you'd need to use an extension.

view this post on Zulip Joshua Bell (Aug 25 2017 at 18:47):

It actually looks like there is a Resource for what I was talking about called Linkage. Right now we are using extensions, I just noticed that there were places we we're using extensions where they had a place to live in Fhir and this is one of the ones I was unsure about. Thanks guys.

view this post on Zulip Lloyd McKenzie (Aug 26 2017 at 03:13):

Linkage allows you to say "these multiple resource instances are all talking about the same 'thing'" - it can be used for representations from different servers, for representations captured by different clinicians or by different interpretations of something over time.

view this post on Zulip Eric Haas (Aug 28 2017 at 15:52):

There are these standard extensions many of them reference other resources - maybe on of them is are what you are looking for...

view this post on Zulip Joshua Bell (Aug 28 2017 at 16:55):

@Eric Haas Thanks for pointing those out. The best one that would work in my case would be event-partOf. Just want to make sure though, is the vocab of event important. I want to use that extension to relate observations/conditions/basics/procedures/medication-statements to each other. Is it ok to use it that way even though those are not necessarily an event?

view this post on Zulip Joshua Bell (Aug 28 2017 at 17:00):

An example use case we are currently doing is creating a Condition lets say for cancer with a cancer code. Then creating a new observation for things like Histology, grade, and ajcc statuses. So each of those observations we want to relate to both the Patient (which we do through Subject reference) as well as the condition, which we currently have a custom inhouse extension for this (which I want to replace with the proper FHIR way)

view this post on Zulip Eric Haas (Aug 28 2017 at 17:01):

Those are all defined as events:

view this post on Zulip Joshua Bell (Aug 28 2017 at 17:04):

Ah good. Also there are cases like Observation having a field called related but not everything else we need that in has it. Is it better to use the related field where it is present (like in observation) and then use the extension in things like medicationstatement that doesn't have it. Or stay consistent and just use the extension for everything to make it simpler?

view this post on Zulip Eric Haas (Aug 28 2017 at 22:12):

best to use the element that fits the context for :

  • the extension definition or
  • the related.type element which were introduced way before these extensions.

The FHIR team and Orders and Observations work group wanted to take a hard look at the types and think only a couple are commonly used - see GF#10118- but seeking implementer input since any changes here would be a big deal to at this stage and not sure of the cost to benefits.


Last updated: Apr 12 2022 at 19:14 UTC