fhir-ts
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

fhir-ts

FHIR TypeScript definitions generator.

Disclaimer

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

Installation

npm install fhir-ts -g

Usage

fhir-ts <pattern> <output-directory>

Example:

fhir-ts "structure-defintions/**.profile.json" "types"

Roadmap

  • Resource Definitions
    • [x] Interface declaration from snapshot
    • [x] Property names
    • [x] Property type names
    • [x] Optional properties
    • [x] Array properties
    • [x] JSDoc comments
    • [x] Backbone Element properties
    • [ ] Interface declaration from differential
    • [ ] Default values
    • [x] Content reference
  • Primitive types
    • [x] Type aliases
    • [x] Extensions
  • CLI options

License

MIT licensed.

Readme

Keywords

Package Sidebar

Install

npm i fhir-ts

Weekly Downloads

4

Version

0.0.6

License

MIT

Unpacked Size

1.92 MB

Total Files

32

Last publish

Collaborators

  • andrewtang