Inheritance: AbstractTO
コード例 #1
0
ファイル: LabReportTO.cs プロジェクト: kunalkot/mdws
        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);
            }
        }
コード例 #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);
            }
        }
コード例 #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;
 }
コード例 #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;
 }
コード例 #5
0
ファイル: LabTestTO.cs プロジェクト: govtmirror/RAPTOR-1
        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);
            }
        }
コード例 #6
0
ファイル: MicrobiologyRpt.cs プロジェクト: OSEHRA/mdws
 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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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);
         }
     }
 }
コード例 #10
0
ファイル: ChemHemRpt.cs プロジェクト: OSEHRA/mdws
 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);
         }
     }
 }
コード例 #11
0
ファイル: CytologyRpt.cs プロジェクト: OSEHRA/mdws
 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;
 }