Changeset 5218


Ignore:
Timestamp:
Jan 10, 2019, 8:41:45 AM (3 months ago)
Author:
Nicklas Nordborg
Message:

References #1081: The release exporter should export more data

Added BloodSample annotation on Blood items.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/plugins/release/BloodWriter.java

    r5142 r5218  
    5050      JSONArray jsonAnnotations = new FilteredJSONArray(new NotNullFilter<>(false));
    5151      jsonAnnotations.add(item.getAnnotationJSON(Annotationtype.CONSENT, blood, null));
     52      jsonAnnotations.add(item.getAnnotationJSON(Annotationtype.BLOOD_SAMPLE, blood, null));
    5253      jsonBlood.put("annotations", jsonAnnotations);
    5354      json.add(jsonBlood);
     
    6162  {
    6263    DbControl dc = getDbControl();
    63     CohortTypeDefFactory caseFactory = new CohortTypeDefFactory(dc, Item.SAMPLE, "Blood");
     64    CohortTypeDefFactory bloodFactory = new CohortTypeDefFactory(dc, Item.SAMPLE, "Blood");
    6465   
    6566    // Only allow "Yes" on the receiving end
    66     caseFactory.createAnnotationType(Annotationtype.CONSENT).setEnumeration("Yes");
     67    bloodFactory.createAnnotationType(Annotationtype.CONSENT).setEnumeration("Yes");
     68    bloodFactory.createAnnotationType(Annotationtype.BLOOD_SAMPLE);
    6769
    68     return caseFactory.allCreated();
     70    return bloodFactory.allCreated();
    6971  }
    7072
Note: See TracChangeset for help on using the changeset viewer.