Hi All,
I have a question about XML representation of data types:
in an XML file, each attribute of a data type has to be a tag and if the data
type has one or many parent, the parents'? attributes should be included
as different tags. The point is that in some data types, the type of an
attribute is another data type and when you want to represent it in an XML,
there would be confusion. For example, this is an XML part for DV_CODED_TEXT:
<...>
<value>
string </value> [1]
<hyperlink>
DV_URI </hyperlink>
[0..1]
<formatting>
string </formatting> [0..1]
<mappings>
<match> matchString </match>
[1]
<purpose> DV_CODED_TEXT </purpose>
[0..1]
<target>
<terminology_id> TERMINOLOGY_ID</terminology_id>
[1]
<code_string> string
</code_string> [1]
?</target> [1]
</mappings>
[0..*]
<language>
<terminology_id> TERMINOLOGY_ID</terminology_id>
[1]
<code_string> string
</code_string> [1]
</language>
[0..1]
<encoding>
?<terminology_id> TERMINOLOGY_ID</terminology_id>
[1]
<code_string> string
</code_string> [1]
</encoding>
[0..1]
<defining_code>
?<terminology_id> TERMINOLOGY_ID</terminology_id>
[1]
<code_string> string
</code_string> [1]
</defining_code>
[1]
</...>
Which includes DV_TEXT's attributes as xlm tags. But DV_TEXT uses DV_CODED_TEXT
type for ?purpose/mapping? attribute. So there will be a loop that uses
DV_CODED_TEXT
in DV_CODED_TEXT and it will never reach to a basic type like string,? .It
happens in some other types like DV_ORDERED and DV_INTERVAL that each one uses
other as a type for an attribute. I got confused that how it can be shown in a
XML format.
Is there any
idea?
?
Thanks in
advance
Masoumeh
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20090526/ca3b5755/attachment.html>