Hi, I have a modeling question -- If I had a set g...
# general
t
Hi, I have a modeling question -- If I had a set group of practitioners/related persons and I needed to create a task for the group, would you put those practitioners/related persons in a care team and create a task for that care team?
Our use case is: We have an operations team that assists cnas, rns, patients, etc. and we'd like tasks to populate for every person on that operations team.
r
So they have a particular role? Perhaps Task.owner -> PractitionerRole would be something to consider
And then they can all pull off the queue for their role
This repo may be interesting to you too https://github.com/medplum/medplum-task-demo
t
Ah, I was wondering if I could use a PractitionerRole for a group of Practitioners. Is that relationship not 1:1? I assumed If you assigned a Task.owner to a PractitionerRole it would relate to one Practitioner and not a group of Practitioner(s). Is that not true? I'll take a look at that repo -- for context I am modeling this in the API but the client side will still help, thank you!
r
The PractitionerRole is like "Operations Associate" and the assumption is that anyone with that Role could pick it up. Relationship is 1 PractitionerRole to many Pracititioners - here's a terrible but official diagram http://hl7.org/fhir/us/davinci-pdex-plan-net/STU1/#overview-of-payer-directory-resource-relationships
s
@reshma it looks like in your diagram the PractitionerRole to Practitioner is 1 to 1, are we misunderstanding that?
or are you saying that we wouldn't assign a practitioner on the role at all, but would assign an organziation to the role?
cc @rahul1 if you know anything about this, would be helpful as well! we're semi-blocked by a decision here since we're instantiating a lot of tasks and want to model them correctly before doing so
r
Hey @stefant1707 , weighing with my thoughts. I think the appropriate grouping resource here would be the
HealthcareService
. You could then assign
Task.owner
to the appropriate service. A
CareTeam
is typically a team that works on a specific patient, not a standing team that is respondin gto requests
s
awesome, thanks for the context we were looking at healthcare service as an option as well!
t
Thank you @rahul1
We could then associate Practitioner records to the HealthcareService via the PractitionerRole, right? That seems to achieve the relationship we're looking for.
r
yep!
That allows you to have a 1 practitioner -> many services mapping
181 Views