generateRequestExport method

Future<MultipartFile?> generateRequestExport(
  1. String patientId,
  2. String id,
  3. int date,
  4. String language,
  5. String recipientNihii,
  6. String recipientSsin,
  7. String recipientFirstName,
  8. String recipientLastName,
  9. String mimeType,
  10. MultipartFile body,
)

Get Kmehr request

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?> generateRequestExport(String patientId, String id, int date, String language, String recipientNihii, String recipientSsin, String recipientFirstName, String recipientLastName, String mimeType, MultipartFile body,) async {
  final response = await generateRequestExportWithHttpInfo(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;
}