Skip to content

Instantly share code, notes, and snippets.

Avatar

Keith W. Boone keithboone

View GitHub Profile
@keithboone
keithboone / com.ainq.kboone.tools.Converter.java
Created Apr 15, 2020
Converting between JSON and XML for FHIR.
View com.ainq.kboone.tools.Converter.java
package com.ainq.kboone.tools;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.List;
import org.apache.commons.io.FileUtils;
import org.hl7.fhir.instance.model.api.IBaseResource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@keithboone
keithboone / gen_single.xsl
Last active Mar 29, 2020
Generate a Single Page document containing all TOC Pages in a FHIR IG
View gen_single.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:html="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="xs"
version="2.0">
<!-- This stylesheet should be pointed to the toc.html page
created by your IG build. It will process that table of contents
entries in that file to generate a single page html file which
can subsequently be used to generate a pdf.
You can’t perform that action at this time.