https://github.com/jmandel/fhir-xml2json
XSLT stylesheet for transforming FHIR XML to JSON
https://github.com/jmandel/fhir-xml2json
Last synced: about 2 months ago
JSON representation
XSLT stylesheet for transforming FHIR XML to JSON
- Host: GitHub
- URL: https://github.com/jmandel/fhir-xml2json
- Owner: jmandel
- License: mit
- Created: 2014-04-03T13:46:19.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-03T13:53:53.000Z (about 11 years ago)
- Last Synced: 2025-04-12T17:07:19.740Z (about 2 months ago)
- Language: XSLT
- Size: 128 KB
- Stars: 1
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
FHIR XML => JSON via XSLT
=========================This repository contains XSL 2.0 stylesheet `fhir-xml2json.xsl` for
transformation of
[FHIR resources](http://www.hl7.org/implement/standards/fhir/) XML
representation into JSON.Such transformation requires metadata about FHIR resources structure,
so main XSL stylesheet `fhir-xml2json.xsl` needs other file called
`fhir-elements.xml` to be able to do conversion.`fhir-elements.xml` is build from official FHIR metadata with XSL
stylesheet called `make-fhir-elements.xsl`. Once `fhir-elements.xml`
was built, you don't need `make-fhir-elements.xsl` to perform
conversion.Prerequisites
-----Basically you need some Unix environment (OSX or Linux are fine,
Windows needs Cygwin). Specially, following components should be
installed:* [Saxon](http://saxon.sourceforge.net/) XSLT processor
* `make` utility to build `fhir-elements.xml` automatically
* Python interpreter to pretty-print JSON when invoking `make
examples`
* `unzip` binary to extract ZIP archivesUsage
-----Just clone this repo, cd into it and run `make`:
$ cd fhir-xml2json
$ makeIf anything finished without errors, you will see `fhir-elements.xml`,
which is XML file containing all metainformation required to perform
XML => JSON conversion. In `examples` directory you can find some FHIR
resource samples converted to JSON.License
-----This code is distributed under MIT License.