Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
hgps::DefaultDiseaseModel Class Referencefinal

Defines the standard diseases (non-cancer) model data type. More...

#include <default_disease_model.h>

Inheritance diagram for hgps::DefaultDiseaseModel:
[legend]
Collaboration diagram for hgps::DefaultDiseaseModel:
[legend]

Public Member Functions

 DefaultDiseaseModel ()=delete
 
 DefaultDiseaseModel (DiseaseDefinition &definition, WeightModel &&classifier, const core::IntegerInterval &age_range)
 Initialise a new instance of the DefaultDiseaseModel class.
 
core::DiseaseGroup group () const noexcept override
 Returns the disease group type (other).
 
const core::Identifierdisease_type () const noexcept override
 Returns the disease type identifier.
 
void initialise_disease_status (RuntimeContext &context) override
 Initialises the disease status of the population (from prevalence). Disease start_time = 0 disambiguates from incidence cases on start year. Must be followed by:
 
void initialise_average_relative_risk (RuntimeContext &context) override
 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.
 
void update_disease_status (RuntimeContext &context) override
 Simulates disease remission and incidence cases of the population. For each year, this method calls the following methods in ordrer:
 
double get_excess_mortality (const Person &person) const noexcept override
 Returns the excess mortality for a given person's age and sex.
 
- Public Member Functions inherited from hgps::DiseaseModel
virtual ~DiseaseModel ()=default
 Destroys a DiseaseModel instance.
 

Detailed Description

Defines the standard diseases (non-cancer) model data type.

Constructor & Destructor Documentation

◆ DefaultDiseaseModel() [1/2]

hgps::DefaultDiseaseModel::DefaultDiseaseModel ( )
delete

◆ DefaultDiseaseModel() [2/2]

hgps::DefaultDiseaseModel::DefaultDiseaseModel ( DiseaseDefinition definition,
WeightModel &&  classifier,
const core::IntegerInterval age_range 
)

Initialise a new instance of the DefaultDiseaseModel class.

Parameters
definitionThe disease definition instance
classifierThe body weight classification model instance
age_rangeThe valid age range for model dataset

Member Function Documentation

◆ disease_type()

const core::Identifier & hgps::DefaultDiseaseModel::disease_type ( ) const
overridevirtualnoexcept

Returns the disease type identifier.

Returns
The disease type identifier

Implements hgps::DiseaseModel.

Here is the caller graph for this function:

◆ 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
personThe person instance to calculate the excess mortality
Returns
The excess mortality for a given person's age and sex

Implements hgps::DiseaseModel.

◆ group()

core::DiseaseGroup hgps::DefaultDiseaseModel::group ( ) const
overridevirtualnoexcept

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
contextThe runtime context instance

Implements hgps::DiseaseModel.

Here is the call graph for this function:

◆ 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
    contextThe runtime context instance

Implements hgps::DiseaseModel.

Here is the call graph for this function:

◆ 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
    contextThe runtime context instance

Implements hgps::DiseaseModel.


The documentation for this class was generated from the following files: