Skip to content

Commit

Permalink
Merge pull request #37 from UCSF-GP-Namibia/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
alaboso authored Jul 28, 2023
2 parents 144b424 + 52b184b commit e0a6d0a
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 5 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/ohri-namibia-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- dev
- main
- working
pull_request:
types: [opened, synchronize, closed]
env:
Expand All @@ -13,10 +15,32 @@ env:
IMAGE_NAME: ${{ github.repository }}

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11' ]

steps:
- uses: actions/checkout@v2

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'

- name: Build and Test
run: mvn --batch-mode --update-snapshots --activate-profiles validator clean package

docker_setup:
runs-on: ubuntu-latest
if: (github.event_name == 'push' || github.event.pull_request.merged)
if: |
github.event_name == 'push' ||
(github.event_name == 'pull_request' && github.event.pull_request.merged)
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
Expand Down
34 changes: 32 additions & 2 deletions distro/configuration/ampathforms/pmtct_antenatal_v1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@
"intent":"*",
"unspecified":"true",
"hide":{
"hideWhenExpression":"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'"
"hideWhenExpression":"isEmpty(latest_art_number) && latest_hiv_test_result == '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || latest_hiv_test_status == '8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8' ? 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 All @@ -644,7 +644,7 @@
"required":"true",
"unspecified":"true",
"hide":{
"hideWhenExpression":"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'"
"hideWhenExpression":"isEmpty(latest_art_start_date) && latest_hiv_test_result == '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || latest_hiv_test_status == '8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8' ? 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'"
},
"validators": [
{
Expand All @@ -659,6 +659,36 @@
}
]
},
{
"label": "Latest ART number",
"type": "obs",
"id": "latest_art_number",
"questionOptions": {
"concept": "164402AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "fixed-value",
"calculate": {
"calculateExpression": "resolve(api.getLatestObs(patient.id, '164402AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'))?.valueQuantity?.value"
}
},
"hide":{
"hideWhenExpression":"true"
}
},
{
"label": "Latest ART start date",
"type": "obs",
"id": "latest_art_start_date",
"questionOptions": {
"concept": "159599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "fixed-value",
"calculate": {
"calculateExpression": "resolve(api.getLatestObs(patient.id, '159599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'))?.valueDateTime"
}
},
"hide":{
"hideWhenExpression":"true"
}
},
{
"label": "Viral Load test done? ",
"type": "obs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@
"intent":"*",
"required":"true",
"hide":{
"hideWhenExpression":"anc_latest_hiv_test_result == '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? infantStatus !== '151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && infantStatus !== '154223AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : anc_latest_hiv_test_result == '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || hiv_test_result == '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || anc_hiv_test_status == '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
"hideWhenExpression":"anc_latest_hiv_test_result == '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? isEmpty(infantStatus) || infantStatus !== '151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : infantStatus !== '151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && infantStatus !== '154223AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || anc_latest_hiv_test_result == '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || hiv_test_result == '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && anc_hiv_test_status == '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || anc_retest_thirty_six_weeks !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
},
"validators":[]
}
Expand Down Expand Up @@ -1345,4 +1345,4 @@
"formOptions": {
"usePreviousValueDisabled": "true"
}
}
}

0 comments on commit e0a6d0a

Please sign in to comment.