示例#1
0
        private void HandleFile(string path)
        {
            string content = string.Empty;

            using (StreamReader sr = new StreamReader(path))
                content = sr.ReadToEnd();

            // Handle the message
            HL7RequestInfo info = parser.ParseRequestInfo(content, "File");

            ExecuteCommand(session, info);

            // Delete or archive the message
            RemoveFile(path, info);
        }
示例#2
0
 public HL7RequestInfo ParseHL7RawMessage(string rawMessagem, string Protocol)
 {
     // Read HL7 data and parse HL7 data.
     hl7Parser = new HL7RequestInfoParser();
     return(hl7Parser.ParseRequestInfo(rawMessagem, "Http"));
 }