generateLabresultExportWithHttpInfo method
Get Kmehr labresult
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> generateLabresultExportWithHttpInfo(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/labresult/{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,
);
}