result_completeness: Check that results are complete

View source: R/utils.R

result_completenessR Documentation

Check that results are complete

Description

Check whether the server request returned all the results, i.e. whether the total number of results is smaller or equal to the request limit parameter.

Usage

result_completeness(x, silent = FALSE)

Arguments

x

an 'httr' response() object produce by an api_operations function.

silent

whether to display warnings (default is 'FALSE')

Value

a boolean indicating whether the set of results obtained is the complete set of results on the server. If the REST request failed (eg: 404 error), the function returns NULL

See Also

Other utilities: result_flatten(), snomed_public_endpoint_list(), snomed_public_endpoint_suggest(), snomedizer_options, snomedizer_version_compatibility()

Examples

result_completeness(api_concepts(term = "pneumonia", limit = 10))

ramses-antibiotics/snomedizer documentation built on July 12, 2022, 12:42 a.m.