Advertisement
edcalip

encounter_time.xml

Mar 4th, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.54 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <h:html xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xf="http://www.w3.org/2002/xforms">
  3. <h:head>
  4. <h:title ref="jr:itext('bp_form')">BP Form</h:title>
  5. <xf:model xmlns:xf="http://www.w3.org/2002/xforms" id="openmrs_model">
  6. <xf:instance id="openmrs_model_instance">
  7. <form xmlns:openmrs="/moduleServlet/formentry/forms/schema/3-1" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" id="3" name="BP Form" version="1.0">
  8. <header>
  9. <enterer/>
  10. <date_entered/>
  11. <session/>
  12. <uid/>
  13. </header>
  14. <patient>
  15. <patient.family_name openmrs_table="patient_name" openmrs_attribute="family_name"/>
  16. <patient.given_name openmrs_table="patient_name" openmrs_attribute="given_name"/>
  17. <patient.patient_id openmrs_table="patient" openmrs_attribute="patient_id"/>
  18. </patient>
  19. <encounter>
  20. <encounter.encounter_datetime xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" openmrs_table="encounter" openmrs_attribute="encounter_datetime" xsi:nil="true">'today()'</encounter.encounter_datetime>
  21. <encounter.location_id xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" openmrs_table="encounter" openmrs_attribute="location_id" xsi:nil="true"/>
  22. <encounter.provider_id openmrs_table="encounter" openmrs_attribute="provider_id"/>
  23. </encounter>
  24. <obs openmrs_concept="1238^Gastrointestinal tularemia^99DCT" openmrs_datatype="ZZ">
  25. <systolic_blood_pressure openmrs_concept="29^Systolic Blood Pressure^99DCT" openmrs_datatype="NM">
  26. <date xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
  27. <time xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
  28. <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
  29. </systolic_blood_pressure>
  30. <diastolic_blood_pressure openmrs_concept="28^Diastolic Blood Pressure^99DCT" openmrs_datatype="NM">
  31. <date xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
  32. <time xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
  33. <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
  34. </diastolic_blood_pressure>
  35. </obs>
  36. <other/>
  37. </form>
  38. </xf:instance>
  39. <xf:bind xmlns:jr="http://openrosa.org/javarosa" id="patient.family_name" nodeset="/form/patient/patient.family_name" type="xsd:string" locked="true()" jr:preload="patient" jr:preloadParams="familyName"/>
  40. <xf:bind xmlns:jr="http://openrosa.org/javarosa" id="patient.given_name" nodeset="/form/patient/patient.given_name" type="xsd:string" locked="true()" jr:preload="patient" jr:preloadParams="givenName"/>
  41. <xf:bind xmlns:jr="http://openrosa.org/javarosa" id="patient.patient_id" nodeset="/form/patient/patient.patient_id" type="xsd:int" required="true()" visible="false()" jr:preload="patient" jr:preloadParams="patientId"/>
  42. <xf:bind xmlns:jr="http://openrosa.org/javarosa" id="encounter.encounter_datetime" nodeset="/form/encounter/encounter.encounter_datetime" type="xsd:dateTime" constraint=". &lt;= today()" jr:constraintMsg="Encounter date cannot be after today" required="true()" ref="/form/encounter/encounter.encounter_datetime"/>
  43. <xf:bind id="encounter.location_id" nodeset="/form/encounter/encounter.location_id" type="xsd:string" required="true()"/>
  44. <xf:bind id="encounter.provider_id" nodeset="/form/encounter/encounter.provider_id" type="xsd:string" required="true()"/>
  45. <xf:bind xmlns:jr="http://openrosa.org/javarosa" id="systolic_blood_pressure" nodeset="/form/obs/systolic_blood_pressure/value" constraint=". &gt;= 0 and . &lt;= 250" jr:constraintMsg="value should be between 0 and 250 inclusive" type="xsd:decimal" ref="/form/obs/systolic_blood_pressure/value"/>
  46. <xf:bind xmlns:jr="http://openrosa.org/javarosa" id="diastolic_blood_pressure" nodeset="/form/obs/diastolic_blood_pressure/value" constraint=". &gt;= 0 and . &lt;= 150" jr:constraintMsg="value should be between 0 and 150 inclusive" type="xsd:decimal" ref="/form/obs/diastolic_blood_pressure/value"/>
  47. <itext>
  48. <translation lang="en" lang-name="English">
  49. <text id="bp_form">
  50. <value>BP Form</value>
  51. </text>
  52. <text id="page1">
  53. <value>Page1</value>
  54. </text>
  55. <text id="family_name">
  56. <value>FAMILY NAME</value>
  57. </text>
  58. <text id="given_name">
  59. <value>GIVEN NAME</value>
  60. </text>
  61. <text id="patient_id">
  62. <value>PATIENT ID</value>
  63. </text>
  64. <text id="encounter_datetime">
  65. <value>ENCOUNTER DATETIME</value>
  66. </text>
  67. <text id="location_id">
  68. <value>LOCATION ID</value>
  69. </text>
  70. <text id="unknown_location_1">
  71. <value>Unknown Location [1]</value>
  72. </text>
  73. <text id="provider_id">
  74. <value>PROVIDER ID</value>
  75. </text>
  76. <text id="eric_dionisio_calip_11">
  77. <value>Eric Dionisio Calip [11]</value>
  78. </text>
  79. <text id="nathaniel_d._cruz_9">
  80. <value>Nathaniel D. Cruz [9]</value>
  81. </text>
  82. <text id="super_user_1">
  83. <value>Super User [1]</value>
  84. </text>
  85. <text id="systolic_blood_pressure">
  86. <value>Systolic Blood Pressure</value>
  87. </text>
  88. <text id="numeric_input_of_a_patients_systolic_blood_pressure_measurement_taken_with_a_manual_cuff_in_either_a_sitting_or_standing_position">
  89. <value>Numeric input of a patient's systolic blood pressure measurement (taken with a manual cuff in either a sitting or standing position)</value>
  90. </text>
  91. <text id="diastolic_blood_pressure">
  92. <value>Diastolic Blood Pressure</value>
  93. </text>
  94. <text id="numeric_input_of_a_patients_diastolic_blood_pressure_measurement_taken_with_a_manual_cuff_in_either_a_sitting_or_standing_position">
  95. <value>Numeric input of a patient's diastolic blood pressure measurement (taken with a manual cuff in either a sitting or standing position)</value>
  96. </text>
  97. <text id="encounter_date_cannot_be_after_today">
  98. <value>Encounter date cannot be after today</value>
  99. </text>
  100. <text id="value_should_be_between_0_and_250_inclusive">
  101. <value>value should be between 0 and 250 inclusive</value>
  102. </text>
  103. <text id="value_should_be_between_0_and_150_inclusive">
  104. <value>value should be between 0 and 150 inclusive</value>
  105. </text>
  106. </translation>
  107. </itext>
  108. </xf:model>
  109. </h:head>
  110. <h:body>
  111. <xf:group id="1">
  112. <xf:label ref="jr:itext('page1')">Page1</xf:label>
  113. <xf:input bind="patient.family_name">
  114. <xf:label ref="jr:itext('family_name')">FAMILY NAME</xf:label>
  115. </xf:input>
  116. <xf:input bind="patient.given_name">
  117. <xf:label ref="jr:itext('given_name')">GIVEN NAME</xf:label>
  118. </xf:input>
  119. <xf:input bind="patient.patient_id">
  120. <xf:label ref="jr:itext('patient_id')">PATIENT ID</xf:label>
  121. </xf:input>
  122. <xf:input bind="encounter.encounter_datetime">
  123. <xf:label ref="jr:itext('encounter_datetime')">ENCOUNTER DATETIME</xf:label>
  124. </xf:input>
  125. <xf:select1 bind="encounter.location_id">
  126. <xf:label ref="jr:itext('location_id')">LOCATION ID</xf:label>
  127. <xf:item id="1">
  128. <xf:label ref="jr:itext('unknown_location_1')">Unknown Location [1]</xf:label>
  129. <xf:value>1</xf:value>
  130. </xf:item>
  131. </xf:select1>
  132. <xf:select1 bind="encounter.provider_id">
  133. <xf:label ref="jr:itext('provider_id')">PROVIDER ID</xf:label>
  134. <xf:item id="11">
  135. <xf:label ref="jr:itext('eric_dionisio_calip_11')">Eric Dionisio Calip [11]</xf:label>
  136. <xf:value>11</xf:value>
  137. </xf:item>
  138. <xf:item id="9">
  139. <xf:label ref="jr:itext('nathaniel_d._cruz_9')">Nathaniel D. Cruz [9]</xf:label>
  140. <xf:value>9</xf:value>
  141. </xf:item>
  142. <xf:item id="1">
  143. <xf:label ref="jr:itext('super_user_1')">Super User [1]</xf:label>
  144. <xf:value>1</xf:value>
  145. </xf:item>
  146. </xf:select1>
  147. <xf:input bind="systolic_blood_pressure">
  148. <xf:label ref="jr:itext('systolic_blood_pressure')">Systolic Blood Pressure</xf:label>
  149. <xf:hint ref="jr:itext('numeric_input_of_a_patients_systolic_blood_pressure_measurement_taken_with_a_manual_cuff_in_either_a_sitting_or_standing_position')">Numeric input of a patient's systolic blood pressure measurement (taken with a manual cuff in either a sitting or standing position)</xf:hint>
  150. </xf:input>
  151. <xf:input bind="diastolic_blood_pressure">
  152. <xf:label ref="jr:itext('diastolic_blood_pressure')">Diastolic Blood Pressure</xf:label>
  153. <xf:hint ref="jr:itext('numeric_input_of_a_patients_diastolic_blood_pressure_measurement_taken_with_a_manual_cuff_in_either_a_sitting_or_standing_position')">Numeric input of a patient's diastolic blood pressure measurement (taken with a manual cuff in either a sitting or standing position)</xf:hint>
  154. </xf:input>
  155. </xf:group>
  156. </h:body>
  157. </h:html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement