diff --git a/application/CohortManager/src/Functions/DemographicServices/RetrievePDSDemographic/MockedPDSData/complete-patient-9996534472.json b/application/CohortManager/src/Functions/DemographicServices/RetrievePDSDemographic/MockedPDSData/complete-patient-9996534472.json new file mode 100644 index 0000000000..d2f8c8bfb7 --- /dev/null +++ b/application/CohortManager/src/Functions/DemographicServices/RetrievePDSDemographic/MockedPDSData/complete-patient-9996534472.json @@ -0,0 +1,377 @@ +{ + "resourceType": "Patient", + "id": "9996534472", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9996534472", + "extension": [ + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-NHSNumberVerificationStatus", + "version": "1.0.0", + "code": "01", + "display": "Number present and verified" + } + ] + } + } + ] + } + ], + "meta": { + "versionId": "2", + "security": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality", + "code": "U", + "display": "unrestricted" + } + ] + }, + "name": [ + { + "id": "123", + "use": "usual", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "given": [ + "Jane" + ], + "family": "Doe", + "prefix": [ + "Mrs" + ] + } + ], + "gender": "female", + "birthDate": "2010-10-22", + "multipleBirthInteger": 1, + "generalPractitioner": [ + ], + "managingOrganization": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "Y12345", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + } + } + }, + "extension": [ + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NominatedPharmacy", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "Y12345" + } + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-PreferredDispenserOrganization", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "Y23456" + } + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicalApplianceSupplier", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "Y34567" + } + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-DeathNotificationStatus", + "extension": [ + { + "url": "deathNotificationStatus", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-DeathNotificationStatus", + "version": "1.0.0", + "code": "", + "display": "" + } + ] + } + }, + { + "url": "systemEffectiveDate", + "valueDateTime": "" + } + ] + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSCommunication", + "extension": [ + { + "url": "language", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-HumanLanguage", + "version": "1.0.0", + "code": "en", + "display": "English" + } + ] + } + }, + { + "url": "interpreterRequired", + "valueBoolean": false + } + ] + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-ContactPreference", + "extension": [ + { + "url": "PreferredWrittenCommunicationFormat", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-PreferredWrittenCommunicationFormat", + "code": "12", + "display": "Braille" + } + ] + } + }, + { + "url": "PreferredContactMethod", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-PreferredContactMethod", + "code": "1", + "display": "Letter" + } + ] + } + }, + { + "url": "PreferredContactTimes", + "valueString": "Not after 7pm" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "city": "Manchester", + "district": "Greater Manchester", + "country": "GBR" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-PDS-RemovalFromRegistration", + "extension": [ + { + "url": "removalFromRegistrationCode", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/PDS-RemovalReasonExitCode", + "code": "SCT", + "display": "Transferred to Scotland" + } + ] + } + }, + { + "url": "effectiveTime", + "valuePeriod": { + "start": "2020-01-01T00:00:00+00:00", + "end": "2021-12-31T00:00:00+00:00" + } + } + ] + } + ], + "telecom": [ + { + "id": "789", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "system": "phone", + "value": "01632960587", + "use": "home" + }, + { + "id": "790", + "period": { + "start": "2019-01-01", + "end": "2022-12-31" + }, + "system": "email", + "value": "jane.smith@example.com", + "use": "home" + }, + { + "id": "OC789", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "system": "other", + "value": "01632960587", + "use": "home", + "extension": [ + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-OtherContactSystem", + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-OtherContactSystem", + "code": "textphone", + "display": "Minicom (Textphone)" + } + } + ] + } + ], + "contact": [ + { + "id": "C123", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "relationship": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0131", + "code": "C", + "display": "Emergency Contact" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01632960587" + } + ] + } + ], + "address": [ + { + "id": "456", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "City Centre", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE", + "extension": [ + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey", + "extension": [ + { + "url": "type", + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AddressKeyType", + "code": "PAF" + } + }, + { + "url": "value", + "valueString": "12345678" + } + ] + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey", + "extension": [ + { + "url": "type", + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AddressKeyType", + "code": "UPRN" + } + }, + { + "url": "value", + "valueString": "123456789012" + } + ] + } + ] + }, + { + "id": "T456", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "use": "temp", + "text": "Student Accommodation", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "City Centre", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE", + "extension": [ + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey", + "extension": [ + { + "url": "type", + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AddressKeyType", + "code": "PAF" + } + }, + { + "url": "value", + "valueString": "12345678" + } + ] + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey", + "extension": [ + { + "url": "type", + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AddressKeyType", + "code": "UPRN" + } + }, + { + "url": "value", + "valueString": "123456789012" + } + ] + } + ] + } + ] +} diff --git a/application/CohortManager/src/Functions/DemographicServices/RetrievePDSDemographic/MockedPDSData/complete-patient-9997160908.json b/application/CohortManager/src/Functions/DemographicServices/RetrievePDSDemographic/MockedPDSData/complete-patient-9997160908.json new file mode 100644 index 0000000000..2e63b450f3 --- /dev/null +++ b/application/CohortManager/src/Functions/DemographicServices/RetrievePDSDemographic/MockedPDSData/complete-patient-9997160908.json @@ -0,0 +1,377 @@ +{ + "resourceType": "Patient", + "id": "9997160908", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9997160908", + "extension": [ + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-NHSNumberVerificationStatus", + "version": "1.0.0", + "code": "01", + "display": "Number present and verified" + } + ] + } + } + ] + } + ], + "meta": { + "versionId": "2", + "security": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality", + "code": "U", + "display": "unrestricted" + } + ] + }, + "name": [ + { + "id": "123", + "use": "usual", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "given": [ + "Jane" + ], + "family": "Doe", + "prefix": [ + "Mrs" + ] + } + ], + "gender": "female", + "birthDate": "2010-10-22", + "multipleBirthInteger": 1, + "generalPractitioner": [ + ], + "managingOrganization": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "Y12345", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + } + } + }, + "extension": [ + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NominatedPharmacy", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "Y12345" + } + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-PreferredDispenserOrganization", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "Y23456" + } + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicalApplianceSupplier", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "Y34567" + } + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-DeathNotificationStatus", + "extension": [ + { + "url": "deathNotificationStatus", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-DeathNotificationStatus", + "version": "1.0.0", + "code": "", + "display": "" + } + ] + } + }, + { + "url": "systemEffectiveDate", + "valueDateTime": "" + } + ] + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSCommunication", + "extension": [ + { + "url": "language", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-HumanLanguage", + "version": "1.0.0", + "code": "en", + "display": "English" + } + ] + } + }, + { + "url": "interpreterRequired", + "valueBoolean": false + } + ] + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-ContactPreference", + "extension": [ + { + "url": "PreferredWrittenCommunicationFormat", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-PreferredWrittenCommunicationFormat", + "code": "12", + "display": "Braille" + } + ] + } + }, + { + "url": "PreferredContactMethod", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-PreferredContactMethod", + "code": "1", + "display": "Letter" + } + ] + } + }, + { + "url": "PreferredContactTimes", + "valueString": "Not after 7pm" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "city": "Manchester", + "district": "Greater Manchester", + "country": "GBR" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-PDS-RemovalFromRegistration", + "extension": [ + { + "url": "removalFromRegistrationCode", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/PDS-RemovalReasonExitCode", + "code": "SCT", + "display": "Transferred to Scotland" + } + ] + } + }, + { + "url": "effectiveTime", + "valuePeriod": { + "start": "2020-01-01T00:00:00+00:00", + "end": "2021-12-31T00:00:00+00:00" + } + } + ] + } + ], + "telecom": [ + { + "id": "789", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "system": "phone", + "value": "01632960587", + "use": "home" + }, + { + "id": "790", + "period": { + "start": "2019-01-01", + "end": "2022-12-31" + }, + "system": "email", + "value": "jane.smith@example.com", + "use": "home" + }, + { + "id": "OC789", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "system": "other", + "value": "01632960587", + "use": "home", + "extension": [ + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-OtherContactSystem", + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-OtherContactSystem", + "code": "textphone", + "display": "Minicom (Textphone)" + } + } + ] + } + ], + "contact": [ + { + "id": "C123", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "relationship": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0131", + "code": "C", + "display": "Emergency Contact" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01632960587" + } + ] + } + ], + "address": [ + { + "id": "456", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "City Centre", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE", + "extension": [ + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey", + "extension": [ + { + "url": "type", + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AddressKeyType", + "code": "PAF" + } + }, + { + "url": "value", + "valueString": "12345678" + } + ] + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey", + "extension": [ + { + "url": "type", + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AddressKeyType", + "code": "UPRN" + } + }, + { + "url": "value", + "valueString": "123456789012" + } + ] + } + ] + }, + { + "id": "T456", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "use": "temp", + "text": "Student Accommodation", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "City Centre", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE", + "extension": [ + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey", + "extension": [ + { + "url": "type", + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AddressKeyType", + "code": "PAF" + } + }, + { + "url": "value", + "valueString": "12345678" + } + ] + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey", + "extension": [ + { + "url": "type", + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AddressKeyType", + "code": "UPRN" + } + }, + { + "url": "value", + "valueString": "123456789012" + } + ] + } + ] + } + ] +} diff --git a/application/CohortManager/src/Functions/DemographicServices/RetrievePDSDemographic/MockedPDSData/complete-patient-9998778107.json b/application/CohortManager/src/Functions/DemographicServices/RetrievePDSDemographic/MockedPDSData/complete-patient-9998778107.json new file mode 100644 index 0000000000..d7c82fff20 --- /dev/null +++ b/application/CohortManager/src/Functions/DemographicServices/RetrievePDSDemographic/MockedPDSData/complete-patient-9998778107.json @@ -0,0 +1,377 @@ +{ + "resourceType": "Patient", + "id": "9998778107", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9998778107", + "extension": [ + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-NHSNumberVerificationStatus", + "version": "1.0.0", + "code": "01", + "display": "Number present and verified" + } + ] + } + } + ] + } + ], + "meta": { + "versionId": "2", + "security": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality", + "code": "U", + "display": "unrestricted" + } + ] + }, + "name": [ + { + "id": "123", + "use": "usual", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "given": [ + "Jane" + ], + "family": "Doe", + "prefix": [ + "Mrs" + ] + } + ], + "gender": "female", + "birthDate": "2010-10-22", + "multipleBirthInteger": 1, + "generalPractitioner": [ + ], + "managingOrganization": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "Y12345", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + } + } + }, + "extension": [ + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NominatedPharmacy", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "Y12345" + } + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-PreferredDispenserOrganization", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "Y23456" + } + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicalApplianceSupplier", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "Y34567" + } + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-DeathNotificationStatus", + "extension": [ + { + "url": "deathNotificationStatus", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-DeathNotificationStatus", + "version": "1.0.0", + "code": "", + "display": "" + } + ] + } + }, + { + "url": "systemEffectiveDate", + "valueDateTime": "" + } + ] + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSCommunication", + "extension": [ + { + "url": "language", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-HumanLanguage", + "version": "1.0.0", + "code": "en", + "display": "English" + } + ] + } + }, + { + "url": "interpreterRequired", + "valueBoolean": false + } + ] + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-ContactPreference", + "extension": [ + { + "url": "PreferredWrittenCommunicationFormat", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-PreferredWrittenCommunicationFormat", + "code": "12", + "display": "Braille" + } + ] + } + }, + { + "url": "PreferredContactMethod", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-PreferredContactMethod", + "code": "1", + "display": "Letter" + } + ] + } + }, + { + "url": "PreferredContactTimes", + "valueString": "Not after 7pm" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "city": "Manchester", + "district": "Greater Manchester", + "country": "GBR" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-PDS-RemovalFromRegistration", + "extension": [ + { + "url": "removalFromRegistrationCode", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/PDS-RemovalReasonExitCode", + "code": "SCT", + "display": "Transferred to Scotland" + } + ] + } + }, + { + "url": "effectiveTime", + "valuePeriod": { + "start": "2020-01-01T00:00:00+00:00", + "end": "2021-12-31T00:00:00+00:00" + } + } + ] + } + ], + "telecom": [ + { + "id": "789", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "system": "phone", + "value": "01632960587", + "use": "home" + }, + { + "id": "790", + "period": { + "start": "2019-01-01", + "end": "2022-12-31" + }, + "system": "email", + "value": "jane.smith@example.com", + "use": "home" + }, + { + "id": "OC789", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "system": "other", + "value": "01632960587", + "use": "home", + "extension": [ + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-OtherContactSystem", + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-OtherContactSystem", + "code": "textphone", + "display": "Minicom (Textphone)" + } + } + ] + } + ], + "contact": [ + { + "id": "C123", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "relationship": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0131", + "code": "C", + "display": "Emergency Contact" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01632960587" + } + ] + } + ], + "address": [ + { + "id": "456", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "City Centre", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE", + "extension": [ + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey", + "extension": [ + { + "url": "type", + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AddressKeyType", + "code": "PAF" + } + }, + { + "url": "value", + "valueString": "12345678" + } + ] + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey", + "extension": [ + { + "url": "type", + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AddressKeyType", + "code": "UPRN" + } + }, + { + "url": "value", + "valueString": "123456789012" + } + ] + } + ] + }, + { + "id": "T456", + "period": { + "start": "2020-01-01", + "end": "2021-12-31" + }, + "use": "temp", + "text": "Student Accommodation", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "City Centre", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE", + "extension": [ + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey", + "extension": [ + { + "url": "type", + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AddressKeyType", + "code": "PAF" + } + }, + { + "url": "value", + "valueString": "12345678" + } + ] + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey", + "extension": [ + { + "url": "type", + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AddressKeyType", + "code": "UPRN" + } + }, + { + "url": "value", + "valueString": "123456789012" + } + ] + } + ] + } + ] +} diff --git a/tests/playwright-tests/src/api/core/types.ts b/tests/playwright-tests/src/api/core/types.ts index c6cbf38541..7a2328b5da 100644 --- a/tests/playwright-tests/src/api/core/types.ts +++ b/tests/playwright-tests/src/api/core/types.ts @@ -8,4 +8,5 @@ export interface ApiResponse { status: number; data: T | null; headers: Record; + text: string; } diff --git a/tests/playwright-tests/src/api/distributionService/bsSelectService.ts b/tests/playwright-tests/src/api/distributionService/bsSelectService.ts index a50d997df4..1b37fa8578 100644 --- a/tests/playwright-tests/src/api/distributionService/bsSelectService.ts +++ b/tests/playwright-tests/src/api/distributionService/bsSelectService.ts @@ -1,4 +1,4 @@ -import { APIRequestContext } from '@playwright/test'; +import { APIRequestContext, APIResponse } from '@playwright/test'; import * as apiClient from '../apiClient'; import { config } from '../../config/env'; import { ApiResponse, QueryParams } from '../core/types'; @@ -43,6 +43,25 @@ export const getRecordsFromExceptionManagementService = ( return apiClient.get(request, `${config.endpointExceptionManagementDataService}api/${config.exceptionManagementService}`); }; +export const getRecordsFromNemsSubscription = ( + request: APIRequestContext, + id: string +): Promise => { + return apiClient.get(request, `${config.endpointNemsSubscriptionDataDataService}api/${config.nemsSubscriberDataService}${id}`); +}; + +export function extractSubscriptionID(response: ApiResponse): string | null { + const source = + (typeof response.text === 'string' && response.text.length > 0) + ? response.text + : JSON.stringify(response.data ?? ''); + + const cleaned = source.replace(/[\r\n\t]+/g, ' ').replace(/\s+/g, ' ').trim(); + const match = cleaned.match(/Subscription ID:\s*([a-f0-9]{32})/i); + + return match ? match[1] : null; +} + export const deleteParticipant = ( request: APIRequestContext, payload: { @@ -95,3 +114,4 @@ export const invalidServiceNowEndpoint = ( const endpoint = `${config.invalidEndpointSerNow}${config.invalidRouteSerNowEndpoint}`; return apiClient.post(request, endpoint, payload); }; + diff --git a/tests/playwright-tests/src/config/env.ts b/tests/playwright-tests/src/config/env.ts index a4e23da94d..1e5ae254be 100644 --- a/tests/playwright-tests/src/config/env.ts +++ b/tests/playwright-tests/src/config/env.ts @@ -13,12 +13,14 @@ const endpointCohortDistributionDataService = process.env.ENDPOINT_COHORT_DISTRI const endpointParticipantManagementDataService = process.env.ENDPOINT_PARTICIPANT_MANAGEMENT_DATA_SERVICE ?? ''; const endpointParticipantDemographicDataService = process.env.ENDPOINT_PARTICIPANT_DEMOGRAPHIC_DATA_SERVICE ?? ''; const endpointExceptionManagementDataService = process.env.ENDPOINT_EXCEPTION_MANAGEMENT_DATA_SERVICE ?? ''; +const endpointNemsSubscriptionDataDataService = process.env.ENDPOINT_SUBSCRIPTION_NEMS_DATA_SERVICE ?? ''; const endpointBsSelectRetrieveCohortDistributionData = process.env.ENDPOINT_BS_SELECT_RETRIEVE_COHORT_DISTRIBUTION_DATA ?? ''; const endpointBsSelectRetrieveCohortRequestAudit = process.env.ENDPOINT_BS_SELECT_RETRIEVE_COHORT_REQUEST_AUDIT ?? ''; const endpointBsSelectDeleteParticipant = process.env.ENDPOINT_BS_SELECT_DELETE_PARTICIPANT ?? ''; const endpointBsSelectUpdateBlockFlag = process.env.ENDPOINT_BS_SELECT_UPDATE_BLOCK_FLAG ?? ''; const endpointBsSelectGetValidationExceptions = process.env.ENDPOINT_BS_SELECT_GET_VALIDATION_EXCEPTIONS ?? ''; const endpointSerNowReceiveParticipant = process.env.ENDPOINT_SERVICE_NOW_MESSAGE_HANDLER ?? ''; +const endpointNemsGetSubscriberId = process.env.ENDPOINT_SUB_TO_NEMS ?? ''; const invalidEndpointSerNow = process.env.INVALID_ENDPOINT_SERVICE_NOW_MESSAGE_HANDLER ?? ''; const participantPayloadPath = process.env.PARTICIPANT_PAYLOAD_PATH ?? ''; const createPDSDemographicEnv = process.env.ENDPOINT_PDS_DEMOGRAPHIC ?? ''; @@ -33,12 +35,14 @@ export const config = { endpointParticipantManagementDataService, endpointExceptionManagementDataService, endpointParticipantDemographicDataService, + endpointNemsSubscriptionDataDataService, endpointBsSelectRetrieveCohortDistributionData: endpointBsSelectRetrieveCohortDistributionData, endpointBsSelectRetrieveCohortRequestAudit: endpointBsSelectRetrieveCohortRequestAudit, endpointBsSelectDeleteParticipant: endpointBsSelectDeleteParticipant, endpointBsSelectUpdateBlockFlag: endpointBsSelectUpdateBlockFlag, endpointBsSelectGetValidationExceptions: endpointBsSelectGetValidationExceptions, endpointSerNowReceiveParticipant: endpointSerNowReceiveParticipant, + endpointNemsGetSubscriberId: endpointNemsGetSubscriberId, createPDSDemographic: createPDSDemographicEnv, invalidEndpointSerNow: invalidEndpointSerNow, SubToNems: subToNemsEndPoint, @@ -52,6 +56,7 @@ export const config = { routeBsSelectUnblockParticipant: 'api/UnblockParticipant', routeGetValidationExceptions: 'api/GetValidationExceptions', routeSerNowReceiveParticipant: 'api/servicenow/receive', + nemsSubscriberDataService: 'CheckSubscriptionStatus?nhsNumber=', invalidRouteSerNowEndpoint: 'api/serviceno/receive', cohortDistributionService: 'CohortDistributionDataService', participantManagementService: 'ParticipantManagementDataService', diff --git a/tests/playwright-tests/src/tests/api/snow/receiveData/validate-receive-participant-snow-pds.spec.ts b/tests/playwright-tests/src/tests/api/snow/receiveData/validate-receive-participant-snow-pds.spec.ts deleted file mode 100644 index 1c232deb37..0000000000 --- a/tests/playwright-tests/src/tests/api/snow/receiveData/validate-receive-participant-snow-pds.spec.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { test, expect, APIRequestContext } from '@playwright/test'; -import { composeValidators, expectStatus } from '../../../../api/responseValidators'; -import { receiveParticipantViaServiceNow, getRecordsFromParticipantManagementService, getRecordsFromParticipantDemographicService, getRecordsFromExceptionManagementService } from '../../../../api/distributionService/bsSelectService'; -import { loadParticipantPayloads, omitField } from '../../../fixtures/jsonDataReader'; -import { ParticipantRecord } from '../../../../interface/InputData'; -import { cleanupDatabaseFromAPI } from '../../../steps/steps'; - -test.describe.serial('@regression @service_now @api @not-runner-based Verify Add Participant data', async () => { - - let participantData: Record; - - const testNumbers = ["9993773360", "9998695511"]; - - test.beforeAll(async ({ request }) => { - await cleanupDatabaseFromAPI(request, testNumbers); - const folderName = '@DTOSS-8375-01'; - const fileName = 'ADD-participantPayload.json'; - participantData = loadParticipantPayloads(folderName, fileName); - }); - - test('@DTOSS-10006 Add - Verify Participant Record: Happy Path case of data match', async ({ request }) => { - annotation: [{ - type: 'Requirement', - description: 'Tests - https://nhsd-jira.digital.nhs.uk/browse/DTOSS-10006', - }, { - type: 'Requirement', - description: 'Tests - https://nhsd-jira.digital.nhs.uk/browse/DTOSS-8375', - },] - - await test.step('DTOSS-10006 - receiving data from serviceNow', async () => { - - const payload = participantData['validParticipantRecordOnPDS']; - const response = await receiveParticipantViaServiceNow(request, payload); - - const validators = composeValidators( - expectStatus(202) - ); - await validators(response); - }); - - await test.step('DTOSS-10006 - Check that data is in Participant Management table', async () => { - const response = await getRecordsFromParticipantManagementService(request); - - const validators = composeValidators( - expectStatus(200) - ); - await validators(response); - - expect(response.data[0].NHSNumber).toBe(9993773360); - expect(response.data[0].ScreeningId).toBe(1); - expect(response.data[0].ReferralFlag).toBe(1); - expect(response.data[0].ReferralFlag).toBe(1); - expect(response.data[0].EligibilityFlag).toBe(1); - }); - - await test.step('DTOSS-10006 - Check that data is in Participant Demographic table', async () => { - const response = await getRecordsFromParticipantDemographicService(request); - - const validators = composeValidators( - expectStatus(200) - ); - await validators(response); - - expect(response.data[0].NhsNumber).toBe(9993773360); - expect(response.data[0].GivenName).toBe("Jane"); - expect(response.data[0].FamilyName).toBe("Doe"); - }); - }); - - - test('@DTOSS-10007 Add - Verify exception is raised for record mismatch between snow and pds', async ({ request }) => { - annotation: [{ - type: 'Requirement', - description: 'Tests - https://nhsd-jira.digital.nhs.uk/browse/DTOSS-10007', - }, { - type: 'Requirement', - description: 'Tests - https://nhsd-jira.digital.nhs.uk/browse/DTOSS-8375', - },] - - await test.step('DTOSS-10007 - receiving data from serviceNow ', async () => { - - const payload = participantData['validParticipantRecordOnPDSUnhappyPath']; - const response = await receiveParticipantViaServiceNow(request, payload); - - const validators = composeValidators( - expectStatus(202) - ); - await validators(response); - }); - - await test.step('DTOSS-10007 - Check that exception status', async () => { - const response = await getRecordsFromExceptionManagementService(request); - - const validators = composeValidators( - expectStatus(204) - ); - await validators(response); - }); - }); -}); diff --git a/tests/playwright-tests/src/tests/api/testFiles/@DTOSS-3881-01/ADD-participantPayload.json b/tests/playwright-tests/src/tests/api/testFiles/@DTOSS-3881-01/ADD-participantPayload.json new file mode 100644 index 0000000000..e698df1678 --- /dev/null +++ b/tests/playwright-tests/src/tests/api/testFiles/@DTOSS-3881-01/ADD-participantPayload.json @@ -0,0 +1,14 @@ +{ + "inputParticipantRecord_test": { + "number": "CS0573846", + "u_case_variable_data": { + "nhs_number": "9997160908", + "forename_": "Jane", + "surname_family_name": "Doe", + "date_of_birth": "2010-10-22", + "enter_dummy_gp_code": "ZZZDKL", + "BSO_code": "NORTH NOTTINGHAMSHIRE BREAST SCREENING OFFICE", + "reason_for_adding": "requires_ceasing_following_surgery_bilateral_mastectomy" + } + } +} diff --git a/tests/playwright-tests/src/tests/e2e/epic4c-add-participant-tests/epic4c-testsuite-migrated.ts b/tests/playwright-tests/src/tests/e2e/epic4c-add-participant-tests/epic4c-testsuite-migrated.ts index de656e4eea..7c77459294 100644 --- a/tests/playwright-tests/src/tests/e2e/epic4c-add-participant-tests/epic4c-testsuite-migrated.ts +++ b/tests/playwright-tests/src/tests/e2e/epic4c-add-participant-tests/epic4c-testsuite-migrated.ts @@ -30,6 +30,6 @@ export const runnerBasedEpic4cTestScenariosAdd = "@DTOSS-9337-01|@DTOSS-9750-01| export const runnerBasedEpic4cTestScenariosAmend = "@DTOSS-9337-01|@DTOSS-9750-02"; // export const runnerBasedEpic4cTestScenariosManualAdd = ""; -export const runnerBasedEpic4cTestScenariosManualAdd = "@DTOSS-3883-01|@DTOSS-8484-01|@DTOSS-9614-01|@DTOSS-8375-01|@DTOSS-3884-01|@DTOSS-9706-01|@DTOSS-9706-02"; -export const runnerBasedEpic4cTestScenariosManualAmend = "@DTOSS-8483-01|@DTOSS-9614-01|@DTOSS-9706-01"; +export const runnerBasedEpic4cTestScenariosManualAdd = "@DTOSS-3883-01|@DTOSS-8484-01|@DTOSS-9614-01|@DTOSS-8375-01|@DTOSS-3884-01|@DTOSS-9706-01|@DTOSS-9706-02|@DTOSS-3881-02"; +export const runnerBasedEpic4cTestScenariosManualAmend = "@DTOSS-8483-01|@DTOSS-9614-01|@DTOSS-9706-01|@DTOSS-3881-02"; //export const runnerBasedEpic4cTestScenariosManualAmend = ""; diff --git a/tests/playwright-tests/src/tests/e2e/epic4c-add-participant-tests/epic4c-testsuite.spec.ts b/tests/playwright-tests/src/tests/e2e/epic4c-add-participant-tests/epic4c-testsuite.spec.ts new file mode 100644 index 0000000000..f3bd10258f --- /dev/null +++ b/tests/playwright-tests/src/tests/e2e/epic4c-add-participant-tests/epic4c-testsuite.spec.ts @@ -0,0 +1,85 @@ +import { expect, test } from '../../fixtures/test-fixtures'; +import { extractSubscriptionID, getRecordsFromNemsSubscription, getRecordsFromParticipantDemographicService, getRecordsFromParticipantManagementService, receiveParticipantViaServiceNow } from "../../../api/distributionService/bsSelectService"; +import { composeValidators, expectStatus } from "../../../api/responseValidators"; +import { ParticipantRecord } from '../../../interface/InputData'; +import { loadParticipantPayloads } from '../../fixtures/jsonDataReader'; + +test.describe('@DTOSS-3881-01 @e2e @epic4c- Cohort Manger subscribed the Added record with PDS', () => { + + let participantData: Record; + + test.beforeAll(() => { + const folderName = '@DTOSS-3881-01'; + const fileName = 'ADD-participantPayload.json'; + participantData = loadParticipantPayloads(folderName, fileName); + }); + + test('@DTOSS-3881-01 DTOSS-10011 @not-runner-based - Verify subscription IDs on Nems table for ADD', { + annotation: [{ + type: 'Requirement - https://nhsd-jira.digital.nhs.uk/browse/DTOSS-3881', + description: 'Tests - https://nhsd-jira.digital.nhs.uk/browse/DTOSS-10011', + }] + }, async ({ request }, testInfo) => { + + await test.step('Given Cohort manager receives data from ServiceNow and subscribed to PDS', async () => { + const payload = participantData['inputParticipantRecord_test']; + const response = await receiveParticipantViaServiceNow(request, payload); + const validators = composeValidators( + expectStatus(202) + ); + await validators(response); + }); + + await test.step('Then NHSNumber, GivenName, FamilyName is written to Participant Demographic table', async () => { + const response = await getRecordsFromParticipantDemographicService(request); + + expect(response?.data?.[0]?.NhsNumber).toBe(9997160908); + expect(response?.data?.[0]?.GivenName).toBe("Jane"); + expect(response?.data?.[0]?.FamilyName).toBe("Doe"); + }); + + await test.step('And NHSNumber, ScreeningId, ReferralFlag is written to Participant Management table', async () => { + const response = await getRecordsFromParticipantManagementService(request); + expect(response?.data?.[0]?.NHSNumber).toBe(9997160908); + expect(response?.data?.[0]?.ScreeningId).toBe(1); + expect(response?.data?.[0]?.ReferralFlag).toBe(1); + }); + + await test.step('Assert that NemsSubscription service is available', async () => { + const nhsNumber = participantData['inputParticipantRecord_test'].u_case_variable_data.nhs_number; + const response = await getRecordsFromNemsSubscription(request, nhsNumber); + const validators = composeValidators( + expectStatus(200) + ); + await validators(response); + }); + + await test.step(`DTOSS-10012 ADD verify NemsSubscription in NEMS_SUBSCRIPTION table`, async () => { + const nhsNumber = participantData['inputParticipantRecord_test'].u_case_variable_data.nhs_number; + + const response = await getRecordsFromNemsSubscription(request, nhsNumber); + const subscriptionID = extractSubscriptionID(response); + expect(response.status).toBe(200); + expect(subscriptionID).not.toBeNull(); + + console.log(`Extracted Subscription ID: ${subscriptionID} for NHS number: ${nhsNumber}`); + }); + }); + + test('@DTOSS-3881-02 DTOSS-10013 @not-runner-based AMEND verify NemsSubscription_id in NEMS_SUBSCRIPTION table', { + annotation: [{ + type: 'Requirement - https://nhsd-jira.digital.nhs.uk/browse/DTOSS-3881', + description: 'Tests - https://nhsd-jira.digital.nhs.uk/browse/DTOSS-10013', + }] + }, async ({ request }, testInfo) => { + + const nhsNumber = '9996534472'; + + const response = await getRecordsFromNemsSubscription(request, nhsNumber); + const subscriptionID = extractSubscriptionID(response); + expect(response.status).toBe(200); + expect(subscriptionID).not.toBeNull(); + + console.log(`Extracted Subscription ID: ${subscriptionID} for NHS number: ${nhsNumber}`); + }); +}); diff --git a/tests/playwright-tests/src/tests/e2e/testFiles/@DTOSS-3881-02/ADDMANUAL1_1B8F53_-_CAAS_BREAST_SCREENING_COHORT.json b/tests/playwright-tests/src/tests/e2e/testFiles/@DTOSS-3881-02/ADDMANUAL1_1B8F53_-_CAAS_BREAST_SCREENING_COHORT.json new file mode 100644 index 0000000000..02ea0da276 --- /dev/null +++ b/tests/playwright-tests/src/tests/e2e/testFiles/@DTOSS-3881-02/ADDMANUAL1_1B8F53_-_CAAS_BREAST_SCREENING_COHORT.json @@ -0,0 +1,61 @@ +{ + "validations": [ + { + "validations": { + "apiEndpoint": "api/CohortDistributionDataService", + "NHSNumber": 9996534472, + "GivenName": "Jane", + "FamilyName": "Doe" + }, + "meta": { + "testJiraId": "@DTOSS-3881-02", + "requirementJiraId": "@DTOSS-3881-02", + "additionalTags": "@DTOSS-3881-02 @e2e @epic4c- DTOSS-10013 1.verify valid record between PDS and SNOW in cohort distribution table" + } + }, + { + "validations": { + "apiEndpoint": "api/ParticipantManagementDataService", + "RecordType": "ADD", + "NHSNumber": 9996534472, + "ReferralFlag": 1, + "ScreeningId": 1 + }, + "meta": { + "testJiraId": "@DTOSS-3881-02", + "requirementJiraId": "@DTOSS-3881-02", + "additionalTags": "@DTOSS-3881-02 @e2e @epic4c- DTOSS-10013 2.verify valid record between PDS and SNOW in participant management table" + } + }, + { + "validations": { + "apiEndpoint": "api/ParticipantDemographicDataService", + "NhsNumber": 9996534472, + "GivenName": "Jane", + "FamilyName": "Doe" + }, + "meta": { + "testJiraId": "@DTOSS-3881-02", + "requirementJiraId": "@DTOSS-3881-02", + "additionalTags": "@DTOSS-3881-02 @e2e @epic4c- DTOSS-10013 3.verify valid record between PDS and SNOW in participant demographic table" + } + } + ], + "inputParticipantRecord": [ + { + "number": "CS0573846", + "u_case_variable_data": { + "nhs_number": "9996534472", + "forename_": "Jane", + "surname_family_name": "Doe", + "date_of_birth": "2010-10-22", + "enter_dummy_gp_code": "", + "BSO_code": "NORTH NOTTINGHAMSHIRE BREAST SCREENING OFFICE", + "reason_for_adding": "requires_ceasing_following_surgery_bilateral_mastectomy" + } + } + ], + "nhsNumbers": [ + "9996534472" + ] +} diff --git a/tests/playwright-tests/src/tests/e2e/testFiles/@DTOSS-3881-02/AMENDMANUAL_1B8F53_-_CAAS_BREAST_SCREENING_COHORT.json b/tests/playwright-tests/src/tests/e2e/testFiles/@DTOSS-3881-02/AMENDMANUAL_1B8F53_-_CAAS_BREAST_SCREENING_COHORT.json new file mode 100644 index 0000000000..25e28584b5 --- /dev/null +++ b/tests/playwright-tests/src/tests/e2e/testFiles/@DTOSS-3881-02/AMENDMANUAL_1B8F53_-_CAAS_BREAST_SCREENING_COHORT.json @@ -0,0 +1,86 @@ +{ + "validations": [ + { + "validations": { + "apiEndpoint": "api/CohortDistributionDataService", + "NHSNumber": 9996534472, + "PrimaryCareProvider": "B86019", + "TelephoneNumberHome": "01632960999" + }, + "meta": { + "testJiraId": "@DTOSS-3881-02", + "requirementJiraId": "@DTOSS-3881-02", + "additionalTags": "@epic4c- @e2e DTOSS-10013 1.Check updated telephone number record in (cohort distribution)" + } + }, + { + "validations": { + "apiEndpoint": "api/ParticipantDemographicDataService", + "NhsNumber": 9996534472, + "PrimaryCareProvider": "B86019" + }, + "meta": { + "testJiraId": "@DTOSS-3881-02", + "requirementJiraId": "@DTOSS-3881-02", + "additionalTags": "@epic4c- @e2e DTOSS-10013 2.verify data in record (participant demographic)" + } + }, + { + "validations": { + "apiEndpoint": "api/ParticipantManagementDataService", + "NHSNumber": 9996534472, + "RecordType": "AMENDED" + }, + "meta": { + "testJiraId": "@DTOSS-3881-02", + "requirementJiraId": "@DTOSS-3881-02", + "additionalTags": "@epic4c- @e2e DTOSS-10013 3.check record (participant management)" + } + } + ], + "inputParticipantRecord": [ + { + "record_type": "AMENDED", + "change_time_stamp": null, + "serial_change_number": null, + "nhs_number": 9996534472, + "superseded_by_nhs_number": null, + "primary_care_provider": "B86019", + "primary_care_effective_from_date": "20030318", + "current_posting": "WGA", + "current_posting_effective_from_date": "20130319", + "name_prefix": "Mrs", + "given_name": "Jane", + "other_given_name": "", + "family_name": "Doe", + "previous_family_name": "", + "date_of_birth": "20101022", + "gender": 2, + "address_line_1": "1 Trevelyan Square", + "address_line_2": "Boar Lane", + "address_line_3": "City Centre", + "address_line_4": "Leeds", + "address_line_5": "West Yorkshire", + "postcode": "LS1 6AE", + "paf_key": "Z3S4Q5X9", + "address_effective_from_date": "20130319", + "reason_for_removal": null, + "reason_for_removal_effective_from_date": null, + "date_of_death": null, + "death_status": null, + "home_telephone_number": "01632960999", + "home_telephone_effective_from_date": "20200818", + "mobile_telephone_number": "", + "mobile_telephone_effective_from_date": "20200818", + "email_address": "jane.smith@example.com", + "email_address_effective_from_date": "20200818", + "preferred_language": "en", + "is_interpreter_required": false, + "invalid_flag": false, + "eligibility": true + } + ], + "nhsNumbers": [ + "9996534472" + ] +} diff --git a/tests/playwright-tests/src/tests/e2e/testFiles/@DTOSS-9337-01/AMENDED1_CAAS_BREAST_SCREENING_COHORT.json b/tests/playwright-tests/src/tests/e2e/testFiles/@DTOSS-9337-01/AMENDED1_CAAS_BREAST_SCREENING_COHORT.json index 79ead54c33..238eed8d2e 100644 --- a/tests/playwright-tests/src/tests/e2e/testFiles/@DTOSS-9337-01/AMENDED1_CAAS_BREAST_SCREENING_COHORT.json +++ b/tests/playwright-tests/src/tests/e2e/testFiles/@DTOSS-9337-01/AMENDED1_CAAS_BREAST_SCREENING_COHORT.json @@ -36,7 +36,7 @@ "serial_change_number": 2, "nhs_number": 9997311760, "superseded_by_nhs_number": "9992808403", - "primary_care_provider": null, + "primary_care_provider": "A81001", "primary_care_effective_from_date": "20030318", "current_posting": "CH", "current_posting_effective_from_date": "20130319",