I think that I got it. I forgot to press HL7 after creating the report.
From: Jens Kristian Villadsen [mailto:j...@c3a.dk]
Sent: Monday, July 30, 2012 11:49 AM
To: Carlos Oliva
Cc: HAPI Devel List
Subject: Re: [HAPI-devel] Retrieving Validation Errors
Using Message Workbench is the correct way. Most of your file is alright. Focus
on the header and have a look at
http://hl7api.sourceforge.net/conformance.html
2012/7/30 Carlos Oliva <carl...@pbsinet.com>
Could you tell me how do I create a conformance file? The file that you sent
me looks completely different from the one that I created with the workbench.
I foolwoed the directions to load a structure and create and save the report
(Spec XML) . The file that I sent you was the one that the Workbench created.
From: Jens Kristian Villadsen [mailto:j...@c3a.dk]
Sent: Monday, July 30, 2012 11:07 AM
To: Carlos Oliva
Cc: HAPI Devel List
Subject: Re: [HAPI-devel] Retrieving Validation Errors
Nope - it's not entirely valid. I've attached a valid example profile you could
have a look at.
2012/7/30 Carlos Oliva <carl...@pbsinet.com>
There it goes. Thank you for your help.
From: Jens Kristian Villadsen [mailto:j...@c3a.dk]
Sent: Monday, July 30, 2012 10:59 AM
To: Carlos Oliva
Cc: HAPI Devel List
Subject: Re: [HAPI-devel] Retrieving Validation Errors
You didn't attach anything ...
2012/7/30 Carlos Oliva <carl...@pbsinet.com>
Could I bother you a bit further and ask you if the attached file is a proper
conformance profile for ORU? I just created it with the workbench.
I was converting it to a string and then using it with the profile parsert o
create a RuntimeProfile. I am having difficulties adding the file to the
classpath
From: Jens Kristian Villadsen [mailto:j...@c3a.dk]
Sent: Monday, July 30, 2012 9:24 AM
To: Carlos Oliva
Cc: HAPI Devel List
Subject: Re: [HAPI-devel] Retrieving Validation Errors
Either way, I chose to extend the ca.uhn.hl7v2.conf.check.DefaultValidator from
where you can make it parse whatever message you would like with whatever
StaticDef you have.
2012/7/30 Jens Kristian Villadsen <j...@c3a.dk>
By parser you mean ca.uhn.hl7v2.parser.Parser?
I think you should take a look at the implementation of
ca.uhn.hl7v2.parser.Parser in order to see how it uses the validation context
and how it uses the message validator.
2012/7/30 Carlos Oliva <carl...@pbsinet.com>
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 <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 <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 <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 <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 <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 <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 <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