Changeset 3481


Ignore:
Timestamp:
Sep 9, 2015, 8:19:27 AM (8 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #805: LinkedSpecimen? should set value for items with missing date

Added MissingDate as a new value to the LinkedSpecimen annotation. The report after running the wizard has been modified to include this option.

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

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/resources/batch/linked-specimen.js

    r3394 r3481  
    3232  ls.linkedSpecimenDone = function(response)
    3333  {
    34     Doc.element('num-updated').innerHTML = response.numUpdated;
    35     Doc.element('num-no-date').innerHTML = response.numNoDate;
    36    
    3734    for (var c = 0; c < response.counters.length; c++)
    3835    {
     
    4239      Doc.element(name + '-after').innerHTML = counter.after;
    4340    }
     41   
     42    Wizard.showFinalMessage(['Number of updated annotations: ' + response.numUpdated]);
    4443   
    4544    Doc.show('update-results');
  • extensions/net.sf.basedb.reggie/trunk/resources/batch/linked-specimen.jsp

    r3394 r3481  
    6868      creation date of the specimen.
    6969      <ol>
    70         <li>If the patient has any specimen without date: <b>No value</b>
     70        <li>If the patient has any specimen without date: <b>MissingDate</b>
    7171        <li>If the same case has a prior core biopsy: <b>IpsilateralCoreBiopsy</b>
    7272        <li>If the other case (opposite laterality) has a prior core biopsy: <b>ContralateralCoreBiopsy</b>
     
    7979  </div>
    8080
    81   <table id="update-results" style="display: none;">
    82     <tr>
    83       <th class="bg-filled-100 rightborder">Number of updated annotations</th>
    84       <td colspan="2" id="num-updated">?</td>
    85     </tr>
    86     <tr>
    87       <th class="bg-filled-100 rightborder">Number without date</th>
    88       <td colspan="2" id="num-no-date">?</td>
    89     </tr>
    90     <tr class="bg-filled-100 topborder bottomborder">
     81
     82  <div id="wizard-status"></div>
     83
     84  <table id="update-results" style="display: none; margin-top: 1em;">
     85    <tr class="bg-filled-100 bottomborder">
    9186      <th style="width: 20em;">LinkedSpecimen</th>
    9287      <th style="width: 10em;">Before</th>
     
    9792      <td id="novalue-before">?</td>
    9893      <td id="novalue-after">?</td>
     94    </tr>
     95    <tr class="bottomborder" style="border-bottom-style: dotted;">
     96      <th class="bg-filled-100 rightborder">MissingDate</th>
     97      <td id="MissingDate-before">?</td>
     98      <td id="MissingDate-after">?</td>
    9999    </tr>
    100100    <tr>
     
    121121   
    122122
    123     <div id="wizard-status"></div>
    124 
    125123    <table class="navigation" id="navigation">
    126124    <tr>
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/InstallServlet.java

    r3469 r3481  
    338338            effectivePermissionsUse, createIfMissing));
    339339        jsonChecks.add(checkAnnotationType(dc, Annotationtype.LINKED_SPECIMEN, 1,
    340             new ValueOptions("IpsilateralCoreBiopsy", "ContralateralCoreBiopsy", "IpsilateralSample", "ContralateralSample"),
     340            new ValueOptions("IpsilateralCoreBiopsy", "ContralateralCoreBiopsy", "IpsilateralSample", "ContralateralSample", "MissingDate"),
    341341            effectivePermissionsUse, createIfMissing));
    342342        jsonChecks.add(checkAnnotationType(dc, Annotationtype.NOF_PIECES, 1, null, effectivePermissionsUse, createIfMissing));
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/LinkedSpecimenServlet.java

    r3394 r3481  
    112112        Map<String, Counter> counters = new HashMap<String, Counter>();
    113113        counters.put(null, new Counter(null));
     114        counters.put("MissingDate", new Counter("MissingDate"));
    114115        counters.put("IpsilateralCoreBiopsy", new Counter("IpsilateralCoreBiopsy"));
    115116        counters.put("ContralateralCoreBiopsy", new Counter("ContralateralCoreBiopsy"));
     
    144145         
    145146          String currentLinkedSpecimenValue = (String)Annotationtype.LINKED_SPECIMEN.getAnnotationValue(dc, snapshot, specimen);
    146           String newLinkedSpecimenValue = null;
     147          String newLinkedSpecimenValue = "MissingDate";
    147148         
    148149          // Update counter and the annotation if needed
     
    200201          {
    201202            // Clear annotations
     203            newLinkedSpecimenValue = "MissingDate";
    202204            numNoDate++;
    203205          }
Note: See TracChangeset for help on using the changeset viewer.