importSmfWithHttpInfo method
Import SMF into patient(s) using existing document
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> importSmfWithHttpInfo(String documentId, { String? documentKey, String? patientId, String? language, bool? dryRun, Map<String, List<ImportMapping>>? requestBody, }) async {
// ignore: prefer_const_declarations
final path = r'/rest/v1/be_kmehr/smf/{documentId}/import'.replaceAll('{documentId}', documentId);
// ignore: prefer_final_locals
Object? postBody = requestBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (documentKey != null) {
queryParams.addAll(_queryParams('', 'documentKey', documentKey));
}
if (patientId != null) {
queryParams.addAll(_queryParams('', 'patientId', patientId));
}
if (language != null) {
queryParams.addAll(_queryParams('', 'language', language));
}
if (dryRun != null) {
queryParams.addAll(_queryParams('', 'dryRun', dryRun));
}
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,
);
}