Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ public override IEnumerable<CollegeLicense> SeedData
new CollegeLicense { CollegeCode = 1, LicenseCode = 5 },
new CollegeLicense { CollegeCode = 1, LicenseCode = 6 },
new CollegeLicense { CollegeCode = 1, LicenseCode = 7 },
new CollegeLicense { CollegeCode = 1, LicenseCode = 8 },
new CollegeLicense { CollegeCode = 1, LicenseCode = 9 },
new CollegeLicense { CollegeCode = 1, LicenseCode = 8, Discontinued = true },
new CollegeLicense { CollegeCode = 1, LicenseCode = 9, Discontinued = true },
new CollegeLicense { CollegeCode = 1, LicenseCode = 10 },
new CollegeLicense { CollegeCode = 1, LicenseCode = 11 },
new CollegeLicense { CollegeCode = 1, LicenseCode = 12 },
new CollegeLicense { CollegeCode = 1, LicenseCode = 179 },
new CollegeLicense { CollegeCode = 1, LicenseCode = 13 },
new CollegeLicense { CollegeCode = 1, LicenseCode = 179, Discontinued = true },
new CollegeLicense { CollegeCode = 1, LicenseCode = 13, Discontinued = true },
new CollegeLicense { CollegeCode = 1, LicenseCode = 14 },
new CollegeLicense { CollegeCode = 1, LicenseCode = 15 },
new CollegeLicense { CollegeCode = 1, LicenseCode = 16 },
Expand All @@ -48,6 +48,8 @@ public override IEnumerable<CollegeLicense> SeedData
new CollegeLicense { CollegeCode = 1, LicenseCode = 91 },
new CollegeLicense { CollegeCode = 1, LicenseCode = 92 },
new CollegeLicense { CollegeCode = 1, LicenseCode = 180 },
new CollegeLicense { CollegeCode = 1, LicenseCode = 183 },
new CollegeLicense { CollegeCode = 1, LicenseCode = 184 },

// Pharmacists
new CollegeLicense { CollegeCode = 2, LicenseCode = 25 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public override IEnumerable<License> SeedData
new License { Code = 65, Weight = 32, Name = "Educational - Podiatric Surgeon Student (Elective)" },
new License { Code = 66, Weight = 33, Name = "Educational - Podiatric Surgeon Resident (Elective)" },
new License { Code = 67, Weight = 34, Name = "Conditional - Podiatric Surgeon Disciplined" },
new License { Code = 183, Weight = 35, Name = "Restricted - Family" },
new License { Code = 184, Weight = 36, Name = "Restricted - Specialty" },

// Pharmacy
new License { Code = 25, Weight = 10, Name = "Full Pharmacist" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class LicenseDetailConfiguration : SeededTable<LicenseDetail>
public static readonly DateTime PhysicianLicenseClassChangeSept2025 = new(2025, 9, 11, 8, 0, 0, DateTimeKind.Utc);
public static readonly DateTime CPBCLicenseChange23June2026 = new(2026, 6, 23, 8, 0, 0, DateTimeKind.Utc);
public static readonly DateTime BCVNMLicenseChange24June2026 = new(2026, 6, 24, 8, 0, 0, DateTimeKind.Utc);
public static readonly DateTime CPSBCLicenseChange25June2026 = new(2026, 6, 25, 8, 0, 0, DateTimeKind.Utc);

public override IEnumerable<LicenseDetail> SeedData
{
Expand Down Expand Up @@ -498,6 +499,14 @@ public override IEnumerable<LicenseDetail> SeedData
new LicenseDetail { Id = 382, LicenseCode = 33, Prefix = "R9", Manual = true, Validate = true, LicensedToProvideCare = true, NamedInImReg = false, PrescriberIdType = PrescriberIdType.Mandatory, AllowRequestRemoteAccess = false, NonPrescribingPrefix = "RX", EffectiveDate = BCVNMLicenseChange24June2026, CreatedTimeStamp = SEEDING_DATE, UpdatedTimeStamp = SEEDING_DATE},
new LicenseDetail { Id = 383, LicenseCode = 40, Prefix = "R9", Manual = true, Validate = true, LicensedToProvideCare = true, NamedInImReg = false, PrescriberIdType = PrescriberIdType.Optional, AllowRequestRemoteAccess = false, NonPrescribingPrefix = "RX", EffectiveDate = BCVNMLicenseChange24June2026, CreatedTimeStamp = SEEDING_DATE, UpdatedTimeStamp = SEEDING_DATE },
new LicenseDetail { Id = 384, LicenseCode = 46, Prefix = "Y9", Manual = true, Validate = true, LicensedToProvideCare = true, NamedInImReg = false, PrescriberIdType = PrescriberIdType.Mandatory, AllowRequestRemoteAccess = false, NonPrescribingPrefix = "YX", EffectiveDate = BCVNMLicenseChange24June2026, CreatedTimeStamp = SEEDING_DATE, UpdatedTimeStamp = SEEDING_DATE},

//CPSBC License changes under HPOA
new LicenseDetail { Id = 385, LicenseCode = 5, Prefix = "91", Manual = true, Validate = true, LicensedToProvideCare = true, NamedInImReg = true, PrescriberIdType = null, AllowRequestRemoteAccess = true, EffectiveDate = CPSBCLicenseChange25June2026, CreatedTimeStamp = SEEDING_DATE, UpdatedTimeStamp = SEEDING_DATE},
new LicenseDetail { Id = 386, LicenseCode = 6, Prefix = "91", Manual = true, Validate = true, LicensedToProvideCare = true, NamedInImReg = true, PrescriberIdType = null, AllowRequestRemoteAccess = true, EffectiveDate = CPSBCLicenseChange25June2026, CreatedTimeStamp = SEEDING_DATE, UpdatedTimeStamp = SEEDING_DATE},
new LicenseDetail { Id = 387, LicenseCode = 183, Prefix = "91", Manual = true, Validate = true, LicensedToProvideCare = true, NamedInImReg = true, PrescriberIdType = null, AllowRequestRemoteAccess = true, EffectiveDate = CPSBCLicenseChange25June2026, CreatedTimeStamp = SEEDING_DATE, UpdatedTimeStamp = SEEDING_DATE},
new LicenseDetail { Id = 388, LicenseCode = 184, Prefix = "91", Manual = true, Validate = true, LicensedToProvideCare = true, NamedInImReg = true, PrescriberIdType = null, AllowRequestRemoteAccess = true, EffectiveDate = CPSBCLicenseChange25June2026, CreatedTimeStamp = SEEDING_DATE, UpdatedTimeStamp = SEEDING_DATE},
new LicenseDetail { Id = 389, LicenseCode = 14, Prefix = "91", Manual = true, Validate = true, LicensedToProvideCare = true, NamedInImReg = true, PrescriberIdType = null, AllowRequestRemoteAccess = true, EffectiveDate = CPSBCLicenseChange25June2026, CreatedTimeStamp = SEEDING_DATE, UpdatedTimeStamp = SEEDING_DATE},
new LicenseDetail { Id = 390, LicenseCode = 15, Prefix = "91", Manual = true, Validate = true, LicensedToProvideCare = true, NamedInImReg = true, PrescriberIdType = null, AllowRequestRemoteAccess = true, EffectiveDate = CPSBCLicenseChange25June2026, CreatedTimeStamp = SEEDING_DATE, UpdatedTimeStamp = SEEDING_DATE},
};

}
Expand Down
22,027 changes: 22,027 additions & 0 deletions prime-dotnet-webapi/Migrations/20260625182754_CPSBCLicenseClassUpdate.Designer.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional

namespace Prime.Migrations
{
/// <inheritdoc />
public partial class CPSBCLicenseClassUpdate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "CollegeLicense",
keyColumns: new[] { "CollegeCode", "LicenseCode" },
keyValues: new object[] { 1, 8 },
column: "Discontinued",
value: true);

migrationBuilder.UpdateData(
table: "CollegeLicense",
keyColumns: new[] { "CollegeCode", "LicenseCode" },
keyValues: new object[] { 1, 9 },
column: "Discontinued",
value: true);

migrationBuilder.UpdateData(
table: "CollegeLicense",
keyColumns: new[] { "CollegeCode", "LicenseCode" },
keyValues: new object[] { 1, 13 },
column: "Discontinued",
value: true);

migrationBuilder.UpdateData(
table: "CollegeLicense",
keyColumns: new[] { "CollegeCode", "LicenseCode" },
keyValues: new object[] { 1, 179 },
column: "Discontinued",
value: true);

migrationBuilder.InsertData(
table: "LicenseDetail",
columns: new[] { "Id", "AllowRequestRemoteAccess", "CreatedTimeStamp", "CreatedUserId", "EffectiveDate", "LicenseCode", "LicensedToProvideCare", "Manual", "Multijurisdictional", "NamedInImReg", "NonPrescribingPrefix", "Prefix", "PrescriberIdType", "UpdatedTimeStamp", "UpdatedUserId", "Validate" },
values: new object[,]
{
{ 385, true, new DateTimeOffset(new DateTime(2019, 9, 16, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, -7, 0, 0, 0)), new Guid("00000000-0000-0000-0000-000000000000"), new DateTime(2026, 6, 25, 8, 0, 0, 0, DateTimeKind.Utc), 5, true, true, false, true, null, "91", null, new DateTimeOffset(new DateTime(2019, 9, 16, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, -7, 0, 0, 0)), new Guid("00000000-0000-0000-0000-000000000000"), true },

Check warning on line 49 in prime-dotnet-webapi/Migrations/20260625182754_CPSBCLicenseClassUpdate.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use 'Guid.NewGuid()' or 'Guid.Empty' or add arguments to this GUID instantiation.

See more on https://sonarcloud.io/project/issues?id=bcgov_moh-prime&issues=AZ8A6XbKCiIG18GZEL9J&open=AZ8A6XbKCiIG18GZEL9J&pullRequest=2883

Check warning on line 49 in prime-dotnet-webapi/Migrations/20260625182754_CPSBCLicenseClassUpdate.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use 'Guid.NewGuid()' or 'Guid.Empty' or add arguments to this GUID instantiation.

See more on https://sonarcloud.io/project/issues?id=bcgov_moh-prime&issues=AZ8A6XbKCiIG18GZEL9I&open=AZ8A6XbKCiIG18GZEL9I&pullRequest=2883
{ 386, true, new DateTimeOffset(new DateTime(2019, 9, 16, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, -7, 0, 0, 0)), new Guid("00000000-0000-0000-0000-000000000000"), new DateTime(2026, 6, 25, 8, 0, 0, 0, DateTimeKind.Utc), 6, true, true, false, true, null, "91", null, new DateTimeOffset(new DateTime(2019, 9, 16, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, -7, 0, 0, 0)), new Guid("00000000-0000-0000-0000-000000000000"), true },

Check warning on line 50 in prime-dotnet-webapi/Migrations/20260625182754_CPSBCLicenseClassUpdate.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use 'Guid.NewGuid()' or 'Guid.Empty' or add arguments to this GUID instantiation.

See more on https://sonarcloud.io/project/issues?id=bcgov_moh-prime&issues=AZ8A6XbKCiIG18GZEL9L&open=AZ8A6XbKCiIG18GZEL9L&pullRequest=2883

Check warning on line 50 in prime-dotnet-webapi/Migrations/20260625182754_CPSBCLicenseClassUpdate.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use 'Guid.NewGuid()' or 'Guid.Empty' or add arguments to this GUID instantiation.

See more on https://sonarcloud.io/project/issues?id=bcgov_moh-prime&issues=AZ8A6XbKCiIG18GZEL9K&open=AZ8A6XbKCiIG18GZEL9K&pullRequest=2883
{ 389, true, new DateTimeOffset(new DateTime(2019, 9, 16, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, -7, 0, 0, 0)), new Guid("00000000-0000-0000-0000-000000000000"), new DateTime(2026, 6, 25, 8, 0, 0, 0, DateTimeKind.Utc), 14, true, true, false, true, null, "91", null, new DateTimeOffset(new DateTime(2019, 9, 16, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, -7, 0, 0, 0)), new Guid("00000000-0000-0000-0000-000000000000"), true },

Check warning on line 51 in prime-dotnet-webapi/Migrations/20260625182754_CPSBCLicenseClassUpdate.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use 'Guid.NewGuid()' or 'Guid.Empty' or add arguments to this GUID instantiation.

See more on https://sonarcloud.io/project/issues?id=bcgov_moh-prime&issues=AZ8A6XbKCiIG18GZEL9M&open=AZ8A6XbKCiIG18GZEL9M&pullRequest=2883

Check warning on line 51 in prime-dotnet-webapi/Migrations/20260625182754_CPSBCLicenseClassUpdate.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use 'Guid.NewGuid()' or 'Guid.Empty' or add arguments to this GUID instantiation.

See more on https://sonarcloud.io/project/issues?id=bcgov_moh-prime&issues=AZ8A6XbKCiIG18GZEL9N&open=AZ8A6XbKCiIG18GZEL9N&pullRequest=2883
{ 390, true, new DateTimeOffset(new DateTime(2019, 9, 16, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, -7, 0, 0, 0)), new Guid("00000000-0000-0000-0000-000000000000"), new DateTime(2026, 6, 25, 8, 0, 0, 0, DateTimeKind.Utc), 15, true, true, false, true, null, "91", null, new DateTimeOffset(new DateTime(2019, 9, 16, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, -7, 0, 0, 0)), new Guid("00000000-0000-0000-0000-000000000000"), true }

Check warning on line 52 in prime-dotnet-webapi/Migrations/20260625182754_CPSBCLicenseClassUpdate.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use 'Guid.NewGuid()' or 'Guid.Empty' or add arguments to this GUID instantiation.

See more on https://sonarcloud.io/project/issues?id=bcgov_moh-prime&issues=AZ8A6XbKCiIG18GZEL9O&open=AZ8A6XbKCiIG18GZEL9O&pullRequest=2883

Check warning on line 52 in prime-dotnet-webapi/Migrations/20260625182754_CPSBCLicenseClassUpdate.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use 'Guid.NewGuid()' or 'Guid.Empty' or add arguments to this GUID instantiation.

See more on https://sonarcloud.io/project/issues?id=bcgov_moh-prime&issues=AZ8A6XbKCiIG18GZEL9P&open=AZ8A6XbKCiIG18GZEL9P&pullRequest=2883
});

migrationBuilder.InsertData(
table: "LicenseLookup",
columns: new[] { "Code", "Name", "Weight" },
values: new object[,]
{
{ 183, "Restricted - Family", 35 },
{ 184, "Restricted - Specialty", 36 }
});

migrationBuilder.InsertData(
table: "CollegeLicense",
columns: new[] { "CollegeCode", "LicenseCode", "CollegeLicenseGroupingCode", "Discontinued" },
values: new object[,]
{
{ 1, 183, null, false },
{ 1, 184, null, false }
});

migrationBuilder.InsertData(
table: "LicenseDetail",
columns: new[] { "Id", "AllowRequestRemoteAccess", "CreatedTimeStamp", "CreatedUserId", "EffectiveDate", "LicenseCode", "LicensedToProvideCare", "Manual", "Multijurisdictional", "NamedInImReg", "NonPrescribingPrefix", "Prefix", "PrescriberIdType", "UpdatedTimeStamp", "UpdatedUserId", "Validate" },
values: new object[,]
{
{ 387, true, new DateTimeOffset(new DateTime(2019, 9, 16, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, -7, 0, 0, 0)), new Guid("00000000-0000-0000-0000-000000000000"), new DateTime(2026, 6, 25, 8, 0, 0, 0, DateTimeKind.Utc), 183, true, true, false, true, null, "91", null, new DateTimeOffset(new DateTime(2019, 9, 16, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, -7, 0, 0, 0)), new Guid("00000000-0000-0000-0000-000000000000"), true },

Check warning on line 78 in prime-dotnet-webapi/Migrations/20260625182754_CPSBCLicenseClassUpdate.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use 'Guid.NewGuid()' or 'Guid.Empty' or add arguments to this GUID instantiation.

See more on https://sonarcloud.io/project/issues?id=bcgov_moh-prime&issues=AZ8A6XbKCiIG18GZEL9R&open=AZ8A6XbKCiIG18GZEL9R&pullRequest=2883

Check warning on line 78 in prime-dotnet-webapi/Migrations/20260625182754_CPSBCLicenseClassUpdate.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use 'Guid.NewGuid()' or 'Guid.Empty' or add arguments to this GUID instantiation.

See more on https://sonarcloud.io/project/issues?id=bcgov_moh-prime&issues=AZ8A6XbKCiIG18GZEL9Q&open=AZ8A6XbKCiIG18GZEL9Q&pullRequest=2883
{ 388, true, new DateTimeOffset(new DateTime(2019, 9, 16, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, -7, 0, 0, 0)), new Guid("00000000-0000-0000-0000-000000000000"), new DateTime(2026, 6, 25, 8, 0, 0, 0, DateTimeKind.Utc), 184, true, true, false, true, null, "91", null, new DateTimeOffset(new DateTime(2019, 9, 16, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, -7, 0, 0, 0)), new Guid("00000000-0000-0000-0000-000000000000"), true }

Check warning on line 79 in prime-dotnet-webapi/Migrations/20260625182754_CPSBCLicenseClassUpdate.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use 'Guid.NewGuid()' or 'Guid.Empty' or add arguments to this GUID instantiation.

See more on https://sonarcloud.io/project/issues?id=bcgov_moh-prime&issues=AZ8A6XbKCiIG18GZEL9S&open=AZ8A6XbKCiIG18GZEL9S&pullRequest=2883

Check warning on line 79 in prime-dotnet-webapi/Migrations/20260625182754_CPSBCLicenseClassUpdate.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use 'Guid.NewGuid()' or 'Guid.Empty' or add arguments to this GUID instantiation.

See more on https://sonarcloud.io/project/issues?id=bcgov_moh-prime&issues=AZ8A6XbKCiIG18GZEL9T&open=AZ8A6XbKCiIG18GZEL9T&pullRequest=2883
});
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "CollegeLicense",
keyColumns: new[] { "CollegeCode", "LicenseCode" },
keyValues: new object[] { 1, 183 });

migrationBuilder.DeleteData(
table: "CollegeLicense",
keyColumns: new[] { "CollegeCode", "LicenseCode" },
keyValues: new object[] { 1, 184 });

migrationBuilder.DeleteData(
table: "LicenseDetail",
keyColumn: "Id",
keyValue: 385);

migrationBuilder.DeleteData(
table: "LicenseDetail",
keyColumn: "Id",
keyValue: 386);

migrationBuilder.DeleteData(
table: "LicenseDetail",
keyColumn: "Id",
keyValue: 387);

migrationBuilder.DeleteData(
table: "LicenseDetail",
keyColumn: "Id",
keyValue: 388);

migrationBuilder.DeleteData(
table: "LicenseDetail",
keyColumn: "Id",
keyValue: 389);

migrationBuilder.DeleteData(
table: "LicenseDetail",
keyColumn: "Id",
keyValue: 390);

migrationBuilder.DeleteData(
table: "LicenseLookup",
keyColumn: "Code",
keyValue: 183);

migrationBuilder.DeleteData(
table: "LicenseLookup",
keyColumn: "Code",
keyValue: 184);

migrationBuilder.UpdateData(
table: "CollegeLicense",
keyColumns: new[] { "CollegeCode", "LicenseCode" },
keyValues: new object[] { 1, 8 },
column: "Discontinued",
value: false);

migrationBuilder.UpdateData(
table: "CollegeLicense",
keyColumns: new[] { "CollegeCode", "LicenseCode" },
keyValues: new object[] { 1, 9 },
column: "Discontinued",
value: false);

migrationBuilder.UpdateData(
table: "CollegeLicense",
keyColumns: new[] { "CollegeCode", "LicenseCode" },
keyValues: new object[] { 1, 13 },
column: "Discontinued",
value: false);

migrationBuilder.UpdateData(
table: "CollegeLicense",
keyColumns: new[] { "CollegeCode", "LicenseCode" },
keyValues: new object[] { 1, 179 },
column: "Discontinued",
value: false);
}
}
}
Loading
Loading