Skip to content

Commit

Permalink
Changes to screening section of the form (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckote authored Oct 11, 2023
1 parent b4d34e1 commit ad2bb2c
Showing 1 changed file with 90 additions and 30 deletions.
120 changes: 90 additions & 30 deletions configuration/ampathforms/Cancer_Screening_and_Early_Diagnosis.json
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@
"label": "Initial visit"
},
{
"concept": "161236AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Routine visit"
"concept": "161236AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Routine visit"
},
{
"concept": "3663d6e2-ca04-48a1-8a68-cf685d28e715",
Expand All @@ -417,8 +417,8 @@
"rendering": "radio",
"answers": [
{
"concept": "164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "First time screening"
"concept": "164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "First time screening"
},
{
"concept": "160530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand All @@ -441,12 +441,12 @@
"rendering": "multiCheckbox",
"answers": [
{
"concept": "116023AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Cervical"
"concept": "116023AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Cervical"
},
{
"concept": "116026AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Breast"
"concept": "116026AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Breast"
},
{
"concept": "133350AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand All @@ -461,9 +461,6 @@
"label": "Oral cancer"
}
]
},
"hide": {
"hideWhenExpression": "sex !== 'F' || age < 15"
}
},
{
Expand All @@ -473,19 +470,19 @@
"required": "true",
"questionOptions": {
"concept": "116030AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "multiCheckbox",
"rendering": "Checkbox",
"answers": [
{
"concept": "116026AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Breast"
"concept": "116026AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Breast"
},
{
"concept": "133350AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Colorectal"
"concept": "133350AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Colorectal"
},
{
"concept": "127527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Retinoblastoma"
"concept": "127527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Retinoblastoma"
},
{
"concept": "146221AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand Down Expand Up @@ -527,6 +524,9 @@
"label": "HPV"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '116023AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand All @@ -550,6 +550,9 @@
"label": "Suspicious for Cancer"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '116023AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand All @@ -575,7 +578,7 @@
]
},
"hide": {
"hideWhenExpression": "hpvResponses !== '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '116023AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') && hpvResponses !== '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
},
{
Expand All @@ -584,7 +587,7 @@
"id": "CACXVia",
"questionOptions": {
"concept": "160705AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "checkbox",
"rendering": "multicheckbox",
"answers": [
{
"concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand Down Expand Up @@ -624,6 +627,9 @@
"label": "VIA"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '116023AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand All @@ -647,6 +653,9 @@
"label": "Suspicious for Cancer"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '116023AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand Down Expand Up @@ -830,6 +839,9 @@
"label": "Pap Smear"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '116023AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand Down Expand Up @@ -867,7 +879,7 @@
]
},
"hide": {
"hideWhenExpression": "!arrayContains(['885AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'], papScreeningMethod)"
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '116023AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand Down Expand Up @@ -911,7 +923,7 @@
]
},
"hide": {
"hideWhenExpression": "papsmearResponses === '1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '116023AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
}
]
Expand All @@ -937,6 +949,9 @@
"label": "Colposcopy(for positive HPV,VIA or PAP smear)"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '116023AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand All @@ -960,6 +975,9 @@
"label": "Suspicious for cancer"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '116023AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand Down Expand Up @@ -1141,6 +1159,9 @@
"label": "Clinical Breast Examination(CBE)"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '116026AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand All @@ -1162,7 +1183,7 @@
]
},
"hide": {
"hideWhenExpression": "!arrayContains(['1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'], breastScreeningMethod)"
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '116026AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand Down Expand Up @@ -1214,6 +1235,9 @@
"label": "Ultrasound"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(['1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'], cbeQuetionOptions)"
}
},
{
Expand Down Expand Up @@ -1255,7 +1279,7 @@
]
},
"hide": {
"hideWhenExpression": "!arrayContains(['3cb64490-aa67-4d23-b7d2-fb29b5b894da'], UltrascreeningMethod)"
"hideWhenExpression": "!arrayContains(['1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'], cbeQuetionOptions)"
}
},
{
Expand Down Expand Up @@ -1363,7 +1387,7 @@
}
],
"hide": {
"hideWhenExpression": "!arrayContains(['664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'], BreastD)"
"hideWhenExpression": "!arrayContains(['1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'], cbeQuetionOptions)"
}
},
{
Expand All @@ -1375,7 +1399,7 @@
"rendering": "text"
},
"hide": {
"hideWhenExpression": "!isEmpty(DatEforScreeningrx)"
"hideWhenExpression": "!arrayContains(['1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'], cbeQuetionOptions)"
}
},
{
Expand Down Expand Up @@ -1409,7 +1433,7 @@
{
"label": "",
"type": "obs",
"id": "colerectal-cancerType",
"id": "colerectalaCncerType",
"questionOptions": {
"concept": "b61c1482-1697-404c-ab96-fd698d5fd317",
"rendering": "select",
Expand All @@ -1419,6 +1443,9 @@
"label": "Fecal Occult Blood Test"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CaCXMale, '133350AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')||!arrayContains(CanCerTyPEFemale, '133350AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') "
}
},
{
Expand All @@ -1438,6 +1465,9 @@
"label": "Positive"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '133350AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand Down Expand Up @@ -1489,6 +1519,9 @@
"label": "Colonoscopy"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '133350AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand Down Expand Up @@ -1522,7 +1555,7 @@
]
},
"hide": {
"hideWhenExpression": "!arrayContains(['4afab552-c642-45f9-b8b1-90b5f76a8c1a'], colerectalCancerType)"
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '133350AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand Down Expand Up @@ -1620,6 +1653,9 @@
"label": "EUA(Examination Under Anesthesia)"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '127527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand All @@ -1641,7 +1677,7 @@
]
},
"hide": {
"hideWhenExpression": "!arrayContains(['2048bd71-0fb0-4df1-a7e8-0ae6515d3e8b'], retinoblastomaCancerType)"
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '127527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand Down Expand Up @@ -1683,7 +1719,7 @@
{
"label": "Screening Test",
"type": "obs",
"id": "retinoblastoma-cancerType",
"id": "retinoblastomCancerType",
"questionOptions": {
"concept": "163589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "select",
Expand All @@ -1693,6 +1729,9 @@
"label": "Retinoblastoma gene (RB1 gene) testing"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CaCXMale, '127527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')||!arrayContains(CanCerTyPEFemale, '127527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') "
}
},
{
Expand All @@ -1712,6 +1751,9 @@
"label": "Positive"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CanCerTyPEFemale, '127527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand Down Expand Up @@ -1781,6 +1823,9 @@
"label": "Hard/lampy"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CaCXMale, '146221AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand Down Expand Up @@ -1844,6 +1889,9 @@
"label": ">10ng/ml"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CaCXMale, '146221AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
},
{
Expand Down Expand Up @@ -1927,6 +1975,9 @@
"label": "Abnormal"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CaCXMale, '146221AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')||!arrayContains(CanCerTyPEFemale, '146221AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') "
}
},
{
Expand Down Expand Up @@ -1982,6 +2033,9 @@
"label": "Referred for further evaluation"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CaCXMale, '146221AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')||!arrayContains(CanCerTyPEFemale, '146221AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') "
}
},
{
Expand All @@ -2001,6 +2055,9 @@
"label": "Abnormal"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CaCXMale, '146221AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')||!arrayContains(CanCerTyPEFemale, '146221AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') "
}
},
{
Expand Down Expand Up @@ -2056,6 +2113,9 @@
"label": "Abnormal"
}
]
},
"hide": {
"hideWhenExpression": "!arrayContains(CaCXMale, '146221AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')||!arrayContains(CanCerTyPEFemale, '146221AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') "
}
},
{
Expand Down

0 comments on commit ad2bb2c

Please sign in to comment.