Skip to contents

This function checks whether patients have lymph nodes in specific anatomical locations, either at diagnosis, during follow-up, or at any time point.

Usage

check_nodal_location(.data, location, time_point = "any")

Arguments

.data

The input dataframe containing patient node data

location

Character string specifying the anatomical location to check. Must be one of: "L ext iliac", "L int iliac", "L com iliac", "R ext iliac", "R int iliac", "R com iliac", "Para Aortic", "L groin", "R groin", "R parame/paracervix", "L parame/paracervix", "other"

time_point

Optional character string to specify which timepoint to check. Must be one of: "diagnosis", "followup", or "any" (default)

Value

A tibble with columns:

  • embrace_id: The patient identifier

  • has_location: Boolean indicating presence of specified nodal location

Examples

if (FALSE) { # \dontrun{
# Check for right internal iliac nodes at any time
result <- check_nodal_location(patient_data, "R int iliac")

# Check only at diagnosis
diagnosis_nodes <- check_nodal_location(patient_data, "R int iliac",
                                       time_point = "diagnosis")
} # }