Skip to content

Instantly share code, notes, and snippets.

View keithboone's full-sized avatar

Keith W. Boone keithboone

View GitHub Profile
@keithboone
keithboone / YamlUtils.java
Created August 2, 2021 17:38
Yaml Utilities for FHIR
package com.ainq.fhir.utils;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Reader;
import java.io.Writer;
import java.util.Collection;
import java.util.List;
import java.util.Set;
@keithboone
keithboone / com.ainq.kboone.tools.Converter.java
Created April 15, 2020 15:52
Converting between JSON and XML for FHIR.
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 March 29, 2020 23:12
Generate a Single Page document containing all TOC Pages in a FHIR IG
<?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.