New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fhir

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fhir

Node.JS library for serializing/deserializing FHIR resources between JS/JSON and XML using various node.js XML libraries. Validating XML against the schemas is supported. Basic JS validation is supported against the core FHIR profile definitions.

  • 2.0.7
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

FHIR.js

Node.JS library for DSTU1 and DSTU2, for serializing/deserializing FHIR resources between JS/JSON and XML using various node.js XML libraries, and for validating FHIR JSON and XML

Build Status

Dependencies

  • q 1.4.1
  • xml2js 0.4.9
  • xmlbuilder 2.6.4
  • libxmljs 0.14.3

Installation

npm install fhir

Test

npm test

Documentation

API documentation can be found at http://lantanagroup.github.io/FHIR.js/

Implementation Notes

  • FHIR DSTU2 is now supported
  • Feeds and resources are both supported for DSTU1. There is no need to do anything different for converting feeds vs. resources. The library will automatically detect what should be produced based on the resourceType of the JS object passed, or based on the root element of the XML.
  • libxmljs is used to validate XML against the FHIR schemas
  • xml2js is used to parse XML and create JS
  • xmlbuilder is used to create XML from JS
  • FHIR profiles (within the "profiles" directory) are used to determine whether properties should be arrays. The profiles are loaded into memory whenever an instance of the FHIR module is created. This could be improved to reduce I/O operations... ** As part of publishing, all FHIR JSON profiles are merged together into a single array that is used by require() within FHIR.js

Keywords

FAQs

Package last updated on 25 Nov 2015

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