/mirth-fhir

MirthConnect - Custom Fhir implementation helps you do coding on the FHIR resources. It is very simple to use.

Apache License 2.0Apache-2.0

MirthConnect - Custom Fhir implementation

MirthConnect - Custom Fhir implementation helps you do coding on the FHIR resources. It is very simple to use.

How to?

MirthConnect Server

  • Download the Jar mirth-fhir1.0.0.jar to MirthConnect server
  • Navigate to home folder of MirthConnect
  • Open custom-lib folder
  • Put the downloaded mirth-fhir1.0.0.jar inside custom-lib folder.

MirthConnect Administrator

  • Log in to your MirthConnect Administrator.
  • Click on Setting from the side window
  • From the main content navigate to Resources Tab.
  • Click on Reload resource from the side window.
  • Click Yes on the confirmation window to let MirthConnect know mirth-fhir1.0.0.jar is loaded

MirthConnect Code Library

  • Download Fhir.xml to your desktop
  • Click Dashboard on the side window
  • Click Channels on the side window
  • Click on Edit Code Templates on the side window
  • Click on Import Code Templates
  • Select Fhir.xml from your desktop and Click Open

MirthConnect Channels

  • On your Channel Summary, make sure you have Set Dependencies with imported(Fhir) Code Template library.
  • In your Javascript you can initiate the fhirObject as given below
var fhir = new fhirObj().init("cerner","DSTU2");

Documentation on methods and it's usage

  1. The getPatientFull(PatientID) method will return full details about the patient which includes all the sections.
fhir.getPatientFull("100000006")
  1. The getPatientDemographics(PatientID) method will return Demographics of the patient.
fhir.getPatientDemographics("100000006")
  1. The getUserList("Patient") method will return list of all patients.
fhir.getUserList("Patient")
  1. The getUserList("Practitioner") method will return list of all practitioners.
fhir.getUserList("Practitioner")
  1. The getPatientResourceList(PatientID,"AllergyIntolerance") method will return AllergyIntolerance of the patient.
fhir.getPatientResourceList("100000006","AllergyIntolerance")
  1. The getPatientResourceList(PatientID,"Appointment") method will return Appointment of the patient.
fhir.getPatientResourceList("100000006","Appointment")
  1. The getPatientResourceList(PatientID,"Condition") method will return Condition of the patient.
fhir.getPatientResourceList("100000006","Condition")
  1. The getPatientResourceList(PatientID,"DiagnosticReport") method will return DiagnosticReport of the patient.
fhir.getPatientResourceList("100000006","DiagnosticReport")
  1. The getPatientResourceList(PatientID,"DocumentReference") method will return DocumentReference of the patient.
fhir.getPatientResourceList("100000006","DocumentReference")
  1. The getPatientResourceList(PatientID,"Encounter") method will return Encounter of the patient.
fhir.getPatientResourceList("100000006","Encounter")
  1. The getPatientResourceList(PatientID,"Immunization") method will return Immunization of the patient.
fhir.getPatientResourceList("100000006","Immunization")
  1. The getPatientResourceList(PatientID,"MedicationOrder") method will return Medication of the patient.
fhir.getPatientResourceList("100000006","MedicationOrder")
  1. The getPatientResourceList(PatientID,"Observation") method will return Observation of the patient.
fhir.getPatientResourceList("100000006","Observation")

👍 ✨ 🐫 🎉 🚀 🤘 :octocat: HAPPY CODING 👍 ✨ 🐫 🎉 🚀 🤘 :octocat: