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cmdhbml6YXRpb24vMTAzNTciLCJjYXJlX3RlYW1faWQiOiJodHRwOi8vb3JnYW5pemF0aW9uLmZ1dC50cmlmb3JrLmNvbS9maGlyL0NhcmVUZWFtLzM1MTAyIiwicGF0aWVudF9pZCI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODA4MC9maGlyL1BhdGllbnQvMjQwIn0sInByZWZlcnJlZF91c2VybmFtZSI6ImN1Y3VtYmVyX3RyZWF0bWVudCIsImdpdmVuX25hbWUiOiJQb250aXVzIiwiZmFtaWx5X25hbWUiOiJQaWxhdHVzIn0.ccgMSB8js2I-3nl3RvRf3DyQvSsqxezwj33OZJPBVhy2JqCfmsEKdK-rluDo_vvOydVRb6jnpg6UWRjujKw-ZxbKnb4xGTuYogxUBwvAQPs25D3C2-j9eQjKo-TwlPmD4vnXUQvmW6L4SZ1x9QVdNO7Hu5GTfZXDoATCz1SA-DHZItKw4xiy5Q9JhLb0PkKDoD6rDGJlWhUnDakgps0rkGt-XoahLIeEqPxxvtqdMxkCRghI69kFs4GD5ZHRViq5gOr-03bO5Jz65uFlgEd4zAUOiSuREuQBXl0uAGzL4r7a_AB04IdfHS6yRmTY78qdH8haW9dPOZoYbrpHNsiQYA
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-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"
}
} ],
"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/36157",
"display" : "actor1 display text"
},
"required" : "required",
"status" : "tentative"
}, {
"actor" : {
"reference" : "http://localhost:8080/fhir/Patient/240"
},
"required" : "required",
"status" : "accepted"
}, {
"actor" : {
"reference" : "#1"
},
"required" : "required",
"status" : "accepted"
} ]
}
Response
{
"resourceType" : "Appointment",
"id" : "311",
"meta" : {
"versionId" : "1",
"lastUpdated" : "2019-11-06T10:30:06.641+01:00",
"profile" : [ "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"
}
} ],
"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/36157",
"display" : "actor1 display text"
},
"required" : "required",
"status" : "tentative"
}, {
"actor" : {
"reference" : "Patient/240"
},
"required" : "required",
"status" : "accepted"
}, {
"actor" : {
"reference" : "#1"
},
"required" : "required",
"status" : "accepted"
} ]
}
GET [base]/Appointment/309
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJkcXlmaEdsRGkzM2prU2o5NWNRYXp3Zk9MOWUzRDlTbFQ1czQxOFplTzlvIn0.eyJqdGkiOiIzZmI3NmIxYS0wODMwLTQxM2QtODg0ZS1mMTIyNWQyMzZjNzAiLCJleHAiOjE1NzMwMzI4OTAsIm5iZiI6MCwiaWF0IjoxNTczMDMyNTkwLCJpc3MiOiJodHRwczovL3NhbWwuZnV0LnRyaWZvcmsuY29tL2F1dGgvcmVhbG1zL2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JpZmllZCI6dHJ1ZSwidXNlcl9pZCI6ImQyYjhlMGExLTk5NmUtNDEwOS1iMzk2LTg4ZmFjMzQ2NjAyOSIsInByZWZlcnJlZF91c2VybmFtZSI6ImN1Y3VtYmVyX21hc3RlciJ9.XacYM67YP9I8x8LciPrqg1hNGVYvTul9siUzaP5COCEgNhKJOHfDXtbdInEL_jSs5tLhMoHd0M-UOiI2Jcx2_zxpWl6j-VAKuZoqnsgtsezRjyE_kH2lcSUMFQ4YtWBOge2ZtvHoc83WJ1cvm8gkBwOKK8j75xqg98NJick95SnLv-sTypzBt6ynK5vuyEvU0O0Dg_kypBiGrWa0Q7uLmqRbO_atSdF8Ti-gkQIYevi4W2N43LypnOG5_cHs3UlA95M1Txd4uFXJut1Rw-UgU3i7tnx8BLM_FTU7e-Iul-XnyO-pk78nTjGAXtmlCWPYavptnaZ41NqIOcSSY3ecNA
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" : "309",
"meta" : {
"extension" : [ {
"url" : "http://hapifhir.io/fhir/StructureDefinition/resource-meta-source",
"valueUri" : "#f5366489cb1f7603"
} ],
"versionId" : "2",
"lastUpdated" : "2019-11-06T10:30:05.398+01:00",
"profile" : [ "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"
}
} ],
"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/240"
},
"required" : "required",
"status" : "accepted"
}, {
"actor" : {
"reference" : "#1"
},
"required" : "required",
"status" : "accepted"
} ]
}
PUT [base]/Appointment/309
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJkcXlmaEdsRGkzM2prU2o5NWNRYXp3Zk9MOWUzRDlTbFQ1czQxOFplTzlvIn0.eyJqdGkiOiJiNzk3NjhlMy02ZDA5LTRmNDktODliMy04MWZkYmNlZDk2ZTEiLCJleHAiOjE1NzMwMzI4OTIsIm5iZiI6MCwiaWF0IjoxNTczMDMyNTkyLCJpc3MiOiJodHRwczovL3NhbWwuZnV0LnRyaWZvcmsuY29tL2F1dGgvcmVhbG1zL2VoZWFsdGgiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiNDFjY2JhYTQtNjEyNC00YTUwLWJmMjQtNzY3Zjg2ZmIxM2Y4IiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiY3VjdW1iZXIiLCJhdXRoX3RpbWUiOjAs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RwFCdwZ6_sfDuc_uTrg6XYXlv1WqTrmFbPZXfs467UbggmrLGFnYWt6AoxOHfjaLMWvtvvBhzCG9bIh6wLQqQ
If-Match: "1"
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" : "309",
"meta" : {
"versionId" : "1",
"lastUpdated" : "2019-11-06T10:30:05.257+01:00",
"profile" : [ "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"
}
} ],
"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/240"
},
"required" : "required",
"status" : "accepted"
}, {
"actor" : {
"reference" : "#1"
},
"required" : "required",
"status" : "accepted"
} ]
}
Response
{
"resourceType" : "Appointment",
"id" : "309",
"meta" : {
"versionId" : "2",
"lastUpdated" : "2019-11-06T10:30:05.398+01:00",
"profile" : [ "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"
}
} ],
"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/240"
},
"required" : "required",
"status" : "accepted"
}, {
"actor" : {
"reference" : "#1"
},
"required" : "required",
"status" : "accepted"
} ]
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cmdhbml6YXRpb24vMTAzNTciLCJjYXJlX3RlYW1faWQiOiJodHRwOi8vb3JnYW5pemF0aW9uLmZ1dC50cmlmb3JrLmNvbS9maGlyL0NhcmVUZWFtLzM1MTAyIn0sInByZWZlcnJlZF91c2VybmFtZSI6ImN1Y3VtYmVyX3RyZWF0bWVudCIsImdpdmVuX25hbWUiOiJQb250aXVzIiwiZmFtaWx5X25hbWUiOiJQaWxhdHVzIn0.gmWTIiY334AsY4yjkQn13R4gwTFUA4BqkZtbILHvI8b8aT6kvAHP03Hd0qrvsjv97vuNXCugaQvZ4QNUTKoWf6n5nWX4WO1QeU7D-xhmNtYgprWtgSKB1vbAERQMet3Ik9DZT8AZ0VpfCY8qKmrDLLTdj5Hekqp-QM28Mjl-QjuYfinbYZ9wO3ADCHY_iIYpGgrt8xhYRJkpD2ssnKKHA3A4ZuFtYsjW6on16BcKgF1rNq2ZNSRKQwNxnBMiiEwgKbZBcHQEGQmanZ1IN_m2DYnPXmEgAeD9IE2Vzh8HbbX_VsL3uuUUFU3OwuvZUkstzza_mFjagTKUIUZ50G8CXA
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" : "314",
"meta" : {
"extension" : [ {
"url" : "http://hapifhir.io/fhir/StructureDefinition/resource-meta-source",
"valueUri" : "#42302ff49cfd2874"
} ],
"versionId" : "3",
"lastUpdated" : "2019-11-07T21:07:54.261+01:00",
"profile" : [ "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"
}
} ],
"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"
} ]
}