faisalali19
05/23/2023, 9:23 AM{
"resourceType": "Patient",
"compartment": "%patient",
"criteria": "Patient?organization=%provider_organization"
},
Get a blank array from this as well
{
"resourceType": "Patient",
"criteria": "Patient?organization=%provider_organization"
},
But If I do this
`{
"resourceType": "Patient",
"compartment": “%provider_organization",
},
or this
{
"resourceType": "Patient",
"compartment": “%provider_organization",
},
It returns all the patients including those from different organization
Don’t know if I have missed any steps. I have followed the documentation
Can you please help me with this?
Thanks in advancecody
05/23/2023, 8:36 PMPatient.meta.account?
3. Are you also storing the organization in Patient.managingOrganization?
Using "criteria": "Patient?organization=%provider_organization" will only work if the Organization is in Patient.managingOrganizationfaisalali19
05/24/2023, 5:24 AMPatient.meta.account
3. Yes organization is being stored in the Patient.managingOrganization
So I have the organization in Patient.managingOranization but still the response is blank
Thanks in advance for the helpfaisalali19
05/26/2023, 6:46 AMcody
05/26/2023, 10:24 PMPatient.meta.account is set using access policies. You can see docs here: https://www.medplum.com/docs/auth/access-control#healthcare-partnerships
Patient.managingOrganization is not connected to Patient.meta.account or compartments. We could help you set that up, but it is a little involved.
Feel free to DM if you'd like to discuss morereshma
05/26/2023, 10:26 PM