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


Java CareContextInterfaceVo.setStartDateTime方法代码示例

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


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

示例1: updateInpatientDetails

import ims.core.vo.CareContextInterfaceVo; //导入方法依赖的package包/类
private void updateInpatientDetails(Patient patVo, InpatientEpisodeVo episVo, Message msg, PV1 pv1,ProviderSystemVo providerSystem) throws Exception
{
	// wdev-12588  Hold on to previous PasEvent, as if location changed, we have to set bed number to null
	// we may also have to update the EpisodeOfCare hcp, start date etc..
	PasEventVo originalPE = (PasEventVo) episVo.getPasEvent().clone();
	
	fillEpisFromMsg(episVo, msg, getOrgLoc(), getHcpAdmin(),providerSystem);
	
	//Force the update of the admission date by taking it from PV1.44
	if (pv1.getAdmitDateTime().getTimeOfAnEvent() != null && pv1.getAdmitDateTime().getTimeOfAnEvent().getValue() != null)
	{
		episVo.getPasEvent().setEventDateTime(new DateTime(pv1.getAdmitDateTime().getTimeOfAnEvent().getValue()));					
	}		
	
	episVo.getPasEvent().setPatient(patVo);
	String[] errs = episVo.validate();
	if (errs != null)
	{
		throw new HL7Exception("Validation of Admission failed. " + VoMapper.toDisplayString(errs));				
	}
	
	//WDEV-10231
	CareContextInterfaceVo voCareContext = null;
	if(ConfigFlag.HL7.INSTANTIATE_EPISODE_FROM_ADT.getValue() || ConfigFlag.HL7.INPATIENT_EPISODE_MANAGEMENT_FROM_PAS.getValue())
	{
		if(episVo != null && episVo.getPasEventIsNotNull())
		{
			voCareContext = getADT().getCareContextByPasEvent(episVo.getPasEvent());
			if(voCareContext != null)
			{
				// WDEV-13901 may need to create the history record
				// check if history records required for CC and EpisodeOfCare 
				voCareContext = createHistoryCareContextAndEpis(voCareContext, true, pv1, providerSystem.getCodeSystem().getText());

				voCareContext.setStartDateTime(episVo.getPasEvent().getEventDateTime());
				voCareContext.setResponsibleHCP(episVo.getPasEvent().getConsultant());

				// wdev-12588
				voCareContext.setEstimatedDischargeDate(episVo.getEstDischargeDate());
				voCareContext.getEpisodeOfCare().setStartDate(episVo.getPasEvent().getEventDateTime().getDate());
				voCareContext.getEpisodeOfCare().setResponsibleHCP(episVo.getPasEvent().getConsultant());
				voCareContext.getEpisodeOfCare().getCareSpell().setStartDate(episVo.getPasEvent().getEventDateTime().getDate());				
				
				LocSiteShortVo loc = orgLoc.getLocSiteShortByTaxonomyType(pv1.getAssignedPatientLocation().getBuilding().getValue(), TaxonomyType.PAS);
				LocSiteRefVo orderingHospRef = new LocSiteRefVo();
				if (loc!=null)
				{
					orderingHospRef.setID_Location(loc.getBoId());
					voCareContext.setOrderingHospital(orderingHospRef);
				}
				
				// wdev-12588 If location changes, we need to set the carecontext bed number to null
				if (episVo.getPasEventIsNotNull() && episVo.getPasEvent().getLocationIsNotNull() &&
						originalPE != null && originalPE.getLocationIsNotNull() && !originalPE.getLocation().equals(episVo.getPasEvent().getLocation()))
				{
					voCareContext.setBedNumber(null);
				}
				
				//specialty in episode of care
				if(voCareContext.getEpisodeOfCareIsNotNull() && providerSystem != null &&  providerSystem.getCodeSystemIsNotNull())
				{
					voCareContext.getEpisodeOfCare().setSpecialty((Specialty) svc.getLocalLookup(Specialty.class, Specialty.TYPE_ID, providerSystem.getCodeSystem().getText(), pv1.getHospitalService().getValue()));
					if (!voCareContext.getEpisodeOfCare().getSpecialtyIsNotNull())
					{
						throw new HL7Exception("Specialty not found with mapping value = " + pv1.getHospitalService().getValue());
					}
				}
			}
		}
	}
	
	getADT().updateInpatient(episVo, voCareContext);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:74,代码来源:A08VoMapper.java

示例2: updateDischargeDetails

import ims.core.vo.CareContextInterfaceVo; //导入方法依赖的package包/类
private void updateDischargeDetails(Patient patVo, DischargedEpisodeVo dischVo, Message msg, PV1 pv1,ProviderSystemVo providerSystem) throws Exception
{
	fillDischargeFromMsg(dischVo, msg, getOrgLoc(), getHcpAdmin(),providerSystem);
	
	dischVo.getPasEvent().setPatient(patVo);
	String[] errs = dischVo.validate();
	if (errs != null)
	{
		throw new HL7Exception("Validation of Admission failed. " + VoMapper.toDisplayString(errs));				
	}
	
	// wdev-8924 - Validate Patient too
	errs = patVo.validate();
	if (errs != null)
	{
		throw new HL7Exception("Validation of Patient failed. " + VoMapper.toDisplayString(errs));				
	}
	
	//WDEV-10231
	CareContextInterfaceVo voCareContext = null;
	if(ConfigFlag.HL7.INSTANTIATE_EPISODE_FROM_ADT.getValue() || ConfigFlag.HL7.INPATIENT_EPISODE_MANAGEMENT_FROM_PAS.getValue())
	{
		if(dischVo != null && dischVo.getPasEventIsNotNull())
		{
			voCareContext = getADT().getCareContextByPasEvent(dischVo.getPasEvent());
			if(voCareContext != null)
			{
				// WDEV-13901 may need to create the history record
				// check if history records required for CC and EpisodeOfCare 
				voCareContext = createHistoryCareContextAndEpis(voCareContext, true, pv1, providerSystem.getCodeSystem().getText());

				voCareContext.setEndDateTime(dischVo.getPasEvent().getEventDateTime());
				voCareContext.setResponsibleHCP(dischVo.getPasEvent().getConsultant());
				voCareContext.getEpisodeOfCare().setResponsibleHCP(dischVo.getPasEvent().getConsultant());
				if(voCareContext.getEpisodeOfCareIsNotNull() && providerSystem != null &&  providerSystem.getCodeSystemIsNotNull())
					voCareContext.getEpisodeOfCare().setSpecialty((Specialty) svc.getLocalLookup(Specialty.class, Specialty.TYPE_ID, providerSystem.getCodeSystem().getText(), pv1.getHospitalService().getValue()));

				if (pv1.getAdmitDateTime().getTimeOfAnEvent() != null && pv1.getAdmitDateTime().getTimeOfAnEvent().getValue() != null)
				{
					Date newStartDate = new Date(pv1.getAdmitDateTime().getTimeOfAnEvent().getValue().substring(0,8), DateFormat.ISO);
					voCareContext.setStartDateTime(new DateTime(pv1.getAdmitDateTime().getTimeOfAnEvent().getValue()));
					voCareContext.getEpisodeOfCare().setStartDate(newStartDate);
					voCareContext.getEpisodeOfCare().getCareSpell().setStartDate(newStartDate);
				}				

			}
		}
	}

	getADT().dischargePatient(patVo, dischVo, voCareContext);	
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:52,代码来源:A08VoMapper.java

示例3: updateInpatientDetails

import ims.core.vo.CareContextInterfaceVo; //导入方法依赖的package包/类
private void updateInpatientDetails(Patient patVo, InpatientEpisodeVo episVo, Message msg, PV1 pv1,ProviderSystemVo providerSystem) throws Exception
	{
		// wdev-12588  Hold on to previous PasEvent, as if location changed, we have to set bed number to null
		// we may also have to update the EpisodeOfCare hcp, start date etc..
		PasEventVo originalPE = (PasEventVo) episVo.getPasEvent().clone();
		
		fillEpisFromMsg(episVo, msg, getOrgLoc(), getHcpAdmin(),providerSystem);
		
		//Force the update of the admission date by taking it from PV1.44
		if (pv1.getAdmitDateTime().getTimeOfAnEvent() != null && pv1.getAdmitDateTime().getTimeOfAnEvent().getValue() != null)
		{
			episVo.getPasEvent().setEventDateTime(new DateTime(pv1.getAdmitDateTime().getTimeOfAnEvent().getValue()));					
		}		
		
		episVo.getPasEvent().setPatient(patVo);
		String[] errs = episVo.validate();
		if (errs != null)
		{
			throw new HL7Exception("Validation of Admission failed. " + VoMapper.toDisplayString(errs));				
		}
		
		//WDEV-10231
		CareContextInterfaceVo voCareContext = null;
		if(ConfigFlag.HL7.INSTANTIATE_EPISODE_FROM_ADT.getValue() || ConfigFlag.HL7.INPATIENT_EPISODE_MANAGEMENT_FROM_PAS.getValue())
		{
			if(episVo != null && episVo.getPasEventIsNotNull())
			{
				voCareContext = getADT().getCareContextByPasEvent(episVo.getPasEvent());
				if(voCareContext != null)
				{
					// WDEV-13901 may need to create the history record
					// check if history records required for CC and EpisodeOfCare 
					voCareContext = createHistoryCareContextAndEpis(voCareContext, true, pv1, providerSystem.getCodeSystem().getText());

					voCareContext.setStartDateTime(episVo.getPasEvent().getEventDateTime());
					voCareContext.setResponsibleHCP(episVo.getPasEvent().getConsultant());

					// wdev-12588
					voCareContext.setEstimatedDischargeDate(episVo.getEstDischargeDate().getDate());
					voCareContext.getEpisodeOfCare().setStartDate(episVo.getPasEvent().getEventDateTime().getDate());
					voCareContext.getEpisodeOfCare().setResponsibleHCP(episVo.getPasEvent().getConsultant());
					voCareContext.getEpisodeOfCare().getCareSpell().setStartDate(episVo.getPasEvent().getEventDateTime().getDate());				
					
					//WDEV-20278
//					LocSiteShortVo loc = orgLoc.getLocSiteShortByTaxonomyType(pv1.getAssignedPatientLocation().getBuilding().getValue(), TaxonomyType.PAS);
					LocSiteShortVo loc = orgLoc.getLocSiteShortByTaxonomyType(pv1.getAssignedPatientLocation().getBuilding().getValue(), providerSystem.getCodeSystem()); //WDEV-20278
					LocSiteRefVo orderingHospRef = new LocSiteRefVo();
					if (loc!=null)
					{
						orderingHospRef.setID_Location(loc.getBoId());
						voCareContext.setOrderingHospital(orderingHospRef);
					}
					
					// wdev-12588 If location changes, we need to set the carecontext bed number to null
					if (episVo.getPasEventIsNotNull() && episVo.getPasEvent().getLocationIsNotNull() &&
							originalPE != null && originalPE.getLocationIsNotNull() && !originalPE.getLocation().equals(episVo.getPasEvent().getLocation()))
					{
						voCareContext.setBedNumber(null);
					}
					
					//specialty in episode of care
					if(voCareContext.getEpisodeOfCareIsNotNull() && providerSystem != null &&  providerSystem.getCodeSystemIsNotNull())
					{
						voCareContext.getEpisodeOfCare().setSpecialty((Specialty) svc.getLocalLookup(Specialty.class, Specialty.TYPE_ID, providerSystem.getCodeSystem().getText(), pv1.getHospitalService().getValue()));
						if (!voCareContext.getEpisodeOfCare().getSpecialtyIsNotNull())
						{
							throw new HL7Exception("Specialty not found with mapping value = " + pv1.getHospitalService().getValue());
						}
					}
				}
			}
		}
		
		getADT().updateInpatient(episVo, voCareContext);
	}
 
开发者ID:IMS-MAXIMS,项目名称:openMAXIMS,代码行数:76,代码来源:A08VoMapper.java


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