Skip to content

Commit

Permalink
POC-485 (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
drizzentic authored Aug 15, 2023
1 parent 3f1c4f7 commit 981d6d7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
17 changes: 11 additions & 6 deletions programs/patient-program-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@
{
"uuid": "6bdec0cd-d3fb-41da-9ef3-20076f349dc1",
"name": "Pre Appointment Follow Up Visit",
"allowedIf": "programLocation === intendedVisitLocationUuid",
"allowedIf": "programLocation === intendedVisitLocationUuid && MlLocations",
"encounterTypes": [
{
"uuid": "d5e2d3b3-2061-4721-86f1-5852cde6475a",
Expand Down Expand Up @@ -2010,7 +2010,7 @@
{
"uuid": "6bdec0cd-d3fb-41da-9ef3-20076f349dc1",
"name": "Pre Appointment Follow Up Visit",
"allowedIf": "programLocation === intendedVisitLocationUuid",
"allowedIf": "programLocation === intendedVisitLocationUuid && MlLocations",
"encounterTypes": [
{
"uuid": "d5e2d3b3-2061-4721-86f1-5852cde6475a",
Expand Down Expand Up @@ -2400,7 +2400,7 @@
{
"uuid": "6bdec0cd-d3fb-41da-9ef3-20076f349dc1",
"name": "Pre Appointment Follow Up Visit",
"allowedIf": "programLocation === intendedVisitLocationUuid",
"allowedIf": "programLocation === intendedVisitLocationUuid && MlLocations",
"encounterTypes": [
{
"uuid": "d5e2d3b3-2061-4721-86f1-5852cde6475a",
Expand Down Expand Up @@ -2628,6 +2628,7 @@
{
"uuid": "6bdec0cd-d3fb-41da-9ef3-20076f349dc1",
"name": "Pre Appointment Follow Up Visit",
"allowedIf": "MlLocations",
"encounterTypes": [
{
"uuid": "d5e2d3b3-2061-4721-86f1-5852cde6475a",
Expand Down Expand Up @@ -2844,6 +2845,7 @@
{
"uuid": "6bdec0cd-d3fb-41da-9ef3-20076f349dc1",
"name": "Pre Appointment Follow Up Visit",
"allowedIf": "MlLocations",
"encounterTypes": [
{
"uuid": "d5e2d3b3-2061-4721-86f1-5852cde6475a",
Expand Down Expand Up @@ -3239,7 +3241,7 @@
{
"uuid": "6bdec0cd-d3fb-41da-9ef3-20076f349dc1",
"name": "Pre Appointment Follow Up Visit",
"allowedIf": "programLocation === intendedVisitLocationUuid",
"allowedIf": "programLocation === intendedVisitLocationUuid && MlLocations",
"encounterTypes": [
{
"uuid": "d5e2d3b3-2061-4721-86f1-5852cde6475a",
Expand Down Expand Up @@ -4271,7 +4273,7 @@
{
"uuid": "6bdec0cd-d3fb-41da-9ef3-20076f349dc1",
"name": "Pre Appointment Follow Up Visit",
"allowedIf": "programLocation === intendedVisitLocationUuid",
"allowedIf": "programLocation === intendedVisitLocationUuid && MlLocations",
"encounterTypes": [
{
"uuid": "d5e2d3b3-2061-4721-86f1-5852cde6475a",
Expand Down Expand Up @@ -4410,6 +4412,7 @@
{
"uuid": "6bdec0cd-d3fb-41da-9ef3-20076f349dc1",
"name": "Pre Appointment Follow Up Visit",
"allowedIf": "MlLocations",
"encounterTypes": [
{
"uuid": "d5e2d3b3-2061-4721-86f1-5852cde6475a",
Expand Down Expand Up @@ -4790,6 +4793,7 @@
{
"uuid": "6bdec0cd-d3fb-41da-9ef3-20076f349dc1",
"name": "Pre Appointment Follow Up Visit",
"allowedIf": "MlLocations",
"encounterTypes": [
{
"uuid": "d5e2d3b3-2061-4721-86f1-5852cde6475a",
Expand Down Expand Up @@ -5042,6 +5046,7 @@
{
"uuid": "6bdec0cd-d3fb-41da-9ef3-20076f349dc1",
"name": "Pre Appointment Follow Up Visit",
"allowedIf": "MlLocations",
"encounterTypes": [
{
"uuid": "d5e2d3b3-2061-4721-86f1-5852cde6475a",
Expand Down Expand Up @@ -5145,7 +5150,7 @@
{
"uuid": "6bdec0cd-d3fb-41da-9ef3-20076f349dc1",
"name": "Pre Appointment Follow Up Visit",
"allowedIf": "programLocation === intendedVisitLocationUuid",
"allowedIf": "programLocation === intendedVisitLocationUuid && MlLocations",
"encounterTypes": [
{
"uuid": "d5e2d3b3-2061-4721-86f1-5852cde6475a",
Expand Down
11 changes: 11 additions & 0 deletions programs/scope-builder.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ function buildScope(dataDictionary) {

if (dataDictionary.intendedVisitLocationUuid) {
scope.intendedVisitLocationUuid = dataDictionary.intendedVisitLocationUuid;
// Restrict to Pilot locations
scope.MlLocations = [
'08feb8ae-1352-11df-a1f1-0026b9348838',
'08feb9a8-1352-11df-a1f1-0026b9348838',
'08fec60a-1352-11df-a1f1-0026b9348838',
'090090d4-1352-11df-a1f1-0026b9348838',
'db2bdd7c-5fe6-4ea3-adc1-d2d8dfb3d658',
'17c97881-90e5-43c8-b8a3-cc0322f89a89',
'e9f515c2-7c48-4099-ac76-41db9977f96f',
'f7aabb83-7915-4c24-88b2-bcde8b3a9977'
].includes(dataDictionary.intendedVisitLocationUuid);
}

if (dataDictionary.patientEncounters) {
Expand Down

0 comments on commit 981d6d7

Please sign in to comment.