Skip to content

Latest commit

 

History

History

fhir-ts-codegen

fhir-ts-codegen

Generate io-ts runtime types from FHIR StructureDefinitions.

Disclaimer

This project is still in early stages of development and should not be considered "production-ready".

Installation

npm install @tangdrew/fhir-ts-codegen -g

Usage

Usage: fhir-ts-codegen [options]

Options:
  -i, --input <dir>   input pattern to StructureDefinitions
  -o, --output <dir>  path to output directory
  -V, --version       output the version number
  -h, --help          output usage information

Example:

fhir-ts-codegen --input "./structure-definitions/**.profile.canonical.json" --output ./types

License

MIT licensed.