get_breast_cbe {cancerscreening} | R Documentation |
Retrieves Data for Clinical Breast Examinations (CBE) Conducted
Description
get_breast_cbe()
retrieves data for CBE conducted within a specified
period from the KHIS API server.
Usage
get_breast_cbe(
start_date,
end_date = NULL,
level = c("country", "county", "subcounty", "ward", "facility"),
organisations = NULL,
...
)
Arguments
start_date |
The start date to retrieve data. It is required and in the format |
end_date |
The ending date for data retrieval (default is the current date). |
level |
The desired data granularity: |
organisations |
A list of organization units ids to be filtered. |
... |
Other options that can be passed onto KHIS API. |
Value
A tibble containing data for CBE conducted with the following columns:
country - Name of the country country
county - Name of the county. Optional if the level is
county
,subcounty
,ward
orfacility
.subcounty - Name of the subcounty. Optional if the level is
subcounty
,ward
orfacility
.ward - Name of the ward. Optional if the level is
ward
orfacility
.facility - Name of the health facility. Optional if the level
facility
.period - The month and year of the data.
fiscal_year- The financial year of the report(July-June Cycle).
year - The calendar year of the report.
month - The month name of the report.
age_group - The age group category of the report (25-34, 35-39, 40-55, 56-74, or 75+).
category - Additional category if available.
element - The data element.
value - The number reported.
Examples
# Download data from February 2023 to current date
cbe_data <- get_breast_cbe(start_date = '2023-02-01')
cbe_data