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; }
public TaggedSurgeryReportArray(string tag, SurgeryReport[] mdos) { this.tag = tag; if (mdos == null) { this.count = 0; return; } this.rpts = new SurgeryReportTO[mdos.Length]; for (int i = 0; i < mdos.Length; i++) { this.rpts[i] = new SurgeryReportTO(mdos[i]); } this.count = rpts.Length; }
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; }