exportKmehrReportWithHttpInfo method

Future<Response> exportKmehrReportWithHttpInfo(
  1. String fromHcpId,
  2. String toHcpId,
  3. String patId,
  4. int date,
  5. String ref,
  6. List<String> requestBody, {
  7. bool? mimeType,
})

Export data

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> exportKmehrReportWithHttpInfo(String fromHcpId, String toHcpId, String patId, int date, String ref, List<String> requestBody, { bool? mimeType, }) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/be_result_export/kmehrreport/{fromHcpId}/{toHcpId}/{patId}/{date}/{ref}'
      .replaceAll('{fromHcpId}', fromHcpId)
      .replaceAll('{toHcpId}', toHcpId)
      .replaceAll('{patId}', patId)
      .replaceAll('{date}', date.toString())
      .replaceAll('{ref}', ref);

  // ignore: prefer_final_locals
  Object? postBody = requestBody;

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

  if (mimeType != null) {
    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,
  );
}