Skip to content
Open
16 changes: 16 additions & 0 deletions data-replicator/ClinicalCode.cs
Original file line number Diff line number Diff line change
@@ -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; }
}
10 changes: 10 additions & 0 deletions data-replicator/DrugCode.cs
Original file line number Diff line number Diff line change
@@ -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; }
}
4 changes: 2 additions & 2 deletions data-replicator/NHSNumberGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
24 changes: 24 additions & 0 deletions data-replicator/PDSPatient.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
namespace data_replicator;

internal class PDSPatient
{
public string UNIQUE_ID { get; set; }

Check warning on line 5 in data-replicator/PDSPatient.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'UNIQUE_ID' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public string NHS_NO { get; set; }

Check warning on line 6 in data-replicator/PDSPatient.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'NHS_NO' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public string DOB { get; set; }

Check warning on line 7 in data-replicator/PDSPatient.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'DOB' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public string DOD { get; set; }

Check warning on line 8 in data-replicator/PDSPatient.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'DOD' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public string FAMILY_NAME { get; set; }

Check warning on line 9 in data-replicator/PDSPatient.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'FAMILY_NAME' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public string GIVEN_NAME { get; set; }

Check warning on line 10 in data-replicator/PDSPatient.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'GIVEN_NAME' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public string OTHER_GIVEN_NAME { get; set; }

Check warning on line 11 in data-replicator/PDSPatient.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'OTHER_GIVEN_NAME' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public string TITLE { get; set; }

Check warning on line 12 in data-replicator/PDSPatient.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'TITLE' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public string GENDER { get; set; }

Check warning on line 13 in data-replicator/PDSPatient.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'GENDER' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
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; }

}
197 changes: 125 additions & 72 deletions data-replicator/Program.cs

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions data-replicator/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"profiles": {
"data-replicator": {
"commandName": "Project",
"commandLineArgs": "5002 \"C:\\Code\\emis\" \"C:\\EMISTEST\\test1\""
},
"WSL": {
"commandName": "WSL2",
"distributionName": ""
}
}
}
158 changes: 158 additions & 0 deletions data-replicator/TD005777-34389.csv

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions data-replicator/data-replicator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@
<PackageReference Include="ShellProgressBar" Version="5.2.0" />
</ItemGroup>

<ItemGroup>
<None Update="TD005777-34389.csv">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>