Changeset 4862
- Timestamp:
- 07/08/08 20:30:46 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs/branches/data_synchronization_bidirectional/src/web/org/openmrs/web/controller/nealreports/NealReportController.java
r4689 r4862 166 166 List<Concept> conceptsToGet = new ArrayList<Concept>(); 167 167 Map<Concept, String> namesForReportMaker = new HashMap<Concept, String>(); 168 //conceptHelper(cs, conceptsToGet, namesForReportMaker, "ANTIRETROVIRAL TREATMENT GROUP", Hiv.TREATMENT_GROUP);168 //conceptHelper(cs, conceptsToGet, namesForReportMaker, "ANTIRETROVIRAL ", Hiv.TREATMENT_GROUP); 169 169 //conceptHelper(cs, conceptsToGet, namesForReportMaker, "TUBERCULOSIS TREATMENT GROUP", TB.TB_GROUP); 170 170 //conceptHelper(cs, conceptsToGet, namesForReportMaker, "CURRENT WHO HIV STAGE", Hiv.WHO_STAGE); … … 285 285 // General.TB_ACTIVE_P 286 286 Program hivProgram = Context.getProgramWorkflowService().getProgram("HIV PROGRAM"); 287 if (hivProgram != null) { 287 Program hivPediatricProgram = Context.getProgramWorkflowService().getProgramByName("HIV PEDIATRIC PROGRAM"); 288 if (hivProgram != null && hivPediatricProgram != null) { 288 289 Map<Integer, PatientProgram> progs = pss.getCurrentPatientPrograms(ps, hivProgram); 290 progs.putAll(pss.getCurrentPatientPrograms(ps, hivPediatricProgram)); 289 291 for (Map.Entry<Integer, PatientProgram> e : progs.entrySet()) { 290 292 patientDataHolder.get(e.getKey()).put(General.HIV_POSITIVE_P, "t"); … … 293 295 } 294 296 ProgramWorkflow wf = Context.getProgramWorkflowService().getWorkflow(hivProgram, "TREATMENT STATUS"); 297 ProgramWorkflow wfPeds = hivPediatricProgram.getWorkflowByName("TREATMENT STATUS"); 295 298 log.debug("worlflow is " + wf + " and patientSet is " + ps); 296 299 Map<Integer, PatientState> states = pss.getCurrentStates(ps, wf); 300 states.putAll(pss.getCurrentStates(ps, wfPeds)); 297 301 if ( states != null ) { 298 302 log.debug("about to loop through [" + states.size() + "] statuses"); … … 318 322 319 323 wf = Context.getProgramWorkflowService().getWorkflow(hivProgram, "TREATMENT GROUP"); 324 wfPeds = hivPediatricProgram.getWorkflowByName("TREATMENT GROUP"); 320 325 log.debug("worlflow is " + wf + " and patientSet is " + ps); 321 326 states = pss.getCurrentStates(ps, wf); 327 states.putAll(pss.getCurrentStates(ps, wfPeds)); 322 328 if ( states != null ) { 323 329 log.debug("about to loop through [" + states.size() + "] statuses");