7. The coordinator updates the appointment with the information of the videocall

PATCH https://api-{{tenant-id}}.developer.commure.com/api/v1/r4/Appointment/{{appointment-id}}/

With the appointment confirmed, the client application updates the Appointment resource to add the link to the videocall, this is done by adding the Endpoint resource on the supportingInformation field.

Request Body

{"0"=>{"op"=>"add", "path"=>"/supportingInformation", "value"=>[{"reference"=>"Endpoint/{{endpoint-id}}"}]}}

RESPONSES

status: OK

{"resourceType":"Appointment","id":"01084219-7f18-4d0d-a837-75aa7b482a92","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":"671af82c-95ad-40c6-8652-ad5065620b9d","lastUpdated":"2020-11-02T12:23:06.761567+00:00"},"status":"booked","priority":1,"description":"new appointment","supportingInformation":[{"reference":"Endpoint/2501918e-d224-4b75-8654-bb8361b2f165"}],"start":"2021-01-01T13:00:00+00:00","end":"2021-01-01T15:00:00+00:00","minutesDuration":120,"slot":[{"reference":"Slot/f91a758a-b2e7-4bac-804a-f492c354eccf"}],"created":"2020-01-01T13:00:00.000+00:00","patientInstruction":"Patient and Practitioner should confirm","participant":[{"actor":{"reference":"Patient/5ae20256-c536-4837-9ea8-270593c7c0d3"},"required":"required","status":"accepted"},{"actor":{"reference":"Practioner/da81371f-70f3-4dcf-8d8a-bcf6b96ad08f"},"required":"required","status":"accepted"}]}