Changeset 2250
- Timestamp:
- Feb 25, 2014, 12:39:41 PM (9 years ago)
- Location:
- extensions/net.sf.basedb.reggie/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/personal/export_monthly_oplist.jsp
r2217 r2250 245 245 </select> 246 246 </td> 247 <td class="help"> <span id="time.message" class="message" style="display: none;"></span></td>247 <td class="help">Only patients belonging to "RCC syd" will be included.<span id="time.message" class="message" style="display: none;"></span></td> 248 248 </tr> 249 249 -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/Site.java
r2016 r2250 18 18 private static final Map<String, Site> sites = new HashMap<String, Site>(); 19 19 20 public static final Site LUND = new Site("11", "Lund", "2010-11-10", true );21 public static final Site HELSINGBORG = new Site("22", "Helsingborg", "2010-11-01", true );22 public static final Site HALMSTAD = new Site("33", "Halmstad", "2010-10-01", true );23 public static final Site KRISTIANSTAD = new Site("44", "Kristianstad", "2010-09-15", true );24 public static final Site KARLSKRONA = new Site("55", "Karlskrona", "2010-10-04", true );25 public static final Site VÄXJÖ = new Site("66", "Växjö", "2010-10-01", true );26 public static final Site MALMÖ = new Site("77", "Malmö", "2010-08-30", true );27 public static final Site UPPSALA = new Site("88", "Uppsala", "2013-10-01", true );20 public static final Site LUND = new Site("11", "Lund", "2010-11-10", true, true); 21 public static final Site HELSINGBORG = new Site("22", "Helsingborg", "2010-11-01", true, true); 22 public static final Site HALMSTAD = new Site("33", "Halmstad", "2010-10-01", true, true); 23 public static final Site KRISTIANSTAD = new Site("44", "Kristianstad", "2010-09-15", true, true); 24 public static final Site KARLSKRONA = new Site("55", "Karlskrona", "2010-10-04", true, true); 25 public static final Site VÄXJÖ = new Site("66", "Växjö", "2010-10-01", true, true); 26 public static final Site MALMÖ = new Site("77", "Malmö", "2010-08-30", true, true); 27 public static final Site UPPSALA = new Site("88", "Uppsala", "2013-10-01", true, false); 28 28 29 public static final Site UNKNOWN = new Site(null, "Unknown", null, false );29 public static final Site UNKNOWN = new Site(null, "Unknown", null, false, false); 30 30 31 31 /** … … 53 53 private final String startDate; 54 54 private final boolean useCaseSuffix; 55 private final boolean partOfRCC_syd; 55 56 private JSONObject json; 56 57 57 private Site(String prefix, String name, String startDate, boolean useCaseSuffix )58 private Site(String prefix, String name, String startDate, boolean useCaseSuffix, boolean partOfRCC_syd) 58 59 { 59 60 this.prefix = prefix; … … 61 62 this.startDate = startDate; 62 63 this.useCaseSuffix = useCaseSuffix; 64 this.partOfRCC_syd = partOfRCC_syd; 63 65 if (prefix != null) sites.put(prefix, this); 64 66 } … … 98 100 return useCaseSuffix; 99 101 } 102 103 /** 104 Get flag indicating whether site belongs to "RCC syd" (Regionalt Cancercentrum syd) 105 */ 106 public boolean isPartOfRCC_syd() 107 { 108 return partOfRCC_syd; 109 } 100 110 101 111 /** -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/ExportServlet.java
r2219 r2250 171 171 // Finally, we now have the information that should be exported 172 172 Site site = Site.findByCaseName(s.getName()); 173 String laterality = (String)Annotationtype.LATERALITY.getAnnotationValue(dc, manager, theCase); 174 String consent = (String)Annotationtype.CONSENT.getAnnotationValue(dc, manager, theCase); 175 String opDate = dateFormat.format(s.getCreationEvent().getEventDate()); 176 String subtype = exportSubtype ? s.getItemSubtype().getName() : null; 177 String patientId = exportPatientId ? patient.getName() : null; 178 String caseName = caseNamePattern.matcher(s.getName()).replaceFirst(""); 179 opDates.add(new PersonalOpDate(pnr, opDate, site, laterality, subtype, caseName, consent, patientId)); 173 // Only include sites belonging to "RCC syd" (Regionalt Cancercentrum syd) 174 if (site.isPartOfRCC_syd()) 175 { 176 String laterality = (String)Annotationtype.LATERALITY.getAnnotationValue(dc, manager, theCase); 177 String consent = (String)Annotationtype.CONSENT.getAnnotationValue(dc, manager, theCase); 178 String opDate = dateFormat.format(s.getCreationEvent().getEventDate()); 179 String subtype = exportSubtype ? s.getItemSubtype().getName() : null; 180 String patientId = exportPatientId ? patient.getName() : null; 181 String caseName = caseNamePattern.matcher(s.getName()).replaceFirst(""); 182 opDates.add(new PersonalOpDate(pnr, opDate, site, laterality, subtype, caseName, consent, patientId)); 183 } 180 184 } 181 185 }
Note: See TracChangeset
for help on using the changeset viewer.