Skip to contents

Reads the therapy-block sheet — typically the canonical name Komplexe Chemotherapie — from the workbook. If the sheet is genuinely missing, returns a 0-row data frame with a "source_label" attribute describing the situation; the dashboard surfaces this in the therapy tab.

Usage

zhn_read_therapy(path, sheet = NULL, verbose = TRUE)

Arguments

path

Path to the .xlsx file (typically a fileInput() temp path or the bundled example, obtained via zhn_example_path()).

sheet

Optional sheet name to override the canonical/regex resolver.

verbose

Logical; emit a cli_inform when duplicate columns are detected.

Value

A data frame with cleaned names and a "source_label" attribute. 0-row if no therapy sheet exists.