Stream: implementers
Topic: Slicing using a relative data element
Ross Shnaper (Oct 02 2017 at 18:24):
Hi, I'm trying to figure out how exactly to use slicing to fix the following problem:
Having a custom profile on Location resource, I want to assign a different value set to Location.type based on Location.phsycialType. Such that if:
1. Location.physicalType = bd then Location.type is using ValueSet1
2. Location.physicalType = wa then Location.type is using ValueSet2
I went through the examples but couldn't figure out whether that's possible and allowed. Any help with this would be greatly appreciated.
Grahame Grieve (Oct 03 2017 at 01:36):
there's no way to do this with slicing. The only way to do it is in an invariant using FHIRPath
Grahame Grieve (Oct 03 2017 at 01:38):
I'd bind it to a value set that imports both value sets and then write and invariant like this :
(physicalType = 'bd') implies (type in '[valueSetUr]')
Lloyd McKenzie (Oct 03 2017 at 06:16):
Slicing lets you set different rules for different repetitions - but there's nothing repeating here.
Last updated: Apr 12 2022 at 19:14 UTC