-
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 #569 from mozzy11/2.8
innital work on cytology report
- Loading branch information
Showing
8 changed files
with
1,169 additions
and
3 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
42 changes: 42 additions & 0 deletions
42
src/main/java/org/openelisglobal/reports/action/implementation/PatientCytologyReport.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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package org.openelisglobal.reports.action.implementation; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import org.openelisglobal.program.service.cytology.CytologySampleService; | ||
import org.openelisglobal.program.valueholder.cytology.CytologySample; | ||
import org.openelisglobal.reports.form.ReportForm; | ||
import org.openelisglobal.spring.util.SpringContext; | ||
|
||
public class PatientCytologyReport extends PatientProgramReport { | ||
|
||
protected CytologySampleService cytologySampleService = SpringContext.getBean(CytologySampleService.class); | ||
private CytologySample cytologySample; | ||
|
||
@Override | ||
protected String getReportName() { | ||
return "PatientCytologyReport"; | ||
} | ||
|
||
@Override | ||
protected void setAdditionalReportItems() { | ||
data.setSpecimenAdequacy("Dummy specimenn"); | ||
data.setDiagnosis("NEGATIVE DIAGNOSIS"); | ||
|
||
List<String> stringList = new ArrayList<>(); | ||
stringList.add("dummy diagnosis"); | ||
stringList.add("sample diagnosis"); | ||
stringList.add("example diagnosis"); | ||
|
||
data.setEpithelialCellAbnomalities(stringList); | ||
data.setReactiveCellularChanges(stringList); | ||
data.setOrganisms(stringList); | ||
data.setOtherDiagnoses(stringList); | ||
} | ||
|
||
@Override | ||
protected void innitializeSample(ReportForm form) { | ||
cytologySample = cytologySampleService.get(Integer.valueOf(form.getProgramSampleId())); | ||
sample = cytologySample.getSample(); | ||
} | ||
|
||
} |
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
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
Binary file not shown.
Oops, something went wrong.