mergeInto method
Future<DecryptedPatientDto?>
mergeInto(
- UserDto user,
- String toId,
- String fromIds,
- CryptoConfig<
DecryptedPatientDto, PatientDto> config,
Implementation
Future<DecryptedPatientDto?> mergeInto(UserDto user, String toId, String fromIds, CryptoConfig<DecryptedPatientDto, PatientDto> config) async {
var patient = await this.rawMergeInto(toId, fromIds);
return patient != null ? await config.decryptPatient(user.dataOwnerId()!, patient) : null;
}