checkIfSMFPatientsExistsWithHttpInfo method
Check whether patients in SMF already exists in DB
Note: This method returns the HTTP Response
.
Parameters:
-
String documentId (required):
-
String documentKey:
-
String patientId:
-
String language:
-
Map<String, List<ImportMapping>> requestBody:
Implementation
Future<Response> checkIfSMFPatientsExistsWithHttpInfo(String documentId, { String? documentKey, String? patientId, String? language, Map<String, List<ImportMapping>>? requestBody, }) async {
// ignore: prefer_const_declarations
final path = r'/rest/v1/be_kmehr/smf/{documentId}/checkIfSMFPatientsExists'.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));
}
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,
);
}