public static PatientCondition LoadAll(DataRow row)
    {
        PatientCondition patientCondition = Load(row, "patient_condition_");

        patientCondition.Condition            = ConditionDB.Load(row, "condition_");
        patientCondition.Patient              = PatientDB.Load(row, "patient_");
        patientCondition.Patient.Person       = PersonDB.Load(row, "person_", "entity_id");
        patientCondition.Patient.Person.Title = IDandDescrDB.Load(row, "title_title_id", "title_descr");
        return(patientCondition);
    }
예제 #2
0
    public static Condition[] GetAll(bool inc_deleted = false)
    {
        DataTable tbl = GetDataTable(inc_deleted);

        Condition[] list = new Condition[tbl.Rows.Count];
        for (int i = 0; i < tbl.Rows.Count; i++)
        {
            list[i] = ConditionDB.Load(tbl.Rows[i], "condition_");
        }

        return(list);
    }