当前位置: 首页>>代码示例>>Java>>正文


Java ExternalSystemEvent类代码示例

本文整理汇总了Java中ims.scheduling.domain.objects.ExternalSystemEvent的典型用法代码示例。如果您正苦于以下问题:Java ExternalSystemEvent类的具体用法?Java ExternalSystemEvent怎么用?Java ExternalSystemEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ExternalSystemEvent类属于ims.scheduling.domain.objects包,在下文中一共展示了ExternalSystemEvent类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createExternalEvent

import ims.scheduling.domain.objects.ExternalSystemEvent; //导入依赖的package包/类
private void createExternalEvent(Booking_AppointmentRefVo appointment, OrderInvestigationRefVo investigation, LookupInstVo type) throws StaleObjectException
{
	if (null == appointment)
		throw new DomainRuntimeException("Appointment Cannot be NULL");

	DomainFactory factory = getDomainFactory();
	ExternalSystemEvent event = new ExternalSystemEvent();
	
	// We need to deal with null investigations
	// when (not )sending the messages
	if (null != investigation) 
	{
		OrderInvestigation domInv = (OrderInvestigation) factory.getDomainObject(investigation);
		
		//WDEV-5912 For Investigations marked as NoInterface there are no interface calls
		if(domInv.getInvestigation() != null && domInv.getInvestigation().getInvestigationIndex() != null &&  domInv.getInvestigation().getInvestigationIndex().isNoInterface() != null && domInv.getInvestigation().getInvestigationIndex().isNoInterface())
			return;
		
		event.setInvestigation(domInv);
		event.setProviderSystem(domInv.getInvestigation().getProviderService().getProviderSystem());
	}

	Booking_Appointment domBookAppt = (Booking_Appointment) factory.getDomainObject(appointment);
	event.setAppointment(domBookAppt);
	event.setWasProcessed(Boolean.FALSE);
	event.setMessageStatus(getDomLookup(OrderMessageStatus.CREATED));
	event.setEventType(getDomLookup(type));
	factory.save(event);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:30,代码来源:DnaBatchUpdateImpl.java

示例2: createExternalEvent

import ims.scheduling.domain.objects.ExternalSystemEvent; //导入依赖的package包/类
private void createExternalEvent(Booking_AppointmentRefVo appointment, OrderInvestigationRefVo investigation, LookupInstVo type) throws StaleObjectException
{
	if (null == appointment)
		throw new DomainRuntimeException("Appointment Cannot be NULL");

	DomainFactory factory = getDomainFactory();
	ExternalSystemEvent event = new ExternalSystemEvent();
	
	// We need to deal with null investigations
	// when (not )sending the messages
	if (null != investigation) 
	{
		OrderInvestigation domInv = (OrderInvestigation) factory.getDomainObject(investigation);
		
		//WDEV-5912 For Investigations marked as NoInterface there are no interface calls
		if(domInv.getInvestigation() != null && domInv.getInvestigation().getInvestigationIndex() != null &&  domInv.getInvestigation().getInvestigationIndex().isNoInterface() != null && domInv.getInvestigation().getInvestigationIndex().isNoInterface())
			return;
		
		event.setInvestigation(domInv);
		event.setProviderSystem(domInv.getInvestigation().getProviderService().getProviderSystem());
	}

	Booking_Appointment domBookAppt = (Booking_Appointment) factory.getDomainObject(appointment);
	
	if(type !=null //http://jira/browse/WDEV-12816 If it is not radiology then we doon't need a message
			&&ExternalSystemEventTypes.PATIENTARRIVING.getID()==type.getID()
			&&domBookAppt!=null&&domBookAppt.getSession()!=null
			&&domBookAppt.getSession().getService()!=null
			&&domBookAppt.getSession().getService().getServiceCategory()!=null
			&&ServiceCategory.RADIOLOGY_MODALITY.getID()!=domBookAppt.getSession().getService().getServiceCategory().getId())
	{
		return;
	}
	
	event.setAppointment(domBookAppt);
	event.setWasProcessed(Boolean.FALSE);
	event.setMessageStatus(getDomLookup(OrderMessageStatus.CREATED));
	event.setEventType(getDomLookup(type));
	factory.save(event);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:41,代码来源:OCSExternalEventsImpl.java

示例3: getEvent

import ims.scheduling.domain.objects.ExternalSystemEvent; //导入依赖的package包/类
public IHL7OutboundMessageHandler getEvent(QueuedEventVo event)
{
	DomainFactory factory = getDomainFactory();
	if(event.getQueueTypeIsNotNull())
	{
		IQueueHandler ocsif =  (IQueueHandler)getDomainImpl(OcsIfImpl.class);
		return ocsif.getEvent(event);
	}
	else 
	{
		return ExternalEventVoAssembler.create((ExternalSystemEvent)factory.getDomainObject(ExternalSystemEvent.class, event.getID()));
	}
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:14,代码来源:ExternalEventsImpl.java

示例4: saveMessage

import ims.scheduling.domain.objects.ExternalSystemEvent; //导入依赖的package包/类
public IHL7OutboundMessageHandler saveMessage(IHL7OutboundMessageHandler iEvent) throws StaleObjectException
{
	if (iEvent == null)
		throw new RuntimeException("Cannot save null Event");
	DomainFactory factory = getDomainFactory();

	if(iEvent instanceof ExternalEventVo)
	{
		ExternalEventVo event = (ExternalEventVo)iEvent;
		String[] errors = event.validate();
		if (errors != null)
			throw new RuntimeException("Validation errors - " + Arrays.toString(errors)); //Find bugs recommendation 
		if (!event.isValidated())
			throw new CodingRuntimeException("Event has not been validated!");
		ExternalSystemEvent domEvent = ExternalEventVoAssembler
			.extractExternalSystemEvent(factory, event);
		factory.save(domEvent);
		return ExternalEventVoAssembler.create(domEvent);
	}
	else if(iEvent instanceof DemographicFeedVo)
	{
		IQueueHandler ocsif =  (IQueueHandler)getDomainImpl(OcsIfImpl.class);
		return ocsif.saveMessage(iEvent);
	}
	else 
	{
		throw new RuntimeException("Cannot determine event type for saving");
	}
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:30,代码来源:ExternalEventsImpl.java

示例5: generateAppointmentCancelEvent

import ims.scheduling.domain.objects.ExternalSystemEvent; //导入依赖的package包/类
public void generateAppointmentCancelEvent(Booking_AppointmentRefVo appointment, OrderInvestigationRefVo investigation) throws StaleObjectException
{
	if (null == appointment)
		throw new DomainRuntimeException("Appointment Cannot be NULL");
	DomainFactory factory = getDomainFactory();
	ExternalSystemEvent event = new ExternalSystemEvent();
	
	// We need to deal with null investigations
	// when (not )sending the messages
	if (null != investigation) 
	{
		OrderInvestigation domInv = (OrderInvestigation) factory.getDomainObject(investigation);
		
		//WDEV-5912 For Investigations marked as NoInterface there are no interface calls
		if(domInv.getInvestigation() != null && domInv.getInvestigation().getInvestigationIndex() != null &&  domInv.getInvestigation().getInvestigationIndex().isNoInterface() != null && domInv.getInvestigation().getInvestigationIndex().isNoInterface())
			return;
		
		if (domInv.getInvestigation()!=null&&domInv.getInvestigation().getProviderService()!=null&&domInv.getInvestigation().getProviderService().getLocationService()!=null
				&&domInv.getInvestigation().getProviderService().getLocationService().getService()!=null
				&&!(ServiceCategory.RADIOLOGY_MODALITY.getID()==( domInv.getInvestigation().getProviderService().getLocationService().getService().getServiceCategory().getId())))
			
			return;
		
		event.setInvestigation(domInv);
		ProviderSystem providerSystem=domInv.getInvestigation().getProviderService().getProviderSystem();
		if(!isRebookApptWithCancelandFullXOSetForProviderSystem(providerSystem))
			return;

		event.setProviderSystem(providerSystem);
	}

	if (ReferralManagementContractType.DIAGNOSTIC.getId() == getContractTypeIdFromReferralContractForBookingId(appointment.getBoId()))
		return;
	
	Booking_Appointment domBookAppt = (Booking_Appointment) factory.getDomainObject(appointment);
	event.setAppointment(domBookAppt);
	event.setWasProcessed(Boolean.FALSE);
	event.setMessageStatus(getDomLookup(OrderMessageStatus.CREATED));
	event.setEventType(getDomLookup(ExternalSystemEventTypes.CANCELAPPOINTMENT));
	if(domBookAppt!=null &&domBookAppt.getSession()!=null)
	{
		event.setCancelledAppointmentLocation(domBookAppt.getSession().getSchLocation());
	}
	factory.save(event);

}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:47,代码来源:OCSExternalEventsImpl.java


注:本文中的ims.scheduling.domain.objects.ExternalSystemEvent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。