Search in sources :

Example 1 with C19ImmunizationModule

use of org.mitre.synthea.modules.covid.C19ImmunizationModule in project synthea by synthetichealth.

the class Module method loadModules.

private static Map<String, ModuleSupplier> loadModules() {
    Map<String, ModuleSupplier> retVal = new ConcurrentHashMap<>();
    int submoduleCount = 0;
    retVal.put("Lifecycle", new ModuleSupplier(new LifecycleModule()));
    // retVal.put("Health Insurance", new ModuleSupplier(new HealthInsuranceModule()));
    retVal.put("Cardiovascular Disease", new ModuleSupplier(new CardiovascularDiseaseModule()));
    retVal.put("Quality Of Life", new ModuleSupplier(new QualityOfLifeModule()));
    retVal.put("Weight Loss", new ModuleSupplier(new WeightLossModule()));
    retVal.put("COVID-19 Immunization Module", new ModuleSupplier(new C19ImmunizationModule()));
    Properties moduleOverrides = getModuleOverrides();
    try {
        Path modulesPath = getModulesPath();
        submoduleCount = walkModuleTree(modulesPath, retVal, moduleOverrides, false);
    } catch (Exception e) {
        e.printStackTrace();
    }
    System.out.format("Scanned %d modules and %d submodules.\n", retVal.size() - submoduleCount, submoduleCount);
    return retVal;
}
Also used : Path(java.nio.file.Path) JsonPath(com.jayway.jsonpath.JsonPath) QualityOfLifeModule(org.mitre.synthea.modules.QualityOfLifeModule) Properties(java.util.Properties) URISyntaxException(java.net.URISyntaxException) FileSystemNotFoundException(java.nio.file.FileSystemNotFoundException) IOException(java.io.IOException) C19ImmunizationModule(org.mitre.synthea.modules.covid.C19ImmunizationModule) CardiovascularDiseaseModule(org.mitre.synthea.modules.CardiovascularDiseaseModule) WeightLossModule(org.mitre.synthea.modules.WeightLossModule) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) LifecycleModule(org.mitre.synthea.modules.LifecycleModule)

Aggregations

JsonPath (com.jayway.jsonpath.JsonPath)1 IOException (java.io.IOException)1 URISyntaxException (java.net.URISyntaxException)1 FileSystemNotFoundException (java.nio.file.FileSystemNotFoundException)1 Path (java.nio.file.Path)1 Properties (java.util.Properties)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 CardiovascularDiseaseModule (org.mitre.synthea.modules.CardiovascularDiseaseModule)1 LifecycleModule (org.mitre.synthea.modules.LifecycleModule)1 QualityOfLifeModule (org.mitre.synthea.modules.QualityOfLifeModule)1 WeightLossModule (org.mitre.synthea.modules.WeightLossModule)1 C19ImmunizationModule (org.mitre.synthea.modules.covid.C19ImmunizationModule)1