Menu

#257 Can't I create PR1_11_1 field in HAPI v281?

2.2
open
PR1-11-1 (1)
5
2020-04-16
2020-04-16
No

Hi, I am using the HAPI v281 for generating HL7 message, but whenever I try to create a PR1_11 message it gives me a validation error saying:

"Exception in thread "main" ca.uhn.hl7v2.model.DataTypeException: ca.uhn.hl7v2.validation.ValidationException: Validation failed: Primitive value '778' requires to be empty because it is withdrawn from the current HL7 version and should not be used
at ca.uhn.hl7v2.model.AbstractPrimitive.setValue(AbstractPrimitive.java:97)
at ca.uhn.hl7v2.util.Terser.set(Terser.java:189)
at ca.uhn.hl7v2.util.Terser.set(Terser.java:437)
at com.cerner.ittool.hl7.A28ScriptGenerator.main(A28ScriptGenerator.java:103)
Caused by: ca.uhn.hl7v2.validation.ValidationException: Validation failed: Primitive value '778' requires to be empty because it is withdrawn from the current HL7 version and should not be used
at ca.uhn.hl7v2.validation.impl.RuleSupport.failed(RuleSupport.java:67)
at ca.uhn.hl7v2.validation.impl.RuleSupport.failedWithValue(RuleSupport.java:58)
at ca.uhn.hl7v2.validation.impl.RuleSupport.result(RuleSupport.java:48)
at ca.uhn.hl7v2.validation.impl.RuleSupport.result(RuleSupport.java:44)
at ca.uhn.hl7v2.validation.builder.PredicatePrimitiveTypeRule.apply(PredicatePrimitiveTypeRule.java:115)
at ca.uhn.hl7v2.validation.builder.PredicatePrimitiveTypeRule.apply(PredicatePrimitiveTypeRule.java:38)
at ca.uhn.hl7v2.model.AbstractPrimitive.setValue(AbstractPrimitive.java:95)
... 3 more
"

Discussion


Log in to post a comment.