Skip to content

Commit 863375c

Browse files
committed
Make support ods code configurable
We appear to be unable to use the same ODS code in both the integration and production CIS2 environments, so this needs to be configurable. Jira-Issue: MAV-2756
1 parent e26d02b commit 863375c

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

app/models/cis2_info.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class CIS2Info
88
SUPPORT_ROLE = "S8001:G8005:R8015"
99

1010
SUPPORT_WORKGROUP = "mavissupport"
11-
SUPPORT_ORGANISATION = "Y90128"
11+
SUPPORT_ORGANISATION = Settings.cis2.support_organisation
1212

1313
ACCESS_SENSITIVE_FLAGGED_RECORDS_ACTIVITY_CODE = "B1611"
1414
INDEPENDENT_PRESCRIBING_ACTIVITY_CODE = "B0420"

config/settings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ cis2:
2020
private_key: |
2121
<%= Rails.application.credentials.cis2&.private_key&.gsub(/^/, " ") %>
2222
secret: <%= Rails.application.credentials.cis2&.secret %>
23+
support_organisation: Y90128
2324

2425
govuk_notify:
2526
enabled: true

config/settings/staging.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ nhs_api:
1111
# Devise.
1212
cis2:
1313
issuer: "https://am.nhsint.auth-ptl.cis2.spineservices.nhs.uk:443/openam/oauth2/realms/root/realms/NHSIdentity/realms/Healthcare"
14+
support_organisation: RX4
1415

1516
pds:
1617
raise_unknown_gp_practice: false

0 commit comments

Comments
 (0)