Socket
Socket
Sign inDemoInstall

fhir-proof

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fhir-proof

typed javascript classes for fhir


Version published
Maintainers
1
Created
Source

Build Status Test Coverage npm version

FhirProof

This library provides a (very small atm) subset of javascript classes for the HL7 FHIR standard.

Install

npm install fhir-proof --save

run tests with npm test

Usage


import { Resources, Types } from 'fhir-proof';

const { Observation } = Resources;
const { CodeableConcept, Coding } = Types;


const c = Coding({
  system: 'http://loinc.org',
  code: '8302-2',
  display: 'height'
});

const cc = CodeableConcept({
  text: 'Height',
  coding: [ c ]
});

const o = Observation({
  id: '1',
  status: 'final',
  code: cc
});

// will throw an error because foo is no observation status code
const o2 = Observation({ status: 'foo' });

Please look in the tests directory for more usage examples.

FAQs

Package last updated on 04 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc