Skip to content

Commit 593e377

Browse files
committed
NRL-1933 fix pointer type values for permissions test seed script
1 parent 00475f4 commit 593e377

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

scripts/get_s3_permissions.py

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ def add_feature_test_files(local_path):
7070
[PointerTypes.MENTAL_HEALTH_PLAN.value],
7171
[],
7272
), # http://snomed.info/sct|736253002
73-
("app-t004", "ODS1", [PointerTypes.PERSONALISED_CARE_AND_SUPPORT_PLAN], []),
73+
(
74+
"app-t004",
75+
"ODS1",
76+
[PointerTypes.PERSONALISED_CARE_AND_SUPPORT_PLAN.value],
77+
[],
78+
),
7479
(
7580
"z00z-y11y-x22x",
7681
"4LLTYP35C",
@@ -85,7 +90,12 @@ def add_feature_test_files(local_path):
8590
[PointerTypes.EOL_CARE_PLAN.value],
8691
[],
8792
), # http://snomed.info/sct|736373009
88-
("app-t004", "ODS1", [PointerTypes.PERSONALISED_CARE_AND_SUPPORT_PLAN], []),
93+
(
94+
"app-t004",
95+
"ODS1",
96+
[PointerTypes.PERSONALISED_CARE_AND_SUPPORT_PLAN.value],
97+
[],
98+
),
8999
(
90100
"z00z-y11y-x22x",
91101
"4LLTYP35P",
@@ -106,30 +116,30 @@ def add_feature_test_files(local_path):
106116
]
107117
app_permissions = {
108118
"consumer": [
109-
("app-t001", [PointerTypes.MENTAL_HEALTH_PLAN], []),
119+
("app-t001", [PointerTypes.MENTAL_HEALTH_PLAN.value], []),
110120
(
111121
"app-t002",
112122
[
113-
PointerTypes.ADVANCE_CARE_PLAN,
114-
PointerTypes.EMERGENCY_HEALTHCARE_PLAN,
115-
PointerTypes.NEWS2_CHART,
123+
PointerTypes.ADVANCE_CARE_PLAN.value,
124+
PointerTypes.EMERGENCY_HEALTHCARE_PLAN.value,
125+
PointerTypes.NEWS2_CHART.value,
116126
],
117127
[],
118128
),
119-
("app-t004", [PointerTypes.APPOINTMENT], []),
129+
("app-t004", [PointerTypes.APPOINTMENT.value], []),
120130
],
121131
"producer": [
122-
("app-t001", [PointerTypes.EOL_COORDINATION_SUMMARY]),
132+
("app-t001", [PointerTypes.EOL_COORDINATION_SUMMARY.value]),
123133
(
124134
"app-t003",
125135
[
126-
PointerTypes.ADVANCE_CARE_PLAN,
127-
PointerTypes.EMERGENCY_HEALTHCARE_PLAN,
128-
PointerTypes.NEWS2_CHART,
136+
PointerTypes.ADVANCE_CARE_PLAN.value,
137+
PointerTypes.EMERGENCY_HEALTHCARE_PLAN.value,
138+
PointerTypes.NEWS2_CHART.value,
129139
],
130140
[],
131141
),
132-
("app-t004", [PointerTypes.APPOINTMENT], []),
142+
("app-t004", [PointerTypes.APPOINTMENT.value], []),
133143
],
134144
}
135145
[

0 commit comments

Comments
 (0)