[1146] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Text;
|
---|
| 4 | using IndianHealthService.Model;
|
---|
| 5 | using System.Globalization;
|
---|
| 6 |
|
---|
| 7 | namespace IndianHealthService.BMXNet.Desktop
|
---|
| 8 | {
|
---|
| 9 | internal class DesktopEncounter : DesktopObject, Encounter
|
---|
| 10 | {
|
---|
| 11 |
|
---|
| 12 | public static DesktopEncounter FindCurrent(DesktopSession aSession)
|
---|
| 13 | {
|
---|
| 14 | DesktopEncounter answer = new DesktopEncounter();
|
---|
| 15 |
|
---|
| 16 |
|
---|
| 17 | return answer;
|
---|
| 18 |
|
---|
| 19 | }
|
---|
| 20 |
|
---|
| 21 | private DateTime _dateTime;
|
---|
| 22 |
|
---|
| 23 | public DateTime DateTime
|
---|
| 24 | {
|
---|
| 25 | get { return _dateTime; }
|
---|
| 26 | set { _dateTime = value; }
|
---|
| 27 | }
|
---|
| 28 |
|
---|
| 29 |
|
---|
| 30 | private String _locationName;
|
---|
| 31 |
|
---|
| 32 | public String LocationName
|
---|
| 33 | {
|
---|
| 34 | get { return _locationName; }
|
---|
| 35 | set { _locationName = value; }
|
---|
| 36 | }
|
---|
| 37 | private String _locationAbbr;
|
---|
| 38 |
|
---|
| 39 | public String LocationAbbr
|
---|
| 40 | {
|
---|
| 41 | get { return _locationAbbr; }
|
---|
| 42 | set { _locationAbbr = value; }
|
---|
| 43 | }
|
---|
| 44 | private String _providerName;
|
---|
| 45 |
|
---|
| 46 | public String ProviderName
|
---|
| 47 | {
|
---|
| 48 | get { return _providerName; }
|
---|
| 49 | set { _providerName = value; }
|
---|
| 50 | }
|
---|
| 51 |
|
---|
| 52 | public override string ToString()
|
---|
| 53 | {
|
---|
| 54 | return this.Label;
|
---|
| 55 | }
|
---|
| 56 |
|
---|
| 57 | public String Label
|
---|
| 58 | {
|
---|
| 59 |
|
---|
| 60 | get { return this.DateTime.ToShortDateString() + " " + this.LocationName; }
|
---|
| 61 | }
|
---|
| 62 |
|
---|
| 63 | private String _serviceCategory = null;
|
---|
| 64 |
|
---|
| 65 | public String ServiceCategory
|
---|
| 66 | {
|
---|
| 67 | get { return _serviceCategory; }
|
---|
| 68 | set { _serviceCategory = value; }
|
---|
| 69 | }
|
---|
| 70 |
|
---|
| 71 |
|
---|
| 72 | public void FillFromRow(System.Data.DataRow aRow)
|
---|
| 73 | {
|
---|
| 74 |
|
---|
| 75 | //PATIENT
|
---|
| 76 | this.Ien = aRow["BMXIEN"].ToString();
|
---|
| 77 | this.DateTime = DateTime.ParseExact(aRow["VISIT TIMESTAMP"].ToString(), "MMM dd, yyyy@HH:mm", CultureInfo.InvariantCulture);
|
---|
| 78 | this.LocationName = aRow["LOCATION"].ToString();
|
---|
| 79 | this.ServiceCategory = aRow["SERVICE CATEGORY"].ToString();
|
---|
| 80 | this.LocationName = aRow["CLINIC"].ToString();
|
---|
| 81 | this.ProviderName = aRow["PROVIDER"].ToString();
|
---|
| 82 | }
|
---|
| 83 |
|
---|
| 84 | }
|
---|
| 85 | }
|
---|