☰ Scenario Read and Validate Procedure by its ID
When Get FHIR resource at "http://fhirserver/Procedure/${data.procedure-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/ISiKProzedur"
INFO
Code system definition is missing for 'http://snomed.info/sct#387713003'
{
"locationCol": 515,
"severity": "INFORMATION",
"locationString": "Procedure.category.coding[0]",
"messageId": "Terminology_PassThrough_TX_Message",
"locationLine": 2,
"message": "Code system definition is missing for 'http://snomed.info/sct#387713003'"
}
WARN
Value set https://gematik.de/fhir/isik/ValueSet/ProzedurenKategorieSCT has been ignored due to module configuration
{
"locationCol": 515,
"severity": "WARNING",
"locationString": "Procedure.category.coding[0]",
"messageId": "Value set https://gematik.de/fhir/isik/ValueSet/ProzedurenKategorieSCT has been ignored due to module configuration",
"locationLine": 2,
"message": "Value set https://gematik.de/fhir/isik/ValueSet/ProzedurenKategorieSCT has been ignored due to module configuration"
}
INFO
Code system definition is missing for 'http://snomed.info/sct#6025007'
{
"locationCol": 721,
"severity": "INFORMATION",
"locationString": "Procedure.code.coding[0]",
"messageId": "Terminology_PassThrough_TX_Message",
"locationLine": 2,
"message": "Code system definition is missing for 'http://snomed.info/sct#6025007'"
}
INFO
Code system definition is missing for 'http://fhir.de/CodeSystem/bfarm/ops#5-470.11'
{
"locationCol": 902,
"severity": "INFORMATION",
"locationString": "Procedure.code.coding[1]",
"messageId": "Terminology_PassThrough_TX_Message",
"locationLine": 2,
"message": "Code system definition is missing for 'http://fhir.de/CodeSystem/bfarm/ops#5-470.11'"
}
WARN
Value set https://gematik.de/fhir/isik/ValueSet/ProzedurenCodesSCT has been ignored due to module configuration
{
"locationCol": 721,
"severity": "WARNING",
"locationString": "Procedure.code.coding[0]",
"messageId": "Value set https://gematik.de/fhir/isik/ValueSet/ProzedurenCodesSCT has been ignored due to module configuration",
"locationLine": 2,
"message": "Value set https://gematik.de/fhir/isik/ValueSet/ProzedurenCodesSCT has been ignored due to module configuration"
}
And resource has ID "${data.procedure-read-id}"
INFO
id.replaceMatches('/_history/.+','').matches('\\bProcedure-Read-Example$')
["BooleanType[true]"]
And TGR current response with attribute "$..status.value" matches "completed"
And FHIR current response body evaluates the FHIRPath 'category.coding.where(code = "387713003" and system = "http://snomed.info/sct" and version = "http://snomed.info/sct/11000274103/version/${data.snomed-ct-version}").exists()' with error message 'The Procedure resource does not contain a correct categorization'
INFO
category.coding.where(code = "387713003" and system = "http://snomed.info/sct" and version = "http://snomed.info/sct/11000274103/version/20251115").exists()
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath 'code.coding.where(code = "5-470.11" and system = "http://fhir.de/CodeSystem/bfarm/ops" and version.exists()).exists()' with error message 'The Procedure resource does not contain a correct OPS coding'
INFO
code.coding.where(code = "5-470.11" and system = "http://fhir.de/CodeSystem/bfarm/ops" and version.exists()).exists()
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "code.coding.where(code = '6025007' and system = 'http://snomed.info/sct' and version = 'http://snomed.info/sct/11000274103/version/${data.snomed-ct-version}').exists()" with error message 'The Procedure resource does not contain a correct SNOMED-CT coding'
INFO
code.coding.where(code = '6025007' and system = 'http://snomed.info/sct' and version = 'http://snomed.info/sct/11000274103/version/20251115').exists()
["BooleanType[true]"]
And element "subject" references resource with ID "${data.patient-read-id}" with error message "The referenced Patient does not match the expected value"
INFO
subject.reference.replaceMatches('/_history/.+','').matches('\\bPatient-Read-Example$')
["BooleanType[true]"]
And element "encounter" references resource with ID "${data.encounter-read-in-progress-id}" with error message "Referenced Encounter does not match the expected value"
INFO
encounter.reference.replaceMatches('/_history/.+','').matches('\\bEncounter-Read-In-Progress-Example$')
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "performed.toString().contains('2026-01-05') or ( performed.start.toString().contains('2026-01-05') and performed.end.toString().contains('2026-01-05') )" with error message "The Procedure does not contain a performed date"
INFO
performed.toString().contains('2026-01-05') or ( performed.start.toString().contains('2026-01-05') and performed.end.toString().contains('2026-01-05') )
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath 'note.where(text = "Test note").exists()' with error message 'The note does not match the expected value'
INFO
note.where(text = "Test note").exists()
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath 'extension.where(url = "http://fhir.de/StructureDefinition/ProzedurDokumentationsdatum" and value.toString().contains("2026-01-05")).exists()' with error message 'The documentation date does not match the expected value'
INFO
extension.where(url = "http://fhir.de/StructureDefinition/ProzedurDokumentationsdatum" and value.toString().contains("2026-01-05")).exists()
["BooleanType[true]"]