File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1717CONFIG_BUCKET = "imms-internal-dev-supplier-config"
1818PERMISSIONS_CONFIG_FILE_KEY = "permissions_config.json"
1919RAVS_URI = "https://www.ravs.england.nhs.uk/"
20+ TPP_V5_SUPPLIER_IDENTIFIER_SYSTEM = "https://tpp-uk.com/Id/ve/vacc"
21+ EMIS_V5_SUPPLIER_IDENTIFIER_SYSTEM = "https://emishealth.com/identifiers/vacc"
2022batch_fifo_queue_name = f"imms-{ environment } -batch-file-created-queue.fifo"
2123ack_metadata_queue_name = f"imms-{ environment } -ack-metadata-queue.fifo"
2224audit_table_name = f"immunisation-batch-{ environment } -audit-table"
Original file line number Diff line number Diff line change 55import pandas as pd
66from clients import logger
77from errors import DynamoDBMismatchError
8+ from tests .e2e_batch .constants import EMIS_V5_SUPPLIER_IDENTIFIER_SYSTEM , TPP_V5_SUPPLIER_IDENTIFIER_SYSTEM
89from vax_suppliers import OdsVax , TestPair
910
1011from constants import (
@@ -93,6 +94,14 @@ def check_final_success_action(self):
9394 def get_identifier_pk (self ):
9495 if not self .identifier :
9596 raise Exception ("Identifier not set. Generate the CSV file first." )
97+
98+ # Identifier PK will be different to Identifier in the resource due to data uplift as part of VED-893. This
99+ # only affects TPP and EMIS
100+ if self .ods == "YGA" :
101+ return f"{ TPP_V5_SUPPLIER_IDENTIFIER_SYSTEM } #{ self .identifier } "
102+ if self .ods == "YGJ" :
103+ return f"{ EMIS_V5_SUPPLIER_IDENTIFIER_SYSTEM } #{ self .identifier } "
104+
96105 return f"{ RAVS_URI } #{ self .identifier } "
97106
98107 def check_bus_file_content (self ):
You can’t perform that action at this time.
0 commit comments