Skip to content

Commit

Permalink
Refactors to Date fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ODORA0 committed Aug 13, 2024
1 parent 320e8f7 commit 80fd3cc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 23 deletions.
7 changes: 1 addition & 6 deletions distro/configuration/ampathforms/pmtct_antenatal_v1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"label": "Visit Date",
"type": "obs",
"id": "visit_date",
"required": true,
"questionOptions": {
"concept": "163260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "date"
},
"behaviours": [
{
"intent": "*",
"unspecified": "true",
"hide": {
"hideWhenExpression": "false"
},
Expand Down Expand Up @@ -182,7 +182,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "antenatal_visit_type !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
Expand Down Expand Up @@ -215,7 +214,6 @@
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "antenatal_visit_type !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || isEmpty('lmp')"
},
Expand Down Expand Up @@ -644,7 +642,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "!isEmpty(latest_art_start_date) ? true : isEmpty(latest_art_number) && latest_art_initiation == '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || latest_art_initiation == '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? false : isEmpty(art_initiation) || art_initiation == '160018AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || art_initiation == '1754AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || art_initiation =='54b96458-6585-4c4c-a5b1-b3ca7f1be351' || hiv_test == 'd18fa331-f158-47d0-b344-cf147c7125a4' || hiv_test == '54b96458-6585-4c4c-a5b1-b3ca7f1be351' || hiv_test_result == '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || hiv_test_result == '1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || hiv_test_result == '54b96458-6585-4c4c-a5b1-b3ca7f1be351'"
Expand Down Expand Up @@ -735,7 +732,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "recent_viral_load !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || hiv_test == 'd18fa331-f158-47d0-b344-cf147c7125a4' || hiv_test == '54b96458-6585-4c4c-a5b1-b3ca7f1be351' || hiv_test_result == '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || hiv_test_result == '1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || hiv_test_result == '54b96458-6585-4c4c-a5b1-b3ca7f1be351'"
Expand Down Expand Up @@ -1115,7 +1111,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"label": "Visit Date",
"type": "obs",
"id": "visit_date",
"required": true,
"questionOptions": {
"concept": "159599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "date"
},
"behaviours": [
{
"intent": "*",
"unspecified": "true",
"hide": {
"hideWhenExpression": "false"
},
Expand Down Expand Up @@ -680,7 +680,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "infant_transfer_status !== '160563AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
Expand Down Expand Up @@ -735,7 +734,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "infant_transfer_status !== '159492AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
Expand Down Expand Up @@ -764,7 +762,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "infant_transfer_status !== '5240AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
Expand Down Expand Up @@ -793,7 +790,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "infant_transfer_status !== '164861AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
Expand Down Expand Up @@ -823,7 +819,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "infant_transfer_status !== '160432AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
Expand Down Expand Up @@ -855,7 +850,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "infant_transfer_status !== '161636AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"label": "Visit Date",
"type": "obs",
"id": "visit_date",
"required": true,
"questionOptions": {
"concept": "163260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "date"
},
"behaviours": [
{
"intent": "*",
"unspecified": "true",
"hide": {
"hideWhenExpression": "false"
},
Expand Down Expand Up @@ -773,7 +773,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "!isEmpty(latest_art_start_date) ? true : isEmpty(latest_art_start_date) && latest_art_initiation == '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || latest_art_initiation == '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? false : art_initiation !== '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && art_initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || anc_hiv_test_status !== '8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8' && anc_hiv_test_status !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && anc_hiv_test_status !== '1402AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && anc_hiv_test_status !== '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || hiv_test_status !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
Expand Down Expand Up @@ -883,7 +882,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "recent_viral_load !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
Expand Down Expand Up @@ -1047,7 +1045,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "mother_status !== '1692AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
Expand Down Expand Up @@ -1152,7 +1149,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "false"
Expand Down Expand Up @@ -1346,7 +1342,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "infantStatus !== '154223AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"label": "Visit Date",
"type": "obs",
"id": "visit_date",
"required": true,
"questionOptions": {
"concept": "163260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "date"
Expand Down Expand Up @@ -516,7 +517,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "!isEmpty(latest_art_start_date) ? true : isEmpty(latest_art_start_date) && latest_art_initiation == '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || latest_art_initiation == '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? false : pnc_art_initiation !== '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && pnc_art_initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
Expand Down Expand Up @@ -599,7 +599,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "!includes('pnc_recent_viral_load','1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
Expand Down Expand Up @@ -694,7 +693,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "false"
Expand Down Expand Up @@ -787,7 +785,6 @@
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "pnc_transfer_out !== '160036AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
Expand Down

0 comments on commit 80fd3cc

Please sign in to comment.