Skip to content
Snippets Groups Projects
user avatar
Clewing, Martin authored
Add a plugin to manage medical findings.

See merge request riconet-public/typo3/rico_medical_findings!4
5c6857c7

pipeline status

Medical findings

This extensions provides a system to manage and display medical findings. There is an archive system and a possibility to download those files.

Dependencies

  • typo3/cms-core: ^9.5
  • ext-zip (PHP extension)
  • yarn (Software)

Overview

This extension provides a plugin, which shows medical findings, corresponding to the current logged in user. If the user downloads or "opens" a file, the file gets moved to a subdirectory – by default called "archive".

The plugin will output a table of files. The website user is able to check more that one file to download. if the user do so, all checked files gets collected and a zip file gets generated and offered to download. The generated zip files are located under a temp folder. There is a command to clear this folder.

There is also a command to generate the folder structure of all medical findings root folder, depending on the fe_user table.

Installation

  • Run yarn install in the root opf the extension, to install FE dependencies.
  • Activate the extension via the Extensions module.
  • Include the static typo script file.

Commands / Tasks

Create medical findings folder structure command

To ease the work of creating the folder structure oif medical findings folder, there is a command.

You can use the command on cli or in the scheduler module.

Example for cli usages:

php vendor/bin/typo3 rico_medical_findings:build-folder-structure

Cleanup zip files command

Each collected download results in a zip archive, which is stored by the server.

To remove those files, there is a custom command.

Example for cli usages:

php vendor/bin/typo3 rico_medical_findings:cleanup-zips 

Important to know

Make absolutely sure that medical findings root and temp folder are access protected!

Change medical findings root folder

If you are going to change the root folder remember to edit Classes/Constants.php and ext_emconf.php.

this also is important for the temp folder of zip files.