示例#1
0
        public string ddiol(string file, string fld, string attribute)
        {
            string arg = "$P(D EN^DDIOL($$GET1^DID(\"9000010.23\",\".02\",\"\",\"LABEL\")),U,1)";
            string rtn = VistaUtils.getVariableValue(cxn, arg);

            return(rtn);
        }
示例#2
0
        internal bool hasMoreProstheticClaimData(string claimId)
        {
            string arg      = "$D(^RMPR(660," + claimId + ",0))";
            string response = VistaUtils.getVariableValue(cxn, arg);

            return(response == "1");
        }
示例#3
0
        public string getFieldAttribute(string file, string fld, string attribute)
        {
            string arg = "$P($$GET1^DID(\"" + file + "\",\"" + fld + "\",\"\",\"" + attribute + "\"),U,1)";
            string rtn = VistaUtils.getVariableValue(cxn, arg);

            return(rtn);
        }
示例#4
0
        public FileHeader getFileHeader(string globalName)
        {
            string arg      = "$G(" + globalName + "0))";
            string response = VistaUtils.getVariableValue(cxn, arg);

            return(toFileHeader(response));
        }
示例#5
0
        public string getRpcName(string rpcIEN)
        {
            string arg      = "$P($G(^XWB(8994," + rpcIEN + ",0)),U,1)";
            string response = VistaUtils.getVariableValue(cxn, arg);

            return(response);
        }
示例#6
0
        public RemoteApplicationRecord getRecord(AbstractConnection cxn, KeyValuePair <string, string> param)
        {
            string ien = "";
            string arg = "";

            if (param.Key == "IEN")
            {
                ien = param.Value;
            }
            else if (param.Key == "NAME")
            {
                arg = "$O(^XWB(8994.5,\"B\",\"" + param.Value + "\",0))";
                ien = VistaUtils.getVariableValue(cxn, arg);
            }
            else if (param.Key == "APPLICATIONCODE")
            {
                arg = "$O(^XWB(8994.5,\"ACODE\",\"" + param.Value + "\",0))";
                ien = VistaUtils.getVariableValue(cxn, arg);
            }
            else
            {
                throw new ArgumentException("Invalid field name");
            }
            if (ien == "")
            {
                return(null);
            }
            arg = "$G(^XWB(8994.5," + ien + ",0))";
            string response = VistaUtils.getVariableValue(cxn, arg);

            return(toRecord(cxn, ien, response));
        }
示例#7
0
        internal void addMoreProstheticClaimData(ProstheticClaim claim)
        {
            if (!hasMoreProstheticClaimData(claim.ItemId))
            {
                return;
            }
            string arg = "$P($G(^RMPR(660," + claim.ItemId + ",1)),U,4)" + "_U_" +
                         "$P($G(^RMPR(660," + claim.ItemId + ",0)),U,16)" + "_U_" +
                         "$P($G(^RMPR(660," + claim.ItemId + ",10)),U,9)";
            string response = VistaUtils.getVariableValue(cxn, arg);

            string[] flds = response.Split(new char[] { '^' });
            claim.Cost      = flds[1];
            claim.ConsultId = flds[2];

            arg            = "$P($G(^RMPR(661.1," + flds[0] + ",0)),U,2)";
            response       = VistaUtils.getVariableValue(cxn, arg);
            claim.ItemName = response;
        }
示例#8
0
 public string getVariableValue(string arg)
 {
     return(VistaUtils.getVariableValue(cxn, arg));
 }
示例#9
0
        internal string getXtmpToken(string token)
        {
            string arg = "$G(^XTMP(\"" + token + "\",1))";

            return(VistaUtils.getVariableValue(Cxn, arg));
        }