filterHealthcareProfessionalsBy method

  1. @override
Future<PaginatedListHealthcareProfessional?> filterHealthcareProfessionalsBy(
  1. Filter<HealthcareProfessional> filter, {
  2. String? nextHcpId,
  3. 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:

  • Filter filter (required): The Filter object that describes which condition(s) the elements whose the ids should be returned must fulfill

  • String nextHcpId: The id of the first Healthcare professional in the next page

  • int limit: The number of healthcare professionals to return in the queried page

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();
}