fhir_current_request: Return FHIR search request used in last call to...

View source: R/download_resources.R

fhir_current_requestR Documentation

Return FHIR search request used in last call to fhir_search() or fhir_url()

Description

Return FHIR search request used in last call to fhir_search() or fhir_url()

Usage

fhir_current_request()

Value

An object of class fhir_url()

Examples


#the try({}, silent = TRUE) statement is only there to catch errors when the server is down
#you can skip it when the server is reachable

try({


request <- fhir_url(url = "https://server.fire.ly", resource = "Patient")
fhir_current_request()

fhir_search("https://server.fire.ly/Medication", max_bundles = 1)
fhir_current_request()


},silent = TRUE)





POLAR-fhiR/fhircrackr documentation built on Dec. 24, 2024, 3:06 a.m.