Re: [HAPI-devel] Retrieving Validation Errors

2012-07-30 Thread Carlos Oliva
I think that I got it. I forgot to press HL7 after creating the report. From: Jens Kristian Villadsen [mailto:[email protected]] 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

Re: [HAPI-devel] Retrieving Validation Errors

2012-07-30 Thread Jens Kristian Villadsen
[email protected]] > *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 ha

Re: [HAPI-devel] Retrieving Validation Errors

2012-07-30 Thread Carlos Oliva
Workbench created. From: Jens Kristian Villadsen [mailto:[email protected]] 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 h

Re: [HAPI-devel] Retrieving Validation Errors

2012-07-30 Thread Jens Kristian Villadsen
Jens Kristian Villadsen [mailto:[email protected]] > *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

Re: [HAPI-devel] Retrieving Validation Errors

2012-07-30 Thread Carlos Oliva
the classpath From: Jens Kristian Villadsen [mailto:[email protected]] 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

Re: [HAPI-devel] Retrieving Validation Errors

2012-07-30 Thread Jens Kristian Villadsen
than importing one from somewhere else. How can I use the default >> StaticDef of the parser encode method? >> >> *From:* Jens Kristian Villadsen [mailto:[email protected]] >> *Sent:* Monday, July 30, 2012 7:54 AM >> >> *To:* Carlos Oliva >>

Re: [HAPI-devel] Retrieving Validation Errors

2012-07-30 Thread Jens Kristian Villadsen
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.Run

Re: [HAPI-devel] Retrieving Validation Errors

2012-07-30 Thread Carlos Oliva
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

Re: [HAPI-devel] Retrieving Validation Errors

2012-07-30 Thread Jens Kristian Villadsen
lto:[email protected]] > *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 mes

Re: [HAPI-devel] Retrieving Validation Errors

2012-07-30 Thread Carlos Oliva
, 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

Re: [HAPI-devel] Retrieving Validation Errors

2012-07-30 Thread Jens Kristian Villadsen
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 > How can I retrieve all the validation errors of an ORU message? The > parser retrieves only t

[HAPI-devel] Retrieving Validation Errors

2012-07-30 Thread Carlos Oliva
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 t