fuzzySearch method
Future<List<DecryptedPatientDto> >
fuzzySearch(
- UserDto user,
- String? firstName,
- String? lastName,
- int? dateOfBirth,
- CryptoConfig<
DecryptedPatientDto, PatientDto> config,
Implementation
Future<List<DecryptedPatientDto>> fuzzySearch(UserDto user, String? firstName, String? lastName, int? dateOfBirth, CryptoConfig<DecryptedPatientDto, PatientDto> config) async {
return Future.wait(
(await this.rawFuzzySearch(firstName: firstName, lastName: lastName, dateOfBirth: dateOfBirth))!.map((it) => config.decryptPatient(user.dataOwnerId()!, it)));
}