# value as a C_ORDINAL? **Category:** [Implementers (archive)](https://discourse.openehr.org/c/implementers-archive/158) **Created:** 2008-01-23 12:19 UTC **Views:** 11 **Replies:** 5 **URL:** https://discourse.openehr.org/t/value-as-a-c-ordinal/14718 --- ## Post #1 by @Cati_Martinez Hi everybody, I'm working with OpenEHR archetypes from this site "http://www.openehr.org/svn/knowledge/archetypes/dev/html/index_en.html", and I can't interpret the following section: ELEMENT\[at0\.17\] occurrences matches \{0\.\.1\} matches \{ \-\- Volume value matches \{     0|\[local::at0\.18\], \-\- Not heard     1|\[local::at0\.19\], \-\- Variable     2|\[local::at0\.20\], \-\- Soft     3|\[local::at0\.21\], \-\- Normal     4|\[local::at0\.22\]; \-\- Loud     0 \-\- assumed value   \} \} The problem is that an openehr\_ELEMENT, has the property "value", and according to OpenEHR specification, it can only take a value of type DATA\_VALUE, so, I don't understand why at this example this property take as value a C\_ORDINAL\. How should it be?   Maybe\.\.   ELEMENT\[at0\.17\] occurrences matches \{0\.\.1\} matches \{ \-\- Volume value matches \{   DV\_ORDINAL matches \{     Property… Thank you for your help\! --- ## Post #2 by @system Hi Cati, The openEHR Archetype profile \(http://www.openehr.org/releases/1.0.1/architecture/am/openehr_archetype_profile.pdf) defines this short syntax\.\.\.see Chapter 5\.2\. Cheers Sebastian Cati Martínez wrote: --- ## Post #3 by @thomas.beale Cati, Have a look at [http://www.openehr.org/releases/1.0.1/architecture/am/openehr_archetype_profile.pdf](http://www.openehr.org/releases/1.0.1/architecture/am/openehr_archetype_profile.pdf) section 5 - thomas beale Cati Martínez wrote: [details="(attachments)"] ![OceanC\_small.png|74x72](upload://5I367QG2SMJUp18Pt3jF6yz13Ey.png) [/details] --- ## Post #4 by @Cati_Martinez Hi, Then, if I'd like to express it without any simplification, I could do it as follows: ELEMENT\[at0\.17\] occurrences matches \{0\.\.1\} matches \{ value matches \{     DV\_ORDINAL matches \{        value matches \{0\}        symbol matches \{             DV\_CODED\_TEXT matches \{                 defining\_code matches \{\[local::at0014\]\} \-\- no heartbeat             \}        \}     \}    DV\_ORDINAL matches \{      value matches \{1\}      symbol matches \{          DV\_CODED\_TEXT matches \{              defining\_code matches \{\[local::at0015\]\} \-\- less than 100 bpm          \}      \}    \}    \.\.\.\.\.    \.\.\.\. \} After that, I have another question :\), the property "value" of "ELEMENT" according to the OpenEHR is of type DATA\_VALUE but with occurrences \{0\.\.1\} and here I have more than one occurrence of type DV\_ORDINAL\.\.\. Should I change the occurrence to \{0\.\.\*\} for my implementation? Thank you again\. > Cati, > > Have a look at http://www.openehr.org/releases/1.0.1/architecture/am/openehr_archetype_profile.pdf section 5 > > \- thomas beale > > Cati Martínez wrote: > Hi everybody, I'm working with OpenEHR archetypes from this site MailScanner has detected a possible fraud attempt from "www\.openehr\.org" claiming to be "http://www.openehr.org/svn/knowledge/archetypes/dev/html/index_en.html", and I can't interpret the following section: ELEMENT\[at0\.17\] occurrences matches \{0\.\.1\} matches \{ \-\- Volume value matches \{     0|\[local::at0\.18\], \-\- Not heard     1|\[local::at0\.19\], \-\- Variable     2|\[local::at0\.20\], \-\- Soft     3|\[local::at0\.21\], \-\- Normal     4|\[local::at0\.22\]; \-\- Loud     0 \-\- assumed value   \} \} The problem is that an openehr\_ELEMENT, has the property "value", and according to OpenEHR specification, it can only take a value of type DATA\_VALUE, so, I don't understand why at this example this property take as value a C\_ORDINAL\. How should it be?   Maybe\.\.   ELEMENT\[at0\.17\] occurrences matches \{0\.\.1\} matches \{ \-\- Volume value matches \{   DV\_ORDINAL matches \{     Property… Thank you for your help\! --- ## Post #5 by @system Cati Martínez wrote: > Hi, > > Then, if I'd like to express it without any simplification, I could do > it as follows: > > ELEMENT\[at0\.17\] occurrences matches \{0\.\.1\} matches \{ > value matches \{ >     DV\_ORDINAL matches \{ >        value matches \{0\} >        symbol matches \{ >             DV\_CODED\_TEXT matches \{ >                 defining\_code matches \{\[local::at0014\]\} \-\- no heartbeat >             \} >        \} >     \} >    DV\_ORDINAL matches \{ >      value matches \{1\} >      symbol matches \{ >          DV\_CODED\_TEXT matches \{ >              defining\_code matches \{\[local::at0015\]\} \-\- less than 100 bpm >          \} >      \} >    \} >    \.\.\.\.\. >    \.\.\.\. > \} > > After that, I have another question :\), the property "value" of > "ELEMENT" according to the OpenEHR is of type DATA\_VALUE but with > occurrences \{0\.\.1\} and here I have more than one occurrence of type > DV\_ORDINAL\.\.\. Should I change the occurrence to \{0\.\.\*\} for my > implementation? > > Thank you again\. >   I don't think so\. It means that in an instance of this archetype you would only document a maximum of one of these DV\_Ordinals, either "no heartbeat" OR "less than 100bpm" \- but not both --- ## Post #6 by @thomas.beale Cati Martínez wrote: > > After that, I have another question :\), the property "value" of > "ELEMENT" according to the OpenEHR is of type DATA\_VALUE but with > occurrences \{0\.\.1\} and here I have more than one occurrence of type > DV\_ORDINAL\.\.\. Should I change the occurrence to \{0\.\.\*\} for my > implementation? > \*you could, but its not a good idea \- you will be out of sync with the rest of the openEHR world, and not interoperable\. Instead, you need to use the higher level structures like ITEM\_TREE and ITEM\_LIST to give you multiplicity, as well as addressing \- each Element in an ITEM\_LIST for example as a unique \[at\-code\] which enables proper paths to be generated to it\. let me know if you need more details\. \- t --- **Canonical:** https://discourse.openehr.org/t/value-as-a-c-ordinal/14718 **Original content:** https://discourse.openehr.org/t/value-as-a-c-ordinal/14718