Skip to content

Commit

Permalink
HTS Eligibility Screening revision (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErickSomie authored Aug 15, 2024
1 parent 16d81c7 commit 6f4fa1a
Showing 1 changed file with 102 additions and 60 deletions.
162 changes: 102 additions & 60 deletions configuration/ampathforms/HTS_Eligibility_Screening.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@
{
"label": "Population Type :",
"type": "obs",
"id": "populationType",
"required": "true",
"questionOptions": {
"rendering": "select",
"rendering": "radio",
"concept": "cf543666-ce76-4e91-8b8d-c0b54a436a2e",
"answers": [
{
Expand All @@ -63,21 +65,38 @@
},
{
"concept": "bf850dd4-309b-4cbd-9470-9d8110ea5550",
"label": "Key Population"
},
"label": "Key and Vulnerable Population"
}
]
},
"hide": {
"hideWhenExpression": "age < 15"
}
},
{
"label": "Population Type :",
"type": "obs",
"id": "populationTypechild",
"required": "true",
"questionOptions": {
"rendering": "radio",
"concept": "cf543666-ce76-4e91-8b8d-c0b54a436a2e",
"answers": [
{
"concept": "138643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Priority Population"
"concept": "5d308c8c-ad49-45e1-9885-e5d09a8e5587",
"label": "General Population"
}
]
},
"id": "populationType",
"required": "true"
"hide": {
"hideWhenExpression": "age > 15"
}
},
{
"label": "Key Population Type :",
"label": "Key and Vulnerable Population Type :",
"type": "obs",
"id": "kpTypeFemale",
"required": "true",
"questionOptions": {
"concept": "160581AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "select",
Expand All @@ -86,44 +105,45 @@
"concept": "105AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "People who inject drugs"
},
{
"concept": "160666AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "People who use drugs"
},
{
"concept": "160579AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Female sex Worker"
},
{
"concept": "160549AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Adolescent and young girls"
},
{
"concept": "162277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "People in prison or enclosed spaces"
"label": "People in prison"
},
{
"concept": "bd370cad-06fe-4950-a36f-ed991b280ce6",
"label": "Transgender"
"concept": "159674AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Fisher folk"
},
{
"concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Other"
"concept": "162198AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Truck driver"
},
{
"concept": "6096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Discordant Couple"
}
]
},
"hide": {
"hideWhenExpression": "populationType !== 'bf850dd4-309b-4cbd-9470-9d8110ea5550' || age <15 || sex != 'F'"
}
},
{
"label": "Specify:",
"type": "obs",
"questionOptions": {
"rendering": "text",
"concept": "163761AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"id": "kPfmalEOther",
"hide": {
"hideWhenExpression": "isEmpty(kpTypeFemale) || kpTypeFemale !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
"hideWhenExpression": "populationType !== 'bf850dd4-309b-4cbd-9470-9d8110ea5550' || age < 15 || sex != 'F'"
}
},
{
"label": "Key Population Type :",
"label": "Key and Vulnerable Population Type :",
"type": "obs",
"id": "kpTypeMale",
"required": "true",
"questionOptions": {
"concept": "160581AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "select",
Expand All @@ -132,72 +152,94 @@
"concept": "105AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "People who inject drugs"
},
{
"concept": "160666AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "People who use drugs"
},
{
"concept": "973e5b6c-ae5e-4d6a-a624-2d259763771f",
"label": "Male Sex Worker"
},
{
"concept": "160578AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Men who have sex with men"
},
{
"concept": "162277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "People in prison or enclosed spaces"
"label": "People in prison"
},
{
"concept": "bd370cad-06fe-4950-a36f-ed991b280ce6",
"label": "Transgender"
"concept": "159674AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Fisher folk"
},
{
"concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Other"
"concept": "162198AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Truck driver"
},
{
"concept": "6096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Discordant Couple"
}
]
},
"hide": {
"hideWhenExpression": "populationType !== 'bf850dd4-309b-4cbd-9470-9d8110ea5550' || age <15 || sex != 'M'"
"hideWhenExpression": "populationType !== 'bf850dd4-309b-4cbd-9470-9d8110ea5550' || age < 15 || sex != 'M'"
}
},
{
"label": "Specify:",
"label": "People in prison",
"type": "obs",
"id": "PPleInPrionF",
"required": "true",
"questionOptions": {
"rendering": "text",
"concept": "163761AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"rendering": "radio",
"concept": "c67be9a5-f497-4082-af81-11753f65ed4b",
"answers": [
{
"label": "Inmates",
"concept": "2ad718de-8020-49e9-a129-a00b07752d4e"
},
{
"label": "Staff",
"concept": "1142AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"concept": "163488AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Community"
}
]
},
"id": "kPmalEOther",
"validators": [],
"hide": {
"hideWhenExpression": "isEmpty(kpTypeMale) || kpTypeMale !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
"hideWhenExpression": "isEmpty(kpTypeFemale) || kpTypeFemale !== '162277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || age < 15 || sex !== 'F'"
}
},
{
"label": "Priority Population Type :",
"label": "People in prison",
"type": "obs",
"id": "ppType",
"id": "PPleInPrionM",
"required": "true",
"questionOptions": {
"concept": "138643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "select",
"rendering": "radio",
"concept": "c67be9a5-f497-4082-af81-11753f65ed4b",
"answers": [
{
"concept": "159674AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Fisher folk"
},
{
"concept": "162198AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Truck driver"
},
{
"concept": "160549AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Adolescent and young girls"
"label": "Inmates",
"concept": "2ad718de-8020-49e9-a129-a00b07752d4e"
},
{
"concept": "162277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "People in prison or enclosed spaces"
"label": "Staff",
"concept": "1142AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"concept": "253b40ec-54da-4e92-9ab1-2d99075b19e8",
"label": "Military and other uniformed services"
"concept": "163488AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Community"
}
]
},
"validators": [],
"hide": {
"hideWhenExpression": "populationType !== '138643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || age <15"
"hideWhenExpression": "isEmpty(kpTypeMale) || kpTypeMale !== '162277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || age < 15 || sex !== 'M'"
}
},
{
Expand All @@ -222,6 +264,7 @@
{
"label": "Please indicated the type of disability :",
"type": "obs",
"id": "disaBilityTypes",
"questionOptions": {
"rendering": "checkbox",
"concept": "162558AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand All @@ -248,21 +291,20 @@
}
]
},
"id": "disaBilityTypes",
"hide": {
"hideWhenExpression": "isEmpty(DisabilityClienT) || DisabilityClienT != '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
},
{
"label": "Specify",
"type": "obs",
"id": "specifyOtherDisability",
"questionOptions": {
"rendering": "text",
"concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"id": "specifyOtherDisability",
"hide": {
"hideWhenExpression": "isEmpty(disaBilityTypes) || disaBilityTypes != '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
"hideWhenExpression": "isEmpty(disaBilityTypes) || !arrayContains(disaBilityTypes, '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
}
}
]
Expand Down

0 comments on commit 6f4fa1a

Please sign in to comment.