ValidationContext validationContext = new NoValidation(); parser.setValidationContext( validationContext ); Message msg = parser.parse( message ); Structure structure = msg.get( "MSH" ); String messageType = null;
Message message = data.parser.parse( messageString ); List<HL7Value> values = HL7KettleParser.extractValues( message );
ValidationContext validationContext = new NoValidation(); parser.setValidationContext( validationContext ); Message msg = parser.parse( message ); Message ack = msg.generateACK();
/** * {@inheritDoc } */ @Override public void parse(Type type, String string, EncodingCharacters encodingCharacters) throws HL7Exception { primaryParser.parse(type, string, encodingCharacters); }
/** * {@inheritDoc } */ @Override public void parse(Type type, String string, EncodingCharacters encodingCharacters) throws HL7Exception { primaryParser.parse(type, string, encodingCharacters); }
/** * {@inheritDoc } */ @Override public void parse(Segment segment, String string, EncodingCharacters encodingCharacters) throws HL7Exception { primaryParser.parse(segment, string, encodingCharacters); }
/** * {@inheritDoc } */ @Override public void parse(Segment segment, String string, EncodingCharacters encodingCharacters) throws HL7Exception { primaryParser.parse(segment, string, encodingCharacters); }
@Override public void parse(Message message, String string) throws HL7Exception { primaryParser.parse(message, string); }
@Override public void parse(Message message, String string) throws HL7Exception { primaryParser.parse(message, string); }
/** * {@inheritDoc } */ public void parse(String string) throws HL7Exception { clear(); getParser().parse(this, string); }
/** * {@inheritDoc } */ public void parse(String string) throws HL7Exception { clear(); getParser().parse(this, string); }
/** * {@inheritDoc} */ @Override public Message parse(String theMessage) throws HL7Exception { Message retVal = super.parse(theMessage); Parser parser = getAppropriateParser(theMessage); retVal.setParser(parser); return retVal; }
/** * {@inheritDoc} */ @Override public Message parse(String theMessage) throws HL7Exception { Message retVal = super.parse(theMessage); Parser parser = getAppropriateParser(theMessage); retVal.setParser(parser); return retVal; }
/** * Marshals the request, sends it to the route, and unmarshals the response. */ @Override public void process(Exchange exchange) throws Exception { // marshal Message message = exchange.getIn(); ca.uhn.hl7v2.model.Message request = message.getBody(ca.uhn.hl7v2.model.Message.class); message.setBody(request.toString()); // run the route getWrappedProcessor().process(exchange); // unmarshal message = Exchanges.resultMessage(exchange); String responseString = message.getBody(String.class); message.setBody(getEndpoint().getHl7v2TransactionConfiguration().getParser().parse(responseString)); } }
/** * {@inheritDoc } */ @Override public Message parse(String message) throws HL7Exception { if (myLegacyMode != null && myLegacyMode) { @SuppressWarnings("deprecation") OldPipeParser oldPipeParser = new OldPipeParser(getFactory()); return oldPipeParser.parse(message); } return super.parse(message); }
/** * {@inheritDoc } */ @Override public Message parse(String message) throws HL7Exception { if (myLegacyMode != null && myLegacyMode) { @SuppressWarnings("deprecation") OldPipeParser oldPipeParser = new OldPipeParser(getFactory()); return oldPipeParser.parse(message); } return super.parse(message); }
/** * {@inheritDoc } */ public void parse(String string) throws HL7Exception { if (data != null) { data.clear(); } getMessage().getParser().parse(this, string, EncodingCharacters.getInstance(getMessage())); }
/** * {@inheritDoc } */ public void parse(String string) throws HL7Exception { if (data != null) { data.clear(); } getMessage().getParser().parse(this, string, EncodingCharacters.getInstance(getMessage())); }
/** * {@inheritDoc } */ public void parse(String string) throws HL7Exception { clear(); getMessage().getParser().parse(this, string, EncodingCharacters.getInstance(getMessage())); }
/** * {@inheritDoc } */ public void parse(String string) throws HL7Exception { clear(); getMessage().getParser().parse(this, string, EncodingCharacters.getInstance(getMessage())); }