# Is 'Choice' datatype available in Archetype editor an OpenEHR standard

**URL:** <https://discourse.openehr.org/t/is-choice-datatype-available-in-archetype-editor-an-openehr-standard/15496>\
**Category:** Technical (archive)\
**Created:** [22 September 2017 11:14 UTC](https://discourse.openehr.org/t/is-choice-datatype-available-in-archetype-editor-an-openehr-standard/15496 "2017-09-22T11:14:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [22 September 2017 11:14 UTC](https://discourse.openehr.org/t/is-choice-datatype-available-in-archetype-editor-an-openehr-standard/15496/1 "2017-09-22T11:14:15Z")

</div>

Hi,  
Archetype editor includes a datatype called "Choice’. This allows more than one data type(text & coded text for example) for the same node. Is this OpenEHR standard?

regards

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [22 September 2017 11:17 UTC](https://discourse.openehr.org/t/is-choice-datatype-available-in-archetype-editor-an-openehr-standard/15496/2 "2017-09-22T11:17:11Z")

</div>

It is indeed.

It is not called ‘choice’, it is just multiple datatype constraints on the same element.

Ian

---

<div class="post-metadata">

**Author:** ![yampeku](https://discourse.openehr.org/user_avatar/discourse.openehr.org/yampeku/32/25_2.png) [@yampeku](https://discourse.openehr.org/u/yampeku)\
**Post date:** [22 September 2017 11:20 UTC](https://discourse.openehr.org/t/is-choice-datatype-available-in-archetype-editor-an-openehr-standard/15496/3 "2017-09-22T11:20:47Z")

</div>

Hi Dileep,

Choice is not a data type per se, but a visual aid to tell you that at a given place in the archetype you have defined more than one data type as a valid option. In real patient data only one of the types will be present.

Regards

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [22 September 2017 11:24 UTC](https://discourse.openehr.org/t/is-choice-datatype-available-in-archetype-editor-an-openehr-standard/15496/4 "2017-09-22T11:24:34Z")

</div>

It is explained in the ADL 2 spec here: [http://openehr.org/releases/AM/latest/docs/ADL2/ADL2.html#\_single\_valued\_attributes](http://openehr.org/releases/AM/latest/docs/ADL2/ADL2.html#_single_valued_attributes)

And the ADL 1.4 spec here: [http://openehr.org/releases/AM/latest/docs/ADL1.4/ADL1.4.html#\_single\_valued\_attributes](http://openehr.org/releases/AM/latest/docs/ADL1.4/ADL1.4.html#_single_valued_attributes)

Pieter
