ppazos / cabolabs-ehrserver

Open platform to manage and share standardized clinical data, designed by @ppazos at CaboLabs Health Informatics.
https://cabolabs.com
Apache License 2.0
179 stars 110 forks source link

Check we are generating indexes for alternative types #943

Open ppazos opened 6 years ago

ppazos commented 6 years ago

In archetypes, an ELEMENT constraint "choice" can be specified, resulting on multiple types allowed on ELEMENT.value constraints.

                                    ELEMENT[at0015] occurrences matches {0..1} matches {    -- Nuevo elemento
                                        value matches {
                                            C_DV_QUANTITY <
                                            >
                                            DV_BOOLEAN matches {
                                                value matches {True, False}
                                            }
                                            DV_MULTIMEDIA matches {
                                                media_type matches {[openEHR::]}
                                            }
                                        }
                                    }

In that case we need to be sure all the OPT and AII indexes are created for each alternative, so they appear on the Query Builder path selectors.