Skip to content

nicford/GOSH-FHIRworks2020-FHIR-Patient-Summary-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FHIR Patient Summary Document Generator

This package allows you to generate a patient summary in docx or pdf format from a single patient ID or a list of patient IDs.

Prerequisites

python3.7 or later

flask

FHIR-patient-summary library

Dotnet

This dotnet application must be running for the library to work.

libreoffice (if you want patient summaries in pdf format)

Steps to run the API locally

Step 1 - Clone this repository

Clone this repository and open it in a terminal.

Step 2 - Installation of dependencies

  1. Use the package manager pip to install FHIR-Patient-Summary.
pip install FHIR-Patient-Summary
  1. Install Flask
pip install Flask
  1. Follow the steps here to install dotnet

  2. (Optional) Follow the instructions here to install libreoffice. Note: this installation is only required if you would like to create patient summaries in pdf format.

Step 3 - start dotnet server

Please follow the instructions here to get the dotnet server running.

Step 4 - run flask server

Open a new terminal window and navigate the directory you cloned from this repository.

Change directory to Flask-API

To start the Flask server locally on port 3000 run:

flask run -h localhost -p 3000

Step 5 - test the server

On your browser of choice, test the following:

Single patient in docx format

localhost:3000/getPatientSummaryDocument?patientID=8f789d0b-3145-4cf2-8504-13159edaa747&format=docx

Single patient in pdf format

localhost:3000/getPatientSummaryDocument?patientID=8f789d0b-3145-4cf2-8504-13159edaa747&format=pdf

Multiple patients

Get summary documents for the patients indexed from 10 to 50:

localhost:3000/getMultiplePatientSummaryDocuments?start=10&end=50

About

API that allows for the creation of patient summary documents in docx or pdf format.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages