16. The doctor closes the encounter
PATCH https://api-{{tenant-id}}.developer.commure.com/api/v1/r4/Encounter/{{encounter-id}}/
The practitioner confirms that the appointment has ended. The client application will update the Encounter
resource, changing the status
to finished
.
Request Body
{"0"=>{"op"=>"replace", "path"=>"/status", "value"=>"finished"}}
RESPONSES
status: OK
{"resourceType":"Encounter","id":"c28ea11f-04df-4628-a849-fb91bd2ac581","meta":{"extension":[{"extension":[{"url":"clientname","valueString":"dashboard"},{"url":"person","valueReference":{"reference":"Person/bea178a0-6ea4-4b47-99af-e4021bba8f99"}}],"url":"https://commure.com/fhir/provenance/StructureDefinition/creator-structure-map"}],"versionId":"8be7b637-9640-43f0-a03c-32bbce2b4e8c","lastUpdated":"2020-11-02T12:26:21.114249+00:00"},"status":"finished","class":{"code":"virtual","display":"virtual","userSelected":true},"type":[{"text":"Virtual appointment"}],"subject":{"reference":"Patient/1c207762-db80-49db-aff5-4a9b81837d68"},"participant":[{"type":[{"text":"Doctor"}],"individual":{"reference":"Practitioner/cbe538c4-6784-4903-bad5-bfc3f6a56ce9"}}],"appointment":[{"reference":"Appointment/01084219-7f18-4d0d-a837-75aa7b482a92"}],"period":{"start":"2021-01-01","end":"2021-01-01"},"reasonCode":[{"text":"General Medicine"}],"location":[{"location":{"reference":"Location/a06e0f17-8d35-48fe-b452-7b1573adc395"},"status":"planned","period":{"start":"2021-01-01","end":"2021-01-01"}}]}