Skip to main content
. 2020 Jul 3;20:147. doi: 10.1186/s12911-020-01168-0

Fig. 5.

Fig. 5

Encoding Operated, Ordered, Required, and Dependent constraints for a repeated cCDE. a A ‘Medical History’ clinical document presented in a tabular format containing six attributes. b A repeated cCDE is created with the corresponding six aCDEs along with four constraint rules: (1) the start date (DE:47618) should be earlier than the end date (DE:47619): (< DE:47618 DE:47619); (2) all attributes are required to have values other than null, except for the end date (DE:47619): (Required DE:37059 DE:47621 DE:31106 DE:47618 DE:44078, 3) when a certain medical history is not ongoing (DE:44078), the end date (DE:47619) cannot be obtained, and vice versa: (IF (! = DE:44078 ‘Yes’) DE:47619 NULL); and (4) aCDEs can be ordered according to a constraint statement such as (Ordered DE:37059 DE:47621 DE:31106 DE:47618 DE:44078 DE:47619) (http://chmr2.snubi.org:8083/chmr/data_element_view.jsp?id=28477)