public int getPatientCount()
        {
            DatabaseAccess databaseAccess = new DatabaseAccess();

            return(databaseAccess.loadPatientsFromQuery(Queries).Count);
        }
        public List <Patient> getPatients()
        {
            DatabaseAccess databaseAccess = new DatabaseAccess();

            return(databaseAccess.loadPatientsFromQuery(Queries));
        }
 public QueryEntity(string name, List <Query> queries)
 {
     Name     = name;
     Queries  = queries;
     database = new DatabaseAccess();
 }
 public PatientSnapshotLoadCurrentData(Patient patient)
 {
     this.patient = patient;
     database     = new DatabaseAccess();
 }
 public ChartSeries(Patient patient)
 {
     this.patient = patient;
     database     = new DatabaseAccess();
 }
        //public Dictionary<int, int> outcomePoints { get; set; }
        //public Dictionary<int, int> medPoints { get; set; }

        public ChartSeries(QueryEntity entity, bool show)
        {
            this.entity = entity;
            Show        = show;
            database    = new DatabaseAccess();
        }