Skip to content

ttran/fhir-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fhir-node

This node npm package allows for the propagation of FHIR requests to GT's FHIR database.

The module requires a parameter/options object that has 4 parameters:

  1. start
  2. end
  3. format

The module also has an optional callback function. If this parameter is left empty, it returns a promise.

For information on promises see: https://www.npmjs.com/package/promise

##Examples

###To install: npm install fhir-node

###To require: var fhir = require('fhir-node');

####options var params = { start: 41, end: 138, format: 'json' };

####promise fhir(params).then(function(records){ console.log(records); });

fhir().then(function(records){
	console.log(records);
});

####callback fhir(params, function(records){ console.log(records); });

fhir(null, function(records){
	console.log(records);
});

Leaving options empty or null will result in querying the entire patient list.

Currently only returns "entry" records (does not return metadata regarding the request). Also currently reads from read-only server.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published