When a patient is admitted for the purpose of radiotherapy or chemotherapy and develops complications such as uncontrolled nausea and vomiting or dehydration, the principal or first-listed diagnosis is V58.0, Encounter for radiotherapy, or V58.1, Encounter for chemotherapy.