Description Usage Arguments Value Examples
View source: R/hospital_data_availability.R
This function takes a hospital id and returns the data availability in said hospital. Makes use of the hospital metadata, either by resorting to the wrapper get_hospital_metadata
or when supplied by the user,
1 2 | hospital_data_availability(hospital_id = NULL,
hospital_metadata = NULL)
|
hospital_id |
Integer containing the hospital id, get it through |
hospital_metadata |
a "data.frame" or NULL (default). If NULL, the function makes an API call to extract the hospitals metadata
using |
Returns a tibble containing three variables: "data_type", character referring to the type of data provided by the endpoint, "availability", logical values providing information on the data availability in that hospital
1 2 3 | my_metadata <- get_hospital_metadata(output_format = "data_frame", request_headers = "")
hospital_data_availability(hospital_id = sample(my_metadata$id, 1), hospital_metada = my_metadata)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.