Skip to contents

Create a Query Object

Usage

query(...)

Arguments

...

<dynamic-dots> Named conditions where the names are API fields.

Value

S7 <class_query> object.

Examples

query(
  first_name  = starts_with("And"),
  middle_name = NULL,
  last_name   = contains("J"),
  state       = any_of(c("CA", "GA", "NY")),
  state_own   = c("GA", "MD"),
  npi         = npi_ex$k,
  ccn         = "01256",
  rate        = between(0.45, 0.67),
  year        = 2014:2025)
#> <class_query>
#>  @ input :List of 8
#>  .. $ first_name: language starts_with("And")
#>  .. $ last_name : language contains("J")
#>  .. $ state     : language any_of(c("CA", "GA", "NY"))
#>  .. $ state_own : language c("GA", "MD")
#>  .. $ npi       : language npi_ex$k
#>  .. $ ccn       : chr "01256"
#>  .. $ rate      : language between(0.45, 0.67)
#>  .. $ year      : language 2014:2025
#>  @ params:List of 8
#>  .. $ first_name: <starts_with>
#>  ..  ..@ operator: chr "STARTS_WITH"
#>  ..  ..@ value   : chr "And"
#>  .. $ last_name : <contains>
#>  ..  ..@ operator: chr "CONTAINS"
#>  ..  ..@ value   : chr "J"
#>  .. $ state     : <any_of>
#>  ..  ..@ operator: chr "IN"
#>  ..  ..@ value   : chr [1:3] "CA" "GA" "NY"
#>  .. $ state_own : chr [1:2] "GA" "MD"
#>  .. $ npi       : num [1:18] 1.23e+09 1.17e+09 1.24e+09 1.96e+09 1.01e+09 ...
#>  .. $ ccn       : chr "01256"
#>  .. $ rate      : <between>
#>  ..  ..@ operator: chr "BETWEEN"
#>  ..  ..@ value   : num [1:2] 0.45 0.67
#>  .. $ year      : int [1:12] 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 ...