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

项目:AvoinApotti    文件:Logic.java   
private void search(int iTab) 
{
    ClinicalNotesFilterVo filter = new ClinicalNotesFilterVo();
    boolean bFilterSet = false;

    form.getGlobalContext().Core.setClinicalNotesShort(null);
    updateControlsState();

    switch(iTab)
    {
        case TABHCP:
            bFilterSet = setFilterForTabHcp(filter);
        break;
        case TABUSER:
            bFilterSet = setFilterForTabUser(filter);
        break;
    }

    if(bFilterSet)
        doSearch(iTab, filter);
}
项目:AvoinApotti    文件:Logic.java   
private boolean setFilterForTabUser(ClinicalNotesFilterVo filter)
{
    if (form.lyrSearcFilter().tabRecordingUser().qmbUserRec().getValue() == null)
    {
        engine.showMessage("Recording User is mandatory for a search. Please select one and search again.");
        return false;
    }
    filter.setRecordingUser(form.lyrSearcFilter().tabRecordingUser().qmbUserRec().getValue());
    DateTime dateFrom = new DateTime(form.lyrSearcFilter().tabRecordingUser().dteUserFrom().getValue(), null); 
    filter.setDateFrom(dateFrom);
    DateTime dateTo = new DateTime(form.lyrSearcFilter().tabRecordingUser().dteUserTo().getValue(), null); 
    filter.setDateTo(dateTo);

    if (form.lyrSearcFilter().tabRecordingUser().chkRecValidation().getValue())
        filter.setStatus(ClinicalNotesStatus.PREVALIDATION);

    return true;
}
项目:AvoinApotti    文件:Logic.java   
private boolean setFilterForTabHcp(ClinicalNotesFilterVo filter)
{
    if (form.lyrSearcFilter().tabRecordingHcp().qmbHcpRec().getValue() == null)
    {
        engine.showMessage("Authoring HCP is mandatory for a search. Please select one and search again.");
        return false;
    }
    filter.setAuthoringHCP(form.lyrSearcFilter().tabRecordingHcp().qmbHcpRec().getValue());
    DateTime dateFrom = new DateTime(form.lyrSearcFilter().tabRecordingHcp().dteHcpFrom().getValue(), null); 
    filter.setDateFrom(dateFrom);
    DateTime dateTo = new DateTime(form.lyrSearcFilter().tabRecordingHcp().dteHcpTo().getValue(), null); 
    filter.setDateTo(dateTo);
    filter.setStatus(form.lyrSearcFilter().tabRecordingHcp().cmbHcpStatus().getValue());

    if (form.lyrSearcFilter().tabRecordingHcp().chkAuthValidation().getValue())
        filter.setStatus(ClinicalNotesStatus.PREVALIDATION);

    return true;
}
项目:AvoinApotti    文件:Logic.java   
private ClinicalNotesFilterVo setFilter()
{
    ClinicalNotesFilterVo filter = new ClinicalNotesFilterVo();
    filter.setDiscipline(form.cmbDiscipline().getValue());
    if(form.dteFrom().getValue()!=null){
        DateTime dateFrom = new DateTime(form.dteFrom().getValue(), null); 
        filter.setDateFrom(dateFrom);
    }
    if(form.dteTo().getValue()!=null){
        DateTime dateTo = new DateTime(form.dteTo().getValue(), null); 
        filter.setDateTo(dateTo);
    }
    filter.setPatient(form.getGlobalContext().Core.getPatientShort());
    filter.setEpisodeOfCare(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare());
    // filter.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());


    if (form.chkReview().getValue() == true)
    {
        filter.setForReview(new Boolean(form.chkReview().getValue()));
        //WDEV-14630
        //filter.setForReviewDiscipline(form.cmbDiscipline().getValue());
    }

    return filter;
}
项目:openMAXIMS    文件:Logic.java   
private void search(int iTab) 
{
    ClinicalNotesFilterVo filter = new ClinicalNotesFilterVo();
    boolean bFilterSet = false;

    form.getGlobalContext().Core.setClinicalNotesShort(null);
    updateControlsState();

    switch(iTab)
    {
        case TABHCP:
            bFilterSet = setFilterForTabHcp(filter);
        break;
        case TABUSER:
            bFilterSet = setFilterForTabUser(filter);
        break;
    }

    if(bFilterSet)
        doSearch(iTab, filter);
}
项目:openMAXIMS    文件:Logic.java   
private boolean setFilterForTabUser(ClinicalNotesFilterVo filter)
{
    if (form.lyrSearcFilter().tabRecordingUser().qmbUserRec().getValue() == null)
    {
        engine.showMessage("Recording User is mandatory for a search. Please select one and search again.");
        return false;
    }
    filter.setRecordingUser(form.lyrSearcFilter().tabRecordingUser().qmbUserRec().getValue());
    DateTime dateFrom = new DateTime(form.lyrSearcFilter().tabRecordingUser().dteUserFrom().getValue(), null); 
    filter.setDateFrom(dateFrom);
    DateTime dateTo = new DateTime(form.lyrSearcFilter().tabRecordingUser().dteUserTo().getValue(), null); 
    filter.setDateTo(dateTo);

    if (form.lyrSearcFilter().tabRecordingUser().chkRecValidation().getValue())
        filter.setStatus(ClinicalNotesStatus.PREVALIDATION);

    return true;
}
项目:openMAXIMS    文件:Logic.java   
private boolean setFilterForTabHcp(ClinicalNotesFilterVo filter)
{
    if (form.lyrSearcFilter().tabRecordingHcp().qmbHcpRec().getValue() == null)
    {
        engine.showMessage("Authoring HCP is mandatory for a search. Please select one and search again.");
        return false;
    }
    filter.setAuthoringHCP(form.lyrSearcFilter().tabRecordingHcp().qmbHcpRec().getValue());
    DateTime dateFrom = new DateTime(form.lyrSearcFilter().tabRecordingHcp().dteHcpFrom().getValue(), null); 
    filter.setDateFrom(dateFrom);
    DateTime dateTo = new DateTime(form.lyrSearcFilter().tabRecordingHcp().dteHcpTo().getValue(), null); 
    filter.setDateTo(dateTo);
    filter.setStatus(form.lyrSearcFilter().tabRecordingHcp().cmbHcpStatus().getValue());

    if (form.lyrSearcFilter().tabRecordingHcp().chkAuthValidation().getValue())
        filter.setStatus(ClinicalNotesStatus.PREVALIDATION);

    return true;
}
项目:openMAXIMS    文件:Logic.java   
private ClinicalNotesFilterVo setFilter()
{
    ClinicalNotesFilterVo filter = new ClinicalNotesFilterVo();
    filter.setDiscipline(form.cmbDiscipline().getValue());
    if(form.dteFrom().getValue()!=null){
        DateTime dateFrom = new DateTime(form.dteFrom().getValue(), null); 
        filter.setDateFrom(dateFrom);
    }
    if(form.dteTo().getValue()!=null){
        DateTime dateTo = new DateTime(form.dteTo().getValue(), null); 
        filter.setDateTo(dateTo);
    }
    filter.setPatient(form.getGlobalContext().Core.getPatientShort());
    filter.setEpisodeOfCare(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare());
    // filter.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());


    if (form.chkReview().getValue() == true)
    {
        filter.setForReview(new Boolean(form.chkReview().getValue()));
        //WDEV-14630
        //filter.setForReviewDiscipline(form.cmbDiscipline().getValue());
    }

    return filter;
}
项目:openMAXIMS    文件:Logic.java   
private void search(int iTab) 
{
    ClinicalNotesFilterVo filter = new ClinicalNotesFilterVo();
    boolean bFilterSet = false;

    form.getGlobalContext().Core.setClinicalNotesShort(null);
    updateControlsState();

    switch(iTab)
    {
        case TABHCP:
            bFilterSet = setFilterForTabHcp(filter);
        break;
        case TABUSER:
            bFilterSet = setFilterForTabUser(filter);
        break;
    }

    if(bFilterSet)
        doSearch(iTab, filter);
}
项目:openMAXIMS    文件:Logic.java   
private boolean setFilterForTabUser(ClinicalNotesFilterVo filter)
{
    if (form.lyrSearcFilter().tabRecordingUser().qmbUserRec().getValue() == null)
    {
        engine.showMessage("Recording User is mandatory for a search. Please select one and search again.");
        return false;
    }
    filter.setRecordingUser(form.lyrSearcFilter().tabRecordingUser().qmbUserRec().getValue());
    DateTime dateFrom = new DateTime(form.lyrSearcFilter().tabRecordingUser().dteUserFrom().getValue(), null); 
    filter.setDateFrom(dateFrom);
    DateTime dateTo = new DateTime(form.lyrSearcFilter().tabRecordingUser().dteUserTo().getValue(), null); 
    filter.setDateTo(dateTo);

    if (form.lyrSearcFilter().tabRecordingUser().chkRecValidation().getValue())
        filter.setStatus(ClinicalNotesStatus.PREVALIDATION);

    return true;
}
项目:openMAXIMS    文件:Logic.java   
private boolean setFilterForTabHcp(ClinicalNotesFilterVo filter)
{
    if (form.lyrSearcFilter().tabRecordingHcp().qmbHcpRec().getValue() == null)
    {
        engine.showMessage("Authoring HCP is mandatory for a search. Please select one and search again.");
        return false;
    }
    filter.setAuthoringHCP(form.lyrSearcFilter().tabRecordingHcp().qmbHcpRec().getValue());
    DateTime dateFrom = new DateTime(form.lyrSearcFilter().tabRecordingHcp().dteHcpFrom().getValue(), null); 
    filter.setDateFrom(dateFrom);
    DateTime dateTo = new DateTime(form.lyrSearcFilter().tabRecordingHcp().dteHcpTo().getValue(), null); 
    filter.setDateTo(dateTo);
    filter.setStatus(form.lyrSearcFilter().tabRecordingHcp().cmbHcpStatus().getValue());

    if (form.lyrSearcFilter().tabRecordingHcp().chkAuthValidation().getValue())
        filter.setStatus(ClinicalNotesStatus.PREVALIDATION);

    return true;
}
项目:openMAXIMS    文件:Logic.java   
private ClinicalNotesFilterVo setFilter()
{
    ClinicalNotesFilterVo filter = new ClinicalNotesFilterVo();
    filter.setDiscipline(form.cmbDiscipline().getValue());
    if(form.dteFrom().getValue()!=null){
        DateTime dateFrom = new DateTime(form.dteFrom().getValue(), null); 
        filter.setDateFrom(dateFrom);
    }
    if(form.dteTo().getValue()!=null){
        DateTime dateTo = new DateTime(form.dteTo().getValue(), null); 
        filter.setDateTo(dateTo);
    }
    filter.setPatient(form.getGlobalContext().Core.getPatientShort());
    filter.setEpisodeOfCare(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare());
    // filter.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());


    if (form.chkReview().getValue() == true)
    {
        filter.setForReview(new Boolean(form.chkReview().getValue()));
        //WDEV-14630
        //filter.setForReviewDiscipline(form.cmbDiscipline().getValue());
    }

    return filter;
}
项目:openmaxims-linux    文件:Logic.java   
private void search(int iTab) 
{
    ClinicalNotesFilterVo filter = new ClinicalNotesFilterVo();
    boolean bFilterSet = false;

    form.getGlobalContext().Core.setClinicalNotesShort(null);
    updateControlsState();

    switch(iTab)
    {
        case TABHCP:
            bFilterSet = setFilterForTabHcp(filter);
        break;
        case TABUSER:
            bFilterSet = setFilterForTabUser(filter);
        break;
    }

    if(bFilterSet)
        doSearch(iTab, filter);
}
项目:openmaxims-linux    文件:Logic.java   
private boolean setFilterForTabUser(ClinicalNotesFilterVo filter)
{
    if (form.lyrSearcFilter().tabRecordingUser().qmbUserRec().getValue() == null)
    {
        engine.showMessage("Recording User is mandatory for a search. Please select one and search again.");
        return false;
    }
    filter.setRecordingUser(form.lyrSearcFilter().tabRecordingUser().qmbUserRec().getValue());
    DateTime dateFrom = new DateTime(form.lyrSearcFilter().tabRecordingUser().dteUserFrom().getValue(), null); 
    filter.setDateFrom(dateFrom);
    DateTime dateTo = new DateTime(form.lyrSearcFilter().tabRecordingUser().dteUserTo().getValue(), null); 
    filter.setDateTo(dateTo);

    if (form.lyrSearcFilter().tabRecordingUser().chkRecValidation().getValue())
        filter.setStatus(ClinicalNotesStatus.PREVALIDATION);

    return true;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean setFilterForTabHcp(ClinicalNotesFilterVo filter)
{
    if (form.lyrSearcFilter().tabRecordingHcp().qmbHcpRec().getValue() == null)
    {
        engine.showMessage("Authoring HCP is mandatory for a search. Please select one and search again.");
        return false;
    }
    filter.setAuthoringHCP(form.lyrSearcFilter().tabRecordingHcp().qmbHcpRec().getValue());
    DateTime dateFrom = new DateTime(form.lyrSearcFilter().tabRecordingHcp().dteHcpFrom().getValue(), null); 
    filter.setDateFrom(dateFrom);
    DateTime dateTo = new DateTime(form.lyrSearcFilter().tabRecordingHcp().dteHcpTo().getValue(), null); 
    filter.setDateTo(dateTo);
    filter.setStatus(form.lyrSearcFilter().tabRecordingHcp().cmbHcpStatus().getValue());

    if (form.lyrSearcFilter().tabRecordingHcp().chkAuthValidation().getValue())
        filter.setStatus(ClinicalNotesStatus.PREVALIDATION);

    return true;
}
项目:openmaxims-linux    文件:Logic.java   
private ClinicalNotesFilterVo setFilter()
{
    ClinicalNotesFilterVo filter = new ClinicalNotesFilterVo();
    filter.setDiscipline(form.cmbDiscipline().getValue());
    if(form.dteFrom().getValue()!=null){
        DateTime dateFrom = new DateTime(form.dteFrom().getValue(), null); 
        filter.setDateFrom(dateFrom);
    }
    if(form.dteTo().getValue()!=null){
        DateTime dateTo = new DateTime(form.dteTo().getValue(), null); 
        filter.setDateTo(dateTo);
    }
    filter.setPatient(form.getGlobalContext().Core.getPatientShort());
    filter.setEpisodeOfCare(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare());
    // filter.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());


    if (form.chkReview().getValue() == true)
    {
        filter.setForReview(new Boolean(form.chkReview().getValue()));
        //WDEV-14630
        //filter.setForReviewDiscipline(form.cmbDiscipline().getValue());
    }

    return filter;
}
项目:AvoinApotti    文件:MyOrderImpl.java   
public ClinicalNotesLiteVoCollection listClinicalNotesByCareContextAndNoteType(CareContextRefVo careContext, ClinicalNoteType noteType)
{
    ClinicalNotesList impl = (ClinicalNotesList) getDomainImpl(ClinicalNotesListImpl.class);
    ClinicalNotesFilterVo voFilter = new ClinicalNotesFilterVo();

    voFilter.setNoteType(noteType);
    voFilter.setCareContext(careContext);

    return impl.listClinicalNoteLite(voFilter);
}
项目:AvoinApotti    文件:Logic.java   
private void search()
{

    form.getGlobalContext().Clinical.setCurrentClinicalNote(null);//WDEV-14286

    form.getGlobalContext().Core.setClinicalNotesShort(null);

    ClinicalNotesFilterVo filter = setFilter();

    ClinicalNotesShortVoCollection voCollNotes = domain.listClinicalNote(filter);
    form.dyngrdNotes().getRows().clear();
    updateControlsState();
    //-------------------------------------------------------------------
    if(form.dteFrom().getValue() != null && form.dteTo().getValue() != null )
        if(form.dteFrom().getValue().isGreaterThan(form.dteTo().getValue()))
        {
            engine.showMessage("Please enter From and To dates that are in chronological order");
            form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());//WDEV-16517
            return;
        }
    //--------------------------------------------------------------------
    if (voCollNotes == null || voCollNotes.size() == 0)
    {
        engine.showMessage("No matching records found");
        form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());
        return;
    }

    populateDynamicGrid(voCollNotes);
    updateControlsState();

    form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());
}
项目:AvoinApotti    文件:ClinicalNotesListImpl.java   
/**
* listClinicalNote
*/
public ims.core.vo.ClinicalNotesShortVoCollection listClinicalNote(ims.core.vo.ClinicalNotesFilterVo filter)
{
    DomainFactory factory = getDomainFactory();

    if(filter == null)  
        return ClinicalNotesShortVoAssembler.createClinicalNotesShortVoCollectionFromClinicalNotes(factory.listDomainObjects(ClinicalNotes.class)).sort(ims.framework.enumerations.SortOrder.DESCENDING);

    return ClinicalNotesShortVoAssembler.createClinicalNotesShortVoCollectionFromClinicalNotes(listDomClinicalNotes(factory, filter)).sort(ims.framework.enumerations.SortOrder.DESCENDING);        
}
项目:AvoinApotti    文件:ClinicalNotesListImpl.java   
public ClinicalNotesLiteVoCollection listClinicalNoteLite(ClinicalNotesFilterVo filter)
{
    DomainFactory factory = getDomainFactory();

    if(filter == null)  
        return ClinicalNotesLiteVoAssembler.createClinicalNotesLiteVoCollectionFromClinicalNotes(factory.listDomainObjects(ClinicalNotes.class));

    return ClinicalNotesLiteVoAssembler.createClinicalNotesLiteVoCollectionFromClinicalNotes(listDomClinicalNotes(factory, filter));        
}
项目:openMAXIMS    文件:MyOrderImpl.java   
public ClinicalNotesLiteVoCollection listClinicalNotesByCareContextAndNoteType(CareContextRefVo careContext, ClinicalNoteType noteType)
{
    ClinicalNotesList impl = (ClinicalNotesList) getDomainImpl(ClinicalNotesListImpl.class);
    ClinicalNotesFilterVo voFilter = new ClinicalNotesFilterVo();

    voFilter.setNoteType(noteType);
    voFilter.setCareContext(careContext);

    return impl.listClinicalNoteLite(voFilter);
}
项目:openMAXIMS    文件:Logic.java   
private void setSearchCriteria(ClinicalNotesFilterVo clinicalNotesFilterVo)
{
    form.cmbDiscipline().setValue(clinicalNotesFilterVo.getDiscipline());
    form.chkReview().setValue(clinicalNotesFilterVo.getForReview());
    form.dteFrom().setValue(clinicalNotesFilterVo.getDateFromIsNotNull() ? clinicalNotesFilterVo.getDateFrom().getDate() : null);
    form.dteTo().setValue(clinicalNotesFilterVo.getDateToIsNotNull() ? clinicalNotesFilterVo.getDateTo().getDate() : null);
}
项目:openMAXIMS    文件:Logic.java   
private void search()
{

    form.getGlobalContext().Clinical.setCurrentClinicalNote(null);//WDEV-14286

    form.getGlobalContext().Core.setClinicalNotesShort(null);

    ClinicalNotesFilterVo filter = setFilter();

    ClinicalNotesShortVoCollection voCollNotes = domain.listClinicalNote(filter);
    form.dyngrdNotes().getRows().clear();
    updateControlsState();
    //-------------------------------------------------------------------
    if(form.dteFrom().getValue() != null && form.dteTo().getValue() != null )
        if(form.dteFrom().getValue().isGreaterThan(form.dteTo().getValue()))
        {
            engine.showMessage("Please enter From and To dates that are in chronological order");
            form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());//WDEV-16517
            return;
        }
    //--------------------------------------------------------------------

    form.getGlobalContext().Core.setPatientClinicalNotesSearchCriteria(filter);//WDEV-19389 

    if (voCollNotes == null || voCollNotes.size() == 0)
    {
        engine.showMessage("No matching records found");
        form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());
        return;
    }

    populateDynamicGrid(voCollNotes);
    updateControlsState();

    form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());
}
项目:openMAXIMS    文件:ClinicalNotesListImpl.java   
/**
* listClinicalNote
*/
public ims.core.vo.ClinicalNotesShortVoCollection listClinicalNote(ims.core.vo.ClinicalNotesFilterVo filter)
{
    DomainFactory factory = getDomainFactory();

    if(filter == null)  
        return ClinicalNotesShortVoAssembler.createClinicalNotesShortVoCollectionFromClinicalNotes(factory.listDomainObjects(ClinicalNotes.class)).sort(ims.framework.enumerations.SortOrder.DESCENDING);

    return ClinicalNotesShortVoAssembler.createClinicalNotesShortVoCollectionFromClinicalNotes(listDomClinicalNotes(factory, filter)).sort(ims.framework.enumerations.SortOrder.DESCENDING);        
}
项目:openMAXIMS    文件:ClinicalNotesListImpl.java   
public ClinicalNotesLiteVoCollection listClinicalNoteLite(ClinicalNotesFilterVo filter)
{
    DomainFactory factory = getDomainFactory();

    if(filter == null)  
        return ClinicalNotesLiteVoAssembler.createClinicalNotesLiteVoCollectionFromClinicalNotes(factory.listDomainObjects(ClinicalNotes.class));

    return ClinicalNotesLiteVoAssembler.createClinicalNotesLiteVoCollectionFromClinicalNotes(listDomClinicalNotes(factory, filter));        
}
项目:openMAXIMS    文件:MyOrderImpl.java   
public ClinicalNotesLiteVoCollection listClinicalNotesByCareContextAndNoteType(CareContextRefVo careContext, ClinicalNoteType noteType)
{
    ClinicalNotesList impl = (ClinicalNotesList) getDomainImpl(ClinicalNotesListImpl.class);
    ClinicalNotesFilterVo voFilter = new ClinicalNotesFilterVo();

    voFilter.setNoteType(noteType);
    voFilter.setCareContext(careContext);

    return impl.listClinicalNoteLite(voFilter);
}
项目:openMAXIMS    文件:Logic.java   
private void search()
{

    form.getGlobalContext().Clinical.setCurrentClinicalNote(null);//WDEV-14286

    form.getGlobalContext().Core.setClinicalNotesShort(null);

    ClinicalNotesFilterVo filter = setFilter();

    ClinicalNotesShortVoCollection voCollNotes = domain.listClinicalNote(filter);
    form.dyngrdNotes().getRows().clear();
    updateControlsState();
    //-------------------------------------------------------------------
    if(form.dteFrom().getValue() != null && form.dteTo().getValue() != null )
        if(form.dteFrom().getValue().isGreaterThan(form.dteTo().getValue()))
        {
            engine.showMessage("Please enter From and To dates that are in chronological order");
            form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());//WDEV-16517
            return;
        }
    //--------------------------------------------------------------------
    if (voCollNotes == null || voCollNotes.size() == 0)
    {
        engine.showMessage("No matching records found");
        form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());
        return;
    }

    populateDynamicGrid(voCollNotes);
    updateControlsState();

    form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());
}
项目:openMAXIMS    文件:ClinicalNotesListImpl.java   
/**
* listClinicalNote
*/
public ims.core.vo.ClinicalNotesShortVoCollection listClinicalNote(ims.core.vo.ClinicalNotesFilterVo filter)
{
    DomainFactory factory = getDomainFactory();

    if(filter == null)  
        return ClinicalNotesShortVoAssembler.createClinicalNotesShortVoCollectionFromClinicalNotes(factory.listDomainObjects(ClinicalNotes.class)).sort(ims.framework.enumerations.SortOrder.DESCENDING);

    return ClinicalNotesShortVoAssembler.createClinicalNotesShortVoCollectionFromClinicalNotes(listDomClinicalNotes(factory, filter)).sort(ims.framework.enumerations.SortOrder.DESCENDING);        
}
项目:openMAXIMS    文件:ClinicalNotesListImpl.java   
public ClinicalNotesLiteVoCollection listClinicalNoteLite(ClinicalNotesFilterVo filter)
{
    DomainFactory factory = getDomainFactory();

    if(filter == null)  
        return ClinicalNotesLiteVoAssembler.createClinicalNotesLiteVoCollectionFromClinicalNotes(factory.listDomainObjects(ClinicalNotes.class));

    return ClinicalNotesLiteVoAssembler.createClinicalNotesLiteVoCollectionFromClinicalNotes(listDomClinicalNotes(factory, filter));        
}
项目:openmaxims-linux    文件:MyOrderImpl.java   
public ClinicalNotesLiteVoCollection listClinicalNotesByCareContextAndNoteType(CareContextRefVo careContext, ClinicalNoteType noteType)
{
    ClinicalNotesList impl = (ClinicalNotesList) getDomainImpl(ClinicalNotesListImpl.class);
    ClinicalNotesFilterVo voFilter = new ClinicalNotesFilterVo();

    voFilter.setNoteType(noteType);
    voFilter.setCareContext(careContext);

    return impl.listClinicalNoteLite(voFilter);
}
项目:openmaxims-linux    文件:Logic.java   
private void search()
{

    form.getGlobalContext().Clinical.setCurrentClinicalNote(null);//WDEV-14286

    form.getGlobalContext().Core.setClinicalNotesShort(null);

    ClinicalNotesFilterVo filter = setFilter();

    ClinicalNotesShortVoCollection voCollNotes = domain.listClinicalNote(filter);
    form.dyngrdNotes().getRows().clear();
    updateControlsState();
    //-------------------------------------------------------------------
    if(form.dteFrom().getValue() != null && form.dteTo().getValue() != null )
        if(form.dteFrom().getValue().isGreaterThan(form.dteTo().getValue()))
        {
            engine.showMessage("Please enter From and To dates that are in chronological order");
            form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());//WDEV-16517
            return;
        }
    //--------------------------------------------------------------------
    if (voCollNotes == null || voCollNotes.size() == 0)
    {
        engine.showMessage("No matching records found");
        form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());
        return;
    }

    populateDynamicGrid(voCollNotes);
    updateControlsState();

    form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());
}
项目:openmaxims-linux    文件:ClinicalNotesListImpl.java   
/**
* listClinicalNote
*/
public ims.core.vo.ClinicalNotesShortVoCollection listClinicalNote(ims.core.vo.ClinicalNotesFilterVo filter)
{
    DomainFactory factory = getDomainFactory();

    if(filter == null)  
        return ClinicalNotesShortVoAssembler.createClinicalNotesShortVoCollectionFromClinicalNotes(factory.listDomainObjects(ClinicalNotes.class)).sort(ims.framework.enumerations.SortOrder.DESCENDING);

    return ClinicalNotesShortVoAssembler.createClinicalNotesShortVoCollectionFromClinicalNotes(listDomClinicalNotes(factory, filter)).sort(ims.framework.enumerations.SortOrder.DESCENDING);        
}
项目:openmaxims-linux    文件:ClinicalNotesListImpl.java   
public ClinicalNotesLiteVoCollection listClinicalNoteLite(ClinicalNotesFilterVo filter)
{
    DomainFactory factory = getDomainFactory();

    if(filter == null)  
        return ClinicalNotesLiteVoAssembler.createClinicalNotesLiteVoCollectionFromClinicalNotes(factory.listDomainObjects(ClinicalNotes.class));

    return ClinicalNotesLiteVoAssembler.createClinicalNotesLiteVoCollectionFromClinicalNotes(listDomClinicalNotes(factory, filter));        
}
项目:AvoinApotti    文件:Logic.java   
private void doSearch(int iTab, ClinicalNotesFilterVo filter)
{
    ClinicalNotesShortVoCollection voCollNotes = domain.listClinicalNote(filter);
    form.dyngrdNotes().getRows().clear();

    if(voCollNotes == null || voCollNotes.size() == 0)
    {
        engine.showMessage("No matching records found");
        form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());
        return;
    }

    for(int i=0;i<voCollNotes.size();i++)
    {
        DynamicGridRow row = form.dyngrdNotes().getRows().newRow();

        if(iTab != TABDISCIPLINE && getCol("Patient") != null &&
                voCollNotes.get(i).getCareContextIsNotNull() &&
                    voCollNotes.get(i).getCareContext().getEpisodeOfCareIsNotNull() &&
                        voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpellIsNotNull() &&
                            voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatientIsNotNull())
        {
            setColPatient(voCollNotes, i, row); 
        }

        if(voCollNotes.get(i).getAuthoringInfoIsNotNull())
        {
            setColAuthoringDetails(voCollNotes, i, row);                    
        }

        if (voCollNotes.get(i).getForReviewDisciplineIsNotNull() 
                && voCollNotes.get(i).getSourceOfNoteIsNotNull()
                    && ! voCollNotes.get(i).getReviewingDateTimeIsNotNull()
                        && ! voCollNotes.get(i).getReviewingHCPIsNotNull())
        {
            setColNeedReviewed(row, voCollNotes, i);                    
        }

        if (voCollNotes.get(i).getIsCorrectedIsNotNull() 
            && voCollNotes.get(i).getIsCorrected().booleanValue())
        {
            setColCorrect(row);                 
        }

        if(voCollNotes.get(i).getDisciplineIsNotNull())
        {
            setColDiscipline(voCollNotes, i, row);                  
        }

        if(voCollNotes.get(i).getCurrentStatusIsNotNull() && voCollNotes.get(i).getCurrentStatus().getStatusIsNotNull() ) 
        {
            setColStatus(voCollNotes, i, row);
        }

        DynamicGridColumn col = getCol("Note");

        if(col == null)
            throw new DomainRuntimeException("No column for Identifier");

        DynamicGridCell noteCell = row.getCells().newCell( col, DynamicCellType.HTMLVIEW);
        noteCell.setValue(voCollNotes.get(i).getClinicalNote());

        row.setBackColor(Color.Bisque);
        row.setValue(voCollNotes.get(i));
    }

    form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());
}
项目:openMAXIMS    文件:Logic.java   
private void doSearch(int iTab, ClinicalNotesFilterVo filter)
{
    ClinicalNotesShortVoCollection voCollNotes = domain.listClinicalNote(filter);
    form.dyngrdNotes().getRows().clear();

    if(voCollNotes == null || voCollNotes.size() == 0)
    {
        engine.showMessage("No matching records found");
        form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());
        return;
    }

    for(int i=0;i<voCollNotes.size();i++)
    {
        DynamicGridRow row = form.dyngrdNotes().getRows().newRow();

        if(iTab != TABDISCIPLINE && getCol("Patient") != null &&
                voCollNotes.get(i).getCareContextIsNotNull() &&
                    voCollNotes.get(i).getCareContext().getEpisodeOfCareIsNotNull() &&
                        voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpellIsNotNull() &&
                            voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatientIsNotNull())
        {
            setColPatient(voCollNotes, i, row); 
        }

        if(voCollNotes.get(i).getAuthoringInfoIsNotNull())
        {
            setColAuthoringDetails(voCollNotes, i, row);                    
        }

        if (voCollNotes.get(i).getForReviewDisciplineIsNotNull() 
                && voCollNotes.get(i).getSourceOfNoteIsNotNull()
                    && ! voCollNotes.get(i).getReviewingDateTimeIsNotNull()
                        && ! voCollNotes.get(i).getReviewingHCPIsNotNull())
        {
            setColNeedReviewed(row, voCollNotes, i);                    
        }

        if (voCollNotes.get(i).getIsCorrectedIsNotNull() 
            && voCollNotes.get(i).getIsCorrected().booleanValue())
        {
            setColCorrect(row);                 
        }

        if(voCollNotes.get(i).getDisciplineIsNotNull())
        {
            setColDiscipline(voCollNotes, i, row);                  
        }

        if(voCollNotes.get(i).getCurrentStatusIsNotNull() && voCollNotes.get(i).getCurrentStatus().getStatusIsNotNull() ) 
        {
            setColStatus(voCollNotes, i, row);
        }

        DynamicGridColumn col = getCol("Note");

        if(col == null)
            throw new DomainRuntimeException("No column for Identifier");

        DynamicGridCell noteCell = row.getCells().newCell( col, DynamicCellType.HTMLVIEW);
        noteCell.setValue(voCollNotes.get(i).getClinicalNote());

        row.setBackColor(Color.Bisque);
        row.setValue(voCollNotes.get(i));
    }

    form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());
}
项目:openMAXIMS    文件:Logic.java   
private void doSearch(int iTab, ClinicalNotesFilterVo filter)
{
    ClinicalNotesShortVoCollection voCollNotes = domain.listClinicalNote(filter);
    form.dyngrdNotes().getRows().clear();

    if(voCollNotes == null || voCollNotes.size() == 0)
    {
        engine.showMessage("No matching records found");
        form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());
        return;
    }

    for(int i=0;i<voCollNotes.size();i++)
    {
        DynamicGridRow row = form.dyngrdNotes().getRows().newRow();

        if(iTab != TABDISCIPLINE && getCol("Patient") != null &&
                voCollNotes.get(i).getCareContextIsNotNull() &&
                    voCollNotes.get(i).getCareContext().getEpisodeOfCareIsNotNull() &&
                        voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpellIsNotNull() &&
                            voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatientIsNotNull())
        {
            setColPatient(voCollNotes, i, row); 
        }

        if(voCollNotes.get(i).getAuthoringInfoIsNotNull())
        {
            setColAuthoringDetails(voCollNotes, i, row);                    
        }

        if (voCollNotes.get(i).getForReviewDisciplineIsNotNull() 
                && voCollNotes.get(i).getSourceOfNoteIsNotNull()
                    && ! voCollNotes.get(i).getReviewingDateTimeIsNotNull()
                        && ! voCollNotes.get(i).getReviewingHCPIsNotNull())
        {
            setColNeedReviewed(row, voCollNotes, i);                    
        }

        if (voCollNotes.get(i).getIsCorrectedIsNotNull() 
            && voCollNotes.get(i).getIsCorrected().booleanValue())
        {
            setColCorrect(row);                 
        }

        if(voCollNotes.get(i).getDisciplineIsNotNull())
        {
            setColDiscipline(voCollNotes, i, row);                  
        }

        if(voCollNotes.get(i).getCurrentStatusIsNotNull() && voCollNotes.get(i).getCurrentStatus().getStatusIsNotNull() ) 
        {
            setColStatus(voCollNotes, i, row);
        }

        DynamicGridColumn col = getCol("Note");

        if(col == null)
            throw new DomainRuntimeException("No column for Identifier");

        DynamicGridCell noteCell = row.getCells().newCell( col, DynamicCellType.HTMLVIEW);
        noteCell.setValue(voCollNotes.get(i).getClinicalNote());

        row.setBackColor(Color.Bisque);
        row.setValue(voCollNotes.get(i));
    }

    form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());
}
项目:openmaxims-linux    文件:Logic.java   
private void doSearch(int iTab, ClinicalNotesFilterVo filter)
{
    ClinicalNotesShortVoCollection voCollNotes = domain.listClinicalNote(filter);
    form.dyngrdNotes().getRows().clear();

    if(voCollNotes == null || voCollNotes.size() == 0)
    {
        engine.showMessage("No matching records found");
        form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());
        return;
    }

    for(int i=0;i<voCollNotes.size();i++)
    {
        DynamicGridRow row = form.dyngrdNotes().getRows().newRow();

        if(iTab != TABDISCIPLINE && getCol("Patient") != null &&
                voCollNotes.get(i).getCareContextIsNotNull() &&
                    voCollNotes.get(i).getCareContext().getEpisodeOfCareIsNotNull() &&
                        voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpellIsNotNull() &&
                            voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatientIsNotNull())
        {
            setColPatient(voCollNotes, i, row); 
        }

        if(voCollNotes.get(i).getAuthoringInfoIsNotNull())
        {
            setColAuthoringDetails(voCollNotes, i, row);                    
        }

        if (voCollNotes.get(i).getForReviewDisciplineIsNotNull() 
                && voCollNotes.get(i).getSourceOfNoteIsNotNull()
                    && ! voCollNotes.get(i).getReviewingDateTimeIsNotNull()
                        && ! voCollNotes.get(i).getReviewingHCPIsNotNull())
        {
            setColNeedReviewed(row, voCollNotes, i);                    
        }

        if (voCollNotes.get(i).getIsCorrectedIsNotNull() 
            && voCollNotes.get(i).getIsCorrected().booleanValue())
        {
            setColCorrect(row);                 
        }

        if(voCollNotes.get(i).getDisciplineIsNotNull())
        {
            setColDiscipline(voCollNotes, i, row);                  
        }

        if(voCollNotes.get(i).getCurrentStatusIsNotNull() && voCollNotes.get(i).getCurrentStatus().getStatusIsNotNull() ) 
        {
            setColStatus(voCollNotes, i, row);
        }

        DynamicGridColumn col = getCol("Note");

        if(col == null)
            throw new DomainRuntimeException("No column for Identifier");

        DynamicGridCell noteCell = row.getCells().newCell( col, DynamicCellType.HTMLVIEW);
        noteCell.setValue(voCollNotes.get(i).getClinicalNote());

        row.setBackColor(Color.Bisque);
        row.setValue(voCollNotes.get(i));
    }

    form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());
}
项目:AvoinApotti    文件:PatientClinicalNotesImpl.java   
public ClinicalNotesShortVoCollection listClinicalNote(ClinicalNotesFilterVo filter)
{
    DomainFactory factory = getDomainFactory();

    if(filter == null)  
        return ClinicalNotesShortVoAssembler.createClinicalNotesShortVoCollectionFromClinicalNotes(factory.listDomainObjects(ClinicalNotes.class)).sort(ims.framework.enumerations.SortOrder.DESCENDING);

    return ClinicalNotesShortVoAssembler.createClinicalNotesShortVoCollectionFromClinicalNotes(listDomClinicalNotes(factory, filter)).sort(ims.framework.enumerations.SortOrder.DESCENDING);        

}
项目:openMAXIMS    文件:PatientClinicalNotesImpl.java   
public ClinicalNotesShortVoCollection listClinicalNote(ClinicalNotesFilterVo filter)
{
    DomainFactory factory = getDomainFactory();

    if(filter == null)  
        return ClinicalNotesShortVoAssembler.createClinicalNotesShortVoCollectionFromClinicalNotes(factory.listDomainObjects(ClinicalNotes.class)).sort(ims.framework.enumerations.SortOrder.DESCENDING);

    return ClinicalNotesShortVoAssembler.createClinicalNotesShortVoCollectionFromClinicalNotes(listDomClinicalNotes(factory, filter)).sort(ims.framework.enumerations.SortOrder.DESCENDING);        

}
项目:openMAXIMS    文件:PatientClinicalNotesImpl.java   
public ClinicalNotesShortVoCollection listClinicalNote(ClinicalNotesFilterVo filter)
{
    DomainFactory factory = getDomainFactory();

    if(filter == null)  
        return ClinicalNotesShortVoAssembler.createClinicalNotesShortVoCollectionFromClinicalNotes(factory.listDomainObjects(ClinicalNotes.class)).sort(ims.framework.enumerations.SortOrder.DESCENDING);

    return ClinicalNotesShortVoAssembler.createClinicalNotesShortVoCollectionFromClinicalNotes(listDomClinicalNotes(factory, filter)).sort(ims.framework.enumerations.SortOrder.DESCENDING);        

}