Validates logical relationships in the data (e.g., date sequences, age consistency, valid value ranges).
Arguments
- data
Data frame
- checks
Character vector. Which checks to perform: - "date_sequence": admission < culture < outcome - "age_range": Age between 0-120 - "age_dob_match": Age matches DOB - "outcome_consistency": Died patients have outcome date - "all": All checks (default)
- stop_on_failure
Logical. Stop on inconsistency. Default FALSE.