rawModifyPatientReferralWithHttpInfo method

Future<Response> rawModifyPatientReferralWithHttpInfo(
  1. String patientId,
  2. String referralId, {
  3. int? start,
  4. int? end,
})

Set a patient referral doctor

Note: This method returns the HTTP Response.

Parameters:

  • String patientId (required):

  • String referralId (required): The referal id. Accepts 'none' for referral removal.

  • int start: Optional value for start of referral

  • int end: Optional value for end of referral

Implementation

Future<Response> rawModifyPatientReferralWithHttpInfo(String patientId, String referralId, { int? start, int? end, }) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/patient/{patientId}/referral/{referralId}'.replaceAll('{patientId}', patientId).replaceAll('{referralId}', referralId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (start != null) {
    queryParams.addAll(_queryParams('', 'start', start));
  }
  if (end != null) {
    queryParams.addAll(_queryParams('', 'end', end));
  }

  const authNames = <String>[r'basicSchema'];
  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'PUT',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    authNames,
  );
}