rawModifyPatientReferralWithHttpInfo method
Set a patient referral doctor
Note: This method returns the HTTP Response
.
Parameters:
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,
);
}