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

项目:AvoinApotti    文件:BaselineObsImpl.java   
public AllergenVoCollection listActiveAllergies(String filter) throws DomainInterfaceException 
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from ");

    hql.append("Allergen x ");
    hql.append(" join x.keywords as kw");

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

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

    List resultsList = Keywords.searchByKeywords(factory, filter, hql.toString(), names, values);
    if (resultsList.size() > 0)
        return AllergenVoAssembler.createAllergenVoCollectionFromAllergen(resultsList).sort();
    else
        return null;
}
项目:AvoinApotti    文件:PresentationComponentImpl.java   
@SuppressWarnings("unchecked")
public AllergenVoCollection getAllergies(String text) throws DomainInterfaceException
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from ");

    hql.append("Allergen x ");
    hql.append(" join x.keywords as kw");

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

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

    List resultsList = Keywords.searchByKeywords(factory, text, hql.toString(), names, values);
    if (resultsList.size() > 0)
        return AllergenVoAssembler.createAllergenVoCollectionFromAllergen(resultsList).sort();
    else
        return null;

}
项目:openMAXIMS    文件:BaselineObsImpl.java   
public AllergenVoCollection listActiveAllergies(String filter) throws DomainInterfaceException 
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from ");

    hql.append("Allergen x ");
    hql.append(" join x.keywords as kw");

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

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

    List resultsList = Keywords.searchByKeywords(factory, filter, hql.toString(), names, values);
    if (resultsList.size() > 0)
        return AllergenVoAssembler.createAllergenVoCollectionFromAllergen(resultsList).sort();
    else
        return null;
}
项目:openMAXIMS    文件:PresentationComponentImpl.java   
@SuppressWarnings("unchecked")
public AllergenVoCollection getAllergies(String text) throws DomainInterfaceException
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from ");

    hql.append("Allergen x ");
    hql.append(" join x.keywords as kw");

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

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

    List resultsList = Keywords.searchByKeywords(factory, text, hql.toString(), names, values);
    if (resultsList.size() > 0)
        return AllergenVoAssembler.createAllergenVoCollectionFromAllergen(resultsList).sort();
    else
        return null;

}
项目:openMAXIMS    文件:BaselineObsImpl.java   
public AllergenVoCollection listActiveAllergies(String filter) throws DomainInterfaceException 
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from ");

    hql.append("Allergen x ");
    hql.append(" join x.keywords as kw");

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

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

    List resultsList = Keywords.searchByKeywords(factory, filter, hql.toString(), names, values);
    if (resultsList.size() > 0)
        return AllergenVoAssembler.createAllergenVoCollectionFromAllergen(resultsList).sort();
    else
        return null;
}
项目:openMAXIMS    文件:PresentationComponentImpl.java   
@SuppressWarnings("unchecked")
public AllergenVoCollection getAllergies(String text) throws DomainInterfaceException
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from ");

    hql.append("Allergen x ");
    hql.append(" join x.keywords as kw");

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

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

    List resultsList = Keywords.searchByKeywords(factory, text, hql.toString(), names, values);
    if (resultsList.size() > 0)
        return AllergenVoAssembler.createAllergenVoCollectionFromAllergen(resultsList).sort();
    else
        return null;

}
项目:AvoinApotti    文件:ClinicalCodingImpl.java   
public AllergenVoCollection listAllergens(String strAllergen) throws DomainInterfaceException 
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from Allergen a join a.keywords as kw "); 
    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

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

    return AllergenVoAssembler.createAllergenVoCollectionFromAllergen(Keywords.searchByKeywords(factory, strAllergen, hql.toString(), names, values));          

}
项目:openMAXIMS    文件:ClinicalCodingImpl.java   
public AllergenVoCollection listAllergens(String strAllergen) throws DomainInterfaceException 
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from Allergen a join a.keywords as kw "); 
    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

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

    return AllergenVoAssembler.createAllergenVoCollectionFromAllergen(Keywords.searchByKeywords(factory, strAllergen, hql.toString(), names, values));          

}
项目:openMAXIMS    文件:ClinicalCodingImpl.java   
public AllergenVoCollection listAllergens(String strAllergen) throws DomainInterfaceException 
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from Allergen a join a.keywords as kw "); 
    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

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

    return AllergenVoAssembler.createAllergenVoCollectionFromAllergen(Keywords.searchByKeywords(factory, strAllergen, hql.toString(), names, values));          

}
项目:openmaxims-linux    文件:ClinicalCodingImpl.java   
public AllergenVoCollection listAllergens(String strAllergen) throws DomainInterfaceException 
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from Allergen a join a.keywords as kw "); 
    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

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

    return AllergenVoAssembler.createAllergenVoCollectionFromAllergen(Keywords.searchByKeywords(factory, strAllergen, 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;
}
项目:AvoinApotti    文件:ClinicalCodingImpl.java   
public AllergenVo getAllergenByName(String strName) 
{
    DomainFactory factory = getDomainFactory();
    Allergen domAllergen = Allergen.getAllergenFromAllergenName(factory, strName);
    return AllergenVoAssembler.create(domAllergen);
}
项目:openMAXIMS    文件:AllergenListImpl.java   
private AllergenVoCollection listAllergen(String filter, boolean activeOnly) throws DomainInterfaceException
{
    return AllergenVoAssembler.createAllergenVoCollectionFromAllergen(listDomAllergen(filter, activeOnly)).sort();      
}
项目: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    文件:ClinicalCodingImpl.java   
public AllergenVo getAllergenByName(String strName) 
{
    DomainFactory factory = getDomainFactory();
    Allergen domAllergen = Allergen.getAllergenFromAllergenName(factory, strName);
    return AllergenVoAssembler.create(domAllergen);
}
项目: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    文件:ClinicalCodingImpl.java   
public AllergenVo getAllergenByName(String strName) 
{
    DomainFactory factory = getDomainFactory();
    Allergen domAllergen = Allergen.getAllergenFromAllergenName(factory, strName);
    return AllergenVoAssembler.create(domAllergen);
}
项目: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;
}
项目:openmaxims-linux    文件:ClinicalCodingImpl.java   
public AllergenVo getAllergenByName(String strName) 
{
    DomainFactory factory = getDomainFactory();
    Allergen domAllergen = Allergen.getAllergenFromAllergenName(factory, strName);
    return AllergenVoAssembler.create(domAllergen);
}