Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 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));
 }
Ejemplo n.º 4
0
 protected abstract String GetVisitTitle(_PatientCalendarItem currP);
Ejemplo n.º 5
0
 protected override String GetVisitTitle(_PatientCalendarItem currP)
 {
     return("Dependent Item: \n ");
 }
Ejemplo n.º 6
0
 protected override void PopulateDetails(_PatientCalendarItem p, DataRow row)
 {
     p.AddDates(((DateTime)row["FirstAnticipatedDate"]).ToShortDateString(), ((DateTime)row["LastAnticipatedDate"]).ToShortDateString());
     p.AddItemDescription(row["ItemDescription"].ToString());
 }
Ejemplo n.º 7
0
 protected override String GetVisitTitle(_PatientCalendarItem currP)
 {
     return("Anticipated for " + currP.DateRange + " \n ");
 }
Ejemplo n.º 8
0
 protected override String GetVisitTitle(_PatientCalendarItem currP)
 {
     return("Unplanned Item: \n ");
 }
Ejemplo n.º 9
0
 protected override String GetVisitTitle(_PatientCalendarItem currP)
 {
     return("Refused Items: \n ");
 }
Ejemplo n.º 10
0
 protected override String GetVisitTitle(_PatientCalendarItem currP)
 {
     return("Not Applicable Items: \n ");
 }
Ejemplo n.º 11
0
 public PatientVisits(DateTime date)
 {
     _date          = date;
     Schedule       = new List <_PatientCalendarItem>();
     currentPatient = null;
 }
Ejemplo n.º 12
0
 protected virtual void PopulateDetails(_PatientCalendarItem p, DataRow row)
 {
     p.AddItemDescription(row["ItemDescription"].ToString());
 }