本文整理汇总了Java中ims.core.vo.CareContextInterfaceVo类的典型用法代码示例。如果您正苦于以下问题:Java CareContextInterfaceVo类的具体用法?Java CareContextInterfaceVo怎么用?Java CareContextInterfaceVo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CareContextInterfaceVo类属于ims.core.vo包,在下文中一共展示了CareContextInterfaceVo类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getCareContextFromPasEpisodeId
import ims.core.vo.CareContextInterfaceVo; //导入依赖的package包/类
public CareContextInterfaceVo getCareContextFromPasEpisodeId(String pasEpisodeId, String visitId)
{
DomainFactory factory=getDomainFactory();
ArrayList<String> objects=new ArrayList<String>();
objects.add("pasEvent");
IMSCriteria imsc=new IMSCriteria(CareContext.class,objects,factory);
imsc.equal("pasEvent.pasEpisodeId", pasEpisodeId);
imsc.equal("pasEvent.pasEventId", visitId);
List careContexts=imsc.find();
if (careContexts.size()>0)
{
CareContext careContext=(CareContext)careContexts.get(careContexts.size()-1);
return CareContextInterfaceVoAssembler.create(careContext);
}
return null;
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:22,代码来源:CareSpellDialogImpl.java
示例2: cancelAppointment
import ims.core.vo.CareContextInterfaceVo; //导入依赖的package包/类
public void cancelAppointment(OutPatientAttendanceVo attendance, CareContextInterfaceVo voCareContext) throws StaleObjectException
{
DomainFactory factory = getDomainFactory();
OutpatientAttendance domAtt = OutPatientAttendanceVoAssembler.extractOutpatientAttendance(factory, attendance);
if(ConfigFlag.HL7.INSTANTIATE_EPISODE_FROM_ADT.getValue())
{
if(voCareContext != null)
factory.save(CareContextInterfaceVoAssembler.extractCareContext(factory, voCareContext));
}
// WDEV-13455
// We may want to record this appointment within the Patient Diary
if (ConfigFlag.DOM.RECORD_INTO_PATIENT_DIARY.getValue())
{
PatientApptDiary diary = createDiaryEntry(domAtt,attendance.getApptType(),attendance.getRecordingUser());
factory.save(diary);
}
factory.save(domAtt);
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:22,代码来源:ADTImpl.java
示例3: getAdmissionForSelectedCareContext
import ims.core.vo.CareContextInterfaceVo; //导入依赖的package包/类
public AdmissionDetailVo getAdmissionForSelectedCareContext(CareContextInterfaceVo careContext)
{
if( careContext == null || careContext.getPasEvent() == null )
throw new CodingRuntimeException("CareContextInterfaceVo is null");
DomainFactory factory = getDomainFactory();
String hql = " select a1_1 from AdmissionDetail as a1_1 left join a1_1.pasEvent as p1_1 where (p1_1.id = :pasEventId) order by a1_1.admissionDateTime desc";
List<?> lst = factory.find(hql,new String[]{"pasEventId"},new Object[]{careContext.getPasEvent().getID_PASEvent()});
if (lst != null && lst.size() > 0)
{
AdmissionDetailVoCollection tempColl = AdmissionDetailVoAssembler.createAdmissionDetailVoCollectionFromAdmissionDetail(lst) ;
if(tempColl != null && tempColl.size() > 0)
{
return tempColl.get(0);
}
}
return null;
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:21,代码来源:ADTDischargeDetailsComponentImpl.java
示例4: getCareContextFromPV1
import ims.core.vo.CareContextInterfaceVo; //导入依赖的package包/类
public CareContextRefVo getCareContextFromPV1(PV1 pv) throws DataTypeException
{
String visitId=pv.getVisitNumber().getID().getValue() + "_" + pv.getVisitNumber().getComponent(1);
String pasEpisodeId = pv.getAlternateVisitID().getID().getValue();
CareContextInterfaceVo careContext;
if (pasEpisodeId!=null)
{
careContext=careSpellDialog.getCareContextFromPasEpisodeId(pasEpisodeId,visitId);
if (careContext!=null)
{
if (careContext.getEpisodeOfCare()!=null)
{
setCareContextContext(careContext.getID_CareContext(),careContext.getEpisodeOfCare().getID_EpisodeOfCare());
return (CareContextRefVo)careContext;
}
}
}
return null;
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:21,代码来源:A03VoMapper.java
示例5: saveCareContext
import ims.core.vo.CareContextInterfaceVo; //导入依赖的package包/类
public CareContextInterfaceVo saveCareContext(CareContextInterfaceVo careContext) throws StaleObjectException
{
if (careContext == null || !careContext.isValidated())
throw new CodingRuntimeException("Care Spell is null or has not been validated");
DomainFactory factory=getDomainFactory();
CareContext doCareContext = CareContextInterfaceVoAssembler.extractCareContext(factory, careContext);
//WDEV-10231 - add any new status record to history
if(doCareContext.getCurrentStatus() != null && doCareContext.getCurrentStatus().getId() == null)
doCareContext.getStatusHistory().add(doCareContext.getCurrentStatus());
factory.save(doCareContext);
return CareContextInterfaceVoAssembler.create(doCareContext);
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:16,代码来源:CareSpellDialogImpl.java
示例6: getCareContextByPasEvent
import ims.core.vo.CareContextInterfaceVo; //导入依赖的package包/类
public CareContextInterfaceVo getCareContextByPasEvent(PASEventRefVo pasEvent)
{
if (pasEvent == null || pasEvent.getID_PASEvent() == null)
throw new CodingRuntimeException("pasEvent is null or id not provided in method getCareContextByPasEvent");
CareContext doCareContext = (CareContext) getDomainFactory().findFirst("from CareContext cc where cc.pasEvent.id = " + pasEvent.getID_PASEvent());
return CareContextInterfaceVoAssembler.create(doCareContext);
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:9,代码来源:ADTImpl.java
示例7: getCareContextById
import ims.core.vo.CareContextInterfaceVo; //导入依赖的package包/类
public ims.core.vo.CareContextInterfaceVo getCareContextById(ims.core.admin.vo.CareContextRefVo careContextRef)
{
if( careContextRef == null)
throw new CodingRuntimeException("This CareContextRefVo is null");
DomainFactory factory = getDomainFactory();
CareContext doCareContext = (CareContext) factory.getDomainObject(CareContext.class, careContextRef.getID_CareContext());
return CareContextInterfaceVoAssembler.create(doCareContext);
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:11,代码来源:ADTDischargeDetailsComponentImpl.java
示例8: saveRecord
import ims.core.vo.CareContextInterfaceVo; //导入依赖的package包/类
public DischargedEpisodeVo saveRecord(DischargedEpisodeVo record, PatientShort patient, CareContextInterfaceVo careContext) throws DomainInterfaceException, StaleObjectException, ForeignKeyViolationException
{
ADT Adt = (ADT)getDomainImpl(ADTImpl.class);
if( patient != null)
patient.validate();
return Adt.dischargePatient(patient, record, careContext);
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:9,代码来源:ADTDischargeDetailsComponentImpl.java
示例9: recordOPAttendance
import ims.core.vo.CareContextInterfaceVo; //导入依赖的package包/类
public OutPatientAttendanceVo recordOPAttendance(PatientShort patVo, OutPatientAttendanceVo attVo, CareContextInterfaceVo ccVo) throws StaleObjectException
{
if (!patVo.isValidated())
{
throw new DomainRuntimeException("Patient VO has not been validated!");
}
if (!attVo.isValidated())
{
throw new DomainRuntimeException("Attendance VO has not been validated!");
}
if(patVo.getID_Patient() == null)
{
throw new DomainRuntimeException("Internal Patient ID must be valued.");
}
DomainFactory factory = getDomainFactory();
OutpatientAttendance attDo = OutPatientAttendanceVoAssembler.extractOutpatientAttendance(factory, attVo);
if(ConfigFlag.HL7.INSTANTIATE_EPISODE_FROM_ADT.getValue())
{
if(ccVo != null)
factory.save(CareContextInterfaceVoAssembler.extractCareContext(factory, ccVo));
}
try
{
factory.save(attDo);
// WDEV-13455
// We may want to record this appointment within the Patient Diary
if (ConfigFlag.DOM.RECORD_INTO_PATIENT_DIARY.getValue())
{
PatientApptDiary diary = createDiaryEntry(attDo,attVo.getApptType(),attVo.getRecordingUser());
factory.save(diary);
}
}
catch (DomainException e)
{
throw new DomainRuntimeException(e);
}
return OutPatientAttendanceVoAssembler.create(attDo);
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:43,代码来源:ADTImpl.java
示例10: 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
示例11: 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
示例12: updateInpatient
import ims.core.vo.CareContextInterfaceVo; //导入依赖的package包/类
public void updateInpatient(InpatientEpisodeVo inpatientRecord, CareContextInterfaceVo voCareContext) throws StaleObjectException
{
updateInpatient(inpatientRecord, voCareContext, true);
}
开发者ID:IMS-MAXIMS,项目名称:openMAXIMS,代码行数:5,代码来源:ADTImpl.java
示例13: 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类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论