1. Get the Appointment to cancel Request: GET /baseDstu3/Appointment/4981 HTTP/1.1 Host: ehealth-ask.fokus.fraunhofer.de Authorization: bearer aaa Cache-Control: no-cache Response: { "resourceType": "Appointment", "id": "4981", "meta": { "versionId": "1", "lastUpdated": "2019-02-22T11:07:35.121+00:00", "profile": [ "http://ask.fokus.fraunhofer.de/fhir/StructureDefinition/VideoConferenceAppointment" ] }, "extension": [ { "url": "http://ask.fokus.fraunhofer.de/fhir/StructureDefinition/VideoConferencePinCodeExtension", "valueString": "DZ1yFTG1aYpqscVvGwgWom5vCrBySdr6" }, { "url": "http://ask.fokus.fraunhofer.de/fhir/StructureDefinition/VideoConferenceSignallingServerExtension", "valueString": "ehealth-ask.fokus.fraunhofer.de" }, { "url": "http://ask.fokus.fraunhofer.de/fhir/StructureDefinition/VideoConferenceTurnUsernameExtension", "valueString": "e3845502-b8bb-4866-8dc6-fd2465cdc3e7:1550921298" }, { "url": "http://ask.fokus.fraunhofer.de/fhir/StructureDefinition/VideoConferenceTurnPasswordExtension", "valueString": "OIBDzQIxSXe8Y5wv8Exk+Ry/xxo=" }, { "url": "http://ask.fokus.fraunhofer.de/fhir/StructureDefinition/VideoConferenceTurnUriExtension", "valueString": "turn:ehealth-ask.fokus.fraunhofer.de:5349?transport=udp" }, { "url": "http://ask.fokus.fraunhofer.de/fhir/StructureDefinition/VideoConferenceTurnTtlExtension", "valueString": "86400" } ], "identifier": [ { "use": "secondary", "system": "urn:oid:1.2.276.0.76.3.1.158.20.4.3.1", "value": "a7e378fe7e9dcf661a7f3e2ade88bb80b97a85fdec2ff918035ca8aea632ba5a" }, { "use": "official", "system": "urn:oid:1.2.276.0.76.3.1.158.20.4.3.1", "value": "7afL6UMTKy5X0EBaK4162FHDLOTCLV4K" } ], "status": "booked", "start": "2018-12-03T07:00:00.000+01:00", "end": "2018-12-03T07:15:00.000+01:00", "slot": [ { "reference": "Slot/VideoConferenceSlotExample2" } ], "participant": [ { "actor": { "reference": "Patient/X110335522" }, "status": "accepted" } ] } 2. Update Appointment status { "resourceType": "Appointment", "id": "4981", "meta": { "versionId": "2", "lastUpdated": "2019-02-22T11:30:13.348+00:00", "profile": [ "http://ask.fokus.fraunhofer.de/fhir/StructureDefinition/VideoConferenceAppointment" ] }, "extension": [ { "url": "http://ask.fokus.fraunhofer.de/fhir/StructureDefinition/VideoConferencePinCodeExtension", "valueString": "DZ1yFTG1aYpqscVvGwgWom5vCrBySdr6" } ], "identifier": [ { "use": "secondary", "system": "urn:oid:1.2.276.0.76.3.1.158.20.4.3.1", "value": "a7e378fe7e9dcf661a7f3e2ade88bb80b97a85fdec2ff918035ca8aea632ba5a" }, { "use": "official", "system": "urn:oid:1.2.276.0.76.3.1.158.20.4.3.1", "value": "7afL6UMTKy5X0EBaK4162FHDLOTCLV4K" } ], "status": "cancelled", "start": "2018-12-03T07:00:00.000+01:00", "end": "2018-12-03T07:15:00.000+01:00", "slot": [ { "reference": "Slot/VideoConferenceSlotExample2" } ], "participant": [ { "actor": { "reference": "Patient/X110335522" }, "status": "accepted" } ] } 3. Appointment update confirm { "div": { "h1": "Operation Outcome", "table": { "-border": "0", "tr": { "td": [ { "-style": "font-weight: bold;", "#text": "INFORMATION" }, "[]", { "pre": "Successfully created resource \"Appointment/4981/_history/2\" in 16ms" } ] } } } } 4. Get referenced Slot GET /baseDstu3/Slot/VideoConferenceSlotExample2 HTTP/1.1 Host: ehealth-ask.fokus.fraunhofer.de Authorization: bearer aaa Cache-Control: no-cache Response: { "resourceType": "Slot", "id": "VideoConferenceSlotExample2", "meta": { "versionId": "2", "lastUpdated": "2019-02-22T11:11:13.339+00:00", "profile": [ "http://ask.fokus.fraunhofer.de/fhir/StructureDefinition/VideoConferenceSlot" ] }, "identifier": [ { "use": "official", "system": "urn:oid:1.2.276.0.76.3.1.158.20.4.3.1", "value": "2c2bff39-707e-43e1-95bb-f450553abb2d" } ], "serviceCategory": { "coding": [ { "system": "http://hl7.org/fhir/service-category", "code": "13", "display": "Education & Learning" } ] }, "serviceType": [ { "coding": [ { "system": "http://hl7.org/fhir/service-type", "code": "370", "display": "Information" } ] } ], "schedule": { "reference": "Schedule/VideoConferenceScheduleExample" }, "status": "busy", "start": "2018-12-03T08:00:00.000+02:00", "end": "2018-12-03T08:15:00.000+02:00" } 5. Update Slot status { "resourceType": "Slot", "id": "VideoConferenceSlotExample2", "meta": { "versionId": "3", "lastUpdated": "2019-02-22T11:30:42.170+00:00", "profile": [ "http://ask.fokus.fraunhofer.de/fhir/StructureDefinition/VideoConferenceSlot" ] }, "identifier": [ { "use": "official", "system": "urn:oid:1.2.276.0.76.3.1.158.20.4.3.1", "value": "2c2bff39-707e-43e1-95bb-f450553abb2d" } ], "serviceCategory": { "coding": [ { "system": "http://hl7.org/fhir/service-category", "code": "13", "display": "Education & Learning" } ] }, "serviceType": [ { "coding": [ { "system": "http://hl7.org/fhir/service-type", "code": "370", "display": "Information" } ] } ], "schedule": { "reference": "Schedule/VideoConferenceScheduleExample" }, "status": "free", "start": "2018-12-03T08:00:00.000+02:00", "end": "2018-12-03T08:15:00.000+02:00" } 6. Update Slot status confirm { "div": { "h1": "Operation Outcome", "table": { "-border": "0", "tr": { "td": [ { "-style": "font-weight: bold;", "#text": "INFORMATION" }, "[]", { "pre": "Successfully created resource \"Slot/VideoConferenceSlotExample2/_history/3\" in 11ms" } ] } } } }