From 07f57c1b7b474930ae3a498bd020bb4e7a3cac7b Mon Sep 17 00:00:00 2001 From: James Cockayne Date: Fri, 3 Jan 2025 11:30:15 +0000 Subject: [PATCH 1/6] Clone DrugCode and ClinicalCode. Fix bug where ClnicalCode data was used for DrugCode --- data-replicator/ClinicalCode.cs | 16 +++++++++++ data-replicator/DrugCode.cs | 10 +++++++ data-replicator/Program.cs | 27 +++++++++++++------ .../Properties/launchSettings.json | 12 +++++++++ 4 files changed, 57 insertions(+), 8 deletions(-) create mode 100644 data-replicator/ClinicalCode.cs create mode 100644 data-replicator/DrugCode.cs create mode 100644 data-replicator/Properties/launchSettings.json diff --git a/data-replicator/ClinicalCode.cs b/data-replicator/ClinicalCode.cs new file mode 100644 index 0000000..8de0691 --- /dev/null +++ b/data-replicator/ClinicalCode.cs @@ -0,0 +1,16 @@ +namespace data_replicator; + +public class ClinicalCode +{ + public string? CodeId { get; set; } + public string? Term { get; set; } + public string? ReadTermId { get; set; } + public string? SnomedCTConceptId { get; set; } + public string? SnomedCTDescriptionId { get; set; } + public string? NationalCode { get; set; } + public string? NationalCodeCategory { get; set; } + public string? NationalDescription { get; set; } + public string? EmisCodeCategoryDescription { get; set; } + public string? ProcessingId { get; set; } + public string? ParentCodeId { get; set; } +} \ No newline at end of file diff --git a/data-replicator/DrugCode.cs b/data-replicator/DrugCode.cs new file mode 100644 index 0000000..09972ba --- /dev/null +++ b/data-replicator/DrugCode.cs @@ -0,0 +1,10 @@ +namespace data_replicator; + +public class DrugCode +{ + public string? CodeId { get; set; } + public string? Term { get; set; } + public string? DmdProductCodeId { get; set; } + public string? BNFChapterRef { get; set; } + public string? ProcessingId { get; set; } +} \ No newline at end of file diff --git a/data-replicator/Program.cs b/data-replicator/Program.cs index 714ac63..fd3c344 100644 --- a/data-replicator/Program.cs +++ b/data-replicator/Program.cs @@ -1,13 +1,24 @@ using CsvHelper; using System.Globalization; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using ShellProgressBar; namespace data_replicator; internal class Program { + public static void CopyCsv(string source, string destination) + { + using var reader = new StreamReader(source); + using var csv = new CsvReader(reader, CultureInfo.InvariantCulture); + + var records = csv.GetRecords().ToList(); + + using var writer = new StreamWriter(destination); + using var csvWriter = new CsvWriter(writer, CultureInfo.InvariantCulture); + + csvWriter.WriteRecords(records); + } + public static dynamic[] GetSampleRecords(string path) { using var reader = new StreamReader(path); @@ -638,14 +649,14 @@ static void Main(string[] args) Directory.CreateDirectory(outputDirectory); - File.Copy( - FindFilePath(pathDirectory, "Coding_ClinicalCode_"), - Path.Combine(outputDirectory, $"{prefix}Coding_ClinicalCode{postfix}")); - - File.Copy( - FindFilePath(pathDirectory, "Coding_ClinicalCode_"), + CopyCsv( + source: FindFilePath(pathDirectory, "Coding_DrugCode_"), Path.Combine(outputDirectory, $"{prefix}Coding_DrugCode{postfix}")); + CopyCsv( + source: FindFilePath(pathDirectory, "Coding_ClinicalCode_"), + Path.Combine(outputDirectory, $"{prefix}Coding_ClinicalCode{postfix}")); + File.WriteAllLines( Path.Combine(outputDirectory, $"{prefix}Admin_Location{postfix}"), new[] diff --git a/data-replicator/Properties/launchSettings.json b/data-replicator/Properties/launchSettings.json new file mode 100644 index 0000000..90fa579 --- /dev/null +++ b/data-replicator/Properties/launchSettings.json @@ -0,0 +1,12 @@ +{ + "profiles": { + "data-replicator": { + "commandName": "Project", + "commandLineArgs": "5001 \"C:\\Code\\emis\" \"C:\\EMISTEST\\test1\"" + }, + "WSL": { + "commandName": "WSL2", + "distributionName": "" + } + } +} \ No newline at end of file From eae243e9964f72ba059c35f4468335b8d0c13708 Mon Sep 17 00:00:00 2001 From: James Cockayne Date: Fri, 3 Jan 2025 13:01:52 +0000 Subject: [PATCH 2/6] Use \n for row delimiters --- data-replicator/Program.cs | 78 +++++++------------ .../Properties/launchSettings.json | 2 +- 2 files changed, 31 insertions(+), 49 deletions(-) diff --git a/data-replicator/Program.cs b/data-replicator/Program.cs index fd3c344..c202991 100644 --- a/data-replicator/Program.cs +++ b/data-replicator/Program.cs @@ -1,6 +1,7 @@ using CsvHelper; using System.Globalization; using ShellProgressBar; +using CsvHelper.Configuration; namespace data_replicator; @@ -14,7 +15,7 @@ public static void CopyCsv(string source, string destination) var records = csv.GetRecords().ToList(); using var writer = new StreamWriter(destination); - using var csvWriter = new CsvWriter(writer, CultureInfo.InvariantCulture); + using var csvWriter = new CsvWriter(writer, CsvConfiguration); csvWriter.WriteRecords(records); } @@ -494,27 +495,27 @@ private static IEnumerable GetEmisObjects(ProgressBar progressBar, int o private static void WriteRecords(string path, IEnumerable records, string prefix, string postfix) { using var Admin_Organisation_writer = new StreamWriter(Path.Combine(path, $"{prefix}Admin_Organisation{postfix}")); - using var Admin_Organisation_csv = new CsvWriter(Admin_Organisation_writer, CultureInfo.InvariantCulture); + using var Admin_Organisation_csv = new CsvWriter(Admin_Organisation_writer, CsvConfiguration); using var Admin_Patient_writer = new StreamWriter(Path.Combine(path, $"{prefix}Admin_Patient{postfix}")); - using var Admin_Patient_csv = new CsvWriter(Admin_Patient_writer, CultureInfo.InvariantCulture); + using var Admin_Patient_csv = new CsvWriter(Admin_Patient_writer, CsvConfiguration); using var Admin_UserInRole_writer = new StreamWriter(Path.Combine(path, $"{prefix}Admin_UserInRole{postfix}")); - using var Admin_UserInRole_csv = new CsvWriter(Admin_UserInRole_writer, CultureInfo.InvariantCulture); + using var Admin_UserInRole_csv = new CsvWriter(Admin_UserInRole_writer, CsvConfiguration); using var Appointment_Session_writer = new StreamWriter(Path.Combine(path, $"{prefix}Appointment_Session{postfix}")); - using var Appointment_Session_csv = new CsvWriter(Appointment_Session_writer, CultureInfo.InvariantCulture); + using var Appointment_Session_csv = new CsvWriter(Appointment_Session_writer, CsvConfiguration); using var Appointment_Slot_writer = new StreamWriter(Path.Combine(path, $"{prefix}Appointment_Slot{postfix}")); - using var Appointment_Slot_csv = new CsvWriter(Appointment_Slot_writer, CultureInfo.InvariantCulture); + using var Appointment_Slot_csv = new CsvWriter(Appointment_Slot_writer, CsvConfiguration); using var CareRecord_Consultation_writer = new StreamWriter(Path.Combine(path, $"{prefix}CareRecord_Consultation{postfix}")); - using var CareRecord_Consultation_csv = new CsvWriter(CareRecord_Consultation_writer, CultureInfo.InvariantCulture); + using var CareRecord_Consultation_csv = new CsvWriter(CareRecord_Consultation_writer, CsvConfiguration); using var CareRecord_Diary_writer = new StreamWriter(Path.Combine(path, $"{prefix}CareRecord_Diary{postfix}")); - using var CareRecord_Diary_csv = new CsvWriter(CareRecord_Diary_writer, CultureInfo.InvariantCulture); + using var CareRecord_Diary_csv = new CsvWriter(CareRecord_Diary_writer, CsvConfiguration); using var CareRecord_Observation_writer = new StreamWriter(Path.Combine(path, $"{prefix}CareRecord_Observation{postfix}")); - using var CareRecord_Observation_csv = new CsvWriter(CareRecord_Observation_writer, CultureInfo.InvariantCulture); + using var CareRecord_Observation_csv = new CsvWriter(CareRecord_Observation_writer, CsvConfiguration); using var CareRecord_Problem_writer = new StreamWriter(Path.Combine(path, $"{prefix}CareRecord_Problem{postfix}")); - using var CareRecord_Problem_csv = new CsvWriter(CareRecord_Problem_writer, CultureInfo.InvariantCulture); + using var CareRecord_Problem_csv = new CsvWriter(CareRecord_Problem_writer, CsvConfiguration); using var Prescribing_DrugRecord_writer = new StreamWriter(Path.Combine(path, $"{prefix}Prescribing_DrugRecord{postfix}")); - using var Prescribing_DrugRecord_csv = new CsvWriter(Prescribing_DrugRecord_writer, CultureInfo.InvariantCulture); + using var Prescribing_DrugRecord_csv = new CsvWriter(Prescribing_DrugRecord_writer, CsvConfiguration); using var Prescribing_IssueRecord_writer = new StreamWriter(Path.Combine(path, $"{prefix}Prescribing_IssueRecord{postfix}")); - using var Prescribing_IssueRecord_csv = new CsvWriter(Prescribing_IssueRecord_writer, CultureInfo.InvariantCulture); + using var Prescribing_IssueRecord_csv = new CsvWriter(Prescribing_IssueRecord_writer, CsvConfiguration); Admin_Organisation_csv.WriteHeader(typeof(Organisation)); Admin_Organisation_csv.NextRecord(); @@ -595,6 +596,8 @@ private static void WriteRecords(string path, IEnumerable records, strin } } + private static readonly CsvConfiguration CsvConfiguration = new (CultureInfo.CurrentCulture) { NewLine = "\n" }; + static void Main(string[] args) { if (args.Length != 3) @@ -657,54 +660,33 @@ static void Main(string[] args) source: FindFilePath(pathDirectory, "Coding_ClinicalCode_"), Path.Combine(outputDirectory, $"{prefix}Coding_ClinicalCode{postfix}")); - File.WriteAllLines( - Path.Combine(outputDirectory, $"{prefix}Admin_Location{postfix}"), - new[] - { - @"""LocationGuid"",""LocationName"",""LocationTypeDescription"",""ParentLocationGuid"",""OpenDate"",""CloseDate"",""MainContactName"",""FaxNumber"",""EmailAddress"",""PhoneNumber"",""HouseNameFlatNumber"",""NumberAndStreet"",""Village"",""Town"",""County"",""Postcode"",""Deleted"",""ProcessingId""" - }); + File.WriteAllText( + Path.Combine(outputDirectory, $"{prefix}Admin_Location{postfix}"), + @"""LocationGuid"",""LocationName"",""LocationTypeDescription"",""ParentLocationGuid"",""OpenDate"",""CloseDate"",""MainContactName"",""FaxNumber"",""EmailAddress"",""PhoneNumber"",""HouseNameFlatNumber"",""NumberAndStreet"",""Village"",""Town"",""County"",""Postcode"",""Deleted"",""ProcessingId"""); - File.WriteAllLines( + File.WriteAllText( Path.Combine(outputDirectory, $"{prefix}Admin_OrganisationLocation{postfix}"), - new[] - { - @"""OrganisationGuid"",""LocationGuid"",""IsMainLocation"",""Deleted"",""ProcessingId""" - }); + @"""OrganisationGuid"",""LocationGuid"",""IsMainLocation"",""Deleted"",""ProcessingId"""); - File.WriteAllLines( + File.WriteAllText( Path.Combine(outputDirectory, $"{prefix}Admin_PatientHistory{postfix}"), - new[] - { - @"""PatientGuid"",""OrganisationGuid"",""HistoryDate"",""HistoryTime"",""StatusDescription"",""ProcessingId""" - }); + @"""PatientGuid"",""OrganisationGuid"",""HistoryDate"",""HistoryTime"",""StatusDescription"",""ProcessingId"""); - File.WriteAllLines( + File.WriteAllText( Path.Combine(outputDirectory, $"{prefix}Agreements_SharingOrganisation{postfix}"), - new[] - { - @"""OrganisationGuid"",""IsActivated"",""LastModifiedDate"",""Disabled"",""Deleted""" - }); + @"""OrganisationGuid"",""IsActivated"",""LastModifiedDate"",""Disabled"",""Deleted"""); - File.WriteAllLines( + File.WriteAllText( Path.Combine(outputDirectory, $"{prefix}Audit_PatientAudit{postfix}"), - new[] - { - @"""ItemGuid"",""PatientGuid"",""OrganisationGuid"",""ModifiedDate"",""ModifiedTime"",""UserInRoleGuid"",""ItemType"",""ModeType"",""ProcessingId""" - }); + @"""ItemGuid"",""PatientGuid"",""OrganisationGuid"",""ModifiedDate"",""ModifiedTime"",""UserInRoleGuid"",""ItemType"",""ModeType"",""ProcessingId"""); - File.WriteAllLines( + File.WriteAllText( Path.Combine(outputDirectory, $"{prefix}Audit_RegistrationAudit{postfix}"), - new[] - { - @"""PatientGuid"",""OrganisationGuid"",""ModifiedDate"",""ModifiedTime"",""UserInRoleGuid"",""ModeType"",""ProcessingId""" - }); + @"""PatientGuid"",""OrganisationGuid"",""ModifiedDate"",""ModifiedTime"",""UserInRoleGuid"",""ModeType"",""ProcessingId"""); - File.WriteAllLines( + File.WriteAllText( Path.Combine(outputDirectory, $"{prefix}CareRecord_ObservationReferral{postfix}"), - new[] - { - @"""ObservationGuid"",""PatientGuid"",""OrganisationGuid"",""ReferralTargetOrganisationGuid"",""ReferralUrgency"",""ReferralServiceType"",""ReferralMode"",""ReferralReceivedDate"",""ReferralReceivedTime"",""ReferralEndDate"",""ReferralSourceId"",""ReferralSourceOrganisationGuid"",""ReferralUBRN"",""ReferralReasonCodeId"",""ReferringCareProfessionalStaffGroupCodeId"",""ReferralEpisodeRTTMeasurementTypeId"",""ReferralEpisodeClosureDate"",""ReferralEpisodeDischargeLetterIssuedDate"",""ReferralClosureReasonCodeId"",""TransportRequired"",""ProcessingId""" - }); + @"""ObservationGuid"",""PatientGuid"",""OrganisationGuid"",""ReferralTargetOrganisationGuid"",""ReferralUrgency"",""ReferralServiceType"",""ReferralMode"",""ReferralReceivedDate"",""ReferralReceivedTime"",""ReferralEndDate"",""ReferralSourceId"",""ReferralSourceOrganisationGuid"",""ReferralUBRN"",""ReferralReasonCodeId"",""ReferringCareProfessionalStaffGroupCodeId"",""ReferralEpisodeRTTMeasurementTypeId"",""ReferralEpisodeClosureDate"",""ReferralEpisodeDischargeLetterIssuedDate"",""ReferralClosureReasonCodeId"",""TransportRequired"",""ProcessingId"""); File.Create(Path.Combine(outputDirectory, $"{patientsNeeded}_patients")); diff --git a/data-replicator/Properties/launchSettings.json b/data-replicator/Properties/launchSettings.json index 90fa579..620e733 100644 --- a/data-replicator/Properties/launchSettings.json +++ b/data-replicator/Properties/launchSettings.json @@ -2,7 +2,7 @@ "profiles": { "data-replicator": { "commandName": "Project", - "commandLineArgs": "5001 \"C:\\Code\\emis\" \"C:\\EMISTEST\\test1\"" + "commandLineArgs": "5002 \"C:\\Code\\emis\" \"C:\\EMISTEST\\test1\"" }, "WSL": { "commandName": "WSL2", From 3849d24ec46bf35cc309f5fcb13e861e72fa21f2 Mon Sep 17 00:00:00 2001 From: James Cockayne Date: Tue, 14 Jan 2025 10:02:35 +0000 Subject: [PATCH 3/6] Use PDS test patients as initial data source when generating patients. --- data-replicator/PDSPatient.cs | 24 ++++ data-replicator/Program.cs | 90 +++++++++++--- data-replicator/TD005777-34389.csv | 158 +++++++++++++++++++++++++ data-replicator/data-replicator.csproj | 6 + 4 files changed, 262 insertions(+), 16 deletions(-) create mode 100644 data-replicator/PDSPatient.cs create mode 100644 data-replicator/TD005777-34389.csv diff --git a/data-replicator/PDSPatient.cs b/data-replicator/PDSPatient.cs new file mode 100644 index 0000000..18d486d --- /dev/null +++ b/data-replicator/PDSPatient.cs @@ -0,0 +1,24 @@ +namespace data_replicator; + +internal class PDSPatient +{ + public string UNIQUE_ID { get; set; } + public string NHS_NO { get; set; } + public string DOB { get; set; } + public string DOD { get; set; } + public string FAMILY_NAME { get; set; } + public string GIVEN_NAME { get; set; } + public string OTHER_GIVEN_NAME { get; set; } + public string TITLE { get; set; } + public string GENDER { get; set; } + public string ADDR1 { get; set; } + public string ADDR2 { get; set; } + public string ADDR3 { get; set; } + public string ADDR4 { get; set; } + public string ADDR5 { get; set; } + public string POST_CODE { get; set; } + public string SENSITIVE_FLAG { get; set; } + public string GPP { get; set; } + public string SCENARIO { get; set; } + +} \ No newline at end of file diff --git a/data-replicator/Program.cs b/data-replicator/Program.cs index c202991..2ff8b38 100644 --- a/data-replicator/Program.cs +++ b/data-replicator/Program.cs @@ -55,6 +55,14 @@ static T GetRandomRecord(T[] array) return array[next]; } + private static void LoadPdsPatients() + { + using var reader = new StreamReader("TD005777-34389.csv"); + using var csv = new CsvReader(reader, CultureInfo.InvariantCulture); + + _pdsPatientEnumerator = csv.GetRecords().ToList().GetEnumerator(); + } + private static string FindFilePath(string path, string type) { var files = Directory.GetFiles(path, "*.csv"); @@ -82,6 +90,7 @@ private static string FindFilePath(string path, string type) private static dynamic[] CareRecord_Problem; private static dynamic[] Prescribing_DrugRecord; private static dynamic[] Prescribing_IssueRecord; + private static IEnumerator _pdsPatientEnumerator; private static IEnumerable GetEmisObjects(ProgressBar progressBar, int orgNumber, int targetPatientCount) { @@ -153,24 +162,10 @@ private static IEnumerable GetEmisObjects(ProgressBar progressBar, int o PatientGuid = patientGuid, OrganisationGuid = orgGuid, UsualGpUserInRoleGuid = GetRandomValue(userInRoleArray, o => o.UserInRoleGuid), - Sex = GetRandomValue(Admin_Patient, o => o.Sex), - DateOfBirth = GetRandomValue(Admin_Patient, o => o.DateOfBirth), - DateOfDeath = GetRandomValue(Admin_Patient, o => o.DateOfDeath), - Title = GetRandomValue(Admin_Patient, o => o.Title), - GivenName = GetRandomValue(Admin_Patient, o => o.GivenName), - MiddleNames = GetRandomValue(Admin_Patient, o => o.MiddleNames), - Surname = GetRandomValue(Admin_Patient, o => o.Surname), DateOfRegistration = GetRandomValue(Admin_Patient, o => o.DateOfRegistration), - NhsNumber = NHSNumberGenerator.GenerateNHSNumber(), PatientNumber = patientIndex.ToString(), PatientTypeDescription = GetRandomValue(Admin_Patient, o => o.PatientTypeDescription), DummyType = GetRandomValue(Admin_Patient, o => o.DummyType), - HouseNameFlatNumber = GetRandomValue(Admin_Patient, o => o.HouseNameFlatNumber), - NumberAndStreet = GetRandomValue(Admin_Patient, o => o.NumberAndStreet), - Village = GetRandomValue(Admin_Patient, o => o.Village), - Town = GetRandomValue(Admin_Patient, o => o.Town), - County = GetRandomValue(Admin_Patient, o => o.County), - Postcode = GetRandomValue(Admin_Patient, o => o.Postcode), ResidentialInstituteCode = GetRandomValue(Admin_Patient, o => o.ResidentialInstituteCode), NHSNumberStatus = GetRandomValue(Admin_Patient, o => o.NHSNumberStatus), CarerName = GetRandomValue(Admin_Patient, o => o.CarerName), @@ -187,10 +182,71 @@ private static IEnumerable GetEmisObjects(ProgressBar progressBar, int o ExternalUsualGP = GetRandomValue(Admin_Patient, o => o.ExternalUsualGP), ExternalUsualGPOrganisation = GetRandomValue(Admin_Patient, o => o.ExternalUsualGPOrganisation), ContactComments = GetRandomValue(Admin_Patient, o => o.ContactComments), - ProcessingId = GetRandomValue(Admin_Patient, o => o.ProcessingId), - + ProcessingId = GetRandomValue(Admin_Patient, o => o.ProcessingId) }; + if (_pdsPatientEnumerator.MoveNext()) + { + // We will use a test PDS patient + + string ParseSex(string text) + { + return text switch + { + "Male" => "M", + "Female" => "F", + _ => throw new NotImplementedException() + }; + } + + string ParseDate(string text) + { + if (text == "") + return ""; + + var date = DateTime.Parse(text); + + return date.ToString("yyyy-MM-dd"); + } + + if (_pdsPatientEnumerator.Current.GENDER == "Indeterminate" || _pdsPatientEnumerator.Current.GENDER == "Not known") + continue; // We can't code this gender for EMIS systems, so just skip the patient. + + patient.Sex = ParseSex(_pdsPatientEnumerator.Current.GENDER); + patient.DateOfBirth = ParseDate(_pdsPatientEnumerator.Current.DOB); + patient.DateOfDeath = ParseDate(_pdsPatientEnumerator.Current.DOD); + patient.Title = _pdsPatientEnumerator.Current.TITLE; + patient.GivenName = _pdsPatientEnumerator.Current.GIVEN_NAME; + patient.MiddleNames = GetRandomValue(Admin_Patient, o => o.MiddleNames); + patient.Surname = _pdsPatientEnumerator.Current.FAMILY_NAME; + patient.NhsNumber = _pdsPatientEnumerator.Current.NHS_NO; + patient.HouseNameFlatNumber = _pdsPatientEnumerator.Current.ADDR1; + patient.NumberAndStreet = _pdsPatientEnumerator.Current.ADDR2; + patient.Village = _pdsPatientEnumerator.Current.ADDR3; + patient.Town = _pdsPatientEnumerator.Current.ADDR4; + patient.County = _pdsPatientEnumerator.Current.ADDR5; + patient.Postcode = _pdsPatientEnumerator.Current.POST_CODE; + } + else + { + // We will generate a synthetic patient based on existing test data. + + patient.Sex = GetRandomValue(Admin_Patient, o => o.Sex); + patient.DateOfBirth = GetRandomValue(Admin_Patient, o => o.DateOfBirth); + patient.DateOfDeath = GetRandomValue(Admin_Patient, o => o.DateOfDeath); + patient.Title = GetRandomValue(Admin_Patient, o => o.Title); + patient.GivenName = GetRandomValue(Admin_Patient, o => o.GivenName); + patient.MiddleNames = GetRandomValue(Admin_Patient, o => o.MiddleNames); + patient.Surname = GetRandomValue(Admin_Patient, o => o.Surname); + patient.NhsNumber = NHSNumberGenerator.GenerateNHSNumber(); + patient.HouseNameFlatNumber = GetRandomValue(Admin_Patient, o => o.HouseNameFlatNumber); + patient.NumberAndStreet = GetRandomValue(Admin_Patient, o => o.NumberAndStreet); + patient.Village = GetRandomValue(Admin_Patient, o => o.Village); + patient.Town = GetRandomValue(Admin_Patient, o => o.Town); + patient.County = GetRandomValue(Admin_Patient, o => o.County); + patient.Postcode = GetRandomValue(Admin_Patient, o => o.Postcode); + } + yield return patient; patientList.Add(patient); @@ -540,6 +596,8 @@ private static void WriteRecords(string path, IEnumerable records, strin Prescribing_IssueRecord_csv.WriteHeader(typeof(IssueRecord)); Prescribing_IssueRecord_csv.NextRecord(); + LoadPdsPatients(); + int rowCounter = 0; foreach (var record in records) diff --git a/data-replicator/TD005777-34389.csv b/data-replicator/TD005777-34389.csv new file mode 100644 index 0000000..3d49e1d --- /dev/null +++ b/data-replicator/TD005777-34389.csv @@ -0,0 +1,158 @@ +UNIQUE_ID,NHS_NO,DOB,DOD,FAMILY_NAME,GIVEN_NAME,OTHER_GIVEN_NAME,TITLE,GENDER,ADDR1,ADDR2,ADDR3,ADDR4,ADDR5,POST_CODE,SENSITIVE_FLAG,GPP,SCENARIO +1,9728917945,02/10/1944,,MAYLOR,Roy,,MR,Male,,10 MANSFIELD ROAD,,SCUNTHORPE,S HUMBERSIDE,DN15 7UG,,A20047,10 males over 65 with Multiple names and Address +1,9728917953,24/04/1950,,RUSH,Lee,,MR,Male,,2 ORCHARD CLOSE,KIRTON LINDSEY,GAINSBOROUGH,,DN21 4TL,,A20047,10 males over 65 with Multiple names and Address +1,9728917961,06/01/1945,,PONTY,Rupert,Stan,MR,Male,,10 HIGH STREET,CROWLE,SCUNTHORPE,,DN17 4LD,,A20047,10 males over 65 with Multiple names and Address +1,9728917988,22/07/1931,,HENRY,Jeff,Jack,MR,Male,BERTANIE,EAST LOUND ROAD,OWSTON FERRY,DONCASTER,S YORKSHIRE,DN9 1BA,,A20047,10 males over 65 with Multiple names and Address +1,9728917996,03/01/1926,,PART,Daren,,MR,Male,,14 REDBOURN WAY,,SCUNTHORPE,S HUMBERSIDE,DN16 1NE,,A20047,10 males over 65 with Multiple names and Address +1,9728918003,23/10/1954,,KEWN,Ross,Larry,MR,Male,,10 HILLARY ROAD,,SCUNTHORPE,S HUMBERSIDE,DN16 3DT,,A20047,10 males over 65 with Multiple names and Address +1,9728918011,14/10/1955,,POOLE,Shane,,MR,Male,1 HOLLAND CLOSE VILLAS,WOODHOUSE,BELTON,DONCASTER,S YORKSHIRE,DN9 1QJ,,A20047,10 males over 65 with Multiple names and Address +1,9728918038,11/03/1940,,BENSON,Kurt,,MR,Male,1 HOLME VILLAS,VICARAGE ROAD,WRAWBY,BRIGG,S HUMBERSIDE,DN20 8RT,,A20047,10 males over 65 with Multiple names and Address +1,9728918046,04/01/1940,,FLYNN,Rhys,,MR,Male,,7 CHURCH LANE,HAXEY,DONCASTER,S YORKSHIRE,DN9 2HZ,,A20047,10 males over 65 with Multiple names and Address +1,9728918054,22/09/1943,,MACKAY,Isaac,,MR,Male,,108 BRUMBY WOOD LANE,,SCUNTHORPE,S HUMBERSIDE,DN17 1AF,,A20047,10 males over 65 with Multiple names and Address +2,9728918062,29/04/1940,,ROCHE,Elsa,,MRS,Female,,19 PEVERIL AVENUE,,SCUNTHORPE,S HUMBERSIDE,DN17 1BG,,A20047,10 females over 65 with Multiple names and Address +2,9728918070,15/05/1940,,BANKS,Clara,,MRS,Female,,3 WARREN FARM CLOSE,EAST HALTON,IMMINGHAM,,DN40 3QE,,A20047,10 females over 65 with Multiple names and Address +2,9728918089,27/01/1941,,McHUGH,Tillie,Kari,MS,Female,,1 WEST CROSS STREET,KIRTON LINDSEY,GAINSBOROUGH,,DN21 4DN,,A20047,10 females over 65 with Multiple names and Address +2,9728918097,15/12/1955,,OGDEN,Tara,,MRS,Female,,103 WILTSHIRE AVENUE,BURTON-UPON-STATHER,SCUNTHORPE,S HUMBERSIDE,DN15 9ES,,A20047,10 females over 65 with Multiple names and Address +2,9728918100,24/06/1945,,BREWER,Joan,,MRS,Female,,1 EPWORTH ROAD,OWSTON FERRY,DONCASTER,S YORKSHIRE,DN9 1AP,,A20047,10 females over 65 with Multiple names and Address +2,9728918119,12/05/1929,,DOWNEY,Gerda,,MS,Female,,14 EASTFIELD ROAD,MESSINGHAM,SCUNTHORPE,S HUMBERSIDE,DN17 3PG,,A20047,10 females over 65 with Multiple names and Address +2,9728918127,12/02/1928,,TUNNY,Brenda,Grace,MRS,Female,,103 BAYSDALE ROAD,,SCUNTHORPE,S HUMBERSIDE,DN16 2QF,,A20047,10 females over 65 with Multiple names and Address +2,9728918135,08/10/1948,,SIMON,Lizzy,Nelly,MRS,Female,,5 ROBIN CLOSE,BOTTESFORD,SCUNTHORPE,S HUMBERSIDE,DN16 3GB,,A20047,10 females over 65 with Multiple names and Address +2,9728918143,21/12/1937,,TOOTLE,Andrea,,MS,Female,,10 BOLINGBROKE ROAD,,SCUNTHORPE,S HUMBERSIDE,DN17 2NH,,A20047,10 females over 65 with Multiple names and Address +2,9728918151,28/09/1953,,DARRAH,Olive,Alison,MRS,Female,,10 HOLLAND AVENUE,,SCUNTHORPE,S HUMBERSIDE,DN15 8HL,,A20047,10 females over 65 with Multiple names and Address +3,9728918178,24/06/2023,,DEASHA,Adrian,Vernon,MR,Male,,1 GRANGE FIELD,WORLABY,BRIGG,S HUMBERSIDE,DN20 0LZ,,A20047,1 male under 10 days at point of data generation +4,9728918186,03/06/2023,,KYNES,Earl,Tom,MR,Male,,1 BIRCH DRIVE,,SCUNTHORPE,,DN16 3GU,,A20047,1 male between 10 days and 3 months at point of data generation +5,9728918194,10/02/2023,,CONEY,Ivan,,MR,Male,ELSHAM TOP LODGE,,ELSHAM,BRIGG,S HUMBERSIDE,DN20 0NY,,A20047,1 male between 3 and 6 months at point of data generation +6,9728918208,02/08/2022,,veryveryveryveryvderylongsurnamebko,veryveryveryvderylongfirstforenmbko,veryveryveryvderylongotherforenmbko,longtitleleebko,Male,Veryveryveryveryveryvderylongaddres,Veryveryveryveryveryvderylongaddres,Veryveryveryveryveryvderylongaddres,Veryveryveryveryveryvderylongaddres,Veryveryveryveryveryvderylongaddres,st1 oqs,,A20047,1 male between 6 months and 1 year at point of data generation plus long name and address +7,9728918216,19/07/2020,,STOKES,Rupert,Austin,MR,Male,,10 SHELROY CLOSE,,SCUNTHORPE,S HUMBERSIDE,DN15 8DZ,,A20047,2 males between 1 and 5 years at point of data generation +7,9728918224,15/08/2020,,SHARD,Evan,Lucien,MR,Male,,1 HENDERSON CRESCENT,,SCUNTHORPE,S HUMBERSIDE,DN15 7RR,,A20047,2 males between 1 and 5 years at point of data generation +8,9728918232,31/03/2015,,KILLEY,Derek,Doug,MR,Male,CARR LODGE,GARTHORPE ROAD,LUDDINGTON,SCUNTHORPE,S HUMBERSIDE,DN17 4QX,,A20047,3 males between 5 and 10 years at point of data generation +8,9728918240,27/11/2013,,BEVAN,Otto,,MR,Male,,10 FOWLER ROAD,,SCUNTHORPE,S HUMBERSIDE,DN16 1PH,,A20047,3 males between 5 and 10 years at point of data generation +8,9728918259,20/01/2018,,FORD,Claude,,MR,Male,,53 EASTOFT ROAD,LUDDINGTON,SCUNTHORPE,S HUMBERSIDE,DN17 4QL,,A20047,3 males between 5 and 10 years at point of data generation +9,9728918267,21/02/2012,,BARROW,Bert,,MR,Male,,1 GRASSMOOR COURT,,SCUNTHORPE,S HUMBERSIDE,DN15 7UW,,A20047,2 males between 10 and 14 years at point of data generation +9,9728918275,06/07/2011,,OAKLEY,Nathan,,MR,Male,,11 WEST WINDS ROAD,WINTERTON,SCUNTHORPE,S HUMBERSIDE,DN15 9RU,,A20047,2 males between 10 and 14 years at point of data generation +9,9728918283,31/05/2011,,ECKES,Henry,,MR,Male,SUTTON HOUSE,,,SCUNTHORPE,,DN15 6SL,,A20047,2 males between 10 and 14 years at point of data generation +10,9728918291,02/10/2007,,GORST,Sven,Gus,MR,Male,,114 BOTTESFORD LANE,,SCUNTHORPE,S HUMBERSIDE,DN16 3QH,,A20047,2 males between 14 and 18 years at point of data generation +10,9728918305,09/11/2006,,SIMNER,Earl,Nigel,MR,Male,,1 LINCOLN DRIVE,,BARTON-UPON-HUMBER,S HUMBERSIDE,DN18 6DJ,,A20047,2 males between 14 and 18 years at point of data generation +10,9728918313,23/01/2007,,MOGG,Oswald,Edmond,MR,Male,,1 PASTURE LANE,AMCOTTS,SCUNTHORPE,S HUMBERSIDE,DN17 4AW,,A20047,2 males between 14 and 18 years at point of data generation +11,9728918321,25/06/2023,,TALLON,Doreen,Eliza,MISS,Female,,1 POPPY CLOSE,,SCUNTHORPE,S HUMBERSIDE,DN15 8PS,,A20047,1 female under 10 days at point of data generation +12,9728918348,29/04/2023,,PELOE,Ramona,,MISS,Female,,2 FORGE CRESCENT,,ULCEBY,S HUMBERSIDE,DN39 6RY,,A20047,1 female between 10 days and 3 months at point of data generation +13,9728918356,20/02/2023,,SAWLE,Ruth,Enid,MS,Female,,196 EAST COMMON LANE,,SCUNTHORPE,,DN16 1HJ,,A20047,1 female between 3 and 6 months at point of data generation +14,9728918364,26/08/2022,,LENNON,Mae,,MISS,Female,,12 ASHFIELD PARK,,SCUNTHORPE,,DN17 2AW,,A20047,1 female between 6 months and 1 year at point of data generation plus long name and address +15,9728918372,22/05/2020,,DIXON,Celia,,MS,Female,,1 SOUTH FURLONG CROFT,EPWORTH,DONCASTER,S YORKSHIRE,DN9 1GB,,A20047,2 females between 1 and 5 years at point of data generation +15,9728918380,06/04/2022,,EAVE,Denise,,MISS,Female,,31 GLOUCESTER AVENUE,,SCUNTHORPE,S HUMBERSIDE,DN16 2EA,,A20047,2 females between 1 and 5 years at point of data generation +16,9728918399,02/03/2014,,MULVEY,Toni,Zelma,MISS,Female,,100 HIGH STREET,EPWORTH,DONCASTER,S YORKSHIRE,DN9 1JS,,A20047,3 females between 5 and 10 years at point of data generation +16,9728918402,10/11/2013,,CROWE,Maude,Sophia,MS,Female,,1 CHANCEL ROAD,,SCUNTHORPE,S HUMBERSIDE,DN16 3LD,,A20047,3 females between 5 and 10 years at point of data generation +16,9728918410,17/02/2017,,KYNES,Amber,Donna,MS,Female,,303 WHARF ROAD,EALAND,SCUNTHORPE,S HUMBERSIDE,DN17 4JW,,A20047,3 females between 5 and 10 years at point of data generation +17,9728918429,30/05/2012,,MADDOX,Glenys,,MISS,Female,FLAT,106 OSWALD ROAD,,SCUNTHORPE,,DN15 7PA,,A20047,2 females between 10 and 14 years at point of data generation +17,9728918437,29/04/2011,,HOOD,Stella,Lynda,MS,Female,,3 GRAVEL PIT LANE,KIRMINGTON,ULCEBY,S HUMBERSIDE,DN39 6YU,,A20047,2 females between 10 and 14 years at point of data generation +17,9728918445,05/10/2010,,FLYNN,Lesley,,MS,Female,,1 SARAH GAUNT GARDENS,ALKBOROUGH,SCUNTHORPE,S HUMBERSIDE,DN15 9JH,,A20047,2 females between 10 and 14 years at point of data generation +18,9728918453,26/06/2006,,LAWSON,Gemma,,MISS,Female,FERRERS,MANOR ROAD,,SCUNTHORPE,S HUMBERSIDE,DN16 3PU,,A20047,2 females between 14 and 18 years at point of data generation +18,9728918461,20/01/2009,,CLOUGH,Doris,Ellen,MS,Female,,2 GEORGE AVENUE,KEADBY,SCUNTHORPE,S HUMBERSIDE,DN17 3DE,,A20047,2 females between 14 and 18 years at point of data generation +18,9728918488,08/07/2007,,HARRIS,Minnie,Kate,MISS,Female,,7 NICOLSON DRIVE,,BARTON-UPON-HUMBER,,DN18 6AL,,A20047,2 females between 14 and 18 years at point of data generation +19,9728918496,17/08/2004,,CARR,Ivor,Edgar,MR,Male,,10 CLIFF ROAD,WINTERINGHAM,SCUNTHORPE,,DN15 9NQ,,A20047,8 males between 18 and 40 years at point of data generation +19,9728918518,29/03/1986,,PATE,Darren,,MR,Male,WHITEHOUGH,DUDLEY ROAD,,BRIGG,,DN20 8AE,,A20047,8 males between 18 and 40 years at point of data generation +19,9728918526,24/03/2002,,KITTS,Stefan,Larry,MR,Male,NEW HOUSE,HOOK ROAD,AMCOTTS,SCUNTHORPE,S HUMBERSIDE,DN17 4AZ,,A20047,8 males between 18 and 40 years at point of data generation +19,9728918534,15/06/1995,,BRAWN,Joel,Wilbur,MR,Male,,1 ALDAM DRIVE,BELTON,DONCASTER,,DN9 1FG,,A20047,8 males between 18 and 40 years at point of data generation +19,9728918542,29/05/1990,,HENON,Philip,Kevin,MR,Male,,2 LUNEBURG PLACE,,SCUNTHORPE,S HUMBERSIDE,DN15 8XS,,A20047,8 males between 18 and 40 years at point of data generation +19,9728918550,06/04/2000,,LYMER,Brad,Harley,MR,Male,,11 ERMINE STREET,BROUGHTON,BRIGG,S HUMBERSIDE,DN20 0AL,,A20047,8 males between 18 and 40 years at point of data generation +19,9728918569,20/08/1997,,PEGG,Rupert,Antony,MR,Male,THE GRANGE,PASHLEY WALK,BELTON,DONCASTER,,DN9 1WG,,A20047,8 males between 18 and 40 years at point of data generation +19,9728918577,21/06/2004,,NEWTON,Ernest,Karl,MR,Male,PRINCESS HOUSE,,,SCUNTHORPE,,DN15 6SJ,,A20047,8 males between 18 and 40 years at point of data generation +20,9728918585,04/11/1972,,FLINT,Wayne,Bart,MR,Male,CHARBECK,NORTH STREET,ROXBY,SCUNTHORPE,,DN15 0DJ,,A20047,9 males between 40 and 60 years at point of data generation +20,9728918593,20/04/1971,,AHERN,Alec,Bill,MR,Male,,36 MANBY ROAD,,SCUNTHORPE,S HUMBERSIDE,DN17 2JN,,A20047,9 males between 40 and 60 years at point of data generation +20,9728918607,01/10/1971,,CORRIN,Claude,Trevor,MR,Male,,1 LOW GARTH,BOTTESFORD,SCUNTHORPE,S HUMBERSIDE,DN17 2UL,,A20047,9 males between 40 and 60 years at point of data generation +20,9728918615,28/05/1981,,FURBER,Calvin,Kurt,MR,Male,,3 PASHLEY WALK,EPWORTH,DONCASTER,S YORKSHIRE,DN9 1HN,,A20047,9 males between 40 and 60 years at point of data generation +20,9728918623,17/04/1981,,ROTHE,Bob,Frank,MR,Male,TRENT LEA,HIGH STREET,EAST BUTTERWICK,SCUNTHORPE,S HUMBERSIDE,DN17 3AJ,,A20047,9 males between 40 and 60 years at point of data generation +20,9728918631,07/06/1970,,HOWSE,David,Guy,MR,Male,1 CHURCH COTTAGES,SHORE ROAD,GARTHORPE,SCUNTHORPE,S HUMBERSIDE,DN17 4AE,,A20047,9 males between 40 and 60 years at point of data generation +20,9728918658,02/02/1974,,AYRE,Gideon,Gordon,MR,Male,,2 SMITHY LANE,,BARNETBY,S HUMBERSIDE,DN38 6JG,,A20047,9 males between 40 and 60 years at point of data generation +20,9728918666,09/11/1965,,CASTLE,Ross,Mark,MR,Male,,101 COLLUM AVENUE,,SCUNTHORPE,S HUMBERSIDE,DN16 2TF,,A20047,9 males between 40 and 60 years at point of data generation +20,9728918674,03/01/1969,,ONIONS,Matt,Keith,MR,Male,,20 GERVASE STREET,,SCUNTHORPE,S HUMBERSIDE,DN15 7QD,,A20047,9 males between 40 and 60 years at point of data generation +21,9728918682,18/03/1960,,KITTS,Gavin,Jarrod,MR,Male,,2 THORNHILL CRESCENT,,SCUNTHORPE,S HUMBERSIDE,DN17 2PX,,A20047,8 males between 60 and 65 years at point of data generation +21,9728918690,10/01/1960,,REGAN,Morris,,MR,Male,,14 HOLM ROAD,WESTWOODSIDE,DONCASTER,S YORKSHIRE,DN9 2EZ,,A20047,8 males between 60 and 65 years at point of data generation +21,9728918704,07/08/1959,,KITSON,Jules,Josiah,MR,Male,,4 PARK VIEW,,BARTON-UPON-HUMBER,S HUMBERSIDE,DN18 6AX,,A20047,8 males between 60 and 65 years at point of data generation +21,9728918712,06/05/1960,,HOWAT,Nigel,Harold,MR,Male,,1 THOMPSON STREET,,SCUNTHORPE,S HUMBERSIDE,DN15 6QP,,A20047,8 males between 60 and 65 years at point of data generation +21,9728918720,08/05/1961,,CUFF,Rubin,Levi,MR,Male,,11 SOUTH CLIFF ROAD,KIRTON LINDSEY,GAINSBOROUGH,,DN21 4NP,,A20047,8 males between 60 and 65 years at point of data generation +21,9728918739,03/09/1961,,McGRAA,Stuart,West,MR,Male,,10 ASTERBY ROAD,,SCUNTHORPE,S HUMBERSIDE,DN17 2DN,,A20047,8 males between 60 and 65 years at point of data generation +21,9728918747,11/07/1962,,VOGEL,Josh,,MR,Male,,22 MAPLE TREE WAY,,SCUNTHORPE,S HUMBERSIDE,DN16 1LT,,A20047,8 males between 60 and 65 years at point of data generation +21,9728918755,12/10/1959,,COUMBE,Jim,Marcus,MR,Male,CHURCH VILLA,,BELTON,DONCASTER,,DN9 1PA,,A20047,8 males between 60 and 65 years at point of data generation +22,9728918763,13/07/1999,,HAM,Amelia,Joni,MISS,Female,,20 WILTSHIRE AVENUE,BURTON-UPON-STATHER,SCUNTHORPE,S HUMBERSIDE,DN15 9ER,,A20047,8 females between 18 and 40 years at point of data generation +22,9728918771,11/08/1995,,PENTON,Rita,Janice,MS,Female,,38 BIRCHWOOD ROAD,,SCUNTHORPE,S HUMBERSIDE,DN16 3HS,,A20047,8 females between 18 and 40 years at point of data generation +22,9728918798,28/02/2005,,BEVAN,Zenia,Gladys,MRS,Female,BONNYHALE COTTAGE,,EALAND,SCUNTHORPE,,DN17 4DF,,A20047,8 females between 18 and 40 years at point of data generation +22,9728918801,14/11/1987,,BALL,Rosa,Fancy,MRS,Female,,10 SOUTH STREET,WEST BUTTERWICK,SCUNTHORPE,S HUMBERSIDE,DN17 3JY,,A20047,8 females between 18 and 40 years at point of data generation +22,9728918828,16/05/1985,,VAUGHN,Amber,,MRS,Female,,6 MARKET HILL,WINTERINGHAM,SCUNTHORPE,S HUMBERSIDE,DN15 9NP,,A20047,8 females between 18 and 40 years at point of data generation +22,9728918836,26/06/1984,,KEENAN,Tara,,MRS,Female,,114 SCOTTER ROAD,,SCUNTHORPE,S HUMBERSIDE,DN15 8AY,,A20047,8 females between 18 and 40 years at point of data generation +22,9728918844,07/10/1985,,ROTHE,Susan,,MRS,Female,TRIANGLE COTTAGE,MARSH LANE,NEW HOLLAND,BARROW-UPON-HUMBER,,DN19 7PY,,A20047,8 females between 18 and 40 years at point of data generation +22,9728918852,13/06/1991,,HOULT,Kay,Marian,MS,Female,,1 CHESNEY DRIVE,,SCUNTHORPE,S HUMBERSIDE,DN16 3QL,,A20047,8 females between 18 and 40 years at point of data generation +23,9728918860,03/11/1977,,PYPER,Zoe,Ada,MS,Female,,102 SOUTH VIEW,BROUGHTON,BRIGG,S HUMBERSIDE,DN20 0EZ,,A20047,9 females between 40 and 60 years at point of data generation +23,9728918879,29/10/1968,,PERCY,Iris,,MS,Female,,10 CAISTOR AVENUE,,SCUNTHORPE,S HUMBERSIDE,DN16 3QZ,,A20047,9 females between 40 and 60 years at point of data generation +23,9728918887,22/02/1976,,MINTON,Eunice,Carlie,MISS,Female,,2 FAIRYSFIELD,SAXBY-ALL-SAINTS,BRIGG,S HUMBERSIDE,DN20 0QD,,A20047,9 females between 40 and 60 years at point of data generation +23,9728918895,10/01/1974,,LEWERS,Ramona,,MS,Female,2 GRANGE COTTAGES,,OWSTON FERRY,DONCASTER,S YORKSHIRE,DN9 1BD,,A20047,9 females between 40 and 60 years at point of data generation +23,9728918909,02/05/1964,,COTTER,Vera,,MRS,Female,,40 DEVONSHIRE ROAD,,SCUNTHORPE,S HUMBERSIDE,DN17 1ET,,A20047,9 females between 40 and 60 years at point of data generation +23,9728918917,27/07/1978,,HOWELL,Jessie,,MS,Female,,1 ANDREWS ROAD,SOUTH FERRIBY,BARTON-UPON-HUMBER,S HUMBERSIDE,DN18 6JF,,A20047,9 females between 40 and 60 years at point of data generation +23,9728918925,14/06/1981,,TARTT,Dolly,Kari,MRS,Female,,2 SWALLOW COURT,EPWORTH,DONCASTER,S YORKSHIRE,DN9 1EB,,A20047,9 females between 40 and 60 years at point of data generation +23,9728918933,12/11/1973,,CLEGG,Beth,Lena,MRS,Female,,2 MILL LANE,SOUTH FERRIBY,BARTON-UPON-HUMBER,S HUMBERSIDE,DN18 6JP,,A20047,9 females between 40 and 60 years at point of data generation +23,9728918941,17/11/1973,,SHARP,May,Elsie,MRS,Female,FIVE SEASONS,EAST MARSH ROAD,GOXHILL,BARROW-UPON-HUMBER,S HUMBERSIDE,DN19 7NQ,,A20047,9 females between 40 and 60 years at point of data generation +24,9728918968,21/03/1960,,DOOLEY,Myrtle,Phoebe,MRS,Female,,3 MILSON CLOSE,BROUGHTON,BRIGG,S HUMBERSIDE,DN20 0EA,,A20047,8 females between 60 and 65 years at point of data generation +24,9728918976,13/08/1958,,LUMAS,Carlie,,MRS,Female,,20 DIGBY STREET,,SCUNTHORPE,S HUMBERSIDE,DN15 6DB,,A20047,8 females between 60 and 65 years at point of data generation +24,9728918984,27/02/1962,,BRUCE,Carrie,Susie,MRS,Female,,1 THE SPINNEY,,BRIGG,,DN20 9FY,,A20047,8 females between 60 and 65 years at point of data generation +24,9728918992,10/08/1960,,TOPSON,Jessie,,MISS,Female,ALBERMA,LUDDINGTON ROAD,GARTHORPE,SCUNTHORPE,S HUMBERSIDE,DN17 4RU,,A20047,8 females between 60 and 65 years at point of data generation +24,9728919018,07/12/1959,,HEENEY,Tania,Jean,MS,Female,,41 OLD VILLAGE STREET,GUNNESS,SCUNTHORPE,S HUMBERSIDE,DN15 8TP,,A20047,8 females between 60 and 65 years at point of data generation +24,9728919026,27/04/1961,,LUMB,Agnes,,MS,Female,BALLACHALLIN,BACK STREET,ALKBOROUGH,SCUNTHORPE,S HUMBERSIDE,DN15 9JJ,,A20047,8 females between 60 and 65 years at point of data generation +24,9728919034,24/04/1961,,MINES,Lynda,,MS,Female,,20 FRANCES STREET,,SCUNTHORPE,,DN15 6NS,,A20047,8 females between 60 and 65 years at point of data generation +24,9728919042,20/07/1960,,WELSH,Hetty,,MRS,Female,,10 ABBOTS WAY,,ULCEBY,S HUMBERSIDE,DN39 6TL,,A20047,8 females between 60 and 65 years at point of data generation +25,9728919050,22/06/1992,13/12/2019,MINES,Felix,Karl,MR,Male,,1 ROWLAND ROAD,,SCUNTHORPE,S HUMBERSIDE,DN16 1SP,,A20047,1 dead male between 18 and 40 years at point of data generation +26,9728919069,21/03/1979,11/06/1986,BEATTY,Brett,Stefan,MR,Male,,1 OAKFORD CLOSE,,SCUNTHORPE,S HUMBERSIDE,DN17 1XB,,A20047,3 dead males between 40 and 60 years at point of data generation +26,9728919077,03/12/1974,03/05/1981,SIMON,Kurt,Philip,MR,Male,,1 BERETUN GREEN,,BARTON-UPON-HUMBER,S HUMBERSIDE,DN18 5DL,,A20047,3 dead males between 40 and 60 years at point of data generation +26,9728919085,04/08/1969,09/05/2014,MAHER,John,Pete,MR,Male,,1 HIGH BURGAGE,WINTERINGHAM,SCUNTHORPE,,DN15 9NE,,A20047,3 dead males between 40 and 60 years at point of data generation +27,9728919093,31/08/1961,10/09/1983,DEAN,Oswald,,MR,Male,,77 WARLEY ROAD,,SCUNTHORPE,S HUMBERSIDE,DN16 1PL,,A20047,1 dead male between 60 and 65 years at point of data generation +28,9728919107,21/11/1984,30/01/1994,NEWMAN,Lori,Sheila,MISS,Female,,4 ORCHARD CLOSE,,SCUNTHORPE,S HUMBERSIDE,DN16 2RL,,A20047,1 dead female between 18 and 40 years at point of data generation +29,9728919115,09/07/1980,11/10/2021,COFFEY,Louisa,Helena,MRS,Female,,2 MILLERS WAY,BROUGHTON,BRIGG,S HUMBERSIDE,DN20 0UE,,A20047,3 dead females between 40 and 60 years at point of data generation +29,9728919123,26/04/1980,12/01/1997,MILMIN,Rose,Lisa,MS,Female,,10 NEWNHAM CRESCENT,,SCUNTHORPE,S HUMBERSIDE,DN16 3LW,,A20047,3 dead females between 40 and 60 years at point of data generation +29,9728919131,27/01/1978,09/11/1987,WOMACK,Connie,Ellisa,MRS,Female,,12 WINDSOR WAY,BROUGHTON,BRIGG,S HUMBERSIDE,DN20 0EL,,A20047,3 dead females between 40 and 60 years at point of data generation +30,9728919158,06/12/1959,19/02/1997,PLATT,Evelyn,Verdy,MRS,Female,,1 SMITH STREET,,SCUNTHORPE,S HUMBERSIDE,DN15 7LG,,A20047,1 dead female between 60 and 65 years at point of data generation +31,9728919166,27/01/1987,,RICK,Edmond,,MR,Male,,13 HIGH STREET,YADDLETHORPE,SCUNTHORPE,S HUMBERSIDE,DN17 2RN,I,A20047,1 male between 18 and 40 years at point of data generation with sensitivity I +32,9728919174,07/10/1972,,HOLME,Marvin,Caleb,MR,Male,,2 PLANTAIN CLOSE,,SCUNTHORPE,S HUMBERSIDE,DN16 3UR,B,A20047,3 males between 40 and 60 years at point of data generation with sensitivity B +32,9728919182,15/08/1979,,CHURCH,Landon,Trevor,MR,Male,,1 STABLE LANE,,BARTON-UPON-HUMBER,S HUMBERSIDE,DN18 5BP,B,A20047,3 males between 40 and 60 years at point of data generation with sensitivity B +32,9728919190,20/08/1968,,KEAY,Stuart,,MR,Male,BANK HOUSE,TRENTSIDE,AMCOTTS,SCUNTHORPE,,DN17 4AX,B,A20047,3 males between 40 and 60 years at point of data generation with sensitivity B +33,9728919204,23/11/1961,,MADDEN,Eric,Dale,MR,Male,,1 PELHAM CLOSE,,BARTON-UPON-HUMBER,S HUMBERSIDE,DN18 5NW,B,A20047,1 male between 60 and 65 years at point of data generation with sensitivity B +34,9728919212,21/04/2002,,TOOTLE,Dawn,Teresa,MS,Female,,1 WAVENEY CLOSE,BURTON-UPON-STATHER,SCUNTHORPE,S HUMBERSIDE,DN15 9DT,S,A20047,1 female between 18 and 40 years at point of data generation with sensitivity S +35,9728919220,19/03/1976,,BEEVER,Kristi,Sandra,MRS,Female,,100 CLIFF GARDENS,,SCUNTHORPE,S HUMBERSIDE,DN15 7BN,S,A20047,3 females between 40 and 60 years at point of data generation with sensitivity S +35,9728919239,18/11/1968,,NANGLE,Mary,Molly,MISS,Female,SANDES FARMHOUSE,THORNTON ROAD,GOXHILL,BARROW-UPON-HUMBER,S HUMBERSIDE,DN19 7LR,S,A20047,3 females between 40 and 60 years at point of data generation with sensitivity S +35,9728919247,28/09/1973,,KEELEY,Milly,Milly,MS,Female,,10 WARRENDALE,,BARTON-UPON-HUMBER,S HUMBERSIDE,DN18 5NH,S,A20047,3 females between 40 and 60 years at point of data generation with sensitivity S +36,9728919255,05/02/1963,,RUDD,Faye,,MS,Female,,10 RIDGEWOOD DRIVE,BURTON-UPON-STATHER,SCUNTHORPE,S HUMBERSIDE,DN15 9YE,S,A20047,3 females between 40 and 60 years at point of data generation with sensitivity S +37,9728919263,15/07/1966,,ELSTON,Alec,Rupert,MR,Male,,20 CLARE AVENUE,,SCUNTHORPE,,DN17 1NT,,A20047,Merged male between 40 and 60 years at point of data generation (2 patients) +37,9728919271,19/10/1966,,LILLEY,West,,MR,Male,,4 HERON CLOSE,,SCUNTHORPE,S HUMBERSIDE,DN15 8UZ,,A20047,Merged male between 40 and 60 years at point of data generation (2 patients) +38,9728919298,07/09/1982,,LEECH,Verdy,Gwen,MRS,Female,,189 BURRINGHAM ROAD,,SCUNTHORPE,,DN17 2BQ,,A20047,Merged female between 40 and 60 years at point of data generation (2 patients) +38,9728919301,09/11/1973,,MANLEY,Marian,Kerry,MS,Female,,1 TYDEMAN CLOSE,,SCUNTHORPE,S HUMBERSIDE,DN16 3TW,,A20047,Merged female between 40 and 60 years at point of data generation (2 patients) +39,9728919328,12/06/1991,23/12/2016,CRUISE,Hetty,Phoebe,MS,Indeterminate,OXTON HOUSE,BAGSBY ROAD,OWSTON FERRY,DONCASTER,,DN9 1AJ,,A20047,5 dead randoms between 18 and 40 years at point of data generation +39,9728919336,06/05/1986,23/08/2002,DUFFY,Yasmin,Helena,MRS,Not known,,18 SWALLOW LANE,WOOTTON,ULCEBY,S HUMBERSIDE,DN39 6SB,,A20047,5 dead randoms between 18 and 40 years at point of data generation +39,9728919344,13/09/1992,04/08/2000,WILLIS,Jacob,Guy,MR,Male,,10 EARLS WALK,,SCUNTHORPE,S HUMBERSIDE,DN16 1HB,,A20047,5 dead randoms between 18 and 40 years at point of data generation +39,9728919352,01/05/2002,08/05/2016,SPARKS,Milly,Janine,MRS,Female,,10 NEWLAND AVENUE,,SCUNTHORPE,S HUMBERSIDE,DN15 7HN,,A20047,5 dead randoms between 18 and 40 years at point of data generation +39,9728919360,03/04/1994,04/05/2003,OGDEN,Landon,Marcus,MR,Male,,12 BURRINGHAM ROAD,,SCUNTHORPE,S HUMBERSIDE,DN17 2BB,,A20047,5 dead randoms between 18 and 40 years at point of data generation +40,9728919379,19/04/1971,12/05/1973,BARRIE,Colin,Sidney,MR,Male,,20 HURST LANE,,SCUNTHORPE,,DN17 2ST,,A20047,1 dead male between 40 and 60 years at point of data generation +41,9728919387,29/09/1973,19/10/2018,SANKEY,Elsa,Marion,MS,Female,,22 CHAPEL STREET,EPWORTH,DONCASTER,,DN9 1HQ,,A20047,1 dead female between 40 and 60 years at point of data generation +42,9728919395,23/03/1962,10/04/1998,MOYNES,David,,MR,Male,ALMOND DALE,SCOTTER ROAD,MESSINGHAM,SCUNTHORPE,S HUMBERSIDE,DN17 3QD,,A20047,1 dead male between 60 and 65 years at point of data generation +43,9728919409,04/10/1930,29/01/1995,GILL,Selena,,MRS,Female,,4 CHURCH LANE,SAXBY-ALL-SAINTS,BRIGG,S HUMBERSIDE,DN20 0QE,,A20047,1 dead female gt 65 years at point of data generation +44,9728919417,15/12/1957,08/12/1979,CORRIN,Leslie,,MR,Male,CHURCH VIEW,CHURCH SIDE,,BARROW-UPON-HUMBER,S HUMBERSIDE,DN19 7AN,,A20047,1 dead male gt 65 years at point of data generation +45,9728919425,07/05/2023,,PATE,Carol,,MS,Indeterminate,,2 PEAR TREE CLOSE,EPWORTH,DONCASTER,S YORKSHIRE,DN9 1GF,,A20047,Does NOT load as NHS NO TYPE of 'ONHS' is invalid in SPII +46,9728919433,09/11/2022,,EVERS,Gina,Rose,MISS,Indeterminate,,10 SCAWBY ROAD,,SCUNTHORPE,S HUMBERSIDE,DN17 2HZ,,A20047,Does NOT load as NHS NO TYPE of 'ONHS' is invalid in SPII +47,9728919441,30/11/1927,,NEELIE,Steven,Jim,MR,Male,,10 SILVER STREET,,BARNETBY,S HUMBERSIDE,ZZ99 3VZ,,A20047,1 male gt 65 years at point of data generation of No fixed abode (NFA) +50,9728919484,07/12/2019,,KIBBEY,Roslyn,,MS,Indeterminate,91-93,FRODINGHAM ROAD,,SCUNTHORPE,,DN15 7JU,,A20047,Simple Pack - PST and TMP addresses +52,9728919492,13/11/2011,,OVENS,Ivor,,MR,Male,,20 WEST STREET,WINTERTON,SCUNTHORPE,,DN15 9QF,,A20047,Simple Pack - Reason for Removal +53,9728919506,06/12/2020,,MANLEY,Jimmy,Shane,MR,Male,,13 DERWENT ROAD,,SCUNTHORPE,S HUMBERSIDE,DN16 2PA,,A20047,Simple Pack - No active H address +54,9728919514,28/06/2010,,MACKIN,Jeff,Jack,MR,Male,,1 LINDLEY STREET,,SCUNTHORPE,S HUMBERSIDE,DN16 2SG,,A20047,Simple Pack - All Telecom details +65,9728919522,02/05/1976,,HEGAN,Leo,Josh,Mr,Male,,100 WESTGATE ROAD,BELTON,DONCASTER,S YORKSHIRE,DN9 1QG,,A20047,Family 1 +66,9728919530,02/10/1974,,HEGAN,Rhoda,,Mrs,Female,,100 WESTGATE ROAD,BELTON,DONCASTER,S YORKSHIRE,DN9 1QG,,A20047,Family 1 +67,9728919549,02/11/2009,,HEGAN,Dawn,Nadia,Miss,Female,,100 WESTGATE ROAD,BELTON,DONCASTER,S YORKSHIRE,DN9 1QG,,A20047,Family 1 +68,9728919557,14/04/2019,,HEGAN,Tim,Olaf,Mr,Male,,100 WESTGATE ROAD,BELTON,DONCASTER,S YORKSHIRE,DN9 1QG,,A20047,Family 1 +69,9728919565,03/07/2023,,HEGAN,Jon,Alec,Mr,Male,,100 WESTGATE ROAD,BELTON,DONCASTER,S YORKSHIRE,DN9 1QG,,A20047,Family 1 +70,9728919573,26/06/1964,,FOGO,Huw,Chas,Mr,Male,,1 EASTFIELD ROAD,MESSINGHAM,SCUNTHORPE,S HUMBERSIDE,DN17 3PQ,,A20047,Family 2 +71,9728919581,18/01/1970,,FOGO,Amy,Fiona,Mrs,Female,,1 EASTFIELD ROAD,MESSINGHAM,SCUNTHORPE,S HUMBERSIDE,DN17 3PQ,,A20047,Family 2 +72,9728919603,27/11/2009,,FOGO,Fancy,Stella,Miss,Female,,1 EASTFIELD ROAD,MESSINGHAM,SCUNTHORPE,S HUMBERSIDE,DN17 3PQ,,A20047,Family 2 +73,9728919611,02/09/2019,,FOGO,Dan,Max,Mr,Male,,1 EASTFIELD ROAD,MESSINGHAM,SCUNTHORPE,S HUMBERSIDE,DN17 3PQ,,A20047,Family 2 +74,9728919638,01/07/2023,,FOGO,Leslie,,Mr,Male,,1 EASTFIELD ROAD,MESSINGHAM,SCUNTHORPE,S HUMBERSIDE,DN17 3PQ,,A20047,Family 2 +75,9728919646,11/03/1999,,FELTON,Austin,Frank,MR,Male,,22 CHURCH STREET,EPWORTH,DONCASTER,,DN9 1ER,,A20047,Migrant_01 +76,9728919654,21/04/1985,,MOXEY,Irving,Tony,MR,Male,,11 SHERBURN CRESCENT,,SCUNTHORPE,S HUMBERSIDE,DN15 8BY,,A20047,Migrant_02 +77,9728919662,13/03/1986,,SUNTER,Jules,Guy,MR,Male,,10 WINSTON WAY,,BRIGG,S HUMBERSIDE,DN20 8UA,,A20047,Migrant_03 +78,9728919670,25/06/1991,,RODDON,Flora,Maisie,MS,Female,REAR OF 143,FRODINGHAM ROAD,,SCUNTHORPE,,DN15 7JR,,A20047,Migrant_04 +79,9728919689,08/05/2005,,HIDE,Lela,Mary,MRS,Female,,10 WRAWBY STREET,,BRIGG,S HUMBERSIDE,DN20 8JU,,A20047,Migrant_05 +80,9728919697,04/10/1997,,FOSTER,Ann,Winnie,MRS,Female,,10 DRYDEN ROAD,,SCUNTHORPE,S HUMBERSIDE,DN17 1PN,,A20047,Migrant_06 diff --git a/data-replicator/data-replicator.csproj b/data-replicator/data-replicator.csproj index bc79e25..94a64de 100644 --- a/data-replicator/data-replicator.csproj +++ b/data-replicator/data-replicator.csproj @@ -13,4 +13,10 @@ + + + Always + + + From 11e84dfd375b8d606d951d1b2305a352465e0054 Mon Sep 17 00:00:00 2001 From: James Cockayne Date: Wed, 19 Feb 2025 12:44:22 +0000 Subject: [PATCH 4/6] Always start NHS numbers with 9 to indicate test patient. --- data-replicator/NHSNumberGenerator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data-replicator/NHSNumberGenerator.cs b/data-replicator/NHSNumberGenerator.cs index e45e622..9dad877 100644 --- a/data-replicator/NHSNumberGenerator.cs +++ b/data-replicator/NHSNumberGenerator.cs @@ -12,8 +12,8 @@ public static string GenerateNHSNumber() { // Generate 9 random digits Random random = new Random(); - nineDigits = ""; - for (int i = 0; i < 9; i++) + nineDigits = "9"; + for (int i = 1; i < 9; i++) { nineDigits += random.Next(0, 10).ToString(); } From 0f734d6fab0ab9d0fdb9c317418774ca8631951e Mon Sep 17 00:00:00 2001 From: James Cockayne Date: Wed, 26 Feb 2025 13:58:24 +0000 Subject: [PATCH 5/6] Generate ODS code --- data-replicator/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data-replicator/Program.cs b/data-replicator/Program.cs index 2ff8b38..fd2d626 100644 --- a/data-replicator/Program.cs +++ b/data-replicator/Program.cs @@ -105,13 +105,15 @@ private static IEnumerable GetEmisObjects(ProgressBar progressBar, int o string orgGuid = Guid.NewGuid().ToString(); + string odsCode = $"ODS{orgGuid[..5]}"; + yield return new Organisation { OrganisationGuid = orgGuid, CDB = GetRandomValue(Admin_Organisation, o => o.CDB), OrganisationName = GetRandomValue(Admin_Organisation, o => o.OrganisationName), - ODSCode = GetRandomValue(Admin_Organisation, o => o.ODSCode), + ODSCode = odsCode, ParentOrganisationGuid = GetRandomValue(Admin_Organisation, o => o.ParentOrganisationGuid), CCGOrganisationGuid = GetRandomValue(Admin_Organisation, o => o.CCGOrganisationGuid), OrganisationType = GetRandomValue(Admin_Organisation, o => o.OrganisationType), From 97e0a0bedc170aa7fd916b8093a88be6fc0ed858 Mon Sep 17 00:00:00 2001 From: James Cockayne Date: Tue, 4 Mar 2025 14:04:44 +0000 Subject: [PATCH 6/6] Use gb culture. --- data-replicator/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-replicator/Program.cs b/data-replicator/Program.cs index fd2d626..0072b8c 100644 --- a/data-replicator/Program.cs +++ b/data-replicator/Program.cs @@ -206,7 +206,7 @@ string ParseDate(string text) if (text == "") return ""; - var date = DateTime.Parse(text); + var date = DateTime.Parse(text, new CultureInfo("en-GB")); return date.ToString("yyyy-MM-dd"); }