Ejemplo n.º 1
0
 public TaggedSurgeryReportArray(string tag, SurgeryReport mdo)
 {
     this.tag = tag;
     if (mdo == null)
     {
         this.count = 0;
         return;
     }
     this.rpts    = new SurgeryReportTO[1];
     this.rpts[0] = new SurgeryReportTO(mdo);
     this.count   = 1;
 }
Ejemplo n.º 2
0
        internal SurgeryReport toSurgeryReport(IDataReader reader)
        {
            SiteId facility = new SiteId()
            {
                Id = DbReaderUtil.getValue(reader, reader.GetOrdinal("station__no"))
            };

            SurgeryReport report = new SurgeryReport()
            {
                Id        = DbReaderUtil.getValue(reader, reader.GetOrdinal("id")),
                Title     = DbReaderUtil.getValue(reader, reader.GetOrdinal("principal_procedure")),
                Timestamp = DbReaderUtil.getValue(reader, reader.GetOrdinal("dt")),
                Facility  = facility
            };

            return(report);
        }
Ejemplo n.º 3
0
 public SurgeryReportTO(SurgeryReport mdo)
 {
     this.id        = mdo.Id;
     this.title     = mdo.Title;
     this.timestamp = mdo.Timestamp;
     if (mdo.Author != null)
     {
         this.author = new AuthorTO(mdo.Author);
     }
     this.text = mdo.Text;
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     this.status                 = mdo.Status;
     this.specialty              = new TaggedText(mdo.Specialty);
     this.preOpDx                = mdo.PreOpDx;
     this.postOpDx               = mdo.PostOpDx;
     this.labWork                = mdo.LabWork;
     this.dictationTimestamp     = mdo.DictationTimestamp;
     this.transcriptionTimestamp = mdo.TranscriptionTimestamp;
 }
Ejemplo n.º 4
0
 internal SurgeryReport[] toSurgeryReports(string response, bool fWithText)
 {
     if (response == "")
     {
         return null;
     }
     ArrayList lst = new ArrayList();
     SurgeryReport rec = null;
     string[] lines = StringUtils.split(response, StringUtils.CRLF);
     for (int i = 0; i < lines.Length; i++)
     {
         if (lines[i] == "")
         {
             continue;
         }
         string[] flds = StringUtils.split(lines[i],StringUtils.CARET);
         rec = new SurgeryReport();
         string[] parts = StringUtils.split(flds[0], StringUtils.SEMICOLON);
         rec.Facility = new SiteId(parts[0], parts[1]);
         rec.Id = flds[1];
         rec.Timestamp = flds[2];
         rec.Title = flds[3];
         rec.Author = new Author("",flds[4],"");
         if (fWithText)
         {
             rec.Text = getSurgeryReportText(cxn.Pid, rec.Id);
         }
         lst.Add(rec);
     }
     return (SurgeryReport[])lst.ToArray(typeof(SurgeryReport));
 }