medic-enketo-xslt
Version:
XSL stylesheets for the Enketo XForm transformation to be run client-side in a web browser
24 lines (20 loc) • 22.4 kB
text/xml
<form autocomplete="off" novalidate="novalidate" class="or clearfix pages" dir="ltr" id="EDCD_H01"><!--This form was created by transforming a OpenRosa-flavored (X)Form using an XSL stylesheet created by Enketo LLC.--><section class="form-logo"> </section><h3 dir="auto" id="form-title">Daily Hospital Surveillance</h3>
<label class="question non-select or-appearance-no-calendar "><span lang="" class="question-label active">Reporting for (Date)</span><span class="required">*</span><input type="date" name="/hospital/report_date" data-required="true()" data-constraint=". <= today()" data-type-xml="date"/><span lang="" class="or-constraint-msg active">Dates in the future are not allowed.</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label>
<fieldset class="question simple-select or-appearance-quick "><fieldset><legend><span lang="" class="question-label active">Do you wish to select a health facility code?</span><span class="required">*</span></legend><div class="option-wrapper"><label class=""><input type="radio" name="/hospital/select_facility" data-name="/hospital/select_facility" value="yes" data-required="true()" data-type-xml="select1"/><span lang="" class="option-label active">Yes</span></label><label class=""><input type="radio" name="/hospital/select_facility" data-name="/hospital/select_facility" value="no" data-required="true()" data-type-xml="select1"/><span lang="" class="option-label active">No</span></label></div></fieldset><span class="or-constraint-msg active" lang="" data-i18n="constraint.invalid">Value not allowed</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></fieldset>
<section class="or-group " name="/hospital/group_facility"><h4><span lang="" class="question-label active">Health Facility</span></h4><fieldset class="question simple-select or-branch pre-init or-appearance-quick "><fieldset><legend><span lang="" class="question-label active">Select From List</span><span class="required">*</span></legend><div class="option-wrapper"><label class=""><input type="radio" name="/hospital/group_facility/facility_code_list" data-name="/hospital/group_facility/facility_code_list" value="1111111111" data-required="true()" data-relevant="selected( /hospital/select_facility ,'yes')" data-type-xml="select1"/><span lang="" class="option-label active">A Hospital
</span></label><label class=""><input type="radio" name="/hospital/group_facility/facility_code_list" data-name="/hospital/group_facility/facility_code_list" value="1111111112" data-required="true()" data-relevant="selected( /hospital/select_facility ,'yes')" data-type-xml="select1"/><span lang="" class="option-label active">B Hospital
</span></label><label class=""><input type="radio" name="/hospital/group_facility/facility_code_list" data-name="/hospital/group_facility/facility_code_list" value="1111111114" data-required="true()" data-relevant="selected( /hospital/select_facility ,'yes')" data-type-xml="select1"/><span lang="" class="option-label active">C Hospital
</span></label><label class=""><input type="radio" name="/hospital/group_facility/facility_code_list" data-name="/hospital/group_facility/facility_code_list" value="1111111116" data-required="true()" data-relevant="selected( /hospital/select_facility ,'yes')" data-type-xml="select1"/><span lang="" class="option-label active">D Hospital
</span></label><label class=""><input type="radio" name="/hospital/group_facility/facility_code_list" data-name="/hospital/group_facility/facility_code_list" value="other" data-required="true()" data-relevant="selected( /hospital/select_facility ,'yes')" data-type-xml="select1"/><span lang="" class="option-label active">Other</span></label></div></fieldset><span class="or-constraint-msg active" lang="" data-i18n="constraint.invalid">Value not allowed</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></fieldset><label class="question or-branch pre-init non-select or-appearance-numbers "><span lang="" class="question-label active">Specify Facility Code</span><span class="required">*</span><span lang="" class="or-hint active">10 digits</span><input type="text" name="/hospital/group_facility/facility_code_other" data-required="true()" data-constraint="string-length(.) = 10" data-relevant="selected( /hospital/group_facility/facility_code_list ,'other')" data-type-xml="string"/><span lang="" class="or-constraint-msg active">Code has to be 10 digits</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label></section><!--end of group -->
<section class="or-group or-appearance-field-list " name="/hospital/group_all_treated"><h4><span lang="" class="question-label active">All new medical, pediatric, and general OPD, and Emergency patients treated</span></h4><label class="question non-select "><span lang="" class="question-label active">New patients under 5 years</span><span class="required">*</span><input type="number" name="/hospital/group_all_treated/opd_patients_under_five" data-required="true()" data-constraint="(. >=0) and (. <= 1000)" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be between 0 and 1000</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label><label class="question non-select "><span lang="" class="question-label active">New patients 5 years or above</span><span class="required">*</span><input type="number" name="/hospital/group_all_treated/opd_patients_five_over" data-required="true()" data-constraint="(. >=0) and (. <= 1000)" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be between 0 and 1000</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label></section><!--end of group -->
<section class="or-group or-appearance-field-list " name="/hospital/group_influenza"><h4><span lang="" class="question-label active">All new epidemic prone cases in medical, pediatric, and general OPD, and Emergency</span></h4><label class="question non-select "><span lang="" class="question-label active">Influenza Like Illness under 5 years</span><span class="required">*</span><input type="number" name="/hospital/group_influenza/influenza_under_five" data-required="true()" data-constraint="(. >=0) and (/hospital/group_all_treated/opd_patients_under_five >= (.))" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be greater than 0, and sum of cases cannot be greater than all new patients under 5 years</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label><label class="question non-select "><span lang="" class="question-label active">Influenza Like Illness 5 years or above</span><span class="required">*</span><input type="number" name="/hospital/group_influenza/influenza_five_over" data-required="true()" data-constraint="(. >=0) and (/hospital/group_all_treated/opd_patients_five_over >= (.))" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be greater than 0, and sum of cases cannot be greater than all new patients 5 years and over</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label></section><!--end of group -->
<section class="or-group or-appearance-field-list " name="/hospital/group_respiratory"><h4><span lang="" class="question-label active">All new epidemic prone cases in medical, pediatric, and general OPD, and Emergency</span></h4><label class="question non-select "><span lang="" class="question-label active">Severe Acute Respiratory Infection under 5 years</span><span class="required">*</span><input type="number" name="/hospital/group_respiratory/respiratory_under_five" data-required="true()" data-constraint="(. >=0) and (/hospital/group_all_treated/opd_patients_under_five >= (. + /hospital/group_influenza/influenza_under_five))" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be greater than 0, and sum of cases cannot be greater than all new patients under 5 years</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label><label class="question non-select "><span lang="" class="question-label active">Severe Acute Respiratory Infection 5 years or above</span><span class="required">*</span><input type="number" name="/hospital/group_respiratory/respiratory_five_over" data-required="true()" data-constraint="(. >=0) and (/hospital/group_all_treated/opd_patients_five_over >= (. + /hospital/group_influenza/influenza_five_over))" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be greater than 0, and sum of cases cannot be greater than all new patients 5 years and over</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label></section><!--end of group -->
<section class="or-group or-appearance-field-list " name="/hospital/group_watery_diarrhoea"><h4><span lang="" class="question-label active">All new epidemic prone cases in medical, pediatric, and general OPD, and Emergency</span></h4><label class="question non-select "><span lang="" class="question-label active">Acute Watery Diarrhoea under 5 years</span><span class="required">*</span><input type="number" name="/hospital/group_watery_diarrhoea/watery_diarrhoea_under_five" data-required="true()" data-constraint="(. >=0) and (/hospital/group_all_treated/opd_patients_under_five >= (. + /hospital/group_influenza/influenza_under_five + /hospital/group_respiratory/respiratory_under_five))" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be greater than 0, and sum of cases cannot be greater than all new patients under 5 years</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label><label class="question non-select "><span lang="" class="question-label active">Acute Watery Diarrhoea 5 years or above</span><span class="required">*</span><input type="number" name="/hospital/group_watery_diarrhoea/watery_diarrhoea_five_over" data-required="true()" data-constraint="(. >=0) and (/hospital/group_all_treated/opd_patients_five_over >= (. + /hospital/group_influenza/influenza_five_over + /hospital/group_respiratory/respiratory_five_over))" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be greater than 0, and sum of cases cannot be greater than all new patients 5 years and over</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label></section><!--end of group -->
<section class="or-group or-appearance-field-list " name="/hospital/group_bloody_diarrhoea"><h4><span lang="" class="question-label active">All new epidemic prone cases in medical, pediatric, and general OPD, and Emergency</span></h4><label class="question non-select "><span lang="" class="question-label active">Acute Bloody Diarrhoea under 5 years</span><span class="required">*</span><input type="number" name="/hospital/group_bloody_diarrhoea/bloody_diarrhoea_under_five" data-required="true()" data-constraint="(. >=0) and (/hospital/group_all_treated/opd_patients_under_five >= (. + /hospital/group_influenza/influenza_under_five + /hospital/group_respiratory/respiratory_under_five + /hospital/group_watery_diarrhoea/watery_diarrhoea_under_five))" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be greater than 0, and sum of cases cannot be greater than all new patients under 5 years</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label><label class="question non-select "><span lang="" class="question-label active">Acute Bloody Diarrhoea 5 years or above</span><span class="required">*</span><input type="number" name="/hospital/group_bloody_diarrhoea/bloody_diarrhoea_five_over" data-required="true()" data-constraint="(. >=0) and (/hospital/group_all_treated/opd_patients_five_over >= (. + /hospital/group_influenza/influenza_five_over + /hospital/group_respiratory/respiratory_five_over + /hospital/group_watery_diarrhoea/watery_diarrhoea_five_over))" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be greater than 0, and sum of cases cannot be greater than all new patients 5 years and over</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label><label class="question non-select "><span lang="" class="question-label active">Suspected Cholera 5 years or above only</span><span class="required">*</span><input type="number" name="/hospital/group_bloody_diarrhoea/suspected_cholera" data-required="true()" data-constraint="(. >=0) and (/hospital/group_all_treated/opd_patients_five_over >= (. + /hospital/group_influenza/influenza_five_over + /hospital/group_respiratory/respiratory_five_over + /hospital/group_watery_diarrhoea/watery_diarrhoea_five_over + /hospital/group_bloody_diarrhoea/bloody_diarrhoea_five_over))" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be greater than 0, and sum of cases cannot be greater than all new patients 5 years and over</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label></section><!--end of group -->
<section class="or-group or-appearance-field-list " name="/hospital/group_fever_jaundice"><h4><span lang="" class="question-label active">All new epidemic prone cases in medical, pediatric, and general OPD, and Emergency</span></h4><label class="question non-select "><span lang="" class="question-label active">Fever with Jaundice under 5 years</span><span class="required">*</span><input type="number" name="/hospital/group_fever_jaundice/fever_jaundice_under_five" data-required="true()" data-constraint="(. >=0) and (/hospital/group_all_treated/opd_patients_under_five >= (. + /hospital/group_influenza/influenza_under_five + /hospital/group_respiratory/respiratory_under_five + /hospital/group_watery_diarrhoea/watery_diarrhoea_under_five + /hospital/group_bloody_diarrhoea/bloody_diarrhoea_under_five))" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be greater than 0, and sum of cases cannot be greater than all new patients under 5 years</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label><label class="question non-select "><span lang="" class="question-label active">Fever with Jaundice 5 years or above</span><span class="required">*</span><input type="number" name="/hospital/group_fever_jaundice/fever_jaundice_five_over" data-required="true()" data-constraint="(. >=0) and (/hospital/group_all_treated/opd_patients_five_over >= (. + /hospital/group_influenza/influenza_five_over + /hospital/group_respiratory/respiratory_five_over + /hospital/group_watery_diarrhoea/watery_diarrhoea_five_over + /hospital/group_bloody_diarrhoea/bloody_diarrhoea_five_over + /hospital/group_bloody_diarrhoea/suspected_cholera))" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be greater than 0, and sum of cases cannot be greater than all new patients 5 years and over</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label></section><!--end of group -->
<section class="or-group or-appearance-field-list " name="/hospital/group_fever_rash"><h4><span lang="" class="question-label active">All new epidemic prone cases in medical, pediatric, and general OPD, and Emergency</span></h4><label class="question non-select "><span lang="" class="question-label active">Fever with Rash under 5 years</span><span class="required">*</span><input type="number" name="/hospital/group_fever_rash/fever_rash_under_five" data-required="true()" data-constraint="(. >=0) and (/hospital/group_all_treated/opd_patients_under_five >= (. + /hospital/group_influenza/influenza_under_five + /hospital/group_respiratory/respiratory_under_five + /hospital/group_watery_diarrhoea/watery_diarrhoea_under_five + /hospital/group_bloody_diarrhoea/bloody_diarrhoea_under_five + /hospital/group_fever_jaundice/fever_jaundice_under_five))" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be greater than 0, and sum of cases cannot be greater than all new patients under 5 years</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label><label class="question non-select "><span lang="" class="question-label active">Fever with Rash 5 years or above</span><span class="required">*</span><input type="number" name="/hospital/group_fever_rash/fever_rash_five_over" data-required="true()" data-constraint="(. >=0) and (/hospital/group_all_treated/opd_patients_five_over >= (. + /hospital/group_influenza/influenza_five_over + /hospital/group_respiratory/respiratory_five_over + /hospital/group_watery_diarrhoea/watery_diarrhoea_five_over + /hospital/group_bloody_diarrhoea/bloody_diarrhoea_five_over + /hospital/group_bloody_diarrhoea/suspected_cholera + /hospital/group_fever_jaundice/fever_jaundice_five_over))" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be greater than 0, and sum of cases cannot be greater than all new patients 5 years and over</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label></section><!--end of group -->
<section class="or-group or-appearance-field-list " name="/hospital/group_fever_other"><h4><span lang="" class="question-label active">All new epidemic prone cases in medical, pediatric, and general OPD, and Emergency</span></h4><label class="question non-select "><span lang="" class="question-label active">Fever without rash and jaundice under 5 years</span><span class="required">*</span><input type="number" name="/hospital/group_fever_other/fever_other_under_five" data-required="true()" data-constraint="(. >=0) and (/hospital/group_all_treated/opd_patients_under_five >= (. + /hospital/group_influenza/influenza_under_five + /hospital/group_respiratory/respiratory_under_five + /hospital/group_watery_diarrhoea/watery_diarrhoea_under_five + /hospital/group_bloody_diarrhoea/bloody_diarrhoea_under_five + /hospital/group_fever_jaundice/fever_jaundice_under_five + /hospital/group_fever_rash/fever_rash_under_five))" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be greater than 0, and sum of cases cannot be greater than all new patients under 5 years</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label><label class="question non-select "><span lang="" class="question-label active">Fever without rash and jaundice 5 years or above</span><span class="required">*</span><input type="number" name="/hospital/group_fever_other/fever_other_five_over" data-required="true()" data-constraint="(. >=0) and (/hospital/group_all_treated/opd_patients_five_over >= (. + /hospital/group_influenza/influenza_five_over + /hospital/group_respiratory/respiratory_five_over + /hospital/group_watery_diarrhoea/watery_diarrhoea_five_over + /hospital/group_bloody_diarrhoea/bloody_diarrhoea_five_over + /hospital/group_bloody_diarrhoea/suspected_cholera + /hospital/group_fever_jaundice/fever_jaundice_five_over + /hospital/group_fever_rash/fever_rash_five_over))" data-type-xml="int"/><span lang="" class="or-constraint-msg active">Number must be greater than 0, and sum of cases cannot be greater than all new patients 5 years and over</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label></section><!--end of group -->
<label class="note non-select "><span lang="" class="question-label active"><p>If you suspect any potential outbreak or need any additional support</p>
<p>Please call:</p><p>1234567890</p><p>4567890123</p>
<p>Or email:</p><p>help@example.com</p> help2@example.com</span><input type="text" name="/hospital/note_outbreak" data-type-xml="string" readonly="readonly"/></label>
<fieldset id="or-preload-items" style="display:none;"><label class="calculation non-select "><input type="hidden" name="/hospital/meta/start" data-preload="timestamp" data-preload-params="start" data-type-xml="dateTime"/></label><label class="calculation non-select "><input type="hidden" name="/hospital/meta/end" data-preload="timestamp" data-preload-params="end" data-type-xml="dateTime"/></label><label class="calculation non-select "><input type="hidden" name="/hospital/meta/deviceID" data-preload="property" data-preload-params="uri:deviceid" data-type-xml="string"/></label><label class="calculation non-select "><input type="hidden" name="/hospital/meta/subscriberID" data-preload="property" data-preload-params="uri:subscriberid" data-type-xml="string"/></label><label class="calculation non-select "><input type="hidden" name="/hospital/meta/phonenumber" data-preload="property" data-preload-params="phonenumber" data-type-xml="string"/></label></fieldset><fieldset id="or-calculated-items" style="display:none;"><label class="calculation non-select "><input type="hidden" name="/hospital/group_facility/facility_code" data-calculate="coalesce(/hospital/group_facility/facility_code_other, /hospital/group_facility/facility_code_list)" data-type-xml="string"/></label><label class="calculation non-select "><input type="hidden" name="/hospital/meta/instanceID" data-calculate="concat('uuid:', uuid())" data-type-xml="string"/></label><label class="calculation non-select "><input type="hidden" name="/hospital/meta/instanceName" data-calculate="concat('Daily Hospital Surveillance - ', /hospital/report_date )" data-type-xml="string"/></label></fieldset></form>