Stream: committers
Topic: Whither Consent Workflow?
David Pyke (Apr 06 2020 at 01:47):
Okay, now I'm stuck. I no longer have Consent.patient as the subject can now be Patient or Practitioner therefore I have Consent.subject. So, I can no longer be an Event as it requires the element to be called patient. I can't be Definition because the subject of that must be group. Request's subject has to be Patient | Group. What's a poor Resource to do?
Lloyd McKenzie (Apr 06 2020 at 02:36):
Event doesn't "require" any particular names. There's always flexibility. Also, the Event pattern actually uses the name 'subject' (see https://build.fhir.org/event). Consent is definitely an Event.
David Pyke (Apr 06 2020 at 12:24):
All right, I'll change it back and see what the error was.
David Pyke (Apr 06 2020 at 12:29):
[java] ERROR @ Consent: An 'event' or 'request' resource must have a search parameter 'patient' (src = ResourceValidator)"
I changed the search parameter to subject because searching for a practitioner on a search called patient is non-intuitive
Lloyd McKenzie (Apr 06 2020 at 14:32):
You should have both
Lloyd McKenzie (Apr 06 2020 at 14:33):
subject will allow searching on either. However, because Consent needs to be part of the 'Patient' compartment, it needs a 'patient' search criteria
David Pyke (Apr 06 2020 at 14:35):
Okay, so I would duplicate the search with both searching on the same element?
Lloyd McKenzie (Apr 06 2020 at 14:35):
'patient' will be constrained to instances that point to Patient. 'subject' will search everything.
David Pyke (Apr 06 2020 at 14:36):
Okay, that works. I'll make the change
David Pyke (Apr 06 2020 at 14:37):
Why doesn't my local find these errors?
Lloyd McKenzie (Apr 06 2020 at 14:40):
dunno...
Lloyd McKenzie (Apr 06 2020 at 14:40):
@Grahame Grieve
Grahame Grieve (Apr 06 2020 at 18:50):
you're not doing a full build, only partial builds?
David Pyke (Apr 06 2020 at 19:52):
Okay, to get all errors, I need to only trigger full builds. I'll remember that
Last updated: Apr 12 2022 at 19:14 UTC