# Default values in OPT 1.4 **Category:** [ADL](https://discourse.openehr.org/c/adl/40) **Created:** 2021-08-17 09:57 UTC **Views:** 474 **Replies:** 2 **URL:** https://discourse.openehr.org/t/default-values-in-opt-1-4/1785 --- ## Post #1 by @pieterbos Several versions of the OPT 1.4 XSD seem to be used. Pablo did a comparison of the different versions in https://discourse.openehr.org/t/opt-version-schema-document/486/34 . I am currently writing a converter from OPT 1.4 to ADL 2 templates in source form. It now mostly works and can be found in https://github.com/openEHR/archie/pull/261 . It can also be used to parse OPT 1.4 into the AOM 2 directly, without conversion. However, in the different OPT 1.4 versions, the way to define default values is very different: - one has default values on every C_ARCHETYPE_ROOT, with a path, in terms of primitive types (string, boolean, integer, etc) - a sub-variant, where this can be on every C_COMPLEX_OBJECT instead - one has a separate section, containing a mapping from paths to extended C_ATTRIBUTES, with default values defined as DV_ types, so DV_TEXT, DV_CODED_TEXT, etc. All of the OPTs I found use the second variant, with a separate section. I could write the first one as well relatively easily, but of course only if it is in use. So my question: Is the other variant of defining default values actually used? If the variant on C_ARCHETYPE_ROOT is used, does anyone have any examples of that? --- ## Post #2 by @thomas.beale Are you just talking about what the _default blocks look like in OPT1.4, not the generated OPT2, which should have them inline, like ADL2? --- ## Post #3 by @pieterbos Yes, just OPT 1.4 there are several versions of the XSDs in use. So I would like to know if this specific feature is actually in use as well in the different variants. In OPT2 it is very clear what to do. --- **Canonical:** https://discourse.openehr.org/t/default-values-in-opt-1-4/1785 **Original content:** https://discourse.openehr.org/t/default-values-in-opt-1-4/1785