@statengine/siamese 0.0.16 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +5 -5
- package/.eslintrc +18 -18
- package/LICENSE +674 -674
- package/README.md +18 -18
- package/lib/helpers.js +3 -3
- package/package.json +42 -41
- package/src/helpers.js +49 -49
- package/src/index.js +358 -358
- package/src/priorityDispatchCodes.js +985 -985
- package/test/test.helpers.js +487 -487
- package/test/test.js +114 -114
package/test/test.helpers.js
CHANGED
|
@@ -1,487 +1,487 @@
|
|
|
1
|
-
import 'babel-polyfill';
|
|
2
|
-
import {
|
|
3
|
-
expect,
|
|
4
|
-
} from 'chai';
|
|
5
|
-
import { helpers } from '../src';
|
|
6
|
-
|
|
7
|
-
describe('Helpers', () => {
|
|
8
|
-
describe('priorityDispatch Helper', () => {
|
|
9
|
-
describe('Descriptions', () => {
|
|
10
|
-
it('Correctly supplies determinate descriptions in different formats', () => {
|
|
11
|
-
expect(helpers.priorityDispatch.getProtocolDescription(1)).to.equal('Abdominal Pain/Problems');
|
|
12
|
-
expect(helpers.priorityDispatch.getProtocolDescription('01')).to.equal('Abdominal Pain/Problems');
|
|
13
|
-
expect(helpers.priorityDispatch.getProtocolDescription('1')).to.equal('Abdominal Pain/Problems');
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
it('Correctly supplies subdeterminate descriptions in different formats', () => {
|
|
17
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'A', 1)).to.equal('Abdominal pain');
|
|
18
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'A', '1')).to.equal('Abdominal pain');
|
|
19
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription('01', 'A', '1a')).to.equal('Abdominal pain');
|
|
20
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription('01', 'B', '1a')).to.be.undefined;
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
it('Correctly supplies EMS descriptions', () => {
|
|
24
|
-
expect(helpers.priorityDispatch.getProtocolDescription(1)).to.equal('Abdominal Pain/Problems');
|
|
25
|
-
expect(helpers.priorityDispatch.getProtocolDescription(2)).to.equal('Allergies (Reactions)/Envenomations (Stings/Bites)');
|
|
26
|
-
expect(helpers.priorityDispatch.getProtocolDescription(3)).to.equal('Animal Bites/Attacks');
|
|
27
|
-
expect(helpers.priorityDispatch.getProtocolDescription(4)).to.equal('Assault/Sexual Assault');
|
|
28
|
-
expect(helpers.priorityDispatch.getProtocolDescription(5)).to.equal('Back Pain (Non-Traumatic or Non-Recent Trauma)');
|
|
29
|
-
expect(helpers.priorityDispatch.getProtocolDescription(6)).to.equal('Breathing Problems');
|
|
30
|
-
expect(helpers.priorityDispatch.getProtocolDescription(7)).to.equal('Burns (Scalds)/Explosion (Blast)');
|
|
31
|
-
expect(helpers.priorityDispatch.getProtocolDescription(8)).to.equal('Carbon Monoxide/Inhalation/HAZMAT/CBRN');
|
|
32
|
-
expect(helpers.priorityDispatch.getProtocolDescription(9)).to.equal('Cardiac or Respiratory Arrest/Death');
|
|
33
|
-
expect(helpers.priorityDispatch.getProtocolDescription(10)).to.equal('Chest Pain (Non-Traumatic)');
|
|
34
|
-
expect(helpers.priorityDispatch.getProtocolDescription(11)).to.equal('Choking');
|
|
35
|
-
expect(helpers.priorityDispatch.getProtocolDescription(12)).to.equal('Convulsions/Seizures');
|
|
36
|
-
expect(helpers.priorityDispatch.getProtocolDescription(13)).to.equal('Diabetic Problems');
|
|
37
|
-
expect(helpers.priorityDispatch.getProtocolDescription(14)).to.equal('Drowning (near)/Diving/SCUBA Accident');
|
|
38
|
-
expect(helpers.priorityDispatch.getProtocolDescription(15)).to.equal('Electrocution/Lightning');
|
|
39
|
-
expect(helpers.priorityDispatch.getProtocolDescription(16)).to.equal('Eye Problems/Injuries');
|
|
40
|
-
expect(helpers.priorityDispatch.getProtocolDescription(17)).to.equal('Falls');
|
|
41
|
-
expect(helpers.priorityDispatch.getProtocolDescription(18)).to.equal('Headache');
|
|
42
|
-
expect(helpers.priorityDispatch.getProtocolDescription(19)).to.equal('Heart Problems/AICD');
|
|
43
|
-
expect(helpers.priorityDispatch.getProtocolDescription(20)).to.equal('Heat/Cold Exposure');
|
|
44
|
-
expect(helpers.priorityDispatch.getProtocolDescription(21)).to.equal('Hemorrhage/Laceration');
|
|
45
|
-
expect(helpers.priorityDispatch.getProtocolDescription(22)).to.equal('Inaccessible Incident/Other Entrapments (Non-Vehicle)');
|
|
46
|
-
expect(helpers.priorityDispatch.getProtocolDescription(23)).to.equal('Overdose/Poisoning (Ingestion)');
|
|
47
|
-
expect(helpers.priorityDispatch.getProtocolDescription(24)).to.equal('Pregnancy/Childbirth/Miscarriage');
|
|
48
|
-
expect(helpers.priorityDispatch.getProtocolDescription(25)).to.equal('Psychiatric/Abnormal Behavior/Suicide Attempt');
|
|
49
|
-
expect(helpers.priorityDispatch.getProtocolDescription(26)).to.equal('Sick Person (Specific Diagnosis)');
|
|
50
|
-
expect(helpers.priorityDispatch.getProtocolDescription(27)).to.equal('Stab/Gunshot/Penetrating Trauma');
|
|
51
|
-
expect(helpers.priorityDispatch.getProtocolDescription(28)).to.equal('Stroke (CVA)/Transient Ischemic Attack (TIA)');
|
|
52
|
-
expect(helpers.priorityDispatch.getProtocolDescription(29)).to.equal('Traffic/Transportation Incidents');
|
|
53
|
-
expect(helpers.priorityDispatch.getProtocolDescription(30)).to.equal('Traumatic Injuries (Specific)');
|
|
54
|
-
expect(helpers.priorityDispatch.getProtocolDescription(31)).to.equal('Unconscious/Fainting (Near)');
|
|
55
|
-
expect(helpers.priorityDispatch.getProtocolDescription(32)).to.equal('Unknown Problem (Man Down)');
|
|
56
|
-
expect(helpers.priorityDispatch.getProtocolDescription(33)).to.equal('Transfer/Interfacility/Palliative Care');
|
|
57
|
-
expect(helpers.priorityDispatch.getProtocolDescription(34)).to.be.undefined;
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
it('Correctly supplies EMS sub determinates descriptions', () => {
|
|
61
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'A', 1)).to.equal('Abdominal pain');
|
|
62
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'C', 1)).to.equal('Suspected aortic aneurysm (tearing/ripping pain) ≥50 years old');
|
|
63
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'C', 2)).to.equal('Known aortic aneurysm');
|
|
64
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'C', 3)).to.equal('Fainting or near fainting ≥50 years old');
|
|
65
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'C', 4)).to.equal('Females with fainting or near fainting 12-50 years old');
|
|
66
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'C', 5)).to.equal('Males with pain above navel ≥35 years old');
|
|
67
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'C', 6)).to.equal('Females with pain above navel ≥ 45 years old');
|
|
68
|
-
|
|
69
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'A', 1)).to.equal('No difficulty breathing or swallowing (rash, hives or itching may be present)');
|
|
70
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'A', 2)).to.equal('Spider bite');
|
|
71
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'B', 1)).to.equal('Unknown status/other codes not applicable');
|
|
72
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'C', 1)).to.equal('Difficulty breathing or swallowing');
|
|
73
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'C', 2)).to.equal('History of severe allergic reaction');
|
|
74
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'D', 1)).to.equal('Not alert');
|
|
75
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'D', 2)).to.equal('Difficulty speaking between breaths');
|
|
76
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'D', 3)).to.equal('Swarming attack (bee, wasp, hornet)');
|
|
77
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'D', 4)).to.equal('Snakebite');
|
|
78
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'E', 1)).to.equal('Ineffective breathing');
|
|
79
|
-
|
|
80
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'A', 1)).to.equal('Not dangerous body area');
|
|
81
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'A', 2)).to.equal('Non-recent (≥6 hours) injuries (without priority symptoms)');
|
|
82
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'A', 3)).to.equal('Superficial bites');
|
|
83
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'B', 1)).to.equal('Possibly dangerous body area');
|
|
84
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'B', 2)).to.equal('Serious hemorrhage');
|
|
85
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'B', 3)).to.equal('Unknown status/other codes not applicable');
|
|
86
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'D', 1)).to.equal('Unconscious or arrest');
|
|
87
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'D', 2)).to.equal('Not alert');
|
|
88
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'D', 3)).to.equal('Chest or neck injury (with difficulty breathing)');
|
|
89
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'D', 4)).to.equal('Dangerous body area');
|
|
90
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'D', 5)).to.equal('Large animal');
|
|
91
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'D', 6)).to.equal('Exotic animal');
|
|
92
|
-
|
|
93
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'A', 1)).to.equal('Not dangerous body area');
|
|
94
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'A', 2)).to.equal('Non-recent (≥6 hours) injuries (without priority symptoms)');
|
|
95
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'B', 1)).to.equal('Possibly dangerous body area');
|
|
96
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'B', 2)).to.equal('Serious hemorrhage');
|
|
97
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'B', 3)).to.equal('Unknown status/other codes not applicable');
|
|
98
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'D', 1)).to.equal('Unconscious or arrest');
|
|
99
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'D', 2)).to.equal('Not alert');
|
|
100
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'D', 3)).to.equal('Chest or neck injury (with difficulty breathing)');
|
|
101
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'D', 4)).to.equal('Multiple victims');
|
|
102
|
-
|
|
103
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(5, 'A', 1)).to.equal('Non-traumatic back pain');
|
|
104
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(5, 'A', 2)).to.equal('Non-recent (≥6 hours) traumatic back pain (without priority symptoms)');
|
|
105
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(5, 'C', 1)).to.equal('Suspected aortic aneurysm (tearing/ripping pain) ≥50 years old');
|
|
106
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(5, 'C', 2)).to.equal('Known aortic aneurysm');
|
|
107
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(5, 'C', 3)).to.equal('Fainting or nearly fainting ≥50 years old');
|
|
108
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(5, 'D', 1)).to.equal('Not alert');
|
|
109
|
-
|
|
110
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(6, 'C', 1)).to.equal('Abnormal breathing');
|
|
111
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(6, 'D', 1)).to.equal('Not alert');
|
|
112
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(6, 'D', 2)).to.equal('Difficulty speaking between breaths');
|
|
113
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(6, 'D', 3)).to.equal('Changing color');
|
|
114
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(6, 'D', 4)).to.equal('Clammy');
|
|
115
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(6, 'E', 1)).to.equal('Ineffective breathing');
|
|
116
|
-
|
|
117
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'A', 1)).to.equal('Burns <18% body area');
|
|
118
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'A', 2)).to.equal('Fire alarm (unknown situation)');
|
|
119
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'A', 3)).to.equal('Sunburn or minor burns (≤ hand size)');
|
|
120
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'B', 1)).to.equal('Blast injuries (without priority symptoms)');
|
|
121
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'B', 2)).to.equal('Unknown status/other codes not applicable');
|
|
122
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'C', 1)).to.equal('Building fire with persons reported inside');
|
|
123
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'C', 2)).to.equal('Difficulty breathing');
|
|
124
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'C', 3)).to.equal('Burns ≥18% body area');
|
|
125
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'C', 4)).to.equal('Significant facial burns');
|
|
126
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'D', 1)).to.equal('Multiple victims');
|
|
127
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'D', 2)).to.equal('Unconscious or arrest');
|
|
128
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'D', 3)).to.equal('Not alert');
|
|
129
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'D', 4)).to.equal('Difficulty speaking between breaths');
|
|
130
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'E', 1)).to.equal('Person on fire');
|
|
131
|
-
|
|
132
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(8, 'B', 1)).to.equal('Alert without difficulty breathing');
|
|
133
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(8, 'C', 1)).to.equal('Alert with difficulty breathing');
|
|
134
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(8, 'D', 1)).to.equal('Unconscious or arrest');
|
|
135
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(8, 'D', 2)).to.equal('Not alert');
|
|
136
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(8, 'D', 3)).to.equal('Difficulty speaking between breaths');
|
|
137
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(8, 'D', 4)).to.equal('Multiple victims');
|
|
138
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(8, 'D', 5)).to.equal('Unknown status/other codes not applicable');
|
|
139
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(8, 'O', 1)).to.equal('Carbon monoxide detector alarm (without priority symptoms)');
|
|
140
|
-
|
|
141
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'B', 1)).to.equal('Obvious death unquestionable (a through k)');
|
|
142
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'D', 1)).to.equal('Ineffective breathing');
|
|
143
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'D', 2)).to.equal('Obvious or expected death questionable');
|
|
144
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'E', 1)).to.equal('Not breathing at all');
|
|
145
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'E', 2)).to.equal('Breathing uncertain (agonal)');
|
|
146
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'E', 3)).to.equal('Hanging');
|
|
147
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'E', 4)).to.equal('Strangulation');
|
|
148
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'E', 5)).to.equal('Suffocation');
|
|
149
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'E', 6)).to.equal('Underwater');
|
|
150
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'O', 1)).to.equal('Expected death unquestionable (x through z)');
|
|
151
|
-
|
|
152
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'A', 1)).to.equal('Breathing normally <35 years old');
|
|
153
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'C', 1)).to.equal('Abnormal breathing');
|
|
154
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'C', 2)).to.equal('Heart attack or angina history');
|
|
155
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'C', 3)).to.equal('Cocaine');
|
|
156
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'C', 4)).to.equal('Breathing normally ≥35 years old');
|
|
157
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'D', 1)).to.equal('Not alert');
|
|
158
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'D', 2)).to.equal('Difficulty speaking between breaths');
|
|
159
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'D', 3)).to.equal('Changing color');
|
|
160
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'D', 4)).to.equal('Clammy');
|
|
161
|
-
|
|
162
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(11, 'A', 1)).to.equal('Not choking now (can talk or cry, is alert and breathing normally)');
|
|
163
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(11, 'D', 1)).to.equal('Abnormal breathing (partial obstruction)');
|
|
164
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(11, 'D', 2)).to.equal('Not alert');
|
|
165
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(11, 'E', 1)).to.equal('Complete obstruction/ineffective breathing');
|
|
166
|
-
|
|
167
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'A', 1)).to.equal('Not seizing now and effective breathing verified (known seizure disorder)');
|
|
168
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'A', 2)).to.equal('Not seizing now and effective breathing verified (seizure disorder unknown)');
|
|
169
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'A', 3)).to.equal('Not seizing now and effective breathing verified (≤6 years old, confirmed no seizure disorder)');
|
|
170
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'A', 4)).to.equal('Focal seizure (alert)');
|
|
171
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'A', 5)).to.equal('Impending seizure (aura)');
|
|
172
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'C', 1)).to.equal('Focal seizure (not alert)');
|
|
173
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'C', 2)).to.equal('Pregnancy');
|
|
174
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'C', 3)).to.equal('Diabetic');
|
|
175
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'C', 4)).to.equal('Not seizing now and effective breathing verified (>6 years old, confirmed no seizure disorder)');
|
|
176
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'C', 5)).to.equal('History of stroke or brain tumor');
|
|
177
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'C', 6)).to.equal('Overdose/poisoning (ingestion)');
|
|
178
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'C', 7)).to.equal('Atypical seizure');
|
|
179
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'D', 1)).to.equal('Not breathing');
|
|
180
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'D', 2)).to.equal('Continuous or multiple seizures');
|
|
181
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'D', 3)).to.equal('Agonal/ineffective breathing');
|
|
182
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'D', 4)).to.equal('Effective breathing not verified, patient ≥35 years old');
|
|
183
|
-
|
|
184
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(13, 'A', 1)).to.equal('Alert and behaving normally');
|
|
185
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(13, 'C', 1)).to.equal('Not alert');
|
|
186
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(13, 'C', 2)).to.equal('Abnormal behavior');
|
|
187
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(13, 'C', 3)).to.equal('Abnormal breathing');
|
|
188
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(13, 'D', 1)).to.equal('Unconscious');
|
|
189
|
-
|
|
190
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(14, 'A', 1)).to.equal('Alert and breathing normally (no injuries and out of water)');
|
|
191
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(14, 'B', 1)).to.equal('Alert and breathing normally (injuries or in water)');
|
|
192
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(14, 'B', 2)).to.equal('Unknown status/other codes not applicable');
|
|
193
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(14, 'C', 1)).to.equal('Alert with abnormal breathing');
|
|
194
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(14, 'D', 1)).to.equal('Unconscious or arrest');
|
|
195
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(14, 'D', 2)).to.equal('Not alert');
|
|
196
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(14, 'D', 3)).to.equal('Diving or suspected neck injury');
|
|
197
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(14, 'D', 4)).to.equal('SCUBA accident');
|
|
198
|
-
|
|
199
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'C', 1)).to.equal('Alert and breathing normally');
|
|
200
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'D', 1)).to.equal('Unconscious');
|
|
201
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'D', 2)).to.equal('Not disconnected from power');
|
|
202
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'D', 3)).to.equal('Power not off or hazard present');
|
|
203
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'D', 4)).to.equal('Extreme fall (≥30 ft/10 m)');
|
|
204
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'D', 5)).to.equal('Long fall');
|
|
205
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'D', 6)).to.equal('Not alert');
|
|
206
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'D', 7)).to.equal('Abnormal breathing');
|
|
207
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'D', 8)).to.equal('Unknown status/other codes not applicable');
|
|
208
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'E', 1)).to.equal('Not breathing/ineffective breathing');
|
|
209
|
-
|
|
210
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(16, 'A', 1)).to.equal('Moderate eye injuries');
|
|
211
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(16, 'A', 2)).to.equal('Minor eye injuries');
|
|
212
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(16, 'A', 3)).to.equal('Medical eye problems');
|
|
213
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(16, 'B', 1)).to.equal('Severe eye injuries');
|
|
214
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(16, 'D', 1)).to.equal('Not alert');
|
|
215
|
-
|
|
216
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'A', 1)).to.equal('Not dangerous body area');
|
|
217
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'A', 2)).to.equal('Non-recent (≥6 hours) injuries (without priority symptoms)');
|
|
218
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'A', 3)).to.equal('Public assist (no injuries and no priority symptoms)');
|
|
219
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'B', 1)).to.equal('Possibly dangerous body area');
|
|
220
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'B', 2)).to.equal('Serious hemorrhage');
|
|
221
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'B', 3)).to.equal('Unknown status/other codes not applicable');
|
|
222
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'D', 1)).to.equal('Extreme fall (≥30 ft/10 m)');
|
|
223
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'D', 2)).to.equal('Unconscious or arrest');
|
|
224
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'D', 3)).to.equal('Not alert');
|
|
225
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'D', 4)).to.equal('Chest or neck injury (with difficulty breathing)');
|
|
226
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'D', 5)).to.equal('Long fall');
|
|
227
|
-
|
|
228
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'A', 1)).to.equal('Breathing normally');
|
|
229
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'B', 1)).to.equal('Unknown status/other codes not applicable');
|
|
230
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'C', 1)).to.equal('Not alert');
|
|
231
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'C', 2)).to.equal('Abnormal breathing');
|
|
232
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'C', 3)).to.equal('Speech problems');
|
|
233
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'C', 4)).to.equal('Sudden onset of severe pain');
|
|
234
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'C', 5)).to.equal('Numbness');
|
|
235
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'C', 6)).to.equal('Paralysis');
|
|
236
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'C', 7)).to.equal('Change in behavior (≤3 hours)');
|
|
237
|
-
|
|
238
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'A', 1)).to.equal('Heart rate ≥50 bpm and <130 bpm (without priority symptoms)');
|
|
239
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'A', 2)).to.equal('Chest pain <35 years old (without priority symptoms)');
|
|
240
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'C', 1)).to.equal('Firing of AICD');
|
|
241
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'C', 2)).to.equal('Abnormal breathing');
|
|
242
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'C', 3)).to.equal('Chest pain ≥35 years old');
|
|
243
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'C', 4)).to.equal('Cardiac history');
|
|
244
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'C', 5)).to.equal('Cocaine');
|
|
245
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'C', 6)).to.equal('Heart rate <50 bpm or ≥130 bpm (without priority symptoms)');
|
|
246
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'C', 7)).to.equal('Unknown status/other codes not applicable');
|
|
247
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'D', 1)).to.equal('Not alert');
|
|
248
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'D', 2)).to.equal('Difficulty speaking between breaths');
|
|
249
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'D', 3)).to.equal('Changing color');
|
|
250
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'D', 4)).to.equal('Clammy');
|
|
251
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'D', 5)).to.equal('Just resuscitated and/or defibrillated (external)');
|
|
252
|
-
|
|
253
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(20, 'A', 1)).to.equal('Alert');
|
|
254
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(20, 'B', 1)).to.equal('Change in skin color');
|
|
255
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(20, 'B', 2)).to.equal('Unknown status/other codes not applicable');
|
|
256
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(20, 'C', 1)).to.equal('Heart attack or angina history');
|
|
257
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(20, 'D', 1)).to.equal('Not alert');
|
|
258
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(20, 'D', 2)).to.equal('Multiple victims (with priority symptoms)');
|
|
259
|
-
|
|
260
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'A', 1)).to.equal('Not dangerous hemorrhage');
|
|
261
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'A', 2)).to.equal('Minor hemorrhage');
|
|
262
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'B', 1)).to.equal('Possibly dangerous hemorrhage');
|
|
263
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'B', 2)).to.equal('Serious hemorrhage');
|
|
264
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'B', 3)).to.equal('Bleeding disorder');
|
|
265
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'B', 4)).to.equal('Blood thinners');
|
|
266
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'C', 1)).to.equal('Hemorrhage through tubes');
|
|
267
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'C', 2)).to.equal('Hemorrhage of dialysis fistula');
|
|
268
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'D', 1)).to.equal('Unconscious or arrest');
|
|
269
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'D', 2)).to.equal('Not alert');
|
|
270
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'D', 3)).to.equal('Dangerous hemorrhage');
|
|
271
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'D', 4)).to.equal('Abnormal breathing');
|
|
272
|
-
|
|
273
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'A', 1)).to.equal('No longer trapped (no injuries)');
|
|
274
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'B', 1)).to.equal('No longer trapped (unknown injuries)');
|
|
275
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'B', 2)).to.equal('Peripheral entrapment only');
|
|
276
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'B', 3)).to.equal('Unknown status (investigation)/other codes not applicable');
|
|
277
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'D', 1)).to.equal('Mechanical/machinery entrapment');
|
|
278
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'D', 2)).to.equal('Trench collapse');
|
|
279
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'D', 3)).to.equal('Structure collapse');
|
|
280
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'D', 4)).to.equal('Confined space rescue');
|
|
281
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'D', 5)).to.equal('Inaccessible terrain situation');
|
|
282
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'D', 6)).to.equal('Mudslide/avalanche');
|
|
283
|
-
|
|
284
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'B', 1)).to.equal('Overdose (without priority symptoms)');
|
|
285
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'C', 1)).to.equal('Not alert');
|
|
286
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'C', 2)).to.equal('Abnormal breathing');
|
|
287
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'C', 3)).to.equal('Antidepressants (tricyclic)');
|
|
288
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'C', 4)).to.equal('Cocaine, methamphetamine (or derivatives)');
|
|
289
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'C', 5)).to.equal('Narcotics (heroin)');
|
|
290
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'C', 6)).to.equal('Acid or alkali (lye)');
|
|
291
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'C', 7)).to.equal('Unknown status/other codes not applicable');
|
|
292
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'C', 8)).to.equal('Poison Control request for response');
|
|
293
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'D', 1)).to.equal('Unconscious');
|
|
294
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'D', 2)).to.equal('Changing color');
|
|
295
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'O', 1)).to.equal('Poisoning (without priority symptoms)');
|
|
296
|
-
|
|
297
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'A', 1)).to.equal('1st trimester hemorrhage or miscarriage');
|
|
298
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'B', 1)).to.equal('Labor (delivery not imminent, ≥5 months/20 weeks)');
|
|
299
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'B', 2)).to.equal('Unknown status/other codes not applicable');
|
|
300
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'C', 1)).to.equal('2nd trimester hemorrhage or miscarriage');
|
|
301
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'C', 2)).to.equal('1st trimester serious hemorrhage');
|
|
302
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'C', 3)).to.equal('Baby born (no complications)');
|
|
303
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'D', 1)).to.equal('Breech or cord');
|
|
304
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'D', 2)).to.equal('Head visible/out');
|
|
305
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'D', 3)).to.equal('Imminent delivery (≥5 months/20 weeks)');
|
|
306
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'D', 4)).to.equal('3rd trimester hemorrhage');
|
|
307
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'D', 5)).to.equal('High risk complications');
|
|
308
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'D', 6)).to.equal('Baby born (complications with baby)');
|
|
309
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'D', 7)).to.equal('Baby born (complications with mother)');
|
|
310
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'O', 1)).to.equal('Waters broken (no contractions or presenting parts)');
|
|
311
|
-
|
|
312
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'A', 1)).to.equal('Non-suicidal and alert');
|
|
313
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'A', 2)).to.equal('Suicidal (not threatening) and alert');
|
|
314
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'B', 1)).to.equal('Serious hemorrhage');
|
|
315
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'B', 2)).to.equal('Non-serious or minor hemorrhage');
|
|
316
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'B', 3)).to.equal('Threatening suicide');
|
|
317
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'B', 4)).to.equal('Jumper (threatening)');
|
|
318
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'B', 5)).to.equal('Near hanging, strangulation or suffocation (alert)');
|
|
319
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'B', 6)).to.equal('Unknown status/other codes not applicable');
|
|
320
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'D', 1)).to.equal('Not alert');
|
|
321
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'D', 2)).to.equal('Dangerous hemorrhage');
|
|
322
|
-
|
|
323
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 1)).to.equal('No priority symptoms (complaint conditions 2-11 not identified)');
|
|
324
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 2)).to.equal('Blood pressure abnormality');
|
|
325
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 3)).to.equal('Dizziness/vertigo');
|
|
326
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 4)).to.equal('Fever/chills');
|
|
327
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 5)).to.equal('General weakness');
|
|
328
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 6)).to.equal('Nausea');
|
|
329
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 7)).to.equal('New onset of immobility');
|
|
330
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 8)).to.equal('Other pain');
|
|
331
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 9)).to.equal('Transportation only');
|
|
332
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 10)).to.equal('Unwell/ill');
|
|
333
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 11)).to.equal('Vomiting');
|
|
334
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'B', 1)).to.equal('Unknown status/other codes not applicable');
|
|
335
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'C', 1)).to.equal('Altered level of consciousness');
|
|
336
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'C', 2)).to.equal('Abnormal breathing');
|
|
337
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'C', 3)).to.equal('Sickle cell crisis/thalassemia');
|
|
338
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'D', 1)).to.equal('Not alert');
|
|
339
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 1)).to.equal('CODE NOT IN USE');
|
|
340
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 2)).to.equal('Boils');
|
|
341
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 3)).to.equal('Bumps (non-traumatic)');
|
|
342
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 4)).to.equal('Can\'t sleep');
|
|
343
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 5)).to.equal('Can\'t urinate (without abdominal pain)');
|
|
344
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 6)).to.equal('Catheter (in/out without hemorrhaging)');
|
|
345
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 7)).to.equal('Constipation');
|
|
346
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 8)).to.equal('Cramps/spasms/joint pain (in extremities and non-traumatic)');
|
|
347
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 9)).to.equal('Cut-off ring request');
|
|
348
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 10)).to.equal('Deafness');
|
|
349
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 11)).to.equal('Defecation/diarrhea');
|
|
350
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 12)).to.equal('Earache');
|
|
351
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 13)).to.equal('Enema');
|
|
352
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 14)).to.equal('Gout');
|
|
353
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 15)).to.equal('Hemorrhoids/piles');
|
|
354
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 16)).to.equal('Hepatitis');
|
|
355
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 17)).to.equal('Hiccups');
|
|
356
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 18)).to.equal('Itching');
|
|
357
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 19)).to.equal('Nervous');
|
|
358
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 20)).to.equal('Object stuck (nose, ear, vagina, rectum, penis)');
|
|
359
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 21)).to.equal('Object swallowed (without choking or difficulty breathing, can talk)');
|
|
360
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 22)).to.equal('Painful urination');
|
|
361
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 23)).to.equal('Penis problems/pain');
|
|
362
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 24)).to.equal('Rash/skin disorder (without difficulty breathing or swallowing)');
|
|
363
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 25)).to.equal('Sexually Transmitted Disease (STD)');
|
|
364
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 26)).to.equal('Sore throat (without difficulty breathing or swallowing');
|
|
365
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 27)).to.equal('Toothache (without jaw pain)');
|
|
366
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 28)).to.equal('Wound infected (focal or surface)');
|
|
367
|
-
|
|
368
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'A', 1)).to.equal('Non-recent (≥6 hours peripheral wounds (without priority symptoms)');
|
|
369
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'B', 1)).to.equal('Non-recent (≥6 hours) single central wound');
|
|
370
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'B', 2)).to.equal('Known single peripheral wound');
|
|
371
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'B', 3)).to.equal('Serious hemorrhage');
|
|
372
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'B', 4)).to.equal('Unknown status/other codes not applicable');
|
|
373
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'B', 5)).to.equal('Obvious death (explosive GSW to head)');
|
|
374
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'D', 1)).to.equal('Unconscious or arrest');
|
|
375
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'D', 2)).to.equal('Not alert');
|
|
376
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'D', 3)).to.equal('Central wounds');
|
|
377
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'D', 4)).to.equal('Multiple wounds');
|
|
378
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'D', 5)).to.equal('Multiple victims');
|
|
379
|
-
|
|
380
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'A', 1)).to.equal('Breathing normally <35 years old');
|
|
381
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 1)).to.equal('Not alert');
|
|
382
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 2)).to.equal('Abnormal breathing');
|
|
383
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 3)).to.equal('Sudden speech problems');
|
|
384
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 4)).to.equal('Sudden weakness or numbness (one side)');
|
|
385
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 5)).to.equal('Sudden paralysis or facial droop (one side)');
|
|
386
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 6)).to.equal('Sudden loss of balance or coordination');
|
|
387
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 7)).to.equal('Sudden vision problems');
|
|
388
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 8)).to.equal('Sudden onset of severe headache');
|
|
389
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 9)).to.equal('Stroke history');
|
|
390
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 10)).to.equal('TIA (mini-stroke) history');
|
|
391
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 11)).to.equal('Breathing normally ≥35 years old');
|
|
392
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 12)).to.equal('Unknown status/other codes not applicable');
|
|
393
|
-
|
|
394
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'A', 1)).to.equal('1st party caller with injury to not dangerous body area');
|
|
395
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'B', 1)).to.equal('Injuries');
|
|
396
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'B', 2)).to.equal('Serious hemorrhage');
|
|
397
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'B', 3)).to.equal('Other hazards');
|
|
398
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'B', 4)).to.equal('Unknown status/other codes not applicable');
|
|
399
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'D', 1)).to.equal('Major incident (a through f)');
|
|
400
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'D', 2)).to.equal('High mechanism (k through s)');
|
|
401
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'D', 3)).to.equal('Hazmat');
|
|
402
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'D', 4)).to.equal('Pinned (trapped victim)');
|
|
403
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'D', 5)).to.equal('Not alert');
|
|
404
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'O', 1)).to.equal('No injuries (confirmed)');
|
|
405
|
-
|
|
406
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(30, 'A', 1)).to.equal('Not dangerous body area');
|
|
407
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(30, 'A', 2)).to.equal('Non-recent (≥6 hours) injuries (without priority symptoms)');
|
|
408
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(30, 'B', 1)).to.equal('Possibly dangerous body area');
|
|
409
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(30, 'B', 2)).to.equal('Serious hemorrhage');
|
|
410
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(30, 'D', 1)).to.equal('Unconscious or arrest');
|
|
411
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(30, 'D', 2)).to.equal('Not alert');
|
|
412
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(30, 'D', 3)).to.equal('Chest or neck injury (with difficulty breathing)');
|
|
413
|
-
|
|
414
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'A', 1)).to.equal('Fainting episode(s) and alert ≥35 years old (without cardiac history)');
|
|
415
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'A', 2)).to.equal('Fainting episode(s) and alert <35 years old (with cardiac history)');
|
|
416
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'A', 3)).to.equal('Fainting episode(s) and alert <35 years old (without cardiac history)');
|
|
417
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'C', 1)).to.equal('Alert with abnormal breathing');
|
|
418
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'C', 2)).to.equal('Fainting episode(s) and alert ≥35 years old (with cardiac history)');
|
|
419
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'C', 3)).to.equal('Females 12-50 years old with abdominal pain');
|
|
420
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'D', 1)).to.equal('Unconscious - agonal/ineffective breathing');
|
|
421
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'D', 2)).to.equal('Unconscious - effective breathing');
|
|
422
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'D', 3)).to.equal('Not alert');
|
|
423
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'D', 4)).to.equal('Changing color');
|
|
424
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'E', 1)).to.equal('Ineffective breathing');
|
|
425
|
-
|
|
426
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(32, 'B', 1)).to.equal('Standing, sitting, moving or talking');
|
|
427
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(32, 'B', 2)).to.equal('Medical alarm (alert) notifications (no patient information)');
|
|
428
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(32, 'B', 3)).to.equal('Unknown status/other codes not applicable');
|
|
429
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(32, 'B', 4)).to.equal('Caller\'s language not understood (no interpreter in center)');
|
|
430
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(32, 'D', 1)).to.equal('Life status questionable');
|
|
431
|
-
|
|
432
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'A', 1)).to.equal('Acuity I (no priority symptoms)');
|
|
433
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'A', 2)).to.equal('Acuity II (no priority symptoms)');
|
|
434
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'A', 3)).to.equal('Acuity III (no priority symptoms)');
|
|
435
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'C', 1)).to.equal('Not alert (acute change)');
|
|
436
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'C', 2)).to.equal('Abnormal breathing (acute onset)');
|
|
437
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'C', 3)).to.equal('Significant hemorrhage or shock');
|
|
438
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'C', 4)).to.equal('Possible acute heart problems or MI (heart attack)');
|
|
439
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'C', 5)).to.equal('Acute severe pain');
|
|
440
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'C', 6)).to.equal('Emergency response requested');
|
|
441
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'D', 1)).to.equal('Suspected cardiac or respiratory arrest');
|
|
442
|
-
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'D', 2)).to.equal('Just resuscitated and/or defibrillated (external)');
|
|
443
|
-
});
|
|
444
|
-
});
|
|
445
|
-
describe('Split code without subDeterminate.', () => {
|
|
446
|
-
it('Correctly splits priority.', () => {
|
|
447
|
-
expect(helpers.priorityDispatch.split('32B').determinate).to.equal('B');
|
|
448
|
-
});
|
|
449
|
-
|
|
450
|
-
it('Correctly splits the protocol.', () => {
|
|
451
|
-
expect(helpers.priorityDispatch.split('32B').protocol).to.equal('32');
|
|
452
|
-
});
|
|
453
|
-
|
|
454
|
-
it('Correctly splits the subDeterminate.', () => {
|
|
455
|
-
expect(helpers.priorityDispatch.split('32B').subDeterminate).to.be.empty;
|
|
456
|
-
});
|
|
457
|
-
});
|
|
458
|
-
|
|
459
|
-
describe('Split code with subDeterminate', () => {
|
|
460
|
-
it('Correctly splits priority.', () => {
|
|
461
|
-
expect(helpers.priorityDispatch.split('26A02').determinate).to.equal('A');
|
|
462
|
-
});
|
|
463
|
-
|
|
464
|
-
it('Correctly splits the protocol.', () => {
|
|
465
|
-
expect(helpers.priorityDispatch.split('26A02').protocol).to.equal('26');
|
|
466
|
-
});
|
|
467
|
-
|
|
468
|
-
it('Correctly splits the subDeterminate.', () => {
|
|
469
|
-
expect(helpers.priorityDispatch.split('26A02').subDeterminate).to.equal('02');
|
|
470
|
-
});
|
|
471
|
-
});
|
|
472
|
-
|
|
473
|
-
describe('Split code with alphanumeric subDeterminate', () => {
|
|
474
|
-
it('Correctly splits priority.', () => {
|
|
475
|
-
expect(helpers.priorityDispatch.split('29D02l').determinate).to.equal('D');
|
|
476
|
-
});
|
|
477
|
-
|
|
478
|
-
it('Correctly splits the protocol.', () => {
|
|
479
|
-
expect(helpers.priorityDispatch.split('29D02l').protocol).to.equal('29');
|
|
480
|
-
});
|
|
481
|
-
|
|
482
|
-
it('Correctly splits the subDeterminate.', () => {
|
|
483
|
-
expect(helpers.priorityDispatch.split('29D02l').subDeterminate).to.equal('02l');
|
|
484
|
-
});
|
|
485
|
-
});
|
|
486
|
-
});
|
|
487
|
-
});
|
|
1
|
+
import 'babel-polyfill';
|
|
2
|
+
import {
|
|
3
|
+
expect,
|
|
4
|
+
} from 'chai';
|
|
5
|
+
import { helpers } from '../src';
|
|
6
|
+
|
|
7
|
+
describe('Helpers', () => {
|
|
8
|
+
describe('priorityDispatch Helper', () => {
|
|
9
|
+
describe('Descriptions', () => {
|
|
10
|
+
it('Correctly supplies determinate descriptions in different formats', () => {
|
|
11
|
+
expect(helpers.priorityDispatch.getProtocolDescription(1)).to.equal('Abdominal Pain/Problems');
|
|
12
|
+
expect(helpers.priorityDispatch.getProtocolDescription('01')).to.equal('Abdominal Pain/Problems');
|
|
13
|
+
expect(helpers.priorityDispatch.getProtocolDescription('1')).to.equal('Abdominal Pain/Problems');
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
it('Correctly supplies subdeterminate descriptions in different formats', () => {
|
|
17
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'A', 1)).to.equal('Abdominal pain');
|
|
18
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'A', '1')).to.equal('Abdominal pain');
|
|
19
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription('01', 'A', '1a')).to.equal('Abdominal pain');
|
|
20
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription('01', 'B', '1a')).to.be.undefined;
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
it('Correctly supplies EMS descriptions', () => {
|
|
24
|
+
expect(helpers.priorityDispatch.getProtocolDescription(1)).to.equal('Abdominal Pain/Problems');
|
|
25
|
+
expect(helpers.priorityDispatch.getProtocolDescription(2)).to.equal('Allergies (Reactions)/Envenomations (Stings/Bites)');
|
|
26
|
+
expect(helpers.priorityDispatch.getProtocolDescription(3)).to.equal('Animal Bites/Attacks');
|
|
27
|
+
expect(helpers.priorityDispatch.getProtocolDescription(4)).to.equal('Assault/Sexual Assault');
|
|
28
|
+
expect(helpers.priorityDispatch.getProtocolDescription(5)).to.equal('Back Pain (Non-Traumatic or Non-Recent Trauma)');
|
|
29
|
+
expect(helpers.priorityDispatch.getProtocolDescription(6)).to.equal('Breathing Problems');
|
|
30
|
+
expect(helpers.priorityDispatch.getProtocolDescription(7)).to.equal('Burns (Scalds)/Explosion (Blast)');
|
|
31
|
+
expect(helpers.priorityDispatch.getProtocolDescription(8)).to.equal('Carbon Monoxide/Inhalation/HAZMAT/CBRN');
|
|
32
|
+
expect(helpers.priorityDispatch.getProtocolDescription(9)).to.equal('Cardiac or Respiratory Arrest/Death');
|
|
33
|
+
expect(helpers.priorityDispatch.getProtocolDescription(10)).to.equal('Chest Pain (Non-Traumatic)');
|
|
34
|
+
expect(helpers.priorityDispatch.getProtocolDescription(11)).to.equal('Choking');
|
|
35
|
+
expect(helpers.priorityDispatch.getProtocolDescription(12)).to.equal('Convulsions/Seizures');
|
|
36
|
+
expect(helpers.priorityDispatch.getProtocolDescription(13)).to.equal('Diabetic Problems');
|
|
37
|
+
expect(helpers.priorityDispatch.getProtocolDescription(14)).to.equal('Drowning (near)/Diving/SCUBA Accident');
|
|
38
|
+
expect(helpers.priorityDispatch.getProtocolDescription(15)).to.equal('Electrocution/Lightning');
|
|
39
|
+
expect(helpers.priorityDispatch.getProtocolDescription(16)).to.equal('Eye Problems/Injuries');
|
|
40
|
+
expect(helpers.priorityDispatch.getProtocolDescription(17)).to.equal('Falls');
|
|
41
|
+
expect(helpers.priorityDispatch.getProtocolDescription(18)).to.equal('Headache');
|
|
42
|
+
expect(helpers.priorityDispatch.getProtocolDescription(19)).to.equal('Heart Problems/AICD');
|
|
43
|
+
expect(helpers.priorityDispatch.getProtocolDescription(20)).to.equal('Heat/Cold Exposure');
|
|
44
|
+
expect(helpers.priorityDispatch.getProtocolDescription(21)).to.equal('Hemorrhage/Laceration');
|
|
45
|
+
expect(helpers.priorityDispatch.getProtocolDescription(22)).to.equal('Inaccessible Incident/Other Entrapments (Non-Vehicle)');
|
|
46
|
+
expect(helpers.priorityDispatch.getProtocolDescription(23)).to.equal('Overdose/Poisoning (Ingestion)');
|
|
47
|
+
expect(helpers.priorityDispatch.getProtocolDescription(24)).to.equal('Pregnancy/Childbirth/Miscarriage');
|
|
48
|
+
expect(helpers.priorityDispatch.getProtocolDescription(25)).to.equal('Psychiatric/Abnormal Behavior/Suicide Attempt');
|
|
49
|
+
expect(helpers.priorityDispatch.getProtocolDescription(26)).to.equal('Sick Person (Specific Diagnosis)');
|
|
50
|
+
expect(helpers.priorityDispatch.getProtocolDescription(27)).to.equal('Stab/Gunshot/Penetrating Trauma');
|
|
51
|
+
expect(helpers.priorityDispatch.getProtocolDescription(28)).to.equal('Stroke (CVA)/Transient Ischemic Attack (TIA)');
|
|
52
|
+
expect(helpers.priorityDispatch.getProtocolDescription(29)).to.equal('Traffic/Transportation Incidents');
|
|
53
|
+
expect(helpers.priorityDispatch.getProtocolDescription(30)).to.equal('Traumatic Injuries (Specific)');
|
|
54
|
+
expect(helpers.priorityDispatch.getProtocolDescription(31)).to.equal('Unconscious/Fainting (Near)');
|
|
55
|
+
expect(helpers.priorityDispatch.getProtocolDescription(32)).to.equal('Unknown Problem (Man Down)');
|
|
56
|
+
expect(helpers.priorityDispatch.getProtocolDescription(33)).to.equal('Transfer/Interfacility/Palliative Care');
|
|
57
|
+
expect(helpers.priorityDispatch.getProtocolDescription(34)).to.be.undefined;
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it('Correctly supplies EMS sub determinates descriptions', () => {
|
|
61
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'A', 1)).to.equal('Abdominal pain');
|
|
62
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'C', 1)).to.equal('Suspected aortic aneurysm (tearing/ripping pain) ≥50 years old');
|
|
63
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'C', 2)).to.equal('Known aortic aneurysm');
|
|
64
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'C', 3)).to.equal('Fainting or near fainting ≥50 years old');
|
|
65
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'C', 4)).to.equal('Females with fainting or near fainting 12-50 years old');
|
|
66
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'C', 5)).to.equal('Males with pain above navel ≥35 years old');
|
|
67
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(1, 'C', 6)).to.equal('Females with pain above navel ≥ 45 years old');
|
|
68
|
+
|
|
69
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'A', 1)).to.equal('No difficulty breathing or swallowing (rash, hives or itching may be present)');
|
|
70
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'A', 2)).to.equal('Spider bite');
|
|
71
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'B', 1)).to.equal('Unknown status/other codes not applicable');
|
|
72
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'C', 1)).to.equal('Difficulty breathing or swallowing');
|
|
73
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'C', 2)).to.equal('History of severe allergic reaction');
|
|
74
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'D', 1)).to.equal('Not alert');
|
|
75
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'D', 2)).to.equal('Difficulty speaking between breaths');
|
|
76
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'D', 3)).to.equal('Swarming attack (bee, wasp, hornet)');
|
|
77
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'D', 4)).to.equal('Snakebite');
|
|
78
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(2, 'E', 1)).to.equal('Ineffective breathing');
|
|
79
|
+
|
|
80
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'A', 1)).to.equal('Not dangerous body area');
|
|
81
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'A', 2)).to.equal('Non-recent (≥6 hours) injuries (without priority symptoms)');
|
|
82
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'A', 3)).to.equal('Superficial bites');
|
|
83
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'B', 1)).to.equal('Possibly dangerous body area');
|
|
84
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'B', 2)).to.equal('Serious hemorrhage');
|
|
85
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'B', 3)).to.equal('Unknown status/other codes not applicable');
|
|
86
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'D', 1)).to.equal('Unconscious or arrest');
|
|
87
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'D', 2)).to.equal('Not alert');
|
|
88
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'D', 3)).to.equal('Chest or neck injury (with difficulty breathing)');
|
|
89
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'D', 4)).to.equal('Dangerous body area');
|
|
90
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'D', 5)).to.equal('Large animal');
|
|
91
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(3, 'D', 6)).to.equal('Exotic animal');
|
|
92
|
+
|
|
93
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'A', 1)).to.equal('Not dangerous body area');
|
|
94
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'A', 2)).to.equal('Non-recent (≥6 hours) injuries (without priority symptoms)');
|
|
95
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'B', 1)).to.equal('Possibly dangerous body area');
|
|
96
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'B', 2)).to.equal('Serious hemorrhage');
|
|
97
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'B', 3)).to.equal('Unknown status/other codes not applicable');
|
|
98
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'D', 1)).to.equal('Unconscious or arrest');
|
|
99
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'D', 2)).to.equal('Not alert');
|
|
100
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'D', 3)).to.equal('Chest or neck injury (with difficulty breathing)');
|
|
101
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(4, 'D', 4)).to.equal('Multiple victims');
|
|
102
|
+
|
|
103
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(5, 'A', 1)).to.equal('Non-traumatic back pain');
|
|
104
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(5, 'A', 2)).to.equal('Non-recent (≥6 hours) traumatic back pain (without priority symptoms)');
|
|
105
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(5, 'C', 1)).to.equal('Suspected aortic aneurysm (tearing/ripping pain) ≥50 years old');
|
|
106
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(5, 'C', 2)).to.equal('Known aortic aneurysm');
|
|
107
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(5, 'C', 3)).to.equal('Fainting or nearly fainting ≥50 years old');
|
|
108
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(5, 'D', 1)).to.equal('Not alert');
|
|
109
|
+
|
|
110
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(6, 'C', 1)).to.equal('Abnormal breathing');
|
|
111
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(6, 'D', 1)).to.equal('Not alert');
|
|
112
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(6, 'D', 2)).to.equal('Difficulty speaking between breaths');
|
|
113
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(6, 'D', 3)).to.equal('Changing color');
|
|
114
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(6, 'D', 4)).to.equal('Clammy');
|
|
115
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(6, 'E', 1)).to.equal('Ineffective breathing');
|
|
116
|
+
|
|
117
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'A', 1)).to.equal('Burns <18% body area');
|
|
118
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'A', 2)).to.equal('Fire alarm (unknown situation)');
|
|
119
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'A', 3)).to.equal('Sunburn or minor burns (≤ hand size)');
|
|
120
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'B', 1)).to.equal('Blast injuries (without priority symptoms)');
|
|
121
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'B', 2)).to.equal('Unknown status/other codes not applicable');
|
|
122
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'C', 1)).to.equal('Building fire with persons reported inside');
|
|
123
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'C', 2)).to.equal('Difficulty breathing');
|
|
124
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'C', 3)).to.equal('Burns ≥18% body area');
|
|
125
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'C', 4)).to.equal('Significant facial burns');
|
|
126
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'D', 1)).to.equal('Multiple victims');
|
|
127
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'D', 2)).to.equal('Unconscious or arrest');
|
|
128
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'D', 3)).to.equal('Not alert');
|
|
129
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'D', 4)).to.equal('Difficulty speaking between breaths');
|
|
130
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(7, 'E', 1)).to.equal('Person on fire');
|
|
131
|
+
|
|
132
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(8, 'B', 1)).to.equal('Alert without difficulty breathing');
|
|
133
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(8, 'C', 1)).to.equal('Alert with difficulty breathing');
|
|
134
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(8, 'D', 1)).to.equal('Unconscious or arrest');
|
|
135
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(8, 'D', 2)).to.equal('Not alert');
|
|
136
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(8, 'D', 3)).to.equal('Difficulty speaking between breaths');
|
|
137
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(8, 'D', 4)).to.equal('Multiple victims');
|
|
138
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(8, 'D', 5)).to.equal('Unknown status/other codes not applicable');
|
|
139
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(8, 'O', 1)).to.equal('Carbon monoxide detector alarm (without priority symptoms)');
|
|
140
|
+
|
|
141
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'B', 1)).to.equal('Obvious death unquestionable (a through k)');
|
|
142
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'D', 1)).to.equal('Ineffective breathing');
|
|
143
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'D', 2)).to.equal('Obvious or expected death questionable');
|
|
144
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'E', 1)).to.equal('Not breathing at all');
|
|
145
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'E', 2)).to.equal('Breathing uncertain (agonal)');
|
|
146
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'E', 3)).to.equal('Hanging');
|
|
147
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'E', 4)).to.equal('Strangulation');
|
|
148
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'E', 5)).to.equal('Suffocation');
|
|
149
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'E', 6)).to.equal('Underwater');
|
|
150
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(9, 'O', 1)).to.equal('Expected death unquestionable (x through z)');
|
|
151
|
+
|
|
152
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'A', 1)).to.equal('Breathing normally <35 years old');
|
|
153
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'C', 1)).to.equal('Abnormal breathing');
|
|
154
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'C', 2)).to.equal('Heart attack or angina history');
|
|
155
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'C', 3)).to.equal('Cocaine');
|
|
156
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'C', 4)).to.equal('Breathing normally ≥35 years old');
|
|
157
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'D', 1)).to.equal('Not alert');
|
|
158
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'D', 2)).to.equal('Difficulty speaking between breaths');
|
|
159
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'D', 3)).to.equal('Changing color');
|
|
160
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(10, 'D', 4)).to.equal('Clammy');
|
|
161
|
+
|
|
162
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(11, 'A', 1)).to.equal('Not choking now (can talk or cry, is alert and breathing normally)');
|
|
163
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(11, 'D', 1)).to.equal('Abnormal breathing (partial obstruction)');
|
|
164
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(11, 'D', 2)).to.equal('Not alert');
|
|
165
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(11, 'E', 1)).to.equal('Complete obstruction/ineffective breathing');
|
|
166
|
+
|
|
167
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'A', 1)).to.equal('Not seizing now and effective breathing verified (known seizure disorder)');
|
|
168
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'A', 2)).to.equal('Not seizing now and effective breathing verified (seizure disorder unknown)');
|
|
169
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'A', 3)).to.equal('Not seizing now and effective breathing verified (≤6 years old, confirmed no seizure disorder)');
|
|
170
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'A', 4)).to.equal('Focal seizure (alert)');
|
|
171
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'A', 5)).to.equal('Impending seizure (aura)');
|
|
172
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'C', 1)).to.equal('Focal seizure (not alert)');
|
|
173
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'C', 2)).to.equal('Pregnancy');
|
|
174
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'C', 3)).to.equal('Diabetic');
|
|
175
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'C', 4)).to.equal('Not seizing now and effective breathing verified (>6 years old, confirmed no seizure disorder)');
|
|
176
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'C', 5)).to.equal('History of stroke or brain tumor');
|
|
177
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'C', 6)).to.equal('Overdose/poisoning (ingestion)');
|
|
178
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'C', 7)).to.equal('Atypical seizure');
|
|
179
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'D', 1)).to.equal('Not breathing');
|
|
180
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'D', 2)).to.equal('Continuous or multiple seizures');
|
|
181
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'D', 3)).to.equal('Agonal/ineffective breathing');
|
|
182
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(12, 'D', 4)).to.equal('Effective breathing not verified, patient ≥35 years old');
|
|
183
|
+
|
|
184
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(13, 'A', 1)).to.equal('Alert and behaving normally');
|
|
185
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(13, 'C', 1)).to.equal('Not alert');
|
|
186
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(13, 'C', 2)).to.equal('Abnormal behavior');
|
|
187
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(13, 'C', 3)).to.equal('Abnormal breathing');
|
|
188
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(13, 'D', 1)).to.equal('Unconscious');
|
|
189
|
+
|
|
190
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(14, 'A', 1)).to.equal('Alert and breathing normally (no injuries and out of water)');
|
|
191
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(14, 'B', 1)).to.equal('Alert and breathing normally (injuries or in water)');
|
|
192
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(14, 'B', 2)).to.equal('Unknown status/other codes not applicable');
|
|
193
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(14, 'C', 1)).to.equal('Alert with abnormal breathing');
|
|
194
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(14, 'D', 1)).to.equal('Unconscious or arrest');
|
|
195
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(14, 'D', 2)).to.equal('Not alert');
|
|
196
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(14, 'D', 3)).to.equal('Diving or suspected neck injury');
|
|
197
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(14, 'D', 4)).to.equal('SCUBA accident');
|
|
198
|
+
|
|
199
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'C', 1)).to.equal('Alert and breathing normally');
|
|
200
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'D', 1)).to.equal('Unconscious');
|
|
201
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'D', 2)).to.equal('Not disconnected from power');
|
|
202
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'D', 3)).to.equal('Power not off or hazard present');
|
|
203
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'D', 4)).to.equal('Extreme fall (≥30 ft/10 m)');
|
|
204
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'D', 5)).to.equal('Long fall');
|
|
205
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'D', 6)).to.equal('Not alert');
|
|
206
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'D', 7)).to.equal('Abnormal breathing');
|
|
207
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'D', 8)).to.equal('Unknown status/other codes not applicable');
|
|
208
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(15, 'E', 1)).to.equal('Not breathing/ineffective breathing');
|
|
209
|
+
|
|
210
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(16, 'A', 1)).to.equal('Moderate eye injuries');
|
|
211
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(16, 'A', 2)).to.equal('Minor eye injuries');
|
|
212
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(16, 'A', 3)).to.equal('Medical eye problems');
|
|
213
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(16, 'B', 1)).to.equal('Severe eye injuries');
|
|
214
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(16, 'D', 1)).to.equal('Not alert');
|
|
215
|
+
|
|
216
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'A', 1)).to.equal('Not dangerous body area');
|
|
217
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'A', 2)).to.equal('Non-recent (≥6 hours) injuries (without priority symptoms)');
|
|
218
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'A', 3)).to.equal('Public assist (no injuries and no priority symptoms)');
|
|
219
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'B', 1)).to.equal('Possibly dangerous body area');
|
|
220
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'B', 2)).to.equal('Serious hemorrhage');
|
|
221
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'B', 3)).to.equal('Unknown status/other codes not applicable');
|
|
222
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'D', 1)).to.equal('Extreme fall (≥30 ft/10 m)');
|
|
223
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'D', 2)).to.equal('Unconscious or arrest');
|
|
224
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'D', 3)).to.equal('Not alert');
|
|
225
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'D', 4)).to.equal('Chest or neck injury (with difficulty breathing)');
|
|
226
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(17, 'D', 5)).to.equal('Long fall');
|
|
227
|
+
|
|
228
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'A', 1)).to.equal('Breathing normally');
|
|
229
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'B', 1)).to.equal('Unknown status/other codes not applicable');
|
|
230
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'C', 1)).to.equal('Not alert');
|
|
231
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'C', 2)).to.equal('Abnormal breathing');
|
|
232
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'C', 3)).to.equal('Speech problems');
|
|
233
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'C', 4)).to.equal('Sudden onset of severe pain');
|
|
234
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'C', 5)).to.equal('Numbness');
|
|
235
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'C', 6)).to.equal('Paralysis');
|
|
236
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(18, 'C', 7)).to.equal('Change in behavior (≤3 hours)');
|
|
237
|
+
|
|
238
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'A', 1)).to.equal('Heart rate ≥50 bpm and <130 bpm (without priority symptoms)');
|
|
239
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'A', 2)).to.equal('Chest pain <35 years old (without priority symptoms)');
|
|
240
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'C', 1)).to.equal('Firing of AICD');
|
|
241
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'C', 2)).to.equal('Abnormal breathing');
|
|
242
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'C', 3)).to.equal('Chest pain ≥35 years old');
|
|
243
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'C', 4)).to.equal('Cardiac history');
|
|
244
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'C', 5)).to.equal('Cocaine');
|
|
245
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'C', 6)).to.equal('Heart rate <50 bpm or ≥130 bpm (without priority symptoms)');
|
|
246
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'C', 7)).to.equal('Unknown status/other codes not applicable');
|
|
247
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'D', 1)).to.equal('Not alert');
|
|
248
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'D', 2)).to.equal('Difficulty speaking between breaths');
|
|
249
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'D', 3)).to.equal('Changing color');
|
|
250
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'D', 4)).to.equal('Clammy');
|
|
251
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(19, 'D', 5)).to.equal('Just resuscitated and/or defibrillated (external)');
|
|
252
|
+
|
|
253
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(20, 'A', 1)).to.equal('Alert');
|
|
254
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(20, 'B', 1)).to.equal('Change in skin color');
|
|
255
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(20, 'B', 2)).to.equal('Unknown status/other codes not applicable');
|
|
256
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(20, 'C', 1)).to.equal('Heart attack or angina history');
|
|
257
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(20, 'D', 1)).to.equal('Not alert');
|
|
258
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(20, 'D', 2)).to.equal('Multiple victims (with priority symptoms)');
|
|
259
|
+
|
|
260
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'A', 1)).to.equal('Not dangerous hemorrhage');
|
|
261
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'A', 2)).to.equal('Minor hemorrhage');
|
|
262
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'B', 1)).to.equal('Possibly dangerous hemorrhage');
|
|
263
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'B', 2)).to.equal('Serious hemorrhage');
|
|
264
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'B', 3)).to.equal('Bleeding disorder');
|
|
265
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'B', 4)).to.equal('Blood thinners');
|
|
266
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'C', 1)).to.equal('Hemorrhage through tubes');
|
|
267
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'C', 2)).to.equal('Hemorrhage of dialysis fistula');
|
|
268
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'D', 1)).to.equal('Unconscious or arrest');
|
|
269
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'D', 2)).to.equal('Not alert');
|
|
270
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'D', 3)).to.equal('Dangerous hemorrhage');
|
|
271
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(21, 'D', 4)).to.equal('Abnormal breathing');
|
|
272
|
+
|
|
273
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'A', 1)).to.equal('No longer trapped (no injuries)');
|
|
274
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'B', 1)).to.equal('No longer trapped (unknown injuries)');
|
|
275
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'B', 2)).to.equal('Peripheral entrapment only');
|
|
276
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'B', 3)).to.equal('Unknown status (investigation)/other codes not applicable');
|
|
277
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'D', 1)).to.equal('Mechanical/machinery entrapment');
|
|
278
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'D', 2)).to.equal('Trench collapse');
|
|
279
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'D', 3)).to.equal('Structure collapse');
|
|
280
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'D', 4)).to.equal('Confined space rescue');
|
|
281
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'D', 5)).to.equal('Inaccessible terrain situation');
|
|
282
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(22, 'D', 6)).to.equal('Mudslide/avalanche');
|
|
283
|
+
|
|
284
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'B', 1)).to.equal('Overdose (without priority symptoms)');
|
|
285
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'C', 1)).to.equal('Not alert');
|
|
286
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'C', 2)).to.equal('Abnormal breathing');
|
|
287
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'C', 3)).to.equal('Antidepressants (tricyclic)');
|
|
288
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'C', 4)).to.equal('Cocaine, methamphetamine (or derivatives)');
|
|
289
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'C', 5)).to.equal('Narcotics (heroin)');
|
|
290
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'C', 6)).to.equal('Acid or alkali (lye)');
|
|
291
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'C', 7)).to.equal('Unknown status/other codes not applicable');
|
|
292
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'C', 8)).to.equal('Poison Control request for response');
|
|
293
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'D', 1)).to.equal('Unconscious');
|
|
294
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'D', 2)).to.equal('Changing color');
|
|
295
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(23, 'O', 1)).to.equal('Poisoning (without priority symptoms)');
|
|
296
|
+
|
|
297
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'A', 1)).to.equal('1st trimester hemorrhage or miscarriage');
|
|
298
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'B', 1)).to.equal('Labor (delivery not imminent, ≥5 months/20 weeks)');
|
|
299
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'B', 2)).to.equal('Unknown status/other codes not applicable');
|
|
300
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'C', 1)).to.equal('2nd trimester hemorrhage or miscarriage');
|
|
301
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'C', 2)).to.equal('1st trimester serious hemorrhage');
|
|
302
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'C', 3)).to.equal('Baby born (no complications)');
|
|
303
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'D', 1)).to.equal('Breech or cord');
|
|
304
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'D', 2)).to.equal('Head visible/out');
|
|
305
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'D', 3)).to.equal('Imminent delivery (≥5 months/20 weeks)');
|
|
306
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'D', 4)).to.equal('3rd trimester hemorrhage');
|
|
307
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'D', 5)).to.equal('High risk complications');
|
|
308
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'D', 6)).to.equal('Baby born (complications with baby)');
|
|
309
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'D', 7)).to.equal('Baby born (complications with mother)');
|
|
310
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(24, 'O', 1)).to.equal('Waters broken (no contractions or presenting parts)');
|
|
311
|
+
|
|
312
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'A', 1)).to.equal('Non-suicidal and alert');
|
|
313
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'A', 2)).to.equal('Suicidal (not threatening) and alert');
|
|
314
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'B', 1)).to.equal('Serious hemorrhage');
|
|
315
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'B', 2)).to.equal('Non-serious or minor hemorrhage');
|
|
316
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'B', 3)).to.equal('Threatening suicide');
|
|
317
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'B', 4)).to.equal('Jumper (threatening)');
|
|
318
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'B', 5)).to.equal('Near hanging, strangulation or suffocation (alert)');
|
|
319
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'B', 6)).to.equal('Unknown status/other codes not applicable');
|
|
320
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'D', 1)).to.equal('Not alert');
|
|
321
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(25, 'D', 2)).to.equal('Dangerous hemorrhage');
|
|
322
|
+
|
|
323
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 1)).to.equal('No priority symptoms (complaint conditions 2-11 not identified)');
|
|
324
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 2)).to.equal('Blood pressure abnormality');
|
|
325
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 3)).to.equal('Dizziness/vertigo');
|
|
326
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 4)).to.equal('Fever/chills');
|
|
327
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 5)).to.equal('General weakness');
|
|
328
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 6)).to.equal('Nausea');
|
|
329
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 7)).to.equal('New onset of immobility');
|
|
330
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 8)).to.equal('Other pain');
|
|
331
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 9)).to.equal('Transportation only');
|
|
332
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 10)).to.equal('Unwell/ill');
|
|
333
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'A', 11)).to.equal('Vomiting');
|
|
334
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'B', 1)).to.equal('Unknown status/other codes not applicable');
|
|
335
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'C', 1)).to.equal('Altered level of consciousness');
|
|
336
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'C', 2)).to.equal('Abnormal breathing');
|
|
337
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'C', 3)).to.equal('Sickle cell crisis/thalassemia');
|
|
338
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'D', 1)).to.equal('Not alert');
|
|
339
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 1)).to.equal('CODE NOT IN USE');
|
|
340
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 2)).to.equal('Boils');
|
|
341
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 3)).to.equal('Bumps (non-traumatic)');
|
|
342
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 4)).to.equal('Can\'t sleep');
|
|
343
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 5)).to.equal('Can\'t urinate (without abdominal pain)');
|
|
344
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 6)).to.equal('Catheter (in/out without hemorrhaging)');
|
|
345
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 7)).to.equal('Constipation');
|
|
346
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 8)).to.equal('Cramps/spasms/joint pain (in extremities and non-traumatic)');
|
|
347
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 9)).to.equal('Cut-off ring request');
|
|
348
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 10)).to.equal('Deafness');
|
|
349
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 11)).to.equal('Defecation/diarrhea');
|
|
350
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 12)).to.equal('Earache');
|
|
351
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 13)).to.equal('Enema');
|
|
352
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 14)).to.equal('Gout');
|
|
353
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 15)).to.equal('Hemorrhoids/piles');
|
|
354
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 16)).to.equal('Hepatitis');
|
|
355
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 17)).to.equal('Hiccups');
|
|
356
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 18)).to.equal('Itching');
|
|
357
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 19)).to.equal('Nervous');
|
|
358
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 20)).to.equal('Object stuck (nose, ear, vagina, rectum, penis)');
|
|
359
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 21)).to.equal('Object swallowed (without choking or difficulty breathing, can talk)');
|
|
360
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 22)).to.equal('Painful urination');
|
|
361
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 23)).to.equal('Penis problems/pain');
|
|
362
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 24)).to.equal('Rash/skin disorder (without difficulty breathing or swallowing)');
|
|
363
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 25)).to.equal('Sexually Transmitted Disease (STD)');
|
|
364
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 26)).to.equal('Sore throat (without difficulty breathing or swallowing');
|
|
365
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 27)).to.equal('Toothache (without jaw pain)');
|
|
366
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(26, 'O', 28)).to.equal('Wound infected (focal or surface)');
|
|
367
|
+
|
|
368
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'A', 1)).to.equal('Non-recent (≥6 hours peripheral wounds (without priority symptoms)');
|
|
369
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'B', 1)).to.equal('Non-recent (≥6 hours) single central wound');
|
|
370
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'B', 2)).to.equal('Known single peripheral wound');
|
|
371
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'B', 3)).to.equal('Serious hemorrhage');
|
|
372
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'B', 4)).to.equal('Unknown status/other codes not applicable');
|
|
373
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'B', 5)).to.equal('Obvious death (explosive GSW to head)');
|
|
374
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'D', 1)).to.equal('Unconscious or arrest');
|
|
375
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'D', 2)).to.equal('Not alert');
|
|
376
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'D', 3)).to.equal('Central wounds');
|
|
377
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'D', 4)).to.equal('Multiple wounds');
|
|
378
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(27, 'D', 5)).to.equal('Multiple victims');
|
|
379
|
+
|
|
380
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'A', 1)).to.equal('Breathing normally <35 years old');
|
|
381
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 1)).to.equal('Not alert');
|
|
382
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 2)).to.equal('Abnormal breathing');
|
|
383
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 3)).to.equal('Sudden speech problems');
|
|
384
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 4)).to.equal('Sudden weakness or numbness (one side)');
|
|
385
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 5)).to.equal('Sudden paralysis or facial droop (one side)');
|
|
386
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 6)).to.equal('Sudden loss of balance or coordination');
|
|
387
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 7)).to.equal('Sudden vision problems');
|
|
388
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 8)).to.equal('Sudden onset of severe headache');
|
|
389
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 9)).to.equal('Stroke history');
|
|
390
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 10)).to.equal('TIA (mini-stroke) history');
|
|
391
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 11)).to.equal('Breathing normally ≥35 years old');
|
|
392
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(28, 'C', 12)).to.equal('Unknown status/other codes not applicable');
|
|
393
|
+
|
|
394
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'A', 1)).to.equal('1st party caller with injury to not dangerous body area');
|
|
395
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'B', 1)).to.equal('Injuries');
|
|
396
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'B', 2)).to.equal('Serious hemorrhage');
|
|
397
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'B', 3)).to.equal('Other hazards');
|
|
398
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'B', 4)).to.equal('Unknown status/other codes not applicable');
|
|
399
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'D', 1)).to.equal('Major incident (a through f)');
|
|
400
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'D', 2)).to.equal('High mechanism (k through s)');
|
|
401
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'D', 3)).to.equal('Hazmat');
|
|
402
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'D', 4)).to.equal('Pinned (trapped victim)');
|
|
403
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'D', 5)).to.equal('Not alert');
|
|
404
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(29, 'O', 1)).to.equal('No injuries (confirmed)');
|
|
405
|
+
|
|
406
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(30, 'A', 1)).to.equal('Not dangerous body area');
|
|
407
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(30, 'A', 2)).to.equal('Non-recent (≥6 hours) injuries (without priority symptoms)');
|
|
408
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(30, 'B', 1)).to.equal('Possibly dangerous body area');
|
|
409
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(30, 'B', 2)).to.equal('Serious hemorrhage');
|
|
410
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(30, 'D', 1)).to.equal('Unconscious or arrest');
|
|
411
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(30, 'D', 2)).to.equal('Not alert');
|
|
412
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(30, 'D', 3)).to.equal('Chest or neck injury (with difficulty breathing)');
|
|
413
|
+
|
|
414
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'A', 1)).to.equal('Fainting episode(s) and alert ≥35 years old (without cardiac history)');
|
|
415
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'A', 2)).to.equal('Fainting episode(s) and alert <35 years old (with cardiac history)');
|
|
416
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'A', 3)).to.equal('Fainting episode(s) and alert <35 years old (without cardiac history)');
|
|
417
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'C', 1)).to.equal('Alert with abnormal breathing');
|
|
418
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'C', 2)).to.equal('Fainting episode(s) and alert ≥35 years old (with cardiac history)');
|
|
419
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'C', 3)).to.equal('Females 12-50 years old with abdominal pain');
|
|
420
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'D', 1)).to.equal('Unconscious - agonal/ineffective breathing');
|
|
421
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'D', 2)).to.equal('Unconscious - effective breathing');
|
|
422
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'D', 3)).to.equal('Not alert');
|
|
423
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'D', 4)).to.equal('Changing color');
|
|
424
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(31, 'E', 1)).to.equal('Ineffective breathing');
|
|
425
|
+
|
|
426
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(32, 'B', 1)).to.equal('Standing, sitting, moving or talking');
|
|
427
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(32, 'B', 2)).to.equal('Medical alarm (alert) notifications (no patient information)');
|
|
428
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(32, 'B', 3)).to.equal('Unknown status/other codes not applicable');
|
|
429
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(32, 'B', 4)).to.equal('Caller\'s language not understood (no interpreter in center)');
|
|
430
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(32, 'D', 1)).to.equal('Life status questionable');
|
|
431
|
+
|
|
432
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'A', 1)).to.equal('Acuity I (no priority symptoms)');
|
|
433
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'A', 2)).to.equal('Acuity II (no priority symptoms)');
|
|
434
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'A', 3)).to.equal('Acuity III (no priority symptoms)');
|
|
435
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'C', 1)).to.equal('Not alert (acute change)');
|
|
436
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'C', 2)).to.equal('Abnormal breathing (acute onset)');
|
|
437
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'C', 3)).to.equal('Significant hemorrhage or shock');
|
|
438
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'C', 4)).to.equal('Possible acute heart problems or MI (heart attack)');
|
|
439
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'C', 5)).to.equal('Acute severe pain');
|
|
440
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'C', 6)).to.equal('Emergency response requested');
|
|
441
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'D', 1)).to.equal('Suspected cardiac or respiratory arrest');
|
|
442
|
+
expect(helpers.priorityDispatch.getSubDeterminateDescription(33, 'D', 2)).to.equal('Just resuscitated and/or defibrillated (external)');
|
|
443
|
+
});
|
|
444
|
+
});
|
|
445
|
+
describe('Split code without subDeterminate.', () => {
|
|
446
|
+
it('Correctly splits priority.', () => {
|
|
447
|
+
expect(helpers.priorityDispatch.split('32B').determinate).to.equal('B');
|
|
448
|
+
});
|
|
449
|
+
|
|
450
|
+
it('Correctly splits the protocol.', () => {
|
|
451
|
+
expect(helpers.priorityDispatch.split('32B').protocol).to.equal('32');
|
|
452
|
+
});
|
|
453
|
+
|
|
454
|
+
it('Correctly splits the subDeterminate.', () => {
|
|
455
|
+
expect(helpers.priorityDispatch.split('32B').subDeterminate).to.be.empty;
|
|
456
|
+
});
|
|
457
|
+
});
|
|
458
|
+
|
|
459
|
+
describe('Split code with subDeterminate', () => {
|
|
460
|
+
it('Correctly splits priority.', () => {
|
|
461
|
+
expect(helpers.priorityDispatch.split('26A02').determinate).to.equal('A');
|
|
462
|
+
});
|
|
463
|
+
|
|
464
|
+
it('Correctly splits the protocol.', () => {
|
|
465
|
+
expect(helpers.priorityDispatch.split('26A02').protocol).to.equal('26');
|
|
466
|
+
});
|
|
467
|
+
|
|
468
|
+
it('Correctly splits the subDeterminate.', () => {
|
|
469
|
+
expect(helpers.priorityDispatch.split('26A02').subDeterminate).to.equal('02');
|
|
470
|
+
});
|
|
471
|
+
});
|
|
472
|
+
|
|
473
|
+
describe('Split code with alphanumeric subDeterminate', () => {
|
|
474
|
+
it('Correctly splits priority.', () => {
|
|
475
|
+
expect(helpers.priorityDispatch.split('29D02l').determinate).to.equal('D');
|
|
476
|
+
});
|
|
477
|
+
|
|
478
|
+
it('Correctly splits the protocol.', () => {
|
|
479
|
+
expect(helpers.priorityDispatch.split('29D02l').protocol).to.equal('29');
|
|
480
|
+
});
|
|
481
|
+
|
|
482
|
+
it('Correctly splits the subDeterminate.', () => {
|
|
483
|
+
expect(helpers.priorityDispatch.split('29D02l').subDeterminate).to.equal('02l');
|
|
484
|
+
});
|
|
485
|
+
});
|
|
486
|
+
});
|
|
487
|
+
});
|