Stream: shorthand
Topic: Setting reference profile
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?
John Moehrke (Jan 15 2021 at 15:47):
no () .. I think
David Pyke (Jan 15 2021 at 16:09):
Yep, remove the () that should fix it up
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()"
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.
Nathan Davis (Jan 15 2021 at 16:45):
It does exist. Which is why I'm so perplexed.
David Pyke (Jan 15 2021 at 16:45):
The line should be:
- component[underlyingConditionPresent].extension[conditionReference].valueReference only Reference(myConditionProfile)
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