Blood pressure archetype, XML projection problem

Hi all,

I’ve just started experimenting with openEHR, and here’s a newbie question to the list. (Please do let me know if this is not the right forum for this type of thing.)

I auto-created classes in our platform (HealthShare), based on the RM/AM xsd files, then created my own ‘IntervalOf’ classes (as they weren’t included), and fetched the XML projection of the blood pressure archetype, but this failed schema validation due to the following:

Boolean

2007

<precedence_overridden>false</precedence_overridden>

<left_operand xsi:type=“EXPR_LEAF”>

String

archetype_id/value

<reference_type>attribute</reference_type>

</left_operand>

<right_operand xsi:type=“EXPR_LEAF”>

C_STRING

openEHR-EHR-CLUSTER.level_of_exertion(-[a-zA-Z0-9_]+)*.v1

<reference_type>constraint</reference_type>

</right_operand>

As you can see, there are two instances of ‘EXPR_LEAF’, and in the first one, ‘item’ is (correctly, I think) a string, but in the second, it’s a complex datatype, which is what fails my schema validation.

Am I misunderstanding something, or is there an error in the XML projection?

Cheers,

Otto Medin

Senior Sales Engineer – Scandinavia

Mobile: +46 705 112 117

www.intersystems.se

cid:ED240A39-0B89-4E22-A855-B5D04BBD2DD0

Hi Otto, C_STRING is not a data type, is a constraint over a string.

Not sure what fails in your case, what schema are you using?

(attachments)

image001.png

Hi Otto,

The problem could be that you haven’t used the openehrProfile.xsd as your top when creating the classes – this xsd then includes Archetype.xsd.

If that is not the problem, it would be interesting to learn in more detail what you did (which xsd file from where, how have they been auto-generated)

Best regards

Sebastian

(attachments)

image001.png