Skip to content

Spike Import exported clinic - #192

Draft
steventux wants to merge 10 commits into
mainfrom
DTOSS-13327-import-exported-clinic
Draft

Spike Import exported clinic#192
steventux wants to merge 10 commits into
mainfrom
DTOSS-13327-import-exported-clinic

Conversation

@steventux

@steventux steventux commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

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

  • Check database queries are correctly scoped to current_provider

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.
@steventux steventux changed the title Dtoss 13327 import exported clinic Import exported clinic Aug 11, 2026
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
steventux force-pushed the DTOSS-13327-import-exported-clinic branch from 8f40e5e to b888c3e Compare August 13, 2026 14:34
Comment thread src/ui/__init__.py Fixed
Comment thread src/ui/__init__.py Fixed
Comment thread src/ui/__init__.py Fixed
@steventux steventux changed the title Import exported clinic Spike Import exported clinic Aug 13, 2026
Comment thread src/ui/__init__.py Fixed
Comment thread src/ui/__init__.py Fixed
@steventux
steventux force-pushed the DTOSS-13327-import-exported-clinic branch from 738d336 to 4e9874c Compare August 18, 2026 16:06
@steventux
steventux force-pushed the DTOSS-13327-import-exported-clinic branch from 4e9874c to e80c030 Compare August 19, 2026 09:29
This will enable us to export completed worklist items with dicom data in a batch relative to the exported worklist/clinic.
Comment thread src/ui/__init__.py

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants