Changeset 3484
- Timestamp:
- Sep 14, 2015, 2:33:48 PM (8 years ago)
- 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 340 340 <li><span class="require-permission" data-role="PatientCurator" data-link="personal/export_missing_consent_data_sample_list.jsp?ID=<%=ID%>" 341 341 >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> 342 345 </ul> 343 346 </dd> -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/dao/Annotationtype.java
r3469 r3484 170 170 new Annotationtype("ConsentDate", Type.DATE, false, Item.SAMPLE); 171 171 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 172 181 /** 173 182 The "BloodSamplingDateTime" annotation, used … … 1442 1451 1443 1452 /** 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 /** 1444 1467 Get the annotation value (single) for this annotation type from the 1445 1468 annotatable item. -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/InstallServlet.java
r3481 r3484 327 327 jsonChecks.add(checkAnnotationType(dc, Annotationtype.CONSENT, 1, new ValueOptions("Yes", "No", "Not asked"), effectivePermissionsUse, createIfMissing)); 328 328 jsonChecks.add(checkAnnotationType(dc, Annotationtype.CONSENT_DATE, 1, null, effectivePermissionsUse, createIfMissing)); 329 jsonChecks.add(checkAnnotationType(dc, Annotationtype.FROZEN_TISSUE_DATE, 1, null, effectivePermissionsUse, createIfMissing)); 329 330 jsonChecks.add(checkAnnotationType(dc, Annotationtype.ARRIVAL_DATE, 1, null, effectivePermissionsUse, createIfMissing)); 330 331 jsonChecks.add(checkAnnotationType(dc, Annotationtype.NOF_DELIVERED_TUBES, 1, null, effectivePermissionsUse, createIfMissing)); … … 531 532 532 533 jsonChecks.add(checkAnnotationTypeCategory(dc, Subtype.CASE, createIfMissing, 533 Annotationtype.CONSENT, Annotationtype.CONSENT_DATE, 534 Annotationtype.CONSENT, Annotationtype.CONSENT_DATE, Annotationtype.FROZEN_TISSUE_DATE, 534 535 Annotationtype.LATERALITY)); 535 536
Note: See TracChangeset
for help on using the changeset viewer.