Generate io-ts runtime types from FHIR StructureDefinitions.
This project is still in early stages of development and should not be considered "production-ready".
npm install @tangdrew/fhir-ts-codegen -g
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