Overview

This library holds data about reports of diseases in America.

Downloads

Download all of the following files.

Usage

Begin by adding the above JAR file to your classpath. This library has 4 functions you can use.
import corgis.health.HealthLibrary;
import corgis.health.domain.*;
import java.util.ArrayList;

public class ExampleClass {
    public static void main(String[] args) {
        // Get access to the library
        HealthLibrary healthLibrary = new HealthLibrary();
        // Access data inside the library
        ArrayList<Report> list_of_report = healthLibrary.getReportsByYear(1990, false);ArrayList<Report> list_of_report = healthLibrary.getReportsByDisease("'MUMPS'", false);ArrayList<Report> list_of_report = healthLibrary.getReportsByLocation("'Delaware'", false);ArrayList<Report> list_of_report = healthLibrary.getAllReports(false);
    }
}
Additionally, some of the functions can optionally return Big Data using the last argument (setting it to true). If you use this Big Data, it may be much slower. Wait until you are sure your code is correct before using these examples.
import corgis.health.HealthLibrary;
import corgis.health.domain.*;
import java.util.ArrayList;

public class ExampleClass {
    public static void main(String[] args) {
        // Get access to the library
        HealthLibrary healthLibrary = new HealthLibrary();
        // Access data inside the library
        ArrayList<Report> list_of_report = healthLibrary.getReportsByYear(1990, true);ArrayList<Report> list_of_report = healthLibrary.getReportsByDisease("'MUMPS'", true);ArrayList<Report> list_of_report = healthLibrary.getReportsByLocation("'Delaware'", true);ArrayList<Report> list_of_report = healthLibrary.getAllReports(true);
    }
}

Documentation

We provide full JavaDoc for this library. Alternatively, you may refer to the below:

 healthLibrary.getReportsByYear(year, test)

Returns information about the status of disease for the given year, from 1928 to 2011.

 healthLibrary.getReportsByDisease(disease, test)

Returns information about the status of disease for the given disease.

 healthLibrary.getReportsByLocation(location, test)

Returns information about the status of disease for the given location.

 healthLibrary.getAllReports(test)

Returns information about the status of disease for all locations, diseases, and years.