eHealth Infrastructure (v2019.6)

StructureDefinition: ehealth-videoappointment - Operation examples

POST [base]/Appointment

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJkcXlmaEdsRGkzM2prU2o5NWNRYXp3Zk9MOWUzRDlTbFQ1czQxOFplTzlvIn0.eyJqdGkiOiJhMTg5YmJkMS1lMDJkLTQ5YjMtYWIzMy0yYTJjNDliZTFlZTEiLCJleHAiOjE1NzMxMzgwNDYsIm5iZiI6MCwiaWF0IjoxNTczMTM3NzQ2LCJpc3MiOiJodHRwczovL3NhbWwuZnV0LnRyaWZvcmsuY29tL2F1dGgvcmVhbG1zL2VoZWFsdGgiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiNzFhMWY3MDQtZGRkMS00MjFiLThkMmEtMmU0NjkyZTgzODBmIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiY3VjdW1iZXIiLCJhdXRoX3RpbWUiOjAsInNlc3Npb25fc3RhdGUiOiJjOGZhYTExYS1lYWVkLTRiYjAtYmE4Yi1iZWE3YzlkN2NjMjMiLCJhY3IiOiIxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIk9yZ2FuaXphdGlvbi5yZWFkIiwiQ29tbXVuaWNhdGlvbi5yZWFkIiwiRXBpc29kZU9mQ2FyZS51cGRhdGUiLCJRdWVzdGlvbm5haXJlUmVzcG9uc2UucmVhZCIsIlBhdGllbnQucmVhZCIsIlByb2NlZHVyZVJlcXVlc3QudXBkYXRlIiwiRXBpc29kZU9mQ2FyZS5kZWxldGUiLCIkc2VhcmNoLW1lYXN1cmVtZW50cyIsIkFjdGl2aXR5RGVmaW5pdGlvbi5yZWFkIiwiUGF0aWVudCRjcmVhdGVQYXRpZW50RnJvbVBlcnNvbiIsIlBhdGllbnQucGF0Y2giLCJQcm9jZWR1cmVSZXF1ZXN0LnBhdGNoIiwiUGF0aWVudC4qIiwiRXBpc29kZU9mQ2FyZ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uaXphdGlvbi5mdXQudHJpZm9yay5jb20vZmhpci9Pcmdhbml6YXRpb24vMTAzNTciLCJjYXJlX3RlYW1faWQiOiJodHRwOi8vb3JnYW5pemF0aW9uLmZ1dC50cmlmb3JrLmNvbS9maGlyL0NhcmVUZWFtLzM1MTAyIn0sInByZWZlcnJlZF91c2VybmFtZSI6ImN1Y3VtYmVyX3RyZWF0bWVudCIsImdpdmVuX25hbWUiOiJQb250aXVzIiwiZmFtaWx5X25hbWUiOiJQaWxhdHVzIn0.Kx8z8X1rOsFpMnqWswcUtIZDzSiECZNXPL1TegylB8M3_mI2hX6uIVc3f8AYg6ttUX7AaGv8Q5qyqaKAaj8BhmV_lgPcz7IllG4AKiyiAho69WOeo2YcNMSYhMS15YQCBy2xiokN7zx1feJe6GRPPNruvxQC1kzxCMGY-1yhQoJaLRIRUtBlMfxF5Wu9ZpT3XE9iOrTFqNkjFavL6BSs9Q-8HpArcTMFxwVfTMDfFUyc4WI5NZ32-SDeMb75Q9m7od2ywaGM8WaUCtXvvIhtqqV1LNnooGBQ-hrFqtaw3HK2NPDyRnB8fVNCdXHc47GIaZDHQ6_6FAeXu-8bDYAxIA
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/4.0.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType" : "Appointment",
  "meta" : {
    "profile" : [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-videoappointment" ]
  },
  "contained" : [ {
    "resourceType" : "Location",
    "id" : "1",
    "name" : "Meeting Room 1",
    "telecom" : [ {
      "system" : "email",
      "value" : "location@example.com"
    } ],
    "address" : {
      "line" : [ "Trifork", "Europaplads 2" ],
      "city" : "Aarhus C",
      "postalCode" : "8000",
      "country" : "DK"
    }
  } ],
  "extension" : [ {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-responsible",
    "valueReference" : {
      "reference" : "http://organization.fut.trifork.com/fhir/CareTeam/35102"
    }
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-end-meeting-on-end-time",
    "valueBoolean" : false
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-max-participants",
    "valueInteger" : 4
  } ],
  "status" : "booked",
  "appointmentType" : {
    "coding" : [ {
      "system" : "http://ehealth.sundhed.dk/cs/appointmenttype-codes",
      "code" : "FOLLOWUP"
    } ]
  },
  "reason" : [ {
    "coding" : [ {
      "system" : "http://ehealth.sundhed.dk/cs/appointment-reason",
      "code" : "412776001"
    } ]
  } ],
  "priority" : 1,
  "description" : "Forundersøgelse",
  "start" : "2019-07-01T09:00:00.000+02:00",
  "end" : "2019-07-01T11:00:00.000+02:00",
  "comment" : "Forundersøgelse for grå stær hos Trifork.\n Patienten møder op hos Trifork med udfyldt spørgeskema",
  "participant" : [ {
    "extension" : [ {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-ext-careteam",
      "valueReference" : {
        "reference" : "http://organization.fut.trifork.com/fhir/CareTeam/35102"
      }
    } ],
    "type" : [ {
      "coding" : [ {
        "system" : "http://hl7.org/fhir/v3/ParticipationType",
        "code" : "PART",
        "display" : "Participation"
      } ]
    } ],
    "required" : "required",
    "status" : "accepted"
  }, {
    "actor" : {
      "reference" : "http://organization.fut.trifork.com/fhir/Practitioner/35205",
      "display" : "actor1 display text"
    },
    "required" : "required",
    "status" : "tentative"
  }, {
    "actor" : {
      "reference" : "http://localhost:8080/fhir/Patient/257"
    },
    "required" : "required",
    "status" : "accepted"
  }, {
    "actor" : {
      "reference" : "#1"
    },
    "required" : "required",
    "status" : "accepted"
  } ]
}

Response

{
  "resourceType" : "Appointment",
  "id" : "277",
  "meta" : {
    "versionId" : "1",
    "lastUpdated" : "2019-11-07T15:42:30.597+01:00",
    "profile" : [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-videoappointment", "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-appointment" ]
  },
  "contained" : [ {
    "resourceType" : "Location",
    "id" : "1",
    "name" : "Meeting Room 1",
    "telecom" : [ {
      "system" : "email",
      "value" : "location@example.com"
    } ],
    "address" : {
      "line" : [ "Trifork", "Europaplads 2" ],
      "city" : "Aarhus C",
      "postalCode" : "8000",
      "country" : "DK"
    }
  } ],
  "extension" : [ {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-responsible",
    "valueReference" : {
      "reference" : "http://organization.fut.trifork.com/fhir/CareTeam/35102"
    }
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-end-meeting-on-end-time",
    "valueBoolean" : false
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-max-participants",
    "valueInteger" : 4
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-meeting-url",
    "valueUri" : "https://dummy-video-url.dk/123"
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-pin-code",
    "valueString" : "1234"
  } ],
  "status" : "booked",
  "appointmentType" : {
    "coding" : [ {
      "system" : "http://ehealth.sundhed.dk/cs/appointmenttype-codes",
      "code" : "FOLLOWUP"
    } ]
  },
  "reason" : [ {
    "coding" : [ {
      "system" : "http://ehealth.sundhed.dk/cs/appointment-reason",
      "code" : "412776001"
    } ]
  } ],
  "priority" : 1,
  "description" : "Forundersøgelse",
  "start" : "2019-07-01T09:00:00.000+02:00",
  "end" : "2019-07-01T11:00:00.000+02:00",
  "comment" : "Forundersøgelse for grå stær hos Trifork.\n Patienten møder op hos Trifork med udfyldt spørgeskema",
  "participant" : [ {
    "extension" : [ {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-ext-careteam",
      "valueReference" : {
        "reference" : "http://organization.fut.trifork.com/fhir/CareTeam/35102"
      }
    } ],
    "type" : [ {
      "coding" : [ {
        "system" : "http://hl7.org/fhir/v3/ParticipationType",
        "code" : "PART",
        "display" : "Participation"
      } ]
    } ],
    "required" : "required",
    "status" : "accepted"
  }, {
    "actor" : {
      "reference" : "http://organization.fut.trifork.com/fhir/Practitioner/35205",
      "display" : "actor1 display text"
    },
    "required" : "required",
    "status" : "tentative"
  }, {
    "actor" : {
      "reference" : "Patient/257"
    },
    "required" : "required",
    "status" : "accepted"
  }, {
    "actor" : {
      "reference" : "#1"
    },
    "required" : "required",
    "status" : "accepted"
  } ]
}

GET [base]/Appointment/277/_history/1

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJkcXlmaEdsRGkzM2prU2o5NWNRYXp3Zk9MOWUzRDlTbFQ1czQxOFplTzlvIn0.eyJqdGkiOiJhMTg5YmJkMS1lMDJkLTQ5YjMtYWIzMy0yYTJjNDliZTFlZTEiLCJleHAiOjE1NzMxMzgwNDYsIm5iZiI6MCwiaWF0IjoxNTczMTM3NzQ2LCJpc3MiOiJodHRwczovL3NhbWwuZnV0LnRyaWZvcmsuY29tL2F1dGgvcmVhbG1zL2VoZWFsdGgiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiNzFhMWY3MDQtZGRkMS00MjFiLThkMmEtMmU0NjkyZTgzODBmIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiY3VjdW1iZXIiLCJhdXRoX3RpbWUiOjAsInNlc3Npb25fc3RhdGUiOiJjOGZhYTExYS1lYWVkLTRiYjAtYmE4Yi1iZWE3YzlkN2NjMjMiLCJhY3IiOiIxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIk9yZ2FuaXphdGlvbi5yZWFkIiwiQ29tbXVuaWNhdGlvbi5yZWFkIiwiRXBpc29kZU9mQ2FyZS51cGRhdGUiLCJRdWVzdGlvbm5haXJlUmVzcG9uc2UucmVhZCIsIlBhdGllbnQucmVhZCIsIlByb2NlZHVyZVJlcXVlc3QudXBkYXRlIiwiRXBpc29kZU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9ORVIiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwidXNlcl9pZCI6Imh0dHA6Ly9vcmdhbml6YXRpb24uZnV0LnRyaWZvcmsuY29tL2ZoaXIvUHJhY3RpdGlvbmVyLzM1MjA1IiwibmFtZSI6IlBvbnRpdXMgUGlsYXR1cyIsImNvbnRleHQiOnsib3JnYW5pemF0aW9uX2lkIjoiaHR0cDovL29yZ2FuaXphdGlvbi5mdXQudHJpZm9yay5jb20vZmhpci9Pcmdhbml6YXRpb24vMTAzNTciLCJjYXJlX3RlYW1faWQiOiJodHRwOi8vb3JnYW5pemF0aW9uLmZ1dC50cmlmb3JrLmNvbS9maGlyL0NhcmVUZWFtLzM1MTAyIn0sInByZWZlcnJlZF91c2VybmFtZSI6ImN1Y3VtYmVyX3RyZWF0bWVudCIsImdpdmVuX25hbWUiOiJQb250aXVzIiwiZmFtaWx5X25hbWUiOiJQaWxhdHVzIn0.Kx8z8X1rOsFpMnqWswcUtIZDzSiECZNXPL1TegylB8M3_mI2hX6uIVc3f8AYg6ttUX7AaGv8Q5qyqaKAaj8BhmV_lgPcz7IllG4AKiyiAho69WOeo2YcNMSYhMS15YQCBy2xiokN7zx1feJe6GRPPNruvxQC1kzxCMGY-1yhQoJaLRIRUtBlMfxF5Wu9ZpT3XE9iOrTFqNkjFavL6BSs9Q-8HpArcTMFxwVfTMDfFUyc4WI5NZ32-SDeMb75Q9m7od2ywaGM8WaUCtXvvIhtqqV1LNnooGBQ-hrFqtaw3HK2NPDyRnB8fVNCdXHc47GIaZDHQ6_6FAeXu-8bDYAxIA
Accept: application/fhir+xml;q=1.0, application/fhir+json;q=1.0, application/xml+fhir;q=0.9, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/4.0.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip

Body:


Response

{
  "resourceType" : "Appointment",
  "id" : "277",
  "meta" : {
    "extension" : [ {
      "url" : "http://hapifhir.io/fhir/StructureDefinition/resource-meta-source",
      "valueUri" : "#6474e64c6838675a"
    } ],
    "versionId" : "1",
    "lastUpdated" : "2019-11-07T15:42:30.597+01:00",
    "profile" : [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-videoappointment", "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-appointment" ]
  },
  "contained" : [ {
    "resourceType" : "Location",
    "id" : "1",
    "name" : "Meeting Room 1",
    "telecom" : [ {
      "system" : "email",
      "value" : "location@example.com"
    } ],
    "address" : {
      "line" : [ "Trifork", "Europaplads 2" ],
      "city" : "Aarhus C",
      "postalCode" : "8000",
      "country" : "DK"
    }
  } ],
  "extension" : [ {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-responsible",
    "valueReference" : {
      "reference" : "http://organization.fut.trifork.com/fhir/CareTeam/35102"
    }
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-end-meeting-on-end-time",
    "valueBoolean" : false
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-max-participants",
    "valueInteger" : 4
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-meeting-url",
    "valueUri" : "https://dummy-video-url.dk/123"
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-pin-code",
    "valueString" : "1234"
  } ],
  "status" : "booked",
  "appointmentType" : {
    "coding" : [ {
      "system" : "http://ehealth.sundhed.dk/cs/appointmenttype-codes",
      "code" : "FOLLOWUP"
    } ]
  },
  "reason" : [ {
    "coding" : [ {
      "system" : "http://ehealth.sundhed.dk/cs/appointment-reason",
      "code" : "412776001"
    } ]
  } ],
  "priority" : 1,
  "description" : "Forundersøgelse",
  "start" : "2019-07-01T09:00:00.000+02:00",
  "end" : "2019-07-01T11:00:00.000+02:00",
  "comment" : "Forundersøgelse for grå stær hos Trifork.\n Patienten møder op hos Trifork med udfyldt spørgeskema",
  "participant" : [ {
    "extension" : [ {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-ext-careteam",
      "valueReference" : {
        "reference" : "http://organization.fut.trifork.com/fhir/CareTeam/35102"
      }
    } ],
    "type" : [ {
      "coding" : [ {
        "system" : "http://hl7.org/fhir/v3/ParticipationType",
        "code" : "PART",
        "display" : "Participation"
      } ]
    } ],
    "required" : "required",
    "status" : "accepted"
  }, {
    "actor" : {
      "reference" : "http://organization.fut.trifork.com/fhir/Practitioner/35205",
      "display" : "actor1 display text"
    },
    "required" : "required",
    "status" : "tentative"
  }, {
    "actor" : {
      "reference" : "Patient/257"
    },
    "required" : "required",
    "status" : "accepted"
  }, {
    "actor" : {
      "reference" : "#1"
    },
    "required" : "required",
    "status" : "accepted"
  } ]
}

PATCH [base]/Appointment/270

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJkcXlmaEdsRGkzM2prU2o5NWNRYXp3Zk9MOWUzRDlTbFQ1czQxOFplTzlvIn0.eyJqdGkiOiI1NDMxOTZiMy1hNWZmLTQ4ZDEtYTJkYi05MWFhZDM5NmNmN2MiLCJleHAiOjE1NzMxNDI0NjYsIm5iZiI6MCwiaWF0IjoxNTczMTQyMTY2LCJpc3MiOiJodHRwczovL3NhbWwuZnV0LnRyaWZvcmsuY29tL2F1dGgvcmVhbG1zL2VoZWFsdGgiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiNzFhMWY3MDQtZGRkMS00MjFiLThkMmEtMmU0NjkyZTgzODBmIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiY3VjdW1iZXIiLCJhdXRoX3RpbWUiOjAsInNlc3Npb25fc3RhdGUiOiIxNmJmZjRkOS05YmU1LTQxMDktYTViYS1mNThhOWI3MGQ0NmMiLCJhY3IiOiIxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIk9yZ2FuaXphdGlvbi5yZWFkIiwiQ29tbXVuaWNhdGlvbi5yZWFkIiwiRXBpc29k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1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJwcm9maWxlIGVtYWlsIG9pb19jdXN0b20iLCJ1c2VyX3R5cGUiOiJQUkFDVElUSU9ORVIiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwidXNlcl9pZCI6Imh0dHA6Ly9vcmdhbml6YXRpb24uZnV0LnRyaWZvcmsuY29tL2ZoaXIvUHJhY3RpdGlvbmVyLzM1MjA1IiwibmFtZSI6IlBvbnRpdXMgUGlsYXR1cyIsImNvbnRleHQiOnsib3JnYW5pemF0aW9uX2lkIjoiaHR0cDovL29yZ2FuaXphdGlvbi5mdXQudHJpZm9yay5jb20vZmhpci9Pcmdhbml6YXRpb24vMTAzNTciLCJjYXJlX3RlYW1faWQiOiJodHRwOi8vb3JnYW5pemF0aW9uLmZ1dC50cmlmb3JrLmNvbS9maGlyL0NhcmVUZWFtLzM1MTAyIn0sInByZWZlcnJlZF91c2VybmFtZSI6ImN1Y3VtYmVyX3RyZWF0bWVudCIsImdpdmVuX25hbWUiOiJQb250aXVzIiwiZmFtaWx5X25hbWUiOiJQaWxhdHVzIn0.iZ2wG3SGVjNnWuPDONFymUq6_LdPX-qSS6e5z8P5XaJe7aK_Mslssdxn_5_uvAVkPqxQ7tU005Q8lPc_rLPkRtESycLt3eTPtkrkd-hNpymx5sj0oLseChO6RBU6_py0F_w8CML3x-45WGSB-3TYVVZ0Zb6QfrXUipr7YUIUE_wQ6Ssu0TpO7p6rB8_7RIYe-UNxE32QUwUU1cn3w_2u21l1tEKJVCSMB2snMw2u9H0af-2iahTRxyAa8nDvP6cOR-MFGNBaOh2aq3syAQZn6tfiKNrv_iVvZ9Fa8SovubdRc7zIomow2-46zR3aWlzxrYXD8ThZ0MnbvpCBLn8glA
Accept: application/fhir+xml;q=1.0, application/fhir+json;q=1.0, application/xml+fhir;q=0.9, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/4.0.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/json-patch+json; charset=UTF-8

Body:

[ {
  "op" : "add",
  "path" : "/appointmentType/coding",
  "value" : [ {
    "system" : "http://ehealth.sundhed.dk/cs/appointmenttype-codes",
    "code" : "EMERGENCY"
  } ]
} ]

Response

{
  "resourceType" : "Appointment",
  "id" : "270",
  "meta" : {
    "extension" : [ {
      "url" : "http://hapifhir.io/fhir/StructureDefinition/resource-meta-source",
      "valueUri" : "#f793472aeca4ec6c"
    } ],
    "versionId" : "2",
    "lastUpdated" : "2019-11-07T16:56:13.239+01:00",
    "profile" : [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-appointment", "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-videoappointment" ]
  },
  "contained" : [ {
    "resourceType" : "Location",
    "id" : "1",
    "name" : "Meeting Room 1",
    "telecom" : [ {
      "system" : "email",
      "value" : "location@example.com"
    } ],
    "address" : {
      "line" : [ "Trifork", "Europaplads 2" ],
      "city" : "Aarhus C",
      "postalCode" : "8000",
      "country" : "DK"
    }
  } ],
  "extension" : [ {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-responsible",
    "valueReference" : {
      "reference" : "http://organization.fut.trifork.com/fhir/CareTeam/35102"
    }
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-end-meeting-on-end-time",
    "valueBoolean" : false
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-max-participants",
    "valueInteger" : 4
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-meeting-url",
    "valueUri" : "https://dummy-video-url.dk/123"
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-pin-code",
    "valueString" : "1234"
  } ],
  "status" : "booked",
  "appointmentType" : {
    "coding" : [ {
      "system" : "http://ehealth.sundhed.dk/cs/appointmenttype-codes",
      "code" : "EMERGENCY"
    } ]
  },
  "reason" : [ {
    "coding" : [ {
      "system" : "http://ehealth.sundhed.dk/cs/appointment-reason",
      "code" : "412776001"
    } ]
  } ],
  "priority" : 1,
  "description" : "Forundersøgelse",
  "start" : "2019-07-01T09:00:00.000+02:00",
  "end" : "2019-07-01T11:00:00.000+02:00",
  "comment" : "Forundersøgelse for grå stær hos Trifork.\n Patienten møder op hos Trifork med udfyldt spørgeskema",
  "participant" : [ {
    "extension" : [ {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-ext-careteam",
      "valueReference" : {
        "reference" : "http://organization.fut.trifork.com/fhir/CareTeam/35102"
      }
    } ],
    "type" : [ {
      "coding" : [ {
        "system" : "http://hl7.org/fhir/v3/ParticipationType",
        "code" : "PART",
        "display" : "Participation"
      } ]
    } ],
    "required" : "required",
    "status" : "accepted"
  }, {
    "actor" : {
      "reference" : "http://organization.fut.trifork.com/fhir/Practitioner/35205",
      "display" : "actor1 display text"
    },
    "required" : "required",
    "status" : "tentative"
  }, {
    "actor" : {
      "reference" : "Patient/257"
    },
    "required" : "required",
    "status" : "accepted"
  }, {
    "actor" : {
      "reference" : "#1"
    },
    "required" : "required",
    "status" : "accepted"
  } ]
}

PUT [base]/Appointment/317

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJkcXlmaEdsRGkzM2prU2o5NWNRYXp3Zk9MOWUzRDlTbFQ1czQxOFplTzlvIn0.eyJqdGkiOiJiNzQ4ZjlmMi1kYTlmLTRkODEtYTNhNS1lZTAxMWRlMDgwZjUiLCJleHAiOjE1NzMxNTc1NzEsIm5iZiI6MCwiaWF0IjoxNTczMTU3MjcxLCJpc3MiOiJodHRwczovL3NhbWwuZnV0LnRyaWZvcmsuY29tL2F1dGgvcmVhbG1zL2VoZWFsdGgiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiNzFhMWY3MDQtZGRkMS00MjFiLThkMmEtMmU0NjkyZTgzODBmIiwidH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t8xhYRJkpD2ssnKKHA3A4ZuFtYsjW6on16BcKgF1rNq2ZNSRKQwNxnBMiiEwgKbZBcHQEGQmanZ1IN_m2DYnPXmEgAeD9IE2Vzh8HbbX_VsL3uuUUFU3OwuvZUkstzza_mFjagTKUIUZ50G8CXA
If-Match: "2"
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/4.0.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType" : "Appointment",
  "id" : "317",
  "meta" : {
    "extension" : [ {
      "url" : "http://hapifhir.io/fhir/StructureDefinition/resource-meta-source",
      "valueUri" : "#87ad63416cce71d5"
    } ],
    "versionId" : "2",
    "lastUpdated" : "2019-11-07T21:07:56.581+01:00",
    "profile" : [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-videoappointment", "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-appointment" ]
  },
  "contained" : [ {
    "resourceType" : "Location",
    "id" : "1",
    "name" : "Room 43b"
  } ],
  "extension" : [ {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-responsible",
    "valueReference" : {
      "reference" : "http://organization.fut.trifork.com/fhir/CareTeam/35102"
    }
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-end-meeting-on-end-time",
    "valueBoolean" : false
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-max-participants",
    "valueInteger" : 4
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-meeting-url",
    "valueUri" : "https://dummy-video-url.dk/123"
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-pin-code",
    "valueString" : "1234"
  } ],
  "status" : "booked",
  "appointmentType" : {
    "coding" : [ {
      "system" : "http://ehealth.sundhed.dk/cs/appointmenttype-codes",
      "code" : "EMERGENCY"
    } ]
  },
  "reason" : [ {
    "coding" : [ {
      "system" : "http://ehealth.sundhed.dk/cs/appointment-reason",
      "code" : "412776001"
    } ]
  } ],
  "priority" : 1,
  "description" : "Forundersøgelse",
  "start" : "2019-07-01T09:00:00.000+02:00",
  "end" : "2019-07-01T11:00:00.000+02:00",
  "comment" : "Forundersøgelse for grå stær hos Trifork.\n Patienten møder op hos Trifork med udfyldt spørgeskema",
  "participant" : [ {
    "extension" : [ {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-ext-careteam",
      "valueReference" : {
        "reference" : "http://organization.fut.trifork.com/fhir/CareTeam/35102"
      }
    } ],
    "type" : [ {
      "coding" : [ {
        "system" : "http://hl7.org/fhir/v3/ParticipationType",
        "code" : "PART",
        "display" : "Participation"
      } ]
    } ],
    "required" : "required",
    "status" : "accepted"
  }, {
    "actor" : {
      "reference" : "http://organization.fut.trifork.com/fhir/Practitioner/35205",
      "display" : "actor1 display text"
    },
    "required" : "required",
    "status" : "tentative"
  }, {
    "actor" : {
      "reference" : "Patient/257"
    },
    "required" : "required",
    "status" : "accepted"
  }, {
    "actor" : {
      "reference" : "#1"
    },
    "required" : "required",
    "status" : "accepted"
  } ]
}

Response

{
  "resourceType" : "Appointment",
  "id" : "317",
  "meta" : {
    "extension" : [ {
      "url" : "http://hapifhir.io/fhir/StructureDefinition/resource-meta-source",
      "valueUri" : "#87ad63416cce71d5"
    } ],
    "versionId" : "3",
    "lastUpdated" : "2019-11-07T21:07:56.753+01:00",
    "profile" : [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-videoappointment", "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-appointment" ]
  },
  "contained" : [ {
    "resourceType" : "Location",
    "id" : "1",
    "name" : "Room 43b"
  } ],
  "extension" : [ {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-end-meeting-on-end-time",
    "valueBoolean" : false
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-max-participants",
    "valueInteger" : 4
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-meeting-url",
    "valueUri" : "https://dummy-video-url.dk/123"
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-pin-code",
    "valueString" : "1234"
  }, {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-responsible",
    "valueReference" : {
      "reference" : "http://organization.fut.trifork.com/fhir/CareTeam/35102"
    }
  } ],
  "status" : "booked",
  "appointmentType" : {
    "coding" : [ {
      "system" : "http://ehealth.sundhed.dk/cs/appointmenttype-codes",
      "code" : "EMERGENCY"
    } ]
  },
  "reason" : [ {
    "coding" : [ {
      "system" : "http://ehealth.sundhed.dk/cs/appointment-reason",
      "code" : "412776001"
    } ]
  } ],
  "priority" : 1,
  "description" : "Forundersøgelse",
  "start" : "2019-07-01T09:00:00.000+02:00",
  "end" : "2019-07-01T11:00:00.000+02:00",
  "comment" : "Forundersøgelse for grå stær hos Trifork.\n Patienten møder op hos Trifork med udfyldt spørgeskema",
  "participant" : [ {
    "extension" : [ {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-ext-careteam",
      "valueReference" : {
        "reference" : "http://organization.fut.trifork.com/fhir/CareTeam/35102"
      }
    } ],
    "type" : [ {
      "coding" : [ {
        "system" : "http://hl7.org/fhir/v3/ParticipationType",
        "code" : "PART",
        "display" : "Participation"
      } ]
    } ],
    "required" : "required",
    "status" : "accepted"
  }, {
    "actor" : {
      "reference" : "http://organization.fut.trifork.com/fhir/Practitioner/35205",
      "display" : "actor1 display text"
    },
    "required" : "required",
    "status" : "tentative"
  }, {
    "actor" : {
      "reference" : "Patient/257"
    },
    "required" : "required",
    "status" : "accepted"
  }, {
    "actor" : {
      "reference" : "#1"
    },
    "required" : "required",
    "status" : "accepted"
  } ]
}