Jamorham
Nightscout용 xDrip+ 버전
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
stanpumpR, a PK/PD simulation program
Copyright 2019-2024 Steven L. Shafer, [email protected].
All Rights Reserved
stanpumpR is open-source software for pharmacokinetic / pharmacodynamic simulation. It is intended to make pharmacokinetics accessible to facilitate perioperative patient care, teaching, and research. stanpumpR may be freely downloaded and used without restriction for non-commericial purposes.README 전문 보기 ↗stanpumpR, a PK/PD simulation program Copyright 2019-2026 Steven L. Shafer and contributors, [email protected]. Released under the MIT License; see LICENSE.md.
stanpumpR is open-source software for pharmacokinetic / pharmacodynamic simulation. It is intended to make pharmacokinetics accessible to facilitate perioperative patient care, teaching, and research. It is released under the MIT License: anyone may use, copy, modify and redistribute it, including commercially, provided the copyright and licence notice is kept with it.
stanpumpR is an advisory and teaching tool. It does not control drug delivery, and how its predictions are applied to an individual patient is a matter of clinical judgement. It is provided as is, without warranty of any kind; see the licence.
STANPUMP, a portmanteau of "Stanford" and "Pump", was developed in the Stanski/Shafer laboratory at Stanford University from 1987 through 1997. STANPUMP was one of many programs developed to control the delivery of intravenous anesthetics using pharmacokinetic principles. At that time there was an active exchange of concepts and algorithms among the authors. Significant contributors to this effort were Schüttler and Schwilden at the University of Bonn (CATIA), Ausems and Hug as the University of Leiden (TIAC), Reves and Alvis at the University of Alabama (CACI), Jacobs and Reves at Duke University (CACI II), Coetzee and Pina at Stellenbosch University (STELPUMP), and De Smet and Struys at the University of Ghent (RUGLOOP). This history was recently reviewed by Struys and colleagues: The History of Target-Controlled Infusion. Anesth Analg. 2016;122:56-69.
STANPUMP was distributed freely: anyone could copy and share its source and executable code, though not sell it. The STANPUMP pharmacokinetic engine was incorporated into many of the commercially available target controlled infusion devices, where it is still used today.
stanpumpR uses very little of the original STANPUMP code. However, conceptually it is identical: an open-source program to make complex pharmacokinetic algorithms available to support patient care, teaching, and research. However, stanpumpR does not control drug administration. It is simply a web-based simulator that uses the Shiny package in R to simulate the expected concentration of intravenous anesthetics from any dosing regimen.
In 2026 stanpumpR gained an engine for the inhaled anesthetics. Its structure and parameters follow GasMan®, the model of inhaled anesthetic uptake and distribution developed by James H. Philip at Brigham and Women's Hospital and Harvard Medical School, which has taught a generation of anesthesiologists how these drugs behave. Richard H. Epstein of the University of Miami validated the stanpumpR engine against GasMan, running the comparison scenarios and tracing each disagreement to its cause; that record is in inst/validation/VALIDATION.md. The places where stanpumpR deliberately departs from GasMan are listed in the user's guide.
It is hoped that stanpumpR will encourage device manufacturers to develop the next generation of drug delivery systems and anesthesia information management systems. Companies are welcome to build on stanpumpR under the terms of the MIT License. As a courtesy, Dr. Shafer would be glad to hear from them.
stanpumpR is a collaborative research project. Individuals interested in adding drugs, pharmacokinetic data sets, or new algorithms to stanpumpR are encourage to contact Dr. Shafer. It is hoped that eventually each drug in the stanpumpR library will be maintained by an investigator, who will assume responsibility for keeping the pharmacokinetics as up-to-date as possible. See docs/adding-a-drug.md for the technical steps.
Near-term future developments in stanpumpR will include
R/pregnancy.R, from Ansari, Carvalho, Shafer and Flood, Anesth Analg 2016;122:786-804), and with renal function beyond the drugs that read the serum creatinine. (Each field reaches only the models that name it, the CYP2D6, CYP2C19, CYP2C9 and CYP2B6 phenotypes included; the help's Cautions page lists which.)docs/architecture.md — how the app is put together: the reactive
pipeline, the PK/PD engine, and the file layout.docs/adding-a-drug.md — the touch points for contributing a
new drug, including its help page.docs/users-guide.md — a draft user's guide written from the code.inst/apidocs/api.md.docs/tci-api.md — the TCI API: a stateless web service, /tci/v1,
that hands a real target-controlled infusion pump its next rate from the pump's own record
of what it has delivered (run_tci_api(), or tciNextRate() from R).
FauxTCI is a simulated pump in the browser
built to it, showing every request and response as it runs
(source).inst/help/ (see );
the drug and scenario pages are generated from the code by and
.renv.lockstanpumpR.Rproj file in RStudiorenv::restore() to install all the necessary packagesconfig.yml.sample as a new file named config.yml. This config.yml is a configuration file that stanpumpR needs. You can change the settings inside it.devtools::load_all(".")
run_app()
&debug=1 to the URL.install.packages("devtools").devtools::install_deps(dependencies = TRUE)devtools::test()A limited number of functions have been exported for use by your own code.
On Windows, install the ready-made package. It is rebuilt from master on every change and
published as the windows-binary release:
one zip for x64 and ARM, built with the current R release (install it in the same R minor version).
zip <- file.path(tempdir(), "stanpumpR.zip")
download.file("https://github.com/StevenLShafer/stanpumpR/releases/download/windows-binary/stanpumpR.zip",
zip, mode = "wb")
install.packages(zip, repos = NULL, type = "win.binary")
library(stanpumpR)
Install the CRAN packages in Imports first if you don't have them; the release notes list them.
Installing from source on Windows (remotes::install_github(), pak, devtools::install()) can
fail with nothing but ERROR: lazy loading failed for package 'stanpumpR'. On Windows 11 the
cause has been Smart App Control, which blocked a DLL during the build because it could not
verify where the DLL came from. The zip is already built, so installing it skips that step. It is built by
.github/workflows/windows-binary.yaml, which also installs it into an empty library and runs a
simulation before publishing it.
On macOS or Linux, install from GitHub:
# install.packages("remotes")
remotes::install_github("StevenLShafer/stanpumpR")
or, from a clone of the repository, devtools::install(build_vignettes = TRUE).
To simulate a dose table from a script, call apiSimulate(), or start the HTTP service with
run_api() (needs the plumber package). Both are described at
stanpumpr.io/api.
When code is merged into the default branch, it will automatically be deployed to production. Pull Requests are automatically deployed to a test environment for testing.
This project uses {renv} to lock R package versions. This is mainly done so that we can take control of package versions for the production shiny app, which is a major step towards a stable app. The renv.lock file is committed to the repo and is used to ensure the deployed app uses the exact same package versions as those tested locally.
Adding a new package — add it to DESCRIPTION first, then install and snapshot:
renv::install("pkgname") # install into the renv library
renv::snapshot() # update renv.lock
# commit both DESCRIPTION and renv.lock
Updating an existing package:
renv::update("pkgname")
renv::snapshot()
# commit renv.lock
After pulling changes that include renv.lock updates:
renv::restore()
Steven L. Shafer, MD November 2019
inst/help/README.mdR/help-drugs.RR/help-scenarios.R