phoenix

R, Python, and SQL implementations of the Phoenix Sepsis Criteria

https://github.com/cu-dbmi-peds/phoenix

Science Score: 39.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.7%) to scientific vocabulary

Keywords

pediatric phoenix python r sepsis septic-shock sql
Last synced: 6 months ago · JSON representation

Repository

R, Python, and SQL implementations of the Phoenix Sepsis Criteria

Basic Info
Statistics
  • Stars: 3
  • Watchers: 3
  • Forks: 3
  • Open Issues: 1
  • Releases: 0
Topics
pediatric phoenix python r sepsis septic-shock sql
Created about 2 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog License

README.Rmd



```{r, echo = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-"
)
```

# phoenix: Phoenix Sepsis and Phoenix-8 Sepsis Criteria Phoenix Hex Sticker Logo

[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![R-CMD-check](https://github.com/CU-DBMI-Peds/phoenix/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/CU-DBMI-Peds/phoenix/actions/workflows/R-CMD-check.yaml)
[![codecov](https://codecov.io/gh/CU-DBMI-Peds/phoenix/graph/badge.svg?token=PKLXJ9SQOD)](https://app.codecov.io/gh/CU-DBMI-Peds/phoenix)
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/phoenix)](https://cran.r-project.org/package=phoenix)
[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/phoenix)](https://www.r-pkg.org/pkg/phoenix)

Implementation of the Phoenix and Phoenix-8 Sepsis Criteria as
described in:

* ["Development and Validation of the Phoenix Criteria for Pediatric Sepsis and Septic Shock"](doi:10.1001/jama.2024.0196) by Sanchez-Pinto*, Bennett*, DeWitt**, Russell** et al. (2024)

  *  * Drs Sanchez-Pinto and Bennett contributed equally; ** Dr DeWitt and Mr Russell contributed equally.

* ["International Consensus Criteria for Pediatric Sepsis and Septic Shock"](doi:10.1001/jama.2024.0179) by Schlapbach, Watson, Sorce, et al. (2024).

The best overview for this package is the R vignette which you can view locally
after installing the R package via
```r
vignette("phoenix")
```
or you can read it online
[here](https://cu-dbmi-peds.github.io/phoenix/articles/phoenix.html)

The Phoenix Criteria have been implemented in

* an R package
  * [article](https://cu-dbmi-peds.github.io/phoenix/articles/phoenix.html)
  * [CRAN](https://cran.r-project.org/package=phoenix)

* a Python module
  * [article](https://cu-dbmi-peds.github.io/phoenix/articles/python.html)
  * [PyPi](https://pypi.org/project/phoenix-sepsis/)

* example SQL queries
  * [article](https://cu-dbmi-peds.github.io/phoenix/articles/sql.html)

* Notes for implementing in Electronic Health Records (EHRs)
  * [article](https://cu-dbmi-peds.github.io/phoenix/articles/ehr_implementation_notes.html)

## Citation
If you use this package in your work, please cite the Phoenix criteria by citing
the two JAMA papers.  Please cite this code base by citing the application note,
and if using the R package, cite it explicitly as well.

    Peter E DeWitt, Seth Russell, Margaret N Rebull, L Nelson Sanchez-Pinto, Tellen
    D Bennett, phoenix: an R package and Python module for calculating the Phoenix
    pediatric sepsis score and criteria, JAMIA Open, Volume 7, Issue 3, October
    2024, ooae066, [doi:10.1093/jamiaopen/ooae066](doi:10.1093/jamiaopen/ooae066)

Bibtex formatted citations can be retrieved within R via
```{r, eval = FALSE}
# Manuscripts
print(citation("phoenix"), bibtex = TRUE)

# R package
print(citation("phoenix", auto = TRUE), bibtex = TRUE)
```
Or in this repo from the file
[`inst/CITATION`](https://github.com/CU-DBMI-Peds/phoenix/blob/main/inst/CITATION)


## R

### Install

#### From CRAN
Install the current release from the Comprehensive R Archive Network (CRAN).
Within R call:
```{r, eval = FALSE}
install.packages("phoenix", repos = "https://cran.rstudio.com")
```

#### Developmental
Install the development version of `phoenix` directly from github via the
[`remotes`](https://github.com/r-lib/remotes/) package:

    if (!("remotes" %in% rownames(installed.packages()))) {
      warning("installing remotes from https://cran.rstudio.com")
      install.packages("remotes", repo = "https://cran.rstudio.com")
    }

    remotes::install_github("cu-dbmi-peds/phoenix")

*NOTE:* If you are working on a Windows machine you will need to download and
install [`Rtools`](https://cran.r-project.org/bin/windows/Rtools/).

### Examples

Details on the Phoenix criteria and the use of the R package can be found in the
manual for the package, the
[Get started](https://cu-dbmi-peds.github.io/phoenix/articles/phoenix.html) on
the website, or the vignette within R
```{r eval = FALSE}
vignette("phoenix")
```

## Python

A python module is available on PyPi.  You can install it via `pip`

```{python, eval = FALSE}
pip install phoenix-sepsis
```


### Examples

Read the article [The Phoenix Septic Criteria in Python](https://cu-dbmi-peds.github.io/phoenix/articles/python.html)
for details and examples of using the python code as is.

## SQL

Read [The Phoenix Sepsis Criteria in SQL](https://cu-dbmi-peds.github.io/phoenix/articles/sql.html)
article for details and examples of implementing the scoring rubrics in SQL.
These examples are done in SQLite but will be easily translated into other SQL
dialects.

## Electronic Health Record (EHR)

Read [Phoenix Sepsis EHR Implementation Notes](https://cu-dbmi-peds.github.io/phoenix/articles/ehr_implementation_notes.html)
for details about the expected inputs for the scoring in order to assist EHR
implementation. The phoenix R package and Python module, along with the example
SQL code assumes that the data have been prepared as expected and returns scores
accordingly.

Owner

  • Name: University of Colorado Department of Biomedical Informatics and Pediatrics
  • Login: CU-DBMI-Peds
  • Kind: organization
  • Location: United States of America

Projects developed by faculty of the Department of Biomedical Informatics with a focus on pediatrics

GitHub Events

Total
  • Issues event: 2
  • Delete event: 1
  • Issue comment event: 4
  • Push event: 45
  • Pull request event: 2
  • Fork event: 1
  • Create event: 2
Last Year
  • Issues event: 2
  • Delete event: 1
  • Issue comment event: 4
  • Push event: 45
  • Pull request event: 2
  • Fork event: 1
  • Create event: 2

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 30 last-month
    • cran 498 last-month
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 0
    (may contain duplicates)
  • Total versions: 7
  • Total maintainers: 2
pypi.org: phoenix-sepsis

Implementation of the Phoenix and Phoenix-8 Pediatric Sepsis Criteria

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 30 Last month
Rankings
Dependent packages count: 9.5%
Average: 35.9%
Dependent repos count: 62.4%
Maintainers (1)
Last synced: 7 months ago
cran.r-project.org: phoenix

The Phoenix Pediatric Sepsis and Septic Shock Criteria

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 498 Last month
Rankings
Dependent packages count: 28.1%
Dependent repos count: 36.1%
Average: 49.7%
Downloads: 84.9%
Maintainers (1)
Last synced: 7 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
  • r-lib/actions/setup-tinytex v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.4.1 composite
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • R >= 3.5.0 depends
  • knitr * suggests
  • qwraps2 >= 0.6.0 suggests
python/environment.yml conda
  • numpy
  • pandas
  • pyarrow
  • python 3.11.*
python/pyproject.toml pypi
  • numpy *
  • pandas *