CKM feature request - bulk export of archetypes in XML format

Hi, could you please implement such a function?

Hi Dmitry,

I’m not sure if this helps, but if you already have a local directory of ADL archetypes then you can run the Ocean Archetype Editor in batch-processing mode from the command line to export them as XML.

For example, the following command will export all of the CLUSTER archetypes in a directory called “archetypes”, writing them to a directory called “exported":

  "C:\Program Files (x86)\Ocean Informatics\Archetype Editor\ArchetypeEditor.exe" .\archetypes\openEHR-EHR-CLUSTER.*.adl -exportxml .\exported

When you run the Archetype Editor in a batch-processing mode like this, it opens multiple ADL or XML archetypes one by one, writing each archetype as ADL or XML or both.

The command line options are:
  ArchetypeEditor.exe [languagecode] [archetypefiles] [-exportadl] [-exportxml] [exportdirectory]

The [archetypefiles] argument allows wildcard patterns (e.g., "knowledge\*adl" or "knowledge\*xml”).

Both export flags (i.e., -exportadl and -exportxml) can be specified, so that ADL and XML will both be generated.

The [exportdirectory] argument is optional. If it is not specified, then each archetype is written out to the same directory as the source archetype file. (This means that the source archetype is overwritten, if it is output in the same format.)

- Peter

Hi Peter, it best suits my needs.

Yes, Dmitry,

An xml option for the export wouldn’t hurt…shouldn’t be too difficult to implement.
I’ll raise a Jira card for it.
In the meantime, Peter’s option is great.

Cheers
Sebastian