A Virtual Patient Simulator in the Context of Calcium and Phosphate Homeostasis

Explore calcium (Ca) and phosphate (Pi) homeostasis with two novel 'Shiny' apps, building upon on a previously published mathematical model written in C, to ensure efficient computations. The underlying model is accessible here < https://www.ncbi.nlm.nih.gov/pubmed/28747359>. The first application explores the fundamentals of Ca-Pi homeostasis, while the second provides interactive case studies for in-depth exploration of the topic, thereby seeking to foster student engagement and an integrative understanding of Ca-Pi regulation. These applications are hosted at < https://rinterface.com/AppsPhysiol.html>.

Travis build status CRAN status

This apps were developed in the Interface Group.


As this package is not currently on CRAN, install it via devtools:


Access Apps

There are two ways to run these apps:

  • access the Apps.Physiol RStudio Connect server and selected the relevant app
  • from the package (see below)
# entry level app
run_CaPO4Sim(context = "introduction")
# virtual patient Bootstrap 4
run_CaPO4Sim(context = "virtual-patient")

Note that for the patient simulator, you need to install a compiler: either Rtools for windows or clang for Mac/Linux. If you don't want, you can still access these apps online.

The Bootstrap 3 version will not be updated anymore but can be accessed here.


Entry Level Application

Virtual Patient Simulator





I thank RStudio for providing us with RStudio Connect licences. All illustration backgrounds were designed by Tara Von Grebel and animations were produced by Janine Meyer, both of the Multimedia and eLearning-Services, University of Zurich.


CaPO4Sim 0.1.0

  • Added a NEWS.md file to track changes to the package.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.1.0 by David Granjon, a year ago

Browse source code at https://github.com/cran/CaPO4Sim

Authors: David Granjon [aut, cre, cph] , Diane de Zélicourt [cph] , Vartan Kurtcuoglu [cph] , Olivier Bonny [cph] , François Verrey [cph] , University of Lausanne [fnd] , University of Zurich [fnd] , Kidney NCCR.CH [fnd] , The Interface Group [cph] (Hosting Group) , RinteRface [cph] (R/HTML Templates)

Documentation:   PDF Manual  

GPL-3 license

Imports shiny, htmltools, shinyjs, shinyWidgets, shinydashboard, shinydashboardPlus, shinyjqui, plotly, rintrojs, shinycssloaders, visNetwork, purrr, DT, magrittr, utils

See at CRAN