TI-RADS Calculator App

logo-tirads-calc-app

What

TI-RADS Calculator App is a web application that facilitate categorization of Thyroid nodule by ultrasound using TI-RADS™ system, and also provides some management suggestions.

Why

Just pure curiosity and passion for building web application that relevant in my field. Using Quarto & Shiny combination (described next) is very fun !

Design

This app directly implement logic from the following diagram. It is programmatically hard-coded, since the goal here is not to predict result from some kind of model, but to give an interactive experience as you selecting choices from each categories (with examples of ultrasound images included) and the final results are displayed at the bottom of the app.

TI-RADS Chart

Ingredients

I’ve implemented this app in both R and Python using Shiny as webapp engine and Quarto as UI structure:

TI-RADS Calculator (Python version):

TI-RADS Calculator (R version):

Quarto is an open-source scientific and technical publishing system, a next-generation R Markdown that language and engine agnostic. The source code of this app was written in quarto’s markdown and rendered to HTML combined with server-side processing by Shiny.

Shiny is R or Python package for web application framework. It was primary use for delivers products of R or Python code to the user.

The great thing about using Shiny in Quarto document is that it leverage beautiful Quarto’s UI “out of the box”. Also, Quarto’s features such as table of contents, tabset panels, and cross-referencing are available, as I’ve implemented them in this app.

Note: For R version, logic of this app comes from another experimental R package: {radcalc}.

Future Improvement

  • Deploy to ShinyLive, which still fail in current Python edition.
Posted on:
April 3, 2024
Length:
2 minute read, 276 words
Categories:
R Python Shiny Quarto
Tags:
R Python Shiny Quarto
See Also:
DesignCTER
PedDesignCT
moodleQuiz