Authorities require the reporting of injury. It is defined XSD for the message 
to be sent. Some items have numbers. These are perfect ordinal. The problem is 
the following XML type. How should these be modeled as archetype data types?

<simpleType  name = ' accidentSite '   >
   <restriction base= 'string'>  <!--  Coding scheme: 8604 Accident Site -->
      <enumeration value = 'V' />  <!-- ' Road, street, pavement, pedestrian, 
bicycle ' -->
      <enumeration value = 'T' />  <!-- ' Other transport area ' -->
      <enumeration value = 'B' />  <!-- ' Housing, residential ' -->
      <enumeration value = 'G' />  <!-- ' Agriculture Business, forestry ' -->
      <enumeration value = 'A' />  <!-'other scene' -->
      <enumeration value = 'U' />  <!-- ' Unknown scene ' -->
   </restriction>
</simpleType>

So far I have modelled it like below. Is there a better way? I wish I could use 
ordinal with letters....

ELEMENT[at0072] occurrences matches {0..1} matches {             -- Skadested
                value matches {
                               DV_CODED_TEXT matches {
                                               defining_code matches {
                                                               [local::
                                                               at0073,          
       -- V - Vei, gate, fortau, gang- , sykkelvei
                                                               at0074,          
       -- T - Annet transportomr?de
                                                               at0075,          
       -- B - Bolig boligomr?de
                                                               at0076,          
       -- G - Jordbruksbedrift, skogbruk
                                                               at0077,          
       -- I - Institusjon, sykehus, syke-, adershjem, off.kontor
                                                               at0078,          
       -- H - Lekeplass
                                                               at0079,          
       -- S - Skole, h?yskole, universitet, barnehage, familiebarnehage i 
privat hjem eller liknende skolefritidsordning
                                                               at0080,          
       -- P - Sport-, idrettsomr?de (ogs? p? skole/h?yskole/universitet)
                                                               at0081,          
       -- N - Fri natur, hav, sj? og vann
                                                               at0082,          
       -- A - Annet skadested
                                                               at0083] -- U - 
Ukjent skadested
                                                               }
                                               }
                               }
                }


With regards,
Bj?rn N?ss
Product owner
Telephone +47 75 59 24 55
Mobile +47 93 43 29 10
www.dips.com<http://www.dips.com/>

[cid:image001.png at 01CE4FA9.58399880]

This message is for the designated recipient only and may contain confidential 
or private information. If you have received it in error, please notify the 
sender immediately and delete the original.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.openehr.org/pipermail/openehr-technical_lists.openehr.org/attachments/20130513/030cd33a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4149 bytes
Desc: image001.png
URL: 
<http://lists.openehr.org/pipermail/openehr-technical_lists.openehr.org/attachments/20130513/030cd33a/attachment.png>

Reply via email to