FHIR Chat · fhir.js: pull request 88: Native adapter added to the web... · javascript

Stream: javascript

Topic: fhir.js: pull request 88: Native adapter added to the web...


view this post on Zulip FHIR.js Bot (Feb 03 2017 at 14:19):

bunyaminsg opened pull request 88

adapters/native.js added to webpack.config.js file. Now, it creates a build for 'native.js' adaper on dist/nativeFhir.js when running npm run-script build. This file can be imported as:

    <script src="js/nativeFhir.js"></script>

And used in other scripts like:

var config = {"baseUrl":"http://base.url", ... };

var client = fhir(config);

client.read({type: 'Patient', id: "..."}).then(function(response){
    console.log(response);
}, function (error) {
    console.log(error);
});

view this post on Zulip FHIR.js Bot (Feb 04 2017 at 20:39):

niquola closed pull request 88


Last updated: Apr 12 2022 at 19:14 UTC