is_integral attribute for DV_PROPORTION

2011-03-21 Thread Moretti Leonardo
Archetype editor uses the attribute is_integral for DV_PROPORTION, but there is not an equivalent RM attribute. Should it be considered as a contraint on precision RM attribute (when is_integral=true -- precision=0)? Anf when is_integral is false, this means precision should be= 1? or whatever?

C_DATE_TIME and RM instances

2011-03-18 Thread Moretti Leonardo
When we define a C_DATE_TIME element like this ELEMENT[at0061] occurrences matches {0..1} matches { -- Date/Time element value matches { DV_DATE_TIME matches {*} } } we said that element at0061 can contains a Date/time value, a date only or a time only (indeed Archetype Editor show the

Which code in code_string symbol for DV_ORDINAL?

2011-03-16 Thread Moretti Leonardo
I'm wondering how to set code_string value for a DV_ORDINAL. Having a DV_ORDINAL a structure like this: items archetype_node_id=at0004.1 xsi:type=ELEMENT name valueElement name/value /name value xsi:type=DV_ORDINAL value5/value symbol valueDescription 5/value defining_code terminology_id

state and protocol structures are mandatory, when defined?

2010-07-15 Thread Moretti Leonardo
Hi all, I have a doubt in interpretating the archetype definition when there are state or protocol structure. For example, looking at Blood Pressure in http://openehr.org/knowledge/, I'm wondering if protocol structure is mandatory, as it seems looking at the archetype. If I don't know any

Specialisation of archetype - Some doubts

2010-05-19 Thread Moretti Leonardo
When we specialize an archetype, we must keep in mind some rules as: - a specialised archetype can only further narrow existing constraints in the parent (but it may add its own) - constraints are inherited, and can be overridden - overrides are ?covariant?, i.e. the constraints are narrower than

Archetypes and XML-Schemas

2010-05-11 Thread Moretti Leonardo
XMLSerializer.output() (xml-serializer-1.0.1.jar) produce XMLs that are not compliant with openEHR XML-Schemas (http://www.openehr.org/releases/1.0.2/its/XML-schema/index.html). Also the xml representation taken from http://openehr.org/knowledge/ are not valid XML instances respect to these

How to express multiple composers for a composition with an history of events

2010-04-13 Thread Moretti Leonardo
Hi everybody, looking at Apgar score (openEHR-EHR-OBSERVATION.apgar.v1) and Barthel Index (openEHR-EHR-OBSERVATION.barthel.v1) archetypes in CKM (http://openehr.org/knowledge/), I undestand we can have several event samples of this data within the same HISTORY structure. So the same Barthel