Skip to content

beda-software/beda-emr-core

Repository files navigation

FHIR EMR Implementation Guide

Local build

Download ig-publisher

curl -O https://github.com/HL7/fhir-ig-publisher/releases/download/1.8.12/publisher.jar 

Build static

java -jar publisher.jar -ig ig/

Open index.html

open ig/output/index.html

Validation / Testing

The tests/ directory contains test fixtures (valid and invalid Questionnaire instances) and two ways to validate them against the IG profiles.

Option 1: FHIR Validator CLI (fast, no Docker required)

Download the validator once:

bash tests/download_validator.sh

Build the IG (requires SUSHI and IG Publisher):

./_genonce.sh

Run all tests in a single JVM call:

bash tests/validate.sh

The script passes all five fixtures to the validator together, splits the output by file, and reports PASS/FAIL for each expected error or clean result.

Option 2: HAPI FHIR JPA Server (Docker)

Requires Docker and a built IG (output/package.tgz produced by _genonce.sh).

bash tests/run_docker_tests.sh

This starts a HAPI FHIR R4 server, loads the IG package at startup via tests/hapi-application.yaml, then runs tests/validate_api.sh which posts each fixture to the Questionnaire/$validate endpoint and checks the response. Containers are torn down automatically on exit.


Zen project dropped support

It's strongly recommended to migrate to the new IG that located in this repository, but if it's not possible to migrate, the zen project was moved to a separate repository https://github.com/beda-software/beda-emr-core-zen-legacy

zen-package.edn should be updated with new url:

{:deps {beda-emr-core "https://github.com/beda-software/beda-emr-core-zen-legacy.git"
        hl7-fhir-r4-core "https://github.com/zen-fhir/hl7-fhir-r4-core.git"
        hl7-terminology-r4 "git@github.com:zen-fhir/hl7-terminology-r4.git"}}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors