| @@ -141,8 +141,7 @@ public class HL7Sender { | |||||
| } catch (InterruptedException e) { | } catch (InterruptedException e) { | ||||
| e.printStackTrace (); | e.printStackTrace (); | ||||
| } | } | ||||
| /* | |||||
| /* | |||||
| * Close the connection when you are done with it. | * Close the connection when you are done with it. | ||||
| */ | */ | ||||
| @@ -178,22 +177,6 @@ public class HL7Sender { | |||||
| System.out.println (encodedMessage); | System.out.println (encodedMessage); | ||||
| } | } | ||||
| /** | |||||
| * | |||||
| * @param msg | |||||
| */ | |||||
| public void validateMessage(Message msg) { | |||||
| HapiContext context = new DefaultHapiContext(); | |||||
| context.setValidationContext(ValidationContextFactory.defaultValidation()); | |||||
| PipeParser parser = context.getPipeParser(); | |||||
| try { | |||||
| parser.encode(msg); | |||||
| } catch (HL7Exception e) { | |||||
| System.out.println("invaid message!" +e); | |||||
| } | |||||
| } | |||||
| } | } | ||||