Skip to content

Commit

Permalink
updated to mark more data as sensitve data (#109)
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Anderson <[email protected]>
  • Loading branch information
t11omas and Thomas Anderson authored Feb 3, 2025
1 parent 0f22337 commit ac8fa25
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Btms.Backend.Cli/Features/GenerateModels/ClassMaps/Bootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,23 @@ public static void RegisterIpaffsClassMaps()
map.MapProperty("agent").IsSensitive();
});

GeneratorClassMap.RegisterClassMap("Applicant",
map =>
{
map.MapProperty("laboratoryAddress").IsSensitive();
map.MapProperty("laboratoryIdentification").IsSensitive();
map.MapProperty("laboratoryIdentification").IsSensitive();
map.MapProperty("laboratoryPhoneNumber").IsSensitive();
map.MapProperty("laboratoryEmail").IsSensitive();
map.MapProperty("sampleBatchNumber").IsSensitive();
});

GeneratorClassMap.RegisterClassMap("LaboratoryTestResult",
map =>
{
map.MapProperty("results").IsSensitive();
});

GeneratorClassMap.RegisterClassMap("BillingInformation",
map =>
{
Expand Down
5 changes: 5 additions & 0 deletions Btms.Types.Ipaffs.V1/Applicant.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,34 +32,39 @@ public partial class Applicant //
/// Laboratory address
/// </summary>
[JsonPropertyName("laboratoryAddress")]
[SensitiveData.SensitiveData]
public string? LaboratoryAddress { get; set; }


/// <summary>
/// Laboratory identification
/// </summary>
[JsonPropertyName("laboratoryIdentification")]
[SensitiveData.SensitiveData]
public string? LaboratoryIdentification { get; set; }


/// <summary>
/// Laboratory phone number
/// </summary>
[JsonPropertyName("laboratoryPhoneNumber")]
[SensitiveData.SensitiveData]
public string? LaboratoryPhoneNumber { get; set; }


/// <summary>
/// Laboratory email
/// </summary>
[JsonPropertyName("laboratoryEmail")]
[SensitiveData.SensitiveData]
public string? LaboratoryEmail { get; set; }


/// <summary>
/// Sample batch number
/// </summary>
[JsonPropertyName("sampleBatchNumber")]
[SensitiveData.SensitiveData]
public string? SampleBatchNumber { get; set; }


Expand Down
1 change: 1 addition & 0 deletions Btms.Types.Ipaffs.V1/LaboratoryTestResult.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public partial class LaboratoryTestResult //
/// Result of test
/// </summary>
[JsonPropertyName("results")]
[SensitiveData.SensitiveData]
public string? Results { get; set; }


Expand Down

0 comments on commit ac8fa25

Please sign in to comment.