Spike Import exported clinic - #192
Draft
steventux wants to merge 10 commits into
Draft
Conversation
This service class can import clinics from file or api and calls out to CreateWorklistItem for each appointment in the clinic.
Adds a service which monitors a directory for clinic import files and calls ClinicImporter to process them.
There are a few hacks here to get something working, file upload and database paths are all wrong and should come from gateway config.
steventux
force-pushed
the
DTOSS-13327-import-exported-clinic
branch
from
August 13, 2026 14:34
8f40e5e to
b888c3e
Compare
steventux
force-pushed
the
DTOSS-13327-import-exported-clinic
branch
from
August 18, 2026 16:06
738d336 to
4e9874c
Compare
steventux
force-pushed
the
DTOSS-13327-import-exported-clinic
branch
from
August 19, 2026 09:29
4e9874c to
e80c030
Compare
This will enable us to export completed worklist items with dicom data in a batch relative to the exported worklist/clinic.
|
|
||
| logger.info(f'Worklist for clinic {clinic_id} successfully exported to {exporter.zip_file_path}') | ||
|
|
||
| return send_file(exporter.zip_file_path, as_attachment=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Here's a demo of how we could export a clinic's worklist from Rubie and import it using a minimal UI on the Gateway.
This decouples the connection between the two applications allowing for offline mobile van processing.
rubie-export-gateway-import-ui-2026-08-13_15.22.42.mp4
Jira link
https://nhsd-jira.digital.nhs.uk/browse/DTOSS-13327
Review notes
Review checklist