I cannot find that dropbox that allows selecting the adl version anymore. The menu at the top of the screen has fewer items too (CDR, Libraries do not exist in the UI I’m looking at). I created a brand new github account , wired that to AD, no luck.
I could only make this work by exporting a template as adls, then importing it back into the repo, but then I’m left with the mystery of attempting to produce an opt (based on 2.X).
As you can see, I’m a bit lost here. Could clinical modelling practitioners give me a helping help here? What’s the state of ADL 2.X support in AD? How do you do things, what things you’re doing ?
Thanks @ian.mcnicoll , supported how is my question I guess Do I need to do export as adls, import again ritual? The screenshot that was shared in that message has adl2 as an option, that’s gone now apparently.
Are you sure? I’m pretty sure I’ve managed to create templates in ADL2, and exporting them using ADL2. They don’t use ADL2 as the expression language though, which I now realise may be what you meant?
I asked @pieterbos (the ADL2 expert!) to look at 'Better’s native.json, and he says that although it is close to official ADL2 (in json format) it is not valid. I think @borut.fabjan told us this was because there were a few issues in ADL2 at that time which made it difficult to follow 100%. I suspect (hope) those gaps are now closed, so it would be really helpful to have a formal ADL2 template export now.
So my understanding is that even though the topic was about exporting ADL2 templates, the screenshot that @borut.fabjan posted relates only to creating a new ADL2 archetype, not a template.
ADL2 is just not supported for templates AFAIK, neither .adlt or .opt2
Thanks @siljelb I’m properly confused now How did you get to that .opt file?
I do export to .adls → import for an archetype, then I have an adl2 archetype. I cannot create a temlate from that though, because new template dialog only recognises adl1.4 archetypes.
If I export the adls (adl 2.x) archetype as an opt, the output does not have the adl_version.. you have. Neither does the file set export.
that’s not possible anymore though, which was part of my question. The topic is about what is actually possible in the tool at the moment because I’m having difficulty figuring that out.
This was quite a while ago. I did a quick check in the current version. With the instructions provided by Silje it exports ADL 2 archetypes. I have not checked how well it works, especially with specialization.
It does not export ADL source templates, or ADL OPT files. But it does export a json serialization of an ADL 2 template (equivalent to OET, not OPT). If this format and the contents are correct, you can generate ADL 2 in template or OPT format using Archie, with the archetypes and template as input. I have not tested that. You need to write some kind of script, because the visual studio code extension does not currently parse this json format.
It also exports an OPT xml file that looks a bit like ADL 2 OPT, but with some oddities, such as mixed naming styles: <componentTerminologies/> , but <term_definitions , for example. Note the difference between the capital T and the _d. This would at least require a custom parser, some preprocessor or some adaptations to an existing one to parse.