Skip to content
Peter Robinson edited this page May 28, 2021 · 1 revision

gofsh

In May, 2021, we transitioned to FHIR Shorthand (“FSH” or “Shorthand”) language for developing this IG. This wiki page records the steps taken to do this.

Install gofsh

Install and check prerequisites.

$ sudo apt install nodejs
$ sudo apt install npm
$ node --version
v10.19.0
$ npm --version
6.14.4

Install and check GoFsh

$ npm install -g gofsh
$ gofsh --help

Conversion

Run the following gofsh command

$ gofsh ig-root/input/ -t json-and-xml

This creates a new folder called gofsh. We then removed the old XML resource definitions in input/* and add the new FSH definitions to input/fsh. Initially, we used the pre-existing input/pheno-core-ig.xml file. In a separate step, we transfered the information from input/pheno-core-ig.xml to a root-level sushi-config.yaml file and then deleted the input/pheno-core-ig.xml file.

Note that this step only needed to be carried out once.

Clone this wiki locally