java inst_Java LookupInstVo.getID方法代碼示例

import ims.vo.LookupInstVo; //導入方法依賴的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);

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值