• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java ElectiveAdmissionStatus类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: listPendingElectiveAdmission

import ims.core.vo.lookups.ElectiveAdmissionStatus; //导入依赖的package包/类
/**
* listPendingElectiveAdmission
*/
public ims.core.vo.PendingElectiveAdmissionAdmitVoCollection listPendingElectiveAdmission(LocationRefVo voLocation)
{
	if(voLocation == null)
		throw new CodingRuntimeException("voLocation is null in method listPendingElectiveAdmission");
	
	DomainFactory factory = getDomainFactory();
	List pendingElectives = factory.find("from PendingElectiveAdmission pea where (pea.tCIDate = :today or pea.tCIDate = :yesterday) and pea.allocatedWard.id = :idWard and pea.electiveAdmissionStatus = :status  and pea.tCIType = :tciType ", new String[]{"today","yesterday", "idWard","status","tciType"}, new Object[]{new Date().getDate(),new Date().addDay(-1).getDate(), voLocation.getID_Location(), getDomLookup(ElectiveAdmissionStatus.TCI), getDomLookup(TCIType.BOOKED)});
		return PendingElectiveAdmissionAdmitVoAssembler.createPendingElectiveAdmissionAdmitVoCollectionFromPendingElectiveAdmission(pendingElectives);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:13,代码来源:BedAdmissionComponentImpl.java


示例2: listPlannedElectiveAdmission

import ims.core.vo.lookups.ElectiveAdmissionStatus; //导入依赖的package包/类
public PendingElectiveAdmissionAdmitVoCollection listPlannedElectiveAdmission(Date dateFrom, Date dateTo, LocationRefVo ward)
{
	if(dateFrom == null)
		throw new CodingRuntimeException("dateFrom is mandatory in method listPlannedElectiveAdmission");	
	if(dateTo == null)
		throw new CodingRuntimeException("dateTo is mandatory in method listPlannedElectiveAdmission");
	if(ward == null)
		throw new CodingRuntimeException("ward is null in method listPlannedElectiveAdmission");
	
	DomainFactory factory = getDomainFactory();
	List pendingElectives = factory.find("from PendingElectiveAdmission pea where pea.tCIDate >= :dateFrom and pea.tCIDate <= :dateTo and pea.allocatedWard.id = :idWard and pea.electiveAdmissionStatus = :status and pea.tCIType = :tciType ", new String[]{"dateFrom","dateTo","idWard","status", "tciType"}, new Object[]{dateFrom.getDate(), dateTo.getDate(), ward.getID_Location(), getDomLookup(ElectiveAdmissionStatus.TCI), getDomLookup(TCIType.PLANNED)});
	return PendingElectiveAdmissionAdmitVoAssembler.createPendingElectiveAdmissionAdmitVoCollectionFromPendingElectiveAdmission(pendingElectives);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:14,代码来源:BedAdmissionComponentImpl.java


示例3: listPendingElectiveAdmission

import ims.core.vo.lookups.ElectiveAdmissionStatus; //导入依赖的package包/类
public PendingElectiveAdmissionAdmitVoCollection listPendingElectiveAdmission(LocationRefVo voLocation)
{
	if(voLocation == null)
		throw new CodingRuntimeException("voLocation is null in method listPendingElectiveAdmission");
	
	DomainFactory factory = getDomainFactory();
	List pendingElectives = factory.find("from PendingElectiveAdmission pea where (pea.tCIDate = :today or pea.tCIDate = :yesterday) and pea.allocatedWard.id = :idWard and pea.electiveAdmissionStatus = :status", new String[]{"today","yesterday", "idWard","status"}, new Object[]{new Date().getDate(), new Date().addDay(-1).getDate(),voLocation.getID_Location(), getDomLookup(ElectiveAdmissionStatus.TCI)});
	return PendingElectiveAdmissionAdmitVoAssembler.createPendingElectiveAdmissionAdmitVoCollectionFromPendingElectiveAdmission(pendingElectives);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:10,代码来源:WardViewImpl.java


示例4: listPendingElectiveAdmission

import ims.core.vo.lookups.ElectiveAdmissionStatus; //导入依赖的package包/类
/**
 * listPendingElectiveAdmission
 */
public ims.core.vo.PendingElectiveAdmissionAdmitVoCollection listPendingElectiveAdmission(LocationRefVo voLocation)
{
	if(voLocation == null)
		throw new CodingRuntimeException("voLocation is null in method listPendingElectiveAdmission");

	DomainFactory factory = getDomainFactory();
	List pendingElectives = factory.find("from PendingElectiveAdmission pea where (pea.tCIDate = :today or pea.tCIDate = :yesterday) and pea.allocatedWard.id = :idWard and pea.electiveAdmissionStatus = :status  and pea.tCIType = :tciType ", new String[]{"today","yesterday", "idWard","status","tciType"}, new Object[]{new Date().getDate(),new Date().addDay(-1).getDate(), voLocation.getID_Location(), getDomLookup(ElectiveAdmissionStatus.TCI), getDomLookup(TCIType.BOOKED)});
	return PendingElectiveAdmissionAdmitVoAssembler.createPendingElectiveAdmissionAdmitVoCollectionFromPendingElectiveAdmission(pendingElectives);
}
 
开发者ID:IMS-MAXIMS,项目名称:openMAXIMS,代码行数:13,代码来源:BedAdmissionComponentImpl.java


示例5: listPlannedElectiveAdmission

import ims.core.vo.lookups.ElectiveAdmissionStatus; //导入依赖的package包/类
public PendingElectiveAdmissionAdmitVoCollection listPlannedElectiveAdmission(Date dateFrom, Date dateTo, LocationRefVo ward)
{
	if(dateFrom == null)
		throw new CodingRuntimeException("dateFrom is mandatory in method listPlannedElectiveAdmission");	
	if(dateTo == null)
		throw new CodingRuntimeException("dateTo is mandatory in method listPlannedElectiveAdmission");
	if(ward == null)
		throw new CodingRuntimeException("ward is null in method listPlannedElectiveAdmission");

	DomainFactory factory = getDomainFactory();
	List pendingElectives = factory.find("from PendingElectiveAdmission pea where pea.tCIDate >= :dateFrom and pea.tCIDate <= :dateTo and pea.allocatedWard.id = :idWard and pea.electiveAdmissionStatus = :status and pea.tCIType = :tciType ", new String[]{"dateFrom","dateTo","idWard","status", "tciType"}, new Object[]{dateFrom.getDate(), dateTo.getDate(), ward.getID_Location(), getDomLookup(ElectiveAdmissionStatus.TCI), getDomLookup(TCIType.PLANNED)});
	return PendingElectiveAdmissionAdmitVoAssembler.createPendingElectiveAdmissionAdmitVoCollectionFromPendingElectiveAdmission(pendingElectives);
}
 
开发者ID:IMS-MAXIMS,项目名称:openMAXIMS,代码行数:14,代码来源:BedAdmissionComponentImpl.java


示例6: readmitPatient

import ims.core.vo.lookups.ElectiveAdmissionStatus; //导入依赖的package包/类
public InpatientEpisodeVo readmitPatient(PatientShort patVo, InpatientEpisodeVo episVo) throws StaleObjectException 
{
	if (!patVo.isValidated())
	{
		throw new CodingRuntimeException("Patient VO has not been validated!");
	}
	if (!episVo.isValidated())
	{
		throw new CodingRuntimeException("Episode VO has not been validated!");
	}
	if(patVo.getID_Patient() == null)
	{
		throw new CodingRuntimeException("Internal Patient ID must be valued.");
	}
	
	DomainFactory factory = getDomainFactory();
	
	ims.core.patient.domain.objects.Patient domPatient =  (ims.core.patient.domain.objects.Patient)factory.getDomainObject(ims.core.patient.domain.objects.Patient.class, patVo.getID_Patient().intValue());

	PASEvent domTCIPas=null;
	if (episVo!=null&&episVo.getPreAdmitNumber()!=null)
		domTCIPas = PASEvent.getPASEventFrompasevent_unq1(factory, domPatient, episVo.getPreAdmitNumber());
	
	PendingElectiveAdmission domPEA =  getDomPendingElectiveAdmission(domPatient,domTCIPas);
	if(null!=domPEA)
	{
		domPEA.setElectiveAdmissionStatus(getDomLookup(ElectiveAdmissionStatus.ADMITTED));
		factory.save(domPEA);
	}
	
	InpatientEpisode ipDo = InpatientEpisodeVoAssembler.extractInpatientEpisode(factory, episVo);
	if (ipDo!=null)
	{
		WardStay ws = new WardStay();
		ws.setTransferDateTime(ipDo.getAdmissionDateTime());
		if (ipDo.getPasEvent()!=null)
			ws.setWard(ipDo.getPasEvent().getLocation());
		ws.setWardType(ipDo.getWardType());
	
		if(ipDo.getPasEvent()!=null&&ipDo.getPasEvent().getConsultant()!=null)
		{
			ConsultantStay cs = new ConsultantStay();
			cs.setConsultant(ipDo.getPasEvent().getConsultant());
			cs.setTransferDateTime(ipDo.getAdmissionDateTime());
			ipDo.getConsultantStays().add(cs);
		}
		
		ipDo.getWardStays().add(ws);
	}
	factory.save(ipDo);
	
	AdmissionDetail ad = populateAdmissionDetailfromInpatientEpisode(ipDo,episVo, null);
	factory.save(ad);
	
	domPatient.setWard(ipDo.getPasEvent().getLocation());
	// WDEV-17867 - Set Current Responsible Clinician to Patient record
	domPatient.setCurrentResponsibleConsultant(ipDo.getPasEvent().getConsultant());
	factory.save(domPatient);
	
	return InpatientEpisodeVoAssembler.create(ipDo);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:62,代码来源:ADTImpl.java


示例7: readmitPatient

import ims.core.vo.lookups.ElectiveAdmissionStatus; //导入依赖的package包/类
public InpatientEpisodeVo readmitPatient(PatientShort patVo, InpatientEpisodeVo episVo) throws StaleObjectException 
{
	if (!patVo.isValidated())
	{
		throw new CodingRuntimeException("Patient VO has not been validated!");
	}
	if (!episVo.isValidated())
	{
		throw new CodingRuntimeException("Episode VO has not been validated!");
	}
	if(patVo.getID_Patient() == null)
	{
		throw new CodingRuntimeException("Internal Patient ID must be valued.");
	}
	
	DomainFactory factory = getDomainFactory();
	
	ims.core.patient.domain.objects.Patient domPatient =  (ims.core.patient.domain.objects.Patient)factory.getDomainObject(ims.core.patient.domain.objects.Patient.class, patVo.getID_Patient().intValue());

	PASEvent domTCIPas=null;
	if (episVo!=null&&episVo.getPreAdmitNumber()!=null)
		domTCIPas = PASEvent.getPASEventFrompasevent_unq1(factory, domPatient, episVo.getPreAdmitNumber());
	
	PendingElectiveAdmission domPEA =  getDomPendingElectiveAdmission(domPatient,domTCIPas);
	if(null!=domPEA)
	{
		domPEA.setElectiveAdmissionStatus(getDomLookup(ElectiveAdmissionStatus.ADMITTED));
		factory.save(domPEA);
	}
	
	InpatientEpisode ipDo = InpatientEpisodeVoAssembler.extractInpatientEpisode(factory, episVo);
	if (ipDo!=null)
	{
		WardStay ws = new WardStay();
		ws.setTransferDateTime(ipDo.getAdmissionDateTime());
		if (ipDo.getPasEvent()!=null)
			ws.setWard(ipDo.getPasEvent().getLocation());
		ws.setWardType(ipDo.getWardType());
	
		if(ipDo.getPasEvent()!=null&&ipDo.getPasEvent().getConsultant()!=null)
		{
			ConsultantStay cs = new ConsultantStay();
			cs.setConsultant(ipDo.getPasEvent().getConsultant());
			cs.setTransferDateTime(ipDo.getAdmissionDateTime());
			cs.setSpecialty(ipDo.getPasEvent().getSpecialty());
			
			ipDo.getConsultantStays().add(cs);
		}
		
		ipDo.getWardStays().add(ws);
	}
	factory.save(ipDo);
	
	AdmissionDetail ad = populateAdmissionDetailfromInpatientEpisode(ipDo,episVo, null);
	factory.save(ad);
	
	domPatient.setWard(ipDo.getPasEvent().getLocation());
	// WDEV-17867 - Set Current Responsible Clinician to Patient record
	domPatient.setCurrentResponsibleConsultant(ipDo.getPasEvent().getConsultant());
	factory.save(domPatient);
	
	return InpatientEpisodeVoAssembler.create(ipDo);
}
 
开发者ID:IMS-MAXIMS,项目名称:openMAXIMS,代码行数:64,代码来源:ADTImpl.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java EDischargeSTHKSummaryDetailVo类代码示例发布时间:2022-05-15
下一篇:
Java NaviLatLng类代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap