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); }