You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/endpoints.R
+80-31
Original file line number
Diff line number
Diff line change
@@ -425,18 +425,26 @@ covid_hosp_facility <-
425
425
)
426
426
}
427
427
428
-
#' fetch COVID hospitalization data
428
+
#' Fetch COVID Hospitalization Data by State
429
429
#'
430
-
#' API docs: https://cmu-delphi.github.io/delphi-epidata/api/covid_hosp.html
430
+
#' Obtains the COVID-19 reported patient impact and hospital capacity data by state. This dataset is provided by the US Department of Health & Human Services via healthdata.gov.
431
+
#'
432
+
#' @details Starting October 1, 2022, some facilities are only required to report annually.
#' @param states A two letter character string state abbreviation.
440
+
#' @param dates Takes in the form epirange(startdate,enddate), where startdate and enddate are of the form YYYYMMDD (can be passed as string or numeric).
441
+
#' @param issues An optional parameter that takes the form YYYYMMDD. If issues is not specified, then the most recent issue is used by default.
438
442
#' @return an instance of epidata_call
439
443
#'
444
+
#' @references API Documentation: <https://cmu-delphi.github.io/delphi-epidata/api/covid_hosp.html>.
445
+
#'
446
+
#' See also the official description and data dictionary at <healthdata.gov> for more information.
#' Fetch a summary of metadata for all sources and signals that are available in the API, along with basic summary statistics such as the dates they are available, the geographic levels at which they are reported, and etc. For more details, see documentation at <https://cmu-delphi.github.io/delphi-epidata/api/covidcast_meta.html>.
580
+
#' Fetch a summary of metadata for all sources and signals that are available in the API, along with basic summary statistics such as the dates they are available, the geographic levels at which they are reported, and etc.
581
+
#'
582
+
#' @references API Documentation: <https://cmu-delphi.github.io/delphi-epidata/api/covidcast_meta.html>.
#' @param epiweeks Takes in the form epirange(startdate,enddate), where startdate and enddate are of the form YYYYMMDD (can be passed as string or numeric).
820
829
#' @param issues optionally specify the exact issues to fetch
821
830
#' @param lag optionally specify the issue lag
822
831
#' @return an instance of epidata_call
823
832
#'
833
+
#' @references API Documentation: <https://cmu-delphi.github.io/delphi-epidata/api/ecdc_ili.html>.
#' API docs: https://cmu-delphi.github.io/delphi-epidata/api/flusurv.html
868
+
#' Obtain information on flu hospitalization rates from the Center of Disease Control.
869
+
#'
870
+
#' @details The list of location argument can be found in <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/flusurv_locations.txt>.
#' @param locations A character string indicating location.
876
+
#' @param epiweeks Takes in the form epirange(startdate,enddate), where startdate and enddate are of the form YYYYMMDD (can be passed as string or numeric).
864
877
#' @param issues optionally specify the exact issues to fetch
865
878
#' @param lag optionally specify the issue lag
866
879
#' @return an instance of epidata_call
867
880
#'
881
+
#' @references API Documentation: <https://cmu-delphi.github.io/delphi-epidata/api/flusurv.html>. See also <https://gis.cdc.gov/GRASP/Fluview/FluHospRates.html>.
#' Obtains information on outpatient inluenza-like-illness (ILI) from Delphi's epidemiological data
992
+
#'
993
+
#' @details The full list of location inputs can be accsssed at <https://github.com/cmu-delphi/delphi-epidata/blob/main/src/acquisition/fluview/fluview_locations.py>.
#' @param locations a character string that indicates a location such as national, HHS region, census division, most states and territories, and etc.
999
+
#' @param Takes in the form epirange(startdate,enddate), where startdate and enddate are of the form YYYYMMDD (can be passed as string or numeric).
1000
+
#' @return an instance of epidata_call
1001
+
#'
1002
+
#' @references API Documentation: <https://cmu-delphi.github.io/delphi-epidata/api/nowcast.html>.
1003
+
1004
+
976
1005
#' fetch fluview data
977
1006
#'
978
-
#' API docs: https://cmu-delphi.github.io/delphi-epidata/api/fluview.html
1007
+
#' Obtains information on outpatient inluenza-like-illness (ILI) from U.S. Outpatient Influenza-like Illness Surveillance Network (ILINet).
1008
+
#'
1009
+
#' @details The full list of location inputs can be accsssed at <https://github.com/cmu-delphi/delphi-epidata/blob/main/src/acquisition/fluview/fluview_locations.py>.
#' @param issues optionally specify the exact issues to fetch
1014
+
#' @param regions a character string that indicates a location such as national, HHS region, census division, most states and territories, and etc.
1015
+
#' @param epiweeks Takes in the form epirange(startdate,enddate), where startdate and enddate are of the form YYYYMMDD (can be passed as string or numeric).
1016
+
#' @param issues an optional parameter that takes the form YYYYMMDD specifying the exact issues to fetch.
986
1017
#' @param lag optionally specify the issue lag
987
1018
#' @param auth optional authentication
988
1019
#' @return an instance of epidata_call
989
1020
#'
1021
+
#' @references API Documentation: <https://cmu-delphi.github.io/delphi-epidata/api/fluview.html>. For more information on ILINet, see <https://gis.cdc.gov/grasp/fluview/fluportaldashboard.html>.
1022
+
#'
990
1023
#' @export
991
1024
fluview<-
992
1025
function(regions,
@@ -1034,13 +1067,18 @@ fluview <-
1034
1067
1035
1068
#' fetch Google Flu Trends data
1036
1069
#'
1037
-
#' API docs: https://cmu-delphi.github.io/delphi-epidata/api/gft.html
1070
+
#' Obtains estimates of inluenza activity based on volume of certain search queries from Google.
1071
+
#'
1072
+
#' @details Google has discontinues Flu Trends, and this is now a static endpoint. Possibile input for locations can be found in <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/regions.txt>, <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/states.txt>, and <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/cities.txt>.
#' @param locations A character string that specifies a location to be fetched.
1078
+
#' @param epiweeks Takes in the form epirange(startdate,enddate), where startdate and enddate are of the form YYYYMMDD (can be passed as string or numeric).
1079
+
#'
1080
+
#' @references API Documentation: <https://cmu-delphi.github.io/delphi-epidata/api/gft.html>
1081
+
#'
1044
1082
#' @return an instance of epidata_call
1045
1083
#'
1046
1084
#' @export
@@ -1180,15 +1218,20 @@ meta <- function() {
1180
1218
1181
1219
#' fetch NIDSS dengue data
1182
1220
#'
1183
-
#' API docs: https://cmu-delphi.github.io/delphi-epidata/api/nidss_dengue.html
1221
+
#' Obtains counts of confirmed dengue cases in Taiwan from Taiwan National Infectious Disease Statistical System.
1222
+
#'
1223
+
#' @details Possible location inputs can be found in <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/nidss_regions.txt> and <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/nidss_locations.txt>.
#' @param locations A character string that indicates region of interest or location of interest. Possible inputs include but are not limited to (1) nationwide, (2) central, (3) eastern, (4) kaoping, (5) northern, (6) southern, and (7) taipei.
1229
+
#' @param epiweeks Takes in the form epirange(startdate,enddate), where startdate and enddate are of the form YYYYMMDD (can be passed as string or numeric).
1230
+
#'
1190
1231
#' @return an instance of epidata_call
1191
1232
#'
1233
+
#' @references API Documentation: <https://cmu-delphi.github.io/delphi-epidata/api/nidss_dengue.html>
#' @param epiweeks Takes in the form epirange(startdate,enddate), where startdate and enddate are of the form YYYYMMDD (can be passed as string or numeric).
1217
1260
#' @param issues optional issues
1218
1261
#' @param lag optional lag
1219
1262
#' @return an instance of epidata_call
1220
1263
#'
1264
+
#' @references API Documentation: <https://cmu-delphi.github.io/delphi-epidata/api/nidss_flu.html>
#' Obtains information on outpatient inluenza-like-illness (ILI) from Delphi's epidemiological data
1295
1342
#'
1296
-
#' API docs: https://cmu-delphi.github.io/delphi-epidata/api/nowcast.html
1343
+
#' @details The full list of location inputs can be accsssed at <https://github.com/cmu-delphi/delphi-epidata/blob/main/src/acquisition/fluview/fluview_locations.py>.
0 commit comments