calculate_esc_2024_symptom_score {pretestcad} | R Documentation |
Calculate Symptom Score (ESC 2024)
Description
A function used to calculate the symptom score of the patient. This is used to calculate the pretest probability of coronary artery disease (CAD) based on the ESC 2024 guidelines.
Usage
calculate_esc_2024_symptom_score(
chest_pain_type,
have_dyspnoea,
allow_na = TRUE
)
Arguments
chest_pain_type |
Input characters (no chest pain, typical, atypical, nonanginal) to indicate the chest pain characteristics of the patient.
|
have_dyspnoea |
Input characters (no, yes) to indicate if the patient only has dyspnoea symptoms.
|
allow_na |
A logical evaluating to |
Value
An integer indicating the symptom score of the patient.
It can also be NA
if both chest_pain_type
and have_dyspnoea
are NA
.
Patients with both nonanginal chest pain and dyspnoea will be given a score of 2
Examples
calculate_esc_2024_symptom_score(
chest_pain_type = "nonanginal",
have_dyspnoea = "yes",
allow_na = TRUE
)
calculate_esc_2024_symptom_score(
chest_pain_type = "nonanginal",
have_dyspnoea = NA,
allow_na = FALSE
)
calculate_esc_2024_symptom_score(
chest_pain_type = "nonanginal",
have_dyspnoea = NA,
allow_na = TRUE
)