Java 类ims.core.vo.CancerImagingEventLiteVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private CancerImagingEventLiteVo getGenericRowImagingEvent(boolean bAll) 
{
    CancerImagingEventLiteVo voImagingEvent = new CancerImagingEventLiteVo();

    if (bAll)
    {
        voImagingEvent.setID_CancerImagingEvent(new Integer(SEARCH_ALL_ITEMS_SELECTED_ID));
        voImagingEvent.setImagingEventName(SEARCH_ALL_ITEM_SELECTED + "Modalities");
    }
    else
    {
        voImagingEvent.setID_CancerImagingEvent(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voImagingEvent.setImagingEventName(NO_CODE_ITEM_SELECTED);
    }

    return voImagingEvent;
}
项目:openMAXIMS    文件:Logic.java   
private CancerImagingEventLiteVo getGenericRowImagingEvent(boolean bAll) 
{
    CancerImagingEventLiteVo voImagingEvent = new CancerImagingEventLiteVo();

    if (bAll)
    {
        voImagingEvent.setID_CancerImagingEvent(new Integer(SEARCH_ALL_ITEMS_SELECTED_ID));
        voImagingEvent.setImagingEventName(SEARCH_ALL_ITEM_SELECTED + "Modalities");
    }
    else
    {
        voImagingEvent.setID_CancerImagingEvent(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voImagingEvent.setImagingEventName(NO_CODE_ITEM_SELECTED);
    }

    return voImagingEvent;
}
项目:openMAXIMS    文件:Logic.java   
private CancerImagingEventLiteVo getGenericRowImagingEvent(boolean bAll) 
{
    CancerImagingEventLiteVo voImagingEvent = new CancerImagingEventLiteVo();

    if (bAll)
    {
        voImagingEvent.setID_CancerImagingEvent(new Integer(SEARCH_ALL_ITEMS_SELECTED_ID));
        voImagingEvent.setImagingEventName(SEARCH_ALL_ITEM_SELECTED + "Modalities");
    }
    else
    {
        voImagingEvent.setID_CancerImagingEvent(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voImagingEvent.setImagingEventName(NO_CODE_ITEM_SELECTED);
    }

    return voImagingEvent;
}
项目:openmaxims-linux    文件:Logic.java   
private CancerImagingEventLiteVo getGenericRowImagingEvent(boolean bAll) 
{
    CancerImagingEventLiteVo voImagingEvent = new CancerImagingEventLiteVo();

    if (bAll)
    {
        voImagingEvent.setID_CancerImagingEvent(new Integer(SEARCH_ALL_ITEMS_SELECTED_ID));
        voImagingEvent.setImagingEventName(SEARCH_ALL_ITEM_SELECTED + "Modalities");
    }
    else
    {
        voImagingEvent.setID_CancerImagingEvent(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voImagingEvent.setImagingEventName(NO_CODE_ITEM_SELECTED);
    }

    return voImagingEvent;
}
项目:AvoinApotti    文件:Logic.java   
private ImagingEventsVo populateDataFromScreen(ImagingEventsVo voImagingEvent) 
{
    voImagingEvent.setHospitalSiteOfImage(form.ctn1().cmbHospitalPerformed().getValue());
    voImagingEvent.setImageDate(form.ctn1().dteImaging().getValue());
    IClinicalCodingValue voResult = form.ctn1().customControlCodingItem().getValue();

    if (voResult != null)
    {

        if (voResult.getIClinicalCodingValue() instanceof CancerImagingEventLiteVo)
        {
            voImagingEvent.setImagingEvent((CancerImagingEventLiteVo) voResult.getIClinicalCodingValue());
            voImagingEvent.setImagingEventDescription(voResult.getIClinicalCodingValueDescription());                       
        }
        else
        {
            throw new CodingRuntimeException("CancerImagingEventLiteVo expected from component");
        }
    }
    else if (voImagingEvent.getID_ImagingeventsIsNotNull() 
            && voImagingEvent.getImagingEventDescriptionIsNotNull()) 
    {
        engine.showMessage("A coding Value and Description are mandatory. Please enter one.", "Missing Coding Data", MessageButtons.OK,MessageIcon.WARNING);
        return null;
    }
    voImagingEvent.setAnatomicalSite(form.ctn1().cmbAnatomicalSite().getValue());
    voImagingEvent.setReportDate(form.ctn1().dteReport().getValue());
    voImagingEvent.setLesionSize(form.ctn1().intLesionSize().getValue());
    voImagingEvent.setAuthoringInformation(form.ctn1().customControlAuthoringInfo().getValue());
    voImagingEvent.setRequestedDate(form.ctn1().dteRequest().getValue());
    if (form.ctn1().cmbResult()!=null)
        voImagingEvent.setInvestigationResult(form.ctn1().cmbResult().getValue());
    return voImagingEvent;
}
项目:AvoinApotti    文件:Logic.java   
private CancerImagingEventLiteVo getImagingEvent(ValueObject voItem) 
{
    CancerImagingEventLiteVo voImagingEvent = null;

    if (voItem instanceof CancerImagingHotlistItemVo)
    {
        CancerImagingHotlistItemVo hotlistItem = (CancerImagingHotlistItemVo)voItem;
        voImagingEvent = hotlistItem.getCancerImagingEvent();
    }
    else if (voItem instanceof CancerImagingEventLiteVo)
        voImagingEvent = ((CancerImagingEventLiteVo)voItem);

    return voImagingEvent;
}
项目:AvoinApotti    文件:Logic.java   
private void addItemRow(Object item) 
{
    if (item instanceof AllergenVo)
    {
        AllergenVo voAllergen = (AllergenVo)item;
        form.qmbCodingItem().newRow(voAllergen, voAllergen.getAllergenName(), voAllergen.getIsActiveIsNotNull() && !voAllergen.getIsActive().booleanValue() ? Color.Gray : Color.Default);
    }

    else if (item instanceof DiagLiteVo)
    {
        DiagLiteVo voDiagnosis = (DiagLiteVo)item;
        form.qmbCodingItem().newRow(voDiagnosis, voDiagnosis.getDiagnosisName(), voDiagnosis.getIsActiveIsNotNull() && !voDiagnosis.getIsActive().booleanValue() ? Color.Gray : Color.Default);
    }                               

    else if (item instanceof ClinicalProblemShortVo)
    {
        ClinicalProblemShortVo voProblem = (ClinicalProblemShortVo)item;
        form.qmbCodingItem().newRow(voProblem, voProblem.getPCName(), voProblem.getIsActiveIsNotNull() && !voProblem.getIsActive().booleanValue() ? Color.Gray : Color.Default);                    
    }

    else if (item instanceof ProcedureLiteVo)               
    {               
        ProcedureLiteVo voProcedure = (ProcedureLiteVo)item;
        form.qmbCodingItem().newRow(voProcedure, voProcedure.getProcedureName(), voProcedure.getIsActiveIsNotNull() && !voProcedure.getIsActive().booleanValue() ? Color.Gray : Color.Default);
    }

    else if (item instanceof MedicationLiteVo)
    {
        MedicationLiteVo voMedication = (MedicationLiteVo)item;
        form.qmbCodingItem().newRow(voMedication, voMedication.getMedicationName(), voMedication.getIsActiveIsNotNull() && !voMedication.getIsActive().booleanValue() ? Color.Gray : Color.Default);
    }

    else if (item instanceof CancerImagingEventLiteVo)
    {
        CancerImagingEventLiteVo voCIE = (CancerImagingEventLiteVo)item;
        form.qmbCodingItem().newRow(voCIE, voCIE.getImagingEventName(), voCIE.getIsActiveIsNotNull() && !voCIE.getIsActive().booleanValue() ? Color.Gray : Color.Default);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void addGenericRow(boolean bAll) 
{               
    CodingItemType lkpCodingType = form.getLocalContext().getCodingLookupType();
    if (lkpCodingType.equals(CodingItemType.ALLERGY))       
    {
        AllergenVo voAllergen = getGenericRowAllergen(bAll);
        form.qmbCodingItem().newRow(voAllergen, voAllergen.getAllergenName(), Color.Red);                                               
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))
    {
        DiagnosisVo voDiagnosis = getGenericRowDiagnosis(bAll);
        form.qmbCodingItem().newRow(voDiagnosis, voDiagnosis.getDiagnosisName(), Color.Red);                        
    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))      
    {
        ClinicalProblemShortVo voProblem = getGenericRowProblem(bAll);
        form.qmbCodingItem().newRow(voProblem, voProblem.getPCName(), Color.Red);                       
    }
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        ProcedureLiteVo voProcedure = getGenericRowProcedure(bAll);
        form.qmbCodingItem().newRow(voProcedure, voProcedure.getProcedureName(), Color.Red);            
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        CancerImagingEventLiteVo voImagingEvent = getGenericRowImagingEvent(bAll);
        form.qmbCodingItem().newRow(voImagingEvent, voImagingEvent.getImagingEventName(), Color.Red);           
    }
    else if (lkpCodingType.getId() == CodingItemType.MEDICATION.getId() && (form.imbSearch().isVisible() || engine.getFormName().getID() == 123215)) //WDEV-13956
    {
        MedicationLiteVo voMedication = getGenericRowMedicationConfig(bAll);
        form.qmbCodingItem().newRow(voMedication, voMedication.getMedicationName(), Color.Red);                             
    }
}
项目:AvoinApotti    文件:Logic.java   
private void checkInstanceType(CodingItemType lkpCodingType, ValueObject vo) throws CodingRuntimeException
{
    if (lkpCodingType == null || vo == null)
        return;

    if (lkpCodingType.equals(CodingItemType.ALLERGY))               
    {
        if (!(vo instanceof AllergenVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Allergen lookup and non AllergenVo");                         
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))  
    {
        if (!(vo instanceof DiagLiteVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Diagnosis lookup and non DiagLiteVo");

    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))      
    {
        if (!(vo instanceof ClinicalProblemShortVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Problem lookup and non ClinicalProblemShortVo");
    }
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        if (!(vo instanceof ProcedureLiteVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Procedure lookup and non ProcedureLiteVo");
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        if (!(vo instanceof CancerImagingEventLiteVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Cancer Imaging Event lookup and non ProcedureLiteVo");
    }
    else if (lkpCodingType.equals(CodingItemType.MEDICATION)) 
    {
        if (!(vo instanceof MedicationLiteVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Medication lookup and non MedicationLiteVo");

    }

}
项目:openMAXIMS    文件:Logic.java   
private ImagingEventsVo populateDataFromScreen(ImagingEventsVo voImagingEvent) 
{
    voImagingEvent.setHospitalSiteOfImage(form.ctn1().cmbHospitalPerformed().getValue());
    voImagingEvent.setImageDate(form.ctn1().dteImaging().getValue());
    IClinicalCodingValue voResult = form.ctn1().customControlCodingItem().getValue();

    if (voResult != null)
    {

        if (voResult.getIClinicalCodingValue() instanceof CancerImagingEventLiteVo)
        {
            voImagingEvent.setImagingEvent((CancerImagingEventLiteVo) voResult.getIClinicalCodingValue());
            voImagingEvent.setImagingEventDescription(voResult.getIClinicalCodingValueDescription());                       
        }
        else
        {
            throw new CodingRuntimeException("CancerImagingEventLiteVo expected from component");
        }
    }
    else if (voImagingEvent.getID_ImagingeventsIsNotNull() 
            && voImagingEvent.getImagingEventDescriptionIsNotNull()) 
    {
        engine.showMessage("A coding Value and Description are mandatory. Please enter one.", "Missing Coding Data", MessageButtons.OK,MessageIcon.WARNING);
        return null;
    }
    voImagingEvent.setAnatomicalSite(form.ctn1().cmbAnatomicalSite().getValue());
    voImagingEvent.setReportDate(form.ctn1().dteReport().getValue());
    voImagingEvent.setLesionSize(form.ctn1().intLesionSize().getValue());
    voImagingEvent.setAuthoringInformation(form.ctn1().customControlAuthoringInfo().getValue());
    voImagingEvent.setRequestedDate(form.ctn1().dteRequest().getValue());
    if (form.ctn1().cmbResult()!=null)
        voImagingEvent.setInvestigationResult(form.ctn1().cmbResult().getValue());
    return voImagingEvent;
}
项目:openMAXIMS    文件:Logic.java   
private CancerImagingEventLiteVo getImagingEvent(ValueObject voItem) 
{
    CancerImagingEventLiteVo voImagingEvent = null;

    if (voItem instanceof CancerImagingHotlistItemVo)
    {
        CancerImagingHotlistItemVo hotlistItem = (CancerImagingHotlistItemVo)voItem;
        voImagingEvent = hotlistItem.getCancerImagingEvent();
    }
    else if (voItem instanceof CancerImagingEventLiteVo)
        voImagingEvent = ((CancerImagingEventLiteVo)voItem);

    return voImagingEvent;
}
项目:openMAXIMS    文件:Logic.java   
private void addGenericRow(boolean bAll) 
{               
    CodingItemType lkpCodingType = form.getLocalContext().getCodingLookupType();
    if (lkpCodingType.equals(CodingItemType.ALLERGY))       
    {
        AllergenVo voAllergen = getGenericRowAllergen(bAll);
        form.qmbCodingItem().newRow(voAllergen, voAllergen.getAllergenName(), Color.Red);                                               
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))
    {
        DiagnosisVo voDiagnosis = getGenericRowDiagnosis(bAll);
        form.qmbCodingItem().newRow(voDiagnosis, voDiagnosis.getDiagnosisName(), Color.Red);                        
    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))      
    {
        ClinicalProblemShortVo voProblem = getGenericRowProblem(bAll);
        form.qmbCodingItem().newRow(voProblem, voProblem.getPCName(), Color.Red);                       
    }
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        ProcedureLiteVo voProcedure = getGenericRowProcedure(bAll);
        form.qmbCodingItem().newRow(voProcedure, voProcedure.getProcedureName(), Color.Red);            
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        CancerImagingEventLiteVo voImagingEvent = getGenericRowImagingEvent(bAll);
        form.qmbCodingItem().newRow(voImagingEvent, voImagingEvent.getImagingEventName(), Color.Red);           
    }
    else if (lkpCodingType.getId() == CodingItemType.MEDICATION.getId() && (form.imbSearch().isVisible() || engine.getFormName().getID() == 123215)) //WDEV-13956
    {
        MedicationLiteVo voMedication = getGenericRowMedicationConfig(bAll);
        form.qmbCodingItem().newRow(voMedication, voMedication.getMedicationName(), Color.Red);                             
    }
}
项目:openMAXIMS    文件:Logic.java   
private void checkInstanceType(CodingItemType lkpCodingType, ValueObject vo) throws CodingRuntimeException
{
    if (lkpCodingType == null || vo == null)
        return;

    if (lkpCodingType.equals(CodingItemType.ALLERGY))               
    {
        if (!(vo instanceof AllergenVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Allergen lookup and non AllergenVo");                         
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))  
    {
        if (!(vo instanceof DiagLiteVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Diagnosis lookup and non DiagLiteVo");

    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))      
    {
        if (!(vo instanceof ClinicalProblemShortVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Problem lookup and non ClinicalProblemShortVo");
    }
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        if (!(vo instanceof ProcedureLiteVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Procedure lookup and non ProcedureLiteVo");
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        if (!(vo instanceof CancerImagingEventLiteVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Cancer Imaging Event lookup and non ProcedureLiteVo");
    }
    else if (lkpCodingType.equals(CodingItemType.MEDICATION)) 
    {
        if (!(vo instanceof MedicationLiteVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Medication lookup and non MedicationLiteVo");

    }

}
项目:openMAXIMS    文件:Logic.java   
private ImagingEventsVo populateDataFromScreen(ImagingEventsVo voImagingEvent) 
{
    voImagingEvent.setHospitalSiteOfImage(form.ctn1().cmbHospitalPerformed().getValue());
    voImagingEvent.setImageDate(form.ctn1().dteImaging().getValue());
    IClinicalCodingValue voResult = form.ctn1().customControlCodingItem().getValue();

    if (voResult != null)
    {

        if (voResult.getIClinicalCodingValue() instanceof CancerImagingEventLiteVo)
        {
            voImagingEvent.setImagingEvent((CancerImagingEventLiteVo) voResult.getIClinicalCodingValue());
            voImagingEvent.setImagingEventDescription(voResult.getIClinicalCodingValueDescription());                       
        }
        else
        {
            throw new CodingRuntimeException("CancerImagingEventLiteVo expected from component");
        }
    }
    else if (voImagingEvent.getID_ImagingeventsIsNotNull() 
            && voImagingEvent.getImagingEventDescriptionIsNotNull()) 
    {
        engine.showMessage("A coding Value and Description are mandatory. Please enter one.", "Missing Coding Data", MessageButtons.OK,MessageIcon.WARNING);
        return null;
    }
    voImagingEvent.setAnatomicalSite(form.ctn1().cmbAnatomicalSite().getValue());
    voImagingEvent.setReportDate(form.ctn1().dteReport().getValue());
    voImagingEvent.setLesionSize(form.ctn1().intLesionSize().getValue());
    voImagingEvent.setAuthoringInformation(form.ctn1().customControlAuthoringInfo().getValue());
    voImagingEvent.setRequestedDate(form.ctn1().dteRequest().getValue());
    if (form.ctn1().cmbResult()!=null)
        voImagingEvent.setInvestigationResult(form.ctn1().cmbResult().getValue());
    return voImagingEvent;
}
项目:openMAXIMS    文件:Logic.java   
private CancerImagingEventLiteVo getImagingEvent(ValueObject voItem) 
{
    CancerImagingEventLiteVo voImagingEvent = null;

    if (voItem instanceof CancerImagingHotlistItemVo)
    {
        CancerImagingHotlistItemVo hotlistItem = (CancerImagingHotlistItemVo)voItem;
        voImagingEvent = hotlistItem.getCancerImagingEvent();
    }
    else if (voItem instanceof CancerImagingEventLiteVo)
        voImagingEvent = ((CancerImagingEventLiteVo)voItem);

    return voImagingEvent;
}
项目:openMAXIMS    文件:Logic.java   
private void addItemRow(Object item) 
{
    if (item instanceof AllergenVo)
    {
        AllergenVo voAllergen = (AllergenVo)item;
        form.qmbCodingItem().newRow(voAllergen, voAllergen.getAllergenName(), voAllergen.getIsActiveIsNotNull() && !voAllergen.getIsActive().booleanValue() ? Color.Gray : Color.Default);
    }

    else if (item instanceof DiagLiteVo)
    {
        DiagLiteVo voDiagnosis = (DiagLiteVo)item;
        form.qmbCodingItem().newRow(voDiagnosis, voDiagnosis.getDiagnosisName(), voDiagnosis.getIsActiveIsNotNull() && !voDiagnosis.getIsActive().booleanValue() ? Color.Gray : Color.Default);
    }                               

    else if (item instanceof ClinicalProblemShortVo)
    {
        ClinicalProblemShortVo voProblem = (ClinicalProblemShortVo)item;
        form.qmbCodingItem().newRow(voProblem, voProblem.getPCName(), voProblem.getIsActiveIsNotNull() && !voProblem.getIsActive().booleanValue() ? Color.Gray : Color.Default);                    
    }

    else if (item instanceof ProcedureLiteVo)               
    {               
        ProcedureLiteVo voProcedure = (ProcedureLiteVo)item;
        form.qmbCodingItem().newRow(voProcedure, voProcedure.getProcedureName(), voProcedure.getIsActiveIsNotNull() && !voProcedure.getIsActive().booleanValue() ? Color.Gray : Color.Default);
    }

    else if (item instanceof MedicationLiteVo)
    {
        MedicationLiteVo voMedication = (MedicationLiteVo)item;
        form.qmbCodingItem().newRow(voMedication, voMedication.getMedicationName(), voMedication.getIsActiveIsNotNull() && !voMedication.getIsActive().booleanValue() ? Color.Gray : Color.Default);
    }

    else if (item instanceof CancerImagingEventLiteVo)
    {
        CancerImagingEventLiteVo voCIE = (CancerImagingEventLiteVo)item;
        form.qmbCodingItem().newRow(voCIE, voCIE.getImagingEventName(), voCIE.getIsActiveIsNotNull() && !voCIE.getIsActive().booleanValue() ? Color.Gray : Color.Default);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addGenericRow(boolean bAll) 
{               
    CodingItemType lkpCodingType = form.getLocalContext().getCodingLookupType();
    if (lkpCodingType.equals(CodingItemType.ALLERGY))       
    {
        AllergenVo voAllergen = getGenericRowAllergen(bAll);
        form.qmbCodingItem().newRow(voAllergen, voAllergen.getAllergenName(), Color.Red);                                               
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))
    {
        DiagnosisVo voDiagnosis = getGenericRowDiagnosis(bAll);
        form.qmbCodingItem().newRow(voDiagnosis, voDiagnosis.getDiagnosisName(), Color.Red);                        
    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))      
    {
        ClinicalProblemShortVo voProblem = getGenericRowProblem(bAll);
        form.qmbCodingItem().newRow(voProblem, voProblem.getPCName(), Color.Red);                       
    }
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        ProcedureLiteVo voProcedure = getGenericRowProcedure(bAll);
        form.qmbCodingItem().newRow(voProcedure, voProcedure.getProcedureName(), Color.Red);            
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        CancerImagingEventLiteVo voImagingEvent = getGenericRowImagingEvent(bAll);
        form.qmbCodingItem().newRow(voImagingEvent, voImagingEvent.getImagingEventName(), Color.Red);           
    }
    else if (lkpCodingType.getId() == CodingItemType.MEDICATION.getId() && (form.imbSearch().isVisible() || engine.getFormName().getID() == 123215)) //WDEV-13956
    {
        MedicationLiteVo voMedication = getGenericRowMedicationConfig(bAll);
        form.qmbCodingItem().newRow(voMedication, voMedication.getMedicationName(), Color.Red);                             
    }
}
项目:openMAXIMS    文件:Logic.java   
private void checkInstanceType(CodingItemType lkpCodingType, ValueObject vo) throws CodingRuntimeException
{
    if (lkpCodingType == null || vo == null)
        return;

    if (lkpCodingType.equals(CodingItemType.ALLERGY))               
    {
        if (!(vo instanceof AllergenVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Allergen lookup and non AllergenVo");                         
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))  
    {
        if (!(vo instanceof DiagLiteVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Diagnosis lookup and non DiagLiteVo");

    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))      
    {
        if (!(vo instanceof ClinicalProblemShortVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Problem lookup and non ClinicalProblemShortVo");
    }
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        if (!(vo instanceof ProcedureLiteVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Procedure lookup and non ProcedureLiteVo");
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        if (!(vo instanceof CancerImagingEventLiteVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Cancer Imaging Event lookup and non ProcedureLiteVo");
    }
    else if (lkpCodingType.equals(CodingItemType.MEDICATION)) 
    {
        if (!(vo instanceof MedicationLiteVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Medication lookup and non MedicationLiteVo");

    }

}
项目:openmaxims-linux    文件:Logic.java   
private ImagingEventsVo populateDataFromScreen(ImagingEventsVo voImagingEvent) 
{
    voImagingEvent.setHospitalSiteOfImage(form.ctn1().cmbHospitalPerformed().getValue());
    voImagingEvent.setImageDate(form.ctn1().dteImaging().getValue());
    IClinicalCodingValue voResult = form.ctn1().customControlCodingItem().getValue();

    if (voResult != null)
    {

        if (voResult.getIClinicalCodingValue() instanceof CancerImagingEventLiteVo)
        {
            voImagingEvent.setImagingEvent((CancerImagingEventLiteVo) voResult.getIClinicalCodingValue());
            voImagingEvent.setImagingEventDescription(voResult.getIClinicalCodingValueDescription());                       
        }
        else
        {
            throw new CodingRuntimeException("CancerImagingEventLiteVo expected from component");
        }
    }
    else if (voImagingEvent.getID_ImagingeventsIsNotNull() 
            && voImagingEvent.getImagingEventDescriptionIsNotNull()) 
    {
        engine.showMessage("A coding Value and Description are mandatory. Please enter one.", "Missing Coding Data", MessageButtons.OK,MessageIcon.WARNING);
        return null;
    }
    voImagingEvent.setAnatomicalSite(form.ctn1().cmbAnatomicalSite().getValue());
    voImagingEvent.setReportDate(form.ctn1().dteReport().getValue());
    voImagingEvent.setLesionSize(form.ctn1().intLesionSize().getValue());
    voImagingEvent.setAuthoringInformation(form.ctn1().customControlAuthoringInfo().getValue());
    voImagingEvent.setRequestedDate(form.ctn1().dteRequest().getValue());
    if (form.ctn1().cmbResult()!=null)
        voImagingEvent.setInvestigationResult(form.ctn1().cmbResult().getValue());
    return voImagingEvent;
}
项目:openmaxims-linux    文件:Logic.java   
private CancerImagingEventLiteVo getImagingEvent(ValueObject voItem) 
{
    CancerImagingEventLiteVo voImagingEvent = null;

    if (voItem instanceof CancerImagingHotlistItemVo)
    {
        CancerImagingHotlistItemVo hotlistItem = (CancerImagingHotlistItemVo)voItem;
        voImagingEvent = hotlistItem.getCancerImagingEvent();
    }
    else if (voItem instanceof CancerImagingEventLiteVo)
        voImagingEvent = ((CancerImagingEventLiteVo)voItem);

    return voImagingEvent;
}
项目:openmaxims-linux    文件:Logic.java   
private void addItemRow(Object item) 
{
    if (item instanceof AllergenVo)
    {
        AllergenVo voAllergen = (AllergenVo)item;
        form.qmbCodingItem().newRow(voAllergen, voAllergen.getAllergenName(), voAllergen.getIsActiveIsNotNull() && !voAllergen.getIsActive().booleanValue() ? Color.Gray : Color.Default);
    }

    else if (item instanceof DiagLiteVo)
    {
        DiagLiteVo voDiagnosis = (DiagLiteVo)item;
        form.qmbCodingItem().newRow(voDiagnosis, voDiagnosis.getDiagnosisName(), voDiagnosis.getIsActiveIsNotNull() && !voDiagnosis.getIsActive().booleanValue() ? Color.Gray : Color.Default);
    }                               

    else if (item instanceof ClinicalProblemShortVo)
    {
        ClinicalProblemShortVo voProblem = (ClinicalProblemShortVo)item;
        form.qmbCodingItem().newRow(voProblem, voProblem.getPCName(), voProblem.getIsActiveIsNotNull() && !voProblem.getIsActive().booleanValue() ? Color.Gray : Color.Default);                    
    }

    else if (item instanceof ProcedureLiteVo)               
    {               
        ProcedureLiteVo voProcedure = (ProcedureLiteVo)item;
        form.qmbCodingItem().newRow(voProcedure, voProcedure.getProcedureName(), voProcedure.getIsActiveIsNotNull() && !voProcedure.getIsActive().booleanValue() ? Color.Gray : Color.Default);
    }

    else if (item instanceof MedicationLiteVo)
    {
        MedicationLiteVo voMedication = (MedicationLiteVo)item;
        form.qmbCodingItem().newRow(voMedication, voMedication.getMedicationName(), voMedication.getIsActiveIsNotNull() && !voMedication.getIsActive().booleanValue() ? Color.Gray : Color.Default);
    }

    else if (item instanceof CancerImagingEventLiteVo)
    {
        CancerImagingEventLiteVo voCIE = (CancerImagingEventLiteVo)item;
        form.qmbCodingItem().newRow(voCIE, voCIE.getImagingEventName(), voCIE.getIsActiveIsNotNull() && !voCIE.getIsActive().booleanValue() ? Color.Gray : Color.Default);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void addGenericRow(boolean bAll) 
{               
    CodingItemType lkpCodingType = form.getLocalContext().getCodingLookupType();
    if (lkpCodingType.equals(CodingItemType.ALLERGY))       
    {
        AllergenVo voAllergen = getGenericRowAllergen(bAll);
        form.qmbCodingItem().newRow(voAllergen, voAllergen.getAllergenName(), Color.Red);                                               
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))
    {
        DiagnosisVo voDiagnosis = getGenericRowDiagnosis(bAll);
        form.qmbCodingItem().newRow(voDiagnosis, voDiagnosis.getDiagnosisName(), Color.Red);                        
    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))      
    {
        ClinicalProblemShortVo voProblem = getGenericRowProblem(bAll);
        form.qmbCodingItem().newRow(voProblem, voProblem.getPCName(), Color.Red);                       
    }
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        ProcedureLiteVo voProcedure = getGenericRowProcedure(bAll);
        form.qmbCodingItem().newRow(voProcedure, voProcedure.getProcedureName(), Color.Red);            
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        CancerImagingEventLiteVo voImagingEvent = getGenericRowImagingEvent(bAll);
        form.qmbCodingItem().newRow(voImagingEvent, voImagingEvent.getImagingEventName(), Color.Red);           
    }
    else if (lkpCodingType.getId() == CodingItemType.MEDICATION.getId() && (form.imbSearch().isVisible() || engine.getFormName().getID() == 123215)) //WDEV-13956
    {
        MedicationLiteVo voMedication = getGenericRowMedicationConfig(bAll);
        form.qmbCodingItem().newRow(voMedication, voMedication.getMedicationName(), Color.Red);                             
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void checkInstanceType(CodingItemType lkpCodingType, ValueObject vo) throws CodingRuntimeException
{
    if (lkpCodingType == null || vo == null)
        return;

    if (lkpCodingType.equals(CodingItemType.ALLERGY))               
    {
        if (!(vo instanceof AllergenVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Allergen lookup and non AllergenVo");                         
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))  
    {
        if (!(vo instanceof DiagLiteVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Diagnosis lookup and non DiagLiteVo");

    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))      
    {
        if (!(vo instanceof ClinicalProblemShortVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Problem lookup and non ClinicalProblemShortVo");
    }
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        if (!(vo instanceof ProcedureLiteVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Procedure lookup and non ProcedureLiteVo");
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        if (!(vo instanceof CancerImagingEventLiteVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Cancer Imaging Event lookup and non ProcedureLiteVo");
    }
    else if (lkpCodingType.equals(CodingItemType.MEDICATION)) 
    {
        if (!(vo instanceof MedicationLiteVo))
            throw new CodingRuntimeException("Lookup Type / Vo Mismatch : Medication lookup and non MedicationLiteVo");

    }

}
项目:AvoinApotti    文件:Logic.java   
/**
 * Interrogated the combo box associated with this control
 * @return
 */
private CodingItem getCodingItemFromVo(ValueObject voItem) 
{
    CodingItem codingItem = new CodingItem();       
    CodingItemType lkpCodingType = form.getLocalContext().getCodingLookupType(); 

    if (lkpCodingType.equals(CodingItemType.ALLERGY))
    {
        AllergenVo voAllergen = (AllergenVo)voItem;
        codingItem.iItemID = voAllergen == null ? null : voAllergen.getID_Allergen();
        codingItem.strItem = voAllergen == null ? null : voAllergen.getAllergenName();
        codingItem.voCodingItem = voAllergen;
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))
    {
        DiagLiteVo voDiagnosis = getDiagnosis(voItem);          
        codingItem.iItemID =  voDiagnosis == null ? null : voDiagnosis.getID_Diagnosis();
        codingItem.strItem = voDiagnosis == null ? null : voDiagnosis.getDiagnosisName();
        codingItem.voCodingItem = voDiagnosis;
    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM) )
    {
        ClinicalProblemShortVo voProblem = getProblem(voItem);          
        codingItem.iItemID = voProblem == null ? null : voProblem.getID_ClinicalProblem();
        codingItem.strItem = voProblem == null ? null : voProblem.getPCName();
        codingItem.voCodingItem = voProblem;
    }       
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        ProcedureLiteVo voProcedure = getProcedure(voItem);                         
        codingItem.iItemID  = voProcedure == null ? null : voProcedure.getID_Procedure();
        codingItem.strItem = voProcedure == null ? null : new String(voProcedure.getProcedureName());
        codingItem.voCodingItem = voProcedure;          
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        CancerImagingEventLiteVo voImagingEvent = getImagingEvent(voItem);                      
        codingItem.iItemID = voImagingEvent == null ? null : voImagingEvent.getID_CancerImagingEvent();
        codingItem.strItem = voImagingEvent == null ? null : new String(voImagingEvent.getImagingEventName());
        codingItem.voCodingItem = voImagingEvent;           
    }
    else if (lkpCodingType.equals(CodingItemType.MEDICATION))
    {
        MedicationLiteVo voMedication = (MedicationLiteVo)voItem;
        codingItem.iItemID = voMedication == null ? null : voMedication.getID_Medication();
        codingItem.strItem = voMedication == null ? null : voMedication.getMedicationName();
        codingItem.voCodingItem = voMedication;
    }

    return codingItem;

}
项目:AvoinApotti    文件:Logic.java   
public Boolean isAllSelected() 
{

    if (form.qmbCodingItem().getValue() == null)
        return new Boolean(false);

    Boolean bRet = new Boolean(false);
    CodingItemType lkpCodingType = form.getLocalContext().getCodingLookupType();

    if (lkpCodingType.equals(CodingItemType.ALLERGY))
    {
        AllergenVo voAllergen = (AllergenVo) form.qmbCodingItem().getValue();
        bRet = voAllergen.getID_Allergen().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE;
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))
    {
        DiagLiteVo voDiagnosis = (DiagLiteVo) form.qmbCodingItem().getValue();
        bRet = voDiagnosis.getID_Diagnosis().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE;
    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))      
    {
        ClinicalProblemShortVo voProblem = (ClinicalProblemShortVo) form.qmbCodingItem().getValue();
        bRet = voProblem.getID_ClinicalProblem().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE;             
    }
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        ProcedureLiteVo voProcedure = (ProcedureLiteVo) form.qmbCodingItem().getValue();
        bRet = voProcedure.getID_Procedure().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE; 
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        CancerImagingEventLiteVo voImagingEvent =  (CancerImagingEventLiteVo) form.qmbCodingItem().getValue();
        bRet = voImagingEvent.getID_CancerImagingEvent().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE; 
    }
    else if (lkpCodingType.equals(CodingItemType.MEDICATION))
    {
        MedicationLiteVo voMedication = (MedicationLiteVo) form.qmbCodingItem().getValue();  
        bRet = voMedication.getID_Medication().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE;
    }
    return bRet;
}
项目:AvoinApotti    文件:Logic.java   
public void removeNoSuitableTermItem(CodingItemType lkpCodingType) {
    if (lkpCodingType.equals(CodingItemType.ALLERGY))               
    {
        AllergenVo voAllergen = new AllergenVo();
        voAllergen.setID_Allergen(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voAllergen.setAllergenName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voAllergen);                         
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))  
    {
        DiagnosisVo voDiagnosis = new DiagnosisVo();
        voDiagnosis.setID_Diagnosis(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voDiagnosis.setDiagnosisName(NO_CODE_ITEM_SELECTED);            
        form.qmbCodingItem().removeRow(voDiagnosis);

    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))      
    {
        ClinicalProblemShortVo voProblemConfig = new ClinicalProblemShortVo();
        voProblemConfig.setID_ClinicalProblem(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voProblemConfig.setPCName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voProblemConfig);
    }
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        ProcedureLiteVo voProcedure = new ProcedureLiteVo();
        voProcedure.setID_Procedure(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voProcedure.setProcedureName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voProcedure);
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        CancerImagingEventLiteVo voImagingEvent = new CancerImagingEventLiteVo();
        voImagingEvent.setID_CancerImagingEvent(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voImagingEvent.setImagingEventName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voImagingEvent);
    }
    else if (lkpCodingType.equals(CodingItemType.MEDICATION)) 
    {
        MedicationLiteVo voMedicationConfig = new MedicationLiteVo();
        voMedicationConfig.setID_Medication(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voMedicationConfig.setMedicationName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voMedicationConfig);

    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Interrogated the combo box associated with this control
 * @return
 */
private CodingItem getCodingItemFromVo(ValueObject voItem) 
{
    CodingItem codingItem = new CodingItem();       
    CodingItemType lkpCodingType = form.getLocalContext().getCodingLookupType(); 

    if (lkpCodingType.equals(CodingItemType.ALLERGY))
    {
        AllergenVo voAllergen = (AllergenVo)voItem;
        codingItem.iItemID = voAllergen == null ? null : voAllergen.getID_Allergen();
        codingItem.strItem = voAllergen == null ? null : voAllergen.getAllergenName();
        codingItem.voCodingItem = voAllergen;
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))
    {
        DiagLiteVo voDiagnosis = getDiagnosis(voItem);          
        codingItem.iItemID =  voDiagnosis == null ? null : voDiagnosis.getID_Diagnosis();
        codingItem.strItem = voDiagnosis == null ? null : voDiagnosis.getDiagnosisName();
        codingItem.voCodingItem = voDiagnosis;
    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM) )
    {
        ClinicalProblemShortVo voProblem = getProblem(voItem);          
        codingItem.iItemID = voProblem == null ? null : voProblem.getID_ClinicalProblem();
        codingItem.strItem = voProblem == null ? null : voProblem.getPCName();
        codingItem.voCodingItem = voProblem;
    }       
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        ProcedureLiteVo voProcedure = getProcedure(voItem);                         
        codingItem.iItemID  = voProcedure == null ? null : voProcedure.getID_Procedure();
        codingItem.strItem = voProcedure == null ? null : new String(voProcedure.getProcedureName());
        codingItem.voCodingItem = voProcedure;          
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        CancerImagingEventLiteVo voImagingEvent = getImagingEvent(voItem);                      
        codingItem.iItemID = voImagingEvent == null ? null : voImagingEvent.getID_CancerImagingEvent();
        codingItem.strItem = voImagingEvent == null ? null : new String(voImagingEvent.getImagingEventName());
        codingItem.voCodingItem = voImagingEvent;           
    }
    else if (lkpCodingType.equals(CodingItemType.MEDICATION))
    {
        MedicationLiteVo voMedication = (MedicationLiteVo)voItem;
        codingItem.iItemID = voMedication == null ? null : voMedication.getID_Medication();
        codingItem.strItem = voMedication == null ? null : voMedication.getMedicationName();
        codingItem.voCodingItem = voMedication;
    }

    return codingItem;

}
项目:openMAXIMS    文件:Logic.java   
public Boolean isAllSelected() 
{

    if (form.qmbCodingItem().getValue() == null)
        return new Boolean(false);

    Boolean bRet = new Boolean(false);
    CodingItemType lkpCodingType = form.getLocalContext().getCodingLookupType();

    if (lkpCodingType.equals(CodingItemType.ALLERGY))
    {
        AllergenVo voAllergen = (AllergenVo) form.qmbCodingItem().getValue();
        bRet = voAllergen.getID_Allergen().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE;
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))
    {
        DiagLiteVo voDiagnosis = (DiagLiteVo) form.qmbCodingItem().getValue();
        bRet = voDiagnosis.getID_Diagnosis().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE;
    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))      
    {
        ClinicalProblemShortVo voProblem = (ClinicalProblemShortVo) form.qmbCodingItem().getValue();
        bRet = voProblem.getID_ClinicalProblem().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE;             
    }
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        ProcedureLiteVo voProcedure = (ProcedureLiteVo) form.qmbCodingItem().getValue();
        bRet = voProcedure.getID_Procedure().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE; 
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        CancerImagingEventLiteVo voImagingEvent =  (CancerImagingEventLiteVo) form.qmbCodingItem().getValue();
        bRet = voImagingEvent.getID_CancerImagingEvent().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE; 
    }
    else if (lkpCodingType.equals(CodingItemType.MEDICATION))
    {
        MedicationLiteVo voMedication = (MedicationLiteVo) form.qmbCodingItem().getValue();  
        bRet = voMedication.getID_Medication().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE;
    }
    return bRet;
}
项目:openMAXIMS    文件:Logic.java   
public void removeNoSuitableTermItem(CodingItemType lkpCodingType) {
    if (lkpCodingType.equals(CodingItemType.ALLERGY))               
    {
        AllergenVo voAllergen = new AllergenVo();
        voAllergen.setID_Allergen(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voAllergen.setAllergenName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voAllergen);                         
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))  
    {
        DiagnosisVo voDiagnosis = new DiagnosisVo();
        voDiagnosis.setID_Diagnosis(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voDiagnosis.setDiagnosisName(NO_CODE_ITEM_SELECTED);            
        form.qmbCodingItem().removeRow(voDiagnosis);

    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))      
    {
        ClinicalProblemShortVo voProblemConfig = new ClinicalProblemShortVo();
        voProblemConfig.setID_ClinicalProblem(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voProblemConfig.setPCName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voProblemConfig);
    }
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        ProcedureLiteVo voProcedure = new ProcedureLiteVo();
        voProcedure.setID_Procedure(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voProcedure.setProcedureName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voProcedure);
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        CancerImagingEventLiteVo voImagingEvent = new CancerImagingEventLiteVo();
        voImagingEvent.setID_CancerImagingEvent(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voImagingEvent.setImagingEventName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voImagingEvent);
    }
    else if (lkpCodingType.equals(CodingItemType.MEDICATION)) 
    {
        MedicationLiteVo voMedicationConfig = new MedicationLiteVo();
        voMedicationConfig.setID_Medication(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voMedicationConfig.setMedicationName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voMedicationConfig);

    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Interrogated the combo box associated with this control
 * @return
 */
private CodingItem getCodingItemFromVo(ValueObject voItem) 
{
    CodingItem codingItem = new CodingItem();       
    CodingItemType lkpCodingType = form.getLocalContext().getCodingLookupType(); 

    if (lkpCodingType.equals(CodingItemType.ALLERGY))
    {
        AllergenVo voAllergen = (AllergenVo)voItem;
        codingItem.iItemID = voAllergen == null ? null : voAllergen.getID_Allergen();
        codingItem.strItem = voAllergen == null ? null : voAllergen.getAllergenName();
        codingItem.voCodingItem = voAllergen;
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))
    {
        DiagLiteVo voDiagnosis = getDiagnosis(voItem);          
        codingItem.iItemID =  voDiagnosis == null ? null : voDiagnosis.getID_Diagnosis();
        codingItem.strItem = voDiagnosis == null ? null : voDiagnosis.getDiagnosisName();
        codingItem.voCodingItem = voDiagnosis;
    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM) )
    {
        ClinicalProblemShortVo voProblem = getProblem(voItem);          
        codingItem.iItemID = voProblem == null ? null : voProblem.getID_ClinicalProblem();
        codingItem.strItem = voProblem == null ? null : voProblem.getPCName();
        codingItem.voCodingItem = voProblem;
    }       
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        ProcedureLiteVo voProcedure = getProcedure(voItem);                         
        codingItem.iItemID  = voProcedure == null ? null : voProcedure.getID_Procedure();
        codingItem.strItem = voProcedure == null ? null : new String(voProcedure.getProcedureName());
        codingItem.voCodingItem = voProcedure;          
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        CancerImagingEventLiteVo voImagingEvent = getImagingEvent(voItem);                      
        codingItem.iItemID = voImagingEvent == null ? null : voImagingEvent.getID_CancerImagingEvent();
        codingItem.strItem = voImagingEvent == null ? null : new String(voImagingEvent.getImagingEventName());
        codingItem.voCodingItem = voImagingEvent;           
    }
    else if (lkpCodingType.equals(CodingItemType.MEDICATION))
    {
        MedicationLiteVo voMedication = (MedicationLiteVo)voItem;
        codingItem.iItemID = voMedication == null ? null : voMedication.getID_Medication();
        codingItem.strItem = voMedication == null ? null : voMedication.getMedicationName();
        codingItem.voCodingItem = voMedication;
    }

    return codingItem;

}
项目:openMAXIMS    文件:Logic.java   
public Boolean isAllSelected() 
{

    if (form.qmbCodingItem().getValue() == null)
        return new Boolean(false);

    Boolean bRet = new Boolean(false);
    CodingItemType lkpCodingType = form.getLocalContext().getCodingLookupType();

    if (lkpCodingType.equals(CodingItemType.ALLERGY))
    {
        AllergenVo voAllergen = (AllergenVo) form.qmbCodingItem().getValue();
        bRet = voAllergen.getID_Allergen().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE;
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))
    {
        DiagLiteVo voDiagnosis = (DiagLiteVo) form.qmbCodingItem().getValue();
        bRet = voDiagnosis.getID_Diagnosis().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE;
    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))      
    {
        ClinicalProblemShortVo voProblem = (ClinicalProblemShortVo) form.qmbCodingItem().getValue();
        bRet = voProblem.getID_ClinicalProblem().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE;             
    }
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        ProcedureLiteVo voProcedure = (ProcedureLiteVo) form.qmbCodingItem().getValue();
        bRet = voProcedure.getID_Procedure().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE; 
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        CancerImagingEventLiteVo voImagingEvent =  (CancerImagingEventLiteVo) form.qmbCodingItem().getValue();
        bRet = voImagingEvent.getID_CancerImagingEvent().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE; 
    }
    else if (lkpCodingType.equals(CodingItemType.MEDICATION))
    {
        MedicationLiteVo voMedication = (MedicationLiteVo) form.qmbCodingItem().getValue();  
        bRet = voMedication.getID_Medication().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE;
    }
    return bRet;
}
项目:openMAXIMS    文件:Logic.java   
public void removeNoSuitableTermItem(CodingItemType lkpCodingType) {
    if (lkpCodingType.equals(CodingItemType.ALLERGY))               
    {
        AllergenVo voAllergen = new AllergenVo();
        voAllergen.setID_Allergen(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voAllergen.setAllergenName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voAllergen);                         
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))  
    {
        DiagnosisVo voDiagnosis = new DiagnosisVo();
        voDiagnosis.setID_Diagnosis(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voDiagnosis.setDiagnosisName(NO_CODE_ITEM_SELECTED);            
        form.qmbCodingItem().removeRow(voDiagnosis);

    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))      
    {
        ClinicalProblemShortVo voProblemConfig = new ClinicalProblemShortVo();
        voProblemConfig.setID_ClinicalProblem(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voProblemConfig.setPCName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voProblemConfig);
    }
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        ProcedureLiteVo voProcedure = new ProcedureLiteVo();
        voProcedure.setID_Procedure(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voProcedure.setProcedureName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voProcedure);
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        CancerImagingEventLiteVo voImagingEvent = new CancerImagingEventLiteVo();
        voImagingEvent.setID_CancerImagingEvent(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voImagingEvent.setImagingEventName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voImagingEvent);
    }
    else if (lkpCodingType.equals(CodingItemType.MEDICATION)) 
    {
        MedicationLiteVo voMedicationConfig = new MedicationLiteVo();
        voMedicationConfig.setID_Medication(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voMedicationConfig.setMedicationName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voMedicationConfig);

    }
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * Interrogated the combo box associated with this control
 * @return
 */
private CodingItem getCodingItemFromVo(ValueObject voItem) 
{
    CodingItem codingItem = new CodingItem();       
    CodingItemType lkpCodingType = form.getLocalContext().getCodingLookupType(); 

    if (lkpCodingType.equals(CodingItemType.ALLERGY))
    {
        AllergenVo voAllergen = (AllergenVo)voItem;
        codingItem.iItemID = voAllergen == null ? null : voAllergen.getID_Allergen();
        codingItem.strItem = voAllergen == null ? null : voAllergen.getAllergenName();
        codingItem.voCodingItem = voAllergen;
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))
    {
        DiagLiteVo voDiagnosis = getDiagnosis(voItem);          
        codingItem.iItemID =  voDiagnosis == null ? null : voDiagnosis.getID_Diagnosis();
        codingItem.strItem = voDiagnosis == null ? null : voDiagnosis.getDiagnosisName();
        codingItem.voCodingItem = voDiagnosis;
    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM) )
    {
        ClinicalProblemShortVo voProblem = getProblem(voItem);          
        codingItem.iItemID = voProblem == null ? null : voProblem.getID_ClinicalProblem();
        codingItem.strItem = voProblem == null ? null : voProblem.getPCName();
        codingItem.voCodingItem = voProblem;
    }       
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        ProcedureLiteVo voProcedure = getProcedure(voItem);                         
        codingItem.iItemID  = voProcedure == null ? null : voProcedure.getID_Procedure();
        codingItem.strItem = voProcedure == null ? null : new String(voProcedure.getProcedureName());
        codingItem.voCodingItem = voProcedure;          
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        CancerImagingEventLiteVo voImagingEvent = getImagingEvent(voItem);                      
        codingItem.iItemID = voImagingEvent == null ? null : voImagingEvent.getID_CancerImagingEvent();
        codingItem.strItem = voImagingEvent == null ? null : new String(voImagingEvent.getImagingEventName());
        codingItem.voCodingItem = voImagingEvent;           
    }
    else if (lkpCodingType.equals(CodingItemType.MEDICATION))
    {
        MedicationLiteVo voMedication = (MedicationLiteVo)voItem;
        codingItem.iItemID = voMedication == null ? null : voMedication.getID_Medication();
        codingItem.strItem = voMedication == null ? null : voMedication.getMedicationName();
        codingItem.voCodingItem = voMedication;
    }

    return codingItem;

}
项目:openmaxims-linux    文件:Logic.java   
public Boolean isAllSelected() 
{

    if (form.qmbCodingItem().getValue() == null)
        return new Boolean(false);

    Boolean bRet = new Boolean(false);
    CodingItemType lkpCodingType = form.getLocalContext().getCodingLookupType();

    if (lkpCodingType.equals(CodingItemType.ALLERGY))
    {
        AllergenVo voAllergen = (AllergenVo) form.qmbCodingItem().getValue();
        bRet = voAllergen.getID_Allergen().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE;
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))
    {
        DiagLiteVo voDiagnosis = (DiagLiteVo) form.qmbCodingItem().getValue();
        bRet = voDiagnosis.getID_Diagnosis().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE;
    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))      
    {
        ClinicalProblemShortVo voProblem = (ClinicalProblemShortVo) form.qmbCodingItem().getValue();
        bRet = voProblem.getID_ClinicalProblem().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE;             
    }
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        ProcedureLiteVo voProcedure = (ProcedureLiteVo) form.qmbCodingItem().getValue();
        bRet = voProcedure.getID_Procedure().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE; 
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        CancerImagingEventLiteVo voImagingEvent =  (CancerImagingEventLiteVo) form.qmbCodingItem().getValue();
        bRet = voImagingEvent.getID_CancerImagingEvent().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE; 
    }
    else if (lkpCodingType.equals(CodingItemType.MEDICATION))
    {
        MedicationLiteVo voMedication = (MedicationLiteVo) form.qmbCodingItem().getValue();  
        bRet = voMedication.getID_Medication().intValue() == SEARCH_ALL_ITEMS_SELECTED_ID ? Boolean.TRUE : Boolean.FALSE;
    }
    return bRet;
}
项目:openmaxims-linux    文件:Logic.java   
public void removeNoSuitableTermItem(CodingItemType lkpCodingType) {
    if (lkpCodingType.equals(CodingItemType.ALLERGY))               
    {
        AllergenVo voAllergen = new AllergenVo();
        voAllergen.setID_Allergen(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voAllergen.setAllergenName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voAllergen);                         
    }
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS) || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))  
    {
        DiagnosisVo voDiagnosis = new DiagnosisVo();
        voDiagnosis.setID_Diagnosis(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voDiagnosis.setDiagnosisName(NO_CODE_ITEM_SELECTED);            
        form.qmbCodingItem().removeRow(voDiagnosis);

    }
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))      
    {
        ClinicalProblemShortVo voProblemConfig = new ClinicalProblemShortVo();
        voProblemConfig.setID_ClinicalProblem(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voProblemConfig.setPCName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voProblemConfig);
    }
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
    {
        ProcedureLiteVo voProcedure = new ProcedureLiteVo();
        voProcedure.setID_Procedure(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voProcedure.setProcedureName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voProcedure);
    }
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
    {
        CancerImagingEventLiteVo voImagingEvent = new CancerImagingEventLiteVo();
        voImagingEvent.setID_CancerImagingEvent(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voImagingEvent.setImagingEventName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voImagingEvent);
    }
    else if (lkpCodingType.equals(CodingItemType.MEDICATION)) 
    {
        MedicationLiteVo voMedicationConfig = new MedicationLiteVo();
        voMedicationConfig.setID_Medication(new Integer(NO_CODE_ITEM_SELECTED_ID));
        voMedicationConfig.setMedicationName(NO_CODE_ITEM_SELECTED);
        form.qmbCodingItem().removeRow(voMedicationConfig);

    }
}