MedMij:Vprepub-2019.01 FHIR eAfspraak: verschil tussen versies

Uit informatiestandaarden
Naar navigatie springen Naar zoeken springen
(Replace the deprecation issuebox)
 
(36 tussenliggende versies door 10 gebruikers niet weergegeven)
Regel 1: Regel 1:
{{#customtitle:MedMij FHIR Implementation Guide - eAfspraak 1.1.0}}
+
{{MedMij:Vprepub-2019.01_eAfspraak1_Uitgefaseerd}}
{{MedMij:V2019.01_Issuebox_FHIR_IG}}
+
__NOINDEX__
 +
__NUMBEREDHEADINGS__
 +
{{DISPLAYTITLE:MedMij FHIR Implementation Guide - eAfspraak {{VersieInfo|eAfspraak|release=V2019.01}}}}
 +
{{MedMij:Vprepub-2019.01_Issuebox_FHIR_IG}}
  
 
[[Bestand:EAfspraak_icoon_zonder_tekst.png |link=|links |87px|eAfspraak]]  
 
[[Bestand:EAfspraak_icoon_zonder_tekst.png |link=|links |87px|eAfspraak]]  
Regel 6: Regel 9:
 
<imagemap>Bestand:Leeswijzer-technisch-banner 03 white.png|center|400px|alt=Afspraken-Functioneel-Technisch   
 
<imagemap>Bestand:Leeswijzer-technisch-banner 03 white.png|center|400px|alt=Afspraken-Functioneel-Technisch   
 
circle 241 216 211 [https://www.medmij.nl/afsprakenstelsel Afsprakenstelsel]                 
 
circle 241 216 211 [https://www.medmij.nl/afsprakenstelsel Afsprakenstelsel]                 
circle 1013 224 212 [[MedMij:V2019.01_OntwerpeAfspraken|Functioneel]]                 
+
circle 1013 224 212 [[MedMij:Vprepub-2019.01_OntwerpeAfspraken|Functioneel]]                 
circle 1787 230 212 [[MedMij:V2019.01_FHIR_IG|Technisch]]                 
+
circle 1787 230 212 [[MedMij:Vprepub-2019.01_FHIR_IG|Technisch]]                 
 
desc none                     
 
desc none                     
 
</imagemap>
 
</imagemap>
Regel 15: Regel 18:
 
=Introduction=
 
=Introduction=
 
This page describes how a patient can manage his health care related appointments in a MedMij context using the HL7 FHIR Standard. Initially, this guide will contain information on how to request existing appointment information. Guidance on how to create, update, or cancel appointments will be available here as well at a later stage.  
 
This page describes how a patient can manage his health care related appointments in a MedMij context using the HL7 FHIR Standard. Initially, this guide will contain information on how to request existing appointment information. Guidance on how to create, update, or cancel appointments will be available here as well at a later stage.  
The functional requirements for this use case can be found in the [[MedMij:V2019.01_Ontwerpen|functional design]].
+
The functional requirements for this use case can be found in the [[MedMij:Vprepub-2019.01_Ontwerpen|functional design]].
  
 
=Use case: retrieve appointments=
 
=Use case: retrieve appointments=
Regel 113: Regel 116:
 
==Profiles==
 
==Profiles==
  
{{NoteBoxPackage|https://simplifier.net/packages/nictiz.fhir.nl.stu3.zib2017/1.1.1|1.1.1|MedMij:V2019.01_FHIR_IG}}
+
{{NoteBoxPackage|https://simplifier.net/NictizSTU3-Zib2017/~packages|1.3.x|MedMij:V2019.01_FHIR_IG}}
  
 
{| class="wikitable" width="1400px"
 
{| class="wikitable" width="1400px"
Regel 121: Regel 124:
 
|-
 
|-
 
| Patient
 
| Patient
| #ZIB Patient|Patient
+
| #Zib Patient|Patient
 
| Patient
 
| Patient
| [https://simplifier.net/resolve?target=simplifier&canonical=http://fhir.nl/fhir/StructureDefinition/nl-core-patient http://fhir.nl/fhir/StructureDefinition/nl-core-patient]
+
| {{Simplifier|http://fhir.nl/fhir/StructureDefinition/nl-core-patient|nictiz.fhir.nl.stu3.zib2017|pkgVersion=1.3.12}}
 
|-
 
|-
 
| Zorgverlener
 
| Zorgverlener
 
| HealthProfessional
 
| HealthProfessional
 
| Practitioner
 
| Practitioner
| [https://simplifier.net/resolve?target=simplifier&canonical=http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner]
+
| {{Simplifier|http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner|nictiz.fhir.nl.stu3.zib2017|pkgVersion=1.3.12}}
 
|-
 
|-
 
| Zorgaanbieder
 
| Zorgaanbieder
 
| HealthcareProvider
 
| HealthcareProvider
 
| Organization
 
| Organization
| [https://simplifier.net/resolve?target=simplifier&canonical=http://fhir.nl/fhir/StructureDefinition/nl-core-organization http://fhir.nl/fhir/StructureDefinition/nl-core-organization]
+
| {{Simplifier|http://fhir.nl/fhir/StructureDefinition/nl-core-organization|nictiz.fhir.nl.stu3.zib2017|pkgVersion=1.3.12}}
 
|-
 
|-
 
| Afspraak
 
| Afspraak
 
| Appointment
 
| Appointment
 
| Appointment
 
| Appointment
| [https://simplifier.net/resolve?target=simplifier&canonical=http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment]
+
| {{Simplifier|http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment|nictiz.fhir.nl.stu3.zib2017|pkgVersion=1.3.12}}
 
|-
 
|-
 
|}
 
|}
  
 
==Examples==
 
==Examples==
 +
{{Sjabloon:Voorbeelden}}
  
 
=Use case: book an appointment=
 
=Use case: book an appointment=
 +
 +
{{NoteBox|This uses case can no longer be implemented within the MedMij-context.}}
  
 
==Introduction==
 
==Introduction==
Regel 165: Regel 171:
  
 
====Search for available slots ====
 
====Search for available slots ====
The PHR system can request available slots using the [[#Operations2|$prefetch operation]] with optional input parameters on the Slot endpoint. This operation is a request for the XIS to calculate available slots, and return a Bundle with available slots. The operation can be performed by an HTTP POST as shown:
+
The PHR system can request available slots using the [[#Operations2|<code>$prefetch</code> operation]] with optional input parameters on the Slot endpoint. This operation is a request for the XIS to calculate available slots, and return a Bundle with available slots. The operation can be performed by an HTTP POST as shown:
  
 
<code>POST [base]/Slot/$prefetch</code>
 
<code>POST [base]/Slot/$prefetch</code>
  
The optional input parameters can be put in the request body using the Parameters resource. The full specification of the $prefetch operation is described here:
+
The optional input parameters can be put in the request body using the Parameters resource. The full specification of the <code>$prefetch</code> operation is described here:
 
[[#Operations2|$prefetch operation]]
 
[[#Operations2|$prefetch operation]]
  
Regel 229: Regel 235:
  
 
====Serve available slots ====
 
====Serve available slots ====
A Client can fetch available slots using the $find operation. (See client section above for details). A server is expected to answer this operation with a Bundle containing the available Slots based on the clients' input parameters, and/or an optional OperationOutcome resource.
+
A Client can fetch available slots using the <code>$prefetch</code> operation. (See client section above for details). A server is expected to answer this operation with a Bundle containing the available Slots based on the clients' input parameters, and/or an optional OperationOutcome resource.
  
 
====Handle appointment booking request ====
 
====Handle appointment booking request ====
Regel 238: Regel 244:
  
 
In general, an operation response uses the [http://hl7.org/fhir/parameters.html Parameters] format regardless of whether there is only one or there are multiple named out parameters.
 
In general, an operation response uses the [http://hl7.org/fhir/parameters.html Parameters] format regardless of whether there is only one or there are multiple named out parameters.
However, the defined <code>$find</code> operation only has one out parameters named "return". This means the parameters resource doesn't have to be used and the response is simply the resource itself. Which in this case is a [http://hl7.org/fhir/bundle.html Bundle] resource of type "search-response", containing the requested resources.
+
However, the defined <code>$prefetch</code> operation only has one out parameters named "return". This means the parameters resource doesn't have to be used and the response is simply the resource itself. Which in this case is a [http://hl7.org/fhir/bundle.html Bundle] resource of type "search-response", containing the requested resources.
  
 
The resources that are returned by the operation may be retained and made available in the resource repository on the operation server. In that case, the server will provide the identity of the resource in the returned resources. When resources that are not persisted are returned in the response, they will have no id property.  
 
The resources that are returned by the operation may be retained and made available in the resource repository on the operation server. In that case, the server will provide the identity of the resource in the returned resources. When resources that are not persisted are returned in the response, they will have no id property.  
Regel 250: Regel 256:
  
 
===<span id="Operations2"></span>Operations===
 
===<span id="Operations2"></span>Operations===
* '''$find''' (Fetch available Slots): [https://simplifier.net/resolve?target=simplifier&canonical=http://nictiz.nl/fhir/OperationDefinition/eAfspraak-slot-prefetch http://nictiz.nl/fhir/OperationDefinition/eAfspraak-slot-prefetch]
+
* '''$prefetch''' (Fetch available Slots): {{Simplifier|http://nictiz.nl/fhir/OperationDefinition/eAfspraak-slot-prefetch|nictiz.fhir.nl.stu3.zib2017|pkgVersion=1.3.12}}
 
+
* '''$book''' (Book Appointment): {{Simplifier|http://nictiz.nl/fhir/OperationDefinition/eAfspraak-appointment-book|nictiz.fhir.nl.stu3.zib2017|pkgVersion=1.3.12}}
<html>
 
<iframe width="100%" height="500" src=https://www.simplifier.net/embed/render?id=NictizSTU3-ZIB2017/eafspraken-slot-find frameborder="1" align="middle"></iframe></html>
 
 
 
* '''$book''' (Book Appointment): [https://simplifier.net/resolve?target=simplifier&canonical=http://nictiz.nl/fhir/OperationDefinition/eAfspraak-appointment-book http://nictiz.nl/fhir/OperationDefinition/eAfspraak-appointment-book]
 
 
 
<html>
 
<iframe width="100%" height="500" src=https://www.simplifier.net/embed/render?id=NictizSTU3-ZIB2017/eafspraken-appointment-book frameborder="1" align="middle"></iframe></html>
 
  
 
==Profiles==
 
==Profiles==
  
{{NoteBoxPackage|https://simplifier.net/packages/nictiz.fhir.nl.stu3.zib2017/1.1.1|1.1.1|MedMij:V2019.01_FHIR_IG}}
+
{{NoteBoxPackage|https://simplifier.net/NictizSTU3-Zib2017/~packages|1.3.x|MedMij:V2019.01_FHIR_IG}}
  
 
{| class="wikitable" width="1400px"
 
{| class="wikitable" width="1400px"
Regel 270: Regel 269:
 
|-
 
|-
 
| Patient
 
| Patient
| #ZIB Patient|Patient
+
| #Zib Patient|Patient
 
| Patient
 
| Patient
| [https://simplifier.net/resolve?target=simplifier&canonical=http://fhir.nl/fhir/StructureDefinition/nl-core-patient http://fhir.nl/fhir/StructureDefinition/nl-core-patient]
+
| {{Simplifier|http://fhir.nl/fhir/StructureDefinition/nl-core-patient|nictiz.fhir.nl.stu3.zib2017|pkgVersion=1.3.12}}
 
|-
 
|-
 
| Zorgverlener
 
| Zorgverlener
 
| HealthProfessional
 
| HealthProfessional
 
| Practitioner
 
| Practitioner
| [https://simplifier.net/resolve?target=simplifier&canonical=http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner]
+
| {{Simplifier|http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner|nictiz.fhir.nl.stu3.zib2017|pkgVersion=1.3.12}}
 
|-
 
|-
 
| Zorgaanbieder
 
| Zorgaanbieder
 
| HealthcareProvider
 
| HealthcareProvider
 
| Organization
 
| Organization
| [https://simplifier.net/resolve?target=simplifier&canonical=http://fhir.nl/fhir/StructureDefinition/nl-core-organization http://fhir.nl/fhir/StructureDefinition/nl-core-organization]
+
| {{Simplifier|http://fhir.nl/fhir/StructureDefinition/nl-core-organization|nictiz.fhir.nl.stu3.zib2017|pkgVersion=1.3.12}}
 
|-
 
|-
 
| Afspraak
 
| Afspraak
 
| Appointment
 
| Appointment
 
| Appointment
 
| Appointment
| [https://simplifier.net/resolve?target=simplifier&canonical=http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment]
+
| {{Simplifier|http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment|nictiz.fhir.nl.stu3.zib2017|pkgVersion=1.3.12}}
 
|-
 
|-
 
|-
 
|-
Regel 293: Regel 292:
 
| Slot
 
| Slot
 
| Slot
 
| Slot
| [https://simplifier.net/resolve?target=simplifier&canonical=http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Slot http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Slot]
+
| {{Simplifier|http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Slot|nictiz.fhir.nl.stu3.zib2017|pkgVersion=1.3.12}}
 
|-
 
|-
 
|}
 
|}
  
 
==Examples==
 
==Examples==
 +
{{Sjabloon:Voorbeelden}}
  
 
=Use case: cancel/reschedule an appointment=
 
=Use case: cancel/reschedule an appointment=
 +
 +
{{NoteBox|This uses case can no longer be implemented within the MedMij context.}}
  
 
==Introduction==
 
==Introduction==
Regel 327: Regel 329:
  
 
The optional input parameters can be put in the request body using the Parameters resource. The full specification of the $cancel operation is described here:
 
The optional input parameters can be put in the request body using the Parameters resource. The full specification of the $cancel operation is described here:
[[#Operations3|$prefetch operation]]
+
[[#Operations3|<code>$prefetch</code> operation]]
  
  
Regel 374: Regel 376:
  
 
===<span id="Operations3"></span>Operations===
 
===<span id="Operations3"></span>Operations===
* '''$cancel''' (Cancel Appointment): [https://simplifier.net/resolve?target=simplifier&canonical=http://nictiz.nl/fhir/OperationDefinition/eAfspraak-appointment-cancel http://nictiz.nl/fhir/OperationDefinition/eAfspraak-appointment-cancel]
+
* '''$cancel''' (Cancel Appointment): {{Simplifier|http://nictiz.nl/fhir/OperationDefinition/eAfspraak-appointment-cancel|nictiz.fhir.nl.stu3.zib2017|pkgVersion=1.3.12}}
 
 
<html>
 
<iframe width="100%" height="500" src=https://simplifier.net/embed/render?id=NictizSTU3-ZIB2017/eafspraken-appointment-cancel frameborder="1" align="middle"></iframe></html>
 
  
 
==Profiles==
 
==Profiles==
Regel 388: Regel 387:
 
| Appointment
 
| Appointment
 
| Appointment
 
| Appointment
| [https://simplifier.net/resolve?target=simplifier&canonical=http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment]
+
| {{Simplifier|http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment|nictiz.fhir.nl.stu3.zib2017|pkgVersion=1.3.12}}
 
|-
 
|-
 
|}
 
|}
  
 
==Examples==
 
==Examples==
 +
{{Sjabloon:Voorbeelden}}
  
 
=Terminology, NamingSystems, Mappings=
 
=Terminology, NamingSystems, Mappings=
 +
{{MedMij:Vprepub-2019.01_Template_Terminologies_NamingSystems_Mappings|id1=Profiles|t1=Profiles}}
  
===Terminology===
+
=Release notes=
Relevant ValueSets can be found through the ValueSet bindings in the listed StructureDefinitions. All ValueSets can be found here [https://simplifier.net/NictizSTU3-Zib2017/~resources?category=ValueSet here] and can be downloaded as a .zip in XML or JSON format.
+
Release notes can be found on the [[MedMij:Vprepub-2019.01_OntwerpeAfspraak#Release_notes| functional design page]].
 
+
{{EindUitgefaseerd}}
===NamingSystems===
 
Relevant NamingSystems can be found [https://simplifier.net/NictizSTU3-Zib2017/~resources?category=NamingSystem here].
 
 
 
===Mappings===
 
A FHIR ConceptMap resource is provided when a FHIR value set is used instead of a HCIM value set. A ConceptMap maps the values between the two value sets. These ConceptMaps can be found [https://simplifier.net/NictizSTU3-Zib2017/~resources?category=ConceptMap here].
 
 
 
All profiles include HCIM mappings. HCIM concepts are mapped to the corresponding FHIR elements using the HCIMs concept id. The top of the StructureDefinition contains meta information regarding the HCIM mapping, such as the name and uri of the HCIM. In the StructureDefinition elements, the corresponding HCIM ID is given including the mapping meta information id. This is illustrated in the following example.
 
 
 
<pre>
 
<StructureDefinition>
 
    <id value="nl-core-patient" />
 
    .....
 
    <mapping>
 
        <identity value="hcim-patient-v3.1-2017EN"/>
 
        <uri value="https://zibs.nl/wiki/Patient-v3.1(2017EN)"/>
 
        <name value="HCIM Patient-v3.1(2017EN)"/>
 
    </mapping>
 
    .....
 
        <element id="Patient.name">
 
            <path value="Patient.name" />
 
            <short value="NameInformation" />
 
            <alias value="Naamgegevens" />
 
            <type>
 
                <code value="HumanName" />
 
                <profile value="http://fhir.nl/fhir/StructureDefinition/nl-core-humanname" />
 
            </type>
 
            <mapping>
 
                <identity value="hcim-patient-v3.1-2017EN"/>
 
                <map value="NL-CM:0.1.6"/>
 
            </mapping>
 
        </element>
 
    .....
 
</StructureDefinition>
 
</pre>
 
 
 
=Annex: Document history=
 
==Release notes==
 
Release notes can be found on the [[MedMij:V2019.01_OntwerpeAfspraak#Release_notes| functional design page]].
 
 
 
==History==
 
{| class="wikitable" "cellpadding="10"
 
!style="text-align:left;"|Release
 
!style="text-align:left;"|Date
 
!style="text-align:left;"|Description
 
|-
 
| style="background-color: white;"| 2019.01
 
| style="background-color: white;"| 11-03-2019
 
| style="background-color: white;"|
 
* Publication of changes in version 2019.01, conform release notes.
 
* Moved release notes to the functional design page.
 
|-
 
| style="background-color: white;"| 2018.06
 
| style="background-color: white;"| 12-11-2018
 
| style="background-color: white;"| Added section Terminology, NamingSystems, Mappings
 
|-
 
| style="background-color: white;"| 2018.06
 
| style="background-color: white;"| 15-10-2018
 
| style="background-color: white;"| Added version in title, and document history
 
|}
 
 
 
[[categorie:MedMij FHIR Use Cases]]
 

Huidige versie van 13 sep 2022 om 13:21

Icoon Nictiz Cirkel Informatie Grafiet.svg

Deze versie van de informatiestandaard is per 11-8-2021 uitgefaseerd. Zie de MedMij-overzichtspagina voor de actuele versies van de MedMij-informatiestandaarden.

This version of this information standard has been deprecated as of 11-8-2021. Consult the MedMij overview page for the current versions of MedMij information standards.




eAfspraak
Naar medmij.nl
AfsprakenstelselFunctioneelTechnischAfspraken-Functioneel-Technisch

1 Introduction

This page describes how a patient can manage his health care related appointments in a MedMij context using the HL7 FHIR Standard. Initially, this guide will contain information on how to request existing appointment information. Guidance on how to create, update, or cancel appointments will be available here as well at a later stage. The functional requirements for this use case can be found in the functional design.

2 Use case: retrieve appointments

Go to Afsprakenstelsel

This FHIR implementation guide assumes that the PHR system is able to make a connection to the right XIS that contains the patient's information. It does not provide information on finding the right XIS nor does it provide information about security. Moreover, each transaction is performed in the context of a specific authenticated patient, for whose context (token) has been established using the authentication mechanisms described in the 'Afsprakenstelsel'. Each XIS Gateway is required to perform filtering based on the patient associated with the context for the request, so only the records associated with the authenticated patient are returned. For this reason, search parameters should not be included for patient identification.


2.1 Introduction

The goal of this use case is to give patients an overview of their appointments with all healthcare providers. The appointment information that is shared with the patient will contain start and end date/time, location, type of appointment, patient instructions, health care professionals present. Below is described how a PHR can retrieve this information and how a XIS should make this information available.

2.2 Actors

Actor Role
Patient (using a PHR) Request appointments from the XIS
Healthcare professional (using a XIS) Serves appointments to the PHR

2.3 Invocations

2.3.1 Client - PHR

2.3.1.1 Search for appointments

The PHR system can request the appointments using individual search interactions. The search interaction searches for appointments based on start date/time. The interaction can be performed by an HTTP GET as shown:

GET [base]/Appointment/?date=[date]

for more information on how to query on dates using FHIR see the FHIR search specification

examples:

retrieve appointments with a start date/time from 01-01-2018 onwards:

GET [base]/Appointment/?date=gt2017-12-31

retrieve appointments with a start date/time from 01-01-2018 until 01-03-2018

GET [base]/Appointment/?date=ge2018-01-01&date=lt2018-03-01

2.3.2 Server - XIS

Important sections of the FHIR specification for a server in this use case are the RESTful API section the search section.

2.3.2.1 Response on search request

If the search succeeds, the server SHALL return a 200 OK HTTP status code and the returned content SHALL be a Bundle with type = searchset containing the results of the search as a collection of zero or more resources in a defined order. The result collection can be long, so servers may use paging. If they do, they SHALL use the method described below (adapted from RFC 5005 (Feed Paging and Archiving ) for breaking the collection into pages if appropriate. The server MAY also return an OperationOutcome resource within the searchset Bundle entries that contains additional information about the search; if one is sent it SHALL NOT include any issues with a fatal or error severity, and it SHALL be marked with a Bundle.entry.search.mode of outcome.

In order to allow the client to be confident about what search parameters were used as criteria by the server, the server SHALL return the parameters that were actually used to process the search. Applications processing search results SHALL check these returned values where necessary. For example, if the server did not support some of the filters specified in the search, a client might manually apply those filters to the retrieved result set, display a warning message to the user or take some other action.

Link to the relevant FHIR specification: http://hl7.org/fhir/STU3/http.html#search

2.3.2.2 Handling errors

If the search fails (cannot be executed, not that there are no matches), the return value is a status code 4xx or 5xx with an OperationOutcome. An HTTP status code of 403 signifies that the server refused to perform the search, while other 4xx and 5xx codes signify that some sort of error has occurred. When the search fails, a server SHOULD return an OperationOutcome detailing the cause of the failure. Note: An empty search result is not a failure.

In some cases, parameters may cause an error. For instance:

  • A parameter may refer to a non-existent resource e.g. GET [base]/Appointment?patient=101, where "101" does not exist
  • A parameter may refer to an unknown code e.g. GET [base]/Appointment?appointment-type=83280, where the 83280 is not known to the server
  • A parameter may refer to a time that is out of scope e.g. GET [base]/Appointment?date=le1995, where the system only has data going back to 2001
  • A date/time parameter may have incorrect format e.g. GET [base]/Appointment?date=23%20May%202009
  • A parameter may be unknown or unsupported

Where the content of the parameter is syntactically incorrect, servers SHOULD return an error. However, where the issue is a logical condition (e.g. unknown subject or code), the server SHOULD process the search, including processing the parameter - with the result of returning an empty search set, since the parameter cannot be satisfied.

In such cases, the search process MAY include an OperationOutcome in the search set that contains additional hints and warnings about the search process. This is included in the search results as an entry with search mode = outcome. Clients can use this information to improve future searches.

Common HTTP Status codes returned on FHIR-related errors (in addition to normal HTTP errors related to security, header and content type negotiation issues):

  • 400 Bad Request - search could not be processed or failed basic FHIR validation rules
  • 401 Not Authorized - authorization is required for the interaction that was attempted
  • 404 Not Found - resource type not supported, or not a FHIR end-point

Link to relevant FHIR specification: http://hl7.org/fhir/STU3/search.html#errors

2.4 Interactions, operations, search parameters

2.4.1 Interactions

The following FHIR interactions are needed to retrieve appointment information:

2.4.2 Operations

No operations are defined or needed for this transaction.

2.4.3 Search parameters

Name Type Description Expression
date date Appointment date/time. Appointment.start

2.5 Profiles

Name NL Name EN FHIR Resource URL profile
Patient Patient Patient http://fhir.nl/fhir/StructureDefinition/nl-core-patient
Zorgverlener HealthProfessional Practitioner http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner
Zorgaanbieder HealthcareProvider Organization http://fhir.nl/fhir/StructureDefinition/nl-core-organization
Afspraak Appointment Appointment http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment

2.6 Examples

Example instances of FHIR resources can be found on Simplifier. Please note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of any information standard.

3 Use case: book an appointment

3.1 Introduction

The goal of this use case is to allow patients to book an appointment at a certain selected health care provider. Below is described how a PHR can send an appointment request and how a XIS should handle this.

3.2 Actors

Actor Role
Patient (using a PHR) Book appointment
Healthcare professional (using a XIS) Handles appointment request

3.3 Invocations

3.3.1 Client - PHR

3.3.1.1 Search for available slots

The PHR system can request available slots using the $prefetch operation with optional input parameters on the Slot endpoint. This operation is a request for the XIS to calculate available slots, and return a Bundle with available slots. The operation can be performed by an HTTP POST as shown:

POST [base]/Slot/$prefetch

The optional input parameters can be put in the request body using the Parameters resource. The full specification of the $prefetch operation is described here: $prefetch operation

Below is an example of an operation that requests Slots with a start date/time between July 15th 8PM and July 17th 8PM:

example body

{
  "resourceType": "Parameters",
  "parameter": [
    {
      "name": "start",
      "valueDateTime" : "2017-07-15T20:00:00Z"
    },
    {
      "name": "end",
        "valueDateTime" : "2017-07-17T20:00:00Z"
    }
]
}

A Bundle containing the available Slot resources and an optional OperationOutcome resource can be expected as return.

For more information on how operations work using FHIR see the FHIR search specification

3.3.1.2 Book appointment

After fetching open Slots, an Appointment resource is created by the Client Application and is exchanged with the EHR. This Appointment will be the parameter for the $book operation. The operation can be performed by an HTTP POST as shown:

POST [base]/Appointment/$book

The full specification of the $book operation is described here: $book operation

The proposed Appointment has to be put in the request body using the Parameters resource.

{
   "resourceType": "Parameters",
   "parameter": [
      {
         "name": "appointment",
         "resource": {
            "resourceType": "Appointment",
            --snip--
         }
      },
   ]
}

A Bundle containing an required Appointment resource with status "booked" or "cancelled" and an optional OperationOutcome resource can be expected as return.

3.3.2 Server - XIS

Important sections of the FHIR specification for a server in this use case are the RESTful API section and the operations section.

3.3.2.1 Serve available slots

A Client can fetch available slots using the $prefetch operation. (See client section above for details). A server is expected to answer this operation with a Bundle containing the available Slots based on the clients' input parameters, and/or an optional OperationOutcome resource.

3.3.2.2 Handle appointment booking request

A Client can propose an appointment to be booked using the $book operation. (See client section above for details). A server is expected to answer this operation with a Bundle containing the proposed appointment with either a "booked" or "cancelled" status based on the XIS internal logic. The server can also send an optional OperationOutcome resource, containing a "success" or "error" explaining the result.

3.3.2.3 Response on operation request

If an operation succeeds, an HTTP Status success code is returned. This will usually be a 2xx code, though it may also be a 303 See Other. Other kinds of 3xx codes should be understood to indicate that the operation did not proceed, and the client will need to re-issue the operation if it can perform the redirection (e.g. may get redirected to an authentication step). User agents should note that servers may issue redirects, etc. to authenticate the client in response to an operation request. An HTTP status code of 4xx or 5xx indicates an error, and an OperationOutcome SHOULD be returned with details.

In general, an operation response uses the Parameters format regardless of whether there is only one or there are multiple named out parameters. However, the defined $prefetch operation only has one out parameters named "return". This means the parameters resource doesn't have to be used and the response is simply the resource itself. Which in this case is a Bundle resource of type "search-response", containing the requested resources.

The resources that are returned by the operation may be retained and made available in the resource repository on the operation server. In that case, the server will provide the identity of the resource in the returned resources. When resources that are not persisted are returned in the response, they will have no id property.

Link to the relevant FHIR specification: http://hl7.org/fhir/stu3/operations.html

3.4 Interactions, operations, search parameters

3.4.1 Interactions

The following FHIR interactions are needed to retrieve avaialable slots information:

3.4.2 Operations

3.5 Profiles

Name NL Name EN FHIR Resource URL profile
Patient Patient Patient http://fhir.nl/fhir/StructureDefinition/nl-core-patient
Zorgverlener HealthProfessional Practitioner http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner
Zorgaanbieder HealthcareProvider Organization http://fhir.nl/fhir/StructureDefinition/nl-core-organization
Afspraak Appointment Appointment http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment
Slot Slot Slot http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Slot

3.6 Examples

Example instances of FHIR resources can be found on Simplifier. Please note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of any information standard.

4 Use case: cancel/reschedule an appointment

4.1 Introduction

The goal of this use case is to allow patients to cancel a specific appointment. Below is described how a PHR can send a cancellation request and how a XIS should handle this.

Rescheduling is a combination of cancelling and re-booking an appointment. For booking an appointment, see the use case above.

4.2 Actors

Actor Role
Patient (using a PHR) Cancel appointment
Healthcare professional (using a XIS) Handles cancellation request

4.3 Invocations

4.3.1 Client - PHR

4.3.1.1 Search for available slots

The PHR system can request the cancellation of a specific appointment using the $cancel operation with the appointment as input parameter on the Appointment endpoint. This operation is a request for the XIS to handle the request, and provide a Bundle resource with the Appointment resource (canceled or not) and an optional OperationOutcome slots as return. The operation can be performed by an HTTP POST as shown:

POST [base]/Appointment/$cancel

The optional input parameters can be put in the request body using the Parameters resource. The full specification of the $cancel operation is described here: $prefetch operation


example body

{
   "resourceType": "Parameters",
   "parameter": [
      {
         "name": "appointment",
         "resource": {
            "resourceType": "Appointment",
            --snip--
         }
      },
   ]
}

A Bundle containing the Appointment resources and an optional OperationOutcome resource can be expected as return. If the appointment was indeed cancelled, the returned Appointment resource will have a status of "cancelled". If not, the Appointment will be returned as is, and a explanation will be returned in an OperationOutcome resource, with an explanation.

For more information on how operations work using FHIR see the FHIR search specification

4.3.2 Server - XIS

Important sections of the FHIR specification for a server in this use case are the RESTful API section and the operations section.

4.3.2.1 Handle appointment cancellation request

A Client can propose an appointment to be booked using the $cancel operation. (See client section above for details). A server is expected to answer this operation with a Bundle containing the proposed appointment either unchanged (if the request was denied) or with a "cancelled" status (if the request was approved) based on the XIS's internal logic. The server can also send an optional OperationOutcome resource, containing a "success" or "error" explaining the result.

4.3.2.2 Response on operation request

If an operation succeeds, a HTTP Status success code is returned. This will usually be a 2xx code, though it may also be a 303 See Other. Other kinds of 3xx codes should be understood to indicate that the operation did not proceed, and the client will need to re-issue the operation if it can perform the redirection (e.g. may get redirected to an authentication step). User agents should note that servers may issue redirects, etc. to authenticate the client in response to an operation request. An HTTP status code of 4xx or 5xx indicates an error, and an OperationOutcome SHOULD be returned with details.

In general, an operation response uses the Parameters format whether there is only one or there are multiple named out parameters. However, the defined $cancel operation only has one out parameters named "return". This means the parameters don't have to be used and the response is simply the resource itself. Which in this case is a Bundle resource of type "search-response", containing the requested resources.

The resources that are returned by the operation may be retained and made available in the resource repository on the operation server. In that case, the server will provide the identity of the resource in the returned resources. When resources that are not persisted are returned in the response, they will have no id property.

Link to the relevant FHIR specification: http://hl7.org/fhir/stu3/operations.html

4.4 Interactions, operations, search parameters

4.4.1 Interactions

The following FHIR interactions are needed to retrieve avaialable slots information:

4.4.2 Operations

4.5 Profiles

Name NL Name EN FHIR Resource URL profile
Afspraak Appointment Appointment http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment

4.6 Examples

Example instances of FHIR resources can be found on Simplifier. Please note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of any information standard.

5 Terminology, NamingSystems, Mappings

Relevant ValueSets, NamingSystems and ConceptMaps can be found in the packages referenced in the Profiles section.

The HCIM ValueSets used in the profiles are included in the package (or one of its dependencies). When a FHIR core ValueSet must be used instead of an HCIM ValueSet, a FHIR ConceptMap resource is provided to map the values between the two sets. An explanation about mappings can be found at in the overarching principles.

6 Release notes

Release notes can be found on the functional design page.