Skip to contents

Generate mock coding/billing data frame

Usage

mock_claims(rows = 100, payers = payer_names(), count_days = FALSE, ...)

Arguments

rows

[integerish] rows number of rows to generate; default is 100

payers

[character] vector of payer names; default is payer_names()

count_days

[logical] add columns for days between events; default is FALSE

...

[dots] additional arguments

Value

A tibble

Examples

mock_claims(rows = 5)
#> # A tibble: 5 × 10
#>   claimid payer     charges balance date_serv…¹ date_rel…² date_sub…³ date_acc…⁴
#>   <chr>   <fct>       <dbl>   <dbl> <date>      <date>     <date>     <date>    
#> 1 5       American      78.     78. 2024-07-07  2024-07-08 2024-07-10 2024-07-23
#> 2 2       CVS Aetna    148.    148. 2024-07-05  2024-07-06 2024-07-08 2024-07-16
#> 3 1       Allianz      275.      0  2024-06-13  2024-06-13 2024-06-13 2024-06-16
#> 4 3       BCBS WY       76.      0  2024-05-11  2024-05-13 2024-05-16 2024-05-23
#> 5 4       Humana       154.      0  2024-05-07  2024-05-08 2024-05-10 2024-05-18
#> # ℹ abbreviated names: ¹​date_service, ²​date_release, ³​date_submission,
#> #   ⁴​date_acceptance
#> # ℹ 2 more variables: date_adjudication <date>, date_reconciliation <date>