Exemple #1
0
        public LabReportTO(LabReport report)
        {
            if (report == null)
            {
                return;
            }
            this.panel = new LabPanelTO(report.Panel);
            //if (report.Tests != null && report.Tests.Count > 0)
            //{
            //    tests = new LabTestArray(report.Tests);
            //}
            if (report.Result != null)
            {
                result = new LabResultTO(report.Result);
            }
            author = new AuthorTO(report.Author);
            caseNumber = report.CaseNumber;
            comment = report.Comment;
            if (report.Facility != null)
            {
                facility = new SiteTO(new mdo.Site(report.Facility.Id, report.Facility.Name));
            }
            id = report.Id;
            //Specimen = new LabSpecimenTO(report.Specimen);
            timestamp = report.Timestamp;
            title = report.Title;
            type = report.Type;
            text = report.Text;

            if (report.Specimen != null)
            {
                specimen = new LabSpecimenTO(report.Specimen);
            }
        }
 public LabReportTO(LabReport report)
 {
     Author = new AuthorTO(report.Author);
     CaseNumber = report.CaseNumber;
     Comment = report.Comment;
     if (report.Facility != null)
     {
         Facility = new SiteTO(new mdo.Site(report.Facility.Id, report.Facility.Name));
     }
     Id = report.Id;
     Specimen = new LabSpecimenTO(report.Specimen);
     Timestamp = report.Timestamp;
     Title = report.Title;
 }