FHIR Chat · Bundle slice over entry · implementers

Stream: implementers

Topic: Bundle slice over entry


view this post on Zulip Mritunjay Dubey (Dec 12 2016 at 11:09):

Hey,

I wanted to create a profile for bundle, where I want to restrict that a bundle must have exactly one entry for patient and can have multiple entries for related person.

What I was thinking I can slice bundle over entry and say PatientEntry with 1..1 and RelatedPersonEntry with 0..*. I wanted to know what should be right descriminator for entry slice. I was thinking value=“resource”, but using forge tool I am not getting an option for that.

If there is an alternate/better approach for this, I would like to hear about that.

view this post on Zulip Grahame Grieve (Dec 12 2016 at 12:05):

@type

view this post on Zulip Mritunjay Dubey (Dec 12 2016 at 13:28):

Hey @Grahame Grieve Thanks for your reply. I did that but now I feel the validator is not accepting it. is validation for slices not supported in DSTU2 ? Do we have a workaround for it. We don’t want to go with STU3 until it’s released.

view this post on Zulip Grahame Grieve (Dec 12 2016 at 13:31):

STU3 validator actually works for DSTU2, but the packaging isn't in place yet

view this post on Zulip James Agnew (Dec 12 2016 at 13:49):

FYI to anyone following along.. plan is to get the new "STU3 validator for DSTU2 resources" thing in place in HAPI in the next 2 weeks. It won't make the 2.2 release which comes this week, but will make the 2.3 snapshot builds shortly after that.


Last updated: Apr 12 2022 at 19:14 UTC