Description Usage Arguments Value Examples
getExposures()
returns a user-defined data from the CCM Exposure object.
The Exposure object maps to Exposures on the client-side.
1 2 3 4 5 6 7 | getExposures(
type = NULL,
from = "1990-01-01",
to = as.character(Sys.time()),
columns = "Id",
healthUnit = NULL
)
|
type |
Character vector or scalar. Names the exposure type used to filter the query. Defaults to all exposure types. One or more of:
|
from |
Character scalar. Identifies the start of the date range to include in the query. Defaults to the origin date of CCM. |
to |
Character scalar. Identifies the end of the date range
to include in the query. Defaults to |
columns |
Character scalar or character vector. Names the columns to
return from the exposure object. Defaults to |
healthUnit |
Character vector or scalar. Names the Public Health Unit
used to filter the query. |
If the query succeeds, a tibble
containing columns
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
Get all community exposures for Durham Region
exposures <- getExposures(
type = 'Community',
healthUnit = 'Durham Region Health Department'
)
Specify the data to return. This can be field names or labels
N.B. Names are case sensitive!
exposures <- getExposures(
columns = c("Id", "Exposure Name", "CCM_Exposure_Setting__c")
)
Limit the data to a specific time period.
exposures <- getExposures(
from = "2020-12-12",
to = "2020-12-17"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.