-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #574 from mozzy11/2.8
more Work on IHC reports
- Loading branch information
Showing
11 changed files
with
629 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 23 additions & 9 deletions
32
.../java/org/openelisglobal/reports/action/implementation/DualInSituHybridizationReport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,38 @@ | ||
package org.openelisglobal.reports.action.implementation; | ||
|
||
import org.openelisglobal.internationalization.MessageUtil; | ||
import org.openelisglobal.program.service.ImmunohistochemistrySampleService; | ||
import org.openelisglobal.program.valueholder.immunohistochemistry.ImmunohistochemistrySample; | ||
import org.openelisglobal.reports.form.ReportForm; | ||
import org.openelisglobal.spring.util.SpringContext; | ||
|
||
public class DualInSituHybridizationReport extends PatientProgramReport{ | ||
|
||
public class DualInSituHybridizationReport extends PatientProgramReport { | ||
|
||
private ImmunohistochemistrySampleService immunohistochemistrySampleService = SpringContext | ||
.getBean(ImmunohistochemistrySampleService.class); | ||
|
||
private ImmunohistochemistrySample immunohistochemistrySample; | ||
|
||
@Override | ||
protected String getReportName() { | ||
return "DualInSituHybridizationReport"; | ||
} | ||
|
||
@Override | ||
protected void setAdditionalReportItems() { | ||
// TODO Auto-generated method stub | ||
throw new UnsupportedOperationException("Unimplemented method 'setAdditionalReportItems'"); | ||
String reportDetails = MessageUtil.getMessage("dualInSitu.report.details", new String[] { | ||
form.getNumberOfcancerNuclei(), form.getAverageHer2(), form.getAverageChrom(), form.getIhcRatio() }); | ||
data.setIhcReportDetails(reportDetails); | ||
if (form.getIhcScore().equals("AMPLIFICATION")) { | ||
data.setIhcScore(MessageUtil.getMessage("dualInSitu.label.amp")); | ||
} else { | ||
data.setIhcScore(MessageUtil.getMessage("dualInSitu.label.noAmp")); | ||
} | ||
} | ||
|
||
@Override | ||
protected void innitializeSample(ReportForm form) { | ||
// TODO Auto-generated method stub | ||
throw new UnsupportedOperationException("Unimplemented method 'innitializeSample'"); | ||
immunohistochemistrySample = immunohistochemistrySampleService.get(Integer.valueOf(form.getProgramSampleId())); | ||
sample = immunohistochemistrySample.getSample(); | ||
} | ||
|
||
} |
Oops, something went wrong.