0.4.0 • Published 7 years ago

fhir-proof v0.4.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Build Status Test Coverage npm version

FhirProof

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

FhirProof_UML

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.

0.4.0

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago