Package ca.uhn.hl7v2.validation.impl

Examples of ca.uhn.hl7v2.validation.impl.ConformanceProfileRule


    /**
     * Creates a new instance of ProfileTestApplication that tests using profiles
     * declared in each message (if any)
     */
    public ProfileTestApplication() {
        rule = new ConformanceProfileRule();
    }
View Full Code Here


     * @param profileID the ID of the profile against which to test messages;
     *      null means use profiles declared in the message (if any)
     */
    public ProfileTestApplication(String profileID) {
        this.profileID = profileID;
        rule = new ConformanceProfileRule(profileID);
    }
View Full Code Here

   *
     * @param profileId conformance profile id (file name)
   * @return this instance to build more rules
   */
  public MessageRuleBuilder conformance(String profileId) {
    return test(prepareRule(new ConformanceProfileRule(profileId)));
  }
View Full Code Here

    /**
     * Creates a new instance of ProfileTestApplication that tests using profiles
     * declared in each message (if any)
     */
    public ProfileTestApplication() {
        rule = new ConformanceProfileRule();
    }
View Full Code Here

     * @param profileID the ID of the profile against which to test messages;
     *      null means use profiles declared in the message (if any)
     */
    public ProfileTestApplication(String profileID) {
        this.profileID = profileID;
        rule = new ConformanceProfileRule(profileID);
    }
View Full Code Here

   *
     * @param profileId conformance profile id (file name)
   * @return this instance to build more rules
   */
  public MessageRuleBuilder conformance(String profileId) {
    return test(prepareRule(new ConformanceProfileRule(profileId)));
  }
View Full Code Here

    private ValidationContext defaultContext;
    private ValidationContextImpl customContext;

    @Override
    protected void doPreSetup() throws Exception {
        defaultContext = new DefaultValidation();
        customContext = new DefaultValidation();
        @SuppressWarnings("serial")
        MessageRule rule = new MessageRule() {

            @Override
            public String getDescription() {
View Full Code Here

            public ValidationException[] apply(Message msg) {
                return test(msg);
            }

        };
        MessageRuleBinding binding = new MessageRuleBinding("2.4", "ADT", "A01", rule);
        customContext.getMessageRuleBindings().add(binding);
    }
View Full Code Here

        // Helper class
    }

    private static Parser getParser() {
        PipeParser pipeParser = new PipeParser();
        pipeParser.setValidationContext(new NoValidation());
        return pipeParser;
    }
View Full Code Here

     * @return XML String
     */
    private String serializeHL7toXML(String rowHL7) {
        Parser xmlParser = new DefaultXMLParser();
        Parser ediParser = new PipeParser();
        ediParser.setValidationContext(new NoValidation());
        String xmlDoc = null;
        try {
            Message message = ediParser.parse(rowHL7);
            ConformanceProfileRule rule = new ConformanceProfileRule();
        ValidationException[] exs = rule.test(message);
View Full Code Here

TOP

Related Classes of ca.uhn.hl7v2.validation.impl.ConformanceProfileRule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.