npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@automate-medical/fhir-schema-types

v0.0.4

Published

TypeScript definitions for FHIR

Downloads

4,532

Readme

fhir-schema-types

An npm-published set of TypeScript definitions for Fast Healthcare Interoperability Resources (FHIR).

Installation and use

Install this into an existing TypeScript project with:

npm install @automate-medical/fhir-schema-types

The definitions are exported in the root level of the module, by version. You can import the latest stable version by default. You can also import named versions.

import FHIR from '@automate-medical/fhir-schema-types'

import { R4 as FHIR } from '@automate-medical/fhir-schema-types'

You can also import specific versions.

import { v4_6_0 as FHIR } from '@automate-medical/fhir-schema-types'

This library exposes type and interface definitions in TypeScript for all of the elements and resources in FHIR. You can use it in your TypeScript projects to bring type-safety guarantees to your programs that manipulate FHIR documents. We wrote a custom JSON schema parser to achieve this, and to ensure maximum flexibility so that the project can be maintained into the future.

Features & Roadmap

Note This project is semantically versioned. We make no commitments about the stability of our interfaces until 1.0.0.

  • [X] Simple translation of JSON Schema definitions to type and interface definitions
  • [X] Support for const values
  • [ ] Support for using named enum types instead of union types that enumerate field options
  • [ ] Support for class definitions instead of interfaces
  • [ ] Public test suite/CICD
  • [X] Support for version 4.0.1 (R4) and latest published 4.6.0
  • [ ] Programatically download JSON Schema definitions for every version of FHIR and export schema
  • [ ] Support definitions for the Graphql definitions provided in 4.6.0+
  • [ ] Define a contributor license agreement
  • [X] Publish NPM module
  • [ ] NPM build should include a bundle + sourcemaps instead of the raw build

Contributing

Building the project can be done with:

npm run build

At present, you must create a directory in the root of the project called hl7, inside of which you must create specific fhir.schema.json files for each of the versions you need to build. In the future, the project will download the assets itself.

License and notice

Copyright Automate Medical Inc.

FHIR® is the registered trademark of HL7 and is used with the permission of HL7.

The use of the term FHIR is in no way endorsed, or sponsored by, or part of the trademark steward. Automate Medical Inc. truthfully asserts that this project complies with version 4.0.1 and 4.6.0 of the FHIR standard as a matter of fair use.