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