0.0.0 • Published 6 years ago

node-fhir-validator v0.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

node-fhir-validator

HL7 FHIR resources validator for node.js

Overview

This is a validation library for HL7 FHIR resources.
Including JSON schema that provided with Validating Resources.

Install

$ npm install --save node-fhir-validator

Usage

const { Validator } = require('node-fhir-validator')
const validator = new Validator()

const inputData = {
  // Patient data.
}

try {
  const data = await validator.validate('Patient', inputData)
} catch (error) {
  // Error handling.
}