コード例 #1
0
ファイル: TaggedChemHemRptArray.cs プロジェクト: OSEHRA/mdws
 public TaggedChemHemRptArray(string tag, ChemHemReport mdo)
 {
     this.tag = tag;
     if (mdo == null)
     {
         this.count = 0;
         return;
     }
     this.rpts = new ChemHemRpt[1];
     this.rpts[0] = new ChemHemRpt(mdo);
     this.count = 1;
 }
コード例 #2
0
ファイル: TaggedChemHemRptArray.cs プロジェクト: OSEHRA/mdws
 public TaggedChemHemRptArray(string tag, ChemHemReport[] mdos)
 {
     this.tag = tag;
     if (mdos == null)
     {
         this.count = 0;
         return;
     }
     this.rpts = new ChemHemRpt[mdos.Length];
     for (int i = 0; i < mdos.Length; i++)
     {
         this.rpts[i] = new ChemHemRpt(mdos[i]);
     }
     this.count = rpts.Length;
 }
コード例 #3
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);
         }
     }
 }