{"id":14066585,"url":"https://github.com/andrewallenbruce/forager","last_synced_at":"2025-07-29T23:31:44.710Z","repository":{"id":143651929,"uuid":"528716264","full_name":"andrewallenbruce/forager","owner":"andrewallenbruce","description":"Healthcare Revenue Cycle :infinity:","archived":false,"fork":false,"pushed_at":"2024-05-22T20:02:40.000Z","size":13108,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-22T22:40:03.607Z","etag":null,"topics":["accounts-receivable","healthcare","insurance-claims","r","r-package","rcm","revenue-cycle","rstats"],"latest_commit_sha":null,"homepage":"https://andrewallenbruce.github.io/forager/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrewallenbruce.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-25T06:04:00.000Z","updated_at":"2024-05-27T19:07:20.590Z","dependencies_parsed_at":null,"dependency_job_id":"a1d98ff3-cce8-4d5f-92d1-3357a9b2bfed","html_url":"https://github.com/andrewallenbruce/forager","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/andrewallenbruce/forager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewallenbruce%2Fforager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewallenbruce%2Fforager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewallenbruce%2Fforager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewallenbruce%2Fforager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewallenbruce","download_url":"https://codeload.github.com/andrewallenbruce/forager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewallenbruce%2Fforager/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267779992,"owners_count":24143201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accounts-receivable","healthcare","insurance-claims","r","r-package","rcm","revenue-cycle","rstats"],"created_at":"2024-08-13T07:05:10.444Z","updated_at":"2025-07-29T23:31:44.186Z","avatar_url":"https://github.com/andrewallenbruce.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  echo      = TRUE, \n  message   = FALSE, \n  warning   = FALSE,\n  error     = TRUE,\n  comment   = \"#\u003e\",\n  dpi       = 300, \n  out.width = \"100%\",\n  fig.path  = \"man/figures/README-\"\n)\n```\n\n\n\n# forager \u003ca href=\"#\"\u003e\u003cimg src=\"man/figures/logo.svg\" align=\"right\" width=\"25%\" min-width=\"120px\"/\u003e\u003c/a\u003e\n\n\u003e ***Forager** (noun)*\n\u003e\n\u003e *A person that goes from place to place searching for things that they\n\u003e can eat or use.*[^1]\n\n\u003e ***Ager** (noun)*\n\u003e\n\u003e *A person that calls from place to place searching for payment before\n\u003e insurance can refuse.*[^2]\n\n\u003cbr\u003e\n\n\u003c!-- badges: start --\u003e\n\n![GitHub R package version](https://img.shields.io/github/r-package/v/andrewallenbruce/forager?style=flat-square\u0026logo=R\u0026label=Package\u0026color=%23192a38)\n[![R-CMD-check](https://github.com/andrewallenbruce/forager/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/andrewallenbruce/forager/actions/workflows/R-CMD-check.yaml)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://choosealicense.com/licenses/mit/)\n[![Code Size](https://img.shields.io/github/languages/code-size/andrewallenbruce/forager.svg)](https://github.com/andrewallenbruce/forager)\n[![last commit](https://img.shields.io/github/last-commit/andrewallenbruce/forager.svg)](https://github.com/andrewallenbruce/forager/commits/master)\n[![Codecov test coverage](https://codecov.io/gh/andrewallenbruce/forager/branch/master/graph/badge.svg)](https://app.codecov.io/gh/andrewallenbruce/forager?branch=master)\n\n\u003c!-- badges: end --\u003e\n\n\u003cbr\u003e\n\n## :package: Installation\n\nYou can install `forager` from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"pak\")\npak::pak(\"andrewallenbruce/forager\")\n```\n\n## :beginner: Usage\n\n```{r setup, echo=TRUE, message=FALSE, warning=FALSE}\nlibrary(tidyverse)\nlibrary(clock)\nlibrary(ymd)\nlibrary(forager)\nlibrary(fuimus)\n```\n\n\n## The Lifecycle of a Claim \n\n```{r, echo=TRUE, warning=FALSE}\n(x \u003c- mock_claims(15000))\n```\n\n\u003cbr\u003e\n\n```{r echo=TRUE}\n(x \u003c- prep_claims(x))\n```\n\n\u003cbr\u003e\n\n```{r}\nsummarise_claims(x) |\u003e \n  glimpse()\n```\n\n\n\n```{r echo=TRUE}\nx |\u003e \n  group_by(\n    year = year(date_service),\n    month = month(date_service),\n    payer\n  ) |\u003e\n  summarise_claims() |\u003e \n  arrange(payer) |\u003e\n  select(year, month, payer, n_claims, ending_ar, mean_dar)\n```\n\n\u003cbr\u003e\n\n```{r echo=TRUE}\nx |\u003e \n  group_by(\n    year = year(date_service),\n    qtr = quarter(date_service),\n    payer\n    ) |\u003e\n  summarise_claims() |\u003e \n  arrange(payer) |\u003e\n  select(year, qtr, payer, n_claims, ending_ar, mean_dar)\n```\n\n## Days in AR Calculation\n\n\u003e Monthly\n\n```{r echo=TRUE}\ntibble(\n  date = date_build(2024, 1:12),\n  gct  = rpois(12, 250000:400000),\n  earb = rpois(12, 290000:400000)\n  ) |\u003e \n  avg_dar(\n    date, \n    gct, \n    earb, \n    dart = 35,\n    by = \"month\")\n```\n\n\u003cbr\u003e\n\n\u003e Quarterly\n\n```{r echo=TRUE}\ntibble(\n  date = date_build(2024, 1:12),\n  gct  = rpois(12, 250000:400000),\n  earb = rpois(12, 285500:400000)\n  ) |\u003e \n  avg_dar(\n    date, \n    gct, \n    earb, \n    dart = 35,\n    by = \"quarter\")\n```\n\n\n------------------------------------------------------------------------------\n\n## :balance_scale: Code of Conduct\n\nPlease note that the `forager` project is released with a [Contributor Code of Conduct](https://andrewallenbruce.github.io/forager/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.\n\n## :classical_building: Governance\n\nThis project is primarily maintained by [Andrew Bruce](https://github.com/andrewallenbruce). Other authors may occasionally assist with some of these duties.\n\n[^1]: \u003chttps://dictionary.cambridge.org/dictionary/english/forager\u003e\n\n[^2]: Me.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewallenbruce%2Fforager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewallenbruce%2Fforager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewallenbruce%2Fforager/lists"}