Versions Compared

Key

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

 

Table of Contents
minLevel2

...

 TypeExample
1Coded - Autocomplete with only coded values

Usage:
Use it when you have fixed set of answers for a concept
"Death Note, Primary Cause of Death": {
          "required": true,
          "answersConceptName": "Death Note, Cause, Answers",
          "autocomplete": true
}

Where,

  "Death Note, Primary Cause of Death" = Concept which has answers
2Coded - Autocomplete with coded values and non-coded values
You need to define following hierarchy of concepts (taking example of Chief Complaints here).
Here's the OpenMRS concept structure level.

  • Chief Complaint Data (Is Set=true, class=Concept Details)
    • Chief Complaint (DataType=Coded)
    • Non-Coded Chief Complaint (DataType=Text)
  • Chief Complaint Answers (DataType=Coded)
 

You can add Chief Complaint data to a concept-set which you are using for your form to show in Observations tab. 
All the coded answers should be added to Chief Complaint Answers and not Chief Complaint. This is a hack for now because of inability to ignore loading of children when loading a concept. When we load children it slows down the loading of the form

 

.

"Chief Complaint Data": {
"answersConceptName": "Chief Complaint Answers",
"autocomplete": true,
"codedConceptName": "Chief Complaint",
"nonCodedConceptName": "Non-Coded Chief Complaint",
"durationRequired": false,
"allowAddMore" : true
} 

If either of codedConceptName or nonCodedConceptName is not given, It will be treated as autocomplete with only coded values.
The name of this configuration can be either "Chief Complaint Data" or "Chief Complaint"
which is the name of <Concept Set> or <Concept Set Member whose DataType is coded>.

For multiselect configuration, Add the following to the config map

 
"multiSelect": true instead of "autocomplete": true 
3Text - Free text type
"Chief Complaint Notes: {
"conciseText": true 
}
4Boolean - For Yes/No type
"Posture" : {
"buttonSelect" : true
}
5Numeric - For numerical values

Usage: Recommended to be configured only when the numbers would be small like number of children, pregnancies etc 
"No of children" : {
"stepper": true
6Date - For dates (without time) 
7Datetime - For dates with time 
8N/A - No data type

Usage: This is used for concepts which are used as answer to some other concept
 

 

...

Concept Data Conditions

Any concept in the parent concept set can be enabled / disabled conditionally based on the other concepts value. This makes the long forms usable and intuitive to use. These conditions can also be used to show errors on the forms as well.

...