hapiContext.setValidationContext((ca.uhn.hl7v2.validation.ValidationContext) ValidationContextFactory.noValidation());
/** * @param theVersion * an HL7 version * @return true if this binding applies to the given version (ie * getVersion() matches or is *) */ public boolean appliesToVersion(String theVersion) { return applies(getVersion(), theVersion); }
protected T prepareRule(T rule) { if (rule instanceof RuleSupport) { RuleSupport<?> rs = (RuleSupport<?>) rule; if (description != null) rs.setDescription(description); if (sectionReference != null) rs.setSectionReference(sectionReference); rs.setSeverity(severity); } return rule; }
/** * Creates an instance that tests messages against whatever profiles they declare in * MSH-21. The ID declared in MSH-21 is evaluated in a way that the corresponding * profile file is expected to be BASEDIR/profiles/ID.xml. */ public ConformanceProfileRule() { super(); setDescription("Unknown segments found in message"); setSectionReference("HL7 2.5 section 2.12"); }
public static ValidationContext fromBuilder(String ruleBuilderClassName) throws HL7Exception { return new ValidationContextImpl(customBuilder(ruleBuilderClassName)); }
data.parser.setValidationContext( new NoValidation() );
public ValidationExceptionHandler<Boolean> getNewInstance(HapiContext context) { return new SimpleValidationExceptionHandler(context); } }
@Override protected boolean removeEldestEntry(Map.Entry<String, RuntimeProfile> eldest) { return size() > 100; } };
public boolean test(String value) { ValidationException[] exceptions = apply(value); return exceptions == null || exceptions.length == 0; }
protected Collection<RuleBinding<T>> activate(Collection<RuleBinding<T>> bindings) { for (RuleBinding<T> ruleBinding : bindings) { ruleBinding.setActive(active); } return bindings; }
protected T prepareRule(T rule) { if (rule instanceof RuleSupport) { RuleSupport<?> rs = (RuleSupport<?>) rule; if (description != null) rs.setDescription(description); if (sectionReference != null) rs.setSectionReference(sectionReference); rs.setSeverity(severity); } return rule; }
/** * @param theVersion * an HL7 version * @return true if this binding applies to the given version (ie * getVersion() matches or is *) */ public boolean appliesToVersion(String theVersion) { return applies(getVersion(), theVersion); }
/** * Creates an instance that tests messages against whatever profiles they declare in * MSH-21. The ID declared in MSH-21 is evaluated in a way that the corresponding * profile file is expected to be BASEDIR/profiles/ID.xml. */ public ConformanceProfileRule() { super(); setDescription("Unknown segments found in message"); setSectionReference("HL7 2.5 section 2.12"); }
ValidationContext validationContext = new NoValidation(); parser.setValidationContext( validationContext ); Message msg = parser.parse( message );
hapiContext.setValidationContext((ValidationContext) ValidationContextFactory.noValidation());
@Override protected boolean removeEldestEntry(Map.Entry<String, RuntimeProfile> eldest) { return size() > 100; } };
public boolean test(String value) { ValidationException[] exceptions = apply(value); return exceptions == null || exceptions.length == 0; }
ValidationContext validationContext = new NoValidation(); parser.setValidationContext( validationContext ); Message msg = parser.parse( message );