Wiki Spaces
Documentation
Projects
Resources
Get Help from Others
Q&A: Ask OpenMRS
Discussion: OpenMRS Talk
Real-Time: IRC Chat | Slack
Just for clarification, the OpenMRS Form Schema model is referred as "Form Schema" and it's composed by the form, field, form_field and field_type tables in the OpenMRS Data Model. The HTML Form Schema model is referred as "HTML Form Schema" and it's mapped mostly from the HTML code.
The HTML Form has a reference to a Form. All attributes of a Form can be changed in the HTML Form, as if an HTML Form is a Form, so no special mapping is required.
I've identified 2 major field types, that can be mapped in the field_type table:
Sections (<section>) can be mapped as follows:
Observations (<obs>) can be mapped as follows:
There are some attributes that I think that can be automatically mapped, based on the concept_id but I'm not sure yet:
Also, there are some attributes that are not mapped in the HTML Form Schema:
Observations have answers. This could be mapped by the field_answer table, but I don't believe this table is used right now (I may be wrong). Answers to the obs questions can be an important part of the HTML Form Schema, but they are not currently represented in the OpenMRS Form Schema.
1 Comment
Darius Jazayeri
Note that in the core form schema there's also a top-level "Obs" element that all the <obs ...> should go in.