Forms 2.0 Job
We could navigate Forms 2.0 either from clinical module or programs module.
Configuration
ColumnsToIgnore, ignoreAllFreeTextConcepts, separateTableConfig, enableForAddMoreAndMultiSelect apply for this module ( Refer https://msfprojects.atlassian.net/wiki/spaces/BAH/pages/329875787/Appendix )
incrementalUpdateConfig is applicable ( Refer https://msfprojects.atlassian.net/wiki/spaces/BAH/pages/329679036/Incremental+Update )
{
"name": "Form2 Obs Data",
"type": "form2obs",
"incrementalUpdateConfig": {
"updateOn": "encounter_id",
"eventCategory": "Encounter",
"openmrsTableName": "encounter"
},
"separateTableConfig": {
"enableForAddMoreAndMultiSelect": true,
"separateTables": [
]
},
"conceptReferenceSource": "",
"ignoreAllFreeTextConcepts": true,
"columnsToIgnore": [
]
}
Existing OpenMRS tables
Obs
Flattened Mart Tables
The Forms 2.0 module deals with only Obs table. Once the data is filled against a particular form, upon executing mart, the form observations would be populated in the mart with the table name as “form_name”.
Below are the columns that are common in every form table
Column Name | Description |
patient_id | Id reference for patient id from patient_id table. |
visit_id | In which Visit the data is captured |
encounter_id | In which encounter data is captured |
obs_datetime | Observation date and time |
location_id | Location code |
location_name | Location name |
program_id | Program code |
program_name | Name of the program |
patient_program_id | Id in which patient is enrolled to the program |
date_created | Date of form creation (When filled for the first time) |
date_modified | Date of recent form updation (When any form fields are filled again or modified in same encounter) |
form_field_path | Combination of name of the path, control id and version of the form. This refers to specific control in the form |
reference_form_field_path | Refers to the name of the form2 form |
Translations
if we need to get those values as per the translations we need to add the below locale tag in the “/var/www/bahmni_config/bahmni-mart/bahmni-mart.json“ file.
{
"name": "Form2 Obs Data",
"type": "form2obs",
"locale": "fr",
..
..
}
Changing form name in production
The Bahmni documentation is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)