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

项目:AvoinApotti    文件:BedInfoDialogImpl.java   
public VTERiskAssessmentWorklistVo getVTERiskAssessmentWorklistById(InpatientEpisodeRefVo inpatEpRef) 
{
    if( inpatEpRef == null )
        return null;

    DomainFactory factory = getDomainFactory();
    InpatientEpisode doInpatientEpisode  =(InpatientEpisode) factory.getDomainObject(InpatientEpisode.class, inpatEpRef.getID_InpatientEpisode());
    return VTERiskAssessmentWorklistVoAssembler.create(doInpatientEpisode);
}
项目:openMAXIMS    文件:BedInfoDialogImpl.java   
public VTERiskAssessmentWorklistVo getVTERiskAssessmentWorklistById(InpatientEpisodeRefVo inpatEpRef) 
{
    if( inpatEpRef == null )
        return null;

    DomainFactory factory = getDomainFactory();
    InpatientEpisode doInpatientEpisode  =(InpatientEpisode) factory.getDomainObject(InpatientEpisode.class, inpatEpRef.getID_InpatientEpisode());
    return VTERiskAssessmentWorklistVoAssembler.create(doInpatientEpisode);
}
项目:openmaxims-linux    文件:BedInfoDialogImpl.java   
public VTERiskAssessmentWorklistVo getVTERiskAssessmentWorklistById(InpatientEpisodeRefVo inpatEpRef) 
{
    if( inpatEpRef == null )
        return null;

    DomainFactory factory = getDomainFactory();
    InpatientEpisode doInpatientEpisode  =(InpatientEpisode) factory.getDomainObject(InpatientEpisode.class, inpatEpRef.getID_InpatientEpisode());
    return VTERiskAssessmentWorklistVoAssembler.create(doInpatientEpisode);
}
项目:AvoinApotti    文件:VTERiskAssessmentWorklistImpl.java   
public WasVTERiskAssessmentStatusChangedVo wasStatusChanged(IVTERiskAssessment episode,  VTEAsessmentStatus currentStatus)
{
    if(episode == null || episode.getId() == null)
        throw new CodingRuntimeException("Cannot check the status for a null Episode ID.");

    DomainFactory factory = getDomainFactory();
    String query = null;//WDEV-15414
    List<?> list = null;//WDEV-15414

    //WDEV-15414
    if(episode instanceof VTERiskAssessmentWorklistVo)
    {
        query = "select ie from InpatientEpisode as ie where ie.id = :EpisodeId";
    }
    //WDEV-15414
    else if(episode instanceof DischargedEpisodeForVTERiskAssessmentWorklistVo)
    {
        query = "select de from DischargedEpisode as de where de.id = :EpisodeId";
    }

    list = factory.find(query, new String[] {"EpisodeId"}, new Object[] {episode.getId()});//WDEV-15414

    IVTERiskAssessment currentEpisode = null;
    if(list != null && list.size() > 0)
    {
        if(episode instanceof VTERiskAssessmentWorklistVo)
        {
            currentEpisode = VTERiskAssessmentWorklistVoAssembler.create((InpatientEpisode) list.get(0));
        }
        else if(episode instanceof DischargedEpisodeForVTERiskAssessmentWorklistVo)
        {
            currentEpisode = DischargedEpisodeForVTERiskAssessmentWorklistVoAssembler.create((DischargedEpisode) list.get(0));
        }
    }

    if(currentEpisode == null || currentStatus == null)
        return null;

    WasVTERiskAssessmentStatusChangedVo wasChanged = new WasVTERiskAssessmentStatusChangedVo();
    if(currentStatus.equals(currentEpisode.getVTEAssessmentStatus()))
    {
        wasChanged.setWasStatusChanged(false);
        wasChanged.setVTEStatus(null);
    }
    else
    {
        wasChanged.setWasStatusChanged(true);
        wasChanged.setVTEStatus(currentEpisode.getVTEAssessmentStatus());
    }

    return wasChanged;
}
项目:openMAXIMS    文件:VTERiskAssessmentWorklistImpl.java   
public WasVTERiskAssessmentStatusChangedVo wasStatusChanged(IVTERiskAssessment episode,  VTEAsessmentStatus currentStatus)
{
    if(episode == null || episode.getId() == null)
        throw new CodingRuntimeException("Cannot check the status for a null Episode ID.");

    DomainFactory factory = getDomainFactory();
    String query = null;//WDEV-15414
    List<?> list = null;//WDEV-15414

    //WDEV-15414
    if(episode instanceof VTERiskAssessmentWorklistVo)
    {
        query = "select ie from InpatientEpisode as ie where ie.id = :EpisodeId";
    }
    //WDEV-15414
    else if(episode instanceof DischargedEpisodeForVTERiskAssessmentWorklistVo)
    {
        query = "select de from DischargedEpisode as de where de.id = :EpisodeId";
    }

    list = factory.find(query, new String[] {"EpisodeId"}, new Object[] {episode.getId()});//WDEV-15414

    IVTERiskAssessment currentEpisode = null;
    if(list != null && list.size() > 0)
    {
        if(episode instanceof VTERiskAssessmentWorklistVo)
        {
            currentEpisode = VTERiskAssessmentWorklistVoAssembler.create((InpatientEpisode) list.get(0));
        }
        else if(episode instanceof DischargedEpisodeForVTERiskAssessmentWorklistVo)
        {
            currentEpisode = DischargedEpisodeForVTERiskAssessmentWorklistVoAssembler.create((DischargedEpisode) list.get(0));
        }
    }

    if(currentEpisode == null || currentStatus == null)
        return null;

    WasVTERiskAssessmentStatusChangedVo wasChanged = new WasVTERiskAssessmentStatusChangedVo();
    if(currentStatus.equals(currentEpisode.getVTEAssessmentStatus()))
    {
        wasChanged.setWasStatusChanged(false);
        wasChanged.setVTEStatus(null);
    }
    else
    {
        wasChanged.setWasStatusChanged(true);
        wasChanged.setVTEStatus(currentEpisode.getVTEAssessmentStatus());
    }

    return wasChanged;
}
项目:openMAXIMS    文件:VTERiskAssessmentWorklistImpl.java   
public WasVTERiskAssessmentStatusChangedVo wasStatusChanged(IVTERiskAssessment episode,  VTEAsessmentStatus currentStatus)
{
    if(episode == null || episode.getId() == null)
        throw new CodingRuntimeException("Cannot check the status for a null Episode ID.");

    DomainFactory factory = getDomainFactory();
    String query = null;//WDEV-15414
    List<?> list = null;//WDEV-15414

    //WDEV-15414
    if(episode instanceof VTERiskAssessmentWorklistVo)
    {
        query = "select ie from InpatientEpisode as ie where ie.id = :EpisodeId";
    }
    //WDEV-15414
    else if(episode instanceof DischargedEpisodeForVTERiskAssessmentWorklistVo)
    {
        query = "select de from DischargedEpisode as de where de.id = :EpisodeId";
    }

    list = factory.find(query, new String[] {"EpisodeId"}, new Object[] {episode.getId()});//WDEV-15414

    IVTERiskAssessment currentEpisode = null;
    if(list != null && list.size() > 0)
    {
        if(episode instanceof VTERiskAssessmentWorklistVo)
        {
            currentEpisode = VTERiskAssessmentWorklistVoAssembler.create((InpatientEpisode) list.get(0));
        }
        else if(episode instanceof DischargedEpisodeForVTERiskAssessmentWorklistVo)
        {
            currentEpisode = DischargedEpisodeForVTERiskAssessmentWorklistVoAssembler.create((DischargedEpisode) list.get(0));
        }
    }

    if(currentEpisode == null || currentStatus == null)
        return null;

    WasVTERiskAssessmentStatusChangedVo wasChanged = new WasVTERiskAssessmentStatusChangedVo();
    if(currentStatus.equals(currentEpisode.getVTEAssessmentStatus()))
    {
        wasChanged.setWasStatusChanged(false);
        wasChanged.setVTEStatus(null);
    }
    else
    {
        wasChanged.setWasStatusChanged(true);
        wasChanged.setVTEStatus(currentEpisode.getVTEAssessmentStatus());
    }

    return wasChanged;
}
项目:openmaxims-linux    文件:VTERiskAssessmentWorklistImpl.java   
public WasVTERiskAssessmentStatusChangedVo wasStatusChanged(IVTERiskAssessment episode,  VTEAsessmentStatus currentStatus)
{
    if(episode == null || episode.getId() == null)
        throw new CodingRuntimeException("Cannot check the status for a null Episode ID.");

    DomainFactory factory = getDomainFactory();
    String query = null;//WDEV-15414
    List<?> list = null;//WDEV-15414

    //WDEV-15414
    if(episode instanceof VTERiskAssessmentWorklistVo)
    {
        query = "select ie from InpatientEpisode as ie where ie.id = :EpisodeId";
    }
    //WDEV-15414
    else if(episode instanceof DischargedEpisodeForVTERiskAssessmentWorklistVo)
    {
        query = "select de from DischargedEpisode as de where de.id = :EpisodeId";
    }

    list = factory.find(query, new String[] {"EpisodeId"}, new Object[] {episode.getId()});//WDEV-15414

    IVTERiskAssessment currentEpisode = null;
    if(list != null && list.size() > 0)
    {
        if(episode instanceof VTERiskAssessmentWorklistVo)
        {
            currentEpisode = VTERiskAssessmentWorklistVoAssembler.create((InpatientEpisode) list.get(0));
        }
        else if(episode instanceof DischargedEpisodeForVTERiskAssessmentWorklistVo)
        {
            currentEpisode = DischargedEpisodeForVTERiskAssessmentWorklistVoAssembler.create((DischargedEpisode) list.get(0));
        }
    }

    if(currentEpisode == null || currentStatus == null)
        return null;

    WasVTERiskAssessmentStatusChangedVo wasChanged = new WasVTERiskAssessmentStatusChangedVo();
    if(currentStatus.equals(currentEpisode.getVTEAssessmentStatus()))
    {
        wasChanged.setWasStatusChanged(false);
        wasChanged.setVTEStatus(null);
    }
    else
    {
        wasChanged.setWasStatusChanged(true);
        wasChanged.setVTEStatus(currentEpisode.getVTEAssessmentStatus());
    }

    return wasChanged;
}