Hi all,

This is an issue that was raised many years ago by the Code24 guys, which
they called the 'pizza problem' i.e what toppings would you like on your
pizza?

https://openehr.atlassian.net/wiki/display/spec/Multi-value+Leaf+Elements

The standard approach is to model this, as has already been suggested, as
multiple occurences of a coded_text element.

This leaves the problem of how to exclude non-unique elements as Bert
suggested. We have talked in the past about adding a 'unique' keyword to
occurences to signfify that repeated identical elements are invalid,
however I am struggling to think of any valid clinical use-case where it
would be valid to have repeated, non-unique coded_text or text items.

I think you can assume that at least for coded_text element with multiple
occurence, unique should apply (although it is also difficult to see what
harm would befall if mutliple identical codes were recorded in data.

It would be probably be easy to add 'unique' keyword to occurences if
necessary, as the key word already exists against containers but I am
really not sure it is necessary.

Ian


Dr Ian McNicoll
mobile +44 (0)775 209 7859
office +44 (0)1536 414994
skype: ianmcnicoll
email: [email protected]
twitter: @ianmcnicoll


Co-Chair, openEHR Foundation [email protected]
Director, freshEHR Clinical Informatics Ltd.
Director, HANDIHealth CIC
Hon. Senior Research Associate, CHIME, UCL

On 11 September 2016 at 15:49, pablo pazos <[email protected]> wrote:

> You are right, this might be one of those cases that should be solved by
> software.
>
>
> Sent from my LG Mobile
>
> ------ Original message------
>
> *From: *Bert Verhees
>
> *Date: *Sun, Sep 11, 2016 01:35
>
> *To: *For openEHR technical discussions;
>
> *Subject:*Re: How can I model multiple checkboxs options with terminology?
>
> Hi Pablo, good solution, I think it is a better solution then mine, the
> only problem is that it allows more times the same selection, isn't it?
> Because you can let occur a DvCodedText more then once in an Element, but
> you cannot define it more then once. Maybe more elements with all one
> DvCodedText and with all have only one (but different) code to select, and
> have an occurrence of optional 0..1..
>
> I think OpenEhr should solve this by creating a new datatype.. What do you
> think?
>
> Op 11 sep. 2016 04:14 schreef "pablo pazos" <[email protected]>:
>
>> Use a coded text element with occurrences > 1
>>
>>
>> Sent from my LG Mobile
>>
>> ------ Original message------
>>
>> *From: *Tiago Santos da Silva
>>
>> *Date: *Sat, Sep 10, 2016 16:38
>>
>> *To: *[email protected];
>>
>> *Subject:*How can I model multiple checkboxs options with terminology?
>> Hi,
>>
>> Can anyone tell how I can model the example below?
>>
>> "What parts of the body hurt? [ ] right leg [ ] left leg [ ] head [ ]
>> right arm .."
>>
>> I know to model a single option (radio-buttom) but I don't know to model
>> a multiple options (checkbox)
>>
>> The idea is that the options are of the terminology, so I can't model
>> right in the archetype.
>>
>> I'm using the key-path  strategy for data persistence. In the case of the
>> radiobutton leaf is a DV_CODED_TEXT but I don't know when use checkbox.
>>
>> Note: English is not my native language I hope it is clear the doubt.
>>
>> Thank you!
>>
>> --
>> Abs,
>> Tiago Santos da Silva
>> ===============================================
>> +55 21 3938-8688 /+55 21 97556-9840 <+55%2021%2097556-9840>
>> CAPGov - Centro de Apoio a Politicas de Governo
>> COPPE Sistemas / Universidade Federal do Rio de Janeiro
>>
>> COPPE: 50 ANOS ANTECIPANDO O FUTURO
>>
>> Arquiteto de Software
>> Doutorando em Engenharia de Sistemas e Computação (PESC/UFRJ)
>> Mestre em Engenharia de Sistemas e Computação (PESC/UFRJ)
>>
>> _______________________________________________
>> openEHR-technical mailing list
>> [email protected]
>> http://lists.openehr.org/mailman/listinfo/openehr-technical_
>> lists.openehr.org
>>
>
> _______________________________________________
> openEHR-technical mailing list
> [email protected]
> http://lists.openehr.org/mailman/listinfo/openehr-
> technical_lists.openehr.org
>
_______________________________________________
openEHR-technical mailing list
[email protected]
http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org

Reply via email to