Java 类ims.core.vo.PatientShortListVo 实例源码

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onDyngrdPatientsRowSelectionChanged(ims.framework.controls.DynamicGridRow row)
{
    PatientShortListVo patient = ((PatientElectiveListForPendingAdmissionVo)row.getValue()).getPatient();
    form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(patient));
    updateControlsState();
}
项目:AvoinApotti    文件:DischargeSummaryScheduleSTHKFormImpl.java   
public PatientShortListVo getPatientByCareContext(CareContextRefVo careContext) 
{
    if(careContext == null || careContext.getID_CareContext() == null) {
        throw new CodingRuntimeException("CareContextRefVo is null");
    }
    if(careContext.getID_CareContext() == null) {
        throw new CodingRuntimeException("CareContextRefVo id is null");
    }

    DomainFactory factory = getDomainFactory();
    List domainObjectList = factory.find("select p from CareContext as cc left join cc.episodeOfCare as eoc left join eoc.careSpell as cs left join cs.patient as p where (cc.id = :idCareContext)", new String[]{"idCareContext"}, new Object[]{careContext.getID_CareContext()});
    PatientShortListVoCollection patient = PatientShortListVoAssembler.createPatientShortListVoCollectionFromPatient(domainObjectList);

    return patient != null && patient.size() > 0 ? (patient.get(0) != null ? patient.get(0) : null) : null;
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onDyngrdPatientsRowSelectionChanged(ims.framework.controls.DynamicGridRow row)
{
    PatientShortListVo patient = ((PatientElectiveListForPendingAdmissionVo)row.getValue()).getPatient();
    form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(patient));
    //WDEV-21958
    if (row.getValue() != null)
    {
        PatientElectiveTCIBedManagerCommentVo tciDetails = ((PatientElectiveListForPendingAdmissionVo)row.getValue()).getTCIDetails();
        form.getGlobalContext().Core.settciDetails(tciDetails);
    }
    updateControlsState();
}
项目:openMAXIMS    文件:DischargeSummaryScheduleSTHKFormImpl.java   
public PatientShortListVo getPatientByCareContext(CareContextRefVo careContext) 
{
    if(careContext == null || careContext.getID_CareContext() == null) {
        throw new CodingRuntimeException("CareContextRefVo is null");
    }
    if(careContext.getID_CareContext() == null) {
        throw new CodingRuntimeException("CareContextRefVo id is null");
    }

    DomainFactory factory = getDomainFactory();
    List domainObjectList = factory.find("select p from CareContext as cc left join cc.episodeOfCare as eoc left join eoc.careSpell as cs left join cs.patient as p where (cc.id = :idCareContext)", new String[]{"idCareContext"}, new Object[]{careContext.getID_CareContext()});
    PatientShortListVoCollection patient = PatientShortListVoAssembler.createPatientShortListVoCollectionFromPatient(domainObjectList);

    return patient != null && patient.size() > 0 ? (patient.get(0) != null ? patient.get(0) : null) : null;
}
项目:openMAXIMS    文件:Logic.java   
protected void onDyngrdResultsRowSelectionChanged(DynamicGridRow row) throws PresentationLogicException
{
    updateControlsState();
    //WDEV-22823
    if(row != null && row.getValue() != null)
    {
        PatientShortListVo patient = ((PatientElectiveListForEndoscWorklistVo) row.getValue()).getPatient();
        form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(patient));
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onDyngrdPatientsRowSelectionChanged(ims.framework.controls.DynamicGridRow row)
{
    PatientShortListVo patient = ((PatientElectiveListForPendingAdmissionVo)row.getValue()).getPatient();
    form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(patient));
    updateControlsState();
}
项目:openMAXIMS    文件:DischargeSummaryScheduleSTHKFormImpl.java   
public PatientShortListVo getPatientByCareContext(CareContextRefVo careContext) 
{
    if(careContext == null || careContext.getID_CareContext() == null) {
        throw new CodingRuntimeException("CareContextRefVo is null");
    }
    if(careContext.getID_CareContext() == null) {
        throw new CodingRuntimeException("CareContextRefVo id is null");
    }

    DomainFactory factory = getDomainFactory();
    List domainObjectList = factory.find("select p from CareContext as cc left join cc.episodeOfCare as eoc left join eoc.careSpell as cs left join cs.patient as p where (cc.id = :idCareContext)", new String[]{"idCareContext"}, new Object[]{careContext.getID_CareContext()});
    PatientShortListVoCollection patient = PatientShortListVoAssembler.createPatientShortListVoCollectionFromPatient(domainObjectList);

    return patient != null && patient.size() > 0 ? (patient.get(0) != null ? patient.get(0) : null) : null;
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onDyngrdPatientsRowSelectionChanged(ims.framework.controls.DynamicGridRow row)
{
    PatientShortListVo patient = ((PatientElectiveListForPendingAdmissionVo)row.getValue()).getPatient();
    form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(patient));
    updateControlsState();
}
项目:openmaxims-linux    文件:DischargeSummaryScheduleSTHKFormImpl.java   
public PatientShortListVo getPatientByCareContext(CareContextRefVo careContext) 
{
    if(careContext == null || careContext.getID_CareContext() == null) {
        throw new CodingRuntimeException("CareContextRefVo is null");
    }
    if(careContext.getID_CareContext() == null) {
        throw new CodingRuntimeException("CareContextRefVo id is null");
    }

    DomainFactory factory = getDomainFactory();
    List domainObjectList = factory.find("select p from CareContext as cc left join cc.episodeOfCare as eoc left join eoc.careSpell as cs left join cs.patient as p where (cc.id = :idCareContext)", new String[]{"idCareContext"}, new Object[]{careContext.getID_CareContext()});
    PatientShortListVoCollection patient = PatientShortListVoAssembler.createPatientShortListVoCollectionFromPatient(domainObjectList);

    return patient != null && patient.size() > 0 ? (patient.get(0) != null ? patient.get(0) : null) : null;
}