Java 类ims.core.vo.domain.VitalSignsLiteVoAssembler 实例源码

项目:AvoinApotti    文件:VitalSignsBaselineAndAllImpl.java   
public VitalSignsLiteVoCollection listVitalSignsLiteVo(CareContextRefVo refCareContext) 
{       
    if(refCareContext == null || !refCareContext.getID_CareContextIsNotNull() )
        return null;

    DomainFactory factory = getDomainFactory();

    List vitalSignsLite =   factory.find("select v1_1 from VitalSigns as v1_1 left join v1_1.careContext as c1_1 where c1_1.id = :idCareContext",
            new String[]{"idCareContext" },
            new Object[]{ refCareContext.getID_CareContext()});

    VitalSignsLiteVoCollection voCollVitalSignsLite = VitalSignsLiteVoAssembler.createVitalSignsLiteVoCollectionFromVitalSigns(vitalSignsLite);

    if(voCollVitalSignsLite.size()>0)
    {
        voCollVitalSignsLite.sort(SortOrder.DESCENDING);
        return voCollVitalSignsLite;
    }
    else 
        return null;

}
项目:openMAXIMS    文件:VitalSignsBaselineAndAllImpl.java   
public VitalSignsLiteVoCollection listVitalSignsLiteVo(CareContextRefVo refCareContext) 
{       
    if(refCareContext == null || !refCareContext.getID_CareContextIsNotNull() )
        return null;

    DomainFactory factory = getDomainFactory();

    List vitalSignsLite =   factory.find("select v1_1 from VitalSigns as v1_1 left join v1_1.careContext as c1_1 where c1_1.id = :idCareContext",
            new String[]{"idCareContext" },
            new Object[]{ refCareContext.getID_CareContext()});

    VitalSignsLiteVoCollection voCollVitalSignsLite = VitalSignsLiteVoAssembler.createVitalSignsLiteVoCollectionFromVitalSigns(vitalSignsLite);

    if(voCollVitalSignsLite.size()>0)
    {
        voCollVitalSignsLite.sort(SortOrder.DESCENDING);
        return voCollVitalSignsLite;
    }
    else 
        return null;

}
项目:openMAXIMS    文件:VitalSignsBaselineAndAllImpl.java   
public VitalSignsLiteVoCollection listVitalSignsLiteVo(CareContextRefVo refCareContext) 
{       
    if(refCareContext == null || !refCareContext.getID_CareContextIsNotNull() )
        return null;

    DomainFactory factory = getDomainFactory();

    List vitalSignsLite =   factory.find("select v1_1 from VitalSigns as v1_1 left join v1_1.careContext as c1_1 where c1_1.id = :idCareContext",
            new String[]{"idCareContext" },
            new Object[]{ refCareContext.getID_CareContext()});

    VitalSignsLiteVoCollection voCollVitalSignsLite = VitalSignsLiteVoAssembler.createVitalSignsLiteVoCollectionFromVitalSigns(vitalSignsLite);

    if(voCollVitalSignsLite.size()>0)
    {
        voCollVitalSignsLite.sort(SortOrder.DESCENDING);
        return voCollVitalSignsLite;
    }
    else 
        return null;

}
项目:openmaxims-linux    文件:VitalSignsBaselineAndAllImpl.java   
public VitalSignsLiteVoCollection listVitalSignsLiteVo(CareContextRefVo refCareContext) 
{       
    if(refCareContext == null || !refCareContext.getID_CareContextIsNotNull() )
        return null;

    DomainFactory factory = getDomainFactory();

    List vitalSignsLite =   factory.find("select v1_1 from VitalSigns as v1_1 left join v1_1.careContext as c1_1 where c1_1.id = :idCareContext",
            new String[]{"idCareContext" },
            new Object[]{ refCareContext.getID_CareContext()});

    VitalSignsLiteVoCollection voCollVitalSignsLite = VitalSignsLiteVoAssembler.createVitalSignsLiteVoCollectionFromVitalSigns(vitalSignsLite);

    if(voCollVitalSignsLite.size()>0)
    {
        voCollVitalSignsLite.sort(SortOrder.DESCENDING);
        return voCollVitalSignsLite;
    }
    else 
        return null;

}