Forms Display Control

Purpose

It is used to list the Forms or Observation Templates that have been created within the configured number visits with a provision to view details and edit from/template from this control.

Screenshot

Note

In the above screenshot, Baseline and Treatment Initiation are the two forms filled. The other templates that are configured in the below sample config are "Baseline","Treatment Initiation","Serious Adverse Events Template","Pregnancy Report Form Template"

How to Edit the Template/Form ?

To edit a particular form/template from this control, click on the pencil icon displayed against a particular form/template. Please refer above screenshot.

How to View the Form/Template ?

To view a particular form and the observations captured for that form via this control, click on the eye icon against a particular form. Please refer above screenshot.


Configuration

Sample Config

Add to clinical/dashboard.json for it to appear on the patient dashboard
"adverseEventsForms": {
	"type": "forms",
    "displayOrder": 6,
    "dashboardConfig": {
        "maximumNoOfVisits": 10
    },
    "formGroup":["Baseline","Treatment Initiation","Serious Adverse Events Template","Pregnancy Report Form Template"],
    "translationKey": "DASHBOARD_TITLE_BASELINE_FORMS",
    "hideEmptyDisplayControl": false
}

Key Field Table

KeyInfoMandatory

type

Indicates the display control.

For Forms Control, value of type should be "forms"

Y

maximumNoOfVisits

Specifies the maximum number of visits for which to display data

N

dashboardConfig

Indicates that all the configurations mentioned under this are for the patient dashboard

Y

displayOrder

The order in which the display control will be displayed

N

translationKey

Internationalizes the display control

Y

formGroup

Observation templates that will be visible.

N
hideEmptyDisplayControlHides the display control if no value is present for it when set to true, default value is set to falseN

Display only date without time

Purpose

This configuration is used to display just date with out time on Forms Display Control.

Default behaviour

By default it will show both date and time.

Where to Configure ?

Add the configuration in clinical,app.json under the config section.

Sample Config

To be added in clinical, app.json under config section
"config" : {
"showFormsDate" : true
}

Key Field Table

KeyDescriptionNote
showFormsDate

Determines whether only date (without time) is to be displayed or not

  • By default both date and time are shown.
  • If value is set to false, only date is shown

The Bahmni documentation is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)