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

项目: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   
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   
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   
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);
}
项目: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;
}
项目:openMAXIMS    文件: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;
}
项目:openMAXIMS    文件: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;
}