Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Node.JS library for serializing/deserializing FHIR resources between JS/JSON and XML using various node.js XML libraries
Node.JS library for serializing/deserializing FHIR resources between JS/JSON and XML using various node.js XML libraries
Indicate which version of FHIR the module should work with. Only DSTU1 is currently supported. If no version is specified, defaults to DSTU1.
var FHIR = require('FHIR.js');
var fhir = new FHIR(FHIR.DSTU1);
Converts a JS object to FHIR XML.
var myPatient = {
resourceType: 'Patient',
...
};
var fhir = new FHIR(FHIR.DSTU1);
var xml = fhir.ObjectToXml(myPatient);
Converts JSON to FHIR XML.
var myPatient = {
resourceType: 'Patient',
...
};
var myPatientJson = JSON.stringify(myPatient);
var fhir = new FHIR(FHIR.DSTU1);
var xml = fhir.JsonToXml(myPatientJson);
Converts FHIR XML to JSON. Wrapper for XmlToObject that parses JSON into an object and returns the object
var myPatientXml = '<Patient xmlns="http://hl7.org/fhir"><name><use value="official"/><family value="Chalmers"/><given value="Peter"/><given value="James"/></name></Patient>';
var fhir = new FHIR(FHIR.DSTU1);
fhir.XmlToJson(myPatientXml)
.then(function(myPatientJson) {
// Do something with myPatientJson
})
.catch(function(err) {
// Do something with err
});
Converts FHIR XML to JS object
var myPatientXml = '<Patient xmlns="http://hl7.org/fhir"><name><use value="official"/><family value="Chalmers"/><given value="Peter"/><given value="James"/></name></Patient>';
var fhir = new FHIR(FHIR.DSTU1);
fhir.XmlToObject(myPatientXml)
.then(function(myPatient) {
// Do something with myPatient
})
.catch(function(err) {
// Do something with err
});
FAQs
Library that assists in handling FHIR resources. Supports serialization between JSON and XML, validation and FhirPath evaluation.
The npm package fhir receives a total of 6,413 weekly downloads. As such, fhir popularity was classified as popular.
We found that fhir demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.