Error in CAttribute.java?

Hi Rong, I believe there is an error in CAttribute.java in the method

public String parentNodePath() and also in the method which depends on
this: childNodePathBase()

When I ask the parentNodePath of the value of an ELEMENT, I get this
(missing bracket)

parentNodePath:/data[at0001]/items[at0005]/items[at0007
childNodePathBase:/data[at0001]/items[at0005]/items[at0007/value

Can you please give a reply to this.

Thanks
Kind Regards
Bert Verhees

Hi Bert,

Can you provide a minimum testcase that reproduces this issue? Or the archetype that you have problem with. Thanks!

Cheers,
Rong

Rong Chen schreef:

Hi Bert,

Can you provide a minimum testcase that reproduces this issue? Or the archetype that you have problem with. Thanks!

Cheers,
Rong

Thanks, Rong, for your attention, this archetype (attached) has the problem, both example lines (below) come from this archetype.
I don't think it is hard to write a simple testcase.

I can be possible that it is my problem, because I did not yet completely move to 1.0.1, but on the other hand, that code in CAttribute hasn't changed since 2005.

regards
Bert

(attachments)

openEHR-EHR-EVALUATION.goal.v1.adl (3.72 KB)

Hi Bert,

It’s caused by mismatch of path handling between the parser and the class CAttribute. The path logic in CAttribute is out-of-date and is now fixed on the Trunk. Thanks for pointing it out.

Regards,
Rong