Hi guys, Hope you are all well! I need help with m...
# general
i
Hi guys, Hope you are all well! I need help with my medplum integration which I got as an assignment , I have been working on setting up medplum with the help of the documentation on GitHub. I can now access the medplum ui using my browser after running the npm run dev command in my terminal, pls is there a way that I can set it up so that the patient resources or other resources I create in the medplum ui can be sent to my hapi fhir server. I have my hapi fhir server and medplum running in docker containers but donโ€™t know how to set it up. Iโ€™d appreciate if anyone can tell me what to do, Thanks!
r
Happy to help! I have a couple clarifications to ask
i
Thank you!
r
It your goal to automatically create a patient in HAPI as soon as it's created in Medplum
i
Yes it is
r
and do you just want to copy the initial patient, or also send updates every time it's updated in Medplum?
i
I want it to update the hapi whenever the resources is updated in medplum
r
So I think the best feature for you would be to set up a FHIR subscription: https://www.medplum.com/docs/subscriptions/publish-and-subscribe#setting-up-the-subscription
You can set up a "rest-hook", with the endpoint being your HAPI API
Once you set the Subscription to "active", it will make a rest call to your HAPI server everytime there is a Patient creation/update
i
Thank you so much
This is exactly what Iโ€™ve been looking for
๐Ÿ™๐Ÿฝ๐Ÿ™๐Ÿฝ
r
You're welome!
i
It worked, thanks again.
r
@insane_dev - will your implementation for your assignment be open source? Is it a school assignment?
177 Views