Implements Health-GPS back-end data store interface using a file-based storage.
More...
|
| | DataManager ()=delete |
| |
| | DataManager (std::filesystem::path data_path, VerboseMode verbosity=VerboseMode::none) |
| | Initialises a new instance of the hgps::input::DataManager class.
|
| |
| std::vector< Country > | get_countries () const override |
| | Gets the full collection of countries in the store.
|
| |
| Country | get_country (const std::string &alpha) const override |
| | Gets a single country by the alpha code.
|
| |
| std::vector< PopulationItem > | get_population (const Country &country) const |
| |
| std::vector< PopulationItem > | get_population (const Country &country, std::function< bool(unsigned int)> time_filter) const override |
| | Gets the population growth trend for a country filtered by time.
|
| |
| std::vector< MortalityItem > | get_mortality (const Country &country) const |
| |
| std::vector< MortalityItem > | get_mortality (const Country &country, std::function< bool(unsigned int)> time_filter) const override |
| | Gets the population mortality trend for a country filtered by time.
|
| |
| std::vector< DiseaseInfo > | get_diseases () const override |
| | Gets the collection of diseases information in the store.
|
| |
| DiseaseInfo | get_disease_info (const core::Identifier &code) const override |
| | Gets a single disease information by identifier.
|
| |
| DiseaseEntity | get_disease (const DiseaseInfo &info, const Country &country) const override |
| | Gets a disease full definition by identifier for a country.
|
| |
| std::optional< RelativeRiskEntity > | get_relative_risk_to_disease (const DiseaseInfo &source, const DiseaseInfo &target) const override |
| | Gets the relative risk effects for disease to disease interactions.
|
| |
| std::optional< RelativeRiskEntity > | get_relative_risk_to_risk_factor (const DiseaseInfo &source, Gender gender, const core::Identifier &risk_factor_key) const override |
| | Gets the relative risk effects for risk factor to disease interactions.
|
| |
| CancerParameterEntity | get_disease_parameter (const DiseaseInfo &info, const Country &country) const override |
| | Gets the parameters required by cancer type diseases for a country.
|
| |
| DiseaseAnalysisEntity | get_disease_analysis (const Country &country) const override |
| | Gets the Burden of Diseases (BoD) analysis dataset for a country.
|
| |
| std::vector< BirthItem > | get_birth_indicators (const Country &country) const |
| |
| std::vector< BirthItem > | get_birth_indicators (const Country &country, std::function< bool(unsigned int)> time_filter) const override |
| | Gets the population birth indicators for a country filtered by time.
|
| |
| std::vector< LmsDataRow > | get_lms_parameters () const override |
| | Gets the LMS (lambda-mu-sigma) parameters for childhood growth charts.
|
| |
| std::optional< PIFData > | get_pif_data (const DiseaseInfo &disease_info, const Country &country, const nlohmann::json &pif_config) const |
| | Gets PIF data for a specific disease.
|
| |
| const std::filesystem::path & | get_root_path () const noexcept |
| | Get the root data directory path.
|
| |
| virtual | ~Datastore ()=default |
| | Destroys a Datastore instance.
|
| |
Implements Health-GPS back-end data store interface using a file-based storage.
The storage is based on a folder structure and indexed by a file, index.json, with a versioned schema defining the storage sub-folders structure, file names, data limits, metadata, and rules for accessing the stored contents.
- Note
- To avoid storing disease-disease interaction files filled with a
default value representing no relative risk effect, the default value is defined in the index file, and the respective dataset populated at run-time with the default value when the an associated file does not exists in the store.
- See also
- https://imperialchepi.github.io/healthgps/datamodel for the
Data Model details.