nhsconnect / careconnect-reference-implementation

A reference implementation server for the CareConnect API and Care Connect FHIR Validation
Apache License 2.0
26 stars 15 forks source link

MedicationStatement not return #69

Open KelvinKaYiuLok opened 5 years ago

KelvinKaYiuLok commented 5 years ago

This GET request https://data.developer.nhs.uk/ccri-fhir/STU3/MedicationStatement?patient=1010&_format=json will return the payload of the MedicationStatement where the patient logical id is 1010. However, this GET request https://data.developer.nhs.uk/ccri-fhir/STU3/Patient?_id=1010&_format=json&_revinclude=MedicationStatement:patient returns the patient with the logical id of 1010 but the MedicationStatement payload does not return.

KevinMayfield commented 5 years ago

Suggest support for this is removed as it doesn't make sense operationally without parameters. (If current medication is required it should really be a FHIR operation)

It is not recommended in Care Connect Query API, so no issue there.

sufyanpat commented 5 years ago

I think it would be useful to find relating resources for a specific patient. The _revinclude operation in the above statement works fine on other HAPI servers.