Defines the standard diseases (non-cancer) model data type.
More...
#include <default_disease_model.h>
Defines the standard diseases (non-cancer) model data type.
◆ DefaultDiseaseModel() [1/2]
| hgps::DefaultDiseaseModel::DefaultDiseaseModel |
( |
| ) |
|
|
delete |
◆ DefaultDiseaseModel() [2/2]
Initialise a new instance of the DefaultDiseaseModel class.
- Parameters
-
| definition | The disease definition instance |
| classifier | The body weight classification model instance |
| age_range | The valid age range for model dataset |
◆ disease_type()
Returns the disease type identifier.
- Returns
- The disease type identifier
Implements hgps::DiseaseModel.
◆ get_excess_mortality()
| double hgps::DefaultDiseaseModel::get_excess_mortality |
( |
const Person & |
person | ) |
const |
|
overridevirtualnoexcept |
Returns the excess mortality for a given person's age and sex.
- Parameters
-
| person | The person instance to calculate the excess mortality |
- Returns
- The excess mortality for a given person's age and sex
Implements hgps::DiseaseModel.
◆ group()
Returns the disease group type (other).
- Returns
- The disease group type (other).
Implements hgps::DiseaseModel.
◆ initialise_average_relative_risk()
| void hgps::DefaultDiseaseModel::initialise_average_relative_risk |
( |
RuntimeContext & |
context | ) |
|
|
overridevirtual |
Initialise average relative risk for disease model on start year. The average relative risks from risk factors and diseases on start year is used to normalise the relative risks for an indivudual at a given time To preserve the distribution of this disease as the simulation prorgesses.
- Parameters
-
| context | The runtime context instance |
Implements hgps::DiseaseModel.
◆ initialise_disease_status()
| void hgps::DefaultDiseaseModel::initialise_disease_status |
( |
RuntimeContext & |
context | ) |
|
|
overridevirtual |
Initialises the disease status of the population (from prevalence). Disease start_time = 0 disambiguates from incidence cases on start year. Must be followed by:
- initialise_average_relative_risk (used to preserve distribution)
- update_disease_status (to simulate incidence cases on start year)
- Parameters
-
| context | The runtime context instance |
Implements hgps::DiseaseModel.
◆ update_disease_status()
| void hgps::DefaultDiseaseModel::update_disease_status |
( |
RuntimeContext & |
context | ) |
|
|
overridevirtual |
Simulates disease remission and incidence cases of the population. For each year, this method calls the following methods in ordrer:
- update_incidence_cases
- Parameters
-
| context | The runtime context instance |
Implements hgps::DiseaseModel.
The documentation for this class was generated from the following files: