node-fhir-validator
v0.0.0
Published
HL7 FHIR resources validator for node.js
Downloads
138
Readme
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.
}