Osirix MD/Horos document extractor plugin

Hello,

I’ve just created another python for Orthanc.

This time it serves reports generated, stored and sent by Osirix MD/Horos.

Natively the reports generated by MacOS compatibile text editor (i.e. Pages, LibreOffice, Microsoft Word, TextEdit and HTML Editor) are stored as files in respective data folder of Osirix MD/Horos (and might be stored as DICOM embedded files as well).

Probably since open-source edition Osirix supports sending them via DICOM network simply embedding them in ZIP end then in EncapsulatedDocument DICOM element.

It is a really nice and clean solution, which let me implement access to the reports via Orthanc REST API.

/instances/(.*)/extract-document is registered via the plugin, which gives back the report.

Please note that Osirix MD keeps versions of the report in DICOM (probably generates snapshot and stores them in DICOM on every filesave), but presents only the last version to the user.

The plugin should probably offer /study/(.*)/extract-document providing the last version by date of instance creation.

If anyone knows about other use case of ZIP in EncapsulatedDocument please let me know. So far I haven’t seen another scenario but a single report in a ZIP.

GUI button in orthanc explorer may be added in the next version.

I’m open to suggestions.

The plugin is available @ my github:

1 Like