Calculate symptom complex for Post Covid Syndrome Score (PCSS) calculation

detect_symptom_complex(
  symptom_names,
  vector_of_pcss_fup_visits,
  days_of_pcss_time_diff,
  sy_time_to_visit,
  sy_extracted_name_parent,
  sy_parent,
  symptom_update_visit,
  symptom_update_visit.date,
  sy_end_applicable,
  visit_date.date,
  sy_end_min.date,
  sy_end_max.date,
  sy_dur_min,
  sy_dur_max
)

Arguments

symptom_names

A vector with names of needed symptoms

vector_of_pcss_fup_visits

A vector with labels of desired visit

days_of_pcss_time_diff

A vector with number of days of minimum symptom duration

sy_time_to_visit

A vector with number of days between symptom start date and visit date

sy_extracted_name_parent

A vector with parent form table name for needed symptoms

sy_parent

A vector for symptom parent question /w levels "Ja" and "Nein" indicating whether the parent question has been answered with "yes" or "no"

symptom_update_visit

A vector indication the visit at which symptoms were updated last

symptom_update_visit.date

A vector indication the date at which symptoms were updated last

sy_end_applicable

A vector indicating whether the end date of symptom duration is applicable for time span calculation

visit_date.date

A vector with visit date

sy_end_min.date

A vector with calculated minimum date of symptom end

sy_end_max.date

A vector with calculated maximum date of symptom end

sy_dur_min

A vector indicating the minimum number of days of symptom duration

sy_dur_max

A vector indicating the maximum number of days of symptom duration