NIH-NCPI / ncpi-fhir-ig

🔥 NCPI FHIR Implementation Guide
https://nih-ncpi.github.io/ncpi-fhir-ig/
Creative Commons Zero v1.0 Universal
5 stars 2 forks source link
fhir-ig ncpi-fhir

NCPI FHIR Implementation Guide

Quick Start

  1. Install the following dependencies (See the instructions):
  1. Clone this repository.
$ git clone git@github.com:ncpi-fhir/ncpi-fhir-ig.git
$ cd ncpi-fhir-ig
  1. Run SUSHI.
$ sushi .
  1. Update the HL7 FHIR IG Publisher. This will download the latest version of the tool. This step can be skipped if 1) the command already has been run recently or 2) you don't want to update it.
$ ./_updatePublisher.sh
  1. Generate the IG.
$ ./_genonce.sh
  1. Open the file ./output/index.html to browse the resulting IG.

Docker

As an alternative to installing dependencies on the host computer, you may wish to leverage a docker container.

Create Docker image

# build
docker build -t fsh .

# double check dependency installation
docker run --rm -it -v $(pwd)/:/src fsh sh -c  "java -version && node  --version && sushi --version && jekyll --version && java -jar input-cache/publisher.jar --help  2>&1 | head -1"

Create shorthand alias

alias fsh='docker run -v $(pwd)/:/src --rm -it fsh'

Run development tools

fsh sushi .

Generate IG html

fsh ./_genonce.sh

Optimized for multiple commands

You may need to run sushi or _gen* scripts several times in development mode.

# start image named `fsh` in background
docker run -d  -v $(pwd)/:/src -it --entrypoint "/bin/bash" --name fsh  fsh

# show running container
docker ps
>>>
CONTAINER ID   IMAGE     COMMAND       CREATED         STATUS         PORTS                 NAMES
69759e4336b7   fsh       "/bin/bash"   4 seconds ago   Up 3 seconds   4000/tcp, 35729/tcp   fsh

# create alias referencing the running container
alias fsh='docker exec fsh'

# run commands per above on running container

View the output of the IG

ls -l output/*.zip

Implementation Guide (Pre-Release)

The NCPI FHIR Implementation Guide (pre-release) is available here.