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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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:
fhir-client.js
- complete client library with jQuery and fhir.js included (no external dependencies)fhir-client-jquery.js
- client library using jQuery, jQuery and fhir.js not includedfhir-client-angularjs.js
- client library using AngularJS, AngularJS and fhir.js not includedFor usage examples and further documentation, please visit http://docs.smarthealthit.org/clients/javascript/
Under Development
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]