filterHealthcareProfessionalsBy method
Future<PaginatedListHealthcareProfessional?>
filterHealthcareProfessionalsBy(
- Filter<
HealthcareProfessional> filter, { - String? nextHcpId,
- int? limit,
override
Loads healthcare professionals from the database by filtering them using the provided Filter.
Filters are complex selectors that are built by combining basic building blocks. Examples of filters available for Healthcare professionals are AllHealthcareProfessionalsFilter and HealthcarProfessionalsByIdsFilter. This method returns a paginated list of healthcare professionals (with a cursor that lets you query the following items).
Parameters:
Implementation
@override
Future<PaginatedListHealthcareProfessional?> filterHealthcareProfessionalsBy(Filter<HealthcareProfessional> filter, {String? nextHcpId, int? limit}) async {
return (await api.baseHealthcarePartyApi.filterHealthPartiesBy(base_api.FilterChain<base_api.HealthcarePartyDto>(filter.toAbstractFilterDto()), startDocumentId: nextHcpId, limit: limit))
?.toPaginatedListHealthcareProfessional();
}