Medication

Das Modul Medication beinhaltet alle Ressourcen und Interaktionen zu Verordnungen.

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

Verfügbarkeit: Rezept-Vorschlag ab IHS 1.0 · medatixx ab 1.92 · x.isynet ab 26.2-QU. Abweichungen sind bei der jeweiligen Funktion vermerkt.

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

Anlage eines Rezepts vorschlagen

Vorschlagen von Verordnungen aus der Partnersoftware. Der Vorschlag wird in der Verordnungssoftware der Praxissoftware verarbeitet. Da die Verordnung ein komplexer und stark regulierter Vorgang ist, kann die Anlage einer Verordnung immer nur als Vorschlag gesehen werden, die durch einen Anwender der Praxissoftware übernommen wird.

Ob die Verordnung direkt als Freitextverordnung zur Übernahme vorgeschlagen wird oder eine Aufgabe mit dem vorgeschlagenen Text angelegt wird, ist ein Implementierungsdetail der Praxissoftware.

Um den Vorschlag zu übermitteln, wird die $propose-Operation für den Typ Mxx_HealthHub_MedicationRequest verwendet.

Invocations

URL: [base]/MedicationRequest/$propose

Parameters (In)

NameCardinalityTypeDocumentation
resource0..1MedicationRequest

Einzelner Medikationsvorschlag als MedicationRequest. Entweder Freitext (medicationCodeableConcept.text) oder PZN-codiert (medicationReference auf contained Mxx_HealthHub_Medication). Genau einer von 'resource' oder 'bundle' muss angegeben werden.

bundle0..1Bundle

Batch-Medikationsvorschlag als collection-Bundle mit 1-20 MedicationRequest-Einträgen (Mxx_HealthHub_ProposeMedicationBundle). Genau einer von 'resource' oder 'bundle' muss angegeben werden.

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
resourceΣ C1..1Mxx_HealthHub_MedicationRequest
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
resourceΣ C1..1Mxx_HealthHub_ProposeMedicationBundle
partΣ0..0see (parameter)

Mxx_HealthHub_MedicationRequest

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..1Resource
extensionC0..*Extension
modifierExtension?! C0..*Extension
identifier0..0Identifier
statusΣ ?!1..1codeBindingFixed Value
statusReason0..0CodeableConcept
intentΣ ?!1..1codeBindingFixed Value
category0..0CodeableConcept
priorityΣ0..0codeBinding
doNotPerformΣ ?!0..0boolean
id0..1string
extensionC0..*Extension
codingΣ0..0Coding
textΣ1..1string
medicationReferenceΣ0..1Reference(Mxx_HealthHub_Medication)
id0..1string
extensionC0..*Extension
referenceΣ C0..1string
typeΣ0..0uriBinding
identifierΣ0..1Mxx_HealthHub_IntermediatePatientIdentifier
displayΣ0..0string
encounterC0..0Reference(Encounter)
supportingInformationC0..0Reference(Resource)
authoredOnΣ0..0dateTime
id0..1string
extensionC0..*Extension
referenceΣ C0..1string
typeΣ0..0uriBinding
identifierΣ0..0Identifier
displayΣ0..0string
performerC0..0Reference(CareTeam | Device | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson)
performerTypeΣ0..0CodeableConcept
recorderC0..0Reference(Practitioner | PractitionerRole)
id0..1string
extensionC0..*Extension
codingΣ0..0Coding
textΣ1..1string
reasonReferenceC0..0Reference(Condition | Observation)
instantiatesCanonicalΣ0..0canonical
instantiatesUriΣ0..0uri
basedOnΣ C0..0Reference(CarePlan | ImmunizationRecommendation | MedicationRequest | ServiceRequest)
groupIdentifierΣ0..1Identifier
courseOfTherapyType0..0CodeableConcept
insuranceC0..0Reference(ClaimResponse | Coverage)
id0..1string
extensionC0..*Extension
timeΣ0..0dateTime
textΣ1..1markdown
dosageInstruction0..0Dosage
priorPrescriptionC0..0Reference(MedicationRequest)
detectedIssueC0..0Reference(DetectedIssue)
eventHistoryC0..0Reference(Provenance)

PZN-Codierung

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

Ab v1.5.0 können Medikamente nicht nur als Freitext, sondern auch PZN-codiert vorgeschlagen werden. Dazu wird statt medicationCodeableConcept.text der Pfad medicationReference verwendet, der auf eine contained Mxx_HealthHub_Medication-Instanz zeigt. Die contained Medication muss mindestens einen Coding-Eintrag mit system = http://fhir.de/CodeSystem/ifa/pzn enthalten (Invariante mr-pzn-required-if-ref). Ein reiner Freitext-Vorschlag ohne PZN bleibt weiterhin gültig.

Roundtrip: Medikamente können per SearchMedicationStatements aus dem Medikationsplan des Patienten gelesen, anhand der PZN identifiziert und anschliessend mit $propose (PZN-Pfad) als neuer Rezeptvorschlag zurückgespielt werden.

Batch-Vorschlag (mehrere Medikamente pro Aufruf)

Verfügbarkeit: geplant (Artefakte 1.5.0); noch nicht in medatixx 1.98 / IHS 2.10.0 verfügbar. x.isynet: noch nicht verfügbar.

Statt eines einzelnen MedicationRequest kann ein Mxx_HealthHub_ProposeMedicationBundle (collection, 1-20 Einträge) als Parameter bundle übermittelt werden. Genau einer der beiden Parameter (resource für Einzelvorschlag, bundle für Batch) darf pro Aufruf angegeben sein (XOR-Invariante propose-medication-xor).

Bundle.identifier identifiziert die gesamte Übertragung/den Batch. Die fachliche Rezeptzugehörigkeit der einzelnen Vorschläge wird unabhängig davon über MedicationRequest.groupIdentifier ausgedrückt; sie kann je Eintrag verschieden sein und wird nicht automatisch generiert. Die Zusammenführung von Vorschlägen anhand groupIdentifier ist nur innerhalb eines Batch-Aufrufs garantiert. Ob mehrere Einträge tatsächlich auf einem Rezept landen, entscheidet die Verschreibungslogik der Praxissoftware (z.B. Höchstzahl pro Rezept, BtM-Medikamente nicht mit anderen kombinierbar).

Die Batch-Verarbeitung ist all-or-nothing: enthält der Batch eine PZN, die im PVS-Artikelstamm nicht gefunden wird, wird der gesamte Batch abgelehnt (HTTP 422). Der 422 wird als OperationOutcome zurückgegeben, mit je einem issue pro fehlgeschlagenem Eintrag; issue.expression verweist auf den auslösenden Bundle.entry[n] und issue.diagnostics nennt die betroffene PZN. Die erfolgreiche Annahme eines Batches wird mit 204 No Content bestätigt.

Medikation des Patienten lesen

Verfügbarkeit: ab IHS 2.8.0 · medatixx ab 1.97 · x.isynet: noch nicht verfügbar

Sucht den Medikationsplan eines Patienten (aktuelle und historische Medikationen) als Mxx_HealthHub_MedicationStatement-Ressourcen. Die Suchparameter werden als FHIR Parameters-Ressource (camelCase) übergeben - konsistent mit den implementierten IHS-Operationen (z.B. SearchAvailableSlots). Enthält PZN- und (sofern vom PVS verfügbar) ATC-Codierung sowie Dosierungsangaben in der deutschen Schema-Notation (z.B. 1-0-1-0). Unterstützt das Filtern nach Status (active, completed, stopped), PZN, ATC-Präfix und einem Zeitraum auf effectivePeriod.start (startDate/endDate).

Das Ergebnis ist ein Bundle mit Bundle.type = searchset, das Mxx_HealthHub_MedicationStatement-Ressourcen enthält.

Invocations

URL: [base]/MedicationStatement/$searchMedicationStatements

This operation does NOT change content

Parameters (In)

NameCardinalityTypeBindingDocumentation
subject1..1Reference(Mxx_HealthHub_Patient)

Patient whose medication statements are searched, as a reference in the form Patient/{id} (the PVS-internal patient identifier).

startDate0..1date

Lower bound (inclusive) on MedicationStatement.effectivePeriod.start (ISO 8601, YYYY-MM-DD).

endDate0..1date

Upper bound (inclusive) on MedicationStatement.effectivePeriod.start (ISO 8601, YYYY-MM-DD).

status0..*codeMxx_HealthHub_VS_MedicationStatementStatus (required)

Filter by medication status. Repeating parameter; multiple values use OR logic. Valid values: active, completed, stopped. As the operation is invoked with a FHIR Parameters resource, each value MUST be supplied as its own Parameters.parameter entry named 'status' (e.g. one entry with valueCode = completed and one entry with valueCode = stopped); a single comma-separated value would not match the required ValueSet. When omitted, only current medications ('active') are returned; historical medications are requested explicitly by supplying status entries for 'completed' and 'stopped'.

pzn0..1string

Filter by PZN (Pharmazentralnummer). Exact match, 8-digit code with leading zeros.

atc0..1string

Filter by ATC code. Prefix match allows searching by therapeutic class (e.g., 'B01' for all antithrombotics). Case-insensitive.

_count0..1integer

Results per page. Default: 100, maximum: 500.

_offset0..1integer

Starting result index (0-based) for pagination.

Return Values (Out)

NameCardinalityTypeDocumentation
return1..1Bundle

A FHIR Bundle of type searchset containing matching Mxx_HealthHub_MedicationStatement resources. Sorted by effectivePeriod.start (prescription date) descending, most recent first; entries without a start date are ordered last.

Mxx_HealthHub_MedicationStatement

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
extensionC0..*Extension
modifierExtension?! C0..*Extension
identifierΣ0..0Identifier
basedOnΣ C0..0Reference(CarePlan | MedicationRequest | ServiceRequest)
partOfΣ C0..0Reference(MedicationAdministration | MedicationDispense | MedicationStatement | Observation | Procedure)
statusΣ ?!1..1codeBinding
statusReason0..0CodeableConcept
categoryΣ0..0CodeableConceptBinding
medicationCodeableConceptCodeableConcept
medicationReferenceReference(Mxx_HealthHub_Medication)
subjectΣ C1..1Reference(Mxx_HealthHub_Patient)
contextΣ C0..0Reference(Encounter | EpisodeOfCare)
effectivePeriodPeriod
dateAssertedΣ0..0dateTime
informationSourceC0..0Reference(Organization | Patient | Practitioner | PractitionerRole | RelatedPerson)
derivedFromC0..0Reference(Resource)
id0..1string
extensionC0..*Extension
id0..1string
extensionC0..*Extension
systemΣ0..1uriFixed Value
versionΣ0..1string
codeΣ0..1code
displayΣ0..1string
userSelectedΣ0..1boolean
textΣ0..1string
reasonReferenceC0..0Reference(Condition | DiagnosticReport | Observation)
note0..*Annotation
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
sequenceΣ0..1integer
textΣ0..1string
additionalInstructionΣ0..*CodeableConcept
patientInstructionΣ0..1string
timingΣ0..1Timing
asNeededBooleanboolean
asNeededCodeableConceptCodeableConcept
siteΣ0..1CodeableConcept
routeΣ0..1CodeableConcept
methodΣ0..1CodeableConcept
id0..1string
extensionC0..*Extension
typeΣ0..1CodeableConcept
doseQuantitySimpleQuantity
doseRangeRange
rateQuantitySimpleQuantity
rateRangeRange
rateRatioRatio
maxDosePerPeriodΣ C0..1Ratio
maxDosePerAdministrationΣ C0..1SimpleQuantity
maxDosePerLifetimeΣ C0..1SimpleQuantity