hl7-be / lab

Creative Commons Zero v1.0 Universal
6 stars 9 forks source link

Case 1C failed : diagnostic-report-id and bundle-id #231

Open khackincita opened 11 months ago

khackincita commented 11 months ago

Here is my json file for the test case 1C 1C.json

It failes for these reasons :

field: "Bundle.identifier.where(system = 'https://www.ehealth.fgov.be/lab-report/bundle-id').value.substring(0,11) contains Bundle.entry.where(resource is Organization).resource.identifier.where(system = 'https://www.ehealth.fgov.be/standards/fhir/core/NamingSystem/nihdi' ).value.toString()",
expected: true
field: "Bundle.entry.where(resource is DiagnosticReport).resource.identifier.where(system = 'https://www.ehealth.fgov.be/lab-report/diagnostic-report-id').value.substring(0,11) contains Bundle.entry.where(resource is Organization).resource.identifier.where(system = 'https://www.ehealth.fgov.be/standards/fhir/core/NamingSystem/nihdi' ).value.toString()",
expected: true

In the documentation, it is not mentioned that we need to put the organization identifier as the first part of the bundle-id. https://www.ehealth.fgov.be/standards/fhir/lab/1.0.0/NamingSystem-be-ns-lab-report-bundle-id.html

Where can I found the documentation that explain this structure of this identification ? I need it to forward to our LIS provider.

khackincita commented 11 months ago

I think I found : https://www.ehealth.fgov.be/standards/fhir/lab/1.0.0/StructureDefinition-be-laboratory-report-definitions.html#DiagnosticReport.identifier:DRID

The identifier SHALL at least contain 1 identifier of type BeLabReportDiagnosticReportId. The unicity of this identifier is guaranteed by using the NIHDI number of the lab and a unique number for that lab, separated by a dot.

bdc-ehealth commented 11 months ago

@khackincita

The decision is documented here: https://github.com/hl7-be/lab/issues/18

khackincita commented 11 months ago

Thank you. I will open an issue to our LIS software supplier.