Java 类ims.clinical.vo.domain.DementiaForWorklistVoAssembler 实例源码

项目:openMAXIMS    文件:InpatientListImpl.java   
public DementiaForWorklistVo getDementia(PatientRefVo patRef) 
{
    if( patRef == null )
        return null;

DomainFactory factory = getDomainFactory();

List lst = factory.find("select d1_1 from Dementia as d1_1 left join d1_1.patient as p1_1 where (p1_1.id = :patId and d1_1.isRIE is null ) order by d1_1.systemInformation.creationDateTime desc", new String[] {"patId"}, new Object[] {patRef.getID_Patient()});
if( lst != null && lst.size() > 0)
{
    DementiaForWorklistVoCollection tempColl = DementiaForWorklistVoAssembler.createDementiaForWorklistVoCollectionFromDementia(lst);
    if( tempColl != null && tempColl.size() > 0)
        return tempColl.get(0);

}

return null;
}
项目:openMAXIMS    文件:EDischargePreViewComponentImpl.java   
public DementiaForWorklistVo getDementia(PatientRefVo patRef) 
{
    if( patRef == null )
        return null;

    DomainFactory factory = getDomainFactory();

    List lst = factory.find("select d1_1 from Dementia as d1_1 left join d1_1.patient as p1_1 where (p1_1.id = :patId and d1_1.isRIE is null ) order by d1_1.systemInformation.creationDateTime desc", new String[] {"patId"}, new Object[] {patRef.getID_Patient()});
    if( lst != null && lst.size() > 0)
    {
        DementiaForWorklistVoCollection tempColl = DementiaForWorklistVoAssembler.createDementiaForWorklistVoCollectionFromDementia(lst);
        if( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);

    }

    return null;
}
项目:AvoinApotti    文件:DementiaWorklistImpl.java   
public DementiaForWorklistVo getDementiaForWorklist(DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class, dementiaRef.getID_Dementia());

    return DementiaForWorklistVoAssembler.create(domainDementia);
}
项目:openMAXIMS    文件:DementiaWorklistImpl.java   
public DementiaForWorklistVo getDementiaForWorklist(DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class, dementiaRef.getID_Dementia());

    return DementiaForWorklistVoAssembler.create(domainDementia);
}
项目:openMAXIMS    文件:DementiaWorklistImpl.java   
public DementiaForWorklistVo getDementiaForWorklist(DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class, dementiaRef.getID_Dementia());

    return DementiaForWorklistVoAssembler.create(domainDementia);
}
项目:openmaxims-linux    文件:DementiaWorklistImpl.java   
public DementiaForWorklistVo getDementiaForWorklist(DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class, dementiaRef.getID_Dementia());

    return DementiaForWorklistVoAssembler.create(domainDementia);
}