Пример #1
0
        public void adjustForNumericSearch_Empty()
        {
            string target = "";
            string result = VistaUtils.adjustForNumericSearch(target);

            Assert.IsNull(result);
        }
Пример #2
0
        public void adjustForNumericSearch_NAN()
        {
            string target = "asdfjk12";
            string result = VistaUtils.adjustForNumericSearch(target);

            Assert.IsNull(result);
        }
Пример #3
0
        public void adjustForNumericSearch()
        {
            string target = "404";
            string result = VistaUtils.adjustForNumericSearch(target);

            Assert.AreEqual("403", result);
        }
Пример #4
0
        public void TestAdjustForNumericSearchInt64()
        {
            string longDfn = "5587247575";
            string output  = VistaUtils.adjustForNumericSearch(longDfn);

            Assert.AreEqual("5587247574", output);
        }
Пример #5
0
        public void adjustForNumericSearch_Null()
        {
            string target = null;
            string result = VistaUtils.adjustForNumericSearch(target);

            Assert.AreEqual("-1", result);
        }
Пример #6
0
        internal DdrLister buildGetProstheticClaimsForPatientQuery(string dfn)
        {
            DdrLister query = new DdrLister(cxn);

            query.File   = "356";
            query.Fields = ".02;.02E;.06;.09;1.01;1.03";
            query.Flags  = "IP";
            query.Xref   = "C";
            query.From   = VistaUtils.adjustForNumericSearch(dfn);
            query.Part   = dfn;
            query.Screen = "I $P(^(0),U,9)'=\"\"";
            return(query);
        }
Пример #7
0
        internal DdrLister buildGetProstheticClaimsForPatientQuery(string dfn)
        {
            DdrLister query = new DdrLister(cxn);

            query.File   = "356";
            query.Fields = ".02;.02E;.06;.09;1.01;1.03";
            query.Flags  = "IP";
            query.Xref   = "C";
            query.From   = VistaUtils.adjustForNumericSearch(dfn);
            query.Part   = dfn;
            query.Screen = "I $P(^(0),U,9)'=\"\"";
            //query.Id = "S P1=$P(^(0),U,9) S P2=$P($G(^RMPR(660,P1,1)),U,4) S X=$P($G(^RMPR(661.1,P2,0)),U,2) S C=$P($G(^RMPR(660,P1,0)),U,16) S Y=$P($G(^RMPR(660,P1,10)),U,9) D EN^DDIOL(X_U_C_U_Y)";
            return(query);
        }