andrewallenbruce / provider

Public Healthcare Provider APIs :stethoscope:
https://andrewallenbruce.github.io/provider/
Other
18 stars 2 forks source link

Date/time packages #35

Closed andrewallenbruce closed 8 months ago

andrewallenbruce commented 8 months ago

{provider} currently depends on the following date/time packages:

  1. anytime
  2. dint
  3. lubridate

Functions with date types:

beneficiaries
#> Columns: 1
#> $ year <date_y> 2022

betos
#> Columns: 3
#> $ hcpcs_start_date <date> 2020-12-11
#> $ hcpcs_end_date   <date> 9999-12-31
#> $ rbcs_start_date  <date> 2017-01-01

clinicians
#> Columns: 1
#> $ grad_year <date_y> 2003

conditions
#> Columns: 1
#> $ year <date_y> 2018

hospitals
#> Columns: 2
#> $ incorp_date <date> 2010-01-27
#> $ reh_date    <date> 2023-08-24

laboratories
#> Columns: 6
#> $ effective_date     <date> 1996-08-29
#> $ expiration_date    <date> 1998-08-04
#> $ orig_part_date     <date> 1992-09-01
#> $ application_date   <date> 1993-01-20
#> $ certification_date <date> 1996-03-21
#> $ mailed_date        <date> 1996-09-25

nppes
#> Columns: 3
#> $ enum_date   <date> 2019-08-21
#> $ cert_date   <date> 2021-09-14
#> $ last_update <date> 2021-09-14

open_payments
#> Columns: 3
#> $ program_year <date_y> 2021
#> $ pay_date     <date> 2021-05-26
#> $ publish_date <date> 2023-06-30

opt_out
#> Columns: 3
#> $ optout_start_date <date> 2019-07-01
#> $ optout_end_date   <date> 2025-07-01
#> $ last_updated      <date> 2023-09-15

outpatient
#> Columns: 1
#> $ year <date_y> 2021

quality_eligibility
#> Columns: 3
#> $ year                  <chr> "2020"
#> $ first_approved_date   <chr> "2011-09-13"
#> $ pecos_enrollment_date <int> 2011

quality_stats
#> Columns: 1
#> $ year <int> 2020

quality_payment
#> Columns: 1
#> $ year <date_y> 2020

utilization
#> Columns: 1
#> $ year <date_y> 2020

Created on 2023-11-04 with reprex v2.0.2

andrewallenbruce commented 8 months ago

Remove dint as a dependency:

andrewallenbruce commented 8 months ago

Replace anytime::anydate with lubridate::mdy/ymd