exportKmehrReportWithHttpInfo method
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,
);
}