Patient Registration Configuration
-What is Patient Registration?
The Patient Registration screen (Android Studio- PatientIdentification.class) is the activity screen of android which consists of a list of various fields required to register the patient related data.
-Why is Patient Registration Configuration needed?
The Intelehealth app has a number of various deployment fields such as (Orissa, Philippines). These deployment fields has their own rules, regulations, culture, ethics, etc. Therefore, there comes a time where we need to configure the patient registration field based on the different deployment fields as some deployment fields may require a few fields whereas doesn’t require the other fields and wants to add their own fields.
-How is Patient Registration screen configured?
There is a config.json file created to configure the patient registration screen as per each deployment fields. Config file is a JSON file that stores data in key-value pairs.
-sample code:
{
"mFirstName":true,
"mMiddleName":false,
"mLastName":true
}
In the above code, the firstname and lastname fields are set to true which means only this fields would be visible to the end user of the app for that specific location. Whereas the field middlename is set to false which states that this field will be hidden for that specific location.
The form to be printed is showing the header1 as Patient Management Plan and the header2 as [Project Name] as it has been predefined in the config.json file in that manner so.
location 1:
middle name value is set to true. Therefore it is displayed in the patient registration form.
country is set to India therefore, it is shown as India in the country spinner.
Location 2:
middle name value is set to false. Therefore it is not displayed in the patient registration form.
Country is set to India therefore, it is shown as India in the country field spinner.
-Where to store the config.json file:
The config.json file has to be stored under the Android directory of our cloned app.
-Steps to configure the config.json file:
config.json file is a deployment specific json file which contains values based on different locations.
To edit → right click on config.json file → open with → notepad.
3. Edit the changes:
a. State the Boolean value as true for each of the required field of the patient registration form which are required.
b. State the Boolean value as false for each of the required field of the patient registration form which are not required.
4. Save the changes made:
Click on File → Save.