Ejemplo n.º 1
0
 public VisitTO(Visit mdo)
 {
     this.id = mdo.Id;
     this.type = mdo.Type;
     if (mdo.Patient != null)
     {
         this.patient = new PatientTO(mdo.Patient);
     }
     if (mdo.Attending != null)
     {
         this.attending = new UserTO(mdo.Attending);
     }
     if (mdo.Provider != null)
     {
         this.provider = new UserTO(mdo.Provider);
     }
     this.service = mdo.Service;
     if (mdo.Location != null)
     {
         this.location = new HospitalLocationTO(mdo.Location);
     }
     this.patientType = mdo.PatientType;
     this.visitId = mdo.VisitId;
     this.timestamp = mdo.Timestamp;
     this.status = mdo.Status;
 }
Ejemplo n.º 2
0
 public TaggedVisitArray(string tag, Visit mdo)
 {
     this.tag = tag;
     if (mdo == null)
     {
         this.count = 0;
         return;
     }
     this.visits = new VisitTO[1];
     this.visits[0] = new VisitTO(mdo);
     this.count = 1;
 }
Ejemplo n.º 3
0
 public TaggedVisitArray(string tag, Visit[] mdos)
 {
     this.tag = tag;
     if (mdos == null)
     {
         this.count = 0;
         return;
     }
     this.visits = new VisitTO[mdos.Length];
     for (int i = 0; i < mdos.Length; i++)
     {
         this.visits[i] = new VisitTO(mdos[i]);
     }
     this.count = visits.Length;
 }