Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update attention flag logic for abnormal abdominal exam reasons & Abnormal pelvic exam #368

Merged
merged 7 commits into from Oct 11, 2019
12 changes: 6 additions & 6 deletions opensrp-anc/src/main/assets/config/attention-flags.yml
Expand Up @@ -47,6 +47,12 @@ fields:
- template: "Abnormal breast exam: {breast_exam_abnormal_value}"
relevance: "!breast_exam_abnormal.contains('none') && !breast_exam_abnormal.isEmpty()"

- template: "Abnormal abdominal exam: {abdominal_exam_abnormal_value}"
relevance: "!abdominal_exam_abnormal.contains('none') && !abdominal_exam_abnormal.isEmpty()"

- template: "Abnormal pelvic exam: {pelvic_exam_abnormal_value}"
relevance: "!pelvic_exam_abnormal.contains('none') && !pelvic_exam_abnormal.isEmpty()"

- template: "Oedema present"
relevance: "oedema == 'yes'"

Expand Down Expand Up @@ -116,12 +122,6 @@ fields:
- template: "Abnormal cardiac exam: {cardiac_exam_abnormal_value}"
relevance: "!cardiac_exam_abnormal.contains('none') && !cardiac_exam_abnormal.isEmpty()"

- template: "Abnormal abdominal exam: {abdominal_exam_abnormal_value}"
relevance: "!abdominal_exam_abnormal.contains('none') && !abdominal_exam_abnormal.isEmpty()"

- template: "Abnormal pelvic exam: {pelvic_exam_abnormal_value}"
relevance: "!pelvic_exam_abnormal.contains('none') && !pelvic_exam_abnormal.isEmpty()"

- template: "Cervix dilated: {dilation_cm} cm"
relevance: "dilation_cm > 2"

Expand Down
Expand Up @@ -344,7 +344,7 @@
"type": "toaster_notes",
"text": "Abnormal abdominal exam: {abdominal_exam_abnormal}",
"toaster_info_text": "Procedure:\n\n- Refer for further investigation",
"toaster_type": "problem",
"toaster_type": "warning",
"relevance": {
"rules-engine": {
"ex-rules": {
Expand All @@ -368,7 +368,7 @@
"type": "toaster_notes",
"text": "Abnormal pelvic exam: {pelvic_exam_abnormal}",
"toaster_info_text": "Procedure:\n\n- Refer for further investigation",
"toaster_type": "problem",
"toaster_type": "warning",
"relevance": {
"rules-engine": {
"ex-rules": {
Expand Down
12 changes: 6 additions & 6 deletions opensrp-anc/src/main/assets/json.form/anc_physical_exam.json
Expand Up @@ -1705,9 +1705,9 @@
"openmrs_entity": "",
"openmrs_entity_id": "",
"type": "toaster_notes",
"text": "Abnormal abdominal exam. Refer for further investigation.",
"text_color": "#E20000",
"toaster_type": "problem",
"text": "Abnormal abdominal exam. Consider high level evaluation or referral.",
"text_color": "#D56900",
"toaster_type": "warning",
"relevance": {
"rules-engine": {
"ex-rules": {
Expand Down Expand Up @@ -1769,9 +1769,9 @@
"openmrs_entity": "",
"openmrs_entity_id": "",
"type": "toaster_notes",
"text": "Abnormal pelvic exam. Refer for further investigation.",
"text_color": "#E20000",
"toaster_type": "problem",
"text": "Abnormal pelvic exam. Consider high level evaluation, specific syndromic treatment or referral.",
"text_color": "#D56900",
"toaster_type": "warning",
"relevance": {
"rules-engine": {
"ex-rules": {
Expand Down