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,
						"expanded": true
                },
                "hidden": {
                    "attributes": [
                        "RationCard","cluster"
                    ]
                },
                "defaults":  {
  				    "class" : "General",
    			    "caste" : "Thakur",
    			    "isUrban" : true
    			}
            }

...

These sections in the patientInformation will be shown in the order of "order" value that is present in the configuration. If some of the sections have the order value and other sections do not have the order value then all the sections with order value will be shown, while default behavior for the remaining sections will function As-Is. If none of the sections have order value, then default behavior(that is alphabetical order) will be displayed.Please refer to the above code snippet for an example of the same

Expand a section by default

The sections will be collapsed on the registration "Create New" page. If any of the sections needed to be expanded on opening the page, "expanded : true" should be specified in the section(see above config for example).