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