A minimalistic VS Code extension to generate FHIR® terminology-related structures.
It's minimalistic because:
It generates only CodeSystem or ValueSet instances;
the source CSV files must have only 2 columns - the first one with codes (text symbols that uniquely identify concepts within the terminology), and the second one with display texts (human-readable strings related to codes);
it considers only attributes with a maximum cardinality of 1, represented by simple datatypes (e.g. string, boolean, etc.);
the output is generated exclusively in JSON format.
FHIR Specification = v5.0.0: R5 - STU
Usage
Open up a CSV file with 2 columns - the first one with codes and the second one with texts related to the codes;
Open up the extension by using the Command Palette ("View/Command Palette..." or Ctrl+Shift+P) by selecting the option "Start a new FHIR® Terminology Generator session";
Fill in the values for the terminology instance;
Generate the terminology instance by clicking the "Generate" button.
Notes
The file fhir.schema.json (FHIR® JSON Schema) was modified to be used in the validation, as follows:
"{1,9}}" was replaced by "{1,9}" due to syntax issues.
Known Issues
The state (i.e. the values filled in the extension fields) are saved internally by the extension whenever the button "Generate" is clicked. If you change the editor tab without clicking the button, the values informed since the last click on the same button will be lost.