Skip to content

Commit

Permalink
♻️ fix codacy child home visit
Browse files Browse the repository at this point in the history
  • Loading branch information
issyzac committed Feb 2, 2024
1 parent e95917a commit 45de533
Showing 1 changed file with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ protected void bindEvents(Map<String, ServiceWrapper> serviceWrapperMap) throws
evaluateCompFeeding(serviceWrapperMap);
evaluateChildPMTCT();
evaluateCCDIntroduction();
evaluatePlayAssessmentCounseling(serviceWrapperMap);
evaluatePlayAssessmentCounseling();
evaluateCCDCommunicationAssessment();
evaluateCareGiverResponsiveness(serviceWrapperMap);
evaluateCareGiverResponsiveness();
evaluateCCDChildDiscipline(serviceWrapperMap);
evaluateProblemSolving();
evaluateDevelopmentScreening(serviceWrapperMap);
evaluateDevelopmentScreening();
} catch (BaseAncHomeVisitAction.ValidationException e) {
throw (e);
} catch (Exception e) {
Expand Down Expand Up @@ -377,7 +377,7 @@ private void evaluateProblemSolving() throws Exception {
actionList.put(context.getString(R.string.child_problem_solving), action);
}

private void evaluatePlayAssessmentCounseling(Map<String, ServiceWrapper> serviceWrapperMap) throws Exception {
private void evaluatePlayAssessmentCounseling() throws Exception {

Map<String, List<VisitDetail>> details = getDetails(Constants.Events.PLAY_ASSESSMENT_COUNSELLING);

Expand Down Expand Up @@ -510,12 +510,7 @@ private void evaluateCCDIntroduction() throws Exception {
actionList.put(title, action);
}

private void evaluateDevelopmentScreening(Map<String, ServiceWrapper> serviceWrapperMap) throws Exception {
// ServiceWrapper serviceWrapper = serviceWrapperMap.get("Development Screening and Assessment");
// if (serviceWrapper == null) return;

// Alert alert = serviceWrapper.getAlert();
// if (alert == null || new LocalDate().isBefore(new LocalDate(alert.startDate()))) return;
private void evaluateDevelopmentScreening() throws Exception {

Map<String, List<VisitDetail>> details = getDetails(Constants.Events.DEVELOPMENT_SCREENING_AND_ASSESSMENT);

Expand All @@ -529,7 +524,7 @@ private void evaluateDevelopmentScreening(Map<String, ServiceWrapper> serviceWra
actionList.put(MessageFormat.format(context.getString(R.string.pnc_child_development_screening_assessment), ""), action);
}

protected void evaluateCareGiverResponsiveness(Map<String, ServiceWrapper> serviceWrapperMap) throws BaseAncHomeVisitAction.ValidationException {
protected void evaluateCareGiverResponsiveness() throws BaseAncHomeVisitAction.ValidationException {

CareGiverResponsivenessActionHelper actionHelper = new CareGiverResponsivenessActionHelper(null);

Expand Down

0 comments on commit 45de533

Please sign in to comment.