generateContactreportExport method
Get Kmehr contactreport
Parameters:
-
String patientId (required):
-
String id (required):
-
int date (required):
-
String language (required):
-
String recipientNihii (required):
-
String recipientSsin (required):
-
String recipientFirstName (required):
-
String recipientLastName (required):
-
String mimeType (required):
-
MultipartFile
body (required):
Implementation
Future<MultipartFile?> generateContactreportExport(String patientId, String id, int date, String language, String recipientNihii, String recipientSsin, String recipientFirstName, String recipientLastName, String mimeType, MultipartFile body,) async {
final response = await generateContactreportExportWithHttpInfo(patientId, id, date, language, recipientNihii, recipientSsin, recipientFirstName, recipientLastName, mimeType, body,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException.withRequestId(response.statusCode, await _decodeBodyBytes(response), response.headers["x-request-id"], response.request?.url.toString());
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MultipartFile',) as MultipartFile;
}
return null;
}