Skip to content

Commit 4b3efc4

Browse files
Merge branch 'feat/836-add-additional-sisx' into develop
2 parents 87ecca7 + 2c2da8c commit 4b3efc4

File tree

13 files changed

+100
-74
lines changed

13 files changed

+100
-74
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ unreleased
66
- fix issues where addition of some unscheduled visits could result in
77
a server error when trying to render subject's dashboard
88
(#798, #807, #824, #827, #829, #830, #831)
9+
- add additional symptom choices to Signs and Symptoms form, update
10+
rm792 sx 'other' field reports (#836)
911
- fix Signs and Symptoms and Vital Signs forms unavailable with
1012
Auditor/read-only role (#839)
1113
- update use of format_html for DJ6

effect_lists/list_data.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@
213213
"effect_lists.sisx": [
214214
(NOT_APPLICABLE, "--Not applicable"),
215215
("abdominal_cramps", "Abdominal cramps"),
216+
("abdominal_distention", "Abdominal distention"),
216217
("abdominal_pain", "Abdominal pain"),
217218
("back_pain_lp_site", "Back pain at LP site"),
218219
("backache", "Backache"),
@@ -224,13 +225,18 @@
224225
("dizziness", "Dizziness"),
225226
("double_vision", "Double vision"),
226227
("drowsiness", "Drowsiness"),
228+
("dry_mouth", "Dry mouth"),
229+
("dry_skin", "Dry skin"),
227230
("fatigue_malaise", "Fatigue/malaise"),
228231
("fever", "Fever"),
229232
("focal_weakness", "Focal weakness"),
230233
("general_weakness", "General weakness"),
231234
(HEADACHE, "Headache"),
232235
("hearing_loss", "Hearing loss"),
236+
("increased_appetite", "Increased appetite"),
237+
("insomnia", "Insomnia"),
233238
("itching", "Itching"),
239+
("itchy_eyes", "Itchy eyes"),
234240
("jaundice", "Jaundice"),
235241
("loss_appetite", "Loss of appetite"),
236242
("luts", "Lower urinary tract symptoms (LUTS)"),
@@ -260,9 +266,11 @@
260266
"Neuro - Other focal neurologic deficit, please specify below ...",
261267
),
262268
("neuromuscular_weakness", "Neuromuscular weakness"),
269+
("palpitations", "Palpitations"),
263270
("peripheral_neuropathy", "Peripheral neuropathy"),
264271
("pleuritic_chest_pain", "Pleuritic chest pain"),
265272
("rash", "Rash"),
273+
("rhinorrhoea", "Rhinorrhoea (runny nose)"),
266274
("shortness_of_breath", "Shortness of breath"),
267275
("skin_lesions", "Skin lesions"),
268276
(VISUAL_LOSS, "Visual loss"),

effect_reports/admin/unmanaged/rm792_kw_in_current_sx_gte_g3_other_admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ class Rm792KwInCurrentSxGteG3OtherAdmin(
3232
"{html}",
3333
html=mark_safe(
3434
render_to_string(
35-
"effect_reports/in_current_sx_gte_g3_other/changelist_note.html", {}
35+
"effect_reports/rm792_kw_in_sx_other/changelist_note.html",
36+
context=dict(other_field="current_sx_gte_g3_other"),
3637
)
3738
), # nosec #B703 # B308
3839
)

effect_reports/admin/unmanaged/rm792_kw_in_current_sx_other_admin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ class Rm792KwInCurrentSxOtherAdmin(
3131
change_list_note = format_html(
3232
"{html}",
3333
html=mark_safe(
34-
render_to_string("effect_reports/in_current_sx_other/changelist_note.html", {})
34+
render_to_string(
35+
"effect_reports/rm792_kw_in_sx_other/changelist_note.html",
36+
context=dict(other_field="current_sx_other"),
37+
)
3538
), # nosec #B703 # B308
3639
)
3740

effect_reports/admin/unmanaged/rm792_si_sx_list_candidates.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ class Rm792SiSxListCandidatesAdmin(
2121
change_list_note = format_html(
2222
"{html}",
2323
html=mark_safe(
24-
render_to_string("effect_reports/sisx_list_candidates/changelist_note.html", {})
24+
render_to_string(
25+
"effect_reports/rm792_kw_in_sx_other/changelist_note.html",
26+
context=dict(other_field="current_sx_other"),
27+
)
2528
), # nosec #B703 # B308
2629
)
2730

effect_reports/migrations/0012_update_rm792_views.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,11 @@ class Migration(migrations.Migration):
2525
app_name="effect_reports",
2626
)
2727
),
28+
migrations.RunSQL("drop view if exists rm792_si_sx_list_candidates"),
29+
migrations.RunSQL(
30+
read_unmanaged_model_sql(
31+
"rm792_si_sx_list_candidates.sql",
32+
app_name="effect_reports",
33+
)
34+
),
2835
]

effect_reports/models/unmanaged/rm792_kw_in_current_sx_gte_g3_other.sql

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,21 @@ where
2424
or `current_sx_gte_g3_other` like '%conf%'
2525
or `current_sx_gte_g3_other` like '%consti%'
2626
or `current_sx_gte_g3_other` like '%diar%'
27+
or `current_sx_gte_g3_other` like '%disten%'
2728
or `current_sx_gte_g3_other` like '%diz%'
29+
or `current_sx_gte_g3_other` like '%dry%'
2830
or `current_sx_gte_g3_other` like '%fatig%'
29-
or `current_sx_gte_g3_other` like '%itchy%'
31+
or `current_sx_gte_g3_other` like '%insom%'
32+
or `current_sx_gte_g3_other` like '%itch%'
3033
or `current_sx_gte_g3_other` like '%mala%'
34+
or `current_sx_gte_g3_other` like '%nasal%'
3135
or `current_sx_gte_g3_other` like '%neuro%'
36+
or `current_sx_gte_g3_other` like '%nose%'
37+
or `current_sx_gte_g3_other` like '%palp%'
3238
or `current_sx_gte_g3_other` like '%pleur%'
3339
or `current_sx_gte_g3_other` like '%rash%'
40+
or `current_sx_gte_g3_other` like '%rhin%'
41+
or `current_sx_gte_g3_other` like '%run%'
3442
or `current_sx_gte_g3_other` like '%urin%'
3543
or `current_sx_gte_g3_other` like '%weak%'
3644
order by

effect_reports/models/unmanaged/rm792_kw_in_current_sx_other.sql

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,21 @@ where
2424
or `current_sx_other` like '%conf%'
2525
or `current_sx_other` like '%consti%'
2626
or `current_sx_other` like '%diar%'
27+
or `current_sx_other` like '%disten%'
2728
or `current_sx_other` like '%diz%'
29+
or `current_sx_other` like '%dry%'
2830
or `current_sx_other` like '%fatig%'
29-
or `current_sx_other` like '%itchy%'
31+
or `current_sx_other` like '%insom%'
32+
or `current_sx_other` like '%itch%'
3033
or `current_sx_other` like '%mala%'
34+
or `current_sx_other` like '%nasal%'
3135
or `current_sx_other` like '%neuro%'
36+
or `current_sx_other` like '%nose%'
37+
or `current_sx_other` like '%palp%'
3238
or `current_sx_other` like '%pleur%'
3339
or `current_sx_other` like '%rash%'
40+
or `current_sx_other` like '%rhin%'
41+
or `current_sx_other` like '%run%'
3442
or `current_sx_other` like '%urin%'
3543
or `current_sx_other` like '%weak%'
3644
order by

effect_reports/models/unmanaged/rm792_si_sx_list_candidates.sql

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,29 @@ from
1111
effect_subject_signsandsymptoms as crf
1212
left join effect_subject_subjectvisit as sv on crf.subject_visit_id = sv.id
1313
where
14-
current_sx_other like '%abdom%'
15-
or current_sx_other like '%appet%'
16-
or current_sx_other like '%back%'
17-
or current_sx_other like '%behav%'
18-
or current_sx_other like '%conf%'
19-
or current_sx_other like '%diz%'
20-
or current_sx_other like '%itchy%'
21-
or current_sx_other like '%neuro%'
22-
or current_sx_other like '%pleur%'
23-
or current_sx_other like '%rash%'
24-
or current_sx_other like '%urin%'
14+
`current_sx_other` like '%abdom%'
15+
or `current_sx_other` like '%appet%'
16+
or `current_sx_other` like '%back%'
17+
or `current_sx_other` like '%behav%'
18+
or `current_sx_other` like '%conf%'
19+
or `current_sx_other` like '%consti%'
20+
or `current_sx_other` like '%diar%'
21+
or `current_sx_other` like '%disten%'
22+
or `current_sx_other` like '%diz%'
23+
or `current_sx_other` like '%dry%'
24+
or `current_sx_other` like '%fatig%'
25+
or `current_sx_other` like '%insom%'
26+
or `current_sx_other` like '%itch%'
27+
or `current_sx_other` like '%mala%'
28+
or `current_sx_other` like '%nasal%'
29+
or `current_sx_other` like '%neuro%'
30+
or `current_sx_other` like '%nose%'
31+
or `current_sx_other` like '%palp%'
32+
or `current_sx_other` like '%pleur%'
33+
or `current_sx_other` like '%rash%'
34+
or `current_sx_other` like '%rhin%'
35+
or `current_sx_other` like '%run%'
36+
or `current_sx_other` like '%urin%'
37+
or `current_sx_other` like '%weak%'
2538
order by
2639
current_sx_other);

effect_reports/templates/effect_reports/in_current_sx_gte_g3_other/changelist_note.html

Lines changed: 0 additions & 21 deletions
This file was deleted.

effect_reports/templates/effect_reports/in_current_sx_other/changelist_note.html

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<p>
2+
Dynamic report listing <strong>Signs and Symptoms</strong> CRFs
3+
where <em>`{{ other_field }}`</em> contains one or more of the
4+
following terms:
5+
</p>
6+
<ul style='columns: 4; -webkit-columns: 4; -moz-columns: 4; max-width: 250px;'>
7+
<li>abdom</li>
8+
<li>appet</li>
9+
<li>back</li>
10+
<li>behav</li>
11+
<li>conf</li>
12+
<li>consti</li>
13+
<li>diar</li>
14+
<li>disten</li>
15+
<li>diz</li>
16+
<li>dry</li>
17+
<li>fatig</li>
18+
<li>insom</li>
19+
<li>itch</li>
20+
<li>mala</li>
21+
<li>nasal</li>
22+
<li>neuro</li>
23+
<li>nose</li>
24+
<li>palp</li>
25+
<li>pleur</li>
26+
<li>rash</li>
27+
<li>rhin</li>
28+
<li>run</li>
29+
<li>urin</li>
30+
<li>weak</li>
31+
</ul>

effect_reports/templates/effect_reports/sisx_list_candidates/changelist_note.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)