-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathMotorbikesAccidentsEncounterForm.html
More file actions
162 lines (152 loc) · 6.91 KB
/
Copy pathMotorbikesAccidentsEncounterForm.html
File metadata and controls
162 lines (152 loc) · 6.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/muzima.css" rel="stylesheet">
<link href="css/ui-darkness/jquery-ui-1.10.4.custom.min.css" rel="stylesheet">
<script src="js/jquery.min.js"></script>
<script src="js/jquery-ui-1.10.4.custom.min.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/additional-methods.min.js"></script>
<script src="js/muzima.js"></script>
<title>Motorbike Accidents Encounter Form V0.01</title>
<style>
</style>
</head>
<body class="col-md-10 col-md-offset-1">
<div id="pre_populate_data">
</div>
<form id="motorbike_accidents_form" name="motorbike_accidents_form">
<h2 class="text-center">Motorbike Accidents Encounter Form V0.01</h2>
<div class="section">
<h3>Demographics</h3>
<div class="form-group">
<input class="form-control" id="patient.uuid"
name="patient.uuid" type="hidden" readonly="readonly">
</div>
<div class="form-group">
<label for="patient.medical_record_number">AMRS ID Number:</label>
<input class="form-control" id="patient.medical_record_number"
name="patient.medical_record_number" type="text" readonly="readonly">
</div>
<div class="form-group">
<label for="patient.family_name">Family Name:</label>
<input class="form-control" id="patient.family_name" name="patient.family_name" type="text"
readonly="readonly">
</div>
<div class="form-group">
<label for="patient.given_name">Given Name:</label>
<input class="form-control" id="patient.given_name" name="patient.given_name" type="text"
readonly="readonly">
</div>
<div class="form-group">
<label for="patient.middle_name">Middle Name:</label>
<input class="form-control" id="patient.middle_name" name="patient.middle_name" type="text"
readonly="readonly">
</div>
<div class="form-group">
<label for="patient.sex">Gender:</label>
<select class="form-control" id="patient.sex" name="patient.sex" disabled="disabled">
<option value="">...</option>
<option value="M">Male</option>
<option value="F">Female</option>
</select>
</div>
<div class="form-group">
<label for="patient.birth_date">Date Of Birth:</label>
<input class="form-control" id="patient.birth_date" name="patient.birth_date" type="text"
readonly="readonly" value="">
</div>
</div>
<div class="section">
<h3>Encounter Details</h3>
<div class="form-group">
<label for="encounter.location_id">Name of Health Center:<span class="required">*</span></label>
<input class="form-control" id="encounter.location_id" type="text" placeholder="Start typing something...">
<input class="form-control" name="encounter.location_id" type="hidden">
</div>
<div class="form-group">
<label for="encounter.provider_id_select">Provider Name:<span class="required">*</span></label>
<input class="form-control" id="encounter.provider_id_select" type="text" placeholder="Start typing something...">
<input class="form-control" name="encounter.provider_id_select" type="hidden">
</div>
<div class="form-group show_provider_id_text">
<label for="encounter.provider_id">Provider system-id:<span class="required">*</span></label>
<input class="form-control checkDigit" id="encounter.provider_id" disabled name="encounter.provider_id"
type="text" required="required" placeholder="Provider Id">
</div>
<div class="form-group">
<label for="encounter.encounter_datetime">Encounter Date:<span class="required">*</span></label>
<input class="form-control datepicker nonFutureDate" id="encounter.encounter_datetime"
name="encounter.encounter_datetime" type="text" readonly="readonly"
required="required">
</div>
<div class="form-group">
<input class="form-control" id="encounter.form_uuid" name="encounter.form_uuid"
type="hidden" required="required">
</div>
</div>
<div class="section">
<div class="form-group">
</p><label for="obs.number_of_victims">How many victims were involved in the accident? </label>
<input class="form-control" id="obs.number_of_victims" name="obs.number_of_victims"
type="number" placeholder="Number of Victims" data-concept="9258^How many victims were involved in the accident?^99DCT" required="required">
</div>
<div>
<label for="obs.date_of_accident">When did the accident take place:</label>
<input class="form-control datepicker past-date" data-concept="9259^When did the accident take place^99DCT"
id="obs.date_of_accident" name="obs.date_of_accident" type="text"
readonly="readonly">
</div>
<div class="form-group">
<label for="obs.accident_location">Where did the accident happen?
<span class="required">*</span>
</label>
<input class="form-control" id="obs.accident_location"
name="obs.accident_location" type="text" require="required"
data-concept="9260^Where did the accident happen^99DCT">
</div>
<div class="form-group">
<label for="obs.injury_suffered">Did you suffer injuries?<span class="required">*</span></label>
<select class="form-control" id="obs.injury_suffered" name="obs.injury_suffered" required="required"
data-concept="9261^Did you suffer injuries?^99DCT">
<option value="">...</option>
<option value="1065^YES^99DCT">Yes</option>
<option value="1066^NO^99DCT">No</option>
</select>
</div>
<div class="form-group">
<label for="obs.blood_group">5. What’s your blood group?<span class="required">*</span></label>
<select class="form-control" id="obs.blood_group" name="obs.blood_group" required="required"
data-concept="300^BLOOD TYPING^99DCT">
<option value="">...</option>
<option value="6420^A^99DCT">A</option>
<option value="6421^B^99DCT">B</option>
<option value="6422^AB^99DCT">AB</option>
<option value="6423^O^99DCT">O</option>
</select>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$('#motorbike_accidents_form').validate({
rules: {
'obs.number_of_victims': {
number: true,
range: [1, 100]
}
}
});
$('#save_draft').click(function () {
$(this).prop('disabled', true);
document.saveDraft(this);
$(this).prop('disabled', false);
});
$('#submit_form').click(function () {
$(this).prop('disabled', true);
document.submit();
$(this).prop('disabled', false);
});
});
</script>
</html>