예제 #1
0
        public Dictionary <string, string> getUpdateTestDetails(string PID)
        {
            string patternSugar     = @"BS";
            string patternCellCount = @"BCC";
            string patternPlatelets = @"PC";
            string patternLipid     = @"LC";

            Match sugar     = Regex.Match(testID, patternSugar);
            Match cellCount = Regex.Match(testID, patternCellCount);
            Match platelet  = Regex.Match(testID, patternPlatelets);

            Match Lipid = Regex.Match(testID, patternLipid);

            var bloodtest = new BloodTest();
            var lipid     = new LipidTest();

            if (sugar.Success)
            {
                return(bloodtest.getSugarValues(PID));
            }
            else if (cellCount.Success)
            {
                return(bloodtest.getBloodCellCountValues(PID));
            }
            else if (platelet.Success)
            {
                return(bloodtest.getPlateletValues(PID));
            }
            else if (Lipid.Success)
            {
                return(lipid.getCholesterolTestData(PID));
            }

            return(null);
        }
예제 #2
0
        public Dictionary <string, string> identifyTest()
        {
            string patternSugar     = @"BS";
            string patternCellCount = @"BCC";
            string patternPlatelets = @"PC";
            string patternLipid     = @"LC";

            Match sugar     = Regex.Match(testID, patternSugar);
            Match cellCount = Regex.Match(testID, patternCellCount);
            Match platelet  = Regex.Match(testID, patternPlatelets);

            Match Lipid = Regex.Match(testID, patternLipid);


            if (sugar.Success)
            {
                return(BloodTest.identifyBloodTests("sugar"));
            }
            else if (cellCount.Success)
            {
                return(BloodTest.identifyBloodTests("cellcount"));
            }

            else if (platelet.Success)
            {
                return(BloodTest.identifyBloodTests("platelet"));
            }

            else if (Lipid.Success)
            {
                return(LipidTest.identifyLipidTests("lipid"));
            }

            else
            {
                return(null);
            }
        }