コード例 #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));
    }
コード例 #2
0
        private void btnReplace_Click(object sender, EventArgs e)
        {
            String ReplaceValues = "<Root><ReplaceValues><HL7ValueLocation>PID5.2</HL7ValueLocation><ReplacementValue>MICKEY</ReplacementValue></ReplaceValues><ReplaceValues><HL7ValueLocation>PID5.1</HL7ValueLocation><ReplacementValue>MOUSE</ReplacementValue></ReplaceValues><ReplaceValues><HL7ValueLocation>PID5.3</HL7ValueLocation><ReplacementValue></ReplacementValue></ReplaceValues><ReplaceValues><HL7ValueLocation>PID3.1</HL7ValueLocation><ReplacementValue>123456789</ReplacementValue></ReplaceValues><ReplaceValues><HL7ValueLocation>PID11.1</HL7ValueLocation><ReplacementValue>1 DISNEY WAY</ReplacementValue></ReplaceValues><ReplaceValues><HL7ValueLocation>PID11.3</HL7ValueLocation><ReplacementValue>TOMORROW LAND</ReplacementValue></ReplaceValues><ReplaceValues><HL7ValueLocation>PID11.4</HL7ValueLocation><ReplacementValue>CA</ReplacementValue></ReplaceValues><ReplaceValues><HL7ValueLocation>PID11.5</HL7ValueLocation><ReplacementValue>99999</ReplacementValue></ReplaceValues></Root>";


            txtScubbedMessage.Text = myParserScubber.ScrubMessage(ReplaceValues);
            Clipboard.SetText(myParserScubber.HL7Message);
        }