Skip to content

rdf-pipeline/fhir-json-to-xml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FHIR-JSON-to-XML-Converter

A JSON->XML converter for HL7 FHIR

This project contains a FHIR® JSON->XML converter written in JavaScript and a test harness to demonstrate its use. It is built from the XML Schemas found in the FHIR® DSTU 2 QA Build at http://www.hl7.org/fhir/2015Sep/index.html

Usage is fairly straight-foward.

  1. First you create a new converter: var FHIR_JSONtoXML = new FHIRConverter(2);
  2. Then you convert the FHIR JavaScript object var xml = FHIR_JSONtoXML.toXML(object);

The toXML member function will convert the object to an XML representation. It assumes that the object itself complies with the FHIR specification, and does not (yet) attempt to handle input implementation errors or validation.

Node version of this is similar:

var fj2xml = require('fhir-json-to-xml'); var fjParser = new fj2xml.FHIRConverter(2); var xml = fjParser.toXML(object);

Note that until this node module is published, you install it with:

npm install git+https://github.com/mcarifio/fhir-json-to-xml

Hopefully this will change.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published