GithubHelp home page GithubHelp logo

bmilius-nmdp / fhir-viewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smart-on-fhir/fhir-viewer

0.0 2.0 0.0 3.95 MB

In-browser viewer for FHIR resources

License: Other

Dockerfile 0.01% HTML 0.02% JavaScript 95.84% CSS 4.14%

fhir-viewer's Introduction

FHIR Viewer

In-browser viewer for FHIR resources

This is a simple application for FHIR resources that was created for several reasons:

  1. Allow FHIR responses to be viewed in the browser regardless of their specific response headers that will typically force the browser to download them.
  2. Give the developers the ability to review the FHIR responses in their preferred environment - text-editor.
  3. The app uses the Monaco editor which gives use many advantages like
    • Syntax highlighting
    • Code folding
    • Keyboard shortcuts and keyboard navigation
    • Easy search within the code
    • Great (size-independent) performance
    • Color themes support
    • Custom extensions to turn FHIR references into links and even preview them on hover

Examples

Usage

You can use the online version or host your own. The only thing that you need to do is to pass a url parameter in the query string that would be the URL of the resource you want to view. The app will download it and render it into read-only editor. The url parameter MUST BE URL ENCODED!

  • to specify XML or JSON format add _format=json or _format=xml to the original url parameter and url-encode the whole thing.
  • to use the dark theme add dark url parameter with any value (or even without a value)

Adding a server

For security reasons this app will only load resources from white-listed servers. If you want to view something that is not supported, you can add it to the list at known-servers.js and make a pull request.

Contribution

This app is designed to be as simple as possible. If you want to make changes please keep that in mind and also use only ES5 because there is no builder or transpiler involved.

installation

If you want to use it locally simply do:

git clone https://github.com/smart-on-fhir/fhir-viewer.git
cd fhir-viewer
npm i
npm start

Then open http://127.0.0.1:8080/?url=http%3A%2F%2Ffhirtest.uhn.ca%2FbaseDstu3%2Fmetadata in your browser.

Installation from Docker Hub

This will start the viewer and make it available on http://localhost:9090/

docker run -p 9090:80 vladignatov/fhir-viewer:latest

fhir-viewer's People

Contributors

vlad-ignatov avatar

Watchers

James Cloos avatar Bob Milius avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.