Git Product home page Git Product logo

fhir.js's Introduction

FHIR.js

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

Build Status

Dependencies

  • q 1.4.1
  • xml2js 0.4.9
  • xmlbuilder 2.6.4
  • libxmljs 0.18.0
  • lodash 3.10.1
  • path 0.12.7

Installation

npm install fhir

Test

npm test

Documentation

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

Implementation Notes

  • FHIR STU3 is updated with the latest published profiles and schemas
  • 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

fhir.js's People

Contributors

seanmcilvenna avatar ajagann1 avatar

Watchers

ME avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.