Trying to create an encounter with the following request body.
The serviceProvider property seems to be mandatory.
Prior to making this call we only have appointment response object which have a reference to LocationId
We can call the Get Location by Id and extract the OrganizationId.
The problem is we don't have Location.read scope for the clientid we are using.
Is there any way around?
{
"resourceType": "Encounter",
"status": "planned",
"type": [
{
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/71",
"code": "309310"
}
]
}
],
"subject": {
"reference": "Patient/123"
},
"participant": [
{
"type": [
{
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/333",
"code": "1119"
}
]
}
],
"period": {
"start": "2021-07-16T06:00:00Z",
"end": "2021-07-17T06:00:00Z"
},
"individual": {
"reference": "Practitioner/123"
}
}
],
"period": {
"start": "2021-07-16T06:00:00Z",
"end": "2021-07-17T06:00:00Z"
},
"serviceProvider": {
"reference": "Organization/123"
}
}