Advertisement
Guest User

openmrs form

a guest
Dec 30th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.59 KB | None | 0 0
  1. <htmlform>
  2. <!-- Autogenerated example form (template from 01-Nov-2010 -->
  3. <macros>
  4. paperFormId = (Fill this in)
  5. headerColor =#009d8e
  6. fontOnHeaderColor = white
  7. </macros>
  8.  
  9. <style>
  10. .section {
  11. border: 1px solid $headerColor;
  12. padding: 2px;
  13. text-align: left;
  14. margin-bottom: 1em;
  15. }
  16. .sectionHeader {
  17. background-color: $headerColor;
  18. color: $fontOnHeaderColor;
  19. display: block;
  20. padding: 2px;
  21. font-weight: bold;
  22. }
  23. table.baseline-aligned td {
  24. vertical-align: baseline;
  25. }
  26. </style>
  27.  
  28. <span style="float:right">Paper Form ID: $paperFormId</span>
  29. <h2>ani2 (v1.0)</h2>
  30.  
  31. <section headerLabel="1. Encounter Details">
  32. <table class="baseline-aligned">
  33. <tr>
  34. <td>Date:</td>
  35. <td><encounterDate default="today"/></td>
  36. </tr>
  37. <tr>
  38. <td>Location:</td>
  39. <td><encounterLocation/></td>
  40. </tr>
  41. <tr>
  42. <td>Provider:</td>
  43. <td><encounterProvider/></td>
  44. </tr>
  45. </table>
  46. </section>
  47.  
  48. <section headerLabel="2. Demographic Information">
  49. <table class="baseline-aligned">
  50. <tr>
  51. <td>Name:</td>
  52. <td><lookup class="value" expression="patient.personName"/></td>
  53. </tr>
  54. <tr>
  55. <td>Old Identification Number:</td>
  56. <td><lookup class="value" complexExpression="#foreach( $patId in $patientIdentifiers.get('Old Identification Number') ) $patId #end "/></td>
  57. </tr>
  58. <tr>
  59. <td>OpenMRS Identification Number:</td>
  60. <td><lookup class="value" complexExpression="#foreach( $patId in $patientIdentifiers.get('OpenMRS Identification Number') ) $patId #end "/></td>
  61. </tr>
  62. <tr>
  63. <td>Gender:</td>
  64. <td><lookup class="value" expression="patient.gender"/></td>
  65. </tr>
  66. <tr>
  67. <td>Birthdate:</td>
  68. <td>
  69. <lookup class="value" complexExpression="#if( \$patient.birthdateEstimated ) ~#end"/> <lookup class="value" expression="patient.birthdate"/>
  70. (Age: <lookup class="value" expression="patient.age"/>)
  71. </td>
  72. </tr>
  73. <tr>
  74. <td>Birthplace:</td>
  75. <td><lookup class="value" expression="personAttributes.get('Birthplace')"/></td>
  76. </tr>
  77. <tr>
  78. <td>Citizenship:</td>
  79. <td><lookup class="value" expression="personAttributes.get('Citizenship')"/></td>
  80. </tr>
  81. <tr>
  82. <td>Civil Status:</td>
  83. <td><lookup class="value" expression="personAttributes.get('Civil Status').name.name"/></td>
  84. </tr>
  85. <tr>
  86. <td>Health Center:</td>
  87. <td><lookup class="value" expression="personAttributes.get('Health Center')"/></td>
  88. </tr>
  89. <tr>
  90. <td>Health District:</td>
  91. <td><lookup class="value" expression="personAttributes.get('Health District')"/></td>
  92. </tr>
  93. <tr>
  94. <td>Mother's Name:</td>
  95. <td><lookup class="value" expression="personAttributes.get('Mothers Name')"/></td>
  96. </tr>
  97. <tr>
  98. <td>Race:</td>
  99. <td><lookup class="value" expression="personAttributes.get('Race')"/></td>
  100. </tr>
  101. </table>
  102. </section>
  103.  
  104. <submit/>
  105.  
  106. <!-- END OF FORM
  107.  
  108. Simple examples to copy-and-paste. Full reference at http://wiki.openmrs.org/x/kg8z
  109.  
  110. SECTION
  111. <section headerLabel="\#. Title">
  112. Content
  113. </section>
  114.  
  115. NUMERIC OBSERVATION
  116. <obs conceptId="id-of-numeric-concept" labelText="Label before"/>
  117.  
  118. DATE OBSERVATION
  119. <obs conceptId="id-of-date-concept" labelText="Label before"/>
  120.  
  121. CODED OBSERVATION
  122. (as a dropdown)
  123. <obs conceptId="id-of-coded-concept" labelText="Label before"/>
  124. (as radio buttons)
  125. <obs conceptId="id-of-coded-concept" labelText="Label before" style="radio"/>
  126. (as an autocomplete)
  127. <obs conceptId="id-of-coded-concept" labelText="Label before" style="autocomplete" answerClasses="Diagnosis"/>
  128. (as a checkbox for a specific answer)
  129. <obs conceptId="id-of-coded-concept" labelText="Label before" answerConceptId="id-of-answer-concept" answerLabel="label for answer"/>
  130. (as a dropdown with specific choices)
  131. <obs conceptId="id-of-coded-concept" labelText="Label before" answerConceptIds="concept-id-1,concept-id-2,concept-id-3" answerLabels="Label 1,Label 2, Label 3"/>
  132.  
  133.  
  134. FREE TEXT OBSERVATION
  135. (as a normal text field)
  136. <obs conceptId="id-of-text-concept" labelText="Label before"/>
  137. (as a textarea)
  138. <obs conceptId="id-of-text-concept" labelText="Label before" rows="4" cols="80"/>
  139. -->
  140. </htmlform>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement