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

项目:AvoinApotti    文件:Logic.java   
private void populateChemotherapyGrid(ChemotherapyDetailsShortVoCollection listChemotherapies)
{
    // Clear grid results
    form.grdChemotherapy().getRows().clear();

    if (listChemotherapies == null)
        return;

    listChemotherapies.sort(new StartDateComparator(SortOrder.ASCENDING));  //wdev-12819
    for (ChemotherapyDetailsShortVo chemotherapy : listChemotherapies)
    {
        // Skip null chemotherapy
        if (chemotherapy == null)
            continue;

        /*if (form.GroupFilter().getValue().equals(GroupFilterEnumeration.rdoFilterActive)
            && chemotherapy.getStatusIsNotNull()
            &&  ! chemotherapy.getStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
            continue;*/ //wdev-12819

        setChemotherapyRow(form.grdChemotherapy().getRows().newRow(), chemotherapy);
    }
}
项目:AvoinApotti    文件:ChemotherapyDetailsImpl.java   
public ChemotherapyDetailsShortVoCollection listChemotherapies(EpisodeOfCareRefVo episodeOfCare, CareContextRefVo careContext)
    {
        if (episodeOfCare == null || !episodeOfCare.getID_EpisodeOfCareIsNotNull())
            throw new DomainRuntimeException("Null or invalid episode of care passed");

        StringBuilder query = new StringBuilder();
        query.append(" from ChemotherapyDetails as ctd where ctd.episodeOfCare.id = :EP_ID order by ctd.startDate desc");

        ArrayList<String> paramNames = new ArrayList<String>();
        ArrayList<Object> paramValues = new ArrayList<Object>();

        paramNames.add("EP_ID");
        paramValues.add(episodeOfCare.getID_EpisodeOfCare());

//      if (careContext == null || !careContext.getID_CareContextIsNotNull())
//      {
//          query.append(" and ctd.careContext.id = :CC_ID");
//          
//          paramNames.add("CC_ID");
//          paramValues.add(careContext.getID_CareContext());
//      }

        return ChemotherapyDetailsShortVoAssembler.createChemotherapyDetailsShortVoCollectionFromChemotherapyDetails(getDomainFactory().find(query.toString(), paramNames, paramValues));
    }
项目:openMAXIMS    文件:Logic.java   
private void populateChemotherapyGrid(ChemotherapyDetailsShortVoCollection listChemotherapies)
{
    // Clear grid results
    form.grdChemotherapy().getRows().clear();

    if (listChemotherapies == null)
        return;

    listChemotherapies.sort(new StartDateComparator(SortOrder.ASCENDING));  //wdev-12819
    for (ChemotherapyDetailsShortVo chemotherapy : listChemotherapies)
    {
        // Skip null chemotherapy
        if (chemotherapy == null)
            continue;

        /*if (form.GroupFilter().getValue().equals(GroupFilterEnumeration.rdoFilterActive)
            && chemotherapy.getStatusIsNotNull()
            &&  ! chemotherapy.getStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
            continue;*/ //wdev-12819

        setChemotherapyRow(form.grdChemotherapy().getRows().newRow(), chemotherapy);
    }
}
项目:openMAXIMS    文件:ChemotherapyDetailsImpl.java   
public ChemotherapyDetailsShortVoCollection listChemotherapies(EpisodeOfCareRefVo episodeOfCare, CareContextRefVo careContext)
    {
        if (episodeOfCare == null || !episodeOfCare.getID_EpisodeOfCareIsNotNull())
            throw new DomainRuntimeException("Null or invalid episode of care passed");

        StringBuilder query = new StringBuilder();
        query.append(" from ChemotherapyDetails as ctd where ctd.episodeOfCare.id = :EP_ID order by ctd.startDate desc");

        ArrayList<String> paramNames = new ArrayList<String>();
        ArrayList<Object> paramValues = new ArrayList<Object>();

        paramNames.add("EP_ID");
        paramValues.add(episodeOfCare.getID_EpisodeOfCare());

//      if (careContext == null || !careContext.getID_CareContextIsNotNull())
//      {
//          query.append(" and ctd.careContext.id = :CC_ID");
//          
//          paramNames.add("CC_ID");
//          paramValues.add(careContext.getID_CareContext());
//      }

        return ChemotherapyDetailsShortVoAssembler.createChemotherapyDetailsShortVoCollectionFromChemotherapyDetails(getDomainFactory().find(query.toString(), paramNames, paramValues));
    }
项目:openMAXIMS    文件:Logic.java   
private void populateChemotherapyGrid(ChemotherapyDetailsShortVoCollection listChemotherapies)
{
    // Clear grid results
    form.grdChemotherapy().getRows().clear();

    if (listChemotherapies == null)
        return;

    listChemotherapies.sort(new StartDateComparator(SortOrder.ASCENDING));  //wdev-12819
    for (ChemotherapyDetailsShortVo chemotherapy : listChemotherapies)
    {
        // Skip null chemotherapy
        if (chemotherapy == null)
            continue;

        /*if (form.GroupFilter().getValue().equals(GroupFilterEnumeration.rdoFilterActive)
            && chemotherapy.getStatusIsNotNull()
            &&  ! chemotherapy.getStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
            continue;*/ //wdev-12819

        setChemotherapyRow(form.grdChemotherapy().getRows().newRow(), chemotherapy);
    }
}
项目:openMAXIMS    文件:ChemotherapyDetailsImpl.java   
public ChemotherapyDetailsShortVoCollection listChemotherapies(EpisodeOfCareRefVo episodeOfCare, CareContextRefVo careContext)
    {
        if (episodeOfCare == null || !episodeOfCare.getID_EpisodeOfCareIsNotNull())
            throw new DomainRuntimeException("Null or invalid episode of care passed");

        StringBuilder query = new StringBuilder();
        query.append(" from ChemotherapyDetails as ctd where ctd.episodeOfCare.id = :EP_ID order by ctd.startDate desc");

        ArrayList<String> paramNames = new ArrayList<String>();
        ArrayList<Object> paramValues = new ArrayList<Object>();

        paramNames.add("EP_ID");
        paramValues.add(episodeOfCare.getID_EpisodeOfCare());

//      if (careContext == null || !careContext.getID_CareContextIsNotNull())
//      {
//          query.append(" and ctd.careContext.id = :CC_ID");
//          
//          paramNames.add("CC_ID");
//          paramValues.add(careContext.getID_CareContext());
//      }

        return ChemotherapyDetailsShortVoAssembler.createChemotherapyDetailsShortVoCollectionFromChemotherapyDetails(getDomainFactory().find(query.toString(), paramNames, paramValues));
    }
项目:openmaxims-linux    文件:Logic.java   
private void populateChemotherapyGrid(ChemotherapyDetailsShortVoCollection listChemotherapies)
{
    // Clear grid results
    form.grdChemotherapy().getRows().clear();

    if (listChemotherapies == null)
        return;

    listChemotherapies.sort(new StartDateComparator(SortOrder.ASCENDING));  //wdev-12819
    for (ChemotherapyDetailsShortVo chemotherapy : listChemotherapies)
    {
        // Skip null chemotherapy
        if (chemotherapy == null)
            continue;

        /*if (form.GroupFilter().getValue().equals(GroupFilterEnumeration.rdoFilterActive)
            && chemotherapy.getStatusIsNotNull()
            &&  ! chemotherapy.getStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
            continue;*/ //wdev-12819

        setChemotherapyRow(form.grdChemotherapy().getRows().newRow(), chemotherapy);
    }
}
项目:openmaxims-linux    文件:ChemotherapyDetailsImpl.java   
public ChemotherapyDetailsShortVoCollection listChemotherapies(EpisodeOfCareRefVo episodeOfCare, CareContextRefVo careContext)
    {
        if (episodeOfCare == null || !episodeOfCare.getID_EpisodeOfCareIsNotNull())
            throw new DomainRuntimeException("Null or invalid episode of care passed");

        StringBuilder query = new StringBuilder();
        query.append(" from ChemotherapyDetails as ctd where ctd.episodeOfCare.id = :EP_ID order by ctd.startDate desc");

        ArrayList<String> paramNames = new ArrayList<String>();
        ArrayList<Object> paramValues = new ArrayList<Object>();

        paramNames.add("EP_ID");
        paramValues.add(episodeOfCare.getID_EpisodeOfCare());

//      if (careContext == null || !careContext.getID_CareContextIsNotNull())
//      {
//          query.append(" and ctd.careContext.id = :CC_ID");
//          
//          paramNames.add("CC_ID");
//          paramValues.add(careContext.getID_CareContext());
//      }

        return ChemotherapyDetailsShortVoAssembler.createChemotherapyDetailsShortVoCollectionFromChemotherapyDetails(getDomainFactory().find(query.toString(), paramNames, paramValues));
    }