1.0.0-rc1 • Published 4 months ago

wt2docx v1.0.0-rc1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

wtconvert

App to convert openEHR 'web templates' to Asciidoc, Xmind and other output formats.

Purpose

Documentation for clinical applications should be written and maintained in one single truth. The openEHR web template is such a resource. This project generates asciidoc files and other exports for a given template.

Usage

❯ wtconvert
Options:
    --help                  Show help                             [boolean]
    --version               Show version number                   [boolean]
    --web-template, -wt     Source web template                   [string] [required]
    --out-file,     -o                                            [string]
    --export-format, -ex    Export format (default:adoc)          [string] adoc|xmind|docx|pdf
    -- config-file,  -cf    default: "config/wtconfig.json"       [string]
  

Export format dependencies

  • Adoc (asciidoc) and Xmind are supported natively.
  • Docx requires a local install of Pandoc

Configuration

The default configuration is

{
  //Display occurences as e.g. [1..1] rather than 'mandatory'
  "displayTechnicalOccurrences": false,
  
  //Hide atCodes and Rm attribute ids
  "hideNodeIds": true,
  
  // Skip specific AQL paths
  "skippedAQLPaths": [],
  
  //Include specifc annotations
  "includedAnnotations": [],
  
  //Exclude theese specific RM attribute tags
  "excludedRMTags": ["territory","language", "encoding","subject"],
  
  // Optionsal top level title to replace the template root name
  "title": "",
 
  // Display the AQL paths of eacNode instead of a Description
  "displayAQLPaths": false,
  
  //Display a Table of contents
   "displayToc": false,
}