Creative Commons Zero v1.0 Universal
6
stars
9
forks
source link
Testcase 2A3 #280
Open
Luyts opened 8 months ago
"
},
identifier : [
{
system: https://www.ehealth.fgov.be/lab-report/diagnostic-report-id ,
value: "81361818998.2023-462442"
}
],
basedOn : [
{
reference: "ServiceRequest/2023-462442"
}
],
status: "corrected",
category : [
{
coding : [
{
system: http://terminology.hl7.org/CodeSystem/v2-0074 ,
code: "LAB",
display: "Laboratory"
}
]
}
],
code : {
coding : [
{
system: http://loinc.org/ ,
code: "11502-2"
}
],
text: "Labo rapport"
},
subject : {
reference: "Patient/740365"
},
effectiveDateTime: "2024-01-18T11:14:44+01:00",
issued: "2024-01-10T18:30:22.000+01:00",
performer : [
{
reference: "Organization/40914"
}
],
resultsInterpreter : [
{
reference: "Practitioner/211702"
}
],
specimen : [
{
reference: "Specimen/202346244202"
},
{
reference: "Specimen/202346244201"
}
],
result : [
{
reference: "Observation/9f53fc3d-7dd1-47e9-839d-6d16a10c7d2d"
}
]
}
},
{
fullUrl: "Patient/740365",
resource : {
resourceType: "Patient",
id: "740365",
meta : {
profile : [
https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-patient
]
},
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
identifier : [
{
use: "official",
system: https://www.ehealth.fgov.be/standards/fhir/core/NamingSystem/ssin ,
value: "00010999996"
},
{
system: https://www.azturnhout.be/ ,
value: "0013426295"
}
],
name : [
{
family: "PATIENTNAMENEGEN",
given : [
"PATIENTNEGEN"
]
}
],
gender: "male",
birthDate: "1900-01-09",
address : [
{
line : [
"STWG OP MERKSPLAS 44"
],
city: "TURNHOUT",
postalCode: "2300",
country: "BEL"
}
]
}
},
{
fullUrl: "ServiceRequest/2023-462442",
resource : {
resourceType: "ServiceRequest",
id: "2023-462442",
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
identifier : [
{
system: https://www.azturnhout.be/ ,
value: "2023-462442"
}
],
status: "completed",
intent: "order",
priority: "routine",
subject : {
reference: "Patient/740365"
},
authoredOn: "2023-11-15T16:16:00+01:00",
requester : {
reference: "Practitioner/8790501"
}
}
},
{
fullUrl: "Practitioner/8790501",
resource : {
resourceType: "Practitioner",
id: "8790501",
meta : {
profile : [
https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-practitioner
]
},
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
identifier : [
{
use: "official",
system: https://www.ehealth.fgov.be/standards/fhir/core/NamingSystem/nihdi ,
value: "17166921"
}
],
name : [
{
family: "FHIR",
given : [
"Doctor"
],
prefix : [
"Dr"
]
}
],
address : [
{
line : [
"Steenweg op Merksplas 44"
],
city: "TURNHOUT",
postalCode: "2300",
country: "BEL"
}
],
gender: "male",
birthDate: "2000-01-01"
}
},
{
fullUrl: "Organization/40914",
resource : {
resourceType: "Organization",
id: "40914",
meta : {
profile : [
https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-organization
]
},
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
identifier : [
{
use: "official",
system: https://www.ehealth.fgov.be/standards/fhir/core/NamingSystem/nihdi ,
value: "81361818998"
}
],
name: "L_TURN",
telecom : [
{
system: "fax",
value: "014 406468"
},
{
system: "phone",
value: "014 40 60 40"
}
],
address : [
{
city: "TURNHOUT",
postalCode: "2300",
country: "BEL"
}
]
}
},
{
fullUrl: "Practitioner/211702",
resource : {
resourceType: "Practitioner",
id: "211702",
meta : {
profile : [
https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-practitioner
]
},
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
identifier : [
{
use: "official",
system: https://www.ehealth.fgov.be/standards/fhir/core/NamingSystem/nihdi ,
value: "68102314993"
}
],
name : [
{
family: "Verschaeren",
given : [
"Jan"
],
prefix : [
"Dokter klinisch bioloog"
]
}
],
telecom : [
{
system: "phone",
value: "4083"
}
],
address : [
{
line : [
"Steenweg op Merksplas 44",
"AZ Turnhout"
],
city: "TURNHOUT",
postalCode: "2300",
country: "BEL"
}
],
gender: "male"
}
},
{
fullUrl: "Observation/733bb014-a69e-4f1e-837d-947e84faae5d",
resource : {
resourceType: "Observation",
id: "733bb014-a69e-4f1e-837d-947e84faae5d",
meta : {
profile : [
https://www.ehealth.fgov.be/standards/fhir/lab/StructureDefinition/be-observation-laboratory
]
},
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
status: "unknown",
code : {
text: "STAALKWALITEIT (staal: 202346244202)"
},
subject : {
reference: "Patient/740365"
},
hasMember : [
{
reference: "Observation/68304285"
},
{
reference: "Observation/68304286"
},
{
reference: "Observation/68304287"
}
]
}
},
{
fullUrl: "Observation/635031d7-719a-452c-8d6d-dea970b7fb05",
resource : {
resourceType: "Observation",
id: "635031d7-719a-452c-8d6d-dea970b7fb05",
meta : {
profile : [
https://www.ehealth.fgov.be/standards/fhir/lab/StructureDefinition/be-observation-laboratory
]
},
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
status: "unknown",
code : {
text: "GLUCOSEMETABOLISME"
},
subject : {
reference: "Patient/740365"
},
hasMember : [
{
reference: "Observation/68304281"
},
{
reference: "Observation/68304283"
},
{
reference: "Observation/68304282"
},
{
reference: "Observation/71180837"
}
]
}
},
{
fullUrl: "Observation/9f53fc3d-7dd1-47e9-839d-6d16a10c7d2d",
resource : {
resourceType: "Observation",
id: "9f53fc3d-7dd1-47e9-839d-6d16a10c7d2d",
meta : {
profile : [
https://www.ehealth.fgov.be/standards/fhir/lab/StructureDefinition/be-observation-laboratory
]
},
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
status: "unknown",
code : {
text: "CHEMIE (BLOED)"
},
subject : {
reference: "Patient/740365"
},
hasMember : [
{
reference: "Observation/733bb014-a69e-4f1e-837d-947e84faae5d"
},
{
reference: "Observation/635031d7-719a-452c-8d6d-dea970b7fb05"
}
]
}
},
{
fullUrl: "ServiceRequest/73374134",
resource : {
resourceType: "ServiceRequest",
id: "73374134",
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
identifier : [
{
system: https://www.azturnhout.be/ ,
value: "73374134"
}
],
status: "completed",
intent: "order",
priority: "routine",
subject : {
reference: "Patient/740365"
}
}
},
{
fullUrl: "ServiceRequest/73374136",
resource : {
resourceType: "ServiceRequest",
id: "73374136",
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
identifier : [
{
system: https://www.azturnhout.be/ ,
value: "73374136"
}
],
status: "completed",
intent: "order",
priority: "routine",
subject : {
reference: "Patient/740365"
}
}
},
{
fullUrl: "ServiceRequest/73374138",
resource : {
resourceType: "ServiceRequest",
id: "73374138",
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
identifier : [
{
system: https://www.azturnhout.be/ ,
value: "73374138"
}
],
status: "completed",
intent: "order",
priority: "routine",
subject : {
reference: "Patient/740365"
}
}
},
{
fullUrl: "ServiceRequest/73374126",
resource : {
resourceType: "ServiceRequest",
id: "73374126",
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
identifier : [
{
system: https://www.azturnhout.be/ ,
value: "73374126"
}
],
status: "completed",
intent: "order",
priority: "routine",
subject : {
reference: "Patient/740365"
}
}
},
{
fullUrl: "ServiceRequest/73374128",
resource : {
resourceType: "ServiceRequest",
id: "73374128",
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
identifier : [
{
system: https://www.azturnhout.be/ ,
value: "73374128"
}
],
status: "completed",
intent: "order",
priority: "routine",
subject : {
reference: "Patient/740365"
}
}
},
{
fullUrl: "ServiceRequest/76409404",
resource : {
resourceType: "ServiceRequest",
id: "76409404",
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
identifier : [
{
system: https://www.azturnhout.be/ ,
value: "76409404"
}
],
status: "completed",
intent: "order",
priority: "routine",
subject : {
reference: "Patient/740365"
}
}
},
{
fullUrl: "Observation/68304285",
resource : {
resourceType: "Observation",
id: "68304285",
meta : {
profile : [
https://www.ehealth.fgov.be/standards/fhir/lab/StructureDefinition/be-observation-laboratory
]
},
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
basedOn : [
{
reference: "ServiceRequest/73374134"
}
],
status: "final",
code : {
coding : [
{
system: https://www.azturnhout.be/ ,
code: "IND.kwl.hem"
}
],
text: "Hemolytische index"
},
subject : {
reference: "Patient/740365"
},
issued: "2023-11-15T16:16:50.000+01:00",
valueString: "Niet hem.",
specimen : {
reference: "Specimen/202346244202"
}
}
},
{
fullUrl: "Observation/68304286",
resource : {
resourceType: "Observation",
id: "68304286",
meta : {
profile : [
https://www.ehealth.fgov.be/standards/fhir/lab/StructureDefinition/be-observation-laboratory
]
},
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
basedOn : [
{
reference: "ServiceRequest/73374136"
}
],
status: "final",
code : {
coding : [
{
system: https://www.azturnhout.be/ ,
code: "IND.kwl.ict"
}
],
text: "Icterische index"
},
subject : {
reference: "Patient/740365"
},
issued: "2023-11-15T16:16:51.000+01:00",
valueString: "Niet ict.",
specimen : {
reference: "Specimen/202346244202"
}
}
},
{
fullUrl: "Observation/68304287",
resource : {
resourceType: "Observation",
id: "68304287",
meta : {
profile : [
https://www.ehealth.fgov.be/standards/fhir/lab/StructureDefinition/be-observation-laboratory
]
},
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
basedOn : [
{
reference: "ServiceRequest/73374138"
}
],
status: "final",
code : {
coding : [
{
system: https://www.azturnhout.be/ ,
code: "IND.kwl.lip"
}
],
text: "Lipemische index"
},
subject : {
reference: "Patient/740365"
},
issued: "2023-11-15T16:16:53.000+01:00",
valueString: "Niet lip.",
specimen : {
reference: "Specimen/202346244202"
}
}
},
{
fullUrl: "Observation/68304281",
resource : {
resourceType: "Observation",
id: "68304281",
meta : {
profile : [
https://www.ehealth.fgov.be/standards/fhir/lab/StructureDefinition/be-observation-laboratory
]
},
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
basedOn : [
{
reference: "ServiceRequest/73374126"
}
],
status: "corrected",
code : {
coding : [
{
system: http://loinc.org/ ,
code: "2345-7"
}
],
text: "Glucose"
},
subject : {
reference: "Patient/740365"
},
issued: "2024-01-10T16:12:56.000+01:00",
valueQuantity : {
value: 70,
system: http://unitsofmeasure.org/ ,
code: "mg/dL"
},
note : [
{
text: "Niet nuchter
Resultaat onder voorbehoud: staalstabiliteit overschreden."
},
{
extension : [
{
url: https://www.ehealth.fgov.be/standards/fhir/lab/StructureDefinition/annotation-code ,
valueCodeableConcept : {
coding : [
{
system: https://www.ehealth.fgov.be/standards/fhir/lab/CodeSystem/be-cs-coded-annotation-types ,
code: "lab-test-accreditation"
}
]
}
}
],
text: "B"
}
],
specimen : {
reference: "Specimen/202346244202"
},
referenceRange : [
{
low : {
value: 65,
system: http://unitsofmeasure.org/ ,
code: "mg/dL"
},
high : {
value: 100,
system: http://unitsofmeasure.org/ ,
code: "mg/dL"
}
}
]
}
},
{
fullUrl: "Observation/68304283",
resource : {
resourceType: "Observation",
id: "68304283",
meta : {
profile : [
https://www.ehealth.fgov.be/standards/fhir/lab/StructureDefinition/be-observation-laboratory
]
},
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
basedOn : [
{
reference: "ServiceRequest/73374128"
}
],
status: "corrected",
code : {
coding : [
{
system: http://loinc.org/ ,
code: "59261-8"
}
],
text: "HbA1c (IFCC)"
},
subject : {
reference: "Patient/740365"
},
issued: "2024-01-10T16:13:16.000+01:00",
valueQuantity : {
value: 5,
system: http://unitsofmeasure.org/ ,
code: "mmol/mol{Hb}"
},
note : [
{
text: "Streefwaarde < 53 mmol/mol"
}
],
specimen : {
reference: "Specimen/202346244201"
},
referenceRange : [
{
high : {
value: 39,
system: http://unitsofmeasure.org/ ,
code: "mmol/mol{Hb}"
}
}
]
}
},
{
fullUrl: "Observation/68304282",
resource : {
resourceType: "Observation",
id: "68304282",
meta : {
profile : [
https://www.ehealth.fgov.be/standards/fhir/lab/StructureDefinition/be-observation-laboratory
]
},
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
basedOn : [
{
reference: "ServiceRequest/73374128"
}
],
status: "corrected",
code : {
coding : [
{
system: http://loinc.org/ ,
code: "4548-4"
}
],
text: "HbA1c (DCCT)"
},
subject : {
reference: "Patient/740365"
},
issued: "2024-01-10T16:13:16.000+01:00",
valueQuantity : {
value: 2.6,
system: http://unitsofmeasure.org/ ,
code: "%"
},
specimen : {
reference: "Specimen/202346244201"
},
referenceRange : [
{
high : {
value: 5.7,
system: http://unitsofmeasure.org/ ,
code: "%"
}
}
]
}
},
{
fullUrl: "Observation/71180837",
resource : {
resourceType: "Observation",
id: "71180837",
meta : {
profile : [
https://www.ehealth.fgov.be/standards/fhir/lab/StructureDefinition/be-observation-laboratory
]
},
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
basedOn : [
{
reference: "ServiceRequest/76409404"
}
],
status: "corrected",
code : {
coding : [
{
system: https://www.azturnhout.be/ ,
code: "eAG"
}
],
text: "Berekende gem. glycemie"
},
subject : {
reference: "Patient/740365"
},
issued: "2024-01-10T16:13:16.000+01:00",
valueQuantity : {
value: 29,
system: http://unitsofmeasure.org/ ,
code: "mg/dL"
},
interpretation : [
{
coding : [
{
system: http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation ,
code: "L"
}
]
}
],
specimen : {
reference: "Specimen/202346244201"
}
}
},
{
fullUrl: "Specimen/202346244202",
resource : {
resourceType: "Specimen",
id: "202346244202",
meta : {
profile : [
https://www.ehealth.fgov.be/standards/fhir/lab/StructureDefinition/be-specimen-laboratory
]
},
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
identifier : [
{
system: https://www.azturnhout.be/ ,
value: "202346244202"
}
],
status: "available",
type : {
coding : [
{
system: http://snomed.info/sct ,
code: "119297000"
}
],
text: "Serum"
},
subject : {
reference: "Patient/740365"
},
receivedTime: "2023-11-15T16:16:50+01:00",
request : [
{
reference: "ServiceRequest/73374134"
}
],
collection : {
collectedDateTime: "2023-11-15T16:16:00+01:00"
}
}
},
{
fullUrl: "Specimen/202346244201",
resource : {
resourceType: "Specimen",
id: "202346244201",
meta : {
profile : [
https://www.ehealth.fgov.be/standards/fhir/lab/StructureDefinition/be-specimen-laboratory
]
},
text : {
status: "empty",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty "
},
identifier : [
{
system: https://www.azturnhout.be/ ,
value: "202346244201"
}
],
status: "available",
type : {
coding : [
{
system: http://snomed.info/sct ,
code: "119297000"
}
],
text: "Bloed EDTA"
},
subject : {
reference: "Patient/740365"
},
receivedTime: "2023-11-15T16:16:46+01:00",
request : [
{
reference: "ServiceRequest/73374128"
}
],
collection : {
collectedDateTime: "2023-11-15T16:16:00+01:00"
}
}
}
]
}_
And this is the error I get back :
{
fhirpath : [
{
actual: false,
field: "Bundle.entry.where(resource is Observation).resource.where(code.coding.system = 'http://loinc.org ' and code.coding.code = '59261-8').where((value as Quantity).value = 33 and ((value as Quantity).code = 'mmol/mol' or (value as Quantity).code.startsWith('mmol/mol{'))).exists()",
expected: true
},
{
actual: false,
field: "Bundle.entry.where(resource is Observation).resource.where(code.coding.system = 'http://loinc.org ' and code.coding.code = '4548-4').where((value as Quantity).value = 5.2 and (value as Quantity).code = '%').exists()",
expected: true
}
]
}
Can you help me to find out what is wrong with the file I'm sending ?
Good afternoon,
This is the file I'm sending for Testcase 2A3 :
_{ resourceType: "Bundle", identifier: { system: https://www.ehealth.fgov.be/lab-report/bundle-id, value: "81361818998.8e8b4225-2676-46f6-b85b-4c214807d571" }, type: "document", timestamp: "2024-01-18T11:14:44.281+01:00", entry: [ { fullUrl: "Composition/9952066", resource: { resourceType: "Composition", id: "9952066", meta: { profile: [ https://www.ehealth.fgov.be/standards/fhir/lab/StructureDefinition/be-laboratory-report-composition ] }, text: { status: "empty", div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty