☰ Scenario Read and Validate the MedicationAdministration by its ID
Then Get FHIR resource at "http://fhirserver/MedicationAdministration/${data.medicationadministration-read-id}" with content type "xml"
And resource has ID "${data.medicationadministration-read-id}"
INFO
id.replaceMatches('/_history/.+','').matches('\\bMedicationAdministration-Read-Example$')
["BooleanType[true]"]
And FHIR current response body is a valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKMedikationsVerabreichung"
INFO
Code system definition is missing for 'http://snomed.info/sct#738956005'
{
"locationCol": 1122,
"severity": "INFORMATION",
"locationString": "MedicationAdministration.dosage.site.coding[0]",
"messageId": "Terminology_PassThrough_TX_Message",
"locationLine": 2,
"message": "Code system definition is missing for 'http://snomed.info/sct#738956005'"
}
INFO
Code system definition is missing for 'http://snomed.info/sct#26643006'
{
"locationCol": 1311,
"severity": "INFORMATION",
"locationString": "MedicationAdministration.dosage.route.coding[0]",
"messageId": "Terminology_PassThrough_TX_Message",
"locationLine": 2,
"message": "Code system definition is missing for 'http://snomed.info/sct#26643006'"
}
WARN
Value set https://gematik.de/fhir/isik/ValueSet/SctRouteOfAdministration has been ignored due to module configuration
{
"locationCol": 1311,
"severity": "WARNING",
"locationString": "MedicationAdministration.dosage.route.coding[0]",
"messageId": "Value set https://gematik.de/fhir/isik/ValueSet/SctRouteOfAdministration has been ignored due to module configuration",
"locationLine": 2,
"message": "Value set https://gematik.de/fhir/isik/ValueSet/SctRouteOfAdministration has been ignored due to module configuration"
}
And TGR current response with attribute "$..status.value" matches "completed"
And TGR current response with attribute "$..note.text.value" matches "Test note"
And element "medication" references resource with ID "Medication/${data.medication-read-id}" with error message "The referenced medication does not match the expected value"
INFO
medication.reference.replaceMatches('/_history/.+','').matches('\\bMedication/Medication-Read-Example$')
["BooleanType[true]"]
And element "subject" references resource with ID "Patient/${data.medication-patient-id}" with error message "The referenced patient does not match the expected value"
INFO
subject.reference.replaceMatches('/_history/.+','').matches('\\bPatient/Patient-Read-Example$')
["BooleanType[true]"]
And element "context" references resource with ID "Encounter/${data.medication-encounter-id}" with error message "The referenced encounter does not match the expected value"
INFO
context.reference.replaceMatches('/_history/.+','').matches('\\bEncounter/Encounter-Read-In-Progress-Example$')
["BooleanType[true]"]
And TGR current response with attribute "$..reasonReference.reference.value" matches "Condition/${data.medication-condition-id}"
And FHIR current response body evaluates the FHIRPath "context.identifier.value = '${data.medication-encounter-identifier-value}'" with error message 'The associated encounter identifier does not match the expected value'
INFO
context.identifier.value = '0123456789'
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "effective.toString().contains('2026-02-03')" with error message 'The effective date/time does not match the expected value'
INFO
effective.toString().contains('2026-02-03')
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "performer.where(actor.reference.replaceMatches('/_history/.+','').matches('Practitioner/${data.medication-practitioner-id}$')).exists()" with error message 'The performer does not match the expected value'
INFO
performer.where(actor.reference.replaceMatches('/_history/.+','').matches('Practitioner/Practitioner-Read-Example$')).exists()
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "dosage.where(text.empty().not() and site.coding.where(code = '738956005' and system = 'http://snomed.info/sct' and display = 'Oral' and version = 'http://snomed.info/sct/11000274103/version/${data.snomed-ct-version}').exists() and dose.where(code = '1' and system = 'http://unitsofmeasure.org' and unit.hasValue() and value ~ 1).exists() and route.coding.where(code = '26643006' and system = 'http://snomed.info/sct' and version = 'http://snomed.info/sct/11000274103/version/${data.snomed-ct-version}' and display = 'Oral route').exists()).exists()" with error message 'The dosage does not match the expected value'
INFO
dosage.where(text.empty().not() and site.coding.where(code = '738956005' and system = 'http://snomed.info/sct' and display = 'Oral' and version = 'http://snomed.info/sct/11000274103/version/20251115').exists() and dose.where(code = '1' and system = 'http://unitsofmeasure.org' and unit.hasValue() and value ~ 1).exists() and route.coding.where(code = '26643006' and system = 'http://snomed.info/sct' and version = 'http://snomed.info/sct/11000274103/version/20251115' and display = 'Oral route').exists()).exists()
["BooleanType[true]"]
And referenced "Encounter" resource with id "${data.medication-encounter-id}" conforms to a valid v5 "ISiKKontaktGesundheitseinrichtung" profile
INFO
This element does not match any known slice defined in the profile https://gematik.de/fhir/isik/StructureDefinition/ISiKKontaktGesundheitseinrichtung|5.1.2
{
"locationCol": 956,
"severity": "INFORMATION",
"locationString": "Encounter.location[0]",
"locationLine": 1,
"message": "This element does not match any known slice defined in the profile https://gematik.de/fhir/isik/StructureDefinition/ISiKKontaktGesundheitseinrichtung|5.1.2"
}
And referenced "Patient" resource with id "${data.medication-patient-id}" conforms to a valid v5 "ISiKPatient" profile
WARN
Rule add-7: 'Wenn die Extension 'Precinct' (Stadtteil) verwendet wird, dann muss diese Information auch als separates line-item abgebildet sein.' Failed
{
"locationCol": 1408,
"severity": "WARNING",
"locationString": "Patient.address[0]",
"messageId": "Rule add-7: 'Wenn die Extension 'Precinct' (Stadtteil) verwendet wird, dann muss diese Information auch als separates line-item abgebildet sein.' Failed",
"locationLine": 1,
"message": "Rule add-7: 'Wenn die Extension 'Precinct' (Stadtteil) verwendet wird, dann muss diese Information auch als separates line-item abgebildet sein.' Failed"
}
INFO
This element does not match any known slice defined in the profile https://gematik.de/fhir/ti/StructureDefinition/ti-patient|1.1.1
{
"locationCol": 2117,
"severity": "INFORMATION",
"locationString": "Patient.identifier[1]",
"locationLine": 1,
"message": "This element does not match any known slice defined in the profile https://gematik.de/fhir/ti/StructureDefinition/ti-patient|1.1.1"
}
And referenced "Practitioner" resource with id "${data.medication-practitioner-id}" conforms to a valid v5 "ISiKPersonImGesundheitsberuf" profile
INFO
This element does not match any known slice defined in the profile https://gematik.de/fhir/isik/StructureDefinition/ISiKPersonImGesundheitsberuf|5.1.2
{
"locationCol": 1363,
"severity": "INFORMATION",
"locationString": "Practitioner.identifier[2]",
"locationLine": 1,
"message": "This element does not match any known slice defined in the profile https://gematik.de/fhir/isik/StructureDefinition/ISiKPersonImGesundheitsberuf|5.1.2"
}
WARN
Rule add-7: 'Wenn die Extension 'Precinct' (Stadtteil) verwendet wird, dann muss diese Information auch als separates line-item abgebildet sein.' Failed
{
"locationCol": 902,
"severity": "WARNING",
"locationString": "Practitioner.address[0]",
"messageId": "Rule add-7: 'Wenn die Extension 'Precinct' (Stadtteil) verwendet wird, dann muss diese Information auch als separates line-item abgebildet sein.' Failed",
"locationLine": 1,
"message": "Rule add-7: 'Wenn die Extension 'Precinct' (Stadtteil) verwendet wird, dann muss diese Information auch als separates line-item abgebildet sein.' Failed"
}
INFO
This element does not match any known slice defined in the profile https://gematik.de/fhir/ti/StructureDefinition/ti-practitioner|1.1.1
{
"locationCol": 1285,
"severity": "INFORMATION",
"locationString": "Practitioner.identifier[1]",
"locationLine": 1,
"message": "This element does not match any known slice defined in the profile https://gematik.de/fhir/ti/StructureDefinition/ti-practitioner|1.1.1"
}
And referenced "Medication" resource with id "${data.medication-read-id}" conforms to a valid v5 "ISiKMedikament" profile
INFO
Code system definition is missing for 'http://fhir.de/CodeSystem/bfarm/atc#V03AB23'
{
"locationCol": 170,
"severity": "INFORMATION",
"locationString": "Medication.code.coding[0]",
"messageId": "Terminology_PassThrough_TX_Message",
"locationLine": 1,
"message": "Code system definition is missing for 'http://fhir.de/CodeSystem/bfarm/atc#V03AB23'"
}
And referenced "Condition" resource with id "${data.medication-condition-id}" conforms to a valid v5 "ISiKDiagnose" profile
INFO
Code system definition is missing for 'http://fhir.de/CodeSystem/bfarm/icd-10-gm#J06.9'
{
"locationCol": 206,
"severity": "INFORMATION",
"locationString": "Condition.code.coding[0]",
"messageId": "Terminology_PassThrough_TX_Message",
"locationLine": 1,
"message": "Code system definition is missing for 'http://fhir.de/CodeSystem/bfarm/icd-10-gm#J06.9'"
}
INFO
Code system definition is missing for 'http://snomed.info/sct#49076000'
{
"locationCol": 719,
"severity": "INFORMATION",
"locationString": "Condition.bodySite[0].coding[0]",
"messageId": "Terminology_PassThrough_TX_Message",
"locationLine": 1,
"message": "Code system definition is missing for 'http://snomed.info/sct#49076000'"
}