In the specs, RXO-2 is NM. why do you need to put MG there? You have RXO-4 to put the units.
- RXO-2: Requested Give Amount - Minimum (NM) *optional * - RXO-3: Requested Give Amount - Maximum (NM) *optional * - RXO-4: Requested Give Units (CE) *optional * On Tue, Mar 18, 2014 at 10:29 AM, Letha.Joy <letha....@eclinicalworks.com>wrote: > Pablo, > > If I tried to add 30MG in RXO 2 I am getting a validation failed error. > > I wanted to add custom validation to that field(change data type from > numeric to character). > > I tried DefaultValidationBuilder but it is not helping me. It would be > great if you let me know the solution. > > > > *ca.uhn.hl7v2.model.DataTypeException*: > *ca.uhn.hl7v2.validation.ValidationException*: Validation failed: > Primitive value '30MG' requires to be empty or a number with optional > decimal digits > > at ca.uhn.hl7v2.model.AbstractPrimitive.setValue( > *AbstractPrimitive.java:99*) > > at ca.uhn.hl7v2.util.Terser.set(*Terser.java:189*) > > at ca.uhn.hl7v2.util.Terser.set(*Terser.java:437*) > > > > > > Thanks, > > Letha Joy > > Interfaces & Interoperability > > > > *eClinicalWorks* > > 2 Technology Drive | Westborough, MA 01581 > > T: 989-836-3100 | [image: > facebook.png]<http://www.facebook.com/pages/eClinicalWorks/135223269826289> > [image: twitter.png] <http://twitter.com/#!/eclinicalworks> [image: > in.png] <http://www.linkedin.com/company/eclinicalworks> > > letha....@eclinicalworks.com| www.eclinicalworks.com > > *This transmission contains confidential information belonging to the > sender that is legally privileged and proprietary and may be subject to > protection under the law, including the Health Insurance Portability and > Accountability Act (HIPAA). If you are not the intended recipient of this > e-mail, you are prohibited from sharing, copying, or otherwise using or > disclosing its contents. If you have received this e-mail in error, please > notify the sender immediately by reply e-mail and permanently delete this > e-mail and any attachments without reading, forwarding, or saving them. > Thank you.* > > P Please consider the environment and only print this e-mail if necessary > > > > > > *From:* pablo....@gmail.com [mailto:pablo....@gmail.com] *On Behalf Of *Pablo > Pazos > *Sent:* Monday, March 17, 2014 7:28 PM > *To:* Letha Joy > *Cc:* HAPI Devel List > *Subject:* Re: [HAPI-devel] customizing datatype > > > > Hi, > > > > Field datatypes are defined in HL7 spec. IMO there is nothing you can > change if you want your messages to be standard compliant. What's your use > case? > > > > On Mon, Mar 17, 2014 at 2:52 PM, Letha Joy <letha....@eclinicalworks.com> > wrote: > > Hi, > > Is there any way I can change data type of a segment field when creating > hl7 message using teaser? > > > > Thanks, > > Letha Joy > > > > CONFIDENTIALITY NOTICE TO RECIPIENT: This transmission contains > confidential information belonging to the sender that is legally privileged > and proprietary and may be subject to protection under the law, including > the Health Insurance Portability and Accountability Act (HIPAA). If you are > not the intended recipient of this e-mail, you are prohibited from sharing, > copying, or otherwise using or disclosing its contents. If you have > received this e-mail in error, please notify the sender immediately by > reply e-mail and permanently delete this e-mail and any attachments without > reading, forwarding or saving them. Thank you. > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Hl7api-devel mailing list > Hl7api-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > > > > -- > > Atte. > Ing. Pablo Pazos GutiƩrrez > Cel:(00598) 99 043 145 > Skype: cabolabs > > [image: Image removed by sender.] <http://cabolabs.com/> > http://www.cabolabs.com > pablo.pa...@cabolabs.com > > > CONFIDENTIALITY NOTICE TO RECIPIENT: This transmission contains > confidential information belonging to the sender that is legally privileged > and proprietary and may be subject to protection under the law, including > the Health Insurance Portability and Accountability Act (HIPAA). If you are > not the intended recipient of this e-mail, you are prohibited from sharing, > copying, or otherwise using or disclosing its contents. If you have > received this e-mail in error, please notify the sender immediately by > reply e-mail and permanently delete this e-mail and any attachments without > reading, forwarding or saving them. Thank you. > -- Atte. Ing. Pablo Pazos GutiƩrrez Cel:(00598) 99 043 145 Skype: cabolabs <http://cabolabs.com/> http://www.cabolabs.com pablo.pa...@cabolabs.com
<<inline: image002.png>>
<<inline: image001.png>>
<<inline: ~WRD000.jpg>>
<<inline: image003.png>>
------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech
_______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel