FHIR Chat · Whither Consent Workflow? · committers

Stream: committers

Topic: Whither Consent Workflow?


view this post on Zulip 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?

view this post on Zulip 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.

view this post on Zulip David Pyke (Apr 06 2020 at 12:24):

All right, I'll change it back and see what the error was.

view this post on Zulip 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

view this post on Zulip Lloyd McKenzie (Apr 06 2020 at 14:32):

You should have both

view this post on Zulip 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

view this post on Zulip David Pyke (Apr 06 2020 at 14:35):

Okay, so I would duplicate the search with both searching on the same element?

view this post on Zulip Lloyd McKenzie (Apr 06 2020 at 14:35):

'patient' will be constrained to instances that point to Patient. 'subject' will search everything.

view this post on Zulip David Pyke (Apr 06 2020 at 14:36):

Okay, that works. I'll make the change

view this post on Zulip David Pyke (Apr 06 2020 at 14:37):

Why doesn't my local find these errors?

view this post on Zulip Lloyd McKenzie (Apr 06 2020 at 14:40):

dunno...

view this post on Zulip Lloyd McKenzie (Apr 06 2020 at 14:40):

@Grahame Grieve

view this post on Zulip Grahame Grieve (Apr 06 2020 at 18:50):

you're not doing a full build, only partial builds?

view this post on Zulip 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