// Path: src/main/java/org/jugbd/mnet/service/DiagnosisService.java
// @Component
// public interface DiagnosisService {
//     Diagnosis save(Diagnosis diagnosis);
// 
//     Diagnosis findOne(Long id);
// 
//     Diagnosis save(Diagnosis diagnosis, RegistrationType registrationType);
// }


import org.jugbd.mnet.domain.Diagnosis;
import org.jugbd.mnet.domain.enums.RegistrationType;
import org.jugbd.mnet.service.DiagnosisService;
import org.jugbd.mnet.service.RegisterService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import javax.validation.Valid;
package org.jugbd.mnet.web.controller;



/**
 * @author Mushfekur Rahman (mushfek0001)
 */
@Controller
@Secured({"ROLE_ADMIN", "ROLE_USER"})
@RequestMapping("/diagnosis")
public class DiagnosisController {

    private static final Logger log = LoggerFactory.getLogger(DiagnosisController.class);
    public static final String REDIRECT_REGISTER_DIAGNOSIS = "redirect:/register/diagnosis/";

    @Autowired
// Path: src/main/java/org/jugbd/mnet/service/DiagnosisService.java
// @Component
// public interface DiagnosisService {
//     Diagnosis save(Diagnosis diagnosis);
// 
//     Diagnosis findOne(Long id);
// 
//     Diagnosis save(Diagnosis diagnosis, RegistrationType registrationType);
// }


// Path: src/main/java/org/jugbd/mnet/web/controller/DiagnosisController.java
import org.jugbd.mnet.domain.Diagnosis;
import org.jugbd.mnet.domain.enums.RegistrationType;
import org.jugbd.mnet.service.DiagnosisService;
import org.jugbd.mnet.service.RegisterService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import javax.validation.Valid;

package org.jugbd.mnet.web.controller;



/**
 * @author Mushfekur Rahman (mushfek0001)
 */
@Controller
@Secured({"ROLE_ADMIN", "ROLE_USER"})
@RequestMapping("/diagnosis")
public class DiagnosisController {

    private static final Logger log = LoggerFactory.getLogger(DiagnosisController.class);
    public static final String REDIRECT_REGISTER_DIAGNOSIS = "redirect:/register/diagnosis/";

    @Autowired
    private DiagnosisService diagnosisService;