smart-launcher icon indicating copy to clipboard operation
smart-launcher copied to clipboard

DiagnosticReport posted for newly posted Patient is not found by standard search methods using information from Patient

Open NACHC-CAD opened this issue 1 year ago • 0 comments

I'm trying to find DiagnosticReport resources for a given patient using the SmartHealthIt R4 server for testing (https://r4.smarthealthit.org/).

I've loaded a new Patient and new DiagnosticReport using the id of the patient, for example:

A Patient resource that contains this: "resourceType": "Patient", "id": "1435573",

And a DiagnosticReport that has this:

"subject": { "reference": "Patient/1435573" }

None of these searches returns the DiagnosticReport. The queries below are based on Hapi FHIR: searching for patient identifier using Postman. All of the queries give basically an empty bundle (contains only the self url) except for the last that gives an invalid query error.

Queries:

https://r4.smarthealthit.org/DiagnosticReport?subject=1435573

https://r4.smarthealthit.org/DiagnosticReport?patient.identifier=1435573

https://r4.smarthealthit.org/DiagnosticReport?subject=Patient/1435573

https://r4.smarthealthit.org/DiagnosticReport?subject=https://r4.smarthealthit.org/Patient/1435573

https://r4.smarthealthit.org/DiagnosticReport?subject=http://r4.smarthealthit.org/Patient/1435573

https://r4.smarthealthit.org/DiagnosticReport?subject.reference=1435573 (invalid parameter chain error)

More details are available here: https://stackoverflow.com/questions/74510589/fhir-not-finding-diagnosticreport-for-patient-id-on-smarthealthit-server

NACHC-CAD avatar Nov 24 '22 12:11 NACHC-CAD