I am sending a data to ‘http://domain/apis/fhir/Patient’ using post request,
I am sending FHIR object in JSON, and server responds with 200 OK, however the data is not saved into DB.
Current Fhir api doesn’t allow create or updates(Post/Put). You’re more than welcome to add to the api services if you’re in a developers frame of mind.
Thanks for your answer,
Actually I already looked at the code and find out that it’s not supported, however it can be implemented.
I’ll write a code to implement Fhir Observation POST/PUT method, which is the only thing we need for now.
I have read it but it does not have put routines for observations.
Is there a more recent documentation?
Is there some other way?
Do I have to implement it my self ?
@Christoforos_Korifid What kind of data are you attempting to save? Observation is one of the most complicated FHIR resources because it maps onto many different underlying data models / constructs in the OpenEMR system. We currently support read only access to vitals observations, social history observations, and lab result observations.
If you want to create any of those underlying data elements you will need to implement that yourself. I’d be happy to review a pull request and incorporate it into the main OpenEMR codebase if you want to take on that task.