View the FHIR Letter Printing Implementation Guide
(Manually copied from /output to /v1 - TODO: CICD pipeline for this)
This project provides a ready-to-use VS Code Dev Container for a consistent development environment with all dependencies pre-installed (Java, Node.js, SUSHI, IG Publisher, etc).
Common tasks are automated via the Makefile at the repo root:
Build the IG:
make build
(Runs SUSHI and IG Publisher; output in fhir/output/
)
Serve the IG locally:
make serve
(Serves the output folder at http://localhost:8080)
Clean build artefacts:
make clean
You can also run these commands manually inside the fhir
folder if you prefer.
This repository folder contains the source for the NHS Notify Letter Printing FHIR Implementation Guide (IG).
CommunicationRequest
for instructing the printing and posting of a letter, including patient, recipient, and payload details.DocumentReference
that acts as a metadata wrapper for the letter PDF, referencing the binary content and providing descriptive information.Binary
for the base64-encoded PDF payload of the letter, always using application/pdf
.Appointment
, Location
.$submit-letter
operation for submitting a bundle containing these resources, and a server CapabilityStatement
.Prerequisites:
npm install -g fsh-sushi
(or use npx)Steps:
cd fhir
# 1. Generate FHIR artifacts from FSH
sushi .
# 2. Download the IG Publisher jar (first run of the action will cache it; locally do:)
curl -L -o publisher.jar https://github.com/HL7/fhir-ig-publisher/releases/latest/download/org.hl7.fhir.publisher.jar
# 3. Build the IG (outputs to ./output)
java -jar publisher.jar -ig ig.ini
# 4. Validate an example (optional)
java -jar ../validator_cli.jar output/examples.json -version 4.0.1 -ig output/package.tgz