Beispiel #1
0
 public HospitalLocationTO(HospitalLocation mdo)
 {
     if (mdo == null)
     {
         return;
     }
     this.id = mdo.Id;
     this.name = mdo.Name;
     this.department = new TaggedText(mdo.Department);
     this.service = new TaggedText(mdo.Service);
     this.specialty = new TaggedText(mdo.Specialty);
     if (mdo.Facility != null)
     {
         this.facility = new SiteTO(mdo.Facility);
     }
     this.building = mdo.Building;
     this.floor = mdo.Floor;
     this.room = mdo.Room;
     this.bed = mdo.Bed;
     this.status = mdo.Status;
     this.phone = mdo.Phone;
     this.appointmentTimestamp = mdo.AppointmentTimestamp;
     this.type = mdo.Type;
     this.physicalLocation = mdo.PhysicalLocation;
 }
Beispiel #2
0
 public HospitalLocationTO(HospitalLocation mdo)
 {
     if (mdo == null)
     {
         return;
     }
     this.id = mdo.Id;
     this.name = mdo.Name;
     this.department = new TaggedText(mdo.Department);
     this.service = new TaggedText(mdo.Service);
     this.specialty = new TaggedText(mdo.Specialty);
     this.stopCode = new TaggedText(mdo.StopCode);
     if (mdo.Facility != null)
     {
         this.facility = new SiteTO(mdo.Facility);
     }
     this.building = mdo.Building;
     this.floor = mdo.Floor;
     this.room = mdo.Room;
     this.bed = mdo.Bed;
     this.status = mdo.Status;
     this.phone = mdo.Phone;
     this.appointmentTimestamp = mdo.AppointmentTimestamp;
     this.type = mdo.Type;
     this.physicalLocation = mdo.PhysicalLocation;
     this.askForCheckIn = mdo.AskForCheckIn;
     this.appointmentLength = mdo.AppointmentLength;
     this.clinicDisplayStartTime = mdo.ClinicDisplayStartTime;
     this.displayIncrements = mdo.DisplayIncrements;
     this.availability = new TimeSlotArray(mdo.Availability);
 }
 public TaggedHospitalLocationArray(string tag, HospitalLocation location)
 {
     this.tag = tag;
     if (location == null)
     {
         this.count = 0;
         return;
     }
     this.locations = new HospitalLocationTO[1];
     this.locations[0] = new HospitalLocationTO(location);
     this.count = 1;
 }
 public TaggedHospitalLocationArray(string tag, HospitalLocation[] mdoLocations)
 {
     this.tag = tag;
     if (mdoLocations == null)
     {
         this.count = 0;
         return;
     }
     locations = new HospitalLocationTO[mdoLocations.Length];
     for (int i = 0; i < mdoLocations.Length; i++)
     {
         locations[i] = new HospitalLocationTO(mdoLocations[i]);
     }
     count = mdoLocations.Length;
 }
Beispiel #5
0
 public NoteTO(Note mdoNote)
 {
     if (mdoNote == null) // || ((mdoNote.Id == null || mdoNote.Id == "") && mdoNote.ApprovedBy == null))
     {
         return;
     }
     this.id = mdoNote.Id;
     this.timestamp = mdoNote.Timestamp;
     this.admitTimestamp = mdoNote.AdmitTimestamp;
     this.dischargeTimestamp = mdoNote.DischargeTimestamp;
     this.localTitle = mdoNote.LocalTitle;
     this.standardTitle = mdoNote.StandardTitle;
     this.serviceCategory = mdoNote.ServiceCategory;
     if (mdoNote.Author != null)
     {
         this.author = new AuthorTO(mdoNote.Author);
     }
     if (mdoNote.Location != null)
     {
         this.location = new HospitalLocationTO(mdoNote.Location);
     }
     else if (!String.IsNullOrEmpty(mdoNote.SiteId.Id) || !String.IsNullOrEmpty(mdoNote.SiteId.Name))
     {
         HospitalLocation hl = new HospitalLocation(mdoNote.SiteId.Id, mdoNote.SiteId.Name);
         this.location = new HospitalLocationTO(hl);
     }
     this.text = mdoNote.Text;
     this.hasAddendum = mdoNote.HasAddendum;
     this.isAddendum = mdoNote.IsAddendum;
     this.originalNoteID = mdoNote.OriginalNoteId;
     this.hasImages = mdoNote.HasImages;
     if (mdoNote.ApprovedBy != null)
     {
         this.approvedBy = new AuthorTO(mdoNote.ApprovedBy);
     }
     this.status = mdoNote.Status;
 }