FHIR Chat · Setting reference profile · shorthand

Stream: shorthand

Topic: Setting reference profile


view this post on Zulip Nathan Davis (Jan 15 2021 at 15:10):

I have an extension on Observation.component (Observation.component.extension) that I want to set to Reference and want to make that reference another profile in my IG. I've tried the following line but only get an error stating a definition for the referenced profile cannot be found.

  • component[underlyingConditionPresent].extension[conditionReference].valueReference only (myConditionProfile)
    What should my rule look like?

view this post on Zulip John Moehrke (Jan 15 2021 at 15:47):

no () .. I think

view this post on Zulip David Pyke (Jan 15 2021 at 16:09):

Yep, remove the () that should fix it up

view this post on Zulip Nathan Davis (Jan 15 2021 at 16:39):

I removed the () and now am getting this error.
"The type "myConditionProfile" does not match any of the allowed types: Reference()"

view this post on Zulip David Pyke (Jan 15 2021 at 16:40):

Assuming myConditionProfile exists, Reference(myConditionProfile) is what should be there. Sorry, coffee hadn't taken control yet.

view this post on Zulip Nathan Davis (Jan 15 2021 at 16:45):

It does exist. Which is why I'm so perplexed.

view this post on Zulip David Pyke (Jan 15 2021 at 16:45):

The line should be:

  • component[underlyingConditionPresent].extension[conditionReference].valueReference only Reference(myConditionProfile)

view this post on Zulip Nathan Davis (Jan 15 2021 at 16:47):

That did the trick! Thank you so much!


Last updated: Apr 12 2022 at 19:14 UTC