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.
python3.7 or later
FHIR-patient-summary library
This dotnet application must be running for the library to work.
libreoffice (if you want patient summaries in pdf format)
Clone this repository and open it in a terminal.
- Use the package manager pip to install FHIR-Patient-Summary.
pip install FHIR-Patient-Summary
- Install Flask
pip install Flask
-
Follow the steps here to install dotnet
-
(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.
Please follow the instructions here to get the dotnet server running.
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
On your browser of choice, test the following:
localhost:3000/getPatientSummaryDocument?patientID=8f789d0b-3145-4cf2-8504-13159edaa747&format=docx
localhost:3000/getPatientSummaryDocument?patientID=8f789d0b-3145-4cf2-8504-13159edaa747&format=pdf
Get summary documents for the patients indexed from 10 to 50:
localhost:3000/getMultiplePatientSummaryDocuments?start=10&end=50