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

项目:AvoinApotti    文件:Logic.java   
protected void onGrdResultsSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.getGlobalContext().OCRR.PathologyResults.setOrder(form.grdResults().getValue().getOrderDetails());
    PathologyOrderVo voPathologyOrder = form.grdResults().getValue();
    form.getLocalContext().setPrintingContext((voPathologyOrder != null && voPathologyOrder.getSpecimen().size() > 0) ? voPathologyOrder.getSpecimen().get(0) : null);

    if(voPathologyOrder != null && voPathologyOrder.getOrderDetailsIsNotNull() && voPathologyOrder.getOrderDetails().getPatientIsNotNull())
    {
        form.getGlobalContext().Core.setPatientShort(voPathologyOrder.getOrderDetails().getPatient());
        CatsReferralListVo voCats = domain.getCatsReferralByOrder(voPathologyOrder.getOrderDetails());
        form.getGlobalContext().RefMan.setCatsReferral(voCats);
        form.getGlobalContext().RefMan.setReferralContractTypeForPatient(voCats != null && voCats.getContractIsNotNull() ? voCats.getContract().getContractType() : null);//wdev-12682

        engine.open(form.getForms().OCRR.OrderSummaryDialog);
    }
    else
    {
        engine.showMessage("No patient associated with the selected record.");
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateOrdersGrid(PathologyOrderVoCollection coll)
{
    if (coll == null)
        return;

    form.grdResults().getRows().clear();
    coll.sort(SortOrder.DESCENDING);

    int recCount = 0;
    for (int i = 0; i < coll.size(); i++)
    {
        PathologyOrderVo result = coll.get(i);
        recCount += addOrderRow(result);
    }

    form.getLocalContext().setCount(recCount);      
    displayGridFooter();
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdResultsSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.getGlobalContext().OCRR.PathologyResults.setOrder(form.grdResults().getValue().getOrderDetails());
    PathologyOrderVo voPathologyOrder = form.grdResults().getValue();
    form.getLocalContext().setPrintingContext((voPathologyOrder != null && voPathologyOrder.getSpecimen().size() > 0) ? voPathologyOrder.getSpecimen().get(0) : null);

    if(voPathologyOrder != null && voPathologyOrder.getOrderDetailsIsNotNull() && voPathologyOrder.getOrderDetails().getPatientIsNotNull())
    {
        form.getGlobalContext().Core.setPatientShort(voPathologyOrder.getOrderDetails().getPatient());
        CatsReferralListVo voCats = domain.getCatsReferralByOrder(voPathologyOrder.getOrderDetails());
        form.getGlobalContext().RefMan.setCatsReferral(voCats);
        form.getGlobalContext().RefMan.setReferralContractTypeForPatient(voCats != null && voCats.getContractIsNotNull() ? voCats.getContract().getContractType() : null);//wdev-12682

        engine.open(form.getForms().OCRR.OrderSummaryDialog);
    }
    else
    {
        engine.showMessage("No patient associated with the selected record.");
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateOrdersGrid(PathologyOrderVoCollection coll)
{
    if (coll == null)
        return;

    form.grdResults().getRows().clear();
    coll.sort(SortOrder.DESCENDING);

    int recCount = 0;
    for (int i = 0; i < coll.size(); i++)
    {
        PathologyOrderVo result = coll.get(i);
        recCount += addOrderRow(result);
    }

    form.getLocalContext().setCount(recCount);      
    displayGridFooter();
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdResultsSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.getGlobalContext().OCRR.PathologyResults.setOrder(form.grdResults().getValue().getOrderDetails());
    PathologyOrderVo voPathologyOrder = form.grdResults().getValue();
    form.getLocalContext().setPrintingContext((voPathologyOrder != null && voPathologyOrder.getSpecimen().size() > 0) ? voPathologyOrder.getSpecimen().get(0) : null);

    if(voPathologyOrder != null && voPathologyOrder.getOrderDetailsIsNotNull() && voPathologyOrder.getOrderDetails().getPatientIsNotNull())
    {
        form.getGlobalContext().Core.setPatientShort(voPathologyOrder.getOrderDetails().getPatient());
        CatsReferralListVo voCats = domain.getCatsReferralByOrder(voPathologyOrder.getOrderDetails());
        form.getGlobalContext().RefMan.setCatsReferral(voCats);
        form.getGlobalContext().RefMan.setReferralContractTypeForPatient(voCats != null && voCats.getContractIsNotNull() ? voCats.getContract().getContractType() : null);//wdev-12682

        engine.open(form.getForms().OCRR.OrderSummaryDialog);
    }
    else
    {
        engine.showMessage("No patient associated with the selected record.");
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateOrdersGrid(PathologyOrderVoCollection coll)
{
    if (coll == null)
        return;

    form.grdResults().getRows().clear();
    coll.sort(SortOrder.DESCENDING);

    int recCount = 0;
    for (int i = 0; i < coll.size(); i++)
    {
        PathologyOrderVo result = coll.get(i);
        recCount += addOrderRow(result);
    }

    form.getLocalContext().setCount(recCount);      
    displayGridFooter();
}
项目:openmaxims-linux    文件:Logic.java   
protected void onGrdResultsSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.getGlobalContext().OCRR.PathologyResults.setOrder(form.grdResults().getValue().getOrderDetails());
    PathologyOrderVo voPathologyOrder = form.grdResults().getValue();
    form.getLocalContext().setPrintingContext((voPathologyOrder != null && voPathologyOrder.getSpecimen().size() > 0) ? voPathologyOrder.getSpecimen().get(0) : null);

    if(voPathologyOrder != null && voPathologyOrder.getOrderDetailsIsNotNull() && voPathologyOrder.getOrderDetails().getPatientIsNotNull())
    {
        form.getGlobalContext().Core.setPatientShort(voPathologyOrder.getOrderDetails().getPatient());
        CatsReferralListVo voCats = domain.getCatsReferralByOrder(voPathologyOrder.getOrderDetails());
        form.getGlobalContext().CareUk.setCatsReferral(voCats);
        form.getGlobalContext().CareUk.setReferralContractTypeForPatient(voCats != null && voCats.getContractIsNotNull() ? voCats.getContract().getContractType() : null);//wdev-12682

        engine.open(form.getForms().OCRR.OrderSummaryDialog);
    }
    else
    {
        engine.showMessage("No patient associated with the selected record.");
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateOrdersGrid(PathologyOrderVoCollection coll)
{
    if (coll == null)
        return;

    form.grdResults().getRows().clear();
    coll.sort(SortOrder.DESCENDING);

    int recCount = 0;
    for (int i = 0; i < coll.size(); i++)
    {
        PathologyOrderVo result = coll.get(i);
        recCount += addOrderRow(result);
    }

    form.getLocalContext().setCount(recCount);      
    displayGridFooter();
}
项目:AvoinApotti    文件:Logic.java   
private boolean isDFT(PathologyOrderVo result) //WDEV-16504
{
    if(result == null || result.getInvestigation() == null)
        return false;

    if(InvEventType.TIME_SERIES.equals(result.getInvestigation().getEventType()))
        return true;

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isDFT(PathologyOrderVo result) //WDEV-16504
{
    if(result == null || result.getInvestigation() == null)
        return false;

    if(InvEventType.TIME_SERIES.equals(result.getInvestigation().getEventType()))
        return true;

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isDFT(PathologyOrderVo result) //WDEV-16504
{
    if(result == null || result.getInvestigation() == null)
        return false;

    if(InvEventType.TIME_SERIES.equals(result.getInvestigation().getEventType()))
        return true;

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean isDFT(PathologyOrderVo result) //WDEV-16504
{
    if(result == null || result.getInvestigation() == null)
        return false;

    if(InvEventType.TIME_SERIES.equals(result.getInvestigation().getEventType()))
        return true;

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private int addOrderRow(PathologyOrderVo voOrderInv)
{
    if(voOrderInv == null || voOrderInv.getSpecimen() == null)
        return 0;

    //WDEV-9780
    if(form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevelsIsNotNull())
    {
        ServiceRefVo voInvService =  voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getProviderServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationService().getServiceIsNotNull() ? voOrderInv.getInvestigation().getProviderService().getLocationService().getService() : null;
        SecurityLevelConfigVo voInvSecurityLevel = voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() ? voOrderInv.getInvestigation().getInvestigationIndex().getSecurityLevel() : null;

        if(!form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels().doesInvPassSecurityCheck(voInvService, voInvSecurityLevel, false)) //WDEV-11622
            return 0;
    }       

    grdResultsRow parentRow = createOrFindSpecimenGridRow(voOrderInv);
    if(parentRow == null)
        return 0;

    grdResultsRow row = null;
    if (parentRow.getColExamName() == null)
        row = parentRow; 
    else    
        row = parentRow.getRows().newRow();

    if (voOrderInv.getDisplayDateTimeIsNotNull())
        row.setColDateTime(voOrderInv.getDisplayDateTime().toString(DateTimeFormat.STANDARD));

    if (voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull())
        row.setColExamName(voOrderInv.getInvestigation().getInvestigationIndex().getName());

    if (voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getProviderServiceIsNotNull() 
        && voOrderInv.getInvestigation().getProviderService().getLocationServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationService().getServiceIsNotNull())
        row.setColDepartment(voOrderInv.getInvestigation().getProviderService().getLocationService().getService().getServiceName());

    if (voOrderInv.getOrderDetailsIsNotNull())
        row.setColOrderingLocation(voOrderInv.getOrderDetails().getCorrectLocation());

    if (voOrderInv.getOrderDetailsIsNotNull())
        row.setColClinician(voOrderInv.getOrderDetails().getCorrectClinician());


    row.setBackColor(parentRow.getBackColor());
    row.setValue(voOrderInv);

    return 1;
}
项目:openMAXIMS    文件:Logic.java   
private int addOrderRow(PathologyOrderVo voOrderInv)
{
    if(voOrderInv == null || voOrderInv.getSpecimen() == null)
        return 0;

    //WDEV-9780
    if(form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevelsIsNotNull())
    {
        ServiceRefVo voInvService =  voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getProviderServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationService().getServiceIsNotNull() ? voOrderInv.getInvestigation().getProviderService().getLocationService().getService() : null;
        SecurityLevelConfigVo voInvSecurityLevel = voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() ? voOrderInv.getInvestigation().getInvestigationIndex().getSecurityLevel() : null;

        if(!form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels().doesInvPassSecurityCheck(voInvService, voInvSecurityLevel, false)) //WDEV-11622
            return 0;
    }       

    grdResultsRow parentRow = createOrFindSpecimenGridRow(voOrderInv);
    if(parentRow == null)
        return 0;

    grdResultsRow row = null;
    if (parentRow.getColExamName() == null)
        row = parentRow; 
    else    
        row = parentRow.getRows().newRow();

    if (voOrderInv.getDisplayDateTimeIsNotNull())
        row.setColDateTime(voOrderInv.getDisplayDateTime().toString(DateTimeFormat.STANDARD));

    if (voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull())
        row.setColExamName(voOrderInv.getInvestigation().getInvestigationIndex().getName());

    if (voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getProviderServiceIsNotNull() 
        && voOrderInv.getInvestigation().getProviderService().getLocationServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationService().getServiceIsNotNull())
        row.setColDepartment(voOrderInv.getInvestigation().getProviderService().getLocationService().getService().getServiceName());

    if (voOrderInv.getOrderDetailsIsNotNull())
        row.setColOrderingLocation(voOrderInv.getOrderDetails().getCorrectLocation());

    if (voOrderInv.getOrderDetailsIsNotNull())
        row.setColClinician(voOrderInv.getOrderDetails().getCorrectClinician());


    row.setBackColor(parentRow.getBackColor());
    row.setValue(voOrderInv);

    return 1;
}
项目:openMAXIMS    文件:Logic.java   
private int addOrderRow(PathologyOrderVo voOrderInv)
{
    if(voOrderInv == null || voOrderInv.getSpecimen() == null)
        return 0;

    //WDEV-9780
    if(form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevelsIsNotNull())
    {
        ServiceRefVo voInvService =  voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getProviderServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationService().getServiceIsNotNull() ? voOrderInv.getInvestigation().getProviderService().getLocationService().getService() : null;
        SecurityLevelConfigVo voInvSecurityLevel = voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() ? voOrderInv.getInvestigation().getInvestigationIndex().getSecurityLevel() : null;

        if(!form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels().doesInvPassSecurityCheck(voInvService, voInvSecurityLevel, false)) //WDEV-11622
            return 0;
    }       

    grdResultsRow parentRow = createOrFindSpecimenGridRow(voOrderInv);
    if(parentRow == null)
        return 0;

    grdResultsRow row = null;
    if (parentRow.getColExamName() == null)
        row = parentRow; 
    else    
        row = parentRow.getRows().newRow();

    if (voOrderInv.getDisplayDateTimeIsNotNull())
        row.setColDateTime(voOrderInv.getDisplayDateTime().toString(DateTimeFormat.STANDARD));

    if (voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull())
        row.setColExamName(voOrderInv.getInvestigation().getInvestigationIndex().getName());

    if (voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getProviderServiceIsNotNull() 
        && voOrderInv.getInvestigation().getProviderService().getLocationServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationService().getServiceIsNotNull())
        row.setColDepartment(voOrderInv.getInvestigation().getProviderService().getLocationService().getService().getServiceName());

    if (voOrderInv.getOrderDetailsIsNotNull())
        row.setColOrderingLocation(voOrderInv.getOrderDetails().getCorrectLocation());

    if (voOrderInv.getOrderDetailsIsNotNull())
        row.setColClinician(voOrderInv.getOrderDetails().getCorrectClinician());


    row.setBackColor(parentRow.getBackColor());
    row.setValue(voOrderInv);

    return 1;
}
项目:openmaxims-linux    文件:Logic.java   
private int addOrderRow(PathologyOrderVo voOrderInv)
{
    if(voOrderInv == null || voOrderInv.getSpecimen() == null)
        return 0;

    //WDEV-9780
    if(form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevelsIsNotNull())
    {
        ServiceRefVo voInvService =  voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getProviderServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationService().getServiceIsNotNull() ? voOrderInv.getInvestigation().getProviderService().getLocationService().getService() : null;
        SecurityLevelConfigVo voInvSecurityLevel = voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() ? voOrderInv.getInvestigation().getInvestigationIndex().getSecurityLevel() : null;

        if(!form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels().doesInvPassSecurityCheck(voInvService, voInvSecurityLevel, false)) //WDEV-11622
            return 0;
    }       

    grdResultsRow parentRow = createOrFindSpecimenGridRow(voOrderInv);
    if(parentRow == null)
        return 0;

    grdResultsRow row = null;
    if (parentRow.getColExamName() == null)
        row = parentRow; 
    else    
        row = parentRow.getRows().newRow();

    if (voOrderInv.getDisplayDateTimeIsNotNull())
        row.setColDateTime(voOrderInv.getDisplayDateTime().toString(DateTimeFormat.STANDARD));

    if (voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull())
        row.setColExamName(voOrderInv.getInvestigation().getInvestigationIndex().getName());

    if (voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getProviderServiceIsNotNull() 
        && voOrderInv.getInvestigation().getProviderService().getLocationServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationService().getServiceIsNotNull())
        row.setColDepartment(voOrderInv.getInvestigation().getProviderService().getLocationService().getService().getServiceName());

    if (voOrderInv.getOrderDetailsIsNotNull())
        row.setColOrderingLocation(voOrderInv.getOrderDetails().getCorrectLocation());

    if (voOrderInv.getOrderDetailsIsNotNull())
        row.setColClinician(voOrderInv.getOrderDetails().getCorrectClinician());


    row.setBackColor(parentRow.getBackColor());
    row.setValue(voOrderInv);

    return 1;
}