buildRequest() private method

private buildRequest ( ) : MdoQuery
return MdoQuery
コード例 #1
0
ファイル: VistaLabsDao.cs プロジェクト: govtmirror/RAPTOR-1
        internal MdoQuery buildGetAllChemHemTestsQuery(String lrDfn)
        {
            DdrLister ddr = new DdrLister(this.cxn);

            ddr.Fields = "";
            ddr.File   = "63.04";
            ddr.Flags  = "IP";
            ddr.Iens   = String.Concat(",", lrDfn, ",");
            ddr.Xref   = "#";
            ddr.Id     = "";
            return(ddr.buildRequest());
        }
コード例 #2
0
ファイル: VistaLabsDao.cs プロジェクト: govtmirror/RAPTOR-1
        internal MdoQuery buildGetDfnFromLrdfnRequest(string lrdfn)
        {
            DdrLister ddr = new DdrLister(this.cxn);

            ddr.File   = "2";
            ddr.Fields = ".01";
            ddr.Flags  = "IP";
            ddr.Max    = "1";
            ddr.Xref   = "#";
            ddr.Screen = String.Concat("I $P($G(^(\"LR\")),U,1)=", lrdfn);
            return(ddr.buildRequest());
        }
コード例 #3
0
        public CrudOperation readRange(String file, String fields, String iens, String flags, String xref, String maxRex, String from, String part, String screen, String identifier)
        {
            DdrLister ddr = new DdrLister(this._cxn)
            {
                File   = file,
                Fields = fields,
                Iens   = iens,
                Flags  = flags,
                Xref   = xref,
                Max    = maxRex,
                From   = from,
                Part   = part,
                Screen = screen,
                Id     = identifier
            };
            DateTime startRequest   = DateTime.Now;
            String   rawRpcResponse = ddr.execute(ddr.buildRequest());

            String[] parsed     = ddr.buildResult(rawRpcResponse);
            DateTime endRequest = DateTime.Now;

            CrudOperation result = new CrudOperation()
            {
                RPC = new RPC()
                {
                    Name           = ddr.buildRequest().RpcName,
                    RequestString  = ddr.buildRequest().buildMessage(),
                    ResponseString = rawRpcResponse,
                    RequestTime    = startRequest,
                    ResponseTime   = endRequest
                },
                Result = parsed,
                Type   = CrudOperationType.READ
            };

            return(result);
        }
コード例 #4
0
ファイル: VistaPatientDao.cs プロジェクト: OSEHRA/mdo
        internal MdoQuery buildGetTreatingFacilityIdsRequest(string dfn)
        {
            Decimal lDfn = 0;
            if (!Decimal.TryParse(dfn, out lDfn))
            {
                throw new MdoException(MdoExceptionCode.ARGUMENT_INVALID_NUMERIC_REQUIRED, "Patient ID must be numeric");
            }

            DdrLister ddr = new DdrLister(this.cxn);
            ddr.File = "391.91";
            ddr.Fields = ".01;.02";
            ddr.From = dfn.Substring(0, dfn.Length - 1);
            ddr.Part = dfn;
            ddr.Xref = "B";
            ddr.Flags = "IP";
            ddr.Id = "S ID=$G(^(1,1,0)) D EN^DDIOL(ID)";

            return ddr.buildRequest();
        }