Wiki Spaces
Documentation
Projects
Resources
Get Help from Others
Q&A: Ask OpenMRS
Discussion: OpenMRS Talk
Real-Time: IRC Chat | Slack
Implementer shortcuts: ?Getting Started, ?HTML Reference | HTML Reference | Javascript Reference | Release Notes
Developer shortcuts: ? Technical Overview | Collaborating on Html Form Entry Using Git
Other examples: How to Embed HTML Form (generated by HTML Form Entry module) in a custom module
The HTML Form Entry allows anyone with basic HTML programming skills and a knowledge of the OpenMRS system to create forms. It is an alternative to the Infopath FormEntry module in many (but not all) cases.
...
Currently a form submission creates one encounter for one patient.
Advantages:
Disadvantages:
Want to help improve this module? Contact ??~darius.
Note that if you put in an illegal value (per the constraints in the concept dictionary) it is immediately flagged.
This looks pretty close to the initial entry.
Here's the code behind the screenshots
...
Advantages:
Disadvantages:
Want to help improve this module? Contact Unknown User (mogoodrich).
Note that if you put in an illegal value (per the constraints in the concept dictionary) it is immediately flagged.
This looks pretty close to the initial entry.
Here's the code behind the screenshots
Code Block |
---|
<htmlform> <macros> lightgrey=#e0e0e0 lightblue=#e0e0ff </macros> ... <table border="0" width="100%"> <tr valign="top"> <td width="50%"> Conditions socioeconomiques: <table width="100%" border="1" cellspacing="0" cellpadding="2"> <tr> <table><tr><td> <td bgcolor="$lightgrey"><b>3. Anamnese</b></td> <obs conceptId="2861" answerConceptId="1309" answerLabel="necessite d'un emploi"/> <br/> </tr> <tr> <obs conceptId="2861" answerConceptId="2862" answerLabel="faim"/><td> Symptomes: <br/> <obs conceptId="2861432" answerConceptIdstyle="2863checkbox" answerLabellabelText="frais scolaire"/> <br/> Visite de routine, pas de probleme"/> <br/> <obs conceptId="28611364" answerConceptIdrows="562210" answerLabelcols="autre60"/> </td><td> <br/><br/> Conditions socioeconomiques: <obs conceptId="2861" answerConceptId="2864" answerLabel="probleme avec maison"/> <br/> <table><tr><td> <obs conceptId="2861" answerConceptId="28651309" answerLabel="enterrementnecessite d'un emploi"/> <br/> <obs conceptId="2861" answerConceptId="28662862" answerLabel="faim"inaccessibilite de l'eau"/> <br/> <obs conceptId="2861" answerConceptId="2863" </td></tr></table> answerLabel="frais scolaire"/> <br/> <b>Examen Clinique:</b> <br/> <table width="100%"><tr valign="top"> <td width="50%"> <obs conceptId="2861" answerConceptId="5622" answerLabel="autre"/> </td><td> <obs conceptId="50882861" labelTextanswerConceptId="Temp:2864"/> C <br/> <obs conceptId="5087" labelText="Pouls:"/>/min answerLabel="probleme avec maison"/> <br/> <obs conceptId="5089"2861" answerConceptId="2865" labelTextanswerLabel="Poids:enterrement"/>kg> <br/> <obs conceptId="2137" labelText="IMC:"/>kg/m2 <br/> </td><td width="50%"> <obs conceptId="5242" labelText="FR:"/>/min <br/> <obs conceptId="5085" labelText="TA:"/> <obs conceptId="5086" labelText="/"/> <br/> <obs conceptId="5090" labelText="Taille:"/>cm </td> < <obs conceptId="2861" answerConceptId="2866" answerLabel="inaccessibilite de l'eau"/> </td></tr></table> <br/> </td> <b>Examen Clinique:</tr> </table> </td> b> <br/> <table width="100%"><tr valign="top"> <td width="50%"> <table width="100%" border="1" cellspacing="0" cellpadding="2"> <tr> <td bgcolor="$lightgrey"><b>4. Anamnese systematique et depistage TBC:</b></td> </tr> <obs conceptId="5088" labelText="Temp:"/> C <br/> <obs conceptId="5087" labelText="Pouls:"/>/min <br/> <obs conceptId="5089" labelText="Poids:"/>kg <br/> <obs conceptId="2137" labelText="IMC:"/>kg/m2 <br/> </td><td width="50%"> <obs conceptId="5242" labelText="FR:"/>/min <br/> <obs conceptId="5085" labelText="TA:"/> <obs conceptId="5086" labelText="/"/> <br/> <obs conceptId="5090" labelText="Taille:"/>cm </td> </tr></table> <tr> <td> <table width="100%"> <obsgroup groupingConceptId="2162"> <tr> <td> <b>Toux:</b> <obs conceptId="1734" answerConceptId="107" answerLabel="non"/> <obs conceptId="1293" answerConceptId="107" answerLabel="oui"/> </td> <td colspan="2"> duree: <obs conceptId="2160" labelText=""/>semaines <obs conceptId="2161" labelText=""/>mois </td> </tr> <tr> <td></td> <td><obs conceptId="1293" answerConceptId="2128" answerLabel="seche"/></td> <td><obs conceptId="1293" answerConceptId="970" answerLabel="hemoptysie"/></td> </tr> <tr> <td></td> <td><obs conceptId="1293" answerConceptId="5957" answerLabel="productive"/></td> <td><obs conceptId="1293" answerConceptId="5960" answerLabel="dyspnee"/></td> </tr> <tr> <td>< </td> </tr> </table> </td> <td width="50%"> <table width="100%" border="1" cellspacing="0" cellpadding="2"> <tr> <td bgcolor="$lightgrey"><b>4. Anamnese systematique et depistage TBC:</b></td> </tr> <tr> <td> <table width="100%"> <obsgroup groupingConceptId="2162"> <tr> <td> <b>Toux:</b> <obs conceptId="1734" answerConceptId="107" answerLabel="non"/> <obs conceptId="1293" answerConceptId="107" answerLabel="oui"/> </td> <td colspan="2"><obs conceptId="1293" answerConceptId="136" answerLabel="douleur thoracique"/></td>> duree: <obs conceptId="2160" labelText=""/>semaines <obs conceptId="2161" labelText=""/>mois </tr>td> </obsgroup>tr> <tr> <td align="right"><b>Sueurs nocturnes</b></<td></td> <td<td><obs colspanconceptId="21293"> answerConceptId="2128" answerLabel="seche"/></td> <obs<td><obs conceptId="17341293" answerConceptId="6029970" answerLabel="non"/> hemoptysie"/></td> </tr> <tr> <td></td> <obs <td><obs conceptId="1293" answerConceptId="21645957" answerLabel="moins de 3 semaines"/>productive"/></td> <obs<td><obs conceptId="1293" answerConceptId="21635960" answerLabel="plus de 3 semaines"/> <dyspnee"/></td> </tr> <tr valign="top"> <tr> <td align="right"><b>Fievre</b></<td></td> <td colspan="2"> <obs><obs conceptId="17341293" answerConceptId="5945136" answerLabel="nondouleur thoracique"/>></td> <obsgroup groupingConceptId="1292</tr> </obsgroup> <tr> <td align="right"><b>Sueurs nocturnes</b></td> <td colspan="2"> <obs conceptId="12931734" answerConceptId="59456029" answerLabel="oui,non"/> <br/> duree: <obs conceptId="12941293" labelTextanswerConceptId="2164"/>jours <obs conceptId="2160" labelText=""/>semaines answerLabel="moins de 3 semaines"/> <obs conceptId="21611293" labelTextanswerConceptId=""/>mois </obsgroup>2163" answerLabel="plus de 3 semaines"/> </td> </tr> <tr><tr valign="top"> <td align="right"><b>Perte de poids<><b>Fievre</b></td> <td colspan="2"> <obs conceptId="1734" answerConceptId="8325945" answerLabel="non"/> <obs<obsgroup conceptIdgroupingConceptId="1293" answerConceptId="832" answerLabel="oui moins de 10%"/1292"> <obs conceptId="1293" answerConceptId="13525945" answerLabel="oui plus de 10%,"/> <<br/td>> </tr> duree: <tr> <td<obs alignconceptId="right1294"><b>Contact TBC+:</b></td> labelText=""/>jours <td<obs colspanconceptId="22160"><obs conceptIdlabelText="2133" style="no_yes/>semaines <obs conceptId="2161" labelText=""/></td>>mois </tr>obsgroup> </table>td> </td>tr> <tr> <td align="right"><b>Perte de poids</b></td> <td colspan="2"> <obs conceptId="1734" </tr> <tr> <td> <b>Resultat du depistage TBC</b> answerConceptId="832" answerLabel="non"/> <obs conceptId="1293" answerConceptId="832" answerLabel="oui moins de 10%"/> <obs conceptId="21361293" labelTextanswerConceptId="1352" answerConceptIdsanswerLabel="664,703" answerLabels="negatif,positif"oui plus de 10%"/> <br/><br/> </td> </tr> <tr> <td bgcolor="$lightgrey"><b>5. La sante sexuelle</b></ </td> </tr> <tr> <td align="right"><b>Contact TBC+:</b></td> <td colspan="2"><obs conceptId="2133" style="no_yes" labelText=""/></td> </tr> </table> </td> </tr> <tr> <td> <b>Resultat du depistage TBC</b> <table border="0"> <obs conceptId="2136" labelText="" answerConceptIds="664,703" answerLabels="negatif,positif"/> <br/><br/> </td> </tr> <tr> <tr> <td alignbgcolor="right">Sexuellement actif:</td>$lightgrey"><b>5. La sante sexuelle</b></td> </tr> <td><obs conceptId="2730" style="no_yes"/></td> <tr> <td> </tr><table border="0"> <tr> <td align="right">Dernieres>Sexuellement regles<actif:</td> <td><obs conceptId="9682730" style="no_yes"/></td> </tr> <tr> <td align="right">Planification>Dernieres familiale<regles</td> <td><obs conceptId="5271" style="no_yes"968"/></td> </tr> <tr> <td align="right">Methode<>Planification familiale</td> <td> <obs<td><obs conceptId="3745271" answerConceptIdstyle="1720" answerLabel="abstinence"/> <obs conceptId="374" answerConceptId="780" answerLabel="contraceptifs oraux"/> <br/> <obs conceptId="374" answerConceptId="190" answerLabel="condoms"/> <obs conceptId="374" answerConceptId="5279" answerLabel="Depo-provera"/> <br/> <obs conceptId="374" answerConceptId="5622" answerLabel="autres"/> <obs conceptId="2877" labelText="(a specifier):"/> </td> </tr> no_yes"/></td> </tr> <tr> <td align="right">Enceinte<>Methode</td> <td> <obs conceptId="5272374" answerConceptIdsanswerConceptId="1066,10651720" answerLabelsanswerLabel="non,ouiabstinence"/> <obs conceptId="5596374" labelTextanswerConceptId="DPA"780" answerLabel="contraceptifs oraux"/> <br/> <obs conceptId="374" </td> answerConceptId="190" answerLabel="condoms"/> <obs conceptId="374" answerConceptId="5279" answerLabel="Depo-provera"/> <br/> <obs conceptId="374" answerConceptId="5622" answerLabel="autres"/> <obs conceptId="2877" labelText="(a specifier):"/> </td> </tr> <tr> <td align="right">Symptomes d'IST<>Enceinte</td> <td><obs<td> <obs conceptId="2731" size="40"/><5272" answerConceptIds="1066,1065" answerLabels="non,oui"/> <obs conceptId="5596" labelText="DPA"/> </td> </tr> </table> <tr> </td> <td </tr>align="right">Symptomes d'IST</td> </table> </td> <td><obs conceptId="2731" size="40"/></td> </tr> </table> ... </htmlform> |
The following privileges may be necessary for various activities. It may be necessary to create them manually, and add them to your user's role.
Wiki Markup |
---|
\[<=1.4\] "Patient Dashboard - View Html Forms Section" <-\- Required to view the HTML Forms tab on the patient dashboard |
Wiki Markup |
---|
\[>=1.5\] "Form Entry" <-\- Required to enter forms generally |
To request more features, leave a comment on the Discussion section of this page: Talk:Html_Form_Entry_Module.
Want to build an interface out of nothing but html forms? The HtmlFormFlowsheet module provides an easy way of combining html forms into a simple patient-dashboard-type configurable interface. Or, you can embed flowsheet tables directly into your existing htmlforms. This module is particularly useful if you are trying to model patient-based flowsheet type data (such as an MDRTB CAT-IV treatment card, or a chronic care flowsheet). See: HtmlFormFlowsheet_Module
...
</td>
</tr>
</table>
</td>
</tr>
</table>
...
</htmlform>
|
The following privileges may be necessary for various activities. It may be necessary to create them manually, and add them to your user's role.
To request more features, ask for them on developers@openmrs.org or create them as tickets in our JIRA site.
Want to build an interface out of nothing but htmlforms? The HtmlFormFlowsheet module provides an easy way of combining html forms into a simple patient-dashboard-type configurable interface. Or, you can embed flowsheet tables directly into your existing htmlforms. This module is particularly useful if you are trying to model patient-based flowsheet type data (such as an MDRTB CAT-IV treatment card, or a chronic care flowsheet). See: the htmlformflowsheet module wiki.
Children Display |
---|