-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
351 lines (300 loc) · 17.6 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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
<!DOCTYPE html>
<!-- saved from url=(0063)https://www.registertovote.service.gov.uk/register-to-vote/name -->
<html lang="en" ng-app="patientApp"><!--<![endif]--><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>
Enter Patient ID number
</title>
<script type="text/javascript">
(function(){if(navigator.userAgent.match(/IEMobile\/10\.0/)){var d=document,c="appendChild",a=d.createElement("style");a[c](d.createTextNode("@-ms-viewport{width:auto!important}"));d.getElementsByTagName("head")[0][c](a);}})();
</script>
<!--[if gt IE 8]><!--><link href="./gov-uk-files/govuk-template.css" media="screen" rel="stylesheet" type="text/css"><!--<![endif]-->
<!--[if IE 6]><link href="https://assets.registertovote.service.gov.uk/assets/d530da8d6263992e9a60e8558776c1b251b60165/template/stylesheets/govuk-template-ie6.css" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
<!--[if IE 7]><link href="https://assets.registertovote.service.gov.uk/assets/d530da8d6263992e9a60e8558776c1b251b60165/template/stylesheets/govuk-template-ie7.css" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
<!--[if IE 8]><link href="https://assets.registertovote.service.gov.uk/assets/d530da8d6263992e9a60e8558776c1b251b60165/template/stylesheets/govuk-template-ie8.css" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
<link href="./gov-uk-files/govuk-template-print.css" media="print" rel="stylesheet" type="text/css">
<!--[if IE 8]>
<script type="text/javascript">
(function(){if(window.opera){return;}
setTimeout(function(){var a=document,g,b={families:(g=
["nta"]),urls:["https://assets.registertovote.service.gov.uk/assets/d530da8d6263992e9a60e8558776c1b251b60165/template/stylesheets/fonts-ie8.css"]},
c="https://assets.registertovote.service.gov.uk/assets/d530da8d6263992e9a60e8558776c1b251b60165/template/javascripts/vendor/goog/webfont-debug.js",d="script",
e=a.createElement(d),f=a.getElementsByTagName(d)[0],h=g.length;WebFontConfig
={custom:b},e.src=c,f.parentNode.insertBefore(e,f);for(;h=h-1;a.documentElement
.className+=' wf-'+g[h].replace(/\s/g,'').toLowerCase()+'-n4-loading');},0)
})()
</script>
<![endif]-->
<!--[if gte IE 9]><!-->
<link href="./gov-uk-files/fonts.css" media="all" rel="stylesheet" type="text/css">
<!--<![endif]-->
<!--[if lt IE 9]>
<script src="https://assets.registertovote.service.gov.uk/assets/d530da8d6263992e9a60e8558776c1b251b60165/template/javascripts/ie.js" type="text/javascript"></script>
<![endif]-->
<link rel="shortcut icon" href="https://assets.registertovote.service.gov.uk/assets/d530da8d6263992e9a60e8558776c1b251b60165/template/images/favicon.ico" type="image/x-icon">
<!-- For third-generation iPad with high-resolution Retina display: -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="https://assets.registertovote.service.gov.uk/assets/d530da8d6263992e9a60e8558776c1b251b60165/template/images/apple-touch-icon-144x144.png">
<!-- For iPhone with high-resolution Retina display: -->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="https://assets.registertovote.service.gov.uk/assets/d530da8d6263992e9a60e8558776c1b251b60165/template/images/apple-touch-icon-114x114.png">
<!-- For first- and second-generation iPad: -->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="https://assets.registertovote.service.gov.uk/assets/d530da8d6263992e9a60e8558776c1b251b60165/template/images/apple-touch-icon-72x72.png">
<!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
<link rel="apple-touch-icon-precomposed" href="https://assets.registertovote.service.gov.uk/assets/d530da8d6263992e9a60e8558776c1b251b60165/template/images/apple-touch-icon-57x57.png">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:image" content="https://assets.registertovote.service.gov.uk/assets/d530da8d6263992e9a60e8558776c1b251b60165/template/images/opengraph-image.png">
<!--[if gt IE 8]><!--><link href="./gov-uk-files/application.css" media="screen" rel="stylesheet" type="text/css"><!--<![endif]-->
<!--[if IE 6]><link href="https://assets.registertovote.service.gov.uk/assets/d530da8d6263992e9a60e8558776c1b251b60165/stylesheets/application-ie6.css" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
<!--[if IE 7]><link href="https://assets.registertovote.service.gov.uk/assets/d530da8d6263992e9a60e8558776c1b251b60165/stylesheets/application-ie7.css" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
<!--[if IE 8]><link href="https://assets.registertovote.service.gov.uk/assets/d530da8d6263992e9a60e8558776c1b251b60165/stylesheets/application-ie8.css" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
<link href="./gov-uk-files/print.css" media="print" rel="stylesheet" type="text/css">
<link href="./marys-custom/marys.css" media="screen" rel="stylesheet" type="text/css">
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.10/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.10/angular-animate.js"></script>
<script type="text/javascript">
var questions = {
"Medical complications" : {
"You developed a sore arm or inflammation because of a drip (intravenous line)" : null,
"You caught an infection in the hospital" : {
"Pneumonia" : null,
"C.diff colitis" : null,
"Sepsis / bacteraemia" : null,
"Urinary tract infection" : null,
"Phlebitis" : null,
"Wound infection" : null,
"Intra-abdominal abscess" : null,
"Cellulitis" : null
},
"You experienced a reaction to a drug" : null,
"You bled a lot after an operation or after a tube or drain was inserted into you" : null,
"You developed a collection of blood (haematoma) or fluid (seroma) at the site of an operation or procedure" : null,
"Your wound opened up enexpectedly (wound dehiscence)" : null,
"You needed to be transferred to intensive care because of a complication that occurred in hospital" : null,
"You developed a pressure ulcer (skin wound) in hospital" : null,
"You had to be re-operated on urgently after your initial operation" : null,
"You had a fall in hospital" : null,
"You had a reaction to a blood transfusion" : null,
"You developed a DVT (deep vein thrombosis) or PE (pulmonary embolism)" : null,
"You developed a collapsed lung or pneumothorax after a procedure" : null,
"You required ongoing support with your breathing" : null,
"You had a heart attack (myocardial infarction) in hospital" : null,
"You had low blood pressure (hypotension)" : null,
"Your bowels did not work for a prolonged period (ileus)" : null,
"Your bowels become blocked (obstruction)" : null,
"You suffered an unintended injury at the time of the operation" : null,
"A keyhole or laparoscopic operation had to be converted to open" : null,
"You developed problems passing urine (oliguria/ failure/ incontinence / retention)" : null,
"You suffered a stroke (CVA)" : null,
"You developed worsened anxiety or depression" : null,
"Your anastomosis leaked after the operation" : null,
"You had problems with your stoma" : null
},
"Healthcare process problems" : {
"Your medical records were unavailable when needed" : null,
"You did not receive enough painkillers" : null,
"Doctors made a wrong diagnosis" : null,
"You were given food/drink you were not allowed on your diet? (e.g. if you were nil by mouth)" : null,
"Your fluids in your drip were not changed when they should have been" : null,
"A test was not done when it should have been" : null,
"A test was repeated needlessly, by mistake" : null,
"You were given a drug that was not intended for you" : null,
"You were confused with another patient during a test or a treatment" : null,
"A test was cancelled by mistake" : null,
"An error occurred in a test result" : null,
"A test, surgical intervention or therapy was performed on the wrong site of your body." : null,
"The worng implant or prosthesis was used" : null,
"Something was inappropriately left inside you (retained foreign body)" : null,
"You discovered that staff did not wash their hands or use alcohol gel before touching you." : null,
"Staff were unable to obtain a blood sample" : null,
"You experienced unexplained waits and delays. In what? For how long?" : null,
"Problems with environment and amenities. In what?" : null,
"You noticed Inadequate staffing - nurses/doctor/other" : null,
"You were not monitored or followed-up as planned" : null,
"A test or procedure was interrupted by Equipment malfunction" : null
},
"Medication-related problems" : {
"You experienced a reaction to a drug" : null,
"You were prescribed a drug you were allergic to" : null,
"You were prescribed an Inappropriate choice of drug eg due to contraindication" : null,
"You were given an infusion or drug that was not intended for you." : null,
"You were given an infusion or drug at the wrong time" : null,
"You were given an infusion or drug at the wrong dose" : null,
"An infusion or drug was omitted, by mistake." : null,
"There was a delay in giving you your medication" : null,
"Failure to order drug" : null
},
"Interpersonal problems" : {
"Your diagnosis was not explained to you." : null,
"You were not explained about what to expect from your treatment while in hospital" : null,
"The purpose of the medication was not explained to you" : null,
"The side effects of your medication were not explained to you" : null,
"Health care staff did not introduce themselves and explain who they were" : null,
"You were addressed informally without your agreement" : null,
"You were not explained how the ward works? (e.g. where the toilets are, what time meals are?)" : null,
"You were not given enough information about your care after discharge from hospital" : null,
"You were not treated with dignity and respect by the doctors and nurses" : null,
"You did not feel that you could ask questions to doctors and nurses if you wanted to" : null,
"Doctors or nurses did not respect confidentiality" : null,
"Doctors or nurses ignored information you gave them" : null,
"Your consent was not obtained before a test or an intervention" : null,
"You were pushed to undergo a test or a treatment against your wish" : null,
"You were handled or moved with roughness" : null,
"You felt physically abused" : null
},
"Other" : null
};
angular
.module('patientApp', ['ngAnimate'])
.controller('MainController', ['$scope', function($scope) {
$scope.visual_state = "notLoggedIn";
$scope.holder = {}; // bypass the child scope databinding problem
$scope.logIn = function() {
$scope.currentQuestionPath = [];
updateQuestionsForPath();
};
var updateQuestionsForPath = function() {
var questionsAtPath = questions;
for (var i = 0; i < $scope.currentQuestionPath.length; i++) {
var pathStep = $scope.currentQuestionPath[i];
if (questionsAtPath && questionsAtPath.hasOwnProperty(pathStep)) {
questionsAtPath = questionsAtPath[pathStep];
}
}
$scope.currentQuestions = questionsAtPath;
$scope.holder.questionSelection = "";
$scope.visual_state = ($scope.currentQuestions) ? "chooseAQuestion" : "enterFreeText";
};
$scope.chooseQuestion = function() {
$scope.currentQuestionPath.push($scope.holder.questionSelection);
updateQuestionsForPath();
};
}]);
</script>
</head>
<body class="js-enabled">
<script type="text/javascript">document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
<div id="skiplink-container">
<div>
<a href="https://www.registertovote.service.gov.uk/register-to-vote/name#content" class="skiplink">Skip to main content</a>
</div>
</div>
<header role="banner" id="global-header" class="with-proposition">
<div class="header-wrapper">
<div class="header-global">
<div class="header-logo">
<a href="index.html" title="Go to the GOV.UK homepage" id="logo" class="content">
<img src="./marys-custom/checklist-on-white.png" width="35" height="31" alt=""> Ward watcher
</a>
</div>
</div>
<div class="header-proposition">
<div class="content">
<nav id="proposition-menu">
<a href="index.html" id="proposition-name">
Adverse events reporting
</a>
</nav>
</div>
</div>
</div>
</header>
<!--end header-->
<div id="global-header-bar">
<div class="inner-block">
<div class="header-bar"></div>
</div>
</div>
<!--end global-header-bar-->
<main id="content" class="" ng-controller="MainController">
<form ng-switch on="visual_state">
<div class="validate step" ng-switch-default>
<header class="question-one">
<h4>Log in</h4>
<h1>What is the patient's study ID number?</h1>
</header>
<label for="" class="visuallyhidden">
What is the patient's study ID number?
</label>
<div class="">
<input type="text" id="NINO_NINO" name="NINO.NINO" value="" autocomplete="off" class="text validate nino " data-validation-name="" data-validation-type="field" data-validation-rules="">
</div>
<p class="example">Example: ABC 123 P</p>
<a id="continue" class="u-color-white u-inline-block button next" ng-click="logIn()">Continue</a>
</div>
<div ng-switch-when="chooseAQuestion">
<header class="question-one">
<h1>
{{currentQuestionPath[0] || "What would you like to report?"}}
</h1>
<h3 ng-if="currentQuestionPath.length > 1">
<span ng-repeat="q in currentQuestionPath" ng-if="!$first">
{{q}}
<span ng-if="!$last">></span>
</span>
</h3>
</header>
<fieldset class="validate" data-validation-rules="atLeastOneNonEmpty">
<label class="selectable" ng-repeat="(q, obj) in currentQuestions"
ng-class="{ 'selected': holder.questionSelection == q, 'selectable-focus': holder.questionSelection == q}">
<input type="radio" value="{{q}}" class="radio validate" data-validation-rules="nonEmpty" ng-model="holder.questionSelection">
{{q}}
</label>
</fieldset>
<a id="continue" class="u-color-white u-inline-block button next" ng-click="chooseQuestion()">Continue</a>
</div>
<div ng-switch-when="enterFreeText">
<header class="question-one">
<h4 ng-repeat="q in currentQuestionPath">
<span ng-if="$first">{{q}}</span>
</h4>
<h2>
<span ng-repeat="q in currentQuestionPath">
<span ng-if="!$first">
{{q}}
<span ng-if="!$last">></span>
</span>
</span>
</h2>
<h1>Please describe what happened</h1>
</header>
<label for="" class="visuallyhidden">
Please describe what happened
</label>
<div class="">
<textarea rows="4" id="NINO_NINO" name="NINO.NINO" value="" autocomplete="off" class="text validate u-full-width" data-validation-name="" data-validation-type="field" data-validation-rules=""></textarea>
</div>
<p class="example">Example: I was given blood that didn't match my blood type - the nurses got mixed up and switched the bloods with someone else on the ward.</p>
<a id="continue" class="u-color-white u-inline-block button next" ng-click="logIn()">Send your feedback</a>
</div>
</form>
</main>
<footer class="group js-footer" id="footer" role="contentinfo">
<div class="footer-wrapper">
<div class="footer-meta">
<div>
<h2 class="visuallyhidden">
Support links
</h2>
<p>
© copyright
<a href="http://sastrugisoftware.com/">
Sastrugi Software
</a>
</p>
</div>
</div>
</div>
</footer>
<!--end footer-->
<div id="global-app-error" class="app-error hidden"></div>
<script src="./gov-uk-files/govuk-template.js" type="text/javascript"></script>
<script src="./gov-uk-files/cache-busting.js"></script>
<script src="./gov-uk-files/jquery-1.10.1.min.js"></script>
<script src="./gov-uk-files/mustache.js"></script>
<script src="./gov-uk-files/typeahead.js"></script>
<script src="./gov-uk-files/core.js"></script>
<script src="./gov-uk-files/countries.js"></script>
<script src="./gov-uk-files/messages.js"></script>
<script src="./gov-uk-files/validation.js"></script>
<script src="./gov-uk-files/forms.js"></script>
<script src="./gov-uk-files/onready.js"></script>
<script src="./gov-uk-files/local-fix.js"></script>
</body></html>