AuDigitalHealth / medserve

FHIR Medication server that makes it easy to make medicines terminology content available as a local service.
https://medserve.online
Other
21 stars 7 forks source link

Get request for Medication resources returns json+fhir not fhir+json #7

Open dionmcm opened 7 years ago

dionmcm commented 7 years ago

Originally reported by Dion McMurtrie (Bitbucket: dion_mcmurtrie, GitHub: Unknown)


Strangely requests for everything on the server

All return application/fhir+json as expected for STU3 except for get requests for Medication resources by identifier, which return application/json+fhir.

Very strange, needs investigation...


dionmcm commented 6 years ago

Original comment by Dion McMurtrie (Bitbucket: dion_mcmurtrie, GitHub: Unknown)


Thanks John, that's great. I'll leave it open until the HAPI release is taken in medserve.

dionmcm commented 6 years ago

Original comment by John Grimes (Bitbucket: j0hngr1mes, GitHub: Unknown)


This has now been fixed upstream and will be in the next HAPI release.

dionmcm commented 6 years ago

Original comment by John Grimes (Bitbucket: j0hngr1mes, GitHub: Unknown)


I have opened this issue against hapi-fhir: https://github.com/jamesagnew/hapi-fhir/issues/837

dionmcm commented 6 years ago

Original comment by John Grimes (Bitbucket: j0hngr1mes, GitHub: Unknown)


It is influenced by the Accept header:

Note that currently the "Medication get by id" request within the Postman collection is set up with Accept: application/json+fhir.