User is entering like 3MG  in the Give amount field in the application. I
can’t always assume user to enter number in that field.



Thanks,

Letha Joy





From: Pablo Pazos [mailto:pablo.pa...@cabolabs.com]
Sent: Tuesday, March 18, 2014 12:13 PM
To: Letha.Joy
Cc: HAPI Devel List
Subject: Re: [HAPI-devel] customizing datatype



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 |
<http://www.facebook.com/pages/eClinicalWorks/135223269826289> facebook.png
<http://twitter.com/#!/eclinicalworks> twitter.png
<http://www.linkedin.com/company/eclinicalworks> in.png

 <http://letha....@eclinicalworks.com> letha....@eclinicalworks.com|
<http://www.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 <tel:%2800598%29%2099%20043%20145>
Skype: cabolabs

 <http://cabolabs.com/> Image removed by sender.
http://www.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/> Image removed by sender.
http://www.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.

<<~WRD000.jpg>>

<<image001.png>>

<<image002.png>>

<<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

Reply via email to