internal MdoQuery buildGetLrDfnRequest(string dfn) { VistaUtils.CheckRpcParams(dfn); string arg = "$G(^DPT(\"" + dfn + "\",\"LR\"))"; return(VistaUtils.buildGetVariableValueRequest(arg)); }
internal MdoQuery buildGetOrderNumberForConsultRequest(string consultIen) { VistaUtils.CheckRpcParams(consultIen); VistaQuery vq = new VistaQuery("ORQQCN GET ORDER NUMBER"); vq.addParameter(vq.LITERAL, consultIen); return(vq); }
internal MdoQuery buildGetConsultsForPatientRequest(string dfn) { VistaUtils.CheckRpcParams(dfn); VistaQuery vq = new VistaQuery("ORQQCN LIST"); vq.addParameter(vq.LITERAL, dfn); return(vq); }
internal MdoQuery buildGetExamListRequest(string dfn) { VistaUtils.CheckRpcParams(dfn); VistaQuery vq = new VistaQuery("ORWRA IMAGING EXAMS1"); vq.addParameter(vq.LITERAL, dfn); return(vq); }
internal MdoQuery buildGetConsultNoteRequest(string consultIen) { VistaUtils.CheckRpcParams(consultIen); VistaQuery vq = new VistaQuery("ORQQCN DETAIL"); vq.addParameter(vq.LITERAL, consultIen); return(vq); }
internal MdoQuery buildGetLatestVitalSignsRequest(string dfn) { VistaUtils.CheckRpcParams(dfn); VistaQuery vq = new VistaQuery("ORQQVI VITALS"); vq.addParameter(vq.LITERAL, dfn); return(vq); }
// Do not check DFN here. This is called by getChemHemReports which checks DFN. // Also, all this will be replaced by the NHIN RPC. internal MdoQuery buildGetChemHemReportRequest(string dfn, string nextDate) { VistaUtils.CheckRpcParams(dfn); //if (String.IsNullOrEmpty(nextDate) || !VistaTimestamp.isValid(nextDate)) //{ // throw new MdoException(MdoExceptionCode.ARGUMENT_INVALID, "Invalid 'next' date: " + nextDate); //} VistaQuery vq = new VistaQuery("ORWLRR INTERIMG"); vq.addParameter(vq.LITERAL, dfn); vq.addParameter(vq.LITERAL, nextDate); vq.addParameter(vq.LITERAL, "1"); vq.addParameter(vq.LITERAL, "1"); return(vq); }
internal MdoQuery buildGetAnatomicPathologyReportsRequest(string dfn, string fromDate, string toDate, int nrpts) { VistaUtils.CheckRpcParams(dfn, fromDate, toDate); return(VistaUtils.buildReportTextRequest(dfn, fromDate, toDate, nrpts, "OR_APR:ANATOMIC PATHOLOGY~SP;ORDV02A;0;")); }
internal MdoQuery buildGetMicrobiologyReportsRequest(string dfn, string fromDate, string toDate, int nrpts) { VistaUtils.CheckRpcParams(dfn, fromDate, toDate); return(VistaUtils.buildReportTextRequest(dfn, fromDate, toDate, nrpts, "OR_MIC:MICROBIOLOGY~MI;ORDV05;38;")); }
internal MdoQuery buildGetVitalSignsRdvRequest(string dfn) { VistaUtils.CheckRpcParams(dfn); return(VistaUtils.buildReportTextRequest_AllResults(dfn, "OR_VS:VITAL SIGNS~VS;ORDV04;47;")); }
internal MdoQuery buildGetBloodTransfusionReportRequest(string dfn, string fromDate, string toDate, int nrpts) { VistaUtils.CheckRpcParams(dfn, fromDate, toDate); return(VistaUtils.buildReportTextRequest(dfn, fromDate, toDate, nrpts, "OR_BT:BLOOD TRANSFUSION~;;36;")); }
internal MdoQuery buildGetBloodAvailabilityReportRequest( string dfn, string fromDate, string toDate, int nrpts) { VistaUtils.CheckRpcParams(dfn, fromDate, toDate); return(VistaUtils.buildReportTextRequest(dfn, fromDate, toDate, nrpts, "OR_BA:BLOOD AVAILABILITY~;;45;")); }
internal MdoQuery buildGetElectronMicroscopyReportRequest(string dfn, string fromDate, string toDate, int nrpts) { VistaUtils.CheckRpcParams(dfn, fromDate, toDate); return(VistaUtils.buildReportTextRequest(dfn, fromDate, toDate, nrpts, "OR_EM:ELECTRON MICROSCOPY~EM;ORDV02A;0;")); }
internal MdoQuery buildGetCytopathologyReportRequest(string dfn) { VistaUtils.CheckRpcParams(dfn); return(VistaUtils.buildReportTextRequest(dfn, "", "", 0, "26:CYTOPATHOLOGY~;;0")); }
internal MdoQuery buildGetCytologyReportsRequest(string dfn, string fromDate, string toDate, int nrpts) { VistaUtils.CheckRpcParams(dfn, fromDate, toDate); return(VistaUtils.buildReportTextRequest(dfn, fromDate, toDate, nrpts, "OR_CY:CYTOLOGY~CY;ORDV02A;0;")); }
internal MdoQuery buildGetBloodBankReportRequest(string dfn) { VistaUtils.CheckRpcParams(dfn); return(VistaUtils.buildReportTextRequest_AllResults(dfn, "2:BLOOD BANK REPORT~;;0")); }
internal MdoQuery buildGetAutopsyReportRequest(string dfn) { VistaUtils.CheckRpcParams(dfn); return(VistaUtils.buildReportTextRequest(dfn, "", "", 0, "OR_AU:AUTOPSY~;;0")); }
internal MdoQuery buildGetVitalSignsRdvRequest(string dfn, string fromDate, string toDate, int maxRex) { VistaUtils.CheckRpcParams(dfn); return(VistaUtils.buildReportTextRequest(dfn, fromDate, toDate, maxRex, "OR_VS:VITAL SIGNS~VS;ORDV04;47;")); }
internal MdoQuery buildGetSurgicalPathologyReportsRequest(string dfn, string fromDate, string toDate, int nrpts) { VistaUtils.CheckRpcParams(dfn, fromDate, toDate); return(VistaUtils.buildReportTextRequest(dfn, fromDate, toDate, nrpts, "OR_SP:SURGICAL PATHOLOGY~SP;ORDV02A;0;")); }