data types and structures questions

2009-12-22 Thread Sam Heard
No ? I did that in the second email. Sam

 

From: openehr-technical-bounces at chime.ucl.ac.uk 
[mailto:openehr-technical-boun...@chime.ucl.ac.uk] On Behalf Of Masoumeh Seydi
Sent: 22 December 2009 15:04
To: For openEHR technical discussions
Subject: RE: data types and structures questions

 


Hi Sam

Thanks for the reply. Are you pointing the interval classes?

Regards
Masoumeh

  _  



--- On Sun, 12/20/09, Sam Heard sam.heard at oceaninformatics.com wrote:


From: Sam Heard sam.he...@oceaninformatics.com
Subject: RE: data types and structures questions
To: openehr-technical at openehr.org
Date: Sunday, December 20, 2009, 9:38 PM

Hi Masoumeh

 

There is a difficulty that arises with data that is not completely entered and 
being able to save it in the repository in that state. One could argue that it 
should all be entirely consistent, but it does mean that it is not so easy to 
use in reality. I am always arguing for a degree of flexibility in the specs ? 
you are free to put it in your software if you want it like that.

 

Cheers, Sam

 

From: openehr-technical-bounces at chime.ucl.ac.uk 
[mailto:openehr-technical-boun...@chime.ucl.ac.uk] On Behalf Of Masoumeh Seydi
Sent: 21 December 2009 14:53
To: openehr-technical at openehr.org
Subject: data types and structures questions

 


Hi All,
 I've got some questions about data types and structures. I was wondering if 
someone could help me.

1. Why an item_single can,t be empty but other structures may be. I mean 
'items attribute's cardinality in item_single is 1..1 (and this is logical. 
coz' an item_single without element is meanless). But in other structures, the 
cardinality of items attribute is 0..1. What's the point of having an empty 
list or tree or table (without ant item in it)?

2. What's the difference between CLUSTER and ITEM_TREE? Both can have CLUSTERs 
and ELEMENTs. And why in all structures in CKM, there is a Data branch shown in 
archetype mindmap but in cluster archetypes, there is a Items branch?

3. There is an  Interval intrface containing lower and upper attributes. Other 
intervals like IntervalOfReal, IntervalofDate, IntervalofDateTime, 
IntervalofTime and IntervalofDuration with lower and upper attributes in xsd 
file in the site. My question is, why there is not an Interval class that 
contains an attribute for declaring the type of interval and so get rid of 
other interval classes for every type?

Thanks in advance
Masoumeh

 


-Inline Attachment Follows-

___
openEHR-technical mailing list
openEHR-technical at openehr.org
 http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical 
http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical

 

-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20091222/de28aeb1/attachment.html


data types and structures questions

2009-12-22 Thread Heath Frankel
Masourmeh,

There is no generics in XML Schema, hence you cannot define a single type
for all intervals.  The XSD does what compilers that support generics do and
creates a real type for each type of T that is used with the generic type.
It should also be noted that these IntervalOf* types are only used in XML
Archetypes to make it easier to validate and use the resulting archetype
document without an AM implementation.  These IntervalOf* types are not used
in openEHR RM data but instead uses the DV_INTERVAL type that allows any
DV_ORDERED as the lower and upper without any insurance that they are of the
same type and requires an RM implementation to enforce these RM assertions.

 

Heath 

 

From: openehr-technical-boun...@chime.ucl.ac.uk
[mailto:openehr-technical-bounces at chime.ucl.ac.uk] On Behalf Of Masoumeh
Seydi
Sent: Monday, 21 December 2009 3:53 PM
To: openehr-technical at openehr.org
Subject: data types and structures questions

 


Hi All,
 I've got some questions about data types and structures. I was wondering if
someone could help me.

1. Why an item_single can,t be empty but other structures may be. I mean
'items attribute's cardinality in item_single is 1..1 (and this is logical.
coz' an item_single without element is meanless). But in other structures,
the cardinality of items attribute is 0..1. What's the point of having an
empty list or tree or table (without ant item in it)?

2. What's the difference between CLUSTER and ITEM_TREE? Both can have
CLUSTERs and ELEMENTs. And why in all structures in CKM, there is a Data
branch shown in archetype mindmap but in cluster archetypes, there is a
Items branch?

3. There is an  Interval intrface containing lower and upper attributes.
Other intervals like IntervalOfReal, IntervalofDate, IntervalofDateTime,
IntervalofTime and IntervalofDuration with lower and upper attributes in xsd
file in the site. My question is, why there is not an Interval class that
contains an attribute for declaring the type of interval and so get rid of
other interval classes for every type?

Thanks in advance
Masoumeh



 

-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20091222/de20a131/attachment.html