Change type from DV_TEXT to DV_CODED_TEXT in the Template Designer

Hi,

I’m working with the problem/diagnosis archetype. I want to include it in an OPT but redefine the name constraint that is DV_TEXT to DV_CODED_TEXT, but the TD doesn’t show the DV_CODED_TEXT option in the node data type list. See: http://postimg.org/image/dtb8paha3/

Is this possible?

Thanks!

Hi Ian, I need to have diagnosis coded by a terminology, using a value set is not possible.

Also, I thought that every DV_TEXT can be specified as a DV_CODED_TEXT thanks to class iheritance (DV_CODED_TEXT is a DV_TEXT).

Should I specialize the archetype to add a coded node?

You are right Pablo, it should be possible to redefine a DV_TEXT into a DV_CODED_TEXT. It is not different from changing an EVENT to an INTERVAL or POINT event.

I agree, the only difference I can think of if that EVENT is an abstract superclass and DV_TEXT is not. Maybe thia causes the TD to not allow to choose the DV_CODED_TEXT subclass.