source: BMXNET_RPMS_dotNET_UTILITIES-BMX/branch/IHS BMX Framework/IndianHealthService.BMXNet.WinForm/Model/WinPatient.cs@ 1146

Last change on this file since 1146 was 1146, checked in by Sam Habiel, 13 years ago

Initial Import of BMX4

File size: 3.0 KB
Line 
1using System;
2
3using System.Collections.Generic;
4using System.Text;
5using IndianHealthService.BMXNet.Model;
6
7namespace 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}
Note: See TracBrowser for help on using the repository browser.