I understood.

The solution is using multiples DV_CODED_TEXT and uniqueness is implemented
by software.

In this case I think that the data persistence is made of many leaf paths
(one value by leaf). I don't see the problem in saving the entire
composition in a contribution, but if I send only changed data I have to
find a way of delete a leaf when "checkbox" is deselected. I know how to
update key/path data but I didn't find deletion in the openEHR
specification (Probably I failed when I was searching for this).

I think that is just a implementation problem and I wont't find that in
specification. Am I correct?

Thanks, you helped me a lot!

2016-09-10 20:48 GMT-03:00 Tiago Santos da Silva <[email protected]>:

> I understand that you can use a cluster with multiple Boolean. But I would
> like that the values came from a terminology.
>
> Maybe a better example would be the following:
>
> 1) Select the laboratory tests that should I request:
>       [ ] Blood Glucose
>       [ ] Blood Culture
>       [ ] Albumin
>                  < 100 other tests ...>
>       [ ] Amylase
>
> Can't I use the values of a terminology such as list of options using
> openEHR? Do I must write all the laboratory tests in the archetype like
> booleans?
>
> I have trouble understanding how openEHR handles lists of values. I think
> I have to use the field "occurrences 0.*" but I'm not sure if that is the
> correct way.
>
> Maybe I'm not thinking right about how to use OpenEHR.
>
> Thanks for helping.
>
> - Tiago
>
> 2016-09-10 16:37 GMT-03:00 Tiago Santos da Silva <[email protected]>:
>
>> 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!
>>
>
_______________________________________________
openEHR-technical mailing list
[email protected]
http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org

Reply via email to