☰ Scenario Read and Validate the MedicationAdministration with extended data by its ID
Then Get FHIR resource at "http://fhirserver/MedicationAdministration/${data.medicationadministration-read-extended-id}" with content type "xml"
And resource has ID "${data.medicationadministration-read-extended-id}"
INFO
id.replaceMatches('/_history/.+','').matches('\\bMedicationAdministration-Read-Extended-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://fhir.de/CodeSystem/bfarm/atc#V03AB23'
{
"locationCol": 363,
"severity": "INFORMATION",
"locationString": "MedicationAdministration.medication.ofType(CodeableConcept).coding[0]",
"messageId": "Terminology_PassThrough_TX_Message",
"locationLine": 2,
"message": "Code system definition is missing for 'http://fhir.de/CodeSystem/bfarm/atc#V03AB23'"
}
And TGR current response with attribute "$..status.value" matches "completed"
And FHIR current response body evaluates the FHIRPath "medication.coding.where(code = 'V03AB23' and system = 'http://fhir.de/CodeSystem/bfarm/atc' and display = 'Acetylcystein').exists()" with error message 'The coded medication does not match the expected value'
INFO
medication.coding.where(code = 'V03AB23' and system = 'http://fhir.de/CodeSystem/bfarm/atc' and display = 'Acetylcystein').exists()
["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 FHIR current response body evaluates the FHIRPath "subject.identifier.value = '${data.medication-patient-identifier}'" with error message "The subject identifier does not match the expected value"
INFO
subject.identifier.value = 'X485231029'
["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.actor.reference.replaceMatches('/_history/.+','').matches('Practitioner/${data.medication-practitioner-id}$')" with error message 'The performer does not match the expected value'
INFO
performer.actor.reference.replaceMatches('/_history/.+','').matches('Practitioner/Practitioner-Read-Example$')
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "performer.actor.identifier.value = '${data.medication-practitioner-identifier}'" with error message 'The performer identifier does not match the expected value'
INFO
performer.actor.identifier.value = '123456789'
["BooleanType[true]"]