| | |
| | | |
| | | import com.example.config.ConfigValue; |
| | | import com.example.service.HisService; |
| | | import com.example.service.LisService; |
| | | import com.example.service.PacsService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.ApplicationContext; |
| | |
| | | return (PacsService) applicationContext.getBean(beanName+"Pacs"); |
| | | } |
| | | |
| | | public LisService getLisService(String hospName) { |
| | | String beanName = getServiceBeanName(hospName); |
| | | return (LisService) applicationContext.getBean(beanName+"Lis"); |
| | | } |
| | | |
| | | |
| | | private String getServiceBeanName(String hospName) { |
| | | switch (hospName) { |