{"id":19713440,"url":"https://github.com/ctsit/nsofa_calculation","last_synced_at":"2026-06-07T22:33:50.210Z","repository":{"id":43656762,"uuid":"279881465","full_name":"ctsit/nSOFA_calculation","owner":"ctsit","description":"This project provides RScripts to calculate the Neonatal Sequential Organ Failure Assessment score. This project was used as part of a research program at the University of Florida to study neonates.","archived":false,"fork":false,"pushed_at":"2023-02-10T00:12:49.000Z","size":143,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-27T20:33:01.047Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ctsit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-15T13:51:36.000Z","updated_at":"2024-01-03T15:55:17.000Z","dependencies_parsed_at":"2024-11-11T22:22:24.091Z","dependency_job_id":null,"html_url":"https://github.com/ctsit/nSOFA_calculation","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ctsit/nSOFA_calculation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2FnSOFA_calculation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2FnSOFA_calculation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2FnSOFA_calculation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2FnSOFA_calculation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctsit","download_url":"https://codeload.github.com/ctsit/nSOFA_calculation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2FnSOFA_calculation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34041087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"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":[],"created_at":"2024-11-11T22:22:18.458Z","updated_at":"2026-06-07T22:33:50.191Z","avatar_url":"https://github.com/ctsit.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Neonatal Sequential Organ Failure Assessment (nSOFA) Calculation\n\nThe nSOFA is an objective, operational definition of organ dysfunction that can successfully identify the risk of mortality among very low birth weight infants with late-onset infection (PMID: 31394566). The nSOFA utilizes categorical scores (total score range 0–15) to objectively describe dynamic changes in: (1) the need for mechanical ventilation and oxygen requirement to maintain a physiologic peripheral saturation (score range 0–8), (2) the need for inotropic support including the use of corticosteroid support (for presumed adrenal insufficiency or catecholamine-resistant shock) (score range 0–4), and (3) the presence and degree of thrombocytopenia (score range 0–3). Medications considered as vasoactive or inotropic included dopamine, dobutamine, epinephrine, norepinephrine, vasopressin, milrinone, and phenylephrine.\n\n## Requirements\n\nThe following packages are needed to run the scripts: \n\n    tidyverse\n    vroom\n    janitor\n    lubridate\n    here\n    openxlsx\n    readxl\n   \n__Note: The dependency management system [renv](https://rstudio.github.io/renv/articles/renv.html) is used to ensure that specific package versions and their required dependencies are installed. See [collaborating with renv](https://rstudio.github.io/renv/articles/collaborating.html) for instructions  on how to restore the project library locally.__\n\n## About the Data \nThe data was acquired from the University of Florida Integrated Data Repository (IDR) under the aegis of IRB #201902780. The principal investigator on this IRB is James L Wynn, MD. The data sets are exports from the IDR's Epic Clarity system.\n\n\n\n## Current Scripts\n- [`functions.R`](functions.R): contains the data transformation functions used to create the nsofa components. [algorithm_steps.md](algorithm_steps.md) contains the steps for constructing these functions.\n\n- [`make_nsofa_dataset.R`](make_nsofa_dataset.R): creates a dataset of q1hr nsofa scores and a dataset of the max nsofa score within n days of birth\n\n- [`count_and_categorize_respiratory_devices.R`](count_and_categorize_respiratory_devices.R): created the initial version of `categorized_respiratory_devices.xlsx`. This file is used to categorize respiratory devices as indicating that a child is intubated or _not_ intubated. The version of `categorized_respiratory_devices.xlsx` used in these calculation was reviwed and updated by James Wynn.\n\n\n## Score Calculation\n![](nsofa_table.png)\n\n\n## Developer Notes\n\nSoftware developers who would like to make contributions to this repository should read the [Developer Notes](developer_notes.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctsit%2Fnsofa_calculation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctsit%2Fnsofa_calculation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctsit%2Fnsofa_calculation/lists"}