// TBD: Build latest from getVitalSigns? public VitalSign[] getLatestVitalSigns(string pid) { if (!VistaUtils.isWellFormedIen(pid)) { throw new MdoException(MdoExceptionCode.ARGUMENT_INVALID, "Invalid DFN: "); } return(null); }
internal MdoQuery buildGetVitalSignsRequest(string dfn) { return(VistaUtils.buildReportTextRequest_AllResults(dfn, "OR_DODVS:VITAL SIGNS~VS;ORDV04;47;")); }
internal string buildGetVitalSignsRequest(string dfn, string fromDate, string toDate, int maxRex) { return(VistaUtils.buildReportTextRequest(dfn, fromDate, toDate, maxRex, "OR_DODVS:VITAL SIGNS~VS;ORDV04;47;").buildMessage()); }
internal Note[] toNotes(string response) { if (String.IsNullOrEmpty(response)) { return(null); } string[] lines = StringUtils.split(response, '\n'); ArrayList lst = new ArrayList(); Note note = null; string scannedDoc = ""; bool fInTextPortion = false; for (int i = 0; i < lines.Length; i++) { if (String.IsNullOrEmpty(lines[i])) { continue; } string[] flds = StringUtils.split(lines[i], StringUtils.CARET); if (flds.Length == 1 && fInTextPortion) { scannedDoc += lines[i] + "\n"; continue; } if (flds.Length <= 1) { continue; } if (flds[1] == "[+]") { note.Text = VistaUtils.removeCtlChars(note.Text); lst.Add(note); fInTextPortion = false; } else if (flds[0] == "1") { fInTextPortion = false; note = new Note(); string[] subflds = StringUtils.split(flds[1], StringUtils.SEMICOLON); if (subflds.Length == 2) { note.SiteId = new SiteId(subflds[1], subflds[0]); } else if (flds[1] != "") { note.SiteId = new SiteId(_cxn.DataSource.SiteId.Id, flds[1]); } else { note.SiteId = _cxn.DataSource.SiteId; } } else if (flds[0] == "2") { note.Id = flds[1]; } else if (flds[0] == "3") { note.Timestamp = VistaTimestamp.toUtcFromRdv(flds[1]); } else if (flds[0] == "4") { note.LocalTitle = flds[1]; } else if (flds[0] == "5") { note.Author = new Author("", flds[1], ""); } else if (flds[0] == "6") { fInTextPortion = true; if (!String.IsNullOrEmpty(scannedDoc)) { note.Text += scannedDoc + "\n"; scannedDoc = ""; } note.Text += flds[1] + "\n"; if (flds[1].StartsWith("STANDARD TITLE")) { string[] parts = StringUtils.split(flds[1], StringUtils.COLON); note.StandardTitle = parts[1].Trim(); } } } Note[] notes = (Note[])lst.ToArray(typeof(Note)); return(notes); }