Skip to content

Commit

Permalink
Merge pull request #1346 from drizzentic/ml-locations-viremia
Browse files Browse the repository at this point in the history
Revert viremia changes and add new ml locations
  • Loading branch information
hiqedme authored Nov 16, 2023
2 parents f39d96e + 631363d commit c8ab41b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
6 changes: 3 additions & 3 deletions programs/patient-program-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4444,23 +4444,23 @@
{
"uuid": "8d5b2be0-c2cc-11de-8d13-0010c6dffd0f",
"display": "ADULTRETURN",
"allowedIf": "!isViremicHighVL && age > 24",
"allowedIf": "age > 24",
"errors": {
"viremiaError": "To access clinical forms kindly fill Enhanced Adherence Encounter Form"
}
},
{
"uuid": "4e7553b4-373d-452f-bc89-3f4ad9a01ce7",
"display": "YOUTHRETURN",
"allowedIf": "!isViremicHighVL && age >= 10 && age <= 24",
"allowedIf": "age >= 10 && age <= 24",
"errors": {
"viremiaError": "To access clinical forms kindly fill Enhanced Adherence Encounter Form"
}
},
{
"uuid": "8d5b3108-c2cc-11de-8d13-0010c6dffd0f",
"display": "PEDSRETURN",
"allowedIf": "!isViremicHighVL && age <= 14",
"allowedIf": "age <= 14",
"errors": {
"viremiaError": "To access clinical forms kindly fill Enhanced Adherence Encounter Form"
}
Expand Down
16 changes: 14 additions & 2 deletions programs/scope-builder.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ function buildScope(dataDictionary) {
'db2bdd7c-5fe6-4ea3-adc1-d2d8dfb3d658',
'17c97881-90e5-43c8-b8a3-cc0322f89a89',
'e9f515c2-7c48-4099-ac76-41db9977f96f',
'f7aabb83-7915-4c24-88b2-bcde8b3a9977'
'f7aabb83-7915-4c24-88b2-bcde8b3a9977',
'08feae7c-1352-11df-a1f1-0026b9348838',
'1ce5034b-f05d-46b6-910f-fc959e091641',
'29124daf-6422-4896-b70e-daad3b252c9d',
'08fec42a-1352-11df-a1f1-0026b9348838',
'a36c86bb-7ca3-4319-8674-28c66ba14deb',
'345514ae-8f37-42fc-9bbe-993828c2910d'
].includes(dataDictionary.intendedVisitLocationUuid);
if (dataDictionary.patient) {
buildPatientScopeMembers(scope, dataDictionary.patient);
Expand Down Expand Up @@ -93,7 +99,13 @@ function buildScope(dataDictionary) {
'db2bdd7c-5fe6-4ea3-adc1-d2d8dfb3d658',
'17c97881-90e5-43c8-b8a3-cc0322f89a89',
'e9f515c2-7c48-4099-ac76-41db9977f96f',
'f7aabb83-7915-4c24-88b2-bcde8b3a9977'
'f7aabb83-7915-4c24-88b2-bcde8b3a9977',
'08feae7c-1352-11df-a1f1-0026b9348838',
'1ce5034b-f05d-46b6-910f-fc959e091641',
'29124daf-6422-4896-b70e-daad3b252c9d',
'08fec42a-1352-11df-a1f1-0026b9348838',
'a36c86bb-7ca3-4319-8674-28c66ba14deb',
'345514ae-8f37-42fc-9bbe-993828c2910d'
].includes(dataDictionary.intendedVisitLocationUuid);
}

Expand Down

0 comments on commit c8ab41b

Please sign in to comment.