MirthConnect - Custom Fhir implementation helps you do coding on the FHIR resources. It is very simple to use.
- 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.
- 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
- 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
- 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");
- The
getPatientFull(PatientID)
method will return full details about the patient which includes all the sections.
fhir.getPatientFull("100000006")
- The
getPatientDemographics(PatientID)
method will return Demographics of the patient.
fhir.getPatientDemographics("100000006")
- The
getUserList("Patient")
method will return list of all patients.
fhir.getUserList("Patient")
- The
getUserList("Practitioner")
method will return list of all practitioners.
fhir.getUserList("Practitioner")
- The
getPatientResourceList(PatientID,"AllergyIntolerance")
method will return AllergyIntolerance of the patient.
fhir.getPatientResourceList("100000006","AllergyIntolerance")
- The
getPatientResourceList(PatientID,"Appointment")
method will return Appointment of the patient.
fhir.getPatientResourceList("100000006","Appointment")
- The
getPatientResourceList(PatientID,"Condition")
method will return Condition of the patient.
fhir.getPatientResourceList("100000006","Condition")
- The
getPatientResourceList(PatientID,"DiagnosticReport")
method will return DiagnosticReport of the patient.
fhir.getPatientResourceList("100000006","DiagnosticReport")
- The
getPatientResourceList(PatientID,"DocumentReference")
method will return DocumentReference of the patient.
fhir.getPatientResourceList("100000006","DocumentReference")
- The
getPatientResourceList(PatientID,"Encounter")
method will return Encounter of the patient.
fhir.getPatientResourceList("100000006","Encounter")
- The
getPatientResourceList(PatientID,"Immunization")
method will return Immunization of the patient.
fhir.getPatientResourceList("100000006","Immunization")
- The
getPatientResourceList(PatientID,"MedicationOrder")
method will return Medication of the patient.
fhir.getPatientResourceList("100000006","MedicationOrder")
- The
getPatientResourceList(PatientID,"Observation")
method will return Observation of the patient.
fhir.getPatientResourceList("100000006","Observation")
👍 ✨ 🐫 🎉 🚀 🤘 HAPPY CODING 👍 ✨ 🐫 🎉 🚀 🤘