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

项目:openMAXIMS    文件:BatchMaintenanceImpl.java   
public VaccineLiteVoCollection listVaccineByName(String vaccineName) throws ims.domain.exceptions.DomainInterfaceException
{
    if(vaccineName == null)
        throw new CodingRuntimeException("Cannot search on null Vaccine Name!");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from Vaccine x");
    hql.append(" join x.keywords as kw");

    ArrayList<String> names = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

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

    List result = Keywords.searchByKeywords(factory, vaccineName, hql.toString(), names, values);       
    return VaccineLiteVoAssembler.createVaccineLiteVoCollectionFromVaccine(result);     
}
项目: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;
}