Java 类ims.ocrr.vo.OrdInvXOStatusHistoryLiteVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private String generateXoStatusTooltip(OrdInvXOStatusHistoryLiteVoCollection voCollOrdInvXOStatusHistory)
{
    if(voCollOrdInvXOStatusHistory == null)
        return "";

    String tooltip = "";
    voCollOrdInvXOStatusHistory.sort(SortOrder.DESCENDING);
    StringBuffer sb = new StringBuffer();

    tooltip += "<br><b>Change Order(XO)</b>";
    for(OrdInvXOStatusHistoryLiteVo voStatus : voCollOrdInvXOStatusHistory)
    {
        sb.append("<br><b>Date changed: </b>" + voStatus.getChangeDateTime());
        sb.append("<br><b>Status reason: </b>" + (voStatus.getStatusReasonIsNotNull() ? voStatus.getStatusReason() : ""));
        tooltip += sb.toString();
    }

    return tooltip;

}
项目:AvoinApotti    文件:NewResultsImpl.java   
private NewResultsListVoCollection processResults(List<?> results)
{
    HashMap map = new HashMap();
    ClinicalImagingResults impl = (ClinicalImagingResults) getDomainImpl(ClinicalImagingResultsImpl.class);
    map = impl.getListXoHistory(map, results);

    NewResultsListVoCollection voCollResults = NewResultsListVoAssembler.createNewResultsListVoCollectionFromOrderInvestigation(results);

    if(voCollResults != null)
    {
        for(NewResultsListVo voResult : voCollResults)
        {
            if(map.containsKey(voResult.getID_OrderInvestigation()))
            {
                voResult.setOrdInvXOStatusHistory((OrdInvXOStatusHistoryLiteVoCollection) map.get(voResult.getID_OrderInvestigation()));
            }
        }
    }
    return voCollResults;
}
项目:openMAXIMS    文件:Logic.java   
private String generateXoStatusTooltip(OrdInvXOStatusHistoryLiteVoCollection voCollOrdInvXOStatusHistory)
{
    if(voCollOrdInvXOStatusHistory == null)
        return "";

    String tooltip = "";
    voCollOrdInvXOStatusHistory.sort(SortOrder.DESCENDING);
    StringBuffer sb = new StringBuffer();

    tooltip += "<br><b>Change Order(XO)</b>";
    for(OrdInvXOStatusHistoryLiteVo voStatus : voCollOrdInvXOStatusHistory)
    {
        sb.append("<br><b>Date changed: </b>" + voStatus.getChangeDateTime());
        sb.append("<br><b>Status reason: </b>" + (voStatus.getStatusReasonIsNotNull() ? voStatus.getStatusReason() : ""));
        tooltip += sb.toString();
    }

    return tooltip;

}
项目:openMAXIMS    文件:NewResultsImpl.java   
private NewResultsListVoCollection processResults(List<?> results)
{
    HashMap map = new HashMap();
    ClinicalImagingResults impl = (ClinicalImagingResults) getDomainImpl(ClinicalImagingResultsImpl.class);
    map = impl.getListXoHistory(map, results);

    NewResultsListVoCollection voCollResults = NewResultsListVoAssembler.createNewResultsListVoCollectionFromOrderInvestigation(results);

    if(voCollResults != null)
    {
        for(NewResultsListVo voResult : voCollResults)
        {
            if(map.containsKey(voResult.getID_OrderInvestigation()))
            {
                voResult.setOrdInvXOStatusHistory((OrdInvXOStatusHistoryLiteVoCollection) map.get(voResult.getID_OrderInvestigation()));
            }
        }
    }
    return voCollResults;
}
项目:openMAXIMS    文件:Logic.java   
private String generateXoStatusTooltip(OrdInvXOStatusHistoryLiteVoCollection voCollOrdInvXOStatusHistory)
{
    if(voCollOrdInvXOStatusHistory == null)
        return "";

    String tooltip = "";
    voCollOrdInvXOStatusHistory.sort(SortOrder.DESCENDING);
    StringBuffer sb = new StringBuffer();

    tooltip += "<br><b>Change Order(XO)</b>";
    for(OrdInvXOStatusHistoryLiteVo voStatus : voCollOrdInvXOStatusHistory)
    {
        sb.append("<br><b>Date changed: </b>" + voStatus.getChangeDateTime());
        sb.append("<br><b>Status reason: </b>" + (voStatus.getStatusReasonIsNotNull() ? voStatus.getStatusReason() : ""));
        tooltip += sb.toString();
    }

    return tooltip;

}
项目:openMAXIMS    文件:NewResultsImpl.java   
private NewResultsListVoCollection processResults(List<?> results)
{
    HashMap map = new HashMap();
    ClinicalImagingResults impl = (ClinicalImagingResults) getDomainImpl(ClinicalImagingResultsImpl.class);
    map = impl.getListXoHistory(map, results);

    NewResultsListVoCollection voCollResults = NewResultsListVoAssembler.createNewResultsListVoCollectionFromOrderInvestigation(results);

    if(voCollResults != null)
    {
        for(NewResultsListVo voResult : voCollResults)
        {
            if(map.containsKey(voResult.getID_OrderInvestigation()))
            {
                voResult.setOrdInvXOStatusHistory((OrdInvXOStatusHistoryLiteVoCollection) map.get(voResult.getID_OrderInvestigation()));
            }
        }
    }
    return voCollResults;
}
项目:openmaxims-linux    文件:Logic.java   
private String generateXoStatusTooltip(OrdInvXOStatusHistoryLiteVoCollection voCollOrdInvXOStatusHistory)
{
    if(voCollOrdInvXOStatusHistory == null)
        return "";

    String tooltip = "";
    voCollOrdInvXOStatusHistory.sort(SortOrder.DESCENDING);
    StringBuffer sb = new StringBuffer();

    tooltip += "<br><b>Change Order(XO)</b>";
    for(OrdInvXOStatusHistoryLiteVo voStatus : voCollOrdInvXOStatusHistory)
    {
        sb.append("<br><b>Date changed: </b>" + voStatus.getChangeDateTime());
        sb.append("<br><b>Status reason: </b>" + (voStatus.getStatusReasonIsNotNull() ? voStatus.getStatusReason() : ""));
        tooltip += sb.toString();
    }

    return tooltip;

}
项目:openmaxims-linux    文件:NewResultsImpl.java   
private NewResultsListVoCollection processResults(List<?> results)
{
    HashMap map = new HashMap();
    ClinicalImagingResults impl = (ClinicalImagingResults) getDomainImpl(ClinicalImagingResultsImpl.class);
    map = impl.getListXoHistory(map, results);

    NewResultsListVoCollection voCollResults = NewResultsListVoAssembler.createNewResultsListVoCollectionFromOrderInvestigation(results);

    if(voCollResults != null)
    {
        for(NewResultsListVo voResult : voCollResults)
        {
            if(map.containsKey(voResult.getID_OrderInvestigation()))
            {
                voResult.setOrdInvXOStatusHistory((OrdInvXOStatusHistoryLiteVoCollection) map.get(voResult.getID_OrderInvestigation()));
            }
        }
    }
    return voCollResults;
}
项目:AvoinApotti    文件:OrderSummaryImpl.java   
public OcsOrderSummaryVo getOrderSummary(OcsOrderSessionRefVo voOcsOrderRef) //WDEV-16232
{
    if(voOcsOrderRef == null || voOcsOrderRef.getID_OcsOrderSession() == null)//WDEV-16232
        throw new DomainRuntimeException("Order ref is null");

    OcsOrderSession doOcsOrder = (OcsOrderSession) getDomainFactory().getDomainObject(voOcsOrderRef);//WDEV-16232
    OcsOrderSummaryVo voOcsOrder = OcsOrderSummaryVoAssembler.create(doOcsOrder);

    //WDEV-12054
    HashMap map = new HashMap();
    List results = new ArrayList(doOcsOrder.getInvestigations()); //convert set to list
    ClinicalImagingResults impl = (ClinicalImagingResults) getDomainImpl(ClinicalImagingResultsImpl.class);
    map = impl.getListXoHistory(map, results);

    OrderInvestigationListVoCollection voCollInvs = OrderInvestigationListVoAssembler.createOrderInvestigationListVoCollectionFromOrderInvestigation(results);

    if(voCollInvs != null)
    {
        for(OrderInvestigationListVo voResult : voCollInvs)
        {
            if(map.containsKey(voResult.getID_OrderInvestigation()))
            {
                voResult.setOrdInvXOStatusHistory((OrdInvXOStatusHistoryLiteVoCollection) map.get(voResult.getID_OrderInvestigation()));
            }
        }
    }

    voOcsOrder.setInvestigations(voCollInvs);
    return voOcsOrder;      
}
项目:AvoinApotti    文件:RadiologyOrdersImpl.java   
public RadiologyOrderVoCollection listRadOrderInvestigation(ServiceRefVo serviceRefVo, LocationRefVo voLocationRef, Category category, Boolean bCompleted, Date fromDate, Date toDate)
{
    OrderInvStatus[] statuses = null;
    if (bCompleted != null
        && bCompleted)
        statuses =  new OrderInvStatus[]{OrderInvStatus.COMPLETE};
    else
        statuses =  new OrderInvStatus[]{OrderInvStatus.SENT, OrderInvStatus.ACCEPTED, OrderInvStatus.ORDERED, OrderInvStatus.CHANGED, OrderInvStatus.PROVIDER_CHANGE_REJECTED}; //WDEV-12054

    // WDEV-11643
    List results = listOrderInvestigation(serviceRefVo, voLocationRef, statuses, category, fromDate, toDate);

    //WDEV-12054
    HashMap map = new HashMap();
    ClinicalImagingResults impl = (ClinicalImagingResults) getDomainImpl(ClinicalImagingResultsImpl.class);
    map = impl.getListXoHistory(map, results);

    RadiologyOrderVoCollection voCollResults = RadiologyOrderVoAssembler.createRadiologyOrderVoCollectionFromOrderInvestigation(results).sort(SortOrder.DESCENDING);

    if(voCollResults != null)
    {
        for(RadiologyOrderVo voResult : voCollResults)
        {
            if(map.containsKey(voResult.getID_OrderInvestigation()))
            {
                voResult.setOrdInvXOStatusHistory((OrdInvXOStatusHistoryLiteVoCollection) map.get(voResult.getID_OrderInvestigation()));
            }
        }
    }

    return voCollResults;
}
项目:openMAXIMS    文件:OrderSummaryImpl.java   
public OcsOrderSummaryVo getOrderSummary(OcsOrderSessionRefVo voOcsOrderRef) //WDEV-16232
{
    if(voOcsOrderRef == null || voOcsOrderRef.getID_OcsOrderSession() == null)//WDEV-16232
        throw new DomainRuntimeException("Order ref is null");

    OcsOrderSession doOcsOrder = (OcsOrderSession) getDomainFactory().getDomainObject(voOcsOrderRef);//WDEV-16232
    OcsOrderSummaryVo voOcsOrder = OcsOrderSummaryVoAssembler.create(doOcsOrder);

    //WDEV-12054
    HashMap map = new HashMap();
    List results = new ArrayList(doOcsOrder.getInvestigations()); //convert set to list
    ClinicalImagingResults impl = (ClinicalImagingResults) getDomainImpl(ClinicalImagingResultsImpl.class);
    map = impl.getListXoHistory(map, results);

    OrderInvestigationListVoCollection voCollInvs = OrderInvestigationListVoAssembler.createOrderInvestigationListVoCollectionFromOrderInvestigation(results);

    if(voCollInvs != null)
    {
        for(OrderInvestigationListVo voResult : voCollInvs)
        {
            if(map.containsKey(voResult.getID_OrderInvestigation()))
            {
                voResult.setOrdInvXOStatusHistory((OrdInvXOStatusHistoryLiteVoCollection) map.get(voResult.getID_OrderInvestigation()));
            }
        }
    }

    voOcsOrder.setInvestigations(voCollInvs);
    return voOcsOrder;      
}
项目:openMAXIMS    文件:RadiologyOrdersImpl.java   
public RadiologyOrderVoCollection listRadOrderInvestigation(ServiceRefVo serviceRefVo, LocationRefVo voLocationRef, Category category, Boolean bCompleted, Date fromDate, Date toDate)
{
    OrderInvStatus[] statuses = null;
    if (bCompleted != null
        && bCompleted)
        statuses =  new OrderInvStatus[]{OrderInvStatus.COMPLETE};
    else
        statuses =  new OrderInvStatus[]{OrderInvStatus.SENT, OrderInvStatus.ACCEPTED, OrderInvStatus.ORDERED, OrderInvStatus.CHANGED, OrderInvStatus.PROVIDER_CHANGE_REJECTED}; //WDEV-12054

    // WDEV-11643
    List results = listOrderInvestigation(serviceRefVo, voLocationRef, statuses, category, fromDate, toDate);

    //WDEV-12054
    HashMap map = new HashMap();
    ClinicalImagingResults impl = (ClinicalImagingResults) getDomainImpl(ClinicalImagingResultsImpl.class);
    map = impl.getListXoHistory(map, results);

    RadiologyOrderVoCollection voCollResults = RadiologyOrderVoAssembler.createRadiologyOrderVoCollectionFromOrderInvestigation(results).sort(SortOrder.DESCENDING);

    if(voCollResults != null)
    {
        for(RadiologyOrderVo voResult : voCollResults)
        {
            if(map.containsKey(voResult.getID_OrderInvestigation()))
            {
                voResult.setOrdInvXOStatusHistory((OrdInvXOStatusHistoryLiteVoCollection) map.get(voResult.getID_OrderInvestigation()));
            }
        }
    }

    return voCollResults;
}
项目:openMAXIMS    文件:OrderSummaryImpl.java   
public OcsOrderSummaryVo getOrderSummary(OcsOrderSessionRefVo voOcsOrderRef) //WDEV-16232
{
    if(voOcsOrderRef == null || voOcsOrderRef.getID_OcsOrderSession() == null)//WDEV-16232
        throw new DomainRuntimeException("Order ref is null");

    OcsOrderSession doOcsOrder = (OcsOrderSession) getDomainFactory().getDomainObject(voOcsOrderRef);//WDEV-16232
    OcsOrderSummaryVo voOcsOrder = OcsOrderSummaryVoAssembler.create(doOcsOrder);

    //WDEV-12054
    HashMap map = new HashMap();
    List results = new ArrayList(doOcsOrder.getInvestigations()); //convert set to list
    ClinicalImagingResults impl = (ClinicalImagingResults) getDomainImpl(ClinicalImagingResultsImpl.class);
    map = impl.getListXoHistory(map, results);

    OrderInvestigationListVoCollection voCollInvs = OrderInvestigationListVoAssembler.createOrderInvestigationListVoCollectionFromOrderInvestigation(results);

    if(voCollInvs != null)
    {
        for(OrderInvestigationListVo voResult : voCollInvs)
        {
            if(map.containsKey(voResult.getID_OrderInvestigation()))
            {
                voResult.setOrdInvXOStatusHistory((OrdInvXOStatusHistoryLiteVoCollection) map.get(voResult.getID_OrderInvestigation()));
            }
        }
    }

    voOcsOrder.setInvestigations(voCollInvs);
    return voOcsOrder;      
}
项目:openMAXIMS    文件:RadiologyOrdersImpl.java   
public RadiologyOrderVoCollection listRadOrderInvestigation(ServiceRefVo serviceRefVo, LocationRefVo voLocationRef, Category category, Boolean bCompleted, Date fromDate, Date toDate)
{
    OrderInvStatus[] statuses = null;
    if (bCompleted != null
        && bCompleted)
        statuses =  new OrderInvStatus[]{OrderInvStatus.COMPLETE};
    else
        statuses =  new OrderInvStatus[]{OrderInvStatus.SENT, OrderInvStatus.ACCEPTED, OrderInvStatus.ORDERED, OrderInvStatus.CHANGED, OrderInvStatus.PROVIDER_CHANGE_REJECTED}; //WDEV-12054

    // WDEV-11643
    List results = listOrderInvestigation(serviceRefVo, voLocationRef, statuses, category, fromDate, toDate);

    //WDEV-12054
    HashMap map = new HashMap();
    ClinicalImagingResults impl = (ClinicalImagingResults) getDomainImpl(ClinicalImagingResultsImpl.class);
    map = impl.getListXoHistory(map, results);

    RadiologyOrderVoCollection voCollResults = RadiologyOrderVoAssembler.createRadiologyOrderVoCollectionFromOrderInvestigation(results).sort(SortOrder.DESCENDING);

    if(voCollResults != null)
    {
        for(RadiologyOrderVo voResult : voCollResults)
        {
            if(map.containsKey(voResult.getID_OrderInvestigation()))
            {
                voResult.setOrdInvXOStatusHistory((OrdInvXOStatusHistoryLiteVoCollection) map.get(voResult.getID_OrderInvestigation()));
            }
        }
    }

    return voCollResults;
}
项目:openmaxims-linux    文件:OrderSummaryImpl.java   
public OcsOrderSummaryVo getOrderSummary(OcsOrderSessionRefVo voOcsOrderRef) //WDEV-16232
{
    if(voOcsOrderRef == null || voOcsOrderRef.getID_OcsOrderSession() == null)//WDEV-16232
        throw new DomainRuntimeException("Order ref is null");

    OcsOrderSession doOcsOrder = (OcsOrderSession) getDomainFactory().getDomainObject(voOcsOrderRef);//WDEV-16232
    OcsOrderSummaryVo voOcsOrder = OcsOrderSummaryVoAssembler.create(doOcsOrder);

    //WDEV-12054
    HashMap map = new HashMap();
    List results = new ArrayList(doOcsOrder.getInvestigations()); //convert set to list
    ClinicalImagingResults impl = (ClinicalImagingResults) getDomainImpl(ClinicalImagingResultsImpl.class);
    map = impl.getListXoHistory(map, results);

    OrderInvestigationListVoCollection voCollInvs = OrderInvestigationListVoAssembler.createOrderInvestigationListVoCollectionFromOrderInvestigation(results);

    if(voCollInvs != null)
    {
        for(OrderInvestigationListVo voResult : voCollInvs)
        {
            if(map.containsKey(voResult.getID_OrderInvestigation()))
            {
                voResult.setOrdInvXOStatusHistory((OrdInvXOStatusHistoryLiteVoCollection) map.get(voResult.getID_OrderInvestigation()));
            }
        }
    }

    voOcsOrder.setInvestigations(voCollInvs);
    return voOcsOrder;      
}
项目:openmaxims-linux    文件:RadiologyOrdersImpl.java   
public RadiologyOrderVoCollection listRadOrderInvestigation(ServiceRefVo serviceRefVo, LocationRefVo voLocationRef, Category category, Boolean bCompleted, Date fromDate, Date toDate)
{
    OrderInvStatus[] statuses = null;
    if (bCompleted != null
        && bCompleted)
        statuses =  new OrderInvStatus[]{OrderInvStatus.COMPLETE};
    else
        statuses =  new OrderInvStatus[]{OrderInvStatus.SENT, OrderInvStatus.ACCEPTED, OrderInvStatus.ORDERED, OrderInvStatus.CHANGED, OrderInvStatus.PROVIDER_CHANGE_REJECTED}; //WDEV-12054

    // WDEV-11643
    List results = listOrderInvestigation(serviceRefVo, voLocationRef, statuses, category, fromDate, toDate);

    //WDEV-12054
    HashMap map = new HashMap();
    ClinicalImagingResults impl = (ClinicalImagingResults) getDomainImpl(ClinicalImagingResultsImpl.class);
    map = impl.getListXoHistory(map, results);

    RadiologyOrderVoCollection voCollResults = RadiologyOrderVoAssembler.createRadiologyOrderVoCollectionFromOrderInvestigation(results).sort(SortOrder.DESCENDING);

    if(voCollResults != null)
    {
        for(RadiologyOrderVo voResult : voCollResults)
        {
            if(map.containsKey(voResult.getID_OrderInvestigation()))
            {
                voResult.setOrdInvXOStatusHistory((OrdInvXOStatusHistoryLiteVoCollection) map.get(voResult.getID_OrderInvestigation()));
            }
        }
    }

    return voCollResults;
}