public DefaultValidationWithoutTN() { super(new DefaultValidationWithoutTNBuilder()); } }
forAllVersions() .message().all().choiceElementsRespected() .message().all().onlyAllowableSegmentsInSuperStructure() .primitive("FT").leftTrim(maxLength(32000)) .primitive("ST").leftTrim() .primitive("TX").rightTrim() .primitive("ID", "IS").is(maxLength(200)) .primitive("SI").is(emptyOr(nonNegativeInteger())) .primitive("NM").is(emptyOr(number())) .primitive("DT") .refersToSection("Version 2.5 Section 2.A.21") .is(emptyOr(date())) .primitive("TM") .refersToSection("Version 2.5 Section 2.A.75") .is(emptyOr(time())) .primitive("NULLDT").is(withdrawn()); forVersion().before(Version.V25) .primitive("TSComponentOne") .refersToSection("Version 2.4 Section 2.9.47") .is(emptyOr(dateTime())); forVersion().asOf(Version.V25) .primitive("TSComponentOne", "DTM") .refersToSection("Version 2.5 Section 2.A.22") .is(emptyOr(dateTime25()));
/** * Configures the matching {@link CachingGazelleProfileRule} to be validated against */ @Override protected void configure() { super.configure(); forAllVersions() .message().all() .test(new CachingGazelleProfileRule(transaction)); } }
forAllVersions() .message().all().choiceElementsRespected() .message().all().onlyAllowableSegmentsInSuperStructure() .primitive("FT").leftTrim(maxLength(32000)) .primitive("ST").leftTrim() .primitive("TX").rightTrim() .primitive("ID", "IS").is(maxLength(200)) .primitive("SI").is(emptyOr(nonNegativeInteger())) .primitive("NM").is(emptyOr(number())) .primitive("DT") .refersToSection("Version 2.5 Section 2.A.21") .is(emptyOr(date())) .primitive("TM") .refersToSection("Version 2.5 Section 2.A.75") .is(emptyOr(time())) .primitive("NULLDT").is(withdrawn()); forVersion().before(Version.V25) .primitive("TSComponentOne") .refersToSection("Version 2.4 Section 2.9.47") .is(emptyOr(dateTime())); forVersion().asOf(Version.V25) .primitive("TSComponentOne", "DTM") .refersToSection("Version 2.5 Section 2.A.22") .is(emptyOr(dateTime25()));
@Override protected void configure() { super.configure(); forAllVersions() .primitive("TN") .refersToSection("Version 2.4 Section 2.9.45") .is(emptyOr(usPhoneNumber())); }
public DefaultValidationWithoutTN() { super(new DefaultValidationWithoutTNBuilder()); } }
@Override protected void configure() { super.configure(); forAllVersions() .primitive("TN") .refersToSection("Version 2.4 Section 2.9.45") .is(emptyOr(usPhoneNumber())); }
/** * Returns a HapiContext for the provided model class factory * * @param modelClassFactory model clas factory * @return HapiContext */ public static HapiContext createHapiContext(ModelClassFactory modelClassFactory) { return createHapiContext( modelClassFactory, new DefaultValidationWithoutTNBuilder(), ProfileStoreFactory.getProfileStore()); }
@Override public Hl7v2TransactionConfiguration getObject() { return new Hl7v2TransactionConfiguration<>( "mdm", "Medical Document Management", false, null, null, new Version[] {Version.V25, Version.V251}, "MDM Adapter", "IPF", ErrorCode.APPLICATION_INTERNAL_ERROR, ErrorCode.APPLICATION_INTERNAL_ERROR, new String[] { "MDM" }, new String[] { "T01 T02 T03 T04"}, new String[] {"ACK"}, new String[] {"*"}, new boolean[] {true}, new boolean[] {false}, HapiContextFactory.createHapiContext( new DefaultModelClassFactory(), new DefaultValidationWithoutTNBuilder(), ProfileStoreFactory.getProfileStore())); }