# Push OpenEMR data to External FHIR Server

**URL:** <https://community.open-emr.org/t/push-openemr-data-to-external-fhir-server/17841>\
**Category:** OpenEMR Development\
**Tags:** question\
**Created:** [February 11, 2022, 1:05pm UTC](https://community.open-emr.org/t/push-openemr-data-to-external-fhir-server/17841 "2022-02-11T13:05:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veena\_Jayan](https://community.open-emr.org/user_avatar/community.open-emr.org/veena_jayan/32/16743_2.png) [@Veena\_Jayan](https://community.open-emr.org/u/Veena_Jayan)\
**Post date:** [February 11, 2022, 1:05pm UTC](https://community.open-emr.org/t/push-openemr-data-to-external-fhir-server/17841/1 "2022-02-11T13:05:06Z")

</div>

I am using OpenEMR 6.1.0, with MariaDB 10.4.  
I am able to add a new patient and add relevat clinical data.  
I am looking for exporting the patient data to a FHIR server, say “[Swagger UI](https://hapi.fhir.org/baseR4)”  
I configured FHIR server address as _“Site Address Override (if needed for OAuth2, FHIR or CCDA)”_ in Connectors Tab(under Administration-\>Global Settings, )  
And enabled other checkboxes related to openemr and FHIR rest api.

As a next step, I was looking for “Publish” option in dashboard. It is not displayed in Dashboard tabs.  
Please let me know how to publish data to FHIR server ?  
Enable Oauth2 password grant is configured as “off”

I am looking for an option to export/publish data to a FHIR server via UI

 ![Dashboard](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/d/1/d115320e152dd2b323f2f353848608d8f4d6bd34.png)

---

<div class="post-metadata">

**Author:** ![adunsulag](https://community.open-emr.org/user_avatar/community.open-emr.org/adunsulag/32/12606_2.png) [@adunsulag](https://community.open-emr.org/u/adunsulag)\
**Post date:** [February 11, 2022, 2:01pm UTC](https://community.open-emr.org/t/push-openemr-data-to-external-fhir-server/17841/2 "2022-02-11T14:01:35Z")

</div>

@Veena_Jayan we don’t have a button from the GUI to push data to another FHIR server. Currently the $export operation is supported in OpenEMR but there is nothing on the GUI that allows you to do this.

If you have development skills or want to contract a developer to do this, you can build your own SMART on FHIR app to accomplish this functionality using either the $export operation or just iterating through all of the OpenEMR supported resources and using HAPI’s POST/PUT operations to export your data.

---

<div class="post-metadata">

**Author:** ![Veena\_Jayan](https://community.open-emr.org/user_avatar/community.open-emr.org/veena_jayan/32/16743_2.png) [@Veena\_Jayan](https://community.open-emr.org/u/Veena_Jayan)\
**Post date:** [February 12, 2022, 4:49pm UTC](https://community.open-emr.org/t/push-openemr-data-to-external-fhir-server/17841/3 "2022-02-12T16:49:59Z")

</div>

Thanks @adunsulag .I can explore the proposed option of iterating through the resources and posting to Hapi FHIR server.  
I guess the api documentation is available at [https://github.com/openemr/openemr/blob/master/FHIR\_README.md#bulk-fhir-exports](https://github.com/openemr/openemr/blob/master/FHIR_README.md#bulk-fhir-exports)  
Let me explore and get back.

---

<div class="post-metadata">

**Author:** ![Nilesh\_Hake](https://community.open-emr.org/user_avatar/community.open-emr.org/nilesh_hake/32/13927_2.png) [@Nilesh\_Hake](https://community.open-emr.org/u/Nilesh_Hake)\
**Post date:** [February 14, 2022, 5:08pm UTC](https://community.open-emr.org/t/push-openemr-data-to-external-fhir-server/17841/4 "2022-02-14T17:08:06Z")

</div>

@Veena_Jayan I have exported data to FHIR for the one of the client using two way crone job and writing separate API for this to end point and that code doing the authentication into OpenEMR and process FHIR on daily basis
