Personal information registration
A wizard for registration of personal information. It should create a Patient (biosource) and Case (sample) and link this with existing Specimen (samples).
A patient is identified by the PersonalNumber (string annotation) which should be unique. The uniqueness can of course not be enforced by BASE but the registration wizard should make checks to avoid duplicates. If the registration is a new entry the wizard should also ask for FamilyName and AllFirstNames, which are also stored as annotations. A name for the biosource entry in BASE is automatically generated using a counter.
If the registration is an existing entry the existing information is displayed for verification.
A case is identified by CaseName (name of sample) which should be unique. Again, the uniqueness can't be enfored by BASE, but the registration wizard should check. Each patient can have at most two cases corresponding to left and right breast.
Specimens are expected to exist in the database and should have names that are starting with the case name. When a new case is registered the existing specimen should be linked to the case.
When a case for an existing patient is registered it should be possible to merge the new case with an existing case. This means that the new specimen are linked to the old case and that we also need to add an annotation to keep track of the case name. More details about this will follow...