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

项目:AvoinApotti    文件:Logic.java   
private void addClinicalRow(ReferralAppointmentDetailsOcsOrderVo voOrder, ReferralAppointmentDetailsOrderInvestigationVo voOrderInv)
{
    GenForm.grdInvestigationsRow row = form.grdInvestigations().getRows().newRow();
    if(voOrder.getSysInfoIsNotNull() && voOrder.getSysInfo().getCreationDateTime() != null)
        row.setcolDate(voOrder.getSysInfo().getCreationDateTime().toString(false));

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

    if(voOrderInv.getSpecimenIsNotNull() && voOrderInv.getSpecimen().size()>0 && voOrderInv.getSpecimen().get(0).getSpecimenSourceIsNotNull())
        row.setcolSpecimen(voOrderInv.getSpecimen().get(0).getSpecimenSource().getText());

    if(voOrder.getResponsibleClinicianIsNotNull())
        row.setcolResp(voOrder.getResponsibleClinician().toString());

    row.setcolApptDate(voOrderInv.getAppointmentDateIsNotNull() ? voOrderInv.getAppointmentDate().toString() : null);

    if(voOrderInv.getOrdInvCurrentStatusIsNotNull() && voOrderInv.getOrdInvCurrentStatus().getOrdInvStatusIsNotNull()
            && (voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus().equals(OrderInvStatus.CANCEL_REQUEST)
                    || voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus().equals(OrderInvStatus.CANCELLED)))
        row.setBackColor(ConfigFlag.UI.CANCELLED_INVESTIGATION_ROW_COLOUR.getValue());

    row.setValue(voOrderInv);
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onGrdInvestigationsSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.htm1().setHTML("");
    if (form.grdInvestigations().getSelectedRow() != null)
    {
        form.getLocalContext().setReferralAppointmentDetailsOrderInvestigationVo(form.grdInvestigations().getSelectedRow().getValue());
        ReferralAppointmentDetailsOrderInvestigationVo vo = form.grdInvestigations().getSelectedRow().getValue();
        if(vo != null && vo.getResultDetails() != null && vo.getResultDetails().getDocumentResultDetailsIsNotNull())//  WDEV-16232
        {
            form.htm1().setHTML("<IFRAME id=\"PostFrame\" name=\"PostFrame\" width=\"100%\" height=\"100%\" frameborder=0 src='" + getFileServerURL() + form.grdInvestigations().getSelectedRow().getValue().getResultDetails().getDocumentResultDetails().getServerDocument().getFileName() +  "'></IFRAME>");//   WDEV-16232          
            form.getLocalContext().setDisplayDocument("<IFRAME id=\"PostFrame\" name=\"PostFrame\" width=\"100%\" height=\"100%\" frameborder=0 src='" + ConfigFlag.GEN.FILE_SERVER_URL.getValue() + getFileServerURL() + form.grdInvestigations().getSelectedRow().getValue().getResultDetails().getDocumentResultDetails().getName() +  "'></IFRAME>");//     WDEV-16232
        }

        form.dtimInvestigationDateTime().setValue(vo.getInvestigationDateTime());
    }
    form.btnImport().setEnabled(true);
    form.btnScan().setEnabled(true);
}
项目:AvoinApotti    文件:Logic.java   
private void updateControlsState()
{
    form.getContextMenus().OCRR.hideAllClinicalOrdersResultsGridMenuMenuItems();
    ReferralAppointmentDetailsOrderInvestigationVo tempOrderInv = null;

    if (form.grdClinicalResults().getValue()!=null && form.grdClinicalResults().getValue().getOrderInvestigationIsNotNull())
    {
        tempOrderInv=domain.getReferralAppointmentDetailsOrderInv(form.grdClinicalResults().getValue().getOrderInvestigation());
    }

    //Scan/Import visible only if not Manually Resulted
    form.getContextMenus().OCRR.getClinicalOrdersResultsGridMenuSCANIMPORTItem().setVisible(form.grdClinicalResults().getRows().size()>0 && form.grdClinicalResults().getValue() != null 
            && tempOrderInv!=null && OrderInvStatus.ORDERED.equals(tempOrderInv.getOrdInvCurrentStatus().getOrdInvStatus()));
    form.getContextMenus().OCRR.getClinicalOrdersResultsGridMenuVIEW_ORDERItem().setVisible(form.grdClinicalResults().getValue() != null);
    form.getContextMenus().OCRR.getClinicalOrdersResultsGridMenuVIEW_RESULTItem().setVisible(form.grdClinicalResults().getValue() != null && hasResults(form.grdClinicalResults().getSelectedRow()));

}
项目:AvoinApotti    文件:Logic.java   
private SpecimenWorkListItemLiteVo isPathologyAndSpecimenWorkListItemExists(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv)
{
    if(voOrderInv == null)
        throw new CodingRuntimeException("voOrderInv is null in method isPathologyAndSpecimenWorkListItemExists");

    if(voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndex().getCategoryIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndex().getCategory().equals(Category.PATHOLOGY))
    {
        SpecimenWorkListItemLiteVoCollection voCollWorkList = form.getLocalContext().getCollectedWorkListItems();
        if(voCollWorkList != null)
        {
            for (SpecimenWorkListItemLiteVo voSpecimenWorkListItem : voCollWorkList)
            {
                if(voOrderInv.getSpecimenIsNotNull())
                    if(voSpecimenWorkListItem.getSpecimenIsNotNull() && voSpecimenWorkListItem.getSpecimen().equals(voOrderInv.getSpecimen()))
                        return voSpecimenWorkListItem;
            }
        }
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private boolean clinicalInvestigationExists() {

    IReferralApptDetail iReferralApptDetail = form.getLocalContext().getReferralApptDetail();
    if(iReferralApptDetail != null && iReferralApptDetail.getIReferralApptDetailInvestigations() != null)
    {
        for(ReferralAppointmentDetailsOcsOrderVo voOrder : iReferralApptDetail.getIReferralApptDetailInvestigations())
        {
            for(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv : voOrder.getInvestigations())
            {
                if(configCategory(voOrderInv))
                    return true;
            }
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void addClinicalRow(ReferralAppointmentDetailsOcsOrderVo voOrder, ReferralAppointmentDetailsOrderInvestigationVo voOrderInv)
{
    GenForm.grdInvestigationsRow row = form.grdInvestigations().getRows().newRow();
    if(voOrder.getSysInfoIsNotNull() && voOrder.getSysInfo().getCreationDateTime() != null)
        row.setcolDate(voOrder.getSysInfo().getCreationDateTime().toString(false));

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

    if(voOrderInv.getSpecimenIsNotNull() && voOrderInv.getSpecimen().size()>0 && voOrderInv.getSpecimen().get(0).getSpecimenSourceIsNotNull())
        row.setcolSpecimen(voOrderInv.getSpecimen().get(0).getSpecimenSource().getText());

    if(voOrder.getResponsibleClinicianIsNotNull())
        row.setcolResp(voOrder.getResponsibleClinician().toString());

    row.setcolApptDate(voOrderInv.getAppointmentDateIsNotNull() ? voOrderInv.getAppointmentDate().toString() : null);

    if(voOrderInv.getOrdInvCurrentStatusIsNotNull() && voOrderInv.getOrdInvCurrentStatus().getOrdInvStatusIsNotNull()
            && (voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus().equals(OrderInvStatus.CANCEL_REQUEST)
                    || voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus().equals(OrderInvStatus.CANCELLED)))
        row.setBackColor(ConfigFlag.UI.CANCELLED_INVESTIGATION_ROW_COLOUR.getValue());

    row.setValue(voOrderInv);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdInvestigationsSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.htm1().setHTML("");
    if (form.grdInvestigations().getSelectedRow() != null)
    {
        form.getLocalContext().setReferralAppointmentDetailsOrderInvestigationVo(form.grdInvestigations().getSelectedRow().getValue());
        ReferralAppointmentDetailsOrderInvestigationVo vo = form.grdInvestigations().getSelectedRow().getValue();
        if(vo != null && vo.getResultDetails() != null && vo.getResultDetails().getDocumentResultDetailsIsNotNull())//  WDEV-16232
        {
            form.htm1().setHTML("<IFRAME id=\"PostFrame\" name=\"PostFrame\" width=\"100%\" height=\"100%\" frameborder=0 src='" + getFileServerURL() + form.grdInvestigations().getSelectedRow().getValue().getResultDetails().getDocumentResultDetails().getServerDocument().getFileName() +  "'></IFRAME>");//   WDEV-16232          
            form.getLocalContext().setDisplayDocument("<IFRAME id=\"PostFrame\" name=\"PostFrame\" width=\"100%\" height=\"100%\" frameborder=0 src='" + ConfigFlag.GEN.FILE_SERVER_URL.getValue() + getFileServerURL() + form.grdInvestigations().getSelectedRow().getValue().getResultDetails().getDocumentResultDetails().getName() +  "'></IFRAME>");//     WDEV-16232
        }

        form.dtimInvestigationDateTime().setValue(vo.getInvestigationDateTime());
    }
    form.btnImport().setEnabled(true);
    form.btnScan().setEnabled(true);
}
项目:openMAXIMS    文件:Logic.java   
private void updateControlsState()
{
    form.getContextMenus().OCRR.hideAllClinicalOrdersResultsGridMenuMenuItems();
    ReferralAppointmentDetailsOrderInvestigationVo tempOrderInv = null;

    if (form.grdClinicalResults().getValue()!=null && form.grdClinicalResults().getValue().getOrderInvestigationIsNotNull())
    {
        tempOrderInv=domain.getReferralAppointmentDetailsOrderInv(form.grdClinicalResults().getValue().getOrderInvestigation());
    }

    //Scan/Import visible only if not Manually Resulted
    form.getContextMenus().OCRR.getClinicalOrdersResultsGridMenuSCANIMPORTItem().setVisible(form.grdClinicalResults().getRows().size()>0 && form.grdClinicalResults().getValue() != null 
            && tempOrderInv!=null && OrderInvStatus.ORDERED.equals(tempOrderInv.getOrdInvCurrentStatus().getOrdInvStatus()));
    form.getContextMenus().OCRR.getClinicalOrdersResultsGridMenuVIEW_ORDERItem().setVisible(form.grdClinicalResults().getValue() != null);
    form.getContextMenus().OCRR.getClinicalOrdersResultsGridMenuVIEW_RESULTItem().setVisible(form.grdClinicalResults().getValue() != null && hasResults(form.grdClinicalResults().getSelectedRow()));

}
项目:openMAXIMS    文件:Logic.java   
private SpecimenWorkListItemLiteVo isPathologyAndSpecimenWorkListItemExists(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv)
{
    if(voOrderInv == null)
        throw new CodingRuntimeException("voOrderInv is null in method isPathologyAndSpecimenWorkListItemExists");

    if(voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndex().getCategoryIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndex().getCategory().equals(Category.PATHOLOGY))
    {
        SpecimenWorkListItemLiteVoCollection voCollWorkList = form.getLocalContext().getCollectedWorkListItems();
        if(voCollWorkList != null)
        {
            for (SpecimenWorkListItemLiteVo voSpecimenWorkListItem : voCollWorkList)
            {
                if(voOrderInv.getSpecimenIsNotNull())
                    if(voSpecimenWorkListItem.getSpecimenIsNotNull() && voSpecimenWorkListItem.getSpecimen().equals(voOrderInv.getSpecimen()))
                        return voSpecimenWorkListItem;
            }
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private boolean clinicalInvestigationExists() {

    IReferralApptDetail iReferralApptDetail = form.getLocalContext().getReferralApptDetail();
    if(iReferralApptDetail != null && iReferralApptDetail.getIReferralApptDetailInvestigations() != null)
    {
        for(ReferralAppointmentDetailsOcsOrderVo voOrder : iReferralApptDetail.getIReferralApptDetailInvestigations())
        {
            for(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv : voOrder.getInvestigations())
            {
                if(configCategory(voOrderInv))
                    return true;
            }
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void addClinicalRow(ReferralAppointmentDetailsOcsOrderVo voOrder, ReferralAppointmentDetailsOrderInvestigationVo voOrderInv)
{
    GenForm.grdInvestigationsRow row = form.grdInvestigations().getRows().newRow();
    if(voOrder.getSysInfoIsNotNull() && voOrder.getSysInfo().getCreationDateTime() != null)
        row.setcolDate(voOrder.getSysInfo().getCreationDateTime().toString(false));

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

    if(voOrderInv.getSpecimenIsNotNull() && voOrderInv.getSpecimen().size()>0 && voOrderInv.getSpecimen().get(0).getSpecimenSourceIsNotNull())
        row.setcolSpecimen(voOrderInv.getSpecimen().get(0).getSpecimenSource().getText());

    if(voOrder.getResponsibleClinicianIsNotNull())
        row.setcolResp(voOrder.getResponsibleClinician().toString());

    row.setcolApptDate(voOrderInv.getAppointmentDateIsNotNull() ? voOrderInv.getAppointmentDate().toString() : null);

    if(voOrderInv.getOrdInvCurrentStatusIsNotNull() && voOrderInv.getOrdInvCurrentStatus().getOrdInvStatusIsNotNull()
            && (voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus().equals(OrderInvStatus.CANCEL_REQUEST)
                    || voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus().equals(OrderInvStatus.CANCELLED)))
        row.setBackColor(ConfigFlag.UI.CANCELLED_INVESTIGATION_ROW_COLOUR.getValue());

    row.setValue(voOrderInv);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdInvestigationsSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.htm1().setHTML("");
    if (form.grdInvestigations().getSelectedRow() != null)
    {
        form.getLocalContext().setReferralAppointmentDetailsOrderInvestigationVo(form.grdInvestigations().getSelectedRow().getValue());
        ReferralAppointmentDetailsOrderInvestigationVo vo = form.grdInvestigations().getSelectedRow().getValue();
        if(vo != null && vo.getResultDetails() != null && vo.getResultDetails().getDocumentResultDetailsIsNotNull())//  WDEV-16232
        {
            form.htm1().setHTML("<IFRAME id=\"PostFrame\" name=\"PostFrame\" width=\"100%\" height=\"100%\" frameborder=0 src='" + getFileServerURL() + form.grdInvestigations().getSelectedRow().getValue().getResultDetails().getDocumentResultDetails().getServerDocument().getFileName() +  "'></IFRAME>");//   WDEV-16232          
            form.getLocalContext().setDisplayDocument("<IFRAME id=\"PostFrame\" name=\"PostFrame\" width=\"100%\" height=\"100%\" frameborder=0 src='" + ConfigFlag.GEN.FILE_SERVER_URL.getValue() + getFileServerURL() + form.grdInvestigations().getSelectedRow().getValue().getResultDetails().getDocumentResultDetails().getName() +  "'></IFRAME>");//     WDEV-16232
        }

        form.dtimInvestigationDateTime().setValue(vo.getInvestigationDateTime());
    }
    form.btnImport().setEnabled(true);
    form.btnScan().setEnabled(true);
}
项目:openMAXIMS    文件:Logic.java   
private void updateControlsState()
{
    form.getContextMenus().OCRR.hideAllClinicalOrdersResultsGridMenuMenuItems();
    ReferralAppointmentDetailsOrderInvestigationVo tempOrderInv = null;

    if (form.grdClinicalResults().getValue()!=null && form.grdClinicalResults().getValue().getOrderInvestigationIsNotNull())
    {
        tempOrderInv=domain.getReferralAppointmentDetailsOrderInv(form.grdClinicalResults().getValue().getOrderInvestigation());
    }

    //Scan/Import visible only if not Manually Resulted
    form.getContextMenus().OCRR.getClinicalOrdersResultsGridMenuSCANIMPORTItem().setVisible(form.grdClinicalResults().getRows().size()>0 && form.grdClinicalResults().getValue() != null 
            && tempOrderInv!=null && OrderInvStatus.ORDERED.equals(tempOrderInv.getOrdInvCurrentStatus().getOrdInvStatus()));
    form.getContextMenus().OCRR.getClinicalOrdersResultsGridMenuVIEW_ORDERItem().setVisible(form.grdClinicalResults().getValue() != null);
    form.getContextMenus().OCRR.getClinicalOrdersResultsGridMenuVIEW_RESULTItem().setVisible(form.grdClinicalResults().getValue() != null && hasResults(form.grdClinicalResults().getSelectedRow()));

}
项目:openMAXIMS    文件:Logic.java   
private SpecimenWorkListItemLiteVo isPathologyAndSpecimenWorkListItemExists(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv)
{
    if(voOrderInv == null)
        throw new CodingRuntimeException("voOrderInv is null in method isPathologyAndSpecimenWorkListItemExists");

    if(voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndex().getCategoryIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndex().getCategory().equals(Category.PATHOLOGY))
    {
        SpecimenWorkListItemLiteVoCollection voCollWorkList = form.getLocalContext().getCollectedWorkListItems();
        if(voCollWorkList != null)
        {
            for (SpecimenWorkListItemLiteVo voSpecimenWorkListItem : voCollWorkList)
            {
                if(voOrderInv.getSpecimenIsNotNull())
                    if(voSpecimenWorkListItem.getSpecimenIsNotNull() && voSpecimenWorkListItem.getSpecimen().equals(voOrderInv.getSpecimen()))
                        return voSpecimenWorkListItem;
            }
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private boolean clinicalInvestigationExists() {

    IReferralApptDetail iReferralApptDetail = form.getLocalContext().getReferralApptDetail();
    if(iReferralApptDetail != null && iReferralApptDetail.getIReferralApptDetailInvestigations() != null)
    {
        for(ReferralAppointmentDetailsOcsOrderVo voOrder : iReferralApptDetail.getIReferralApptDetailInvestigations())
        {
            for(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv : voOrder.getInvestigations())
            {
                if(configCategory(voOrderInv))
                    return true;
            }
        }
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private void addClinicalRow(ReferralAppointmentDetailsOcsOrderVo voOrder, ReferralAppointmentDetailsOrderInvestigationVo voOrderInv)
{
    GenForm.grdInvestigationsRow row = form.grdInvestigations().getRows().newRow();
    if(voOrder.getSysInfoIsNotNull() && voOrder.getSysInfo().getCreationDateTime() != null)
        row.setcolDate(voOrder.getSysInfo().getCreationDateTime().toString(false));

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

    if(voOrderInv.getSpecimenIsNotNull() && voOrderInv.getSpecimen().size()>0 && voOrderInv.getSpecimen().get(0).getSpecimenSourceIsNotNull())
        row.setcolSpecimen(voOrderInv.getSpecimen().get(0).getSpecimenSource().getText());

    if(voOrder.getResponsibleClinicianIsNotNull())
        row.setcolResp(voOrder.getResponsibleClinician().toString());

    row.setcolApptDate(voOrderInv.getAppointmentDateIsNotNull() ? voOrderInv.getAppointmentDate().toString() : null);

    if(voOrderInv.getOrdInvCurrentStatusIsNotNull() && voOrderInv.getOrdInvCurrentStatus().getOrdInvStatusIsNotNull()
            && (voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus().equals(OrderInvStatus.CANCEL_REQUEST)
                    || voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus().equals(OrderInvStatus.CANCELLED)))
        row.setBackColor(ConfigFlag.UI.CANCELLED_INVESTIGATION_ROW_COLOUR.getValue());

    row.setValue(voOrderInv);
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onGrdInvestigationsSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.htm1().setHTML("");
    if (form.grdInvestigations().getSelectedRow() != null)
    {
        form.getLocalContext().setReferralAppointmentDetailsOrderInvestigationVo(form.grdInvestigations().getSelectedRow().getValue());
        ReferralAppointmentDetailsOrderInvestigationVo vo = form.grdInvestigations().getSelectedRow().getValue();
        if(vo != null && vo.getResultDetails() != null && vo.getResultDetails().getDocumentResultDetailsIsNotNull())//  WDEV-16232
        {
            form.htm1().setHTML("<IFRAME id=\"PostFrame\" name=\"PostFrame\" width=\"100%\" height=\"100%\" frameborder=0 src='" + getFileServerURL() + form.grdInvestigations().getSelectedRow().getValue().getResultDetails().getDocumentResultDetails().getServerDocument().getFileName() +  "'></IFRAME>");//   WDEV-16232          
            form.getLocalContext().setDisplayDocument("<IFRAME id=\"PostFrame\" name=\"PostFrame\" width=\"100%\" height=\"100%\" frameborder=0 src='" + ConfigFlag.GEN.FILE_SERVER_URL.getValue() + getFileServerURL() + form.grdInvestigations().getSelectedRow().getValue().getResultDetails().getDocumentResultDetails().getName() +  "'></IFRAME>");//     WDEV-16232
        }

        form.dtimInvestigationDateTime().setValue(vo.getInvestigationDateTime());
    }
    form.btnImport().setEnabled(true);
    form.btnScan().setEnabled(true);
}
项目:openmaxims-linux    文件:Logic.java   
private void updateControlsState()
{
    form.getContextMenus().OCRR.hideAllClinicalOrdersResultsGridMenuMenuItems();
    ReferralAppointmentDetailsOrderInvestigationVo tempOrderInv = null;

    if (form.grdClinicalResults().getValue()!=null && form.grdClinicalResults().getValue().getOrderInvestigationIsNotNull())
    {
        tempOrderInv=domain.getReferralAppointmentDetailsOrderInv(form.grdClinicalResults().getValue().getOrderInvestigation());
    }

    //Scan/Import visible only if not Manually Resulted
    form.getContextMenus().OCRR.getClinicalOrdersResultsGridMenuSCANIMPORTItem().setVisible(form.grdClinicalResults().getRows().size()>0 && form.grdClinicalResults().getValue() != null 
            && tempOrderInv!=null && OrderInvStatus.ORDERED.equals(tempOrderInv.getOrdInvCurrentStatus().getOrdInvStatus()));
    form.getContextMenus().OCRR.getClinicalOrdersResultsGridMenuVIEW_ORDERItem().setVisible(form.grdClinicalResults().getValue() != null);
    form.getContextMenus().OCRR.getClinicalOrdersResultsGridMenuVIEW_RESULTItem().setVisible(form.grdClinicalResults().getValue() != null && hasResults(form.grdClinicalResults().getSelectedRow()));

}
项目:openmaxims-linux    文件:ClinicalOrdersResultsOCRRFormImpl.java   
public ReferralAppointmentDetailsOrderInvestigationVo getReferralAppointmentDetailsOrderInv(OrderInvestigationRefVo orderInvRef)
{
    if (orderInvRef==null || orderInvRef.getID_OrderInvestigation()==null)
        throw new CodingRuntimeException("OrderInvestigation parameter cannot be null !");

    DomainFactory factory = getDomainFactory();
    OrderInvestigation domainOrderInv = (OrderInvestigation)factory.getDomainObject(OrderInvestigation.class, orderInvRef.getID_OrderInvestigation());
    return ReferralAppointmentDetailsOrderInvestigationVoAssembler.create(domainOrderInv);
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws PresentationLogicException 
{

    //WDEV-16361
    if (args != null && args.length > 0 && args[0] instanceof ReferralAppointmentDetailsOrderInvestigationVo) 
    {
        form.getLocalContext().setReferralAppointmentDetailsOrderInvestigationVo((ReferralAppointmentDetailsOrderInvestigationVo) args[0]);
    }
    initialize();
}
项目:AvoinApotti    文件:Logic.java   
private boolean attachDocumentToInvestigation() {
    ReferralAppointmentDetailsOrderInvestigationVo voOrderInv = form.getLocalContext().getReferralAppointmentDetailsOrderInvestigationVo();

    ArrayList<String> screenErrors = new ArrayList<String>();

    voOrderInv = populateOrderInvestigation(voOrderInv);

    if (form.dtimInvestigationDateTime().getValue() == null )
    {
        screenErrors.add("Please enter Investigation Date/Time.");
    }

    String[] arrErrors = voOrderInv.validate();
    String[] arrScreenAndVoErrors = addScreenErrorsToVOErrors(screenErrors, arrErrors);
    if (arrScreenAndVoErrors != null && arrScreenAndVoErrors.length > 0)
    {
        engine.showErrors(arrScreenAndVoErrors);
        return false;
    }
    try {
        form.getLocalContext().setReferralAppointmentDetailsOrderInvestigationVo(domain.saveReferralAppointmentDetailsOrderInvestigationVo(voOrderInv));
    } catch (StaleObjectException e) {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        return false;
    }

    return true;        
}
项目:AvoinApotti    文件:Logic.java   
private boolean configCategory(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv) {

    ImportResultsConfigVo voImportResultsConfig = form.getLocalContext().getImportResultsConfigVo();

    for (int i = 0 ; voImportResultsConfig != null && voImportResultsConfig.getCategories() != null && i < voImportResultsConfig.getCategories().size() ; i++) //WDEV-18184
    {
        if(voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() && 
            voOrderInv.getInvestigation().getInvestigationIndex().getCategoryIsNotNull() && 
             voOrderInv.getInvestigation().getInvestigationIndex().getCategory().equals(voImportResultsConfig.getCategories().get(i)))

                return true;
    }
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean investigationIsCanceled() 
{
    if(form.grdInvestigations().getValue() instanceof ReferralAppointmentDetailsOrderInvestigationVo)
    {
        if(form.grdInvestigations().getValue().getOrdInvCurrentStatusIsNotNull() && form.grdInvestigations().getValue().getOrdInvCurrentStatus().getOrdInvStatusIsNotNull())
        {
            return form.grdInvestigations().getValue().getOrdInvCurrentStatus().getOrdInvStatus().equals(OrderInvStatus.CANCEL_REQUEST) ? true : false;
        }
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException
{

    switch (menuItemID)
    {
        case GenForm.ContextMenus.OCRRNamespace.ClinicalOrdersResultsGridMenu.SCANIMPORT:
            ReferralAppointmentDetailsOrderInvestigationVo tempReffAppDetOrderInv=null;
            if (form.grdClinicalResults().getValue()!=null && form.grdClinicalResults().getValue().getOrderInvestigationIsNotNull())
            {
                tempReffAppDetOrderInv=domain.getReferralAppointmentDetailsOrderInv(form.grdClinicalResults().getValue().getOrderInvestigation());

                String tempString = new String();
                tempString = "(" + ((tempReffAppDetOrderInv != null && tempReffAppDetOrderInv.getInvestigation() != null) ? tempReffAppDetOrderInv.getInvestigation().getID_Investigation() : "") +")";         
                form.getLocalContext().setinvIdList(tempString);
            }

            if (form.getLocalContext().getinvIdList()!=null)
            {
                form.getGlobalContext().OCRR.setReferralAppointmentDetailsOcsOrderVoCollection(domain.getRefAppDetOcsOrder(form.getLocalContext().getinvIdList(),form.getGlobalContext().Core.getPatientShort(),tempReffAppDetOrderInv));
            }

            engine.open(form.getForms().OCRR.ImportResultsDialog, new Object [] {tempReffAppDetOrderInv});

            break;
        case GenForm.ContextMenus.OCRRNamespace.ClinicalOrdersResultsGridMenu.VIEW_ORDER:
            viewSelectedOrder();
            break;

        case GenForm.ContextMenus.OCRRNamespace.ClinicalOrdersResultsGridMenu.VIEW_RESULT:
            viewResults();
            break;
    }

}
项目:AvoinApotti    文件:ClinicalOrdersResultsOCRRFormImpl.java   
public ReferralAppointmentDetailsOrderInvestigationVo getReferralAppointmentDetailsOrderInv(OrderInvestigationRefVo orderInvRef)
{
    if (orderInvRef==null || orderInvRef.getID_OrderInvestigation()==null)
        throw new CodingRuntimeException("OrderInvestigation parameter cannot be null !");

    DomainFactory factory = getDomainFactory();
    OrderInvestigation domainOrderInv = (OrderInvestigation)factory.getDomainObject(OrderInvestigation.class, orderInvRef.getID_OrderInvestigation());
    return ReferralAppointmentDetailsOrderInvestigationVoAssembler.create(domainOrderInv);
}
项目:AvoinApotti    文件:Logic.java   
private OcsPathRadResultVo getPathRadResult(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv)
{
    if(voOrderInv == null)
        return null;

    OcsPathRadResultVo voPathRadResult = new OcsPathRadResultVo();
    voPathRadResult.setOrderInvestigation(voOrderInv);
    voPathRadResult.setCategory(voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndex().getCategoryIsNotNull() ? voOrderInv.getInvestigation().getInvestigationIndex().getCategory() : null);
    voPathRadResult.setDescription(voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() ? voOrderInv.getInvestigation().getInvestigationIndex().getName() : "<not set>");

    return voPathRadResult;
}
项目:AvoinApotti    文件:Logic.java   
private DateTime getSelectedDisplayDateTime()
{
    if (form.lyrSelect().tabAppInvs().grdInvestigations().getValue() == null)
        return null;

    ReferralAppointmentDetailsOrderInvestigationVo voOrderInv = form.lyrSelect().tabAppInvs().grdInvestigations().getValue();
    return voOrderInv.getDisplayDateTime();
}
项目:AvoinApotti    文件:Logic.java   
private boolean isClinicalAndNoInterfaceAndDateIsNull(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv)
{
    if(voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndex().getCategoryIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndex().getNoInterfaceIsNotNull())
        if(voOrderInv.getInvestigation().getInvestigationIndex().getCategory().equals(Category.CLINICAL) && voOrderInv.getInvestigation().getInvestigationIndex().getNoInterface() && voOrderInv.getAppointmentDate() == null)
            return true;

    return false;

}
项目:AvoinApotti    文件:Logic.java   
private boolean isResultRejected(OrderInvestigationRefVo voInvRef) 
{
    if (voInvRef == null)
        return false;

    ReferralAppointmentDetailsOrderInvestigationVo voInvt = findInv(voInvRef);
    if (voInvt.getOrdInvCurrentStatusIsNotNull()
        && voInvt.getOrdInvCurrentStatus().getOrdInvStatusIsNotNull()
        && voInvt.getOrdInvCurrentStatus().getOrdInvStatus().equals(OrderInvStatus.REJECTED))
        return true;
    else
        return false;
}
项目:AvoinApotti    文件:Logic.java   
private ReferralAppointmentDetailsOrderInvestigationVo findInv(OrderInvestigationRefVo voInvRef)
{
    for(ReferralAppointmentDetailsOcsOrderVo voOrder : form.getLocalContext().getReferralApptDetail().getIReferralApptDetailInvestigations())
    {
        for(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv : voOrder.getInvestigations())
        {
            if (voOrderInv.getID_OrderInvestigation().equals(voInvRef.getID_OrderInvestigation()) )
                return voOrderInv;
        }
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private boolean hasInvestigationGotAResult(OrderInvestigationRefVo voInvRef) 
{
    if (voInvRef == null)
        return false;

    ReferralAppointmentDetailsOrderInvestigationVo voInvt = findInv(voInvRef);

    if(voInvt == null)
        return false;

    if(voInvt.getResultDetailsIsNotNull() && voInvt.getResultDetails().getDocumentResultDetailsIsNotNull())  // WDEV-16224
        return true;

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean configCategory(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv) {
    ImportResultsConfigVo voImportResultsConfig = form.getLocalContext().getImportResultsConfigVo();

    if(voImportResultsConfig!=null)
        for (int i = 0 ; i < voImportResultsConfig.getCategories().size() ; i++)
        {
            if(voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() && 
                voOrderInv.getInvestigation().getInvestigationIndex().getCategoryIsNotNull() && 
                 voOrderInv.getInvestigation().getInvestigationIndex().getCategory().equals(voImportResultsConfig.getCategories().get(i)))

                    return true;
        }

    return false;
}
项目:AvoinApotti    文件:ReferralAppointmentDetailsComponentImpl.java   
public void saveOrderInv(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv) throws StaleObjectException
{
    if(voOrderInv == null)
        throw new CodingRuntimeException("voOrderInv is null in method saveOrderInv");

    DomainFactory factory = getDomainFactory();
    OrderInvestigation doOrderInv = ReferralAppointmentDetailsOrderInvestigationVoAssembler.extractOrderInvestigation(factory, voOrderInv);     
    factory.save(doOrderInv);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws PresentationLogicException 
{

    //WDEV-16361
    if (args != null && args.length > 0 && args[0] instanceof ReferralAppointmentDetailsOrderInvestigationVo) 
    {
        form.getLocalContext().setReferralAppointmentDetailsOrderInvestigationVo((ReferralAppointmentDetailsOrderInvestigationVo) args[0]);
    }
    initialize();
}
项目:openMAXIMS    文件:Logic.java   
private boolean attachDocumentToInvestigation() {
    ReferralAppointmentDetailsOrderInvestigationVo voOrderInv = form.getLocalContext().getReferralAppointmentDetailsOrderInvestigationVo();

    ArrayList<String> screenErrors = new ArrayList<String>();

    voOrderInv = populateOrderInvestigation(voOrderInv);

    if (form.dtimInvestigationDateTime().getValue() == null )
    {
        screenErrors.add("Please enter Investigation Date/Time.");
    }

    String[] arrErrors = voOrderInv.validate();
    String[] arrScreenAndVoErrors = addScreenErrorsToVOErrors(screenErrors, arrErrors);
    if (arrScreenAndVoErrors != null && arrScreenAndVoErrors.length > 0)
    {
        engine.showErrors(arrScreenAndVoErrors);
        return false;
    }
    try {
        form.getLocalContext().setReferralAppointmentDetailsOrderInvestigationVo(domain.saveReferralAppointmentDetailsOrderInvestigationVo(voOrderInv));
    } catch (StaleObjectException e) {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        return false;
    }

    return true;        
}
项目:openMAXIMS    文件:Logic.java   
private boolean configCategory(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv) {

    ImportResultsConfigVo voImportResultsConfig = form.getLocalContext().getImportResultsConfigVo();

    for (int i = 0 ; voImportResultsConfig != null && voImportResultsConfig.getCategories() != null && i < voImportResultsConfig.getCategories().size() ; i++) //WDEV-18184
    {
        if(voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() && 
            voOrderInv.getInvestigation().getInvestigationIndex().getCategoryIsNotNull() && 
             voOrderInv.getInvestigation().getInvestigationIndex().getCategory().equals(voImportResultsConfig.getCategories().get(i)))

                return true;
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean investigationIsCanceled() 
{
    if(form.grdInvestigations().getValue() instanceof ReferralAppointmentDetailsOrderInvestigationVo)
    {
        if(form.grdInvestigations().getValue().getOrdInvCurrentStatusIsNotNull() && form.grdInvestigations().getValue().getOrdInvCurrentStatus().getOrdInvStatusIsNotNull())
        {
            return form.grdInvestigations().getValue().getOrdInvCurrentStatus().getOrdInvStatus().equals(OrderInvStatus.CANCEL_REQUEST) ? true : false;
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException
{

    switch (menuItemID)
    {
        case GenForm.ContextMenus.OCRRNamespace.ClinicalOrdersResultsGridMenu.SCANIMPORT:
            ReferralAppointmentDetailsOrderInvestigationVo tempReffAppDetOrderInv=null;
            if (form.grdClinicalResults().getValue()!=null && form.grdClinicalResults().getValue().getOrderInvestigationIsNotNull())
            {
                tempReffAppDetOrderInv=domain.getReferralAppointmentDetailsOrderInv(form.grdClinicalResults().getValue().getOrderInvestigation());

                String tempString = new String();
                tempString = "(" + ((tempReffAppDetOrderInv != null && tempReffAppDetOrderInv.getInvestigation() != null) ? tempReffAppDetOrderInv.getInvestigation().getID_Investigation() : "") +")";         
                form.getLocalContext().setinvIdList(tempString);
            }

            if (form.getLocalContext().getinvIdList()!=null)
            {
                form.getGlobalContext().OCRR.setReferralAppointmentDetailsOcsOrderVoCollection(domain.getRefAppDetOcsOrder(form.getLocalContext().getinvIdList(),form.getGlobalContext().Core.getPatientShort(),tempReffAppDetOrderInv));
            }

            engine.open(form.getForms().OCRR.ImportResultsDialog, new Object [] {tempReffAppDetOrderInv});

            break;
        case GenForm.ContextMenus.OCRRNamespace.ClinicalOrdersResultsGridMenu.VIEW_ORDER:
            viewSelectedOrder();
            break;

        case GenForm.ContextMenus.OCRRNamespace.ClinicalOrdersResultsGridMenu.VIEW_RESULT:
            viewResults();
            break;
    }

}
项目:openMAXIMS    文件:ClinicalOrdersResultsOCRRFormImpl.java   
public ReferralAppointmentDetailsOrderInvestigationVo getReferralAppointmentDetailsOrderInv(OrderInvestigationRefVo orderInvRef)
{
    if (orderInvRef==null || orderInvRef.getID_OrderInvestigation()==null)
        throw new CodingRuntimeException("OrderInvestigation parameter cannot be null !");

    DomainFactory factory = getDomainFactory();
    OrderInvestigation domainOrderInv = (OrderInvestigation)factory.getDomainObject(OrderInvestigation.class, orderInvRef.getID_OrderInvestigation());
    return ReferralAppointmentDetailsOrderInvestigationVoAssembler.create(domainOrderInv);
}
项目:openMAXIMS    文件:Logic.java   
private OcsPathRadResultVo getPathRadResult(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv)
{
    if(voOrderInv == null)
        return null;

    OcsPathRadResultVo voPathRadResult = new OcsPathRadResultVo();
    voPathRadResult.setOrderInvestigation(voOrderInv);
    voPathRadResult.setCategory(voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndex().getCategoryIsNotNull() ? voOrderInv.getInvestigation().getInvestigationIndex().getCategory() : null);
    voPathRadResult.setDescription(voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() ? voOrderInv.getInvestigation().getInvestigationIndex().getName() : "<not set>");

    return voPathRadResult;
}