generateRequestExportWithHttpInfo method

Future<Response> generateRequestExportWithHttpInfo(
  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

Note: This method returns the HTTP Response.

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<Response> generateRequestExportWithHttpInfo(String patientId, String id, int date, String language, String recipientNihii, String recipientSsin, String recipientFirstName, String recipientLastName, String mimeType, MultipartFile body,) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/be_kmehr/request/{patientId}/export/{id}'.replaceAll('{patientId}', patientId).replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody = body;

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

    queryParams.addAll(_queryParams('', 'date', date));
    queryParams.addAll(_queryParams('', 'language', language));
    queryParams.addAll(_queryParams('', 'recipientNihii', recipientNihii));
    queryParams.addAll(_queryParams('', 'recipientSsin', recipientSsin));
    queryParams.addAll(_queryParams('', 'recipientFirstName', recipientFirstName));
    queryParams.addAll(_queryParams('', 'recipientLastName', recipientLastName));
    queryParams.addAll(_queryParams('', 'mimeType', mimeType));

  const authNames = <String>[r'basicSchema'];
  const contentTypes = <String>['application/octet-stream'];


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