Java 类ims.emergency.vo.domain.TrackingForSeenByHCPVoAssembler 实例源码

项目:AvoinApotti    文件:EDSeenByAndCompleteDialogImpl.java   
public ims.emergency.vo.TrackingForSeenByHCPVo getTracking(ims.emergency.vo.TrackingRefVo trackingRef)
{
    if (trackingRef == null || trackingRef.getID_Tracking() == null)
    {
        throw new CodingRuntimeException("Cannot get TrackingAreaRefVo on null Id for Tracking ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select tracking from Tracking as tracking where tracking.id = :trackingID ");

    List<?> list = factory.find(hql.toString(), new String[] { "trackingID" }, new Object[] { trackingRef.getID_Tracking() });

    if (list!=null && list.size()>0)
    {
        return TrackingForSeenByHCPVoAssembler.create((Tracking) list.get(0));
    }

    return null;
}
项目:openMAXIMS    文件:EDSeenByAndCompleteDialogImpl.java   
public ims.emergency.vo.TrackingForSeenByHCPVo getTracking(ims.emergency.vo.TrackingRefVo trackingRef)
{
    if (trackingRef == null || trackingRef.getID_Tracking() == null)
    {
        throw new CodingRuntimeException("Cannot get TrackingAreaRefVo on null Id for Tracking ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select tracking from Tracking as tracking where tracking.id = :trackingID ");

    List<?> list = factory.find(hql.toString(), new String[] { "trackingID" }, new Object[] { trackingRef.getID_Tracking() });

    if (list!=null && list.size()>0)
    {
        return TrackingForSeenByHCPVoAssembler.create((Tracking) list.get(0));
    }

    return null;
}
项目:openMAXIMS    文件:EDSeenByAndCompleteDialogImpl.java   
public void markSeenByHCPAsRIE(SeenByHCPVo seenByHCP, TrackingForSeenByHCPVo tracking, FormName formName, Integer patientId, Integer careContextId, String rieMessage) throws StaleObjectException
{
    if(seenByHCP == null)
        return;

    if(seenByHCP.getSeenByHCPNotes() != null)
    {
        for(AttendanceClinicalNotesVo note : seenByHCP.getSeenByHCPNotes())
        {
            if(note == null)
                continue;

            markAsRie(note, formName, patientId, null, careContextId, rieMessage);
        }
    }

    markAsRie(seenByHCP, formName, patientId, null, careContextId, rieMessage);

    if(tracking != null)
    {
        DomainFactory factory = getDomainFactory();
        factory.save(TrackingForSeenByHCPVoAssembler.extractTracking(factory, tracking));
    }
}
项目:openMAXIMS    文件:EDSeenByNurseAndCompleteImpl.java   
public ims.emergency.vo.TrackingForSeenByHCPVo getTracking(ims.emergency.vo.TrackingRefVo trackingRef)
{
    if (trackingRef == null || trackingRef.getID_Tracking() == null)
    {
        throw new CodingRuntimeException("Cannot get TrackingAreaRefVo on null Id for Tracking ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select tracking from Tracking as tracking where tracking.id = :trackingID ");

    List<?> list = factory.find(hql.toString(), new String[] { "trackingID" }, new Object[] { trackingRef.getID_Tracking() });

    if (list!=null && list.size()>0)
    {
        return TrackingForSeenByHCPVoAssembler.create((Tracking) list.get(0));
    }

    return null;
}
项目:openMAXIMS    文件:EDSeenByNurseAndCompleteImpl.java   
public void markSeenByHCPAsRIE(SeenByHCPVo seenByHCP, TrackingForSeenByHCPVo tracking, FormName formName, Integer patientId, Integer careContextId, String rieMessage) throws StaleObjectException
{
    if(seenByHCP == null)
        return;

    if(seenByHCP.getSeenByHCPNotes() != null)
    {
        for(AttendanceClinicalNotesVo note : seenByHCP.getSeenByHCPNotes())
        {
            if(note == null)
                continue;

            markAsRie(note, formName, patientId, null, careContextId, rieMessage);
        }
    }

    markAsRie(seenByHCP, formName, patientId, null, careContextId, rieMessage);

    if(tracking != null)
    {
        DomainFactory factory = getDomainFactory();
        factory.save(TrackingForSeenByHCPVoAssembler.extractTracking(factory, tracking));
    }
}
项目:openMAXIMS    文件:EDSeenByAndCompleteDialogImpl.java   
public ims.emergency.vo.TrackingForSeenByHCPVo getTracking(ims.emergency.vo.TrackingRefVo trackingRef)
{
    if (trackingRef == null || trackingRef.getID_Tracking() == null)
    {
        throw new CodingRuntimeException("Cannot get TrackingAreaRefVo on null Id for Tracking ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select tracking from Tracking as tracking where tracking.id = :trackingID ");

    List<?> list = factory.find(hql.toString(), new String[] { "trackingID" }, new Object[] { trackingRef.getID_Tracking() });

    if (list!=null && list.size()>0)
    {
        return TrackingForSeenByHCPVoAssembler.create((Tracking) list.get(0));
    }

    return null;
}
项目:openmaxims-linux    文件:EDSeenByAndCompleteDialogImpl.java   
public ims.emergency.vo.TrackingForSeenByHCPVo getTracking(ims.emergency.vo.TrackingRefVo trackingRef)
{
    if (trackingRef == null || trackingRef.getID_Tracking() == null)
    {
        throw new CodingRuntimeException("Cannot get TrackingAreaRefVo on null Id for Tracking ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select tracking from Tracking as tracking where tracking.id = :trackingID ");

    List<?> list = factory.find(hql.toString(), new String[] { "trackingID" }, new Object[] { trackingRef.getID_Tracking() });

    if (list!=null && list.size()>0)
    {
        return TrackingForSeenByHCPVoAssembler.create((Tracking) list.get(0));
    }

    return null;
}