Appointment

Das Appointment-Modul beinhaltet alle Informationen zu Terminvereinbarungen.

Die URL [base] in dieser Dokumentation entspricht: [PraxisBaseUrl]/Appointment/health-hub/v[ApiMajorVersion].

Verfügbarkeit: ab IHS 2.0.2 · medatixx ab 1.93 · x.isynet ab 26.3-QU (IHS 2.3.1). Einzelne Funktionen sind erst ab höheren Versionen verfügbar; Abweichungen sind bei der jeweiligen Funktion vermerkt.

Folgende Use-Cases werden im Appointment-Modul unterstützt und nachfolgend näher beschrieben:

Abrufen von Kalender-Konfigurationen

Ein Kunde kann in der Praxissoftware eine oder mehrere Kalender-Konfigurationen anlegen. Das Partnersystem muss diese Konfigurationen abrufen und dem Kunden ermöglichen die korrekte(n) Konfiguration(en) für das Partnersystem auszuwählen. Das Suchen von freien Termin-Slots und das Buchen von Terminen erfolgt dann immer unter Bezugnahme auf eine konkrete Kalender-Konfiguration.

Kalender-Konfigurationen können gesucht (URL: POST [base]/Schedule/_search) und gelesen (URL: GET [base]/Schedule/[Id]) werden. Dabei unterstützt die Suche keine Suchparameter und gibt ein Bundle mit allen verfügbaren Kalender-Konfigurationen zurück.

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
mxxHealthHubSchedulerSearchConfigurationC1..1Extension(Complex)
mxxHealthHubAppointmentsRequireConfirmationC0..*Extension(boolean)
modifierExtension?! C0..0Extension
identifierΣ0..0Identifier
activeΣ ?!1..1boolean
id0..1string
extensionC0..*Extension
codingΣ0..0Coding
textΣ1..1string
serviceTypeΣ1..*Mxx_HealthHub_HealthcareService
specialtyΣ0..0CodeableConceptBinding
id0..1string
id0..1string
extensionC0..0Extension
url1..1uriFixed Value
id0..1string
extensionC0..*Extension
systemΣ1..1uriFixed Value
versionΣ0..1string
codeΣ1..1codeFixed Value
displayΣ0..0string
userSelectedΣ0..0boolean
referenceΣ C1..1string
typeΣ0..0uriBinding
identifierΣ0..0Identifier
id0..1string
mxxHealthHubMailNameC0..1Extension(string)
value0..1System.String
id0..1string
id0..1string
extensionC0..0Extension
url1..1uriFixed Value
id0..1string
extensionC0..*Extension
systemΣ1..1uriFixed Value
versionΣ0..1string
codeΣ1..1codeFixed Value
displayΣ0..0string
userSelectedΣ0..0boolean
referenceΣ C1..1string
typeΣ0..0uriBinding
identifierΣ0..0Identifier
id0..1string
mxxHealthHubMailNameC0..1Extension(string)
value0..1System.String
planningHorizonΣ C0..0Period
comment0..0string

Ermitteln verfügbarer Tage

Für eine Kalender-Konfiguration kann ermittelt werden, an welchen Tagen Termine verfügbar sind. Diese Anfrage kann verwendet werden, um dem Nutzer eine Vorauswahl an buchbaren Terminen anzuzeigen, ohne direkt die vollständige Liste an verfügbaren Terminen zu laden.

Beim Erstellen der Suchanfrage müssen die Angaben aus der Such-Konfiguration für die Kalender-Konfiguration beachtet werden (s. Schedule.extension:mxxHealthHubSchedulerSearchConfiguration).

Invocations

URL: [base]/Schedule/[id]/$availableDays

Parameters (In)

NameCardinalityTypeBindingDocumentation
practitioner0..*Reference(Mxx_HealthHub_Practitioner)

Practitioners to search available appointments for. Can be any set of Practitioners from the available combinations in the scheduler configuration. Omit the parameter only to perform a resourceless search when requested by the service type. If multiple Practitioners are given 'includeAvailableResources' should be set to true to get the specific practitioner included in any slot response, to display to the end user.

assistant0..*Reference(Mxx_HealthHub_User)

Assistants to search available appointments for. Can be any set of Assistant from the available combinations in the scheduler configuration. Omit the parameter only to perform a resourceless search when requested by the service type. If multiple Assistants are given 'includeAvailableResources' should be set to true to get the specific practitioner included in any slot response, to display to the end user.

includeAvailableResources0..1boolean

Determines whether the search results are to include the available doctors and/or assistants for the respective appointments. Should be set to true when muliple practitioners or assistants are selected. Has no effect when searching for available days.

serviceTypeId1..1string

ID of the healthcare service for which to search available slots. Refers to Schedule.serviceType.id

insuranceType0..1CodingMxx_HealthHub_VS_AppointmentInsuranceType (required)

Patients insurance type for the appointment. Musst be set (to a value not UNK) when InsuranceTypeIsRequired is true in the scheduler search configuration.

startTime1..1time

Beginning of the time frame in which slots should be searched.

endTime1..1time

End of the time frame in which slots should be searched.

startDate1..1date

First day to search appointments for.

endDate1..1date

Last day to search appointments for

daysOfWeek1..*CodingDaysOfWeek (required)

Days of the week on which to search for available slots. Must be a subset of or equal to the search configurations searchable weekdays.

Return Values (Out)

NameCardinalityTypeDocumentation
availableDay0..*date

Day on which at least one slot is currently available according to the given search parameters.

Input Profil

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1string
valueAddressAddress
valueAgeAge
valueAnnotationAnnotation
valueAttachmentAttachment
valueBase64Binarybase64Binary
valueBooleanboolean
valueCanonicalcanonical
valueCodecode
valueCodeableConceptCodeableConcept
valueCodingCoding
valueContactDetailContactDetail
valueContactPointContactPoint
valueContributorContributor
valueCountCount
valueDataRequirementDataRequirement
valueDatedate
valueDateTimedateTime
valueDecimaldecimal
valueDistanceDistance
valueDosageDosage
valueDurationDuration
valueExpressionExpression
valueHumanNameHumanName
valueIdid
valueIdentifierIdentifier
valueInstantinstant
valueIntegerinteger
valueMarkdownmarkdown
valueMetaMeta
valueMoneyMoney
valueOidoid
valueParameterDefinitionParameterDefinition
valuePeriodPeriod
valuePositiveIntpositiveInt
valueQuantityQuantity
valueRangeRange
valueRatioRatio
valueReferenceReference
valueRelatedArtifactRelatedArtifact
valueSampledDataSampledData
valueSignatureSignature
valueStringstring
valueTimetime
valueTimingTiming
valueTriggerDefinitionTriggerDefinition
valueUnsignedIntunsignedInt
valueUriuri
valueUrlurl
valueUsageContextUsageContext
valueUuiduuid
resourceΣ C0..1Resource
partΣ0..*see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
id0..1string
extensionC0..*Extension
referenceΣ C0..1string
typeΣ0..0uriBinding
identifierΣ0..0Identifier
displayΣ0..0string
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
id0..1string
extensionC0..*Extension
referenceΣ C0..1string
typeΣ0..0uriBinding
identifierΣ0..0Identifier
displayΣ0..0string
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
valueBooleanboolean
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
valueStringstring
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
id0..1string
extensionC0..*Extension
systemΣ0..1uri
versionΣ0..1string
codeΣ0..1code
displayΣ0..0string
userSelectedΣ0..0boolean
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
valueTimetime
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
valueTimetime
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
valueDatedate
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
valueDatedate
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1string
id0..1string
extensionC0..*Extension
systemΣ0..1uri
versionΣ0..1string
codeΣ0..1code
displayΣ0..0string
userSelectedΣ0..0boolean
resourceΣ C0..0Resource
partΣ0..0see (parameter)

Output Profil

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..0Extension
nameΣ1..1stringFixed Value
valueDatedate
resourceΣ C0..0Resource
partΣ0..0see (parameter)

Ermitteln verfügbarer Termin-Slots

Für eine Kalender-Konfiguration können die freien Termin-Slots ermittelt werden.

Beim Erstellen der Suchanfrage müssen die Angaben aus der Such-Konfiguration für die Kalender-Konfiguration beachtet werden (s. Schedule.extension:mxxHealthHubSchedulerSearchConfiguration).

Invocations

URL: [base]/Schedule/[id]/$availableSlots

Parameters (In)

NameCardinalityTypeBindingDocumentation
practitioner0..*Reference(Mxx_HealthHub_Practitioner)

Practitioners to search available appointments for. Can be any set of Practitioners from the available combinations in the scheduler configuration. Omit the parameter only to perform a resourceless search when requested by the service type. If multiple Practitioners are given 'includeAvailableResources' should be set to true to get the specific practitioner included in any slot response, to display to the end user.

assistant0..*Reference(Mxx_HealthHub_User)

Assistants to search available appointments for. Can be any set of Assistant from the available combinations in the scheduler configuration. Omit the parameter only to perform a resourceless search when requested by the service type. If multiple Assistants are given 'includeAvailableResources' should be set to true to get the specific practitioner included in any slot response, to display to the end user.

includeAvailableResources0..1boolean

Determines whether the search results are to include the available doctors and/or assistants for the respective appointments. Should be set to true when muliple practitioners or assistants are selected. Has no effect when searching for available days.

serviceTypeId1..1string

ID of the healthcare service for which to search available slots. Refers to Schedule.serviceType.id

insuranceType0..1CodingMxx_HealthHub_VS_AppointmentInsuranceType (required)

Patients insurance type for the appointment. Musst be set (to a value not UNK) when InsuranceTypeIsRequired is true in the scheduler search configuration.

startTime1..1time

Beginning of the time frame in which slots should be searched.

endTime1..1time

End of the time frame in which slots should be searched.

startDate1..1date

First day to search appointments for.

endDate1..1date

Last day to search appointments for

daysOfWeek1..*CodingDaysOfWeek (required)

Days of the week on which to search for available slots. Must be a subset of or equal to the search configurations searchable weekdays.

Return Values (Out)

NameCardinalityTypeDocumentation
availableSlot0..*Slot

Slot that is currently available according to the given search parameters.

Input Profil

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1string
valueAddressAddress
valueAgeAge
valueAnnotationAnnotation
valueAttachmentAttachment
valueBase64Binarybase64Binary
valueBooleanboolean
valueCanonicalcanonical
valueCodecode
valueCodeableConceptCodeableConcept
valueCodingCoding
valueContactDetailContactDetail
valueContactPointContactPoint
valueContributorContributor
valueCountCount
valueDataRequirementDataRequirement
valueDatedate
valueDateTimedateTime
valueDecimaldecimal
valueDistanceDistance
valueDosageDosage
valueDurationDuration
valueExpressionExpression
valueHumanNameHumanName
valueIdid
valueIdentifierIdentifier
valueInstantinstant
valueIntegerinteger
valueMarkdownmarkdown
valueMetaMeta
valueMoneyMoney
valueOidoid
valueParameterDefinitionParameterDefinition
valuePeriodPeriod
valuePositiveIntpositiveInt
valueQuantityQuantity
valueRangeRange
valueRatioRatio
valueReferenceReference
valueRelatedArtifactRelatedArtifact
valueSampledDataSampledData
valueSignatureSignature
valueStringstring
valueTimetime
valueTimingTiming
valueTriggerDefinitionTriggerDefinition
valueUnsignedIntunsignedInt
valueUriuri
valueUrlurl
valueUsageContextUsageContext
valueUuiduuid
resourceΣ C0..1Resource
partΣ0..*see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
id0..1string
extensionC0..*Extension
referenceΣ C0..1string
typeΣ0..0uriBinding
identifierΣ0..0Identifier
displayΣ0..0string
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
id0..1string
extensionC0..*Extension
referenceΣ C0..1string
typeΣ0..0uriBinding
identifierΣ0..0Identifier
displayΣ0..0string
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
valueBooleanboolean
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
valueStringstring
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
id0..1string
extensionC0..*Extension
systemΣ0..1uri
versionΣ0..1string
codeΣ0..1code
displayΣ0..0string
userSelectedΣ0..0boolean
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
valueTimetime
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
valueTimetime
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
valueDatedate
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
valueDatedate
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1string
id0..1string
extensionC0..*Extension
systemΣ0..1uri
versionΣ0..1string
codeΣ0..1code
displayΣ0..0string
userSelectedΣ0..0boolean
resourceΣ C0..0Resource
partΣ0..0see (parameter)

Output Profil

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..0Extension
nameΣ1..1stringFixed Value
resourceΣ C1..1Mxx_HealthHub_AppointmentSlot
partΣ0..0see (parameter)

Buchen eines Termins

Bei der Buchung eines Termins müssen Zeiten als Start- und Endzeit des Termins angegeben werden, die zuvor über die Abfrage verfügbarere Slots ermittelt wurden. Dabei müssen Start- und Endzeit des Termins exakt einem Slot entsprechen und können nicht über mehrere Slots hinweg verwendet werden (Kombination von zusammenhängenden Slots ist nicht möglich).

Bei der Angabe des Patient kann entweder eine Referenz auf einen existierenden Patient verwendet werden, der zuvor über das Patient-Modul gefunden wurde oder es wird ein unbekannter Patient als Contained-Referenz angegeben, der dann dem Profil Mxx_HealthHub_AppointmentPatient entsprechen muss.

Als Appointment.status darf beim Buchen eines Termins nur proposed angegeben werden. Für Practitioner und Assistant im Appointment (Appointment.participant.status) darf als Status nur needs-action angegeben werden. Wenn Termine anhand der Konfiguration automatisch angenommen werden (Schedule.extension:mxxHealthHubAppointmentsRequireConfirmation ist true) ist der Status nach der Anlage booked, ist eine Bestätigung durch die Praxis erforderlich ist der Status pending. In diesem Fall kann das Partnersystem Benachrichtigungen erhalten, um bei Bestätigung des Termins durch die Praxis informiert zu werden.

Wichtig: Ein Termin kann nur von Partnersystemen gebucht werden, die in der Partnersystemregistrierung Device.extension:mxxHealthHubSettingsDisplayOptions.extension:Appointment.extension:Show mit true angegeben haben.

Hinweis: Die Praxissoftware-Lösungen verhalten sich beim Buchen teilweise unterschiedlich, wenn nicht alle Angaben mitgegeben werden (z.B. behandelnde Person, Terminart). Es wird empfohlen, Termine möglichst vollständig zu buchen, um ein einheitliches Verhalten zu erreichen.

Videosprechstunden-Link: Für Termine einer Terminart, die in der Kalender-Konfiguration als Videosprechstunde gekennzeichnet ist (Schedule.serviceType mit Extension mxxHealthHubIsVideoConsultation = true), kann das Partnersystem beim Buchen einen Link zur Videosprechstunde mitgeben: Appointment.extension:mxxHealthHubVideoConsultationUri (Extension Mxx_HealthHub_VideoConsultationUri, valueUrl). Zulässig sind ausschließlich absolute, kleingeschriebene https://-URLs mit maximal 2000 Zeichen; andere Werte werden abgewiesen. Wird der Link für eine Terminart übermittelt, die nicht als Videosprechstunde gekennzeichnet ist, wird die Buchung mit 400 Bad Request (OperationOutcome) abgewiesen. Der Link wird nur beim Buchen ($book) gesetzt; ein beim Verschieben ($change) mitgesendeter Link wird ebenfalls mit 400 abgewiesen, ein bereits gesetzter Link bleibt jedoch am verschobenen Termin erhalten. Beim Abrufen von Terminen (POST [base]/Appointment/_search) wird der Link in der Extension zurückgegeben. In medatixx wird er als Button "Videosprechstunde öffnen" im Terminplan und im Termindialog angezeigt.

Verfügbarkeit: medatixx: noch nicht verfügbar. x.isynet: noch nicht verfügbar.

Invocations

URL: [base]/Schedule/[id]/$book

Parameters (In)

NameCardinalityTypeDocumentation
appointment1..1Appointment

The data of the appointment to be booked.

Return Values (Out)

NameCardinalityTypeBindingDocumentation
id1..1id

The id of the created appointment

state1..1codeAppointmentStatus (required)

The state of the appointment after being booked. If the configuration is to auto-approve appointments the state is booked if approval is needed the state is pending.

Input Profil

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
resourceΣ C1..1Mxx_HealthHub_Appointment
partΣ0..0see (parameter)

Output Profil

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1string
valueAddressAddress
valueAgeAge
valueAnnotationAnnotation
valueAttachmentAttachment
valueBase64Binarybase64Binary
valueBooleanboolean
valueCanonicalcanonical
valueCodecode
valueCodeableConceptCodeableConcept
valueCodingCoding
valueContactDetailContactDetail
valueContactPointContactPoint
valueContributorContributor
valueCountCount
valueDataRequirementDataRequirement
valueDatedate
valueDateTimedateTime
valueDecimaldecimal
valueDistanceDistance
valueDosageDosage
valueDurationDuration
valueExpressionExpression
valueHumanNameHumanName
valueIdid
valueIdentifierIdentifier
valueInstantinstant
valueIntegerinteger
valueMarkdownmarkdown
valueMetaMeta
valueMoneyMoney
valueOidoid
valueParameterDefinitionParameterDefinition
valuePeriodPeriod
valuePositiveIntpositiveInt
valueQuantityQuantity
valueRangeRange
valueRatioRatio
valueReferenceReference
valueRelatedArtifactRelatedArtifact
valueSampledDataSampledData
valueSignatureSignature
valueStringstring
valueTimetime
valueTimingTiming
valueTriggerDefinitionTriggerDefinition
valueUnsignedIntunsignedInt
valueUriuri
valueUrlurl
valueUsageContextUsageContext
valueUuiduuid
resourceΣ C0..1Resource
partΣ0..*see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
valueIdid
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
valueCodecode
resourceΣ C0..0Resource
partΣ0..0see (parameter)

Verschieben eines Termins

Ein bereits gebuchter Termin kann verschoben bzw. geändert werden. Dabei ist es jedoch nicht möglich, die Patienteninformationen zum Termin zu ändern. Etwaige Änderungen an den patientenbezogenen Feldern werden beim Verarbeiten der Anfrage ignoriert.

Als Appointment.status darf beim Ändern eines Termins nur proposed angegeben werden. Für Practitioner und Assistant im Appointment (Appointment.participant.status) darf als Status nur needs-action angegeben werden. Wenn Termine anhand der Konfiguration automatisch angenommen werden (Schedule.extension:mxxHealthHubAppointmentsRequireConfirmation ist true) ist der Status nach der Änderung booked, ist eine Bestätigung durch die Praxis erforderlich ist der Status pending. In diesem Fall kann das Partnersystem Benachrichtigungen erhalten, um bei Bestätigung des Termins durch die Praxis informiert zu werden.

Wichtig: Ein Termin kann nur von Partnersystemen verschoben werden, die in der Partnersystemregistrierung Device.extension:mxxHealthHubSettingsDisplayOptions.extension:Appointment.extension:Show mit true angegeben haben.

Invocations

URL: [base]/Schedule/[id]/$change

Parameters (In)

NameCardinalityTypeDocumentation
appointment1..1Appointment

The data of the appointment to be booked. Must include the Appointment.id field. Changes to patient data can not be performed and any changes will be ignored.

Return Values (Out)

NameCardinalityTypeBindingDocumentation
id1..1id

The id of the changed appointment. This will differ from the original appointment id.

state1..1codeAppointmentStatus (required)

The state of the appointment after being changed. If the configuration is to auto-approve appointments the state is booked if approval is needed the state is pending.

Input Profil

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
resourceΣ C1..1Mxx_HealthHub_Appointment
partΣ0..0see (parameter)

Output Profil

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1string
valueAddressAddress
valueAgeAge
valueAnnotationAnnotation
valueAttachmentAttachment
valueBase64Binarybase64Binary
valueBooleanboolean
valueCanonicalcanonical
valueCodecode
valueCodeableConceptCodeableConcept
valueCodingCoding
valueContactDetailContactDetail
valueContactPointContactPoint
valueContributorContributor
valueCountCount
valueDataRequirementDataRequirement
valueDatedate
valueDateTimedateTime
valueDecimaldecimal
valueDistanceDistance
valueDosageDosage
valueDurationDuration
valueExpressionExpression
valueHumanNameHumanName
valueIdid
valueIdentifierIdentifier
valueInstantinstant
valueIntegerinteger
valueMarkdownmarkdown
valueMetaMeta
valueMoneyMoney
valueOidoid
valueParameterDefinitionParameterDefinition
valuePeriodPeriod
valuePositiveIntpositiveInt
valueQuantityQuantity
valueRangeRange
valueRatioRatio
valueReferenceReference
valueRelatedArtifactRelatedArtifact
valueSampledDataSampledData
valueSignatureSignature
valueStringstring
valueTimetime
valueTimingTiming
valueTriggerDefinitionTriggerDefinition
valueUnsignedIntunsignedInt
valueUriuri
valueUrlurl
valueUsageContextUsageContext
valueUuiduuid
resourceΣ C0..1Resource
partΣ0..*see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
valueIdid
resourceΣ C0..0Resource
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
valueCodecode
resourceΣ C0..0Resource
partΣ0..0see (parameter)

Stornieren eines Termins

Das Stornieren eines Termins erfolgt über den DELETE-Endpunkt für die Ressource Mxx_HealthHub_Appointment. Dabei wird die Id verwendet, die beim Erzeugen des Termins zurückgegeben wurde.

URL: DELETE [base]/Appointment/[Id]

Abrufen eines Termins

Verfügbarkeit: ab IHS 2.6.0 · medatixx ab 1.96 · x.isynet: noch nicht verfügbar.

Ein einzelner Termin kann anhand seiner Id gelesen werden. Dabei wird die Id verwendet, die beim Buchen des Termins zurückgegeben wurde (Appointment.id).

URL: GET [base]/Appointment/[Id]

Das Ergebnis ist eine Mxx_HealthHub_Appointment-Ressource. Existiert kein Termin mit der angegebenen Id, wird mit 404 Not Found (OperationOutcome) geantwortet.

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
mxxHealthHubPartnerReferenceC0..1Extension(Reference(Mxx_HealthHub_PartnerSystem))
mxxHealthHubVideoConsultationUriC0..1Extension(url)
modifierExtension?! C0..*Extension
identifierΣ0..0Identifier
statusΣ ?!1..1codeBinding
cancelationReasonΣ0..0CodeableConcept
serviceCategoryΣ0..0CodeableConcept
serviceTypeΣ0..1Mxx_HealthHub_HealthcareService
specialtyΣ0..0CodeableConceptBinding
appointmentTypeΣ0..0CodeableConceptBinding
reasonCodeΣ0..0CodeableConceptBinding
reasonReferenceC0..0Reference(Condition | ImmunizationRecommendation | Observation | Procedure)
priority0..0unsignedInt
description0..0string
supportingInformationC0..0Reference(Resource)
startΣ1..1instant
endΣ1..1instant
minutesDuration0..0positiveInt
slotC0..0Reference(Slot)
created0..1dateTime
comment0..1string
patientInstruction0..0string
basedOnC0..0Reference(ServiceRequest)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
typeΣ0..*CodeableConceptBinding
actorΣ C0..1Reference(Device | HealthcareService | Location | Patient | Practitioner | PractitionerRole | RelatedPerson)
requiredΣ0..1codeBinding
statusΣ1..1codeBinding
periodC0..1Period
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
id0..1string
extensionC0..*Extension
id0..1string
extensionC0..*Extension
systemΣ1..1uriFixed Value
versionΣ0..1string
codeΣ1..1codeFixed Value
displayΣ0..0string
userSelectedΣ0..0boolean
textΣ0..0string
id0..1string
extensionC0..*Extension
referenceΣ C1..1string
typeΣ0..0uriBinding
identifierΣ0..0Identifier
id0..1string
mxxHealthHubMailNameC0..*Extension(string)
value0..1System.String
requiredΣ0..0codeBinding
statusΣ1..1codeBinding
periodC0..0Period
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
id0..1string
extensionC0..*Extension
id0..1string
extensionC0..*Extension
systemΣ1..1uriFixed Value
versionΣ0..1string
codeΣ1..1codeFixed Value
displayΣ0..0string
userSelectedΣ0..0boolean
textΣ0..0string
id0..1string
extensionC0..*Extension
referenceΣ C1..1string
typeΣ0..0uriBinding
identifierΣ0..0Identifier
id0..1string
mxxHealthHubMailNameC0..*Extension(string)
value0..1System.String
requiredΣ0..0codeBinding
statusΣ1..1codeBinding
periodC0..0Period
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
id0..1string
extensionC0..*Extension
id0..1string
extensionC0..*Extension
systemΣ1..1uriFixed Value
versionΣ0..1string
codeΣ1..1codeFixed Value
displayΣ0..0string
userSelectedΣ0..0boolean
textΣ0..0string
id0..1string
extensionC0..*Extension
referenceΣ C1..1string
typeΣ0..0uriBinding
identifierΣ0..0Identifier
displayΣ0..0string
requiredΣ0..0codeBinding
statusΣ1..1codeBindingFixed Value
periodC0..0Period
requestedPeriodC0..0Period

Abrufen von Terminen für einen Patient

Über eine Suche auf die Appointment-Ressource können alle Termine eines Patienten in einem Zeitraum abgerufen werden. Weitere Kombinationen von Suchparametern werden aktuell nicht unterstützt.

URL: POST [base]/Appointment/_search
patient=Patient/[Id]&date=ge[startDate]&date=le[endDate]

Das Datum muss dabei im Format yyyy-MM-dd angegeben werden.

Benachrichtigungen zu Terminen erhalten

Verfügbarkeit: Topic-Subscription-Modell ab IHS 2.3.1 · medatixx 1.95-U1 · x.isynet 26.3-QU. Das Topic appointment-moved ab IHS 2.5.0 · medatixx 1.96.

Nach der Buchung eines Termins kann das Partnersystem Benachrichtigungen über den Termin aus Sicht der Praxis erhalten.

Um diese Benachrichtigungen zu erhalten, muss eine Mxx_HealthHub_AppointmentModuleSubscription angelegt werden, in der eine REST-WebHook-URL angegeben wird, an die Benachrichtigungen über Termine gesendet werden.

Die folgenden Änderungen an Terminen werden aktuell unterstützt:

Concepts

This code system https://fhir.medatixx.de/HealthHub/CodeSystem/Mxx_HealthHub_CS_AppointmentSubscriptionTopic defines the following codes:

CodeDisplayDefinition
https://fhir.medatixx.de/HealthHub/SubscriptionTopic/appointment-confirmedAppointment ConfirmedA subscription topic for when an appointment is confirmed. The payload will be a Mxx_HealthHub_AppointmentSubscriptionNotification. The body of the notification will not be end-to-end-encrypted, as it only contains the id and no data.
https://fhir.medatixx.de/HealthHub/SubscriptionTopic/appointment-deniedAppointment DeniedA subscription topic for when an appointment is denied. The payload will be a Mxx_HealthHub_AppointmentSubscriptionNotification. The body of the notification will not be end-to-end-encrypted, as it only contains the id and no data.
https://fhir.medatixx.de/HealthHub/SubscriptionTopic/appointment-deletedAppointment DeletedA subscription topic for when an appointment is deleted. The payload will be a Mxx_HealthHub_AppointmentSubscriptionNotification. The body of the notification will not be end-to-end-encrypted, as it only contains the id and no data.
https://fhir.medatixx.de/HealthHub/SubscriptionTopic/appointment-movedAppointment MovedA subscription topic for when an appointment is moved to a different time slot (StartDateTime and/or EndDateTime changed) while the appointment ID remains unchanged. The payload will be a Mxx_HealthHub_AppointmentSubscriptionNotification. The body of the notification will not be end-to-end-encrypted, as it only contains the id and no data.

URL: POST [base]/Subscription

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
extensionC0..*Extension
modifierExtension?! C0..*Extension
statusΣ ?!1..1codeBinding
contactΣ C0..0ContactPoint
endΣ0..1instant
reasonΣ1..1string
criteriaΣ1..1stringBinding
errorΣ0..1string
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
typeΣ1..1codeBindingFixed Value
endpointΣ1..1url
payloadΣ1..1codeBindingFixed Value
headerΣ1..*string

Die im Location-Header zurückgegebene Id der Subscription kann vom Partnersystem verwendet werden, um die Subscription nachträglich zu bearbeiten (URL: PUT [base]/Subscription/[Id]) oder zu löschen (URL: DELETE [base]/Subscription/[Id]).

Fällt eine Änderung an, für die eine Subscription hinterlegt wird, wird eine POST-Message an den hinterlegten Endpunkt gesendet. Der Body-Content wird im Beschreibungstext des jeweiligen Events beschrieben. Gibt der aufgerufene Endpunkt keinen Erfolgsstatuscode (200 OK) zurück oder ist nicht erreichbar, versucht die Praxissoftware den Endpunkt unter Verwendung eines Exponential-Backoff-Verfahrens erneut zu erreichen. Die genaue Anzahl der Versuche wird unter Beobachtung der Protokolle angepasst und ist daher nicht spezifiziert. Kann die Benachrichtigung nach dieser Anzahl der Versuche nicht erfolgreich versendet werden, setzt die Praxissoftware den Status der Subscription auf Error.

Das Partnersystem kann nach Ausfall oder, wenn festgestellt wird, dass die Subscription in einen Fehler gelaufen ist (Abruf der Subscription mittels GET [base]/Subscription/[Id]) die angefallenen Benachrichtigungen abgerufen indem die Operation $missedNotificationsauf der Subscription aufgerufen wird.

Invocations

URL: [base]/Subscription/[id]/$missedNotifications

Parameters (In)

NameCardinalityTypeDocumentation
since1..1dateTime

Since when the notifications should be returned in the result

Return Values (Out)

NameCardinalityTypeDocumentation
missedNotification0..*base64Binary

Each notification that was missed since the given time. Contains exactly what would have been in the POST-Request to the endpoint defined in the subscription as base64Binary.

Used to retrieve missed notifications on a subscription when e.g. the partner system was not reachable.

Benachrichtigungen über Status-Änderungen eines Termins erhalten

⚠️️ Obsolet: Bitte Benachrichtigungen zu Terminen erhalten verwenden, diese Subscription wird in der nächsten Major-Version dieser API entfernt.

Nach der Buchung eines Termins kann das Partnersystem Benachrichtigungen über den Appointment-Status aus Sicht der Praxis erhalten (Appointment.participant.status für alle Practitioner und Assistants im Appointment), wenn der beim Buchen zurückgegebene Status pending ist.

Um diese Benachrichtigungen zu erhalten, muss eine Mxx_HealthHub_AppointmentResponseSubscription angelegt werden, in der eine REST-WebHook-URL angegeben wird, an die der neue Status des Termins in Form einer Mxx_HealthHub_AppointmentResponse gesendet wird.

URL: POST [base]/Subscription

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
extensionC0..*Extension
modifierExtension?! C0..*Extension
statusΣ ?!1..1codeBinding
contactΣ C0..0ContactPoint
endΣ0..1instant
reasonΣ1..1string
criteriaΣ1..1stringFixed Value
errorΣ0..1string
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
typeΣ1..1codeBindingFixed Value
endpointΣ1..1url
payloadΣ1..1codeBindingFixed Value
headerΣ1..*string

Die im Location-Header zurückgegebene Id der Subscription kann vom Partnersystem verwendet werden, um die Subscription nachträglich zu bearbeiten (URL: POST [base]/Subscription/[Id]) oder zu löschen (URL: DELETE [base]/Subscription/[Id]).

Ändert sich der Status eines Termins aus Sicht der Praxissoftware und das Partnersystem hat eine Subscription angelegt, wird der in der Subscription angelegte REST-Endpunkt als POST-Request aufgerufen, wobei im Body des Requests die Mxx_HealthHub_AppointmentResponse als application/fhir+json enthalten ist. Die Zustellung erfolgt über HTTPS (Transportverschlüsselung); die für Partner→Praxissoftware-Anfragen übliche Ende-zu-Ende-Verschlüsselung (PKCS#7) wird bei Callbacks nicht verwendet. Zur Authentifizierung wird der in der Subscription (Subscription.channel.header) hinterlegte Authorization-Header gesendet. Gibt der aufgerufene Endpunkt keinen Erfolgsstatuscode (200 OK) zurück oder ist nicht erreichbar, versucht die Praxissoftware den Endpunkt unter Verwendung eines Exponential-Backoff-Verfahrens erneut zu erreichen. Die genaue Anzahl der Versuche wird unter Beobachtung der Protokolle angepasst und ist daher nicht spezifiziert. Kann die Benachrichtigung nach dieser Anzahl der Versuche nicht erfolgreich versendet werden, setzt die Praxissoftware den Status der Subscription auf Error.

Das Partnersystem kann nach Ausfall oder, wenn festgestellt wird, dass die Subscription in einen Fehler gelaufen ist (Abruf der Subscription mittels GET [base]/Subscription/[Id]) die angefallenen Benachrichtigungen abgerufen indem eine Suche auf AppointmentResponse ausgeführt wird, wobei der Parameter _since verwendet werden muss, um auf den Zeitraum des Ausfalls einzuschränken.

URL: POST [base]/AppointmentResponse/_search
_since=yyyy-MM-ddTHH:mm:ss

Das Ergebnis ist ein Bundle aller Mxx_HealthHub_AppointmentResponse, die in diesem Zeitraum versendet wurden.

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
extensionC0..*Extension
modifierExtension?! C0..*Extension
identifierΣ0..0Identifier
appointmentΣ C1..1Reference(Appointment)
start0..0instant
end0..0instant
id0..1string
extensionC0..*Extension
id0..1string
extensionC0..*Extension
systemΣ1..1uriFixed Value
versionΣ0..1string
codeΣ1..1codeFixed Value
displayΣ0..1string
userSelectedΣ0..1boolean
textΣ0..0string
actorΣ C0..0Reference(Device | HealthcareService | Location | Patient | Practitioner | PractitionerRole | RelatedPerson)
participantStatusΣ ?!1..1codeBinding
comment0..0string