generateMedicationSchemeExportWithHttpInfo method

Future<Response> generateMedicationSchemeExportWithHttpInfo(
  1. String patientId,
  2. String language,
  3. String recipientSafe,
  4. int version,
  5. MedicationSchemeExportInfoDto medicationSchemeExportInfoDto,
)

Get Medicationscheme export

Note: This method returns the HTTP Response.

Parameters:

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