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

项目:AvoinApotti    文件:OPDMedExamImpl.java   
public CareContextShortVoCollection listOPDMedExamByCareContextShort(EpisodeofCareLiteVo voEpisodeOfCareLite)
{
    if (voEpisodeOfCareLite == null)
        throw new CodingRuntimeException("Episode of Care was not supplied. Mandatory argument");

    DomainFactory factory = getDomainFactory();
    String hql = "select careContext from ExamGen examGen where examGen.careContext.episodeOfCare.id = " + voEpisodeOfCareLite.getID_EpisodeOfCare(); 
    List investList = factory.find(hql);                            
    return CareContextShortVoAssembler.createCareContextShortVoCollectionFromCareContext(investList).sort(SortOrder.DESCENDING);
}
项目:AvoinApotti    文件:InvestigationsImpl.java   
public CareContextShortVoCollection listInvestigationsByCareContextShort(EpisodeofCareLiteVo voEpisodeOfCareLite)
{
    if (voEpisodeOfCareLite == null)
        throw new CodingRuntimeException("Episode of Care was not supplied. Mandatory argument");

    DomainFactory factory = getDomainFactory();
    String hql = "select careContext from Investigations t where t.careContext.episodeOfCare.id = " + voEpisodeOfCareLite.getID_EpisodeOfCare(); 
    List investList = factory.find(hql);                            
    return CareContextShortVoAssembler.createCareContextShortVoCollectionFromCareContext(investList).sort(SortOrder.DESCENDING);
}
项目:AvoinApotti    文件:CareSpellDialogImpl.java   
public EpisodeofCareLiteVo getEpisodeOfCare(String pasEpisodeId)
{
    DomainFactory factory=getDomainFactory();
    ArrayList<String> objects=new ArrayList <String>();
    objects.add("careContexts");
    objects.add("pasEvent");
    IMSCriteria imsc=new IMSCriteria(EpisodeOfCare.class,objects,factory);
    imsc.equal("pasEvent.pasEpisodeId", pasEpisodeId);
    List episodes=imsc.find();
    if (episodes.size()>0)
        return EpisodeofCareLiteVoAssembler.create((EpisodeOfCare)episodes.get(0));
    return null;
}
项目:AvoinApotti    文件:Logic.java   
@Override
//WDEV-16673
protected void onlyrEmergencyAttendanceTabChanged(LayerBridge tab)
{
    if (FormMode.VIEW.equals(form.getMode()))
    {
        grdPreviousHistoryRow selectedRow = form.grdPreviousHistory().getSelectedRow();

        if (selectedRow != null && selectedRow.getValue() != null && selectedRow.getValue() instanceof AttendanceDetailsVo)
        {
            form.getGlobalContext().Core.setCurrentCareContext(selectedRow.getValue()!=null ? ((AttendanceDetailsVo) selectedRow.getValue()).getCareContext():null);
            form.getGlobalContext().Emergency.setCurrentEmergencyAttendance(domain.getAttendanceDetails((AttendanceDetailsVo) selectedRow.getValue()));

            AttendanceDetailsVo selectedAttendance = form.getGlobalContext().Emergency.getCurrentEmergencyAttendance();
            CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext();
            EpisodeofCareLiteVo episodeOfCare = careContext.getEpisodeOfCare();
            PatientShort patient = form.getGlobalContext().Core.getPatientShort();

            if (tab.equals(form.lyrEmergencyAttendance().tabAttDet()))
            {
                form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().setValue(selectedRow.getValue());
            }
            else if (tab.equals(form.lyrEmergencyAttendance().tabChart()) && selectedRow.getValue() instanceof AttendanceDetailsVo)
            {
                form.lyrEmergencyAttendance().tabChart().ccChatRequested().initialize(selectedAttendance, patient, careContext, episodeOfCare);
                form.lyrEmergencyAttendance().tabChart().ccChatRequested().setValue(domain.getChartRequestedByEmergencyAttendance(selectedAttendance));

            }
            else if (tab.equals(form.lyrEmergencyAttendance().tabInvoices()) && selectedRow.getValue() instanceof AttendanceDetailsVo)
            {
                form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().initialize(selectedAttendance, patient, episodeOfCare, careContext);
                form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().setValue(domain.getAttendanceBillingByEmergencyAttendance(selectedAttendance));

            }
        }   
    }
    updateControlState();   
}
项目:openMAXIMS    文件:OPDMedExamImpl.java   
public CareContextShortVoCollection listOPDMedExamByCareContextShort(EpisodeofCareLiteVo voEpisodeOfCareLite)
{
    if (voEpisodeOfCareLite == null)
        throw new CodingRuntimeException("Episode of Care was not supplied. Mandatory argument");

    DomainFactory factory = getDomainFactory();
    String hql = "select careContext from ExamGen examGen where examGen.careContext.episodeOfCare.id = " + voEpisodeOfCareLite.getID_EpisodeOfCare(); 
    List investList = factory.find(hql);                            
    return CareContextShortVoAssembler.createCareContextShortVoCollectionFromCareContext(investList).sort(SortOrder.DESCENDING);
}
项目:openMAXIMS    文件:InvestigationsImpl.java   
public CareContextShortVoCollection listInvestigationsByCareContextShort(EpisodeofCareLiteVo voEpisodeOfCareLite)
{
    if (voEpisodeOfCareLite == null)
        throw new CodingRuntimeException("Episode of Care was not supplied. Mandatory argument");

    DomainFactory factory = getDomainFactory();
    String hql = "select careContext from Investigations t where t.careContext.episodeOfCare.id = " + voEpisodeOfCareLite.getID_EpisodeOfCare(); 
    List investList = factory.find(hql);                            
    return CareContextShortVoAssembler.createCareContextShortVoCollectionFromCareContext(investList).sort(SortOrder.DESCENDING);
}
项目:openMAXIMS    文件:CareSpellDialogImpl.java   
public EpisodeofCareLiteVo getEpisodeOfCare(String pasEpisodeId)
{
    DomainFactory factory=getDomainFactory();
    ArrayList<String> objects=new ArrayList <String>();
    objects.add("careContexts");
    objects.add("pasEvent");
    IMSCriteria imsc=new IMSCriteria(EpisodeOfCare.class,objects,factory);
    imsc.equal("pasEvent.pasEpisodeId", pasEpisodeId);
    List episodes=imsc.find();
    if (episodes.size()>0)
        return EpisodeofCareLiteVoAssembler.create((EpisodeOfCare)episodes.get(0));
    return null;
}
项目:openMAXIMS    文件:OPDMedExamImpl.java   
public CareContextShortVoCollection listOPDMedExamByCareContextShort(EpisodeofCareLiteVo voEpisodeOfCareLite)
{
    if (voEpisodeOfCareLite == null)
        throw new CodingRuntimeException("Episode of Care was not supplied. Mandatory argument");

    DomainFactory factory = getDomainFactory();
    String hql = "select careContext from ExamGen examGen where examGen.careContext.episodeOfCare.id = " + voEpisodeOfCareLite.getID_EpisodeOfCare(); 
    List investList = factory.find(hql);                            
    return CareContextShortVoAssembler.createCareContextShortVoCollectionFromCareContext(investList).sort(SortOrder.DESCENDING);
}
项目:openMAXIMS    文件:InvestigationsImpl.java   
public CareContextShortVoCollection listInvestigationsByCareContextShort(EpisodeofCareLiteVo voEpisodeOfCareLite)
{
    if (voEpisodeOfCareLite == null)
        throw new CodingRuntimeException("Episode of Care was not supplied. Mandatory argument");

    DomainFactory factory = getDomainFactory();
    String hql = "select careContext from Investigations t where t.careContext.episodeOfCare.id = " + voEpisodeOfCareLite.getID_EpisodeOfCare(); 
    List investList = factory.find(hql);                            
    return CareContextShortVoAssembler.createCareContextShortVoCollectionFromCareContext(investList).sort(SortOrder.DESCENDING);
}
项目:openMAXIMS    文件:CareSpellDialogImpl.java   
public EpisodeofCareLiteVo getEpisodeOfCare(String pasEpisodeId)
{
    DomainFactory factory=getDomainFactory();
    ArrayList<String> objects=new ArrayList <String>();
    objects.add("careContexts");
    objects.add("pasEvent");
    IMSCriteria imsc=new IMSCriteria(EpisodeOfCare.class,objects,factory);
    imsc.equal("pasEvent.pasEpisodeId", pasEpisodeId);
    List episodes=imsc.find();
    if (episodes.size()>0)
        return EpisodeofCareLiteVoAssembler.create((EpisodeOfCare)episodes.get(0));
    return null;
}
项目:openMAXIMS    文件:Logic.java   
@Override
//WDEV-16673
protected void onlyrEmergencyAttendanceTabChanged(LayerBridge tab)
{
    if (FormMode.VIEW.equals(form.getMode()))
    {
        grdPreviousHistoryRow selectedRow = form.grdPreviousHistory().getSelectedRow();

        if (selectedRow != null && selectedRow.getValue() != null && selectedRow.getValue() instanceof AttendanceDetailsVo)
        {
            form.getGlobalContext().Core.setCurrentCareContext(selectedRow.getValue()!=null ? ((AttendanceDetailsVo) selectedRow.getValue()).getCareContext():null);
            form.getGlobalContext().Emergency.setCurrentEmergencyAttendance(domain.getAttendanceDetails((AttendanceDetailsVo) selectedRow.getValue()));

            AttendanceDetailsVo selectedAttendance = form.getGlobalContext().Emergency.getCurrentEmergencyAttendance();
            CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext();
            EpisodeofCareLiteVo episodeOfCare = careContext.getEpisodeOfCare();
            PatientShort patient = form.getGlobalContext().Core.getPatientShort();

            if (tab.equals(form.lyrEmergencyAttendance().tabAttDet()))
            {
                form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().setValue(selectedRow.getValue());
            }
            else if (tab.equals(form.lyrEmergencyAttendance().tabChart()) && selectedRow.getValue() instanceof AttendanceDetailsVo)
            {
                form.lyrEmergencyAttendance().tabChart().ccChatRequested().initialize(selectedAttendance, patient, careContext, episodeOfCare);
                form.lyrEmergencyAttendance().tabChart().ccChatRequested().setValue(domain.getChartRequestedByEmergencyAttendance(selectedAttendance));

            }
            else if (tab.equals(form.lyrEmergencyAttendance().tabInvoices()) && selectedRow.getValue() instanceof AttendanceDetailsVo)
            {
                form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().initialize(selectedAttendance, patient, episodeOfCare, careContext);
                form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().setValue(domain.getAttendanceBillingByEmergencyAttendance(selectedAttendance));

            }
        }   
    }
    updateControlState();   
}
项目:openmaxims-linux    文件:OPDMedExamImpl.java   
public CareContextShortVoCollection listOPDMedExamByCareContextShort(EpisodeofCareLiteVo voEpisodeOfCareLite)
{
    if (voEpisodeOfCareLite == null)
        throw new CodingRuntimeException("Episode of Care was not supplied. Mandatory argument");

    DomainFactory factory = getDomainFactory();
    String hql = "select careContext from ExamGen examGen where examGen.careContext.episodeOfCare.id = " + voEpisodeOfCareLite.getID_EpisodeOfCare(); 
    List investList = factory.find(hql);                            
    return CareContextShortVoAssembler.createCareContextShortVoCollectionFromCareContext(investList).sort(SortOrder.DESCENDING);
}
项目:openmaxims-linux    文件:InvestigationsImpl.java   
public CareContextShortVoCollection listInvestigationsByCareContextShort(EpisodeofCareLiteVo voEpisodeOfCareLite)
{
    if (voEpisodeOfCareLite == null)
        throw new CodingRuntimeException("Episode of Care was not supplied. Mandatory argument");

    DomainFactory factory = getDomainFactory();
    String hql = "select careContext from Investigations t where t.careContext.episodeOfCare.id = " + voEpisodeOfCareLite.getID_EpisodeOfCare(); 
    List investList = factory.find(hql);                            
    return CareContextShortVoAssembler.createCareContextShortVoCollectionFromCareContext(investList).sort(SortOrder.DESCENDING);
}
项目:openmaxims-linux    文件:CareSpellDialogImpl.java   
public EpisodeofCareLiteVo getEpisodeOfCare(String pasEpisodeId)
{
    DomainFactory factory=getDomainFactory();
    ArrayList<String> objects=new ArrayList <String>();
    objects.add("careContexts");
    objects.add("pasEvent");
    IMSCriteria imsc=new IMSCriteria(EpisodeOfCare.class,objects,factory);
    imsc.equal("pasEvent.pasEpisodeId", pasEpisodeId);
    List episodes=imsc.find();
    if (episodes.size()>0)
        return EpisodeofCareLiteVoAssembler.create((EpisodeOfCare)episodes.get(0));
    return null;
}
项目:openmaxims-linux    文件:Logic.java   
@Override
//WDEV-16673
protected void onlyrEmergencyAttendanceTabChanged(LayerBridge tab)
{
    if (FormMode.VIEW.equals(form.getMode()))
    {
        grdPreviousHistoryRow selectedRow = form.grdPreviousHistory().getSelectedRow();

        if (selectedRow != null && selectedRow.getValue() != null && selectedRow.getValue() instanceof AttendanceDetailsVo)
        {
            form.getGlobalContext().Core.setCurrentCareContext(selectedRow.getValue()!=null ? ((AttendanceDetailsVo) selectedRow.getValue()).getCareContext():null);
            form.getGlobalContext().Emergency.setCurrentEmergencyAttendance(domain.getAttendanceDetails((AttendanceDetailsVo) selectedRow.getValue()));

            AttendanceDetailsVo selectedAttendance = form.getGlobalContext().Emergency.getCurrentEmergencyAttendance();
            CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext();
            EpisodeofCareLiteVo episodeOfCare = careContext.getEpisodeOfCare();
            PatientShort patient = form.getGlobalContext().Core.getPatientShort();

            if (tab.equals(form.lyrEmergencyAttendance().tabAttDet()))
            {
                form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().setValue(selectedRow.getValue());
            }
            else if (tab.equals(form.lyrEmergencyAttendance().tabChart()) && selectedRow.getValue() instanceof AttendanceDetailsVo)
            {
                form.lyrEmergencyAttendance().tabChart().ccChatRequested().initialize(selectedAttendance, patient, careContext, episodeOfCare);
                form.lyrEmergencyAttendance().tabChart().ccChatRequested().setValue(domain.getChartRequestedByEmergencyAttendance(selectedAttendance));

            }
            else if (tab.equals(form.lyrEmergencyAttendance().tabInvoices()) && selectedRow.getValue() instanceof AttendanceDetailsVo)
            {
                form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().initialize(selectedAttendance, patient, episodeOfCare, careContext);
                form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().setValue(domain.getAttendanceBillingByEmergencyAttendance(selectedAttendance));

            }
        }   
    }
    updateControlState();   
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrdPreviousHistorySelectionChanged() throws PresentationLogicException  
{
    //WDEV-16673
    grdPreviousHistoryRow selectedRow = form.grdPreviousHistory().getSelectedRow();

    if (selectedRow != null && selectedRow.getValue() != null)
    {

        form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().initialize();
        form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().setValue(selectedRow.getValue());

        if (selectedRow.getValue() instanceof AttendanceDetailsVo)
        {
            form.getGlobalContext().Core.setCurrentCareContext(((AttendanceDetailsVo) selectedRow.getValue()).getCareContext());
            form.getGlobalContext().Emergency.setCurrentEmergencyAttendance((AttendanceDetailsVo) selectedRow.getValue());
            form.getLocalContext().setSelectedRecord((AttendanceDetailsVo) selectedRow.getValue());
            form.getGlobalContext().Emergency.setSelectedEmergencyEpisode((EpisodeDetailsVo) selectedRow.getParentRow().getValue());

            AttendanceDetailsVo selectedAttendance = form.getGlobalContext().Emergency.getCurrentEmergencyAttendance();
            CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext();
            EpisodeofCareLiteVo episodeOfCare = careContext.getEpisodeOfCare();
            PatientShort patient = form.getGlobalContext().Core.getPatientShort();

            form.lyrEmergencyAttendance().tabChart().ccChatRequested().initialize(selectedAttendance, patient, careContext, episodeOfCare);
            form.lyrEmergencyAttendance().tabChart().ccChatRequested().setValue(domain.getChartRequestedByEmergencyAttendance(selectedAttendance));

            form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().initialize(selectedAttendance, patient, episodeOfCare, careContext);
            form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().setValue(domain.getAttendanceBillingByEmergencyAttendance(selectedAttendance));

            refreshPIDBarText();//WDEV-17332
        }
        else //WDEV-17332
        {

            ResetPIDBar(engine, form.getGlobalContext().Core.getPatientShort());//WDEV-17332
        }


    }   
    updateControlState();
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdPreviousHistorySelectionChanged() throws PresentationLogicException  
{
    //WDEV-16673
    grdPreviousHistoryRow selectedRow = form.grdPreviousHistory().getSelectedRow();

    if (selectedRow != null && selectedRow.getValue() != null)
    {
        AttendanceDetailsVo emergencyAttendance = null;
        EpisodeDetailsVo emergencyEpisode = null;

        form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().initialize();

        if (selectedRow.getValue() instanceof EmergencyAttendanceRefVo)
        {
            emergencyAttendance = domain.getAttendanceDetails((EmergencyAttendanceRefVo) selectedRow.getValue());
            form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().setValue(emergencyAttendance);
        }
        else if (selectedRow.getValue() instanceof EmergencyEpisodeRefVo)
        {
            emergencyEpisode = domain.getEmergencyEpisode((EmergencyEpisodeRefVo) selectedRow.getValue());
            form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().setValue(emergencyEpisode);
        }

        if (selectedRow.getValue() instanceof EmergencyAttendanceRefVo)
        {
            form.getGlobalContext().Core.setCurrentCareContext((emergencyAttendance).getCareContext());
            form.getGlobalContext().Emergency.setCurrentEmergencyAttendance(emergencyAttendance);
            form.getLocalContext().setSelectedRecord(emergencyAttendance);
            form.getGlobalContext().Emergency.setSelectedEmergencyEpisode(domain.getEmergencyEpisode((EmergencyEpisodeRefVo) selectedRow.getParentRow().getValue()));

            AttendanceDetailsVo selectedAttendance = form.getGlobalContext().Emergency.getCurrentEmergencyAttendance();
            CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext();
            EpisodeofCareLiteVo episodeOfCare = careContext.getEpisodeOfCare();
            PatientShort patient = form.getGlobalContext().Core.getPatientShort();

            form.lyrEmergencyAttendance().tabChart().ccChatRequested().initialize(selectedAttendance, patient, careContext, episodeOfCare);
            form.lyrEmergencyAttendance().tabChart().ccChatRequested().setValue(domain.getChartRequestedByEmergencyAttendance(selectedAttendance));

            form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().initialize(selectedAttendance, patient, episodeOfCare, careContext);
            form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().setValue(domain.getAttendanceBillingByEmergencyAttendance(selectedAttendance));

            //wdev-19015
            form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().initialize(selectedAttendance, patient, episodeOfCare, careContext);
            form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().setValue(domain.getEmergencyAttendanceNonInsuranceHealthCoverVo(selectedAttendance));
            //----------

            refreshPIDBarText();//WDEV-17332
        }
        else //WDEV-17332
        {

            ResetPIDBar(engine, form.getGlobalContext().Core.getPatientShort());//WDEV-17332
        }


    }   
    updateControlState();
}
项目:openMAXIMS    文件:Logic.java   
@Override
//WDEV-16673
protected void onlyrEmergencyAttendanceTabChanged(LayerBridge tab)
{
    if (FormMode.VIEW.equals(form.getMode()))
    {
        grdPreviousHistoryRow selectedRow = form.grdPreviousHistory().getSelectedRow();

        if (selectedRow != null && selectedRow.getValue() != null && selectedRow.getValue() instanceof EmergencyAttendanceShortVo)
        {
            form.getGlobalContext().Emergency.setCurrentEmergencyAttendance(domain.getAttendanceDetails((EmergencyAttendanceShortVo) selectedRow.getValue()));
            form.getGlobalContext().Core.setCurrentCareContext(form.getGlobalContext().Emergency.getCurrentEmergencyAttendance() != null ? form.getGlobalContext().Emergency.getCurrentEmergencyAttendance().getCareContext() : null);

            AttendanceDetailsVo selectedAttendance = form.getGlobalContext().Emergency.getCurrentEmergencyAttendance();
            CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext();
            EpisodeofCareLiteVo episodeOfCare = careContext.getEpisodeOfCare();
            PatientShort patient = form.getGlobalContext().Core.getPatientShort();

            if (tab.equals(form.lyrEmergencyAttendance().tabAttDet()))
            {
                form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().setValue(selectedAttendance);
            }
            else if (tab.equals(form.lyrEmergencyAttendance().tabChart()) && selectedRow.getValue() instanceof EmergencyAttendanceShortVo)
            {
                form.lyrEmergencyAttendance().tabChart().ccChatRequested().initialize(selectedAttendance, patient, careContext, episodeOfCare);
                form.lyrEmergencyAttendance().tabChart().ccChatRequested().setValue(domain.getChartRequestedByEmergencyAttendance(selectedAttendance));

            }
            else if (tab.equals(form.lyrEmergencyAttendance().tabInvoices()) && selectedRow.getValue() instanceof EmergencyAttendanceShortVo)
            {
                form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().initialize(selectedAttendance, patient, episodeOfCare, careContext);
                form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().setValue(domain.getAttendanceBillingByEmergencyAttendance(selectedAttendance));

            }
            else if( tab.equals(form.lyrEmergencyAttendance().tabInsuranceDetails()) && selectedRow.getValue() instanceof EmergencyAttendanceShortVo)                       //wdev-19015
            {
                form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().initialize(selectedAttendance, patient, episodeOfCare, careContext);
                form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().setValue(domain.getEmergencyAttendanceNonInsuranceHealthCoverVo(selectedAttendance));
            }

        }
        else if (selectedRow==null)
        {
            if (tab.equals(form.lyrEmergencyAttendance().tabAttDet()))
            {
                form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().setValue(null);
            }
            else if (tab.equals(form.lyrEmergencyAttendance().tabChart()))
            {
                form.lyrEmergencyAttendance().tabChart().ccChatRequested().initialize(null, null, null, null);
                form.lyrEmergencyAttendance().tabChart().ccChatRequested().setValue(null);

            }
            else if (tab.equals(form.lyrEmergencyAttendance().tabInvoices())) 
            {
                form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().initialize(null, null, null, null);
                form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().setValue(null);
            }
            else if( tab.equals(form.lyrEmergencyAttendance().tabInsuranceDetails()))                       
            {
                form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().initialize(null, null, null, null);
                form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().setValue(null);
            }
        }
    }
    updateControlState();   
}
项目:openMAXIMS    文件:AttendanceDetailsImpl.java   
public void rieAttendanceDetails(EmergencyAttendanceShortVo attendanceDetails, FormName formName, Integer patId, Integer contactId, Integer careContextId, String comment, CareContextShortVo carecontext, EpisodeofCareLiteVo episode, CareSpellVo carespell, EpisodeDetailsVo emergencyepisode, TrackingSendToAreaVo tracking) throws StaleObjectException
{
    if( episode == null &&  carespell == null && emergencyepisode == null)
    {

        if( attendanceDetails != null)
            markAsRie(attendanceDetails, formName, patId, contactId, careContextId, comment);
        if( carecontext != null)
            markAsRie(carecontext, formName, patId, contactId, careContextId, comment);
        if( tracking != null)
            markAsRie(tracking, formName, patId, contactId, careContextId, comment);

    }
    else
    {
        if( emergencyepisode != null)
            markAsRie(emergencyepisode, formName, patId, contactId, careContextId, comment);
        if( attendanceDetails != null)
            markAsRie(attendanceDetails, formName, patId, contactId, careContextId, comment);
        if( carecontext != null )
            markAsRie(carecontext, formName, patId, contactId, careContextId, comment);
        if( episode != null )
        {
            if( countCareContextByEpisodeOfcare(episode) == 0)  //wdev-19363
                markAsRie(episode, formName, patId, contactId, careContextId, comment);
        }
        if( carespell != null)
        {
            if( countEpisodeOfCareByCareSpell(carespell) == 0)  //wdev-19363
                markAsRie(carespell, formName, patId, contactId, careContextId, comment);
        }
        if( tracking != null)
            markAsRie(tracking, formName, patId, contactId, careContextId, comment);

    }



    if( attendanceDetails != null ) //wdev-17949
    {
        EmergencyAttendanceDetailsCc tempImpl = (EmergencyAttendanceDetailsCc)getDomainImpl(EmergencyAttendanceDetailsCcImpl.class);
        tempImpl.triggerAttendanceCancelRegistrationEvent(attendanceDetails);
    }


}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdPreviousHistorySelectionChanged() throws PresentationLogicException  
{
    //WDEV-16673
    grdPreviousHistoryRow selectedRow = form.grdPreviousHistory().getSelectedRow();

    if (selectedRow != null && selectedRow.getValue() != null)
    {

        form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().initialize();
        form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().setValue(selectedRow.getValue());

        if (selectedRow.getValue() instanceof AttendanceDetailsVo)
        {
            form.getGlobalContext().Core.setCurrentCareContext(((AttendanceDetailsVo) selectedRow.getValue()).getCareContext());
            form.getGlobalContext().Emergency.setCurrentEmergencyAttendance((AttendanceDetailsVo) selectedRow.getValue());
            form.getLocalContext().setSelectedRecord((AttendanceDetailsVo) selectedRow.getValue());
            form.getGlobalContext().Emergency.setSelectedEmergencyEpisode((EpisodeDetailsVo) selectedRow.getParentRow().getValue());

            AttendanceDetailsVo selectedAttendance = form.getGlobalContext().Emergency.getCurrentEmergencyAttendance();
            CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext();
            EpisodeofCareLiteVo episodeOfCare = careContext.getEpisodeOfCare();
            PatientShort patient = form.getGlobalContext().Core.getPatientShort();

            form.lyrEmergencyAttendance().tabChart().ccChatRequested().initialize(selectedAttendance, patient, careContext, episodeOfCare);
            form.lyrEmergencyAttendance().tabChart().ccChatRequested().setValue(domain.getChartRequestedByEmergencyAttendance(selectedAttendance));

            form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().initialize(selectedAttendance, patient, episodeOfCare, careContext);
            form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().setValue(domain.getAttendanceBillingByEmergencyAttendance(selectedAttendance));

            refreshPIDBarText();//WDEV-17332
        }
        else //WDEV-17332
        {

            ResetPIDBar(engine, form.getGlobalContext().Core.getPatientShort());//WDEV-17332
        }


    }   
    updateControlState();
}
项目:openmaxims-linux    文件:Logic.java   
protected void onGrdPreviousHistorySelectionChanged() throws PresentationLogicException  
{
    //WDEV-16673
    grdPreviousHistoryRow selectedRow = form.grdPreviousHistory().getSelectedRow();

    if (selectedRow != null && selectedRow.getValue() != null)
    {

        form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().initialize();
        form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().setValue(selectedRow.getValue());

        if (selectedRow.getValue() instanceof AttendanceDetailsVo)
        {
            form.getGlobalContext().Core.setCurrentCareContext(((AttendanceDetailsVo) selectedRow.getValue()).getCareContext());
            form.getGlobalContext().Emergency.setCurrentEmergencyAttendance((AttendanceDetailsVo) selectedRow.getValue());
            form.getLocalContext().setSelectedRecord((AttendanceDetailsVo) selectedRow.getValue());
            form.getGlobalContext().Emergency.setSelectedEmergencyEpisode((EpisodeDetailsVo) selectedRow.getParentRow().getValue());

            AttendanceDetailsVo selectedAttendance = form.getGlobalContext().Emergency.getCurrentEmergencyAttendance();
            CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext();
            EpisodeofCareLiteVo episodeOfCare = careContext.getEpisodeOfCare();
            PatientShort patient = form.getGlobalContext().Core.getPatientShort();

            form.lyrEmergencyAttendance().tabChart().ccChatRequested().initialize(selectedAttendance, patient, careContext, episodeOfCare);
            form.lyrEmergencyAttendance().tabChart().ccChatRequested().setValue(domain.getChartRequestedByEmergencyAttendance(selectedAttendance));

            form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().initialize(selectedAttendance, patient, episodeOfCare, careContext);
            form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().setValue(domain.getAttendanceBillingByEmergencyAttendance(selectedAttendance));

            refreshPIDBarText();//WDEV-17332
        }
        else //WDEV-17332
        {

            ResetPIDBar(engine, form.getGlobalContext().Core.getPatientShort());//WDEV-17332
        }


    }   
    updateControlState();
}