Esempio n. 1
0
    public static SqlString ufnScubMessage(String HL7Message, String XMLReplacementValues)
    {
        ParseAndScrub myParserScubber = new ParseAndScrub(Convert.ToChar("."), Convert.ToChar("#"));

        myParserScubber.LoadMessage(HL7Message);
        return(myParserScubber.ScrubMessage(XMLReplacementValues));
    }
Esempio n. 2
0
    public static SqlString ufnSelectHL7Value(string HL7Message, String HL7Location)
    {
        ParseAndScrub myParserScubber = new ParseAndScrub(Convert.ToChar("."), Convert.ToChar("#"));

        myParserScubber.LoadMessage(HL7Message);
        String returnValue;

        returnValue = "";
        System.Collections.Generic.List <String> Values = myParserScubber.FindParseValue(HL7Location);
        foreach (string v in Values)
        {
            if (returnValue == "")
            {
                returnValue = v;
            }
            else
            {
                returnValue = returnValue + ", " + v;
            }
        }
        return(returnValue);
    }