deleteHealthcareProfessional method

  1. @override
Future<String?> deleteHealthcareProfessional(
  1. String healthcareProfessionalId
)
override

Deletes an existing healthcare professional.

Deletes the healthcare professional identified by the provided unique hcpId.

Parameters:

  • String hcpId (required): The UUID that uniquely identifies the healthcare professional to be deleted.

Implementation

@override
Future<String?> deleteHealthcareProfessional(String healthcareProfessionalId) async =>
    (await this.deleteHealthcareProfessionals([healthcareProfessionalId]))?.first
      ?? (throw StateError("Could not delete healthcare professional ${healthcareProfessionalId}"));