Flow Chart
Here is the complete flow of the offline MMU APIs.

Developed a set of APIs to manage facility users and reports. These APIs allow for retrieving facility user lists, adding new users, generating reports, and uploading reports to a storage.
When accessing data through offline APIs, you typically need to include an authorized token in the header of each API request. This token is generated by an IAM service to authenticate valid clients. View API
APIs Flow
To access patient data through developer APIs, you typically need a patient ID and confirmation that the data resides within the facility you're authorized to access. Facility lists can be obtained using a client ID.
Step 1 (GET Request for Facilities List)
If you only have a client ID and need facility details, you can call the API to retrieve a list of facilities associated with that client ID. However, having facility data readily available is preferred to avoid unnecessary API calls. View API
Step 2 (GET Request for Patient List)
Retrieve a list of patients for a specific facility, call the API with the facility ID. View API
Step 3 (GET Request for Resources)
Retrieve the list of resources associated with the designated facilities by using the facility provided in the parameters and ensuring the presence of a valid token in the headers. View API
Step 4 (Post Request for Pharmacy Drug Set)
Retrieve the list of drugs associated with the designated pharmacy drug sets by using the drug set id provided in the parameters and ensuring the presence of a valid token in the headers. View API
Step 5 (Post Request for Lab Investigation Set)
Retrieve the list of lab investigations associated with the designated lab investigations sets by using the invSetId provided in the parameters and ensuring the presence of a valid token in the headers. View API
Step 6 (GET Request for Reports List)
Retrieve the patient reports from the facilities identified in the previous step, utilizing the patient IDs for accurate data extraction. View API
Step 7 (Post Request for New Patient)
If a patient's information isn't found within the facility's data system, you can add them using this API. This API requires both the patient's details and the facility's information. Upon successful registration, the API will return a unique patient identification. View API
Step 8 (Post Request for Add Reports)
Utilize this API to upload documents or images along with their corresponding report details, including MedexUID, report type, reporting date, and report generation date, to the database seamlessly. View API