☰ Scenario Read and Validate breastfeeding Observation by its ID
When Get FHIR resource at "http://fhirserver/Observation/${data.medication-observation-breastfeeding-read-id}" with content type "xml"
And FHIR current response body is a valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKStillstatus"
INFO
Code system definition is missing for 'http://snomed.info/sct#413712001'
{
"locationCol": 389,
"severity": "INFORMATION",
"locationString": "Observation.code.coding[0]",
"messageId": "Terminology_PassThrough_TX_Message",
"locationLine": 2,
"message": "Code system definition is missing for 'http://snomed.info/sct#413712001'"
}
INFO
Code system definition is missing for 'http://loinc.org#63895-7'
{
"locationCol": 582,
"severity": "INFORMATION",
"locationString": "Observation.code.coding[1]",
"messageId": "Terminology_PassThrough_TX_Message",
"locationLine": 2,
"message": "Code system definition is missing for 'http://loinc.org#63895-7'"
}
INFO
Code system definition is missing for 'http://loinc.org#LA29252-6'
{
"locationCol": 1033,
"severity": "INFORMATION",
"locationString": "Observation.value.ofType(CodeableConcept).coding[0]",
"messageId": "Terminology_PassThrough_TX_Message",
"locationLine": 2,
"message": "Code system definition is missing for 'http://loinc.org#LA29252-6'"
}
And resource has ID "${data.medication-observation-breastfeeding-read-id}" with error message "The ID does not match the expected value"
INFO
id.replaceMatches('/_history/.+','').matches('\\bBreastfeeding-Read-Example$')
["BooleanType[true]"]
And TGR current response with attribute "$..status.value" matches "final"
And FHIR current response body evaluates the FHIRPath "code.coding.where(system = 'http://snomed.info/sct' and code = '413712001' and version = 'http://snomed.info/sct/11000274103/version/${data.snomed-ct-version}' and display.empty().not()).exists()" with error message 'The SNOMED CT code for breastfeeding status does not match the expected value'
INFO
code.coding.where(system = 'http://snomed.info/sct' and code = '413712001' and version = 'http://snomed.info/sct/11000274103/version/20251115' and display.empty().not()).exists()
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "code.coding.where(system = 'http://loinc.org' and code = '63895-7' and version = '${data.loinc-version}' and display.empty().not()).exists()" with error message 'The LOINC code for breastfeeding status does not match the expected value'
INFO
code.coding.where(system = 'http://loinc.org' and code = '63895-7' and version = '2.81' and display.empty().not()).exists()
["BooleanType[true]"]
And element "subject" references resource with ID "Patient/${data.patient-read-extended-id}" with error message "The referenced patient does not match the expected value"
INFO
subject.reference.replaceMatches('/_history/.+','').matches('\\bPatient/Patient-Read-Extended-Example$')
["BooleanType[true]"]
And element "performer" references resource with ID "Practitioner/${data.practitioner-read-id}" with error message "The referenced performer does not match the expected value"
INFO
performer.reference.replaceMatches('/_history/.+','').matches('\\bPractitioner/Practitioner-Read-Example$')
["BooleanType[true]"]
And element "encounter" references resource with ID "Encounter/${data.encounter-read-in-progress-id}" with error message "The referenced encounter does not match the expected value"
INFO
encounter.reference.replaceMatches('/_history/.+','').matches('\\bEncounter/Encounter-Read-In-Progress-Example$')
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "effective.toString().contains('2026-01-06')" with error message 'The effective date does not match the expected value'
INFO
effective.toString().contains('2026-01-06')
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "value.coding.where(system = 'http://loinc.org' and code = 'LA29252-6' and version = '${data.loinc-version}' and display.empty().not()).exists()" with error message 'The breastfeeding status value does not match the expected value'
INFO
value.coding.where(system = 'http://loinc.org' and code = 'LA29252-6' and version = '2.81' and display.empty().not()).exists()
["BooleanType[true]"]