findHealthcarePartiesBySpecialityAndPostCodeWithHttpInfo method

Future<Response> findHealthcarePartiesBySpecialityAndPostCodeWithHttpInfo(
  1. String type,
  2. String spec,
  3. String firstCode,
  4. String lastCode, {
  5. int? limit,
})

Find healthcare parties by name with(out) pagination

Returns a list of healthcare parties.

Note: This method returns the HTTP Response.

Parameters:

  • String type (required): The type of the HCP (persphysician)

  • String spec (required): The speciality of the HCP

  • String firstCode (required): The first postCode for the HCP

  • String lastCode (required): The last postCode for the HCP

  • int limit: Number of rows

Implementation

Future<Response> findHealthcarePartiesBySpecialityAndPostCodeWithHttpInfo(String type, String spec, String firstCode, String lastCode, { int? limit, }) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/hcparty/bySpecialityAndPostCode/{type}/{spec}/{firstCode}/to/{lastCode}'
      .replaceAll('{type}', type)
      .replaceAll('{spec}', spec)
      .replaceAll('{firstCode}', firstCode)
      .replaceAll('{lastCode}', lastCode);

  // ignore: prefer_final_locals
  Object? postBody;

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

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