Introduction
The HTML Form Entry module allows anyone with basic HTML skills and a knowledge of the OpenMRS system to create forms to enter and edit patient data within the system. It allow users to write forms using HTML combined with a set of special tags that reference different aspects of the OpenMRS data model.
...
As an example if you don't need to make a certain table in your HTML form to be viewable to a Person which has "Data Manager" role assigned to him/her, you form description would be as follows,
<restrictByRole exclude="Data Manager">
<table><tr>
<obs conceptId = "6100" labelText="Restricted for Data Manager">
</restrictByRole>
</tr></table>
So this table would not be shown to any person with the 'Data Manager' role but only to the users who doesn't have that role. In the same way this can be used with "include" attribute, in where the corresponding section would only be not restricted to the mentioned role.
An example form would be like, as,
<restrictByRole include="System Developer">
<table><tr>
<obs conceptId = "6100" labelText="Not Restricted for System Developer">
</restrictByRole>
</tr></table
3. HTML-247 : Exit from care tag
...
If the patient is dead, the tag can be also used to mark a patient's death, by recording the cause of death in the additional dropdown that pops up. The user needs to select the reason dropdown answer as "Patient Died", then a new dropdown will be visible for the user to enter the 'Cause of Death'. The possible causes for patient's death are specified by setting the global property concept.causeOfDeath. This should point to a question concept; the associated answer concepts will be used to populate the cause of death dropdown presented to the user.
...
1. Autocomplete Functionality in <encounterProvider> and <encounterLocation> tags
The new autocomplete fields in Encounter Provider and Location
A form with <restrictByRole> tag
A form with <exitfromCare> tag
1. Select a valid reason and a date for the exit entry
2. If the patient is dead, select a cause for the death from the additional dropdown
3. If the cause for the death is not given, manually enter it in the text field
4. This is how the exit and death entries will be shown in the patient dashboard
Resources
The mid-term video demonstration of the project:
http://www.youtube.com/watch?v=qU0ld32ha88
The final video demonstration of the project:
http://www.youtube.com/watch?v=u6pdK1J1oxk
The mid-term presentation of the project:
https://openmrs.atlassian.net/wiki/download/attachments/22290283/gsoc+presentation2_ishara.pdf
Module documentation with the new features:
https://openmrs.atlassian.net/wiki/display/docs/HTML+Form+Entry+Module+HTML+Reference
About
This project of HTML Form Entry Module enhancements was completed by Ishara Premadasa under the guidance of Mark Goodrich for Google Summer of Code 2012.