☰ Scenario Read and Validate the Medication by its ID
Then Get FHIR resource at "http://fhirserver/Medication/${data.medication-read-extended-id}" with content type "xml"
And resource has ID "${data.medication-read-extended-id}"
INFO
id.replaceMatches('/_history/.+','').matches('\\bMedication-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/ISiKMedikament"
INFO
Code system definition is missing for 'http://fhir.de/CodeSystem/bfarm/atc#L01DB01'
{
"locationCol": 273,
"severity": "INFORMATION",
"locationString": "Medication.code.coding[0]",
"messageId": "Terminology_PassThrough_TX_Message",
"locationLine": 2,
"message": "Code system definition is missing for 'http://fhir.de/CodeSystem/bfarm/atc#L01DB01'"
}
INFO
This element does not match any known slice defined in the profile https://gematik.de/fhir/isik/StructureDefinition/ISiKMedikament|5.1.2
{
"locationCol": 499,
"severity": "INFORMATION",
"locationString": "Medication.form.coding[0]",
"locationLine": 2,
"message": "This element does not match any known slice defined in the profile https://gematik.de/fhir/isik/StructureDefinition/ISiKMedikament|5.1.2"
}
INFO
This element does not match any known slice defined in the profile https://gematik.de/fhir/isik/StructureDefinition/ISiKMedikament|5.1.2
{
"locationCol": 758,
"severity": "INFORMATION",
"locationString": "Medication.ingredient[0].extension[0]",
"locationLine": 2,
"message": "This element does not match any known slice defined in the profile https://gematik.de/fhir/isik/StructureDefinition/ISiKMedikament|5.1.2"
}
INFO
Unknown extension https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/StructureDefinition/wirkstofftyp
{
"locationCol": 758,
"severity": "INFORMATION",
"locationString": "Medication.ingredient[0].extension[0]",
"messageId": "Extension_EXT_Unknown",
"locationLine": 2,
"message": "Unknown extension https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/StructureDefinition/wirkstofftyp"
}
INFO
Code system definition is missing for 'http://fhir.de/CodeSystem/bfarm/atc#L01DB01'
{
"locationCol": 956,
"severity": "INFORMATION",
"locationString": "Medication.ingredient[0].item.ofType(CodeableConcept).coding[0]",
"messageId": "Terminology_PassThrough_TX_Message",
"locationLine": 2,
"message": "Code system definition is missing for 'http://fhir.de/CodeSystem/bfarm/atc#L01DB01'"
}
And TGR current response with attribute "$..Medication.status.value" matches "active"
And FHIR current response body evaluates the FHIRPath "code.text.empty().not()" with error message 'The code does not contain a valid text value'
INFO
code.text.empty().not()
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "code.coding.where(code = 'L01DB01' and system = 'http://fhir.de/CodeSystem/bfarm/atc' and display = 'Doxorubicin' and version.hasValue()).exists()" with error message 'The code does not contain the expected information'
INFO
code.coding.where(code = 'L01DB01' and system = 'http://fhir.de/CodeSystem/bfarm/atc' and display = 'Doxorubicin' and version.hasValue()).exists()
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "form.coding.where(system = 'http://standardterms.edqm.eu' and code = '11210000' and display = 'Solution for infusion').exists()" with error message 'The form does not match the expected value'
INFO
form.coding.where(system = 'http://standardterms.edqm.eu' and code = '11210000' and display = 'Solution for infusion').exists()
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "ingredient.where(isActive = 'true' and extension.where(url = 'https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/StructureDefinition/wirkstofftyp' and value.where(code = 'IN' and system = 'https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/CodeSystem/wirkstofftyp').exists()).exists() ).exists() and ingredient.where(item.coding.where(code = 'L01DB01' and system = 'http://fhir.de/CodeSystem/bfarm/atc' and display = 'Doxorubicin' and version.hasValue()).exists() and strength.where(numerator.where(value ~ 85 and unit.hasValue() and system = 'http://unitsofmeasure.org' and code = 'mg').exists() and denominator.where(value ~ 250 and unit.hasValue() and system = 'http://unitsofmeasure.org' and code = 'mL').exists()).exists() ).exists()" with error message 'The doxorubicin ingredient description does not match the expected value'
INFO
ingredient.where(isActive = 'true' and extension.where(url = 'https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/StructureDefinition/wirkstofftyp' and value.where(code = 'IN' and system = 'https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/CodeSystem/wirkstofftyp').exists()).exists() ).exists() and ingredient.where(item.coding.where(code = 'L01DB01' and system = 'http://fhir.de/CodeSystem/bfarm/atc' and display = 'Doxorubicin' and version.hasValue()).exists() and strength.where(numerator.where(value ~ 85 and unit.hasValue() and system = 'http://unitsofmeasure.org' and code = 'mg').exists() and denominator.where(value ~ 250 and unit.hasValue() and system = 'http://unitsofmeasure.org' and code = 'mL').exists()).exists() ).exists()
["BooleanType[true]"]