| 1 | using System;
|
|---|
| 2 |
|
|---|
| 3 | using System.Collections.Generic;
|
|---|
| 4 | using System.Text;
|
|---|
| 5 | using IndianHealthService.BMXNet.Model;
|
|---|
| 6 |
|
|---|
| 7 | namespace IndianHealthService.BMXNet.WinForm
|
|---|
| 8 | {
|
|---|
| 9 | internal class DesktopPatient : DesktopObject, Patient, IDisposable
|
|---|
| 10 | {
|
|---|
| 11 |
|
|---|
| 12 | public static DesktopPatient FindCurrent(DesktopSession aSession)
|
|---|
| 13 | {
|
|---|
| 14 | DesktopPatient answer = new DesktopPatient();
|
|---|
| 15 |
|
|---|
| 16 | /*
|
|---|
| 17 | answer.Ien = aSession.CssPatient.Handle.ToString();
|
|---|
| 18 | answer.PatientName = aSession.CssPatient.Name;
|
|---|
| 19 | answer.Sex = aSession.CssPatient.Sex;
|
|---|
| 20 | answer.Dob = aSession.CssPatient.DOB;
|
|---|
| 21 | answer.AdminDate = aSession.CssPatient.AdmitDate;
|
|---|
| 22 | answer.Age = aSession.CssPatient.Age;
|
|---|
| 23 | answer.Ssn = aSession.CssPatient.SSN;
|
|---|
| 24 | */
|
|---|
| 25 |
|
|---|
| 26 | return answer;
|
|---|
| 27 |
|
|---|
| 28 | }
|
|---|
| 29 |
|
|---|
| 30 | #region IDisposable Members
|
|---|
| 31 |
|
|---|
| 32 | public void Dispose()
|
|---|
| 33 | {
|
|---|
| 34 | throw new NotImplementedException();
|
|---|
| 35 | }
|
|---|
| 36 |
|
|---|
| 37 | #endregion
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 | private String _patientName;
|
|---|
| 41 |
|
|---|
| 42 | public String PatientName
|
|---|
| 43 | {
|
|---|
| 44 | get { return _patientName; }
|
|---|
| 45 | set { _patientName = value; }
|
|---|
| 46 | }
|
|---|
| 47 | private String _healthRecordNumber = "";
|
|---|
| 48 |
|
|---|
| 49 | public String HealthRecordNumber
|
|---|
| 50 | {
|
|---|
| 51 | get { return _healthRecordNumber; }
|
|---|
| 52 | set { _healthRecordNumber = value; }
|
|---|
| 53 | }
|
|---|
| 54 |
|
|---|
| 55 | private DateTime? _admitDate;
|
|---|
| 56 |
|
|---|
| 57 | public DateTime? AdmitDate
|
|---|
| 58 | {
|
|---|
| 59 | get { return _admitDate; }
|
|---|
| 60 | set { _admitDate = value; }
|
|---|
| 61 | }
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 | private float _age;
|
|---|
| 66 |
|
|---|
| 67 | public float Age
|
|---|
| 68 | {
|
|---|
| 69 | get { return _age; }
|
|---|
| 70 | set { _age = value; }
|
|---|
| 71 | }
|
|---|
| 72 | private DateTime? _dob;
|
|---|
| 73 |
|
|---|
| 74 | public DateTime? Dob
|
|---|
| 75 | {
|
|---|
| 76 | get { return _dob; }
|
|---|
| 77 | set { _dob = value; }
|
|---|
| 78 | }
|
|---|
| 79 | private String _primaryProvider;
|
|---|
| 80 |
|
|---|
| 81 | public String PrimaryProvider
|
|---|
| 82 | {
|
|---|
| 83 | get { return _primaryProvider; }
|
|---|
| 84 | set { _primaryProvider = value; }
|
|---|
| 85 | }
|
|---|
| 86 | private String _sex;
|
|---|
| 87 |
|
|---|
| 88 | public String Sex
|
|---|
| 89 | {
|
|---|
| 90 | get { return _sex; }
|
|---|
| 91 | set { _sex = value; }
|
|---|
| 92 | }
|
|---|
| 93 | private String _ssn;
|
|---|
| 94 |
|
|---|
| 95 | public String Ssn
|
|---|
| 96 | {
|
|---|
| 97 | get { return _ssn; }
|
|---|
| 98 | set { _ssn = value; }
|
|---|
| 99 | }
|
|---|
| 100 |
|
|---|
| 101 | /*
|
|---|
| 102 |
|
|---|
| 103 | this.CssPatient.AdmitDate
|
|---|
| 104 | this.CssPatient.Age
|
|---|
| 105 | this.CssPatient.DOB
|
|---|
| 106 | this.CssPatient.Detail
|
|---|
| 107 | this.CssPatient.DOD
|
|---|
| 108 | this.CssPatient.HRN
|
|---|
| 109 | this.CssPatient.ICN
|
|---|
| 110 | this.CssPatient.Location
|
|---|
| 111 | this.CssPatient.LocationName
|
|---|
| 112 | this.CssPatient.PrimaryProvider
|
|---|
| 113 | this.CssPatient.PrimaryTeam
|
|---|
| 114 | this.CssPatient.RoomBed
|
|---|
| 115 | this.CssPatient.Sex
|
|---|
| 116 | this.CssPatient.SSN*/
|
|---|
| 117 |
|
|---|
| 118 |
|
|---|
| 119 |
|
|---|
| 120 |
|
|---|
| 121 |
|
|---|
| 122 | public String DebugString()
|
|---|
| 123 | {
|
|---|
| 124 | StringBuilder info = new StringBuilder();
|
|---|
| 125 |
|
|---|
| 126 | info.Append(this.PatientName);
|
|---|
| 127 | info.Append(", ");
|
|---|
| 128 | info.Append(this.Dob.HasValue ? this.Dob.Value.ToShortDateString() : "");
|
|---|
| 129 |
|
|---|
| 130 | return info.ToString();
|
|---|
| 131 | }
|
|---|
| 132 |
|
|---|
| 133 |
|
|---|
| 134 | }
|
|---|
| 135 | }
|
|---|