modifyReferral method

Future<DecryptedPatientDto?> modifyReferral(
  1. UserDto user,
  2. String patientId,
  3. String referralId,
  4. int? start,
  5. int? end,
  6. 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;
}