generateMedicationSchemeExportWithHttpInfo method
Future<Response>
generateMedicationSchemeExportWithHttpInfo(
- String patientId,
- String language,
- String recipientSafe,
- int version,
- MedicationSchemeExportInfoDto medicationSchemeExportInfoDto,
Get Medicationscheme export
Note: This method returns the HTTP Response
.
Parameters:
-
String patientId (required):
-
String language (required):
-
String recipientSafe (required):
-
int version (required):
-
MedicationSchemeExportInfoDto medicationSchemeExportInfoDto (required):
Implementation
Future<Response> generateMedicationSchemeExportWithHttpInfo(String patientId, String language, String recipientSafe, int version, MedicationSchemeExportInfoDto medicationSchemeExportInfoDto,) async {
// ignore: prefer_const_declarations
final path = r'/rest/v1/be_kmehr/medicationscheme/{patientId}/export'.replaceAll('{patientId}', patientId);
// ignore: prefer_final_locals
Object? postBody = medicationSchemeExportInfoDto;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'language', language));
queryParams.addAll(_queryParams('', 'recipientSafe', recipientSafe));
queryParams.addAll(_queryParams('', 'version', version));
const authNames = <String>[r'basicSchema'];
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
authNames,
);
}