Hi Bjorn,

This is exactly how I would have modelled it. This is not really an Ordinal
which implies some sort of ordering or scale of the values e.g
-,0,+,+++,++++.

In your examples the letters V, T , B , G etc are really just shortcuts.

Ian


                }




On 13 May 2013 06:22, Bj?rn N?ss <bna at dips.no> wrote:

> 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
>
> ****
>
>
> 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. ****
>
> ** **
>
> _______________________________________________
> openEHR-technical mailing list
> openEHR-technical at lists.openehr.org
>
> http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org
>



-- 
Dr Ian McNicoll
office +44 (0)1536 414 994
fax +44 (0)1536 516317
mobile +44 (0)775 209 7859
skype ianmcnicoll
ian.mcnicoll at oceaninformatics.com

Clinical Modelling Consultant, Ocean Informatics, UK
Director openEHR Foundation  www.openehr.org/knowledge
Honorary Senior Research Associate, CHIME, UCL
SCIMP Working Group, NHS Scotland
BCS Primary Health Care  www.phcsg.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.openehr.org/pipermail/openehr-technical_lists.openehr.org/attachments/20130513/ee8423b1/attachment-0001.html>

Reply via email to