Stream: implementers
Topic: slicing participants on Appointment
Jens Villadsen (Apr 10 2019 at 23:15):
is it possible to construct a (set of) discriminator(s) on a Appointment profile so that Appointment.participant is eg. limited to a max of eg. 2 patients and 3 practitioners?
Lloyd McKenzie (Apr 11 2019 at 02:39):
Yes, though be careful about enforcing business rules like that in a profile - that seems like the sort of thing where there'll inevitably be a weird exception. However, if that's the max your system can handle, you could certainly create a profile that enforced that.
Jens Villadsen (Apr 11 2019 at 07:15):
That was a bad example. Let's say that there are minimal requirements instead - eg. at least one patient and at least one location is required among participants and that the references are Reference.reference, not identifier. I've tried with both discriminators of type 'type' and 'profile' but that doesn't seem to be of much assistance - unless that requires me to profile the Reference.reference?
Lloyd McKenzie (Apr 11 2019 at 14:34):
You'd need to do Appointment.participant.resolve()
Jens Villadsen (Apr 11 2019 at 21:31):
pretty sure I've tried that but I'll give it a go -thx
Jens Villadsen (Sep 16 2020 at 13:18):
@Lloyd McKenzie so back to this: what are you exactly saying? what should the value on the type of the discriminator and what should the path be? I would have expected it to be the following: type: type, and , path: actor.reference.resolve()
Jens Villadsen (Sep 16 2020 at 13:19):
and a detail - im on dstu3 so references do not have a type
Jens Villadsen (Sep 16 2020 at 13:20):
at least not directly - but I can assume that the type is part of the url referening to the resource - eg. /Patient/1 is a Patient
Lloyd McKenzie (Sep 16 2020 at 14:38):
I think so, y
Last updated: Apr 12 2022 at 19:14 UTC