-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
286 lines (234 loc) · 12.5 KB
/
index.html
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nursing Triage Tool</title>
<script src="https://kit.fontawesome.com/288a4a188a.js" crossorigin="anonymous"></script>
<link href="index.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Montserrat&family=Space+Mono&display=swap" rel="stylesheet">
<script src="test-helpers.js" defer></script>
<script src="index.js" defer></script>
<script src="index.test.js" defer></script>
</head>
<body>
<header>
<h1 class="line-1 anim-typewriter">How can we help?<span class="fas fa-laptop-medical"></span></h1>
</header>
<div class="intro">
<div class="column">
<section>Triage your symptoms</section>
<button id="triageButton" aria-label="triage your symptoms">Click here to speak to an oncology nurse</button>
</div>
</div>
<main>
<section class="symptoms" data-index="1" hidden>
<form action="/" method="post" class="column">
<h2>Chest pain</h2>
<p>Are you experiencing chest pain?</p>
<span>
<input id="no-cp" type="radio" name="chestpain" value="0" />
<label for="no-cp">No chest pain.</label>
</span>
<span>
<input id="chest-pain" type="radio" name="chestpain" value="3" />
<label for="chest-pain">Yes I am.</label>
</span>
<button type="submit" data-to="2" data-name="chestpain" aria-label="next question">Next Question</button>
<button class="restartAssessment" aria-label="restart assessment">Restart Assessment</button>
</form>
</section>
<section class="symptoms" data-index="2" hidden>
<form action="/" method="post" class="column">
<h2>Fever</h2>
<p>Do you have a temperature above 37.5°C or below 36.0°C?</p>
<span>
<input id="no-fever" name="fever" type="radio" value="0" required/>
<label for="no-fever">No.</label>
</span>
<span>
<input id="fever" name="fever" type="radio" value="3" required/>
<label for="fever">Yes.</label>
</span>
<button id="submit-fever" type="submit" data-to="3" data-name="fever" aria-label="next question">Next Question</button>
<button class="restartAssessment" aria-label="restart assessment">Restart Assessment</button>
</form>
</section>
<section class="symptoms" data-index="3" hidden>
<form action="/" method="post" class="column">
<h2>Shortness of breath</h2>
<p>Are you experiencing shortness of breath?</p>
<span>
<input id="no-sob" type="radio" name="sob" value="0" />
<label for="no-sob">No.</label>
</span>
<span>
<input id="sob-green" type="radio" name="sob" value="1" />
<label for="sob-green">Yes, a new onset shortness of breath on
moderate exertion. Eg. Walking to the shops.</label>
</span>
<span>
<input id="sob-amber" type="radio" name="sob" value="2" />
<label for="sob-amber">Yes, a new onset shortness of breath on
minimal exertion Eg. Moving from bed to chair.</label>
</span>
<span>
<input id="sob-red" type="radio" name="sob" value="3" />
<label for="sob-red">Yes, shortness of breath at rest Eg. Difficulty talking in full sentances.</label>
</span>
<button type="submit" data-to="4" data-name="sob" aria-label="next question">Next Question</button>
<button class="restartAssessment" aria-label="restart assessment">Restart Assessment</button>
</form>
</section>
<section class="symptoms" data-index="4" hidden>
<form action="/" method="post" class="column">
<h2>Vomiting</h2>
<p>Are you experiencing vomiting?</p>
<span>
<input id="no-vomit" type="radio" name="vomit" value="0" />
<label for="no-vomit">No vomiting.</label>
</span>
<span>
<input id="vomit-green" type="radio" name="vomit" value="1" />
<label for="vomit-green">Yes, one episode in 24 hours.</label>
</span>
<span>
<input id="vomit-amber" type="radio" name="vomit" value="2" />
<label for="vomit-amber">Yes, two to four episodes in 24 hours.</label>
</span>
<span>
<input id="vomit-red" type="radio" name="vomit" value="3" />
<label for="vomit-red">Yes, more than six episodes in 24 hours.</label>
</span>
<button type="submit" data-to="5" data-name="vomit" aria-label="next question">Next Question</button>
<button class="restartAssessment" aria-label="restart assessment">Restart Assessment</button>
</form>
</section>
<section class="symptoms" data-index="5" hidden>
<form action="/" method="post" class="column">
<h2>Diarrhoea</h2>
<p>Are you experiencing diarrhoea?</p>
<span>
<input id="no-diarrhoea" type="radio" name="diarrhoea" value="0" />
<label for="no-diarrhoea">No diarrhoea.</label>
</span>
<span>
<input id="diarrhoea-amber" type="radio" name="diarrhoea" value="2" />
<label for="diarrhoea-amber">Yes, two to six bowel movements in 24 hours.</label>
</span>
<span>
<input id="diarrhoea-red" type="radio" name="diarrhoea" value="3" />
<label for="diarrhoea-red">Yes, seven of more bowel movements in 24 hours.</label>
</span>
<button type="submit" data-to="6" data-name="diarrhoea" aria-label="next question">Next Question</button>
<button class="restartAssessment" aria-label="restart assessment">Restart Assessment</button>
</form>
</section>
<section class="symptoms" data-index="6" hidden>
<form action="/" method="post" class="column">
<h2>Constipation</h2>
<p>Are you constipated? If yes, when was the last time you opened your bowels?</p>
<span>
<input id="no-constipation" type="radio" name="constipation" value="0" />
<label for="no-constipation">I'm not constipated.</label>
</span>
<span>
<input id="constipation-green" type="radio" name="constipation" value="1" />
<label for="constipation-green">Mild. No bowel movement for 24 hours.</label>
</span>
<span>
<input id="constipation-amber" type="radio" name="constipation" value="2" />
<label for="constipation-amber">Moderate. No bowel movement for 48 hours.</label>
</span>
<span>
<input id="constipation-red" type="radio" name="constipation" value="3" />
<label for="constipation-red">Severe. No bowels movement for 72 hours.</label>
</span>
<button type="submit" data-to="7" data-name="constipation" aria-label="next question">Next Question</button>
<button class="restartAssessment" aria-label="restart assessment">Restart Assessment</button>
</form>
</section>
<section class="symptoms" data-index="7" hidden>
<form action="/" method="post" class="column">
<h2>Rash</h2>
<p>Do you have a rash?</p>
<span>
<input id="no-rash" type="radio" name="rash" value="0" />
<label for="no-rash">I don't have a rash.</label>
</span>
<span>
<input id="rash-amber" type="radio" name="rash" value="2" />
<label for="rash-amber">Mild rash covering 10% of body, with no itcing or redness.</label>
</span>
<span>
<input id="rash-red" type="radio" name="rash" value="3" />
<label for="rash-red">Covering over 30% of your body, with any of the following redness, ithcing, burning, skin tightness.</label>
</span>
<button type="submit" data-to="8" data-name="rash" aria-label="next question">Next Question</button>
<button class="restartAssessment" aria-label="restart assessment">Restart Assessment</button>
</form>
</section>
<section class="symptoms" data-index="8" hidden>
<form action="/" method="post" class="column">
<h2>Peripheral Neuropathy</h2>
<p>Do you have pins and needles in your hands or feet?</p>
<span>
<input id="no-pn" type="radio" name="pn" value="0" />
<label for="no-pn">I don't have pins and needles.</label>
</span>
<span>
<input id="pn-green" type="radio" name="pn" value="2" />
<label for="pn-green">Pins and needles with no pain or swelling in hands or feet.</label>
</span>
<span>
<input id="pn-amber" type="radio" name="pn" value="2" />
<label for="pn-amber">Pins and needles pain or swelling in hands or feet, difficult perform fiddley task such as fastening buttons on a shirt.</label>
</span>
<span>
<input id="pn-red" type="radio" name="pn" value="3" />
<label for="pn-red">Pins and needles with severe pain, swelling and blistering.</label>
</span>
<button type="submit" data-to="8" id="completedAssessment" data-name="rash" aria-label="completed assessment">Complete Assessment</button>
<button class="restartAssessment" aria-label="restart assessment">Restart Assessment</button>
</form>
</section>
<section id="giveRandomId" hidden>
<h2 id="displayRandomId"></h2>
<button class="goToWaitingRoom" aria-label="go To Waiting Room">Go to waiting room</button>
<button class="copy" aria-label="copy input to clipboard" data-id="">Copy ticket to clipboard</button>
</section>
<section id="waitingRoom" hidden>
<h3>Waiting room</h3>
<p>Please take a seat, a nurse will call you shortly.</p>
<div class="column">
<ol class="row" id="waitingRoomList"></ol>
<button class="restartAssessment" aria-label="restart assessment">Restart Assessment</button>
</div>
</section>
<section>
<p>Please dial 999 if you need immediate medical intervention, this is an advisory service only.</p>
</section>
<section id="widget-section">
<div id="covid-widget"><iframe src="https://api-bridge.azurewebsites.net/conditions/?p=coronavirus-covid-19&aspect=name,overview_short,symptoms_short,symptoms_long,treatments_overview_short,other_treatments_long,self_care_long,prevention_short,causes_short&tab=3&uid=miahbates.github.io/nursing-triage-tool/" title="NHS website - health a-z" width="100%"></iframe></div>
</section>
<footer class="row">
<div class="column footer-content">
<h4>Resources</h4>
<a class="footer-links" href="https://www.nhs.uk/conditions/" target="_blank">Health A-Z</a>
<a class="footer-links" href="https://www.nhs.uk/mental-health/" target="_blank">Mental health</a>
<a class="footer-links" href=" https://www.nhs.uk/conditions/social-care-and-support-guide/" target="_blank">Care and support</a>
<a class="footer-links" href="https://www.nhs.uk/pregnancy/"target="_blank">Pregnancy</a>
<a class="footer-links" href="https://www.nhs.uk/nhs-services/"target="_blank">NHS services</a>
</div>
<div class="column footer-content">
<h4>Contact</h4>
<a class="footer-links" href="https://www.nhs.uk/contact-us/" target="_blank">Contact us</a>
<a class="footer-links" href="https://www.nhs.uk/nhs-sites/" target="_blank">Other NHS websites</a>
</div>
</footer>
</main>
</body>
</html>