modifyReferral method
Future<DecryptedPatientDto?>
modifyReferral(
- UserDto user,
- String patientId,
- String referralId,
- int? start,
- int? end,
- CryptoConfig<
DecryptedPatientDto, PatientDto> config,
Implementation
Future<DecryptedPatientDto?> modifyReferral(UserDto user, String patientId, String referralId, int? start, int? end, CryptoConfig<DecryptedPatientDto, PatientDto> config) async {
var patient = await this.rawModifyPatientReferral(patientId, referralId, start: start, end: end);
return patient != null ? await config.decryptPatient(user.dataOwnerId()!, patient) : null;
}