Ignore:
Timestamp:
Mar 21, 2011, 8:47:45 AM (13 years ago)
Author:
Sam Habiel
Message:

CGDocument:

CGDocumentManager:

CGView: (Changes to support printing of Appointment Slip)

  • Changed name and text of context menu to say "print appointment slip"
  • Logic to Print Appointment Slip

CustomPrinting.cs renamed to Printing.cs; old Printing.Cs removed.
DAppointPage:

  • New checkbox to request printing of Appointment Slip
  • Sex of patient now pulled and included in form.

DPatientLetter:

  • Redirected to use new Printing framework.

Patient:

Printing:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/Patient.cs

    r1107 r1110  
    66namespace IndianHealthService.ClinicalScheduling
    77{
     8
     9    /// <summary>
     10    /// You guessed it.
     11    /// </summary>
     12    public enum Sex
     13    {
     14        Male, Female
     15    };
     16
    817    /// <summary>
    918    /// Puppet standing for a Real Patient
     
    1322        public int DFN { get; set; }
    1423        public string Name { get; set; }
     24        public Sex Sex;
    1525        public DateTime DOB { get; set; }
    1626        public string ID { get; set; }
     
    2636        public string WorkPHone { get; set; }
    2737        public string CellPhone { get; set; }
     38        public TimeSpan Age
     39        {
     40            get
     41            {
     42                return (DateTime.Today - this.DOB);
     43            }
     44        }
     45
     46        public string UserFriendlyAge
     47        {
     48            get
     49            {
     50                if (Age.TotalDays / 365.24 > 5)
     51                    return Math.Floor((Age.TotalDays / 365.24)).ToString() + " years";
     52                else
     53                    return Math.Floor((Age.TotalDays / 365.24)).ToString() + " years & "
     54                     + Math.Floor(Age.TotalDays % 365.24 / 30).ToString() + " months";
     55            }
     56        }
    2857    }
    2958}
Note: See TracChangeset for help on using the changeset viewer.