Versions Compared

Key

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

...

Code Block
languagejs
titlePatient Information Configuration
		"patientInformation": {
                "additionalPatientInformation": {
                    "title": "Additional Patient Information",
                    "attributes": [
                        "distanceFromCenter",
                        "isUrban",
                        "cluster"
                    ],
                    "order" : 1
                },
                "patientFinancialInformation": {
                    "translationKey": "REGISTRATION_FINANCIAL_INFO_KEY",
                    "shortcutKey": "REGISTRATION_FINANCIAL_ACCESS_KEY",
                    "attributes": ["familyIncome", "debt"],
                    "order" : 2
                },
                "hidden": {
                    "attributes": [
                        "RationCard","cluster"
                    ]
                },
                "defaults":  {
  				    "class" : "General",
    			    "caste" : "Thakur",
    			    "isUrban" : true
    			}
            }

...

Configuring Display Order of Sections in Registration:

There can be multiple sections like "additionalPatientInformation", "patientFinancialInformation", etc. Each section can have the related patient attributes like - "familyIncome", "debt", etc; and title and/or translation key and a shortcut/access key.  "hidden" is a special section which holds contains the patient attributes that should not be shown. So "Other Information" will now contain:

"Other Information" attributes = Attributes that are not present in any of the section sections minus attributes specified in the hidden section.

"defaults" - this This section holds the default value attributes to be populated in registration page Registration Page for the patient attributes Patient Attributes . Default values datatypes can be applied to any type of patient attribute exPatient Attributes. For example:-concept, string, integer, boolean.

These patient attributes will be shown in the order of "order" value that is present in the configuration. If some of the fields having have the order value and some of the fields do not having have the order value then all the attributes that is having with order value will be shown, then while default behavior for the remaining attributes will function As-Is. If none of the attributes are having order value, then default behavior(that is alphabetical order) will be displayed.