Skip to content

Commit d071a47

Browse files
committed
NRL-2140 Use PointerTypes constants for types in sandbox config
1 parent c1a9d5a commit d071a47

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

scripts/get_s3_permissions.py

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -284,20 +284,25 @@ def add_sandbox_files(local_path):
284284
sandbox_app_id = "NRL-SANDBOX-APP"
285285
nrl_sandbox_perms = {
286286
"RJ11": [
287-
"http://snomed.info/sct|736253001",
288-
"http://snomed.info/sct|736253002",
287+
PointerTypes.MENTAL_HEALTH_PLAN.value, # http://snomed.info/sct|736253002
289288
],
290289
# These ones are needed for the Seed data
291290
"Y05868": [
292-
"http://snomed.info/sct|736253002",
293-
"http://snomed.info/sct|887701000000100",
294-
"http://snomed.info/sct|1363501000000100",
295-
"http://snomed.info/sct|861421000000109",
291+
PointerTypes.MENTAL_HEALTH_PLAN.value, # http://snomed.info/sct|736253002
292+
PointerTypes.EMERGENCY_HEALTHCARE_PLAN.value, # http://snomed.info/sct|887701000000100
293+
PointerTypes.NEWS2_CHART.value, # http://snomed.info/sct|1363501000000100
294+
PointerTypes.EOL_COORDINATION_SUMMARY.value, # http://snomed.info/sct|861421000000109
296295
],
297-
"8J008": ["http://snomed.info/sct|1363501000000100"],
298-
"RY26A": ["http://snomed.info/sct|861421000000109"],
296+
"8J008": [
297+
PointerTypes.NEWS2_CHART.value
298+
], # http://snomed.info/sct|1363501000000100
299+
"RY26A": [
300+
PointerTypes.EOL_COORDINATION_SUMMARY.value
301+
], # http://snomed.info/sct|861421000000109
299302
# This one is needed for Smoke Tests
300-
"RM559": ["http://snomed.info/sct|736253002"],
303+
"RM559": [
304+
PointerTypes.MENTAL_HEALTH_PLAN.value
305+
], # http://snomed.info/sct|736253002
301306
}
302307

303308
for ods_code, snomed_codes in nrl_sandbox_perms.items():

0 commit comments

Comments
 (0)