Java 类ims.core.vo.domain.CancerImagingEventLiteVoAssembler 实例源码

项目:AvoinApotti    文件:ClinicalCodingImpl.java   
public CancerImagingEventLiteVoCollection listHotlistImagingEventsLite(String name, Specialty specialty) throws DomainInterfaceException 
{
    if(name == null)
        throw new DomainRuntimeException("Invalid Search criteria. Cancer Imagaing Event name filter must be supplied.");

    if(specialty == null)
        throw new DomainRuntimeException("Invalid Search criteria. Specialty must be supplied.");

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("select distinct cieItem from CancerImagingHotlist as cie left join cie.hotListItem as cieItem left join cieItem.cancerImagingEvent as cieEvent left join cieEvent.keywords as kw "); 

    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where cieEvent.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    hql.append(" and cie.specialty = :spec");
    names.add("spec");
    values.add(getDomLookup(specialty));            

    List hits = Keywords.searchByKeywords(factory, name, hql.toString(), names, values);        

    List ret = new ArrayList();     
    for (int i = 0; i < hits.size(); i++)
    {
        ret.add(((CancerImagingHotlistItem)hits.get(i)).getCancerImagingEvent());
    }

    return CancerImagingEventLiteVoAssembler.createCancerImagingEventLiteVoCollectionFromCancerImagingEvent(ret);
}
项目:AvoinApotti    文件:ClinicalCodingImpl.java   
public CancerImagingEventLiteVoCollection listImagingEventsLite(String name) throws DomainInterfaceException 
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from CancerImagingEvent cie join cie.keywords as kw "); 
    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where cie.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    return CancerImagingEventLiteVoAssembler.createCancerImagingEventLiteVoCollectionFromCancerImagingEvent(Keywords.searchByKeywords(factory, name, hql.toString(), names, values));           
}
项目:openMAXIMS    文件:ClinicalCodingImpl.java   
public CancerImagingEventLiteVoCollection listHotlistImagingEventsLite(String name, Specialty specialty) throws DomainInterfaceException 
{
    if(name == null)
        throw new DomainRuntimeException("Invalid Search criteria. Cancer Imagaing Event name filter must be supplied.");

    if(specialty == null)
        throw new DomainRuntimeException("Invalid Search criteria. Specialty must be supplied.");

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("select distinct cieItem from CancerImagingHotlist as cie left join cie.hotListItem as cieItem left join cieItem.cancerImagingEvent as cieEvent left join cieEvent.keywords as kw "); 

    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where cieEvent.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    hql.append(" and cie.specialty = :spec");
    names.add("spec");
    values.add(getDomLookup(specialty));            

    List hits = Keywords.searchByKeywords(factory, name, hql.toString(), names, values);        

    List ret = new ArrayList();     
    for (int i = 0; i < hits.size(); i++)
    {
        ret.add(((CancerImagingHotlistItem)hits.get(i)).getCancerImagingEvent());
    }

    return CancerImagingEventLiteVoAssembler.createCancerImagingEventLiteVoCollectionFromCancerImagingEvent(ret);
}
项目:openMAXIMS    文件:ClinicalCodingImpl.java   
public CancerImagingEventLiteVoCollection listImagingEventsLite(String name) throws DomainInterfaceException 
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from CancerImagingEvent cie join cie.keywords as kw "); 
    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where cie.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    return CancerImagingEventLiteVoAssembler.createCancerImagingEventLiteVoCollectionFromCancerImagingEvent(Keywords.searchByKeywords(factory, name, hql.toString(), names, values));           
}
项目:openMAXIMS    文件:ClinicalCodingImpl.java   
public CancerImagingEventLiteVoCollection listHotlistImagingEventsLite(String name, Specialty specialty) throws DomainInterfaceException 
{
    if(name == null)
        throw new DomainRuntimeException("Invalid Search criteria. Cancer Imagaing Event name filter must be supplied.");

    if(specialty == null)
        throw new DomainRuntimeException("Invalid Search criteria. Specialty must be supplied.");

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("select distinct cieItem from CancerImagingHotlist as cie left join cie.hotListItem as cieItem left join cieItem.cancerImagingEvent as cieEvent left join cieEvent.keywords as kw "); 

    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where cieEvent.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    hql.append(" and cie.specialty = :spec");
    names.add("spec");
    values.add(getDomLookup(specialty));            

    List hits = Keywords.searchByKeywords(factory, name, hql.toString(), names, values);        

    List ret = new ArrayList();     
    for (int i = 0; i < hits.size(); i++)
    {
        ret.add(((CancerImagingHotlistItem)hits.get(i)).getCancerImagingEvent());
    }

    return CancerImagingEventLiteVoAssembler.createCancerImagingEventLiteVoCollectionFromCancerImagingEvent(ret);
}
项目:openMAXIMS    文件:ClinicalCodingImpl.java   
public CancerImagingEventLiteVoCollection listImagingEventsLite(String name) throws DomainInterfaceException 
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from CancerImagingEvent cie join cie.keywords as kw "); 
    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where cie.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    return CancerImagingEventLiteVoAssembler.createCancerImagingEventLiteVoCollectionFromCancerImagingEvent(Keywords.searchByKeywords(factory, name, hql.toString(), names, values));           
}
项目:openmaxims-linux    文件:ClinicalCodingImpl.java   
public CancerImagingEventLiteVoCollection listHotlistImagingEventsLite(String name, Specialty specialty) throws DomainInterfaceException 
{
    if(name == null)
        throw new DomainRuntimeException("Invalid Search criteria. Cancer Imagaing Event name filter must be supplied.");

    if(specialty == null)
        throw new DomainRuntimeException("Invalid Search criteria. Specialty must be supplied.");

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("select distinct cieItem from CancerImagingHotlist as cie left join cie.hotListItem as cieItem left join cieItem.cancerImagingEvent as cieEvent left join cieEvent.keywords as kw "); 

    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where cieEvent.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    hql.append(" and cie.specialty = :spec");
    names.add("spec");
    values.add(getDomLookup(specialty));            

    List hits = Keywords.searchByKeywords(factory, name, hql.toString(), names, values);        

    List ret = new ArrayList();     
    for (int i = 0; i < hits.size(); i++)
    {
        ret.add(((CancerImagingHotlistItem)hits.get(i)).getCancerImagingEvent());
    }

    return CancerImagingEventLiteVoAssembler.createCancerImagingEventLiteVoCollectionFromCancerImagingEvent(ret);
}
项目:openmaxims-linux    文件:ClinicalCodingImpl.java   
public CancerImagingEventLiteVoCollection listImagingEventsLite(String name) throws DomainInterfaceException 
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from CancerImagingEvent cie join cie.keywords as kw "); 
    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where cie.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    return CancerImagingEventLiteVoAssembler.createCancerImagingEventLiteVoCollectionFromCancerImagingEvent(Keywords.searchByKeywords(factory, name, hql.toString(), names, values));           
}
项目:AvoinApotti    文件:CCIAdminImpl.java   
public IGenericItem[] listIGenericItems(String filter, CciType cciType, Boolean activeOnly)
{
    List resultsList;

    try
    {
        resultsList = listDomIGenericItemInfo(filter, cciType, activeOnly.booleanValue());
    }
    catch (DomainInterfaceException e)
    {
        return null;
    }

    if (resultsList.size() > 0)
    {
        if (cciType.equals(CciType.ALLERGEN)) 
        {
            return AllergenVoAssembler.createAllergenVoCollectionFromAllergen(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.MEDICATION)) 
        {
            return MedicationLiteVoAssembler.createMedicationLiteVoCollectionFromMedication(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.DIAGNOSIS)) 
        {
            return DiagLiteVoAssembler.createDiagLiteVoCollectionFromDiagnosis(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.PROBLEM)) 
        {
            return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.PROCEDURE)) 
        {
            return ProcedureLiteVoAssembler.createProcedureLiteVoCollectionFromProcedure(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.CANCERIMAGE)) 
        {
            return CancerImagingEventLiteVoAssembler.createCancerImagingEventLiteVoCollectionFromCancerImagingEvent(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.VACCINE)) 
        {
            return VaccineLiteVoAssembler.createVaccineLiteVoCollectionFromVaccine(resultsList).toIGenericItemArray();
        }
        else if(cciType.equals(CciType.PRESENTING_ISSUE))
        {

            return PresentingComplaintVoAssembler.createPresentingComplaintVoCollectionFromPresentingComplaint(resultsList).toICciFullArray();

        }
        else if(cciType.equals(CciType.TREATMENT_INTERVENTION))//WDEV-17060
        {   
            return TreatmentInterventionVoAssembler.createTreatmentInterventionVoCollectionFromTreatmentIntervention(resultsList).toICciFullArray();    
        }
        else
        {
            throw new DomainRuntimeException("Unknown CCI Type in 'listCciLite' = " + cciType.toString());
        }
    }
    return null;
}
项目:openMAXIMS    文件:CCIAdminImpl.java   
public IGenericItem[] listIGenericItems(String filter, CciType cciType, Boolean activeOnly)
{
    List resultsList;

    try
    {
        resultsList = listDomIGenericItemInfo(filter, cciType, activeOnly.booleanValue());
    }
    catch (DomainInterfaceException e)
    {
        return null;
    }

    if (resultsList.size() > 0)
    {
        if (cciType.equals(CciType.ALLERGEN)) 
        {
            return AllergenVoAssembler.createAllergenVoCollectionFromAllergen(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.MEDICATION)) 
        {
            return MedicationLiteVoAssembler.createMedicationLiteVoCollectionFromMedication(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.DIAGNOSIS)) 
        {
            return DiagLiteVoAssembler.createDiagLiteVoCollectionFromDiagnosis(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.PROBLEM)) 
        {
            return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.PROCEDURE)) 
        {
            return ProcedureLiteVoAssembler.createProcedureLiteVoCollectionFromProcedure(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.CANCERIMAGE)) 
        {
            return CancerImagingEventLiteVoAssembler.createCancerImagingEventLiteVoCollectionFromCancerImagingEvent(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.VACCINE)) 
        {
            return VaccineLiteVoAssembler.createVaccineLiteVoCollectionFromVaccine(resultsList).toIGenericItemArray();
        }
        else if(cciType.equals(CciType.PRESENTING_ISSUE))
        {

            return PresentingComplaintVoAssembler.createPresentingComplaintVoCollectionFromPresentingComplaint(resultsList).toICciFullArray();

        }
        else if(cciType.equals(CciType.TREATMENT_INTERVENTION))//WDEV-17060
        {   
            return TreatmentInterventionVoAssembler.createTreatmentInterventionVoCollectionFromTreatmentIntervention(resultsList).toICciFullArray();    
        }
        else
        {
            throw new DomainRuntimeException("Unknown CCI Type in 'listCciLite' = " + cciType.toString());
        }
    }
    return null;
}
项目:openMAXIMS    文件:CCIAdminImpl.java   
public IGenericItem[] listIGenericItems(String filter, CciType cciType, Boolean activeOnly)
{
    List resultsList;

    try
    {
        resultsList = listDomIGenericItemInfo(filter, cciType, activeOnly.booleanValue());
    }
    catch (DomainInterfaceException e)
    {
        return null;
    }

    if (resultsList.size() > 0)
    {
        if (cciType.equals(CciType.ALLERGEN)) 
        {
            return AllergenVoAssembler.createAllergenVoCollectionFromAllergen(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.MEDICATION)) 
        {
            return MedicationLiteVoAssembler.createMedicationLiteVoCollectionFromMedication(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.DIAGNOSIS)) 
        {
            return DiagLiteVoAssembler.createDiagLiteVoCollectionFromDiagnosis(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.PROBLEM)) 
        {
            return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.PROCEDURE)) 
        {
            return ProcedureLiteVoAssembler.createProcedureLiteVoCollectionFromProcedure(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.CANCERIMAGE)) 
        {
            return CancerImagingEventLiteVoAssembler.createCancerImagingEventLiteVoCollectionFromCancerImagingEvent(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.VACCINE)) 
        {
            return VaccineLiteVoAssembler.createVaccineLiteVoCollectionFromVaccine(resultsList).toIGenericItemArray();
        }
        else if(cciType.equals(CciType.PRESENTING_ISSUE))
        {

            return PresentingComplaintVoAssembler.createPresentingComplaintVoCollectionFromPresentingComplaint(resultsList).toICciFullArray();

        }
        else if(cciType.equals(CciType.TREATMENT_INTERVENTION))//WDEV-17060
        {   
            return TreatmentInterventionVoAssembler.createTreatmentInterventionVoCollectionFromTreatmentIntervention(resultsList).toICciFullArray();    
        }
        else
        {
            throw new DomainRuntimeException("Unknown CCI Type in 'listCciLite' = " + cciType.toString());
        }
    }
    return null;
}
项目:openmaxims-linux    文件:CCIAdminImpl.java   
public IGenericItem[] listIGenericItems(String filter, CciType cciType, Boolean activeOnly)
{
    List resultsList;

    try
    {
        resultsList = listDomIGenericItemInfo(filter, cciType, activeOnly.booleanValue());
    }
    catch (DomainInterfaceException e)
    {
        return null;
    }

    if (resultsList.size() > 0)
    {
        if (cciType.equals(CciType.ALLERGEN)) 
        {
            return AllergenVoAssembler.createAllergenVoCollectionFromAllergen(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.MEDICATION)) 
        {
            return MedicationLiteVoAssembler.createMedicationLiteVoCollectionFromMedication(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.DIAGNOSIS)) 
        {
            return DiagLiteVoAssembler.createDiagLiteVoCollectionFromDiagnosis(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.PROBLEM)) 
        {
            return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.PROCEDURE)) 
        {
            return ProcedureLiteVoAssembler.createProcedureLiteVoCollectionFromProcedure(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.CANCERIMAGE)) 
        {
            return CancerImagingEventLiteVoAssembler.createCancerImagingEventLiteVoCollectionFromCancerImagingEvent(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.VACCINE)) 
        {
            return VaccineLiteVoAssembler.createVaccineLiteVoCollectionFromVaccine(resultsList).toIGenericItemArray();
        }
        else if(cciType.equals(CciType.PRESENTING_ISSUE))
        {

            return PresentingComplaintVoAssembler.createPresentingComplaintVoCollectionFromPresentingComplaint(resultsList).toICciFullArray();

        }
        else if(cciType.equals(CciType.TREATMENT_INTERVENTION))//WDEV-17060
        {   
            return TreatmentInterventionVoAssembler.createTreatmentInterventionVoCollectionFromTreatmentIntervention(resultsList).toICciFullArray();    
        }
        else
        {
            throw new DomainRuntimeException("Unknown CCI Type in 'listCciLite' = " + cciType.toString());
        }
    }
    return null;
}