FHIR Chat · Slicing Observation.component · implementers

Stream: implementers

Topic: Slicing Observation.component


view this post on Zulip Nathan Davis (Feb 26 2020 at 22:07):

I have a need to slice Observation.component. The thing is, I want to bind each component.code to patternCodeableConcept. I think this binding is cleaner and less restrictive than binding the system and code to fixedUri and fixedCode.

view this post on Zulip Nathan Davis (Feb 26 2020 at 22:09):

for example: <patternCodeableConcept><coding><system value="http:..loinc.org><code value="1234-5"/></coding></patternCodeableconcept>

view this post on Zulip Nathan Davis (Feb 26 2020 at 22:09):

rather than: specific elements for code.coding.code or system with <fixedCode value="1234-5"/>

view this post on Zulip Nathan Davis (Feb 26 2020 at 22:12):

I've tried using <discriminator><type value="value"/><path value="coding.code"/></discriminator> and <discriminator><type value="value"/><path value="coding.system"/>,?discriminator> But this gives me an error of "does not resolve"

view this post on Zulip Nathan Davis (Feb 26 2020 at 22:12):

Is it possible to slice in the manner I would like and if so, what should I use for discriminator.type and discriminator.path?

view this post on Zulip Nathan Davis (Feb 26 2020 at 22:12):

Thanks!

view this post on Zulip Lloyd McKenzie (Feb 26 2020 at 22:31):

<discriminator><type value="pattern"/><path value="$this"/></discriminator should work if you've declared a pattern on the component.code for each slice

view this post on Zulip Nathan Davis (Feb 26 2020 at 22:56):

@Lloyd McKenzie Thank you! That worked.


Last updated: Apr 12 2022 at 19:14 UTC