Inheritance: AbstractTO
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
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);
            }
        }
Ejemplo n.º 6
0
 public MicrobiologyRpt(MicrobiologyReport mdo)
 {
     this.id = mdo.Id;
     this.title = mdo.Title;
     this.timestamp = mdo.Timestamp;
     if (mdo.Author != null)
     {
         this.author = new AuthorTO(mdo.Author);
     }
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Specimen != null)
     {
         this.specimen = new LabSpecimenTO(mdo.Specimen);
     }
     this.comment = mdo.Comment;
     this.sample = mdo.Sample;
     this.text = mdo.Text;
 }
Ejemplo n.º 7
0
 public MicrobiologyRpt(MicrobiologyReport mdo)
 {
     this.id        = mdo.Id;
     this.title     = mdo.Title;
     this.timestamp = mdo.Timestamp;
     if (mdo.Author != null)
     {
         this.author = new AuthorTO(mdo.Author);
     }
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Specimen != null)
     {
         this.specimen = new LabSpecimenTO(mdo.Specimen);
     }
     this.comment = mdo.Comment;
     this.sample  = mdo.Sample;
     this.text    = mdo.Text;
 }
Ejemplo n.º 8
0
 public SurgicalPathologyRpt(SurgicalPathologyReport mdo)
 {
     this.id        = mdo.Id;
     this.title     = mdo.Title;
     this.timestamp = mdo.Timestamp;
     if (mdo.Author != null)
     {
         this.author = new AuthorTO(mdo.Author);
     }
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Specimen != null)
     {
         this.specimen = new LabSpecimenTO(mdo.Specimen);
     }
     this.clinicalHx  = mdo.ClinicalHx;
     this.description = mdo.Description;
     this.exam        = mdo.Exam;
     this.diagnosis   = mdo.Diagnosis;
     this.comment     = mdo.Comment;
 }
Ejemplo n.º 9
0
 public ChemHemRpt(ChemHemReport mdo)
 {
     this.id        = mdo.Id;
     this.title     = mdo.Title;
     this.timestamp = mdo.Timestamp;
     if (mdo.Author != null)
     {
         this.author = new AuthorTO(mdo.Author);
     }
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Specimen != null)
     {
         this.specimen = new LabSpecimenTO(mdo.Specimen);
     }
     this.comment = mdo.Comment;
     if (mdo.Results != null)
     {
         this.results = new LabResultTO[mdo.Results.Length];
         for (int i = 0; i < mdo.Results.Length; i++)
         {
             this.results[i] = new LabResultTO(mdo.Results[i]);
         }
     }
     if (mdo.LabSites != null)
     {
         this.labSites = new SiteTO[mdo.LabSites.Count];
         int i = 0;
         foreach (DictionaryEntry de in mdo.LabSites)
         {
             this.labSites[i++] = new SiteTO((Site)de.Value);
         }
     }
 }
Ejemplo n.º 10
0
 public ChemHemRpt(ChemHemReport mdo)
 {
     this.id = mdo.Id;
     this.title = mdo.Title;
     this.timestamp = mdo.Timestamp;
     if (mdo.Author != null)
     {
         this.author = new AuthorTO(mdo.Author);
     }
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Specimen != null)
     {
         this.specimen = new LabSpecimenTO(mdo.Specimen);
     }
     this.comment = mdo.Comment;
     if (mdo.Results != null)
     {
         this.results = new LabResultTO[mdo.Results.Length];
         for (int i = 0; i < mdo.Results.Length; i++)
         {
             this.results[i] = new LabResultTO(mdo.Results[i]);
         }
     }
     if (mdo.LabSites != null)
     {
         this.labSites = new SiteTO[mdo.LabSites.Count];
         int i = 0;
         foreach (DictionaryEntry de in mdo.LabSites)
         {
             this.labSites[i++] = new SiteTO((Site)de.Value);
         }
     }
 }
Ejemplo n.º 11
0
 public CytologyRpt(CytologyReport mdo)
 {
     this.id = mdo.Id;
     this.title = mdo.Title;
     this.timestamp = mdo.Timestamp;
     if (mdo.Author != null)
     {
         this.author = new AuthorTO(mdo.Author);
     }
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Specimen != null)
     {
         this.specimen = new LabSpecimenTO(mdo.Specimen);
     }
     this.clinicalHx = mdo.ClinicalHx;
     this.description = mdo.Description;
     this.exam = mdo.Exam;
     this.diagnosis = mdo.Diagnosis;
     this.comment = mdo.Comment;
     this.supplementalRpt = mdo.SupplementalReport;
 }