fhir_recent_http_error {fhircrackr}R Documentation

Return most recent http error from fhir_search()

Description

Whenever a call to fhir_search() produces any http error, the error information is saved internally until the next http error occurs (or the R session ends). The error information can be accessed with fhir_recent_http_error. If you want to log that information outside of your R session, set the argument log_errors of fhir_search() .

Usage

fhir_recent_http_error()

Value

A string containing the error message

See Also

fhir_search()

Examples

## Not run: 
fhir_search("https://server.fire.ly/Medicatio", max_bundles = 1)
cat(fhir_recent_http_error())

## End(Not run)


[Package fhircrackr version 2.2.0 Index]