rawFindDeletedPatientsWithHttpInfo method

Future<Response> rawFindDeletedPatientsWithHttpInfo({
  1. int? startDate,
  2. int? endDate,
  3. bool? desc,
  4. String? startDocumentId,
  5. int? limit,
})

Find deleted patients

Returns a list of deleted patients, within the specified time period, if any.

Note: This method returns the HTTP Response.

Parameters:

  • int startDate: Filter deletions after this date (unix epoch), included

  • int endDate: Filter deletions before this date (unix epoch), included

  • bool desc: Descending

  • String startDocumentId: A patient document ID

  • int limit: Number of rows

Implementation

Future<Response> rawFindDeletedPatientsWithHttpInfo({ int? startDate, int? endDate, bool? desc, String? startDocumentId, int? limit, }) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/patient/deleted/byDate';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (startDate != null) {
    queryParams.addAll(_queryParams('', 'startDate', startDate));
  }
  if (endDate != null) {
    queryParams.addAll(_queryParams('', 'endDate', endDate));
  }
  if (desc != null) {
    queryParams.addAll(_queryParams('', 'desc', desc));
  }
  if (startDocumentId != null) {
    queryParams.addAll(_queryParams('', 'startDocumentId', startDocumentId));
  }
  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }

  const authNames = <String>[r'basicSchema'];
  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    authNames,
  );
}