Earlier DSM terminology included mood disorder due to a general medical condition within a broader mood-disorders grouping. DSM-5 separated depressive presentations from bipolar-related presentations, and DSM-5-TR clarified the wording of the corresponding categories. The APA describes this as a change intended to improve consistency, not a discovery that physical illness had only recently become relevant to mood.
ICD-11 uses secondary mood syndrome with a depressive symptom qualifier, which is a related but differently organised framework. Modern assessment keeps those influences separate enough to avoid assuming that all depression during illness is directly caused by the disease, while also avoiding the opposite mistake of overlooking a treatable medical contribution.