-
Notifications
You must be signed in to change notification settings - Fork 22
Returned FHIR Bundle contains "0" search results #521
Description
On connecting fhir-bridge to Better platform,
I tried a generic search for condition, expecting anything "WHERE c/name/value='Diagnose'" using the call below;
"http://localhost:8888/fhir-bridge/fhir/Condition?"
However, the server responds with an empty Searchset Bundle.
{
"resourceType": "Bundle",
"id": "f3b42a1b-6950-4cc8-8b36-d6265bbec2dc",
"meta": {
"lastUpdated": "2021-10-21T19:32:27.692+02:00"
},
"type": "searchset",
"total": 0,
"link": [ {
"relation": "self",
"url": "http://localhost:8888/fhir-bridge/fhir/Condition"
} ]
}
Could it be that despite having established connection to better platform, fhir-bridge does not see the compositions created in the repository.
#2ndly,
Else it would also be nice to have special calls for views created in the repository. e.g
such a view below creates a proper and well formatted result which can easily mapped onto the Condition FHIR Profile.
SELECT c/uid/value AS Composition_ID, e/ehr_id/value AS EHRID, e/ehr_status/subject/external_ref/id/value AS SubjectID, e/ehr_status/subject/external_ref/namespace AS subjectNamespace, c/composer/name AS Composer, c/composer/external_ref/namespace AS composerNamespace, c/composer/external_ref/id/value AS composerId, c/name/value AS ResourceName, c/archetype_details/template_id/value AS TemplateID, c/context/start_time/value AS compositionStartTime, y/items[at0063]/value/value AS Category, s/data[at0001]/items[at0003,'Feststellungsdatum']/value/value AS RecordingDate, s/data[at0001]/items[at0002,'Kodierte Diagnose']/value/value AS DiagnoseDisplay, s/data[at0001]/items[at0002,'Kodierte Diagnose']/value/defining_code/code_string AS Code, s/data[at0001]/items[at0002,'Kodierte Diagnose']/value/defining_code/terminology_id/value AS CodyingSystem, l/items[at0002,'Diagnosetyp']/value/value AS DiagnoseType, s/data[at0001]/items[at0002,'Kodierte Diagnose']/value/hyperlink/value AS CodeURL FROM EHR e CONTAINS COMPOSITION c[openEHR-EHR-COMPOSITION.report.v1] CONTAINS (EVALUATION s[openEHR-EHR-EVALUATION.problem_diagnosis.v1] CONTAINS (CLUSTER l[openEHR-EHR-CLUSTER.entry_category.v0]) and CLUSTER y[openEHR-EHR-CLUSTER.problem_qualifier.v1]) WHERE c/name/value='Diagnose' OFFSET 0 LIMIT 10