getHealthcareProfessional method
Future<HealthcareProfessional?>
getHealthcareProfessional(
- String healthcareProfessionalId
override
Get a Healthcare professional by id.
Eachhealthcare professional is uniquely identified by ahealthcare professional id. Thehealthcare professional id is a UUID. This hcpId is the preferred method to retrieve one specific healthcare professional.
Parameters:
- String hcpId (required): The UUID that identifies thehealthcare professional uniquely
Implementation
@override
Future<HealthcareProfessional?> getHealthcareProfessional(String healthcareProfessionalId) async {
return HealthcarePartyDtoMapper(
await api.baseHealthcarePartyApi.getHealthcareParty(healthcareProfessionalId)
?? (throw ArgumentError("HealthcareProfessional with id $healthcareProfessionalId was not found")))
.toHealthcareProfessional();
}