BBahmni 한국어 매뉴얼검색
한국어 번역 완료
한국어English

medication.json

Context:

The medication tab layout is configurable. Available configurations:

  1. The implementer can define a selected list of drugs that belong to a concept set to be displayed on the top portion.
  2. The fields on the drug order form can be configured at the tab level.
  3. 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.
  4. The actions that are available in each section of the custom view are also configurable.

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

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:

KeyDescriptionDefault value
drugConceptSetConcept set name of drugs that need to be displayed as a quick pick. Optional field
allowOnlyCodedDrugsConfiguring free text drug ordering.This field is applicable only when isDropDown is false.false
isDropDownToggles between drop down and autocomplete views. This field is applicable only when drugConceptSet is specified.Possible values are true and false. Optional fieldfalse
hideOrderSetTo hide Orderset widget set this field to true.false
doseUnitsList of fully specified concept names of dose units that need to be displayed in drug form. Optional field.
frequenciesList of frequencies that need to be displayed in drug form. Optional field.
showDoseFractionsThis field is applicable only when list of dose fractions is specified in commonConfig. Option to determine whether to display dose fractions dropdown in drug form for uniform dosing type. Optional field.false
doseFractionsList of dose fractions to be displayed from the master list specified in doseFractions in CommonConfig. Optional field.
dosingInstructionsList of dosing instructions to be displayed in the drug form. Optional field.
routesList of routes that need to be displayed in the drug form. Optional field.
dosePlaceHolderPlaceholder text for the dose text box. Optional field.
hiddenFieldsFields that can be disabled in the drug form . Optional field.Possible values are additionalInstructions, duration, dosingInstructions, quantity, quantityUnits, durationUnits, sos, dosingTypeToggle
labelsA 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.The labels that can be configured are drugName, drugNamePlaceHolder, units, dose, doseUnitsPlaceHolder, frequency, frequencyUnitsPlaceHolder, route, routePlaceHolder, startDate, duration, quantity, quantityUnitsPlaceHolder, additionalInformation, asNeeded, asNeededButton, asNeededButtonAccessKey, dosingInstructions and additionalInstructions.If any field label is not configured, then default value will be taken.If multiple tabs are configured, then the translation keys should be unique across tabs.
simpleDrugFormDisplay or Hide Total Qty and Total Qty Units fields in drug form. Optional field.
"duration": { "required": false },Option to specify whether duration has to be made mandatory or not. Optional field. Possible values are true and falsetrue
defaultStartDateOption to specify whether the start date of treatment in drug form is to be defaulted to today. Optional field.  Possible values are true and falsetrue
defaultDurationUnitDefault duration unit to be pre populated in the duration units dropdown. Full specified concept name of duration unit is to be specified.Optional field.
defaultInstructionsDefault dosing instruction to be populated in the dosing instructions dropdown in drug form. Optional field.
frequencyDefaultDurationUnitsMap
drugFormDefaultsList 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:

KeyDescriptionDefault value
viewTwo views are available to display drug order history.Possible values are 'default' and 'custom'All sections in 'custom' view are customisable."default"
showOnlyActiveThis flag is applicable only for default view. This flag determines whether to display only active and schedule drugs.
numberOfVisitsThis flag is applicable only for default view.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 shown3
sectionsKeyDescription
titleLabel for the section to be displayed in custom view.
actionsPossible actions to be performed on each drug order (or each medication provided). Possible values are refill, revise, stop, void.
captureStopReasonWhen true, stop order reason fields will be displayed on stopping the order.This is an optional field.Default value is false which means stop reason fields are not displayed.
activeFilter for active/inactive drugs.Possible values are true and false. Default behaviourIf nothing is specified, all the drugs prescribed (including active and inactive) will be displayed.
includeConceptSetFilter for drugs to be displayed. This holds a string which is fully specified name of the concept set. Only drug orders for the drugs present in the concept set will be displayed in the section.
excludeConceptSetFilter for drugs to be excluded.This holds a string which is fully specified name of the concept set.Drug orders for the drugs present in the concept set will not be displayed (excluded) in the section.
columnsConfigure the columns that should be displayed in this section.Mandatory fieldsdrugName, dosage and startDate are mandatory fields, these are not configurable.Additional columns that can be configuredIn addition to above mentioned columns, other columns that can be configurable are route, duration, frequency, stopDate, stopReason, quantity, instructions.Default columnsIf this property is not specified, drugName, dosage, startDate, frequency, route will be shown by default.If columns are specified, it will be shown along with drugName, dosage and startDate.
원문 정보

Bahmni Wiki · CC BY-SA 4.0

원문 보기 ↗