Java 类ims.nursing.vo.PlanOfCareNotingVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private PlanOfCareNotingVo populateDataFromScreenForNoting(PlanOfCareActionsVoCollection recordColl) 
    {
        PlanOfCareNotingVo pocNoting = form.getGlobalContext().getPlanOfCareActionsReview();
//      POCNoting CareContext
        pocNoting.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

        AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
        voAuthoringInformation.setAuthoringDateTime(form.customAuthoring().getValue().getAuthoringDateTime());
        voAuthoringInformation.setAuthoringHcp(form.customAuthoring().getValue().getAuthoringHcp());
        pocNoting.setAuthoringInformation(voAuthoringInformation);

        //POCNoting ReviewingHCP ReviewingDateTime
        pocNoting.setReviewingDateTime(form.customReviewing().getValue().getAuthoringDateTime());
        pocNoting.setReviewingHCP(form.customReviewing().getValue().getAuthoringHcp());

        pocNoting.setActionStatus(PlanOfCareActionStatus.ACTIVE);

        pocNoting.setActions(recordColl);

        return pocNoting;
    }
项目:openMAXIMS    文件:Logic.java   
private PlanOfCareNotingVo populateDataFromScreenForNoting(PlanOfCareActionsVoCollection recordColl) 
    {
        PlanOfCareNotingVo pocNoting = form.getGlobalContext().getPlanOfCareActionsReview();
//      POCNoting CareContext
        pocNoting.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

        AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
        voAuthoringInformation.setAuthoringDateTime(form.customAuthoring().getValue().getAuthoringDateTime());
        voAuthoringInformation.setAuthoringHcp(form.customAuthoring().getValue().getAuthoringHcp());
        pocNoting.setAuthoringInformation(voAuthoringInformation);

        //POCNoting ReviewingHCP ReviewingDateTime
        pocNoting.setReviewingDateTime(form.customReviewing().getValue().getAuthoringDateTime());
        pocNoting.setReviewingHCP(form.customReviewing().getValue().getAuthoringHcp());

        pocNoting.setActionStatus(PlanOfCareActionStatus.ACTIVE);

        pocNoting.setActions(recordColl);

        return pocNoting;
    }
项目:openMAXIMS    文件:Logic.java   
private PlanOfCareNotingVo populateDataFromScreenForNoting(PlanOfCareActionsVoCollection recordColl) 
    {
        PlanOfCareNotingVo pocNoting = form.getGlobalContext().getPlanOfCareActionsReview();
//      POCNoting CareContext
        pocNoting.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

        AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
        voAuthoringInformation.setAuthoringDateTime(form.customAuthoring().getValue().getAuthoringDateTime());
        voAuthoringInformation.setAuthoringHcp(form.customAuthoring().getValue().getAuthoringHcp());
        pocNoting.setAuthoringInformation(voAuthoringInformation);

        //POCNoting ReviewingHCP ReviewingDateTime
        pocNoting.setReviewingDateTime(form.customReviewing().getValue().getAuthoringDateTime());
        pocNoting.setReviewingHCP(form.customReviewing().getValue().getAuthoringHcp());

        pocNoting.setActionStatus(PlanOfCareActionStatus.ACTIVE);

        pocNoting.setActions(recordColl);

        return pocNoting;
    }
项目:openmaxims-linux    文件:Logic.java   
private PlanOfCareNotingVo populateDataFromScreenForNoting(PlanOfCareActionsVoCollection recordColl) 
    {
        PlanOfCareNotingVo pocNoting = form.getGlobalContext().getPlanOfCareActionsReview();
//      POCNoting CareContext
        pocNoting.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

        AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
        voAuthoringInformation.setAuthoringDateTime(form.customAuthoring().getValue().getAuthoringDateTime());
        voAuthoringInformation.setAuthoringHcp(form.customAuthoring().getValue().getAuthoringHcp());
        pocNoting.setAuthoringInformation(voAuthoringInformation);

        //POCNoting ReviewingHCP ReviewingDateTime
        pocNoting.setReviewingDateTime(form.customReviewing().getValue().getAuthoringDateTime());
        pocNoting.setReviewingHCP(form.customReviewing().getValue().getAuthoringHcp());

        pocNoting.setActionStatus(PlanOfCareActionStatus.ACTIVE);

        pocNoting.setActions(recordColl);

        return pocNoting;
    }
项目:AvoinApotti    文件:Logic.java   
private boolean save() 
{
    PlanOfCareActionsVoCollection recordColl = populateDataFromScreen();        




    if(recordColl != null)
    {
        PlanOfCareNotingVo recordNoting = populateDataFromScreenForNoting(recordColl);


        String[] uiErrors = getUiErrors();
        String[] errors = recordNoting.validate(uiErrors);
        if(errors != null && errors.length > 0)
        {
            engine.showErrors(errors);
            return false;
        }
        try
        {   
            domain.saveNewActions(recordColl, recordNoting);    
        }
        catch(StaleObjectException e)
        {
            engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            return false;
        }

    return true;

    }
    return false;   
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrdChronologicalSelectionChanged() throws PresentationLogicException 
{
    if (form.lyr1().tabChronological().grdChronological().getSelectedRow().getValue() != null)
    {
        PlanOfCareNotingVo voItem = form.lyr1().tabChronological().grdChronological().getSelectedRow().getValue();

        if (voItem.getActionStatusIsNotNull() &&
                voItem.getActionStatus().equals(PlanOfCareActionStatus.REQUIRES_CONFIRMATION) &&
                returnFlagStatus())
        {
            if (voItem.getActionStatus().equals(PlanOfCareActionStatus.REQUIRES_CONFIRMATION))
            {
                form.getContextMenus().getGenericGridAddItem().setText("Review Actions");
                form.getContextMenus().getGenericGridAddItem().setVisible(true);
            }
            else
            {
                form.getContextMenus().getGenericGridAddItem().setVisible(false);

            }
        }
        else
        {
            form.getContextMenus().getGenericGridAddItem().setVisible(false);
        }
        form.getGlobalContext().setPlanOfCareActionsReview(voItem);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateCustomControls() 
{
    PlanOfCareNotingVo voItem = form.getGlobalContext().getPlanOfCareActionsReview();

    if (voItem.getAuthoringInformationIsNotNull())
    {
        AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
        voAuthoringInformation.setAuthoringDateTime(voItem.getAuthoringInformation().getAuthoringDateTime());
        voAuthoringInformation.setAuthoringHcp(voItem.getAuthoringInformation().getAuthoringHcp());
        form.customAuthoring().setValue(voAuthoringInformation);
    }

    if (voItem.getReviewingDateTimeIsNotNull() &&
            voItem.getReviewingHCPIsNotNull())
    {
        AuthoringInformationVo voReviewingInformation = new AuthoringInformationVo();
        voReviewingInformation.setAuthoringDateTime(voItem.getReviewingDateTime());
        voReviewingInformation.setAuthoringHcp(voItem.getReviewingHCP());
        form.customReviewing().setValue(voReviewingInformation);
    }   
    else
    {
        form.customReviewing().initializeComponent();
    }
    form.setcustomAuthoringEnabled(false);
    form.setcustomReviewingEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
private void open()
{
    PlanOfCareNotingVo voItem = form.getGlobalContext().getPlanOfCareActionsReview();
    PlanOfCareActionsVoCollection voColl = voItem.getActions(); 

    if(voColl != null)
    {
        for(int i = 0; i < voColl.size(); i++)
        {
            addNewActionRowRecord(voColl.get(i));
        }
    }       
}
项目:AvoinApotti    文件:Logic.java   
private boolean save() 
{
    PlanOfCareActionsVoCollection recordColl = populateDataFromScreen();
    PlanOfCareNotingVo recordNoting = populateDataFromScreenForNoting(recordColl);

    String[] uiErrors = getUiErrors();
    String[] errors = recordNoting.validate(uiErrors);
    if(errors != null && errors.length > 0)
    {
        engine.showErrors(errors);  
        return false;
    }

    try
    {   
        domain.saveActionsReview(recordColl, recordNoting);
    }

    catch(StaleObjectException e)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());

        return false;
    }

    return true;
}
项目:AvoinApotti    文件:PlanOfCareActionsImpl.java   
public void saveNewActions(PlanOfCareActionsVoCollection voPlanOfCareActionColl, PlanOfCareNotingVo voPlanOfCareNoting) throws StaleObjectException 
{
    if(voPlanOfCareActionColl == null)
        throw new DomainRuntimeException("Invalid records");
    if(!voPlanOfCareActionColl.isValidated())
        throw new CodingRuntimeException("Records not validated");

    DomainFactory factory = getDomainFactory();

    PlanOfCareNoting doPlanOfCareNoting = PlanOfCareNotingVoAssembler.extractPlanOfCareNoting(factory, voPlanOfCareNoting);
    factory.save(doPlanOfCareNoting);
}
项目:openMAXIMS    文件:Logic.java   
private boolean save() 
{
    PlanOfCareActionsVoCollection recordColl = populateDataFromScreen();        




    if(recordColl != null)
    {
        PlanOfCareNotingVo recordNoting = populateDataFromScreenForNoting(recordColl);


        String[] uiErrors = getUiErrors();
        String[] errors = recordNoting.validate(uiErrors);
        if(errors != null && errors.length > 0)
        {
            engine.showErrors(errors);
            return false;
        }
        try
        {   
            domain.saveNewActions(recordColl, recordNoting);    
        }
        catch(StaleObjectException e)
        {
            engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            return false;
        }

    return true;

    }
    return false;   
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdChronologicalSelectionChanged() throws PresentationLogicException 
{
    if (form.lyr1().tabChronological().grdChronological().getSelectedRow().getValue() != null)
    {
        PlanOfCareNotingVo voItem = form.lyr1().tabChronological().grdChronological().getSelectedRow().getValue();

        if (voItem.getActionStatusIsNotNull() &&
                voItem.getActionStatus().equals(PlanOfCareActionStatus.REQUIRES_CONFIRMATION) &&
                returnFlagStatus())
        {
            if (voItem.getActionStatus().equals(PlanOfCareActionStatus.REQUIRES_CONFIRMATION))
            {
                form.getContextMenus().getGenericGridAddItem().setText("Review Actions");
                form.getContextMenus().getGenericGridAddItem().setVisible(true);
            }
            else
            {
                form.getContextMenus().getGenericGridAddItem().setVisible(false);

            }
        }
        else
        {
            form.getContextMenus().getGenericGridAddItem().setVisible(false);
        }
        form.getGlobalContext().setPlanOfCareActionsReview(voItem);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateCustomControls() 
{
    PlanOfCareNotingVo voItem = form.getGlobalContext().getPlanOfCareActionsReview();

    if (voItem.getAuthoringInformationIsNotNull())
    {
        AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
        voAuthoringInformation.setAuthoringDateTime(voItem.getAuthoringInformation().getAuthoringDateTime());
        voAuthoringInformation.setAuthoringHcp(voItem.getAuthoringInformation().getAuthoringHcp());
        form.customAuthoring().setValue(voAuthoringInformation);
    }

    if (voItem.getReviewingDateTimeIsNotNull() &&
            voItem.getReviewingHCPIsNotNull())
    {
        AuthoringInformationVo voReviewingInformation = new AuthoringInformationVo();
        voReviewingInformation.setAuthoringDateTime(voItem.getReviewingDateTime());
        voReviewingInformation.setAuthoringHcp(voItem.getReviewingHCP());
        form.customReviewing().setValue(voReviewingInformation);
    }   
    else
    {
        form.customReviewing().initializeComponent();
    }
    form.setcustomAuthoringEnabled(false);
    form.setcustomReviewingEnabled(false);
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    PlanOfCareNotingVo voItem = form.getGlobalContext().getPlanOfCareActionsReview();
    PlanOfCareActionsVoCollection voColl = voItem.getActions(); 

    if(voColl != null)
    {
        for(int i = 0; i < voColl.size(); i++)
        {
            addNewActionRowRecord(voColl.get(i));
        }
    }       
}
项目:openMAXIMS    文件:Logic.java   
private boolean save() 
{
    PlanOfCareActionsVoCollection recordColl = populateDataFromScreen();
    PlanOfCareNotingVo recordNoting = populateDataFromScreenForNoting(recordColl);

    String[] uiErrors = getUiErrors();
    String[] errors = recordNoting.validate(uiErrors);
    if(errors != null && errors.length > 0)
    {
        engine.showErrors(errors);  
        return false;
    }

    try
    {   
        domain.saveActionsReview(recordColl, recordNoting);
    }

    catch(StaleObjectException e)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());

        return false;
    }

    return true;
}
项目:openMAXIMS    文件:PlanOfCareActionsImpl.java   
public void saveNewActions(PlanOfCareActionsVoCollection voPlanOfCareActionColl, PlanOfCareNotingVo voPlanOfCareNoting) throws StaleObjectException 
{
    if(voPlanOfCareActionColl == null)
        throw new DomainRuntimeException("Invalid records");
    if(!voPlanOfCareActionColl.isValidated())
        throw new CodingRuntimeException("Records not validated");

    DomainFactory factory = getDomainFactory();

    PlanOfCareNoting doPlanOfCareNoting = PlanOfCareNotingVoAssembler.extractPlanOfCareNoting(factory, voPlanOfCareNoting);
    factory.save(doPlanOfCareNoting);
}
项目:openMAXIMS    文件:Logic.java   
private boolean save() 
{
    PlanOfCareActionsVoCollection recordColl = populateDataFromScreen();        




    if(recordColl != null)
    {
        PlanOfCareNotingVo recordNoting = populateDataFromScreenForNoting(recordColl);


        String[] uiErrors = getUiErrors();
        String[] errors = recordNoting.validate(uiErrors);
        if(errors != null && errors.length > 0)
        {
            engine.showErrors(errors);
            return false;
        }
        try
        {   
            domain.saveNewActions(recordColl, recordNoting);    
        }
        catch(StaleObjectException e)
        {
            engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            return false;
        }

    return true;

    }
    return false;   
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdChronologicalSelectionChanged() throws PresentationLogicException 
{
    if (form.lyr1().tabChronological().grdChronological().getSelectedRow().getValue() != null)
    {
        PlanOfCareNotingVo voItem = form.lyr1().tabChronological().grdChronological().getSelectedRow().getValue();

        if (voItem.getActionStatusIsNotNull() &&
                voItem.getActionStatus().equals(PlanOfCareActionStatus.REQUIRES_CONFIRMATION) &&
                returnFlagStatus())
        {
            if (voItem.getActionStatus().equals(PlanOfCareActionStatus.REQUIRES_CONFIRMATION))
            {
                form.getContextMenus().getGenericGridAddItem().setText("Review Actions");
                form.getContextMenus().getGenericGridAddItem().setVisible(true);
            }
            else
            {
                form.getContextMenus().getGenericGridAddItem().setVisible(false);

            }
        }
        else
        {
            form.getContextMenus().getGenericGridAddItem().setVisible(false);
        }
        form.getGlobalContext().setPlanOfCareActionsReview(voItem);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateCustomControls() 
{
    PlanOfCareNotingVo voItem = form.getGlobalContext().getPlanOfCareActionsReview();

    if (voItem.getAuthoringInformationIsNotNull())
    {
        AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
        voAuthoringInformation.setAuthoringDateTime(voItem.getAuthoringInformation().getAuthoringDateTime());
        voAuthoringInformation.setAuthoringHcp(voItem.getAuthoringInformation().getAuthoringHcp());
        form.customAuthoring().setValue(voAuthoringInformation);
    }

    if (voItem.getReviewingDateTimeIsNotNull() &&
            voItem.getReviewingHCPIsNotNull())
    {
        AuthoringInformationVo voReviewingInformation = new AuthoringInformationVo();
        voReviewingInformation.setAuthoringDateTime(voItem.getReviewingDateTime());
        voReviewingInformation.setAuthoringHcp(voItem.getReviewingHCP());
        form.customReviewing().setValue(voReviewingInformation);
    }   
    else
    {
        form.customReviewing().initializeComponent();
    }
    form.setcustomAuthoringEnabled(false);
    form.setcustomReviewingEnabled(false);
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    PlanOfCareNotingVo voItem = form.getGlobalContext().getPlanOfCareActionsReview();
    PlanOfCareActionsVoCollection voColl = voItem.getActions(); 

    if(voColl != null)
    {
        for(int i = 0; i < voColl.size(); i++)
        {
            addNewActionRowRecord(voColl.get(i));
        }
    }       
}
项目:openMAXIMS    文件:Logic.java   
private boolean save() 
{
    PlanOfCareActionsVoCollection recordColl = populateDataFromScreen();
    PlanOfCareNotingVo recordNoting = populateDataFromScreenForNoting(recordColl);

    String[] uiErrors = getUiErrors();
    String[] errors = recordNoting.validate(uiErrors);
    if(errors != null && errors.length > 0)
    {
        engine.showErrors(errors);  
        return false;
    }

    try
    {   
        domain.saveActionsReview(recordColl, recordNoting);
    }

    catch(StaleObjectException e)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());

        return false;
    }

    return true;
}
项目:openMAXIMS    文件:PlanOfCareActionsImpl.java   
public void saveNewActions(PlanOfCareActionsVoCollection voPlanOfCareActionColl, PlanOfCareNotingVo voPlanOfCareNoting) throws StaleObjectException 
{
    if(voPlanOfCareActionColl == null)
        throw new DomainRuntimeException("Invalid records");
    if(!voPlanOfCareActionColl.isValidated())
        throw new CodingRuntimeException("Records not validated");

    DomainFactory factory = getDomainFactory();

    PlanOfCareNoting doPlanOfCareNoting = PlanOfCareNotingVoAssembler.extractPlanOfCareNoting(factory, voPlanOfCareNoting);
    factory.save(doPlanOfCareNoting);
}
项目:openmaxims-linux    文件:Logic.java   
private boolean save() 
{
    PlanOfCareActionsVoCollection recordColl = populateDataFromScreen();        




    if(recordColl != null)
    {
        PlanOfCareNotingVo recordNoting = populateDataFromScreenForNoting(recordColl);


        String[] uiErrors = getUiErrors();
        String[] errors = recordNoting.validate(uiErrors);
        if(errors != null && errors.length > 0)
        {
            engine.showErrors(errors);
            return false;
        }
        try
        {   
            domain.saveNewActions(recordColl, recordNoting);    
        }
        catch(StaleObjectException e)
        {
            engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            return false;
        }

    return true;

    }
    return false;   
}
项目:openmaxims-linux    文件:Logic.java   
protected void onGrdChronologicalSelectionChanged() throws PresentationLogicException 
{
    if (form.lyr1().tabChronological().grdChronological().getSelectedRow().getValue() != null)
    {
        PlanOfCareNotingVo voItem = form.lyr1().tabChronological().grdChronological().getSelectedRow().getValue();

        if (voItem.getActionStatusIsNotNull() &&
                voItem.getActionStatus().equals(PlanOfCareActionStatus.REQUIRES_CONFIRMATION) &&
                returnFlagStatus())
        {
            if (voItem.getActionStatus().equals(PlanOfCareActionStatus.REQUIRES_CONFIRMATION))
            {
                form.getContextMenus().getGenericGridAddItem().setText("Review Actions");
                form.getContextMenus().getGenericGridAddItem().setVisible(true);
            }
            else
            {
                form.getContextMenus().getGenericGridAddItem().setVisible(false);

            }
        }
        else
        {
            form.getContextMenus().getGenericGridAddItem().setVisible(false);
        }
        form.getGlobalContext().setPlanOfCareActionsReview(voItem);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateCustomControls() 
{
    PlanOfCareNotingVo voItem = form.getGlobalContext().getPlanOfCareActionsReview();

    if (voItem.getAuthoringInformationIsNotNull())
    {
        AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
        voAuthoringInformation.setAuthoringDateTime(voItem.getAuthoringInformation().getAuthoringDateTime());
        voAuthoringInformation.setAuthoringHcp(voItem.getAuthoringInformation().getAuthoringHcp());
        form.customAuthoring().setValue(voAuthoringInformation);
    }

    if (voItem.getReviewingDateTimeIsNotNull() &&
            voItem.getReviewingHCPIsNotNull())
    {
        AuthoringInformationVo voReviewingInformation = new AuthoringInformationVo();
        voReviewingInformation.setAuthoringDateTime(voItem.getReviewingDateTime());
        voReviewingInformation.setAuthoringHcp(voItem.getReviewingHCP());
        form.customReviewing().setValue(voReviewingInformation);
    }   
    else
    {
        form.customReviewing().initializeComponent();
    }
    form.setcustomAuthoringEnabled(false);
    form.setcustomReviewingEnabled(false);
}
项目:openmaxims-linux    文件:Logic.java   
private void open()
{
    PlanOfCareNotingVo voItem = form.getGlobalContext().getPlanOfCareActionsReview();
    PlanOfCareActionsVoCollection voColl = voItem.getActions(); 

    if(voColl != null)
    {
        for(int i = 0; i < voColl.size(); i++)
        {
            addNewActionRowRecord(voColl.get(i));
        }
    }       
}
项目:openmaxims-linux    文件:Logic.java   
private boolean save() 
{
    PlanOfCareActionsVoCollection recordColl = populateDataFromScreen();
    PlanOfCareNotingVo recordNoting = populateDataFromScreenForNoting(recordColl);

    String[] uiErrors = getUiErrors();
    String[] errors = recordNoting.validate(uiErrors);
    if(errors != null && errors.length > 0)
    {
        engine.showErrors(errors);  
        return false;
    }

    try
    {   
        domain.saveActionsReview(recordColl, recordNoting);
    }

    catch(StaleObjectException e)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());

        return false;
    }

    return true;
}
项目:openmaxims-linux    文件:PlanOfCareActionsImpl.java   
public void saveNewActions(PlanOfCareActionsVoCollection voPlanOfCareActionColl, PlanOfCareNotingVo voPlanOfCareNoting) throws StaleObjectException 
{
    if(voPlanOfCareActionColl == null)
        throw new DomainRuntimeException("Invalid records");
    if(!voPlanOfCareActionColl.isValidated())
        throw new CodingRuntimeException("Records not validated");

    DomainFactory factory = getDomainFactory();

    PlanOfCareNoting doPlanOfCareNoting = PlanOfCareNotingVoAssembler.extractPlanOfCareNoting(factory, voPlanOfCareNoting);
    factory.save(doPlanOfCareNoting);
}