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

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws PresentationLogicException
{
    if (args!=null && args.length>1 && args[0]!=null && args[0] instanceof CareContextLiteVo && args[1]!=null && args[1] instanceof PatientListVo)
    {
        form.getLocalContext().setCurrentCareContext((CareContextLiteVo) args[0]);
        PatientDiagnosisListVoCollection colldiagnosis = domain.listDiagnosis(form.getLocalContext().getCurrentCareContext(),(PatientListVo)args[1]);
        populateGrid(colldiagnosis);
        updateControlState();
    }
}
项目:AvoinApotti    文件:ReferralCodingImpl.java   
public PatientListVo getPatientRef(CatsReferralRefVo catsReferralRef)
{
    DomainFactory factory = getDomainFactory();

    if (catsReferralRef != null && catsReferralRef.getID_CatsReferralIsNotNull())
    {
        java.util.List list = factory.find("select patient from CatsReferral cats where cats.id = :catsID", new String[]{"catsID"}, new Object[]{catsReferralRef.getID_CatsReferral()});
        if (list != null && list.size() >0)
            return PatientListVoAssembler.create((Patient)list.get(0));
        else
            return null;
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws PresentationLogicException
{
    if (args!=null && args.length>1 && args[0]!=null && args[0] instanceof CareContextLiteVo && args[1]!=null && args[1] instanceof PatientListVo)
    {
        form.getLocalContext().setCurrentCareContext((CareContextLiteVo) args[0]);
        PatientDiagnosisListVoCollection colldiagnosis = domain.listDiagnosis(form.getLocalContext().getCurrentCareContext(),(PatientListVo)args[1]);
        populateGrid(colldiagnosis);
        updateControlState();
    }
}
项目:openMAXIMS    文件:ReferralCodingImpl.java   
public PatientListVo getPatientRef(CatsReferralRefVo catsReferralRef)
{
    DomainFactory factory = getDomainFactory();

    if (catsReferralRef != null && catsReferralRef.getID_CatsReferralIsNotNull())
    {
        java.util.List list = factory.find("select patient from CatsReferral cats where cats.id = :catsID", new String[] { "catsID" }, new Object[] { catsReferralRef.getID_CatsReferral() });
        if (list != null && list.size() > 0)
            return PatientListVoAssembler.create((Patient) list.get(0));
        else
            return null;
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws PresentationLogicException
{
    if (args!=null && args.length>1 && args[0]!=null && args[0] instanceof CareContextLiteVo && args[1]!=null && args[1] instanceof PatientListVo)
    {
        form.getLocalContext().setCurrentCareContext((CareContextLiteVo) args[0]);
        PatientDiagnosisListVoCollection colldiagnosis = domain.listDiagnosis(form.getLocalContext().getCurrentCareContext(),(PatientListVo)args[1]);
        populateGrid(colldiagnosis);
        updateControlState();
    }
}
项目:openMAXIMS    文件:ReferralCodingImpl.java   
public PatientListVo getPatientRef(CatsReferralRefVo catsReferralRef)
{
    DomainFactory factory = getDomainFactory();

    if (catsReferralRef != null && catsReferralRef.getID_CatsReferralIsNotNull())
    {
        java.util.List list = factory.find("select patient from CatsReferral cats where cats.id = :catsID", new String[]{"catsID"}, new Object[]{catsReferralRef.getID_CatsReferral()});
        if (list != null && list.size() >0)
            return PatientListVoAssembler.create((Patient)list.get(0));
        else
            return null;
    }

    return null;
}