Which code in code_string symbol for DV_ORDINAL?

I'm wondering how to set code_string value for a DV_ORDINAL.

Having a DV_ORDINAL a structure like this:
<items archetype_node_id="at0004.1" xsi:type="ELEMENT">
<name>
<value>Element name</value>
</name>
<value xsi:type="DV_ORDINAL">
<value>5</value>
<symbol>
<value>Description 5</value>
<defining_code>
<terminology_id>
<value>local</value>
</terminology_id>
<code_string>???</code_string>
</defining_code>
</symbol>
</value>
</items>

which information should I use in code_string of DV_ORDINAL element? The integer value or the atxxxx
code?

For example, if I defined an ordinal element as
ELEMENT[at0004.1] occurrences matches {0..1} matches { -- Igiene Personale
     value matches {
         5|[local::at0.15], -- Description 5
         4|[local::at0.14], -- Description 4
         3|[local::at0.13], -- Description 3
         2|[local::at0.12], -- Description 2
         1|[local::at0.11] -- Description 1
     }
}

has code_string to be set with at0.1x codes or with integer values (1, 2, 3, 4, 5)?

Thanks for your help!
Regards

leo

Leonardo,

In this case, since terminology_id = ‘local’, code_string will be some string like ‘at0.13’ (based on your extract below). If the terminology_id had been SNOMEDCT_2009_01_01 then code_string has to be a SNOMED CT code… and so on.

  • thomas
(attachments)

OceanInformaticsl.JPG

Thank you Thomas,
I have clear how to use terminology_id and code for DV_CODED_TEXT, but here
I'm wondering if I can use the ordinal (integer) value as coded value in a
DV_ORDINAL, like in this example (note: <code_string>5</code_string>):

<items archetype_node_id="at0004.1" xsi:type="ELEMENT">
  <name>
    <value>Element name</value>
  </name>
  <value xsi:type="DV_ORDINAL">
    <value>5</value>
    <symbol>
    <value>Description 5</value>
    <defining_code>
      <terminology_id>
        <value>local</value>
      </terminology_id>
      <code_string>5</code_string>
    </defining_code>
    </symbol>
  </value>
</items>

Ragards
leo

Thomas Beale-3 wrote:

Leonardo Moretti wrote:

I have clear how to use terminology_id and code for DV_CODED_TEXT,
but here
I'm wondering if I can use the ordinal (integer) value as coded
value in a
DV_ORDINAL, like in this example (note: <code_string>5</code_string>):
...
     <terminology_id>
       <value>local</value>
     </terminology_id>
     <code_string>5</code_string>

No, Leonardo, you can't do that. The ordinal's value and the code
string are different things. The code string must be a member of the
terminology. In your example, the terminology is "local", which means
that it's an at-code.

Imagine that the coded text used a different terminology. Imagine that
this terminology had codes like "1", "2", "3", "4", "5", etc. If this
was your terminology, then of course your code string could be "5".

- Peter

Hi Leonardo,

You can use a local terminology-id but do not use ‘local’ for the terminology name, which is reserved name meaning that internal atcodes are being used.

So this would be valid, I think …

<terminology_id>
leonardoCT
</terminology_id>
<code_string>5</code_string>

Ian

Dr Ian McNicoll
office +44 (0)1536 414994
fax +44 (0)1536 516317
mobile +44 (0)775 209 7859
skype ianmcnicoll
ian.mcnicoll@oceaninformatics.com

Clinical analyst, Ocean Informatics, UK
openEHR Clinical Knowledge Editor www.openehr.org/knowledge
Honorary Senior Research Associate, CHIME, UCL
BCS Primary Health Care www.phcsg.org