eHealth Infrastructure
2.3.0 - release

Publish Box goes here

Resource Profile: ehealth-group-appointment - Examples

Examples for the ehealth-group-appointment Profile:

  • group-appointment01
  • StructureDefinition: ehealth-group-appointment - Operation examples

    POST [base]/Appointment

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0.eyJpc3MiOiJ0ZXN0IGlzc3VlciIsImF1ZCI6ImZoaXItc2VydmVyIiwibmJmIjoxNjA0OTE4MjE4LCJpYXQiOjE2MDUwMDQ2MTgsImV4cCI6MTYwNTA5MTAxOCwianRpIjoiY2JjZTczZjMtNDMwOC00MjU3LWFjN2EtZDhlMTViYTc0MmIxIiwic3ViIjoiYjYzZTY5NjMtZTU0My00ZmJjLWJjYjQtNDQyYzZmYTE2ZDIyIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoidGVzdCBwYXJ0eSIsImF1dGhfdGltZSI6MTYwNTAwNDYxOCwic2Vzc2lvbl9zdGF0ZSI6IjMwNzhiMWU4LTM1MzAtNDEwNi04ZjJhLTY1OGUxYzZjNDQyYyIsImFjciI6InVybjpmdXQ6dW5pdHRlc3QiLCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJ1bml0IHRlc3QiXX19LCJ1c2VyX3R5cGUiOiJQUkFDVElUSU9ORVIiLCJ1c2VyX2lkIjoiaHR0cDovL2xvY2FsaG9zdDozMjc2OS9oYXBpLWZoaXItanBhc2VydmVyL2ZoaXIvUHJhY3RpdGlvbmVyLzUiLCJzY29wZSI6ImVoZWFsdGgiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJ1bml0IHRlc3QiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiY29udGV4dCI6eyJjYXJlX3RlYW1faWQiOiJodHRwOi8vbG9jYWxob3N0OjMyNzY5L2hhcGktZmhpci1qcGFzZXJ2ZXIvZmhpci9DYXJlVGVhbS8zIiwiZXBpc29kZV9vZl9jYXJlX2lkIjoiIiwib3JnYW5pemF0aW9uX2lkIjoiIn0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJBcHBvaW50bWVudC53cml0ZSJdfX0.
    Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
    User-Agent: HAPI-FHIR/5.1.0 (FHIR Client; FHIR 3.0.2/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-group-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://localhost:32769/hapi-fhir-jpaserver/fhir/CareTeam/3"
          }
        },
        {
          "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-performer",
          "valueReference": {
            "reference": "http://localhost:32769/hapi-fhir-jpaserver/fhir/CareTeam/2"
          }
        }
      ],
      "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"
            }
          ]
        }
      ],
      "description": "description",
      "start": "2020-11-10T11:36:58.568+01:00",
      "end": "2020-11-10T11:36:58.568+01:00",
      "participant": [
        {
          "extension": [
            {
              "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-assigning-careteam",
              "valueReference": {
                "reference": "http://localhost:32769/hapi-fhir-jpaserver/fhir/CareTeam/3"
              }
            }
          ],
          "actor": {
            "reference": "http://localhost:32769/hapi-fhir-jpaserver/fhir/Practitioner/4"
          },
          "status": "accepted"
        },
        {
          "extension": [
            {
              "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-assigning-careteam",
              "valueReference": {
                "reference": "http://localhost:32769/hapi-fhir-jpaserver/fhir/CareTeam/3"
              }
            }
          ],
          "actor": {
            "reference": "http://localhost:32769/hapi-fhir-jpaserver/fhir/Practitioner/5"
          },
          "status": "accepted"
        },
        {
          "extension": [
            {
              "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-ext-careteam",
              "valueReference": {
                "reference": "http://localhost:32769/hapi-fhir-jpaserver/fhir/CareTeam/2"
              }
            },
            {
              "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-assigning-careteam",
              "valueReference": {
                "reference": "http://localhost:32769/hapi-fhir-jpaserver/fhir/CareTeam/3"
              }
            }
          ],
          "type": [
            {
              "coding": [
                {
                  "system": "http://hl7.org/fhir/v3/ParticipationType",
                  "code": "PART"
                }
              ]
            }
          ],
          "status": "accepted"
        },
        {
          "extension": [
            {
              "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-assigning-careteam",
              "valueReference": {
                "reference": "http://localhost:32769/hapi-fhir-jpaserver/fhir/CareTeam/3"
              }
            }
          ],
          "actor": {
            "reference": "http://localhost:8282/fhir/Patient/110"
          },
          "status": "accepted"
        },
        {
          "extension": [
            {
              "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-assigning-careteam",
              "valueReference": {
                "reference": "http://localhost:32769/hapi-fhir-jpaserver/fhir/CareTeam/3"
              }
            }
          ],
          "actor": {
            "reference": "RelatedPerson/121"
          },
          "status": "accepted"
        },
        {
          "extension": [
            {
              "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-assigning-careteam",
              "valueReference": {
                "reference": "http://localhost:32769/hapi-fhir-jpaserver/fhir/CareTeam/3"
              }
            }
          ],
          "actor": {
            "reference": "http://localhost:8282/fhir/Patient/111"
          },
          "status": "accepted"
        },
        {
          "extension": [
            {
              "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-assigning-careteam",
              "valueReference": {
                "reference": "http://localhost:32769/hapi-fhir-jpaserver/fhir/CareTeam/3"
              }
            }
          ],
          "actor": {
            "reference": "RelatedPerson/120"
          },
          "status": "accepted"
        },
        {
          "extension": [
            {
              "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-ext-careteam",
              "valueReference": {
                "reference": "http://localhost:32769/hapi-fhir-jpaserver/fhir/CareTeam/3"
              }
            },
            {
              "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-assigning-careteam",
              "valueReference": {
                "reference": "http://localhost:32769/hapi-fhir-jpaserver/fhir/CareTeam/3"
              }
            }
          ],
          "type": [
            {
              "coding": [
                {
                  "system": "http://hl7.org/fhir/v3/ParticipationType",
                  "code": "PART"
                }
              ]
            }
          ],
          "status": "accepted"
        },
        {
          "extension": [
            {
              "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-assigning-careteam",
              "valueReference": {
                "reference": "http://localhost:32769/hapi-fhir-jpaserver/fhir/CareTeam/3"
              }
            }
          ],
          "actor": {
            "reference": "#1"
          },
          "required": "required",
          "status": "accepted"
        }
      ]
    }
    

    Response

    
    

    POST [base]/Appointment

    Header

    Accept-Charset: utf-8
    Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
    User-Agent: HAPI-FHIR/5.5.0 (FHIR Client; FHIR 4.0.1/R4; 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" : "https://organization.fut.trifork.com/fhir/CareTeam/108752"
        }
      }, {
        "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",
      "serviceType" : [ {
        "coding" : [ {
          "system" : "http://ehealth.sundhed.dk/cs/appointment-servicetype",
          "code" : "video"
        } ]
      } ],
      "appointmentType" : {
        "coding" : [ {
          "system" : "http://ehealth.sundhed.dk/cs/appointmenttype-codes",
          "code" : "FOLLOWUP"
        } ]
      },
      "reasonCode" : [ {
        "coding" : [ {
          "system" : "http://ehealth.sundhed.dk/cs/appointment-reason",
          "code" : "412776001"
        } ]
      } ],
      "priority" : 1,
      "description" : "Forundersøgelse",
      "start" : "2021-09-10T09:00:00.000+00:00",
      "end" : "2021-09-10T11:00:00.000+00: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" : "https://organization.fut.trifork.com/fhir/CareTeam/108752"
          }
        } ],
        "type" : [ {
          "coding" : [ {
            "system" : "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
            "code" : "PART",
            "display" : "Participation"
          } ]
        } ],
        "required" : "required",
        "status" : "accepted"
      }, {
        "actor" : {
          "reference" : "https://organization.fut.trifork.com/fhir/Practitioner/107302",
          "display" : "actor1 display text"
        },
        "required" : "required",
        "status" : "tentative"
      }, {
        "actor" : {
          "reference" : "https://patient.fut.trifork.com/fhir/Patient/179103"
        },
        "required" : "required",
        "status" : "accepted"
      }, {
        "actor" : {
          "reference" : "#1"
        },
        "required" : "required",
        "status" : "accepted"
      } ]
    }
    

    Response

    {
      "resourceType" : "Appointment",
      "id" : "180772",
      "meta" : {
        "versionId" : "1",
        "lastUpdated" : "2021-09-09T07:08:00.776+00:00",
        "profile" : [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-videoappointment" ]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><div class=\"hapiHeaderText\">Forundersøgelse</div><table class=\"hapiPropertyTable\"><tbody><tr><td>Id</td><td/></tr><tr><td>Appointment Type</td><td><span>FOLLOWUP</span></td></tr><tr><td>Status</td><td><span>Booked</span></td></tr></tbody></table></div>"
      },
      "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" : "https://organization.fut.trifork.com/fhir/CareTeam/108752"
        }
      }, {
        "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://portal.vconf.dk/?url=122081@rooms.vconf-stage.dk&pin=43589&start_dato=2021-09-10T09:00:00"
      }, {
        "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-vmr-uri",
        "valueUri" : "122081@rooms.vconf-stage.dk"
      }, {
        "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-guest-pin-code",
        "valueString" : "43589"
      }, {
        "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-host-pin-code",
        "valueString" : "57211"
      } ],
      "identifier" : [ {
        "system" : "http://ehealth.sundhed.dk/id/ehealth-identifier",
        "value" : "8273ecb4-ccaf-4eda-8244-9cd4b4449ff8"
      }, {
        "system" : "http://vdx.medcom.dk/meeting",
        "value" : "507756f3-0d6f-45d0-a00b-a03cf148aba3"
      } ],
      "status" : "booked",
      "serviceType" : [ {
        "coding" : [ {
          "system" : "http://ehealth.sundhed.dk/cs/appointment-servicetype",
          "code" : "video"
        } ]
      } ],
      "appointmentType" : {
        "coding" : [ {
          "system" : "http://ehealth.sundhed.dk/cs/appointmenttype-codes",
          "code" : "FOLLOWUP"
        } ]
      },
      "reasonCode" : [ {
        "coding" : [ {
          "system" : "http://ehealth.sundhed.dk/cs/appointment-reason",
          "code" : "412776001"
        } ]
      } ],
      "priority" : 1,
      "description" : "Forundersøgelse",
      "start" : "2021-09-10T09:00:00.000+00:00",
      "end" : "2021-09-10T11:00:00.000+00: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" : "https://organization.fut.trifork.com/fhir/CareTeam/108752"
          }
        } ],
        "type" : [ {
          "coding" : [ {
            "system" : "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
            "code" : "PART",
            "display" : "Participation"
          } ]
        } ],
        "required" : "required",
        "status" : "accepted"
      }, {
        "actor" : {
          "reference" : "https://organization.fut.trifork.com/fhir/Practitioner/107302",
          "display" : "actor1 display text"
        },
        "required" : "required",
        "status" : "tentative"
      }, {
        "actor" : {
          "reference" : "https://patient.fut.trifork.com/fhir/Patient/179103"
        },
        "required" : "required",
        "status" : "accepted"
      }, {
        "actor" : {
          "reference" : "#1"
        },
        "required" : "required",
        "status" : "accepted"
      } ]
    }