PIX ITI-45 Response Validator problem

44 views
Skip to first unread message

Tomasz Judycki

unread,
May 29, 2020, 8:30:19 AM5/29/20
to ipf-user
Hi!

I’m working on PIX ITI-45 and just got a problem with validating response.

I’ve checked published examples:

the simples way:

String response =
"<PRPA_IN201310UV02 xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
    [...]
"                <providerOrganization classCode=\"ORG\" determinerCode=\"INSTANCE\">\n" + 
"                    <id root=\"1.2.840.114350.1.13.99998.8734\"/>\n" + 
"                    <name>Good Health Clinic</name>\n" + 
"                    <contactParty classCode=\"CON\">\n" + 
"                        <telecom value=\"tel:+1-342-555-8394\"></telecom>\n" + 
"                    </contactParty>\n" + 
"                </providerOrganization>\n" +
    [...]
"</PRPA_IN201310UV02>";
new CombinedXmlValidator().validate(response, PIXV3.Interactions.ITI_45.getResponseValidationProfile());

and got a message:

Caused by: org.openehealth.ipf.commons.core.modules.api.ValidationException: org.xml.sax.SAXParseException; lineNumber: 56; columnNumber: 60; cvc-complex-type.2.3: Element 'name' cannot have character [children], because the type's content type is element-only.
cvc-complex-type.2.3: Element 'name' cannot have character [children], because the type's content type is element-only.

This message concerns node <name>Good Health Clinic</name> 

What is wrong? Examples? Or validator?

Full source attached.

Thomas

ValidateITI45.java

Dmytro Rud

unread,
May 29, 2020, 8:49:32 AM5/29/20
to ipf-...@googlegroups.com
Hi Tomasz

Examples are not normative.  You can use the Gazelle validator (https://gazelle.ihe.net/EVSClient/home.seam) as reference.  BTW, for PIXV3 validation, IPF uses the same Schematrons as Gazelle.

Best regards
Dmytro 


--
You received this message because you are subscribed to the Google Groups "ipf-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ipf-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/d10c4a0c-1f7c-4fc5-8f47-67806e65db97%40googlegroups.com.

Tomasz Judycki

unread,
May 29, 2020, 11:50:26 AM5/29/20
to ipf-user
Hi Dmytro,

Thanks for your answer. I will check Gazelle.

Could you, please, point some correct examples? 

Thomas
To unsubscribe from this group and stop receiving emails from it, send an email to ipf-...@googlegroups.com.

Dmytro Rud

unread,
May 29, 2020, 12:55:51 PM5/29/20
to ipf-...@googlegroups.com
The ones from IPF -- at least the ones intended for testing happy cases :)
Sorry, I do not know any public collections in the internet.

Best regards
Dmytro


To unsubscribe from this group and stop receiving emails from it, send an email to ipf-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/2077d9a6-d1bf-42e7-9822-7946ee058ffa%40googlegroups.com.

Tomasz Judycki

unread,
May 29, 2020, 1:30:05 PM5/29/20
to ipf-user
for PIXV3 validation, IPF uses the same Schematrons as Gazelle

Is it exactly the same validation? Could you check attached message? This is modified version of ftp://ftp.ihe.net/TF_Implementation_Material/ITI/examples/PIXV3/07_PIXQuery1Response.xml - I’ve removed trailing space at interactionId and commented out <name/> at providerOrganization in line 57.

It passes IPF validation:
new CombinedXmlValidator().validate(response, PIXV3.Interactions.ITI_45.getResponseValidationProfile());
while on Gazelle ((https://gazelle.ihe.net/EVSClient/home.seam IHE -> HL7v3 -> Validate -> [ITI-45] PIXV3 Query Response) there are several serious errors and verification fails.

Thomas
07_PIXQuery1ResponseNameCommented.xml

Dmytro Rud

unread,
May 31, 2020, 5:40:03 AM5/31/20
to ipf-...@googlegroups.com
I failed to notice that Gazelle switched from Schematron to another validation technology in the meantime, see https://gazelle.ihe.net/content/gazelle-objectschecker.
Ok, good to know.  Thank you for pointing that out.

(It's probably a time to think about upgrading the ipf-gazelle project too...)

Best regards
Dmytro


To unsubscribe from this group and stop receiving emails from it, send an email to ipf-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/daf6df46-9b7b-4816-87e2-807e68192dba%40googlegroups.com.

Tomasz Judycki

unread,
Jun 2, 2020, 6:48:33 PM6/2/20
to ipf-user
It seems that Gazelle still uses schematrons but added another validation method called object checker.

However I’ve found a strange behavior with organization name. IHE PIX validation accepts organization name as a sequence of name parts: prefix, suffix and delimiter, so
<name>Good Health Clinic</name>
is not allowed, it must be:
<name><prefix>Good Health Clinic</prefix></name>
while the first one passes Gazelle validation.

Find attached example, lines 74-75 contains two different notations.

Thomas
ValidateITI44.java
Reply all
Reply to author
Forward
0 new messages