Operation API: AMTS-rZI Beobachtungen hinzufügen

Die Operation $add-amts-observation ermöglicht das Hinzufügen oder Setzen relevanter medizinischer Beobachtungsdaten im Medication Service. Diese Operation wird im Kontext von Arzneimitteltherapiesicherheitsrelevante Zusatzinformationen (AMTS-rZI) verwendet. Der Zweck der Operation $add-amts-observation besteht darin, medizinische Beobachtungsdaten wie Körpergröße, Körpergewicht, Kreatininwerte, Schwangerschaftsstatus, Stillstatus, geschätztes Entbindungsdatum und glomeruläre Filtrationsrate zu erfassen. Diese Informationen sind für die Bewertung und Planung der Medikation eines PaVersicherten angedacht.

Referenzen werden bei der Operation nicht berücksichtigt. Falls eine Ressource-ID übermittelt wird, MUSS diese vom Medication Service neu gesetzt werden und danach im Zusammenspiel mit dem Medication Service verwendet werden.

Die Operation akzeptiert mehrere Eingabeparameter, darunter:

  • bodyHeight: Beobachtung der Körpergröße.
  • bodyWeight: Beobachtung des Körpergewichts.
  • creatinine: Beobachtung der Kreatininwerte.
  • pregnancyStatus: Beobachtung des Schwangerschaftsstatus.
  • breastfeedingStatus: Beobachtung des Stillstatus.
  • estimatedDateOfDelivery: Geschätztes Entbindungsdatum.
  • glomerularFiltrationRate: Beobachtung der glomerulären Filtrationsrate.

OperationDefinition

Operation Definition: Add AMTS-rZI Observations

Geschäftslogik

Herkunftsnachweis

Der Herkunftsnachweis für die Werte aus den Input-Parametern (performer, enterer, author, unconfirmedAuthor und informant) MUSS in einer Provenance-Instanz mit dem Profil EPAProvenance gespeichert werden. Der Wert für den target Parameter MUSS auf die spezifische Version der Ressourceninstanz verweisen.

Detaillierte Informationen zur Durchführung der Erstellung der Provenance-Instanz

Überprüfung der Telematik-ID bei einem Schreibvorgang

Jeder Lese- und Schreibvorgang erfordert die Authentifizierung der Leistungserbringerinstitution mittels OpenID Connect. Das signierte ID-Token des Identity Providers (IDP-Dienst) MUSS die Telematik-ID des zugreifenden Nutzers enthalten. Bei einem Schreibvorgang MUSS die Übereinstimmung der Telematik-ID des Nutzers überprüft und sichergestellt werden.

Überprüfung der Aktenidentität bei einem Schreibvorgang

Jeder Schreibvorgang in das Aktenkonto des Versicherten MUSS durch den Medciation Service dahingehend geprüft werden, dass der durch den HTTP Header angegebene Parameter x-insurantid (Health Record Identifier) mit der per KVNR referenzierten Identität (Logical Reference in Element subject bzw. patient) in der zu schreibenden Instanz der FHIR-Ressource übereinstimmt.

Voraussetzungen

Dem Medication Service MÜSSEN zur Auswertung in Operationen für jede Aktivität die folgenden Informationen bereitstehen:

  • Name des Nutzers
  • Nutzergruppe/Rolle ((profession-)oid)
  • Kennung (Telematik-ID oder KVNR)
  • Hinweis auf eine gültige Befugnis des aktuellen Benutzers (requestor)

HTTP Header-Parameter

Ein ePA-Client MUSS die folgenden HTTP Header bei einer Anfrage an den Medication Service setzen:

Name Anforderung Datentyp Beschreibung
x-insurantid MUSS String Health Record Identifier
x-useragent KANN String User Agent Information
X-Request-ID MUSS String UUID der Nachricht

Wiederholungsintervalle

Die folgenden Wiederholungsintervalle werden im Falle einer Fehlerantwort definiert:

  • '409' Conflict (statusMismatch)
    • etwa 24 Stunden
  • '500' Internal Error
    • etwa 10 Minuten

Erlaubte Nutzergruppen

professionOID
oid_versicherter
oid_praxis_arzt
oid_krankenhaus
oid_institution
oid_krankenhaus
oid_institution-vorsorge-reha
oid_zahnarztpraxis
oid_praxis_psychotherapeut
oid_institution-oegd
oid_öffentliche_apotheke
oid_institution-pflege
oid_institution-geburtshilfe
oid_praxis-physiotherapeut
oid_institution-arbeitsmedizin

Interaktion (Observation/$add-amts-observation`)

POST[base]/Observation/$add-amts-observation

OperationId: addAMTSObservation_MedicationSvc

Beispielanfrage

{
    "resourceType": "Parameters",
    "id": "example-epa-op-add-observation-input-parameters-2",
    "meta": {
        "profile":  [
            "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-add-amts-observation-in-parameters"
        ]
    },
    "parameter":  [
        {
            "name": "performer",
            "part":  [
                {
                    "name": "organization",
                    "resource": {
                        "resourceType": "Organization",
                        "id": "be51e0d2-783d-4e21-b16b-1a4cd7403515",
                        "meta": {
                            "tag":  [
                                {
                                    "system": "https://gematik.de/fhir/directory/CodeSystem/Origin",
                                    "code": "ldap"
                                }
                            ],
                            "profile":  [
                                "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"
                            ]
                        },
                        "identifier":  [
                            {
                                "system": "https://gematik.de/fhir/sid/telematik-id",
                                "value": "9-2.58.00000040"
                            }
                        ],
                        "active": true,
                        "type":  [
                            {
                                "coding":  [
                                    {
                                        "code": "1.2.276.0.76.4.58",
                                        "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID",
                                        "display": "Betriebsstätte gematik"
                                    }
                                ]
                            }
                        ],
                        "name": "gematik GmbH",
                        "alias":  [
                            "gematik"
                        ],
                        "address":  [
                            {
                                "text": "gematik GmbH\nFriedrichstr. 136, \n10117 Berlin",
                                "line":  [
                                    "Friedrichstr. 136"
                                ],
                                "city": "Berlin",
                                "district": "Mitte",
                                "state": "Berlin",
                                "postalCode": "10117",
                                "country": "DE"
                            }
                        ],
                        "contact":  [
                            {
                                "purpose": {
                                    "coding":  [
                                        {
                                            "code": "ADMIN",
                                            "system": "http://terminology.hl7.org/CodeSystem/contactentity-type"
                                        }
                                    ]
                                },
                                "name": {
                                    "text": "gematik ITSM"
                                },
                                "telecom":  [
                                    {
                                        "system": "email",
                                        "value": "betrieb@gematik.de"
                                    }
                                ]
                            }
                        ]
                    }
                }
            ]
        },
        {
            "name": "bodyWeight",
            "resource": {
                "resourceType": "Observation",
                "id": "82a464e0-7c29-4006-9950-026b1ba83dbd",
                "meta": {
                    "versionId": "1",
                    "lastUpdated": "2025-07-23T16:22:33.244Z",
                    "profile":  [
                        "https://gematik.de/fhir/epa/StructureDefinition/epa-observation-body-weight"
                    ]
                },
                "category":  [
                    {
                        "coding":  [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                "code": "vital-signs"
                            }
                        ]
                    }
                ],
                "code": {
                    "coding":  [
                        {
                            "system": "http://loinc.org",
                            "code": "29463-7",
                            "version": "2.77",
                            "display": "Body weight"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "27113001",
                            "version": "http://snomed.info/sct/11000274103/version/20240515",
                            "display": "Body weight (observable entity)"
                        }
                    ]
                },
                "valueQuantity": {
                    "system": "http://unitsofmeasure.org",
                    "value": 81.2,
                    "unit": "kg",
                    "code": "kg"
                },
                "status": "final",
                "subject": {
                    "identifier": {
                        "type": {
                            "coding":  [
                                {
                                    "code": "KVZ10",
                                    "system": "http://fhir.de/CodeSystem/identifier-type-de-basis",
                                    "display": "Krankenversichertennummer"
                                }
                            ]
                        },
                        "value": "X110411319",
                        "system": "http://fhir.de/sid/gkv/kvid-10"
                    }
                },
                "effectiveDateTime": "2025-07-23"
            }
        },
        {
            "name": "creatinine",
            "resource": {
                "resourceType": "Observation",
                "id": "612d18b0-6555-42fb-b286-0cd72a989fad",
                "meta": {
                    "versionId": "1",
                    "lastUpdated": "2025-10-23T16:22:33.244Z",
                    "profile":  [
                        "https://gematik.de/fhir/epa/StructureDefinition/epa-observation-creatinine"
                    ]
                },
                "code": {
                    "coding":  [
                        {
                            "system": "http://loinc.org",
                            "code": "77140-2",
                            "version": "2.77",
                            "display": "Creatinine [Moles/volume] in Serum, Plasma or Blood"
                        }
                    ]
                },
                "valueQuantity": {
                    "system": "http://unitsofmeasure.org",
                    "value": 1.2,
                    "comparator": ">=",
                    "unit": "mg/dL",
                    "code": "mg/dL"
                },
                "status": "final",
                "subject": {
                    "identifier": {
                        "type": {
                            "coding":  [
                                {
                                    "code": "KVZ10",
                                    "system": "http://fhir.de/CodeSystem/identifier-type-de-basis",
                                    "display": "Krankenversichertennummer"
                                }
                            ]
                        },
                        "value": "X110411319",
                        "system": "http://fhir.de/sid/gkv/kvid-10"
                    }
                },
                "effectiveDateTime": "2025-10-23"
            }
        },
        {
            "name": "glomerularFiltrationRate",
            "resource": {
                "resourceType": "Observation",
                "id": "5a056693-8acf-4ab3-b51e-9e45fc66056a",
                "meta": {
                    "versionId": "1",
                    "lastUpdated": "2025-07-23T16:22:33.244Z",
                    "profile":  [
                        "https://gematik.de/fhir/epa/StructureDefinition/epa-observation-gfr"
                    ]
                },
                "code": {
                    "coding":  [
                        {
                            "system": "http://loinc.org",
                            "code": "69405-9",
                            "version": "2.77",
                            "display": "Glomerular filtration rate/1.73 sq M.predicted [Volume Rate/Area] in Serum, Plasma or Blood"
                        }
                    ]
                },
                "subject": {
                    "identifier": {
                        "system": "http://fhir.de/sid/gkv/kvid-10",
                        "type": {
                            "coding":  [
                                {
                                    "code": "KVZ10",
                                    "system": "http://fhir.de/CodeSystem/identifier-type-de-basis",
                                    "display": "Krankenversichertennummer"
                                }
                            ]
                        },
                        "value": "X110411319"
                    }
                },
                "status": "final",
                "effectiveDateTime": "2025-07-23",
                "valueQuantity": {
                    "value": 26,
                    "unit": "#mL/min/1.73_m2",
                    "system": "http://unitsofmeasure.org",
                    "code": "mL/min/{1.73_m2}"
                }
            }
        }
    ]
}
<Parameters xmlns="http://hl7.org/fhir">
    <id value="example-epa-op-add-observation-input-parameters-2" />
    <meta>
        <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-add-amts-observation-in-parameters" />
    </meta>
    <parameter>
        <name value="performer" />
        <part>
            <name value="organization" />
            <resource>
                <Organization>
                    <id value="be51e0d2-783d-4e21-b16b-1a4cd7403515" />
                    <meta>
                        <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" />
                        <tag>
                            <system value="https://gematik.de/fhir/directory/CodeSystem/Origin" />
                            <code value="ldap" />
                        </tag>
                    </meta>
                    <identifier>
                        <system value="https://gematik.de/fhir/sid/telematik-id" />
                        <value value="9-2.58.00000040" />
                    </identifier>
                    <active value="true" />
                    <type>
                        <coding>
                            <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID" />
                            <code value="1.2.276.0.76.4.58" />
                            <display value="Betriebsst&#228;tte gematik" />
                        </coding>
                    </type>
                    <name value="gematik GmbH" />
                    <alias value="gematik" />
                    <address>
                        <text value="gematik GmbH\nFriedrichstr. 136, \n10117 Berlin" />
                        <line value="Friedrichstr. 136" />
                        <city value="Berlin" />
                        <district value="Mitte" />
                        <state value="Berlin" />
                        <postalCode value="10117" />
                        <country value="DE" />
                    </address>
                    <contact>
                        <purpose>
                            <coding>
                                <system value="http://terminology.hl7.org/CodeSystem/contactentity-type" />
                                <code value="ADMIN" />
                            </coding>
                        </purpose>
                        <name>
                            <text value="gematik ITSM" />
                        </name>
                        <telecom>
                            <system value="email" />
                            <value value="betrieb@gematik.de" />
                        </telecom>
                    </contact>
                </Organization>
            </resource>
        </part>
    </parameter>
    <parameter>
        <name value="bodyWeight" />
        <resource>
            <Observation>
                <id value="82a464e0-7c29-4006-9950-026b1ba83dbd" />
                <meta>
                    <versionId value="1" />
                    <lastUpdated value="2025-07-23T16:22:33.244Z" />
                    <profile value="https://gematik.de/fhir/epa/StructureDefinition/epa-observation-body-weight" />
                </meta>
                <status value="final" />
                <category>
                    <coding>
                        <system value="http://terminology.hl7.org/CodeSystem/observation-category" />
                        <code value="vital-signs" />
                    </coding>
                </category>
                <code>
                    <coding>
                        <system value="http://loinc.org" />
                        <version value="2.77" />
                        <code value="29463-7" />
                        <display value="Body weight" />
                    </coding>
                    <coding>
                        <system value="http://snomed.info/sct" />
                        <version value="http://snomed.info/sct/11000274103/version/20240515" />
                        <code value="27113001" />
                        <display value="Body weight (observable entity)" />
                    </coding>
                </code>
                <subject>
                    <identifier>
                        <type>
                            <coding>
                                <system value="http://fhir.de/CodeSystem/identifier-type-de-basis" />
                                <code value="KVZ10" />
                                <display value="Krankenversichertennummer" />
                            </coding>
                        </type>
                        <system value="http://fhir.de/sid/gkv/kvid-10" />
                        <value value="X110411319" />
                    </identifier>
                </subject>
                <effectiveDateTime value="2025-07-23" />
                <valueQuantity>
                    <value value="81.2" />
                    <unit value="kg" />
                    <system value="http://unitsofmeasure.org" />
                    <code value="kg" />
                </valueQuantity>
            </Observation>
        </resource>
    </parameter>
    <parameter>
        <name value="creatinine" />
        <resource>
            <Observation>
                <id value="612d18b0-6555-42fb-b286-0cd72a989fad" />
                <meta>
                    <versionId value="1" />
                    <lastUpdated value="2025-10-23T16:22:33.244Z" />
                    <profile value="https://gematik.de/fhir/epa/StructureDefinition/epa-observation-creatinine" />
                </meta>
                <status value="final" />
                <code>
                    <coding>
                        <system value="http://loinc.org" />
                        <version value="2.77" />
                        <code value="77140-2" />
                        <display value="Creatinine [Moles/volume] in Serum, Plasma or Blood" />
                    </coding>
                </code>
                <subject>
                    <identifier>
                        <type>
                            <coding>
                                <system value="http://fhir.de/CodeSystem/identifier-type-de-basis" />
                                <code value="KVZ10" />
                                <display value="Krankenversichertennummer" />
                            </coding>
                        </type>
                        <system value="http://fhir.de/sid/gkv/kvid-10" />
                        <value value="X110411319" />
                    </identifier>
                </subject>
                <effectiveDateTime value="2025-10-23" />
                <valueQuantity>
                    <value value="1.2" />
                    <comparator value="&gt;=" />
                    <unit value="mg/dL" />
                    <system value="http://unitsofmeasure.org" />
                    <code value="mg/dL" />
                </valueQuantity>
            </Observation>
        </resource>
    </parameter>
    <parameter>
        <name value="glomerularFiltrationRate" />
        <resource>
            <Observation>
                <id value="5a056693-8acf-4ab3-b51e-9e45fc66056a" />
                <meta>
                    <versionId value="1" />
                    <lastUpdated value="2025-07-23T16:22:33.244Z" />
                    <profile value="https://gematik.de/fhir/epa/StructureDefinition/epa-observation-gfr" />
                </meta>
                <status value="final" />
                <code>
                    <coding>
                        <system value="http://loinc.org" />
                        <version value="2.77" />
                        <code value="69405-9" />
                        <display value="Glomerular filtration rate/1.73 sq M.predicted [Volume Rate/Area] in Serum, Plasma or Blood" />
                    </coding>
                </code>
                <subject>
                    <identifier>
                        <type>
                            <coding>
                                <system value="http://fhir.de/CodeSystem/identifier-type-de-basis" />
                                <code value="KVZ10" />
                                <display value="Krankenversichertennummer" />
                            </coding>
                        </type>
                        <system value="http://fhir.de/sid/gkv/kvid-10" />
                        <value value="X110411319" />
                    </identifier>
                </subject>
                <effectiveDateTime value="2025-07-23" />
                <valueQuantity>
                    <value value="26" />
                    <unit value="#mL/min/1.73_m2" />
                    <system value="http://unitsofmeasure.org" />
                    <code value="mL/min/{1.73_m2}" />
                </valueQuantity>
            </Observation>
        </resource>
    </parameter>
</Parameters>

Beispielantwort

{
    "resourceType": "Parameters",
    "id": "example-epa-op-add-observation-output-parameters-2",
    "meta": {
        "profile":  [
            "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-add-amts-observation-out-parameters"
        ]
    },
    "parameter":  [
        {
            "name": "bodyWeight",
            "part":  [
                {
                    "name": "operationOutcome",
                    "resource": {
                        "resourceType": "OperationOutcome",
                        "id": "255002c7-aa1b-4163-bdd4-ede482453cca",
                        "meta": {
                            "profile":  [
                                "https://gematik.de/fhir/epa/StructureDefinition/epa-operation-outcome"
                            ]
                        },
                        "issue":  [
                            {
                                "severity": "information",
                                "code": "informational",
                                "details": {
                                    "coding":  [
                                        {
                                            "code": "MEDICATIONSVC_OPERATION_SUCCESS",
                                            "system": "https://gematik.de/fhir/epa/CodeSystem/epa-operation-outcome-codes-cs",
                                            "display": "Operation Successfully Completed in Medication Service"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                },
                {
                    "name": "bodyWeight",
                    "resource": {
                        "resourceType": "Observation",
                        "id": "82a464e0-7c29-4006-9950-026b1ba83dbd",
                        "meta": {
                            "versionId": "1",
                            "lastUpdated": "2025-07-23T16:22:33.244Z",
                            "profile":  [
                                "https://gematik.de/fhir/epa/StructureDefinition/epa-observation-body-weight"
                            ]
                        },
                        "category":  [
                            {
                                "coding":  [
                                    {
                                        "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                        "code": "vital-signs"
                                    }
                                ]
                            }
                        ],
                        "code": {
                            "coding":  [
                                {
                                    "system": "http://loinc.org",
                                    "code": "29463-7",
                                    "version": "2.77",
                                    "display": "Body weight"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "27113001",
                                    "version": "http://snomed.info/sct/11000274103/version/20240515",
                                    "display": "Body weight (observable entity)"
                                }
                            ]
                        },
                        "valueQuantity": {
                            "system": "http://unitsofmeasure.org",
                            "value": 81.2,
                            "unit": "kg",
                            "code": "kg"
                        },
                        "status": "final",
                        "subject": {
                            "identifier": {
                                "type": {
                                    "coding":  [
                                        {
                                            "code": "KVZ10",
                                            "system": "http://fhir.de/CodeSystem/identifier-type-de-basis",
                                            "display": "Krankenversichertennummer"
                                        }
                                    ]
                                },
                                "value": "X110411319",
                                "system": "http://fhir.de/sid/gkv/kvid-10"
                            }
                        },
                        "effectiveDateTime": "2025-07-23"
                    }
                }
            ]
        },
        {
            "name": "creatinine",
            "part":  [
                {
                    "name": "operationOutcome",
                    "resource": {
                        "resourceType": "OperationOutcome",
                        "id": "255002c7-aa1b-4163-bdd4-ede482453cca",
                        "meta": {
                            "profile":  [
                                "https://gematik.de/fhir/epa/StructureDefinition/epa-operation-outcome"
                            ]
                        },
                        "issue":  [
                            {
                                "severity": "information",
                                "code": "informational",
                                "details": {
                                    "coding":  [
                                        {
                                            "code": "MEDICATIONSVC_OPERATION_SUCCESS",
                                            "system": "https://gematik.de/fhir/epa/CodeSystem/epa-operation-outcome-codes-cs",
                                            "display": "Operation Successfully Completed in Medication Service"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                },
                {
                    "name": "creatinine",
                    "resource": {
                        "resourceType": "Observation",
                        "id": "612d18b0-6555-42fb-b286-0cd72a989fad",
                        "meta": {
                            "versionId": "1",
                            "lastUpdated": "2025-10-23T16:22:33.244Z",
                            "profile":  [
                                "https://gematik.de/fhir/epa/StructureDefinition/epa-observation-creatinine"
                            ]
                        },
                        "code": {
                            "coding":  [
                                {
                                    "system": "http://loinc.org",
                                    "code": "77140-2",
                                    "version": "2.77",
                                    "display": "Creatinine [Moles/volume] in Serum, Plasma or Blood"
                                }
                            ]
                        },
                        "valueQuantity": {
                            "system": "http://unitsofmeasure.org",
                            "value": 1.2,
                            "comparator": ">=",
                            "unit": "mg/dL",
                            "code": "mg/dL"
                        },
                        "status": "final",
                        "subject": {
                            "identifier": {
                                "type": {
                                    "coding":  [
                                        {
                                            "code": "KVZ10",
                                            "system": "http://fhir.de/CodeSystem/identifier-type-de-basis",
                                            "display": "Krankenversichertennummer"
                                        }
                                    ]
                                },
                                "value": "X110411319",
                                "system": "http://fhir.de/sid/gkv/kvid-10"
                            }
                        },
                        "effectiveDateTime": "2025-10-23"
                    }
                }
            ]
        },
        {
            "name": "glomerularFiltrationRate",
            "part":  [
                {
                    "name": "operationOutcome",
                    "resource": {
                        "resourceType": "OperationOutcome",
                        "id": "255002c7-aa1b-4163-bdd4-ede482453cca",
                        "meta": {
                            "profile":  [
                                "https://gematik.de/fhir/epa/StructureDefinition/epa-operation-outcome"
                            ]
                        },
                        "issue":  [
                            {
                                "severity": "information",
                                "code": "informational",
                                "details": {
                                    "coding":  [
                                        {
                                            "code": "MEDICATIONSVC_OPERATION_SUCCESS",
                                            "system": "https://gematik.de/fhir/epa/CodeSystem/epa-operation-outcome-codes-cs",
                                            "display": "Operation Successfully Completed in Medication Service"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                },
                {
                    "name": "glomerularFiltrationRate",
                    "resource": {
                        "resourceType": "Observation",
                        "id": "5a056693-8acf-4ab3-b51e-9e45fc66056a",
                        "meta": {
                            "versionId": "1",
                            "lastUpdated": "2025-07-23T16:22:33.244Z",
                            "profile":  [
                                "https://gematik.de/fhir/epa/StructureDefinition/epa-observation-gfr"
                            ]
                        },
                        "code": {
                            "coding":  [
                                {
                                    "system": "http://loinc.org",
                                    "code": "69405-9",
                                    "version": "2.77",
                                    "display": "Glomerular filtration rate/1.73 sq M.predicted [Volume Rate/Area] in Serum, Plasma or Blood"
                                }
                            ]
                        },
                        "subject": {
                            "identifier": {
                                "system": "http://fhir.de/sid/gkv/kvid-10",
                                "type": {
                                    "coding":  [
                                        {
                                            "code": "KVZ10",
                                            "system": "http://fhir.de/CodeSystem/identifier-type-de-basis",
                                            "display": "Krankenversichertennummer"
                                        }
                                    ]
                                },
                                "value": "X110411319"
                            }
                        },
                        "status": "final",
                        "effectiveDateTime": "2025-07-23",
                        "valueQuantity": {
                            "value": 26,
                            "unit": "#mL/min/1.73_m2",
                            "system": "http://unitsofmeasure.org",
                            "code": "mL/min/{1.73_m2}"
                        }
                    }
                }
            ]
        }
    ]
}
<Parameters xmlns="http://hl7.org/fhir">
    <id value="example-epa-op-add-observation-output-parameters-2" />
    <meta>
        <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-add-amts-observation-out-parameters" />
    </meta>
    <parameter>
        <name value="bodyWeight" />
        <part>
            <name value="operationOutcome" />
            <resource>
                <OperationOutcome>
                    <id value="255002c7-aa1b-4163-bdd4-ede482453cca" />
                    <meta>
                        <profile value="https://gematik.de/fhir/epa/StructureDefinition/epa-operation-outcome" />
                    </meta>
                    <issue>
                        <severity value="information" />
                        <code value="informational" />
                        <details>
                            <coding>
                                <system value="https://gematik.de/fhir/epa/CodeSystem/epa-operation-outcome-codes-cs" />
                                <code value="MEDICATIONSVC_OPERATION_SUCCESS" />
                                <display value="Operation Successfully Completed in Medication Service" />
                            </coding>
                        </details>
                    </issue>
                </OperationOutcome>
            </resource>
        </part>
        <part>
            <name value="bodyWeight" />
            <resource>
                <Observation>
                    <id value="82a464e0-7c29-4006-9950-026b1ba83dbd" />
                    <meta>
                        <versionId value="1" />
                        <lastUpdated value="2025-07-23T16:22:33.244Z" />
                        <profile value="https://gematik.de/fhir/epa/StructureDefinition/epa-observation-body-weight" />
                    </meta>
                    <status value="final" />
                    <category>
                        <coding>
                            <system value="http://terminology.hl7.org/CodeSystem/observation-category" />
                            <code value="vital-signs" />
                        </coding>
                    </category>
                    <code>
                        <coding>
                            <system value="http://loinc.org" />
                            <version value="2.77" />
                            <code value="29463-7" />
                            <display value="Body weight" />
                        </coding>
                        <coding>
                            <system value="http://snomed.info/sct" />
                            <version value="http://snomed.info/sct/11000274103/version/20240515" />
                            <code value="27113001" />
                            <display value="Body weight (observable entity)" />
                        </coding>
                    </code>
                    <subject>
                        <identifier>
                            <type>
                                <coding>
                                    <system value="http://fhir.de/CodeSystem/identifier-type-de-basis" />
                                    <code value="KVZ10" />
                                    <display value="Krankenversichertennummer" />
                                </coding>
                            </type>
                            <system value="http://fhir.de/sid/gkv/kvid-10" />
                            <value value="X110411319" />
                        </identifier>
                    </subject>
                    <effectiveDateTime value="2025-07-23" />
                    <valueQuantity>
                        <value value="81.2" />
                        <unit value="kg" />
                        <system value="http://unitsofmeasure.org" />
                        <code value="kg" />
                    </valueQuantity>
                </Observation>
            </resource>
        </part>
    </parameter>
    <parameter>
        <name value="creatinine" />
        <part>
            <name value="operationOutcome" />
            <resource>
                <OperationOutcome>
                    <id value="255002c7-aa1b-4163-bdd4-ede482453cca" />
                    <meta>
                        <profile value="https://gematik.de/fhir/epa/StructureDefinition/epa-operation-outcome" />
                    </meta>
                    <issue>
                        <severity value="information" />
                        <code value="informational" />
                        <details>
                            <coding>
                                <system value="https://gematik.de/fhir/epa/CodeSystem/epa-operation-outcome-codes-cs" />
                                <code value="MEDICATIONSVC_OPERATION_SUCCESS" />
                                <display value="Operation Successfully Completed in Medication Service" />
                            </coding>
                        </details>
                    </issue>
                </OperationOutcome>
            </resource>
        </part>
        <part>
            <name value="creatinine" />
            <resource>
                <Observation>
                    <id value="612d18b0-6555-42fb-b286-0cd72a989fad" />
                    <meta>
                        <versionId value="1" />
                        <lastUpdated value="2025-10-23T16:22:33.244Z" />
                        <profile value="https://gematik.de/fhir/epa/StructureDefinition/epa-observation-creatinine" />
                    </meta>
                    <status value="final" />
                    <code>
                        <coding>
                            <system value="http://loinc.org" />
                            <version value="2.77" />
                            <code value="77140-2" />
                            <display value="Creatinine [Moles/volume] in Serum, Plasma or Blood" />
                        </coding>
                    </code>
                    <subject>
                        <identifier>
                            <type>
                                <coding>
                                    <system value="http://fhir.de/CodeSystem/identifier-type-de-basis" />
                                    <code value="KVZ10" />
                                    <display value="Krankenversichertennummer" />
                                </coding>
                            </type>
                            <system value="http://fhir.de/sid/gkv/kvid-10" />
                            <value value="X110411319" />
                        </identifier>
                    </subject>
                    <effectiveDateTime value="2025-10-23" />
                    <valueQuantity>
                        <value value="1.2" />
                        <comparator value="&gt;=" />
                        <unit value="mg/dL" />
                        <system value="http://unitsofmeasure.org" />
                        <code value="mg/dL" />
                    </valueQuantity>
                </Observation>
            </resource>
        </part>
    </parameter>
    <parameter>
        <name value="glomerularFiltrationRate" />
        <part>
            <name value="operationOutcome" />
            <resource>
                <OperationOutcome>
                    <id value="255002c7-aa1b-4163-bdd4-ede482453cca" />
                    <meta>
                        <profile value="https://gematik.de/fhir/epa/StructureDefinition/epa-operation-outcome" />
                    </meta>
                    <issue>
                        <severity value="information" />
                        <code value="informational" />
                        <details>
                            <coding>
                                <system value="https://gematik.de/fhir/epa/CodeSystem/epa-operation-outcome-codes-cs" />
                                <code value="MEDICATIONSVC_OPERATION_SUCCESS" />
                                <display value="Operation Successfully Completed in Medication Service" />
                            </coding>
                        </details>
                    </issue>
                </OperationOutcome>
            </resource>
        </part>
        <part>
            <name value="glomerularFiltrationRate" />
            <resource>
                <Observation>
                    <id value="5a056693-8acf-4ab3-b51e-9e45fc66056a" />
                    <meta>
                        <versionId value="1" />
                        <lastUpdated value="2025-07-23T16:22:33.244Z" />
                        <profile value="https://gematik.de/fhir/epa/StructureDefinition/epa-observation-gfr" />
                    </meta>
                    <status value="final" />
                    <code>
                        <coding>
                            <system value="http://loinc.org" />
                            <version value="2.77" />
                            <code value="69405-9" />
                            <display value="Glomerular filtration rate/1.73 sq M.predicted [Volume Rate/Area] in Serum, Plasma or Blood" />
                        </coding>
                    </code>
                    <subject>
                        <identifier>
                            <type>
                                <coding>
                                    <system value="http://fhir.de/CodeSystem/identifier-type-de-basis" />
                                    <code value="KVZ10" />
                                    <display value="Krankenversichertennummer" />
                                </coding>
                            </type>
                            <system value="http://fhir.de/sid/gkv/kvid-10" />
                            <value value="X110411319" />
                        </identifier>
                    </subject>
                    <effectiveDateTime value="2025-07-23" />
                    <valueQuantity>
                        <value value="26" />
                        <unit value="#mL/min/1.73_m2" />
                        <system value="http://unitsofmeasure.org" />
                        <code value="mL/min/{1.73_m2}" />
                    </valueQuantity>
                </Observation>
            </resource>
        </part>
    </parameter>
</Parameters>

Antwort-Status-Codes

Status Code Bedingung Error Code Bemerkung
200 Successful operation EPA OperationOutcome
400 Invalid request EPA OperationOutcome
403 Requestor role is not in the list of allowed user groups invalidOid
403 Requestor is not entitled notEntitled
403 ID-Token or Insurant-ID mismatch EPA OperationOutcome
404 Resource is not known EPA OperationOutcome
404 Unknown resource type EPA OperationOutcome
404 Health record is in state UNKNOWN or INITIALIZED noHealthRecord (siehe 'Wiederholungsintervalle')
409 Health record is in state SUSPENDED statusMismatch (siehe 'Wiederholungsintervalle')
423 If the insurant objected to the medication process or objected to the submission of prescription and dispensation data into the ePA system, the Medication Service is locked. locked
500 Any other error internalError (siehe 'Wiederholungsintervalle')

Serviceübergreifende Error Codes ohne Verweis auf EPA OperationOutcome MÜSSEN mit dem entsprechenden HTTP Status Code vom Medication Service mit dem Media Type application/json nach folgendem Schema zurückgegeben werden:

{
  "errorCode": "statusMismatch"
}