Git Product home page Git Product logo

pathologytest's Introduction

pathologytest

Read in Pathology FHIR bundle message and convert it to HTML
Also decode base64 encoded PDF value (if present) and write PDF to local folder

Install the usual way

  1. clone repository locally

  2. install it

npm install
  1. run it with default provided pathology FHIR example
node ./appjs

or

nodemon ./app.js 
  1. Or run it with another pathology FHIR example (needs to contain encoded PDF in Observation.presentedForm) placed into local \private\examples folder
node ./appjs pathology_example2.json

or

nodemon ./app.js pathology_example2.json

If FHIR JSON file contains base64 encoded PDF, running application will decode value and write file to local \private\output folder

  1. Once app is running, access the rendered web page served from local Node.js Express server in e.g. your web browser at
http://localhost:3000/

FHIR bundles from here -> https://simplifier.net/guide/pathology-fhir-implementation-guide/Home/Build/How-to-Construct-a-Pathology-Test-Report-Bundle?version=0.1

Example: https://simplifier.net/guide/pathology-fhir-implementation-guide/Home/FHIRAssets/AllAssets/All-Profiles/Examples/Bundles/HPV-Primary-Screening-Report?version=0.1

Handlebars tutorial https://stackabuse.com/guide-to-handlebars-templating-engine-for-node/

NHS.uk front end library https://nhsuk.github.io/nhsuk-frontend/

Docker

This section work in progress ...

Build Docker image

docker build -t pathologytest .

Run the Docker Container

docker run -p 3000:3000 -d pathologytest

pathologytest's People

Contributors

grahamd99 avatar dependabot[bot] avatar

Watchers

 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.