Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

These are functions that can be invoked/called from HTML forms via ajax/javascript to get specific historical data or settings that will be manipulated to pre-fill fields or add logic to the forms 

  • isMedicalRecordNumberRequired()

- This functions can be called to check if the medical record number is required in order to add a validation check to a field.

         - It takes no parameter 

         - Its return type is a boolean (true, false)


  • getConcepts()

- This function is used to get all the concepts downloaded to the mobile application.

         - It takes no parameter/argument and returns a JSON formatted as a string.


  • getEncounterTypes(String patientuuid)

         - This function will retrieve all encounter types that are available on the mobile device for the specific patient

         - It takes in patient-UUID (String) and returns a JSON formatted string (String).


  • getEncountersByPatientUuid(String patientuuid)

         - The function will return all encounters on the mobile device for the given patient

         - It takes patient-UUID (String)  and returns a JSON formatted string (String)


  • getObsByConceptId(String patientUuid, int conceptId) 

         - The function will return all observation available on the mobile device for a specific patient and concept.

- It takes in patient-UUID (String)  and concept-id (Integer) as its parameters

- It returns JSON array formatted as a string (String)


  • getObsByEncounterId(int encounterid) 

-The function will return all observations available on the mobile device for the supplied encounter

- It takes in the encounter Id as its parameter

         - Returns JSON Array formatted as a string (String)


  • getObsByEncounterType(String patientUuid, String encounterType)

- The function returns all observation available on the mobile device for the supplied patient and encounter type

- Consumes patient-UUID (String) and encounter type (String)

- Returns JSON Array formatted as a string (String)