Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Context:
The medication tab layout is configurable. Available configurations:
- The implementer can define a selected list of drugs that belong to a concept set to be displayed on the top portion.
- The fields on the drug order form can be configured at the tab level.
- The display of drugs below the drug order form is configurable as the default view or custom view. The custom view can be defined as per the configuration below.
- The actions that are available in each section of the custom view are also configurable.
Expand | ||
---|---|---|
| ||
|
Multiple medication/treatment tabs
Multiple medication tabs can be configured. Each block under tab config contains configuration for each medication tab to be displayed in Consultation screen.
tabConfig
Note |
---|
tabConfigName that is specified as extensionParams of treatment/medication tab in clinical/extension.json will be the key for each section specified under "tabConfig". |
Each tab config contains two sections "inputOptionsConfig" and "drugOrderHistoryConfig".
inputOptionsConfig
This section of config under tabConfig contains configuration for drug order form where drugs are prescribed under medication/treatment tab. The configuration that can go under inputOptionsConfig is listed below:
Key | Description | Default value | |||||||
---|---|---|---|---|---|---|---|---|---|
drugConceptSet | Concept set name of drugs that need to be displayed as a quick pick. Optional field | ||||||||
allowOnlyCodedDrugs | Configuring free text drug ordering.
| false | |||||||
isDropDown | Toggles between drop down and autocomplete views.
Possible values are true and false. Optional field | false | |||||||
hideOrderSet | To hide Orderset widget set this field to true. | false | |||||||
doseUnits | List of fully specified concept names of dose units that need to be displayed in drug form. Optional field. | ||||||||
frequencies | List of frequencies that need to be displayed in drug form. Optional field. | ||||||||
showDoseFractions |
Option to determine whether to display dose fractions dropdown in drug form for uniform dosing type. Optional field. | false | |||||||
doseFractions | List of dose fractions to be displayed from the master list specified in doseFractions in CommonConfig. Optional field. | ||||||||
dosingInstructions | List of dosing instructions to be displayed in the drug form. Optional field. | ||||||||
routes | List of routes that need to be displayed in the drug form. Optional field. | ||||||||
dosePlaceHolder | Placeholder text for the dose text box. Optional field. | ||||||||
hiddenFields | Fields that can be disabled in the drug form . Optional field.
| ||||||||
labels | A key value pair that has the field name as key and translation key as value. Translation key should be defined in the locale.json file.
| ||||||||
simpleDrugForm | Display or Hide Total Qty and Total Qty Units fields in drug form. Optional field. | ||||||||
"duration": { | Option to specify whether duration has to be made mandatory or not. Optional field. Possible values are true and false | true | |||||||
defaultStartDate | Option to specify whether the start date of treatment in drug form is to be defaulted to today. Optional field. Possible values are true and false | true | |||||||
defaultDurationUnit | Default duration unit to be pre populated in the duration units dropdown. Full specified concept name of duration unit is to be specified. Optional field. | ||||||||
defaultInstructions | Default dosing instruction to be populated in the dosing instructions dropdown in drug form. Optional field. | ||||||||
frequencyDefaultDurationUnitsMap | |||||||||
drugFormDefaults | List of dosage forms with it default dose unit and default route. Optional field. | ||||||||
routesToMakeDoseSectionNonMandatory | List of routes for which the dose and dose units will be made non-mandatory. |
drugOrderHistoryConfig
This section of config under tabConfig contains configuration for drug order history section (which contacts the history of prescriptions) that will be displayed in medication/treatment tab. The configuration that can go under drugOrderHistoryConfig is listed below:
Key | Description | Default value | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
view | Two views are available to display drug order history.
All sections in 'custom' view are customisable. | "default" | ||||||||||||||||||||||||||||||||||||||||||||||||||
showOnlyActive |
This flag determines whether to display only active and schedule drugs. | |||||||||||||||||||||||||||||||||||||||||||||||||||
numberOfVisits |
Configuration to specify number of previous visits to be shown as tabs in drug order history section. If the number of visits mentioned is **Zero** then only the recent tab should be shown | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||
sections | Contains the configuration for list of sections to be displayed in custom view of drug order history.
|
Tip | ||||
---|---|---|---|---|
| ||||
|