I would like to use the StaticDef that the parser encode method uses rather 
than importing one from somewhere else.  How can I use the default StaticDef of 
the parser encode method?

From: Jens Kristian Villadsen [mailto:j...@c3a.dk] 
Sent: Monday, July 30, 2012 7:54 AM
To: Carlos Oliva
Cc: HAPI Devel List
Subject: Re: [HAPI-devel] Retrieving Validation Errors

 

Use the ca.uhn.hl7v2.conf.parser.ProfileParser to parse a profile from disk or 
wherever you have your profiles located. The ProfileParser will then return a 
ca.uhn.hl7v2.conf.spec.RuntimeProfile. From that you can call getMessage which 
will return a StaticDef.

2012/7/30 Carlos Oliva <carl...@pbsinet.com>

Would the RuntimeProfile have a StaticDef?  I am finding it very difficult to 
create one for a ORU event.  The TestPanel produces the correct type 
validations but it is difficult to see how it is getting the StaticDef.

 

From: Jens Kristian Villadsen [mailto:j...@c3a.dk] 
Sent: Monday, July 30, 2012 7:28 AM
To: Carlos Oliva
Cc: HAPI Devel List
Subject: Re: [HAPI-devel] Retrieving Validation Errors

 

You can match a message against a RuntimeProfile (containing a StaticDef) by 
comparing the message type, the event type and the version (and also the 
structure id if you like).

2012/7/30 Carlos Oliva <carl...@pbsinet.com>

How can I retrieve all the validation errors of an ORU message?  The parser 
retrieves only the first validation error in a HL7Exception.  The 
DefaulValidator requires a StaticDef profile.  Is there a way to get the 
profile of the ORU message?  I looked at the TestPanel program but it is 
difficult to follow the classes to find what I want.

 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel





 

-- 
Med venlig hilsen / Kind regards 

Jens Kristian Villadsen
cand.polyt
Systemudvikler / System developer
Cetrea A/S, Denmark

   phone : +45 38 40 05 81 <tel:%2B45%2038%2040%2005%2081> 
   address: Brendstrupgårdsvej 21F, DK-8200 Aarhus N.
   e-mail : j...@cetrea.com 
   w^3     : http://www.cetrea.com/









 

-- 
Med venlig hilsen / Kind regards 

Jens Kristian Villadsen
cand.polyt
Systemudvikler / System developer
Cetrea A/S, Denmark

   phone : +45 38 40 05 81
   address: Brendstrupgårdsvej 21F, DK-8200 Aarhus N.
   e-mail : j...@cetrea.com 
   w^3     : http://www.cetrea.com/




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to