Design
Triggering the creation of the checklist must be idempotent and account for Notes previously converted into Useful links.
The user interface is the above Checklist creator field with its selectable options.
The first four options indicate "Create/recreate ..." so we can safely overwrite any previous checklist Note of the same name. They are lengthy notes with lists of IUCLID6 dossier file numbers and their titles.
- Help-text for the Checklist creator field can advise the user to change the Note title if the contents have been changed and need to be saved.
The fifth and sixth options each scan their respective checklist note and create document management notes.
Titles of those checklist notes are ...
Assessment dossier checklist Required items
Assessment dossier checklist If available items
For either checklist the top line of the note is the date the checklist was created. It is ignored here.
For either checklist, if a line begins with an IUCLID6 number, that line plus " (Required)" or " (If available)" as appropriate becomes the title for the document management note.
All text below that line and above the next IUCLID6 number is added to the top of that document management note.
However, unlike the checklist notes themselves, document management notes must not be overwritten. Hence, if they already exist the software passes on that title.
Furthermore, if any such Note has been converted to a Useful link - indicating action is complete - the software must also pass and avoid recreating a newer version of the same Note.