Hi,
I am trying to create a custom validator to allow a value in a field that has a
NULLDT primitive value. I've tried a number of different ways, and cannot
figure it out. For example, I've done:
ValidationRuleBuilder builder = new DefaultValidationBuilder() {
@Override
protected void configure() {
super.configure();
.message(MESSAGE_TYPE, MESSAGE_TRIGGER_EVENT)
.terser("FT1-8", not(empty()));
}
};
HapiContext context1 = new DefaultHapiContext();
context1.setValidationRuleBuilder(builder);
DFT_P03 message = new DFT_P03();
message.setParser(context1.getPipeParser());
message.initQuickstart(MESSAGE_TYPE, MESSAGE_TRIGGER_EVENT,
GetFullDateTimeString.execute() + "-" + "A12345");
((DFT_P03)
message).getFINANCIAL(0).getFT1().getTransactionDescription().setValue("THIS IS
A TEST");
The setValue fails with an exception that the field cannot have a value since
it has been withdrawn.
I can turn validation off, but I just want to set validation off for this
single field.
Any suggestions on how I can override just a single field?
Thanks,
Tom
Tom Gregory
Chief Technology Officer
office 415.419.8784 x 103
[email protected]<mailto:[email protected]>
[[email protected]]<http://www.presidiohealth.com/>
Follow us on social media
[signature_1410670849]<https://www.linkedin.com/company/1791727/admin/>
[signature_898212079] <https://twitter.com/presidiohealth>
[signature_663029684] <https://www.facebook.com/presidiohealth>
[signature_2130716608] <https://www.instagram.com/presidiohealth/>
WARNING: THIS TRANSMISSION MAY CONTAIN CONFIDENTIAL MEDICAL INFORMATION
The medical information that may be contained in this transmission is
CONFIDENTIAL AND PRIVILEGED
It is unlawful for unauthorized persons to review, copy, disclose, or
disseminate confidential medical information. If the reader of this warning is
not the intended recipient, or the intended recipient’s agent, you are hereby
notified that you have received this transmission in error; please notify us
immediately at the telephone number listed above. Thank you.
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel