listDeletedByName method

Future<List<DecryptedPatientDto>> listDeletedByName(
  1. UserDto user,
  2. String? firstName,
  3. String? lastName,
  4. CryptoConfig<DecryptedPatientDto, PatientDto> config,
)

Implementation

Future<List<DecryptedPatientDto>> listDeletedByName(UserDto user, String? firstName, String? lastName, CryptoConfig<DecryptedPatientDto, PatientDto> config) async {
  return Future.wait((await this.rawListDeletedPatientsByName(firstName: firstName, lastName: lastName))!.map((it) => config.decryptPatient(user.dataOwnerId()!, it)));
}