public PSStudySnapshot(DbDataReader reader) { StuInstID = (string)reader["StuInstID"]; StuDateTime = PSDatabase.GetDateTimeFromDbDateAndTimeStrings(reader["StuDate"].ToString(), reader["StuTime"].ToString()); AccessionNum = (string)reader["AccessionNum"]; Modality = (string)reader["Modality"]; StuDesc = (string)reader["StuDesc"]; }
public PSSeriesSnapshot(DbDataReader reader) { SerInstID = (string)reader["SerInstID"]; NumImages = Convert.ToInt32(reader["SeriesNumImages"]); SerDateTime = PSDatabase.GetDateTimeFromDbDateAndTimeStrings(reader["SerDate"].ToString(), reader["SerTime"].ToString()); SerNum = Convert.ToInt32(reader["SerNum"]); Modality = (string)reader["Modality"]; SerDesc = (string)reader["SerDesc"]; BodyPart = (string)reader["BodyPart"]; }
public PSPatient(DbDataReader reader) { IntPatID = Convert.ToInt32(reader["IntPatID"]); PatID = (string)reader["PatID"]; PatName = (string)reader["PatName"]; PatBirthDate = PSDatabase.GetDateTimeFromDbDateAndTimeStrings(reader["PatBirthDate"].ToString()); PatSex = (string)reader["PatSex"]; NumStudies = Convert.ToInt32(reader["NumStudies"]); NumSeries = Convert.ToInt32(reader["PatientsNumSeries"]); NumImages = Convert.ToInt32(reader["PatientsNumImages"]); PatSizeKB = Convert.ToSingle(reader["PatSizeKB"]); LastUsedTime = PSDatabase.GetDateTimeFromDbDatetime(reader["LastUsedTime"]); }