We're updating the issue view to help you get more done. 

Codes got removed when exporting OPT for TEXT/CODED TEXT node when TEXT is removed

Description

On the EVALUATION.problem_diagnosis archetype, there is a node with alternative datavalues TEXT/CODED TEXT

ELEMENT[at0005] occurrences matches {0..1} matches { – Severity
value matches {
DV_CODED_TEXT matches {
defining_code matches {
[local::
at0047, – Mild
at0048, – Moderate
at0049] – Severe
}
}
DV_TEXT matches {*}
}
}

1. create a template that uses that archetype,
2. remove the DV_TEXT alternative,
3. export the OPT
4. the OPT doesnt include the code constraints for the remaining CODED TEXT node
5. if the DV_TEXT node is not removed and the OPT is exported, the codes are on the OPT like

<code_list>at0047</code_list>
<code_list>at0048</code_list>
<code_list>at0049</code_list>

Environment

None

Status

Assignee

Unassigned

Reporter

Pablo Pazos

Components

Priority

Major