Changeset 3484


Ignore:
Timestamp:
Sep 14, 2015, 2:33:48 PM (8 years ago)
Author:
Nicklas Nordborg
Message:

References #808: Import wizard for frozen tissue dates

Added FrozenTissueDate to installation wizard and a link on the index page under the 'Export/import information...' section.

Location:
extensions/net.sf.basedb.reggie/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/resources/index.jsp

    r3472 r3484  
    340340            <li><span class="require-permission" data-role="PatientCurator" data-link="personal/export_missing_consent_data_sample_list.jsp?ID=<%=ID%>"
    341341              >Export missing consent data sample list</span>
     342             
     343            <li><span class="require-permission" data-role="PrepCurator" data-link="batch/frozen-tissue-date.jsp?ID=<%=ID%>"
     344              >Import frozen tissue date</span>
    342345            </ul>
    343346          </dd>
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/dao/Annotationtype.java

    r3469 r3484  
    170170    new Annotationtype("ConsentDate", Type.DATE, false, Item.SAMPLE);
    171171
     172  /**
     173    The "FrozenTissueDate" annotation type, used
     174    for samples (Case). It is a date annotation.
     175    @since 3.6
     176  */
     177  public static final Annotationtype FROZEN_TISSUE_DATE =
     178    new Annotationtype("FrozenTissueDate", Type.DATE, false, Item.SAMPLE);
     179
     180 
    172181  /**
    173182    The "BloodSamplingDateTime" annotation, used
     
    14421451
    14431452  /**
     1453    Check if the item already has an annotation value for this
     1454    annotation type.
     1455    @since 3.6
     1456  */
     1457  public boolean hasAnnotation(DbControl dc, Annotatable item)
     1458  {
     1459    if (item == null) return false;
     1460    AnnotationType at = load(dc);
     1461    if (!item.isAnnotated()) return false;
     1462    AnnotationSet as = item.getAnnotationSet();
     1463    return as.hasAnnotation(at);
     1464  }
     1465 
     1466  /**
    14441467    Get the annotation value (single) for this annotation type from the
    14451468    annotatable item.
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/InstallServlet.java

    r3481 r3484  
    327327        jsonChecks.add(checkAnnotationType(dc, Annotationtype.CONSENT, 1, new ValueOptions("Yes", "No", "Not asked"), effectivePermissionsUse, createIfMissing));
    328328        jsonChecks.add(checkAnnotationType(dc, Annotationtype.CONSENT_DATE, 1, null, effectivePermissionsUse, createIfMissing));
     329        jsonChecks.add(checkAnnotationType(dc, Annotationtype.FROZEN_TISSUE_DATE, 1, null, effectivePermissionsUse, createIfMissing));
    329330        jsonChecks.add(checkAnnotationType(dc, Annotationtype.ARRIVAL_DATE, 1, null, effectivePermissionsUse, createIfMissing));
    330331        jsonChecks.add(checkAnnotationType(dc, Annotationtype.NOF_DELIVERED_TUBES, 1, null, effectivePermissionsUse, createIfMissing));
     
    531532       
    532533        jsonChecks.add(checkAnnotationTypeCategory(dc, Subtype.CASE, createIfMissing,
    533             Annotationtype.CONSENT, Annotationtype.CONSENT_DATE,
     534            Annotationtype.CONSENT, Annotationtype.CONSENT_DATE, Annotationtype.FROZEN_TISSUE_DATE,
    534535            Annotationtype.LATERALITY));
    535536       
Note: See TracChangeset for help on using the changeset viewer.