Subversion Repository Public Repository

Aurocare_27_07_2018

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bestray.healthcareemr.Controller;

import com.bestray.healthcareemr.ServiceImpl.GYNServiceImpl;
import com.bestray.healthcareemr.ServiceImpl.PEDServiceImpl;
import com.bestray.healthcareemr.Service.IPOPService;
import com.bestray.healthcareemr.Util.MessageProperties;
import org.springframework.stereotype.Controller;

/**
 *
 * @author dell
 */
public class BusinessLookup {
    
    public IPOPService getDeptWiseService(String deptType){
        if(deptType.equalsIgnoreCase(MessageProperties.getMessage("gynecology.dept"))){ 
            return new GYNServiceImpl(); 
        }else if(deptType.equalsIgnoreCase(MessageProperties.getMessage("pediatric.dept"))){ 
            return new PEDServiceImpl(); 
        } else{
            return null;
        }
    }
}

Commits for Aurocare_27_07_2018/AuroCareEMR/src/main/java/com/bestray/healthcareemr/Controller/BusinessLookup.java

Diff revisions: vs.
Revision Author Commited Message
1 girijabapi picture girijabapi Fri 27 Jul, 2018 07:21:55 +0000