protected override void GetJS(HyperLink a, _PatientCalendarItem currP, bool bPatientSpecific) { string jsarray = GetJsArray(currP.firstDate, currP.lastDate); a.Attributes.Add("onmouseover", "modDates(" + jsarray + ", highlightCell);" + getAddtlMouseEvent(currP.PatientId, bPatientSpecific)); a.Attributes.Add("onmouseout", "modDates(" + jsarray + ", resetCell);" + getAddtlMouseEvent(currP.PatientId, bPatientSpecific)); }
protected void AddData(DataRow row, bool bPatientCalendar, bool bShowPatientIdentifiers) { string name; if (!bPatientCalendar) { name = GetPatientName(row, bShowPatientIdentifiers); } else { name = row["ItemDescription"].ToString(); } _PatientCalendarItem p; if (bPatientCalendar) { // determine if using deviations (use overloaded constructor) or standard patient items if (row.Table.Columns.Contains("DeviationTable") && row.Table.Columns.Contains("DeviationKey")) { p = new _PatientCalendarItem(name, row["PatientId"].ToString(), row["ProtocolId"].ToString(), row["ProtocolSchemaId"].ToString(), row["TimelineId"].ToString(), row["PatientItemId"].ToString(), "", "", row["DeviationTable"].ToString(), row["DeviationKey"].ToString()); } else { p = new _PatientCalendarItem(name, row["PatientId"].ToString(), row["ProtocolId"].ToString(), row["ProtocolSchemaId"].ToString(), row["TimelineId"].ToString(), row["PatientItemId"].ToString(), "", ""); } } else { p = new _PatientCalendarItem(name, row["PatientId"].ToString(), row["ProtocolId"].ToString(), row["ProtocolSchemaId"].ToString(), row["TimelineId"].ToString(), "", row["PatientSchemaId"].ToString(), row["SchemaItemId"].ToString()); } PopulateDetails(p, row); Schedule.Add(p); currentPatient = p; }
protected virtual void GetJS(HyperLink l, _PatientCalendarItem currP, bool bPatientSpecific) { l.Attributes.Add("onmouseover", getAddtlMouseEvent(currP.PatientId, bPatientSpecific)); l.Attributes.Add("onmouseout", getAddtlMouseEvent(currP.PatientId, bPatientSpecific)); }
protected abstract String GetVisitTitle(_PatientCalendarItem currP);
protected override String GetVisitTitle(_PatientCalendarItem currP) { return("Dependent Item: \n "); }
protected override void PopulateDetails(_PatientCalendarItem p, DataRow row) { p.AddDates(((DateTime)row["FirstAnticipatedDate"]).ToShortDateString(), ((DateTime)row["LastAnticipatedDate"]).ToShortDateString()); p.AddItemDescription(row["ItemDescription"].ToString()); }
protected override String GetVisitTitle(_PatientCalendarItem currP) { return("Anticipated for " + currP.DateRange + " \n "); }
protected override String GetVisitTitle(_PatientCalendarItem currP) { return("Unplanned Item: \n "); }
protected override String GetVisitTitle(_PatientCalendarItem currP) { return("Refused Items: \n "); }
protected override String GetVisitTitle(_PatientCalendarItem currP) { return("Not Applicable Items: \n "); }
public PatientVisits(DateTime date) { _date = date; Schedule = new List <_PatientCalendarItem>(); currentPatient = null; }
protected virtual void PopulateDetails(_PatientCalendarItem p, DataRow row) { p.AddItemDescription(row["ItemDescription"].ToString()); }