-
Notifications
You must be signed in to change notification settings - Fork 0
/
bprs-echo.sh
167 lines (167 loc) · 4.19 KB
/
bprs-echo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
#/!/bin/bash
echo "This is Brief Psychiatric Rating Scale (BPRS) Calculator"
echo "--------------------------------------------------------"
echo "Please, enter value for somatic concern [0-7]"
while :; do
read BPRS1
if [[ $BPRS1 -ge 0 && $BPRS1 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for anxiety [0-7]"
while :; do
read BPRS2
if [[ $BPRS2 -ge 0 && $BPRS2 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for emotional withdrawal [0-7]"
while :; do
read BPRS3
if [[ $BPRS3 -ge 0 && $BPRS3 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for conceptual disorganization [0-7]"
while :; do
read BPRS4
if [[ $BPRS4 -ge 0 && $BPRS4 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for guilt feelings [0-7]"
while :; do
read BPRS5
if [[ $BPRS5 -ge 0 && $BPRS5 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for tension [0-7]"
while :; do
read BPRS6
if [[ $BPRS6 -ge 0 && $BPRS6 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for mannerisms and posturing [0-7]"
while :; do
read BPRS7
if [[ $BPRS7 -ge 0 && $BPRS7 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for grandiosity [0-7]"
while :; do
read BPRS8
if [[ $BPRS8 -ge 0 && $BPRS8 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for depressive mood [0-7]"
while :; do
read BPRS9
if [[ $BPRS9 -ge 0 && $BPRS9 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for hostility [0-7]"
while :; do
read BPRS10
if [[ $BPRS10 -ge 0 && $BPRS10 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for suspiciousness [0-7]"
while :; do
read BPRS11
if [[ $BPRS11 -ge 0 && $BPRS11 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for hallucinatory behaviour [0-7]"
while :; do
read BPRS12
if [[ $BPRS12 -ge 0 && $BPRS12 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for motor retardation [0-7]"
while :; do
read BPRS13
if [[ $BPRS13 -ge 0 && $BPRS13 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for uncooperativeness [0-7]"
while :; do
read BPRS14
if [[ $BPRS14 -ge 0 && $BPRS14 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for unusual thought content [0-7]"
while :; do
read BPRS15
if [[ $BPRS15 -ge 0 && $BPRS15 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for blunted affect [0-7]"
while :; do
read BPRS16
if [[ $BPRS16 -ge 0 && $BPRS16 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for excitement [0-7]"
while :; do
read BPRS17
if [[ $BPRS17 -ge 0 && $BPRS17 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
echo "Please, enter value for disorientation [0-7]"
while :; do
read BPRS18
if [[ $BPRS18 -ge 0 && $BPRS18 -le 7 ]]; then
break
else
echo "Value is out of range. Please, enter a valid number"
fi
done
bprs=$(echo $BPRS1 + $BPRS2 + $BPRS3 + $BPRS4 + $BPRS5 + $BPRS6 + $BPRS7 + $BPRS8 + $BPRS9 + $BPRS10 + $BPRS11 + $BPRS12 + $BPRS13 + $BPRS14 + $BPRS15 + $BPRS16 + $BPRS17 + $BPRS18)
echo "BPRS score is" $(($bprs))"/126"