deleteHealthcareProfessional method
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}"));