☰ Scenario Search for the encounter by Location and Patient
When Get FHIR resource at "http://fhirserver/Encounter/?location=Location/${data.encounter-read-in-progress-location}&patient=Patient/${data.patient-read-id}" with content type "xml"
And FHIR current response body evaluates the FHIRPath 'entry.resource.count() > 0' with error message 'No search results were found'
INFO
entry.resource.count() > 0
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath 'entry.resource.all(location.location.reference.replaceMatches("/_history/.+","").matches("\\b${data.encounter-read-in-progress-location}$"))' with error message 'There are search results, but they do not fully match the search criteria'
INFO
entry.resource.all(location.location.reference.replaceMatches("/_history/.+","").matches("\\bLocation-Read-Example$"))
["BooleanType[true]"]
And FHIR current response body is a valid CORE resource and conforms to profile "https://hl7.org/fhir/StructureDefinition/Bundle"
INFO
None of the codings provided are in the value set 'Admit source' (http://hl7.org/fhir/ValueSet/encounter-admit-source|4.0.1), and a coding is recommended to come from this value set) (codes = http://fhir.de/CodeSystem/dgkev/Aufnahmeanlass#E)
{
"locationCol": 1691,
"severity": "INFORMATION",
"locationString": "Bundle.entry[0].resource/*Encounter/Encounter-Basic-Role-Example*/.hospitalization.admitSource",
"messageId": "Terminology_TX_NoValid_3_CC",
"locationLine": 2,
"message": "None of the codings provided are in the value set 'Admit source' (http://hl7.org/fhir/ValueSet/encounter-admit-source|4.0.1), and a coding is recommended to come from this value set) (codes = http://fhir.de/CodeSystem/dgkev/Aufnahmeanlass#E)"
}
WARN
Profile reference 'https://gematik.de/fhir/isik/StructureDefinition/ISiKKontaktGesundheitseinrichtung' has not been checked because it is unknown
{
"locationCol": 332,
"severity": "WARNING",
"locationString": "Bundle.entry[0].resource/*Encounter/Encounter-Basic-Role-Example*/.meta.profile[0]",
"messageId": "Validation_VAL_Profile_Unknown",
"locationLine": 2,
"message": "Profile reference 'https://gematik.de/fhir/isik/StructureDefinition/ISiKKontaktGesundheitseinrichtung' has not been checked because it is unknown"
}
INFO
None of the codings provided are in the value set 'DiagnosisRole' (http://hl7.org/fhir/ValueSet/diagnosis-role|4.0.1), and a coding is recommended to come from this value set) (codes = http://fhir.de/CodeSystem/KontaktDiagnoseProzedur#treatment-diagnosis)
{
"locationCol": 3766,
"severity": "INFORMATION",
"locationString": "Bundle.entry[1].resource/*Encounter/Encounter-Read-In-Progress-Example*/.diagnosis[0].use",
"messageId": "Terminology_TX_NoValid_3_CC",
"locationLine": 2,
"message": "None of the codings provided are in the value set 'DiagnosisRole' (http://hl7.org/fhir/ValueSet/diagnosis-role|4.0.1), and a coding is recommended to come from this value set) (codes = http://fhir.de/CodeSystem/KontaktDiagnoseProzedur#treatment-diagnosis)"
}
INFO
None of the codings provided are in the value set 'Admit source' (http://hl7.org/fhir/ValueSet/encounter-admit-source|4.0.1), and a coding is recommended to come from this value set) (codes = http://fhir.de/CodeSystem/dgkev/Aufnahmeanlass#E)
{
"locationCol": 3981,
"severity": "INFORMATION",
"locationString": "Bundle.entry[1].resource/*Encounter/Encounter-Read-In-Progress-Example*/.hospitalization.admitSource",
"messageId": "Terminology_TX_NoValid_3_CC",
"locationLine": 2,
"message": "None of the codings provided are in the value set 'Admit source' (http://hl7.org/fhir/ValueSet/encounter-admit-source|4.0.1), and a coding is recommended to come from this value set) (codes = http://fhir.de/CodeSystem/dgkev/Aufnahmeanlass#E)"
}
WARN
Profile reference 'https://gematik.de/fhir/isik/StructureDefinition/ISiKKontaktGesundheitseinrichtung' has not been checked because it is unknown
{
"locationCol": 2409,
"severity": "WARNING",
"locationString": "Bundle.entry[1].resource/*Encounter/Encounter-Read-In-Progress-Example*/.meta.profile[0]",
"messageId": "Validation_VAL_Profile_Unknown",
"locationLine": 2,
"message": "Profile reference 'https://gematik.de/fhir/isik/StructureDefinition/ISiKKontaktGesundheitseinrichtung' has not been checked because it is unknown"
}
WARN
Resource meta.profile differs from the passed profile for validation: meta.profile=[]; passed=https://hl7.org/fhir/StructureDefinition/Bundle
{
"severity": "WARNING",
"messageId": "REFV_WARN_PASSED_PROFILE_DIFFERS_FROM_META_PROFILE",
"message": "Resource meta.profile differs from the passed profile for validation: meta.profile=[]; passed=https://hl7.org/fhir/StructureDefinition/Bundle"
}
And Check if current response of resource "Encounter" is valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKKontaktGesundheitseinrichtung"
INFO
This element does not match any known slice defined in the profile https://gematik.de/fhir/isik/StructureDefinition/ISiKKontaktGesundheitseinrichtung|5.1.2
{
"locationCol": 1574,
"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"
}