Medical history
Medical history includes all information shared between professionals and patients: Allergies, Illnesses, Medications, Reports, and Prescriptions.
Prerequisites
In order to use Reports and Prescriptions you must declare Images and Downloads directories in res/xml/file_paths.xml. See the official Google documentation for more information.
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<external-path name="my_images" path="Android/data/YOUR_PACKAGE/files/Pictures" />
<external-path name="downloads" path="Android/data/YOUR_PACKAGE/files/Download" />
</paths>
Open specific sections
Every section can be opened separately, call each method with a valid context parameter.
// Allergies
MediquoSDK.getInstance()?.openAllergiesActivity(this)
// Diseases
MediquoSDK.getInstance()?.openDiseasesActivity(this)
// Medications
MediquoSDK.getInstance()?.openMedicationsActivity(this)
// Reports
MediquoSDK.getInstance()?.openReportsActivity(this)
// Prescriptions
MediquoSDK.getInstance()?.openPrescriptionsActivity(this)
Open all sections launcher
The SDK also includes a window with all the sections, call this method with a valid context parameter.
MediquoSDK.getInstance()?.openMedicalHistory(this)