eug48 / fhir

FHIR Server using MongoDB and Go - now with proper transactions support! Aims to start quickly, have modest resource requirements and good performance.
Apache License 2.0
69 stars 16 forks source link

Enable searching through all resources #3

Closed 0xmichalis closed 5 years ago

0xmichalis commented 5 years ago

According to the FHIR search spec, seaching all resources that match a provided parameter is possible:

All resource types: GET [base]?parameter(s) (parameters common to all types). If the _type parameter is included, all other search parameters SHALL be common to all provided types. If _type is not included, all parameters SHALL be common to all resource types.

https://www.hl7.org/fhir/search.html#Introduction

Currently, it doesn't seem that this is supported in this server implementation.

Alternatively, what other ways do I have currently to GET all resources specific to a Patient?

eug48 commented 5 years ago

GoFHIR does support GET /Patient/id/$everything. It is implemented in EverythingHandler as Patient?_id=%s&_include=*&_revinclude=*

0xmichalis commented 5 years ago

@eug48 thanks, $everything made the trick!