Esempio n. 1
0
        private void buildVisit()
        {
            string read = text.Read();

            //MessageBox.Show(read);
            String[] substrings = splitter(read, ';');
            date   = rightEqual(substrings[0]);
            result = rightEqual(substrings[1]);
            buildOptionals(substrings);
        }
Esempio n. 2
0
        private void buildOptionalFirst()
        {
            baseTags = new textParser("visitTemplate.txt", "");
            String readText = baseTags.Read();

            String[] bricks = splitter(readText, ';');
            for (int i = 0; i < bricks.Length; i++)
            {
                OptionalInfo newOI = new OptionalInfo(leftEqual(bricks[i]), rightEqual(bricks[i]));
                listOfOptionalInfo.Add(newOI);
            }
        }
Esempio n. 3
0
        private void buildOptionalFirst()
        {
            Char delimiterEqual = '=';

            baseTags = new textParser("patientTemplate.txt", "");
            String readText           = baseTags.Read();
            Char   delimiterSemicolon = ';';

            String [] bricks = readText.Split(delimiterSemicolon);
            for (int i = 0; i < bricks.Length; i++)
            {
                OptionalInfo newOI = new OptionalInfo(leftEqual(bricks[i]), rightEqual(bricks[i]));
                listOfOptionalInfo.Add(newOI);
            }
        }
Esempio n. 4
0
        private void addOptionalNew()// if the patient is new..
        {
            int indexRow = 0;

            baseTags = new textParser("patientTemplate.txt", "");
            String readText           = baseTags.Read();
            Char   delimiterSemicolon = ';';

            String[] bricks = splitter(readText, delimiterSemicolon);
            for (int i = 0; i < bricks.Length; i++)
            {
                this.optionalsGrid.Rows.Add();
                this.optionalsGrid.Rows[indexRow].Cells[0].Value = leftEqual(bricks[i]);
                indexRow++;
            }
        }
Esempio n. 5
0
        private void buildPatient()
        {
            String readText  = text.Read();
            Char   delimiter = ';';

            String[] substrings = splitter(readText, delimiter);
            CF      = rightEqual(substrings[0]);
            name    = rightEqual(substrings[1]);
            surname = rightEqual(substrings[2]);
            date    = rightEqual(substrings[3]);
            sex     = rightEqual(substrings[4]);
            notes   = rightEqual(substrings[5]);
            buildOptionalInfo(substrings);
            id = extractId();
            buildVisits();
        }