onconova.oncology.models.lifestyle
Lifestyle
¶
Bases: BaseModel
Represents a patient's lifestyle assessment, including smoking, alcohol, sleep, drug use, and exposure history.
Attributes:
Name | Type | Description |
---|---|---|
case |
ForeignKey[PatientCase]
|
Reference to the patient's case being assessed. |
date |
DateField
|
Date of lifestyle assessment. |
smoking_status |
CodedConceptField[SmokingStatus]
|
Tobacco consumption status. |
smoking_packyears |
FloatField
|
Number of smoking pack-years, if applicable. |
smoking_quited |
MeasurementField
|
Time since quitting smoking, if applicable. |
alcohol_consumption |
CodedConceptField[AlcoholConsumptionFrequency]
|
Frequency of alcohol consumption. |
night_sleep |
MeasurementField
|
Average sleep time per night. |
recreational_drugs |
CodedConceptField[RecreationalDrug]
|
Recreational drugs used by the patient. |
exposures |
CodedConceptField[ExposureAgent]
|
Environmental or occupational exposures to hazards or carcinogens. |
description |
str
|
Human-readable summary of the patient's lifestyle factors. |
alcohol_consumption
class-attribute
instance-attribute
¶
case
class-attribute
instance-attribute
¶
date
class-attribute
instance-attribute
¶
description
property
¶
exposures
class-attribute
instance-attribute
¶
night_sleep
class-attribute
instance-attribute
¶
recreational_drugs
class-attribute
instance-attribute
¶
smoking_packyears
class-attribute
instance-attribute
¶
smoking_quited
class-attribute
instance-attribute
¶
smoking_status
class-attribute
instance-attribute
¶
runner