private void txtMessage_TextChanged(object sender, EventArgs e) { Interpreter = new MshSegmentInterpreter(txtMessage.Text); txtField.Text = Interpreter.FieldSeparator.ToString(); txtComponent.Text = Interpreter.ComponentSeparator.ToString(); txtFieldRepeat.Text = Interpreter.FieldRepeat.ToString(); txtEscape.Text = Interpreter.EscapeCharacter.ToString(); txtSubComponent.Text = Interpreter.SubcomponentSeparator.ToString(); chkValid.CheckState = Interpreter.IsValid ? CheckState.Checked : CheckState.Unchecked; }
public void GivenTheMessage(string hl7) { _mshSegmentInterpreter = MshSegmentInterpreter.Parse(hl7); }
public void GivenAnMSHSegment(string mshSegment) { _mshSegmentInterpreter = new MshSegmentInterpreter(mshSegment); }