Skip to content

Remove study card from imports

pierrehenri-dauvergne edited this page Apr 19, 2024 · 16 revisions

Description

Lots of studies in Shanoir are not using study cards but in the import form, the user is asked to have one. This adds unecessary tasks and it happens a lot. In order to make it easier and after talking about it with the consortium, we agreed to remove study cards from imports.

Usage

For all kinds of (MR) imports the behavior should be harmonized (Web + ShUp):

  • display the information from the DICOMs: InstitutionName, InstitutionAddress, Manufacturer, ManufacturerModelName, StationName, DeviceSerialNumber, MagneticFieldStrength
  • use the above information to pre-select, center + equipment
  • auto-create (propose) new center + new equipment
  • add a filter text field for the acquisition equipment, that users can filter on using device serial numbers

New field

We will add a field in study's detail:

StudyCards at import

Whenever a user wants to import data into this study, depending on this field, the import form will change a bit.

If the study card is mandatory:

image

Just like before

If the study card is optional (no -> yes):

Study cards optional

If the study card is disabled:

Study cards disabled

Pre-filling the fields

From the DICOM's serialNumber, we can find an already existing equipment which belongs to a center. This means that from a single value we can find both equipment and center.

If the serialNumber doesn't match any existing equipment (and center), we look for institution name and institution address to help create a new center. If those fields are empty, we pre-fill the form with 'Unknown center'. We also pre-fill the equipment with the serialNumber.

ShanoirUploader

The GUI of ShanoirUploader also needs to be updated. From the study's detail we can get the study card nature (disabled, mandatory, optional) and adapt the GUI accordingly.

If the study card is set at mandatory:

ShUp

If the study card is set at optional:

We'll add the possibility to create centers and equipment, just like in shanoir web

ShUp optional

If the study card is set at disabled:

ShUp disabled

Clone this wiki locally