mvhenderson / fhir-validator-app

A standalone app for validating FHIR resources against an optional Implementation Guide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This app is a stand-alone FHIR resource validator. Using this app, you can validate a FHIR resource against an optional FHIR Profile.

Running the FHIR Validator App in development

Requirements:

  • Node 12 with npm installed
  • Docker (to run the FHIR validator wrapper)

Setup

From the root directory of fhir-validator-app:

  • npm install

Running the app:

From the root directory of fhir-validator-app:

  • Run the Typescript compilation engine: npm start
    • Note: this will auto-recompile whenever you save a change to one of the Typescript files, and will trigger a page refresh if you have the app open in development
  • Run the validator wrapper: docker run -p 8080:4567 infernocommunity/fhir-validator-service:latest
  • Navigate to the app in your browser of choice at http://localhost:4567

Running the FHIR Validator App in Docker

From the root directory of fhir-validator-app:

  • Build the image, using docker build . -t fhir_validator_app
  • Run the container, using docker run -p 8080:80 -e external_validator_url=<URL to external validator> fhir_validator_app
  • Visit the site at http://localhost:8080

Running the FHIR Validator App using Docker Compose

From the root directory of fhir-validator-app:

  • Build the image, using docker-compose build
  • Run the compose file, using docker-compose up. This will run both the standalone validator app, as well as the fhir-validator-wrapper Docker container required to do external validation.

To avoid conflicts the published container ports can be customized using a .env file in root directory of fhir-validator-app, for example:

# default 80
FHIR_VALIDATOR_APP_PORT=8888

# default 4567
FHIR_VALIDATOR_SERVICE_PORT=9999

Contact Us

The Inferno development team can be reached by email at inferno@groups.mitre.org. Inferno also has a dedicated HL7 FHIR chat channel.

License

Copyright 2020 The MITRE Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

A standalone app for validating FHIR resources against an optional Implementation Guide

License:Apache License 2.0


Languages

Language:TypeScript 90.5%Language:JavaScript 4.2%Language:HTML 4.2%Language:Dockerfile 0.7%Language:Shell 0.4%