Ejemplo n.º 1
0
 public InpatientStayTO(InpatientStay mdo)
 {
     if (mdo.Patient != null)
     {
         this.patient = new PatientTO(mdo.Patient);
     }
     if (mdo.Location != null)
     {
         this.location = new HospitalLocationTO(mdo.Location);
     }
     this.admitTimestamp = mdo.AdmitTimestamp;
     this.dischargeTimestamp = mdo.DischargeTimestamp;
     if (mdo.DischargeDiagnoses != null)
     {
         this.dischargeDiagnoses = new DischargeDiagnosesTO(mdo.DischargeDiagnoses);
     }
     this.type = mdo.Type;
     if (mdo.Adts != null && mdo.Adts.Length > 0)
     {
         this.adts = new AdtTO[mdo.Adts.Length];
         for (int i = 0; i < mdo.Adts.Length; i++)
         {
             this.adts[i] = new AdtTO(mdo.Adts[i]);
         }
     }
     this.movementCheckinId = mdo.MovementCheckinId;
 }
Ejemplo n.º 2
0
 public InpatientStayTO(InpatientStay mdo)
 {
     if (mdo.Patient != null)
     {
         this.patient = new PatientTO(mdo.Patient);
     }
     if (mdo.Location != null)
     {
         this.location = new HospitalLocationTO(mdo.Location);
     }
     this.admitTimestamp     = mdo.AdmitTimestamp;
     this.dischargeTimestamp = mdo.DischargeTimestamp;
     if (mdo.DischargeDiagnoses != null)
     {
         this.dischargeDiagnoses = new DischargeDiagnosesTO(mdo.DischargeDiagnoses);
     }
     this.type = mdo.Type;
     if (mdo.Adts != null && mdo.Adts.Length > 0)
     {
         this.adts = new AdtTO[mdo.Adts.Length];
         for (int i = 0; i < mdo.Adts.Length; i++)
         {
             this.adts[i] = new AdtTO(mdo.Adts[i]);
         }
     }
     this.movementCheckinId = mdo.MovementCheckinId;
 }