Inheritance: AbstractTO
Beispiel #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);
            }
        }
Beispiel #2
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);
            }
        }
Beispiel #3
0
        public LabTestTO(LabTest mdo)
        {
            this.id       = mdo.Id;
            this.name     = mdo.Name;
            this.units    = mdo.Units;
            this.lowRef   = mdo.LowRef;
            this.hiRef    = mdo.HiRef;
            this.refRange = mdo.RefRange;
            this.loinc    = mdo.Loinc;
            this.category = mdo.Category;

            if (mdo.Result != null)
            {
                result = new LabResultTO(mdo.Result.SpecimenType, mdo.Result.Comment, mdo.Result.Value, mdo.Result.BoundaryStatus, mdo.Result.LabSiteId, mdo.Result.Timestamp);
            }
            if (mdo.Specimen != null)
            {
                this.specimen = new LabSpecimenTO(mdo.Specimen);
            }
        }
Beispiel #4
0
 public LabResultTO[] getLabReports(string appPwd, string patientICN, string fromDate, string toDate)
 {
     LabResultTO[] result = new LabResultTO[1];
     result[0] = new LabResultTO() { fault = new FaultTO("Not implemented") };
     return result;
 }