Giter Site home page Giter Site logo

jgrasso2 / node-fhir-server-core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bluehalo/node-fhir-server-core

0.0 0.0 0.0 7.57 MB

A Secure Rest implementation for the HL7 FHIR Specification. For API documentation, please see https://github.com/Asymmetrik/node-fhir-server-core/wiki.

License: MIT License

JavaScript 100.00%

node-fhir-server-core's Introduction

Asymmetrik FHIR API Server

A Secure Rest implementation for the HL7 FHIR Specification. For API documentation, please see https://github.com/Asymmetrik/node-fhir-server-core/wiki.

Build Status Known Vulnerabilities

The Asymmetrik Extensible Server Framework for Healthcare allows organizations to build secure, interoperable solutions that can aggregate and expose healthcare resources via a common HL7® FHIR®-compatible REST API. This server framework currently supports both DSTU2 (1.0.2) and STU3 (3.0.1) simultaneously. You can decide to support both or just one by editing the configuration.

The framework defines a core server, node-fhir-server-core, a simple, secure Node.js module built according to the FHIR specification and compliant with the US Core implementation.

For an example implementation using MongoDB, please refer to our Github repository that we used for the ONC FHIR Secure API Server Showdown Challenge, https://github.com/Asymmetrik/node-fhir-server-mongo.

Prerequisites

Node.js version later than 7.6, but not 8.5 (see Attention), and an understanding of promises usage are required.

Familiarity of the FHIR specification and whatever database containing the resources will assist in querying data and returning them in a format conforming to specification.

Getting Started

Install node-fhir-server-core as followed:

# For yarn users
yarn add @asymmetrik/node-fhir-server-core

# For npm users
npm install --save @asymmetrik/node-fhir-server-core

Once installed, the server can be required in the application.

const FHIRServer = require('@asymmetrik/node-fhir-server-core');
const { VERSIONS } = FHIRServer.constants;

/**
* The server will not run unless you have specified
* at least one valid profile configuration
*/
const config = {
	profiles: {
		patient: {
			service: path.resolve('./profiles/patient/patient.service'),
			versions: [ VERSIONS['3_0_1'] ]
		}
	}
};

let main = function () {
	let server = FHIRServer.initialize(config);
	server.logger.info('FHIR Server successfully validated.');
	// Start our server
	server.listen(3000, () =>
		server.logger.info('FHIR Server listening on localhost:' + 3000)
	);
};

main();

Usage

For a complete list of all configuration options, supported profiles, their setups, best practices, authentication, etc. please consult our Wiki. More documentation and examples will be added over time.

Roadmap

  • Support for more versions
    • Multiple versions within DSTU2 and STU3
    • R4
  • Remaining Endpoints (Terminology Operations)
  • Validation Service
  • Enhancing Authentication and adding additional scope checks
  • Better documentation on setup and configurations
  • Implementation guides and demos

Philosophy

Our project vision is to build an easy to use FHIR server that supports all resource profiles defined in the US Core implementation guide and is built with security in mind from the ground up. We decided to use a plugin style architecture so implementors could focus on writing queries and not worry about all the other technical difficulties of securing the server. As this project matures, we plan to support more resources, custom extensions, versions, write capabilities, etc.

We believe in establishing a robust security, especially when it comes to health information. Part of the ONC Secure API Server Challenge was to stand up a server and let penetration testers have a go at it (you can see their results here). We are committed to continuing this practice and we will continue fixing any vulnerabilities discovered so we can do our best to make this server as secure as possible. For authentication, we are actively working on methods for simplifying integration with SMART on FHIR.

Contributing

Please see CONTRIBUTING.md for more details regarding contributing issues or code.

Attention

This library makes use of node's path module. This is potentially exploitable in node version 8.5, see here. When deploying this, you need to deploy with a node version later than 7.6 BUT not 8.5.

License

@asymmetrik/node-fhir-server-core is MIT licensed.

node-fhir-server-core's People

Contributors

andrewmarcus avatar dominathan avatar eddied01 avatar imdrt avatar jgrasso2 avatar jonterrylee avatar jtravan3 avatar mcurtis22 avatar robert-w avatar snyk-bot avatar trere22 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.