uwcirg/client-js

Name: client-js

Owner: University of Washington Clinical Informatics Research Group

Description: JavaScript client for FHIR

Forked from: smart-on-fhir/client-js

Created: 2018-01-09 18:28:09.0

Updated: 2018-01-10 04:52:16.0

Pushed: 2018-01-10 04:51:18.0

Homepage: null

Size: 4267

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

SMART on FHIR JavaScript Client Library

Building

To build the library, you will need Grunt and NPM. Once you have all the dependencies in place, you can build the library with the grunt command.

Here are the exact steps to build the client library on Ubuntu 14.04:

 apt-get update
 apt-get -y install git npm
 ln -s "$(which nodejs)" /usr/bin/node
clone https://github.com/smart-on-fhir/client-js
lient-js
install
 npm install -g grunt-cli
t

If all goes well, the client library will be available in the dist directory in multiple variants as follows:

Usage

For usage examples and further documentation, please visit http://docs.smarthealthit.org/clients/javascript/

Using Native Adapter
Building from Source

Under Development

Including Static JS File

The fhir-client-native.js file can be used by adding the following tags to your html document:

ipt src="[path-to-js-assets]/nativeFhir.js"></script>
ipt src="[path-to-js-assets]/fhir-client-native.js"></script>

These two Javascript files need to be built and made available to the app.

Building nativeFhir.js based on instructions from https://github.com/FHIR/fhir.js#development

clone https://github.com/FHIR/fhir.js
hir.js
install

ild nativeFhir.js ==> dist/ folder
run-script build

/dist/natvieFhir.js [path-to-js-assets-folder]

Building fhir-client-native.js based on instructions from https://github.com/smart-on-fhir/client-js#building

clone https://github.com/uwcirg/client-js
lient-js
install

ild fhir-client-native.js ==> dist/ folder
 npm install -g grunt-cli
t

/dist/fhir-client-native.js [path-to-js-assets-folder]

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.