medic / cht-interoperability

CHT - eCHIS interoperability project
GNU Affero General Public License v3.0
2 stars 3 forks source link

Mediator endpoint to create patient in FHIR server #5

Closed njogz closed 1 year ago

njogz commented 1 year ago

Create an endpoint in the OpenHIM mediator that creates a patient in the FHIR server

lorerod commented 1 year ago

Hi @njogz, I'm trying to test this and have some doubts. I'm trying with a POST on http://localhost:5001/mediator/patient with a JSON body containing:{ "name": "Lorena" } I'm getting 404 - NOT FOUND.

Also, I need help finding instructions on how to connect my CHT instance to the mediator. So I can test all the circuits.

njogz commented 1 year ago

Hi Lorena there is an issue with the OpenHIM forwarding requests to the mediator which is being looked at in this issue. IN the meantime you can call the mediator directly through http://localhost:6000/patient

samuelimoisili commented 1 year ago

The bug fix has been fixed and merged, @lorerod you can test this feature now.

lorerod commented 1 year ago

Done @njogz @samuelimoisili. Tested on issue