Skip to content

Commit

Permalink
Expand PRP enrolment card to allow Pharmacists. (#629)
Browse files Browse the repository at this point in the history
Expand PRP enrolment card to allow Pharmacists and BC Services Card
  • Loading branch information
kakarlavinodkumar authored Nov 21, 2024
1 parent 9f9db55 commit 528b616
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public async Task<IActionResult> CreatePrescriptionRefillEformsEnrolment([FromSe
.ToActionResult();

[HttpPost("provider-reporting-portal")]
[Authorize(Policy = Policies.BCProviderAuthentication)]
[Authorize(Policy = Policies.HighAssuranceIdentityProvider)]
[ProducesResponseType(StatusCodes.Status204NoContent)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
public async Task<IActionResult> CreateProviderReportingPortalEnrolment([FromServices] ICommandHandler<ProviderReportingPortal.Command, IDomainResult> handler,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Pidp.Features.AccessRequests;

public class ProviderReportingPortal
{
public static IdentifierType[] AllowedIdentifierTypes => [IdentifierType.PhysiciansAndSurgeons];
public static IdentifierType[] AllowedIdentifierTypes => [IdentifierType.PhysiciansAndSurgeons, IdentifierType.Pharmacist];

public class Command : ICommand<IDomainResult>
{
Expand Down
2 changes: 1 addition & 1 deletion backend/webapi/Features/Parties/ProfileStatus.Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ protected override StatusCode Compute(ProfileData profile)
{
return profile switch
{
{ UserIsBCProvider: false } or { HasPrpAuthorizedLicence: false } => StatusCode.Locked,
{ HasBCProviderCredential: false } => StatusCode.Locked,
_ when profile.HasEnrolment(AccessTypeCode.ProviderReportingPortal) => StatusCode.Complete,
_ when profile.PartyPlrStanding
.With(ProviderReportingPortal.AllowedIdentifierTypes)
Expand Down
2 changes: 1 addition & 1 deletion backend/webapi/Models/PrpAuthorizedLicence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Pidp.Models;
using System.ComponentModel.DataAnnotations.Schema;

/// <summary>
/// College Licence Numbers from the College of Physicians and Surgeons that have been pre-authorized to use the Provider Reporting Portal enrolment.
/// College Licence Numbers from the College of Pharmacists and Physicians and Surgeons that have been pre-authorized to use the Provider Reporting Portal enrolment.
/// </summary>
[Table(nameof(PrpAuthorizedLicence))]
public class PrpAuthorizedLicence
Expand Down

0 comments on commit 528b616

Please sign in to comment.