// Path: src/org/drugepi/hdps/storage/HdpsPatient.java
// @Entity
// public class HdpsPatient implements Comparable<HdpsPatient> {
// 	@PrimaryKey
// 	public String id;
// 	public boolean exposed;
// 	public boolean outcomeDichotomous;
// 	public int outcomeCount;
// 	public double outcomeContinuous;
// 	public int followUpTime;
// 	
// 	public HdpsPatient() {
// 		this(0);
// 	}
// 	
// 	public HdpsPatient(int numDimensions) {
// 		super();
// 		
// //		numCodes = new int[numDimensions];
// //		numUniqueCodes = new int[numDimensions];
// 	}
// 	
// 	public int compareTo(HdpsPatient pat) {
// 		return (id.compareTo(pat.id));
// 	}
// 
// 	public String getId() {
// 		return id;
// 	}
// 
// 	public boolean isExposed() {
// 		return exposed;
// 	}
// 
// 	public boolean isOutcome() {
// 		return outcomeDichotomous;
// 	}
// }


import org.drugepi.hdps.storage.HdpsPatient;
import org.drugepi.hdps.*;
/* 
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 
 */
package org.drugepi.hdps.local;


public class HdpsLocalPatientController extends HdpsPatientController
{
	public HdpsLocalController hdpsController;
	
	public HdpsLocalPatientController(Hdps hdps, HdpsLocalController hdpsController)
    {
    	super(hdps);
    	this.hdpsController = hdpsController;
    }

	public void readPatients()
    throws Exception
    {
//    	patientList = new HashMap<String, HdpsPatient>();

        String[] row;

        nExposed = 0;
        nOutcome = 0;
        int n = 0;
        while ((row = reader.getNextRow()) != null) {
            String key = row[KEY_COLUMN_NUM];
// Path: src/org/drugepi/hdps/storage/HdpsPatient.java
// @Entity
// public class HdpsPatient implements Comparable<HdpsPatient> {
// 	@PrimaryKey
// 	public String id;
// 	public boolean exposed;
// 	public boolean outcomeDichotomous;
// 	public int outcomeCount;
// 	public double outcomeContinuous;
// 	public int followUpTime;
// 	
// 	public HdpsPatient() {
// 		this(0);
// 	}
// 	
// 	public HdpsPatient(int numDimensions) {
// 		super();
// 		
// //		numCodes = new int[numDimensions];
// //		numUniqueCodes = new int[numDimensions];
// 	}
// 	
// 	public int compareTo(HdpsPatient pat) {
// 		return (id.compareTo(pat.id));
// 	}
// 
// 	public String getId() {
// 		return id;
// 	}
// 
// 	public boolean isExposed() {
// 		return exposed;
// 	}
// 
// 	public boolean isOutcome() {
// 		return outcomeDichotomous;
// 	}
// }


// Path: src/org/drugepi/hdps/local/HdpsLocalPatientController.java
import org.drugepi.hdps.storage.HdpsPatient;
import org.drugepi.hdps.*;

/* 
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 
 */
package org.drugepi.hdps.local;


public class HdpsLocalPatientController extends HdpsPatientController
{
	public HdpsLocalController hdpsController;
	
	public HdpsLocalPatientController(Hdps hdps, HdpsLocalController hdpsController)
    {
    	super(hdps);
    	this.hdpsController = hdpsController;
    }

	public void readPatients()
    throws Exception
    {
//    	patientList = new HashMap<String, HdpsPatient>();

        String[] row;

        nExposed = 0;
        nOutcome = 0;
        int n = 0;
        while ((row = reader.getNextRow()) != null) {
            String key = row[KEY_COLUMN_NUM];
            HdpsPatient patient = this.hdpsController.getPatientDatabase().get(key);