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

项目:AvoinApotti    文件:Logic.java   
private void setCustomCompomentValue(IComponent customControl, PlanOfCareVo record) 
{
    AuthoringInformationVo voAuthoringStart = new AuthoringInformationVo();
    if (customControl.equals(form.lyrPOC().tabPocDetails().customStart()))
    {
        voAuthoringStart.setAuthoringDateTime(record.getStartDateTime());
        voAuthoringStart.setAuthoringHcp(record.getStartHCP());
    }
    if (customControl.equals(form.lyrPOC().tabPocDetails().customResolved()))
    {
        voAuthoringStart.setAuthoringDateTime(record.getResolvedDateTime());
        voAuthoringStart.setAuthoringHcp(record.getResolvingHCP());
    }
    if (customControl.equals(form.lyrPOC().tabPocDetails().customConfirming()))
    {
        voAuthoringStart.setAuthoringDateTime(record.getConfirmingDateTime());
        voAuthoringStart.setAuthoringHcp(record.getConfirmingHCP());
    }

    customControl.setValue(voAuthoringStart);
}
项目:AvoinApotti    文件:Logic.java   
protected void onDyngrdPOCCellButtonClicked(DynamicGridCell cell) 
{
    if (cell != null && cell.getType().equals(DynamicCellType.IMAGEBUTTON))
    {
        if(cell.getRow().getValue() instanceof PlanOfCareListVo)
        {
            PlanOfCareVo record = new PlanOfCareVo();
            PlanOfCareLiteVo voRow = (PlanOfCareLiteVo) cell.getRow().getValue();
            record = domain.getPlanOfCare(voRow);
            form.getLocalContext().setSelectedRecord(record);

            String url = getUrlText(record);
            if(url != null && url.length() > 0)
            {
                engine.openUrl(url);
            }       
        }
    }       
}
项目:AvoinApotti    文件:PlanOfCareImpl.java   
public PlanOfCareVo savePlanOfCare(PlanOfCareVo record) throws StaleObjectException 
{
    if(record == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }
    if(!record.isValidated())
    {
        throw new CodingRuntimeException("Record not validated");
    }

    DomainFactory factory = getDomainFactory();
    PlanOfCare domainRecord = PlanOfCareVoAssembler.extractPlanOfCare(factory, record);     

    factory.save(domainRecord);

    return PlanOfCareVoAssembler.create(domainRecord);
}
项目:openMAXIMS    文件:Logic.java   
private void setCustomCompomentValue(IComponent customControl, PlanOfCareVo record) 
{
    AuthoringInformationVo voAuthoringStart = new AuthoringInformationVo();
    if (customControl.equals(form.lyrPOC().tabPocDetails().customStart()))
    {
        voAuthoringStart.setAuthoringDateTime(record.getStartDateTime());
        voAuthoringStart.setAuthoringHcp(record.getStartHCP());
    }
    if (customControl.equals(form.lyrPOC().tabPocDetails().customResolved()))
    {
        voAuthoringStart.setAuthoringDateTime(record.getResolvedDateTime());
        voAuthoringStart.setAuthoringHcp(record.getResolvingHCP());
    }
    if (customControl.equals(form.lyrPOC().tabPocDetails().customConfirming()))
    {
        voAuthoringStart.setAuthoringDateTime(record.getConfirmingDateTime());
        voAuthoringStart.setAuthoringHcp(record.getConfirmingHCP());
    }

    customControl.setValue(voAuthoringStart);
}
项目:openMAXIMS    文件:Logic.java   
protected void onDyngrdPOCCellButtonClicked(DynamicGridCell cell) 
{
    if (cell != null && cell.getType().equals(DynamicCellType.IMAGEBUTTON))
    {
        if(cell.getRow().getValue() instanceof PlanOfCareListVo)
        {
            PlanOfCareVo record = new PlanOfCareVo();
            PlanOfCareLiteVo voRow = (PlanOfCareLiteVo) cell.getRow().getValue();
            record = domain.getPlanOfCare(voRow);
            form.getLocalContext().setSelectedRecord(record);

            String url = getUrlText(record);
            if(url != null && url.length() > 0)
            {
                engine.openUrl(url);
            }       
        }
    }       
}
项目:openMAXIMS    文件:PlanOfCareImpl.java   
public PlanOfCareVo savePlanOfCare(PlanOfCareVo record) throws StaleObjectException 
{
    if(record == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }
    if(!record.isValidated())
    {
        throw new CodingRuntimeException("Record not validated");
    }

    DomainFactory factory = getDomainFactory();
    PlanOfCare domainRecord = PlanOfCareVoAssembler.extractPlanOfCare(factory, record);     

    factory.save(domainRecord);

    return PlanOfCareVoAssembler.create(domainRecord);
}
项目:openMAXIMS    文件:Logic.java   
private void setCustomCompomentValue(IComponent customControl, PlanOfCareVo record) 
{
    AuthoringInformationVo voAuthoringStart = new AuthoringInformationVo();
    if (customControl.equals(form.lyrPOC().tabPocDetails().customStart()))
    {
        voAuthoringStart.setAuthoringDateTime(record.getStartDateTime());
        voAuthoringStart.setAuthoringHcp(record.getStartHCP());
    }
    if (customControl.equals(form.lyrPOC().tabPocDetails().customResolved()))
    {
        voAuthoringStart.setAuthoringDateTime(record.getResolvedDateTime());
        voAuthoringStart.setAuthoringHcp(record.getResolvingHCP());
    }
    if (customControl.equals(form.lyrPOC().tabPocDetails().customConfirming()))
    {
        voAuthoringStart.setAuthoringDateTime(record.getConfirmingDateTime());
        voAuthoringStart.setAuthoringHcp(record.getConfirmingHCP());
    }

    customControl.setValue(voAuthoringStart);
}
项目:openMAXIMS    文件:Logic.java   
protected void onDyngrdPOCCellButtonClicked(DynamicGridCell cell) 
{
    if (cell != null && cell.getType().equals(DynamicCellType.IMAGEBUTTON))
    {
        if(cell.getRow().getValue() instanceof PlanOfCareListVo)
        {
            PlanOfCareVo record = new PlanOfCareVo();
            PlanOfCareLiteVo voRow = (PlanOfCareLiteVo) cell.getRow().getValue();
            record = domain.getPlanOfCare(voRow);
            form.getLocalContext().setSelectedRecord(record);

            String url = getUrlText(record);
            if(url != null && url.length() > 0)
            {
                engine.openUrl(url);
            }       
        }
    }       
}
项目:openMAXIMS    文件:PlanOfCareImpl.java   
public PlanOfCareVo savePlanOfCare(PlanOfCareVo record) throws StaleObjectException 
{
    if(record == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }
    if(!record.isValidated())
    {
        throw new CodingRuntimeException("Record not validated");
    }

    DomainFactory factory = getDomainFactory();
    PlanOfCare domainRecord = PlanOfCareVoAssembler.extractPlanOfCare(factory, record);     

    factory.save(domainRecord);

    return PlanOfCareVoAssembler.create(domainRecord);
}
项目:openmaxims-linux    文件:Logic.java   
private void setCustomCompomentValue(IComponent customControl, PlanOfCareVo record) 
{
    AuthoringInformationVo voAuthoringStart = new AuthoringInformationVo();
    if (customControl.equals(form.lyrPOC().tabPocDetails().customStart()))
    {
        voAuthoringStart.setAuthoringDateTime(record.getStartDateTime());
        voAuthoringStart.setAuthoringHcp(record.getStartHCP());
    }
    if (customControl.equals(form.lyrPOC().tabPocDetails().customResolved()))
    {
        voAuthoringStart.setAuthoringDateTime(record.getResolvedDateTime());
        voAuthoringStart.setAuthoringHcp(record.getResolvingHCP());
    }
    if (customControl.equals(form.lyrPOC().tabPocDetails().customConfirming()))
    {
        voAuthoringStart.setAuthoringDateTime(record.getConfirmingDateTime());
        voAuthoringStart.setAuthoringHcp(record.getConfirmingHCP());
    }

    customControl.setValue(voAuthoringStart);
}
项目:openmaxims-linux    文件:Logic.java   
protected void onDyngrdPOCCellButtonClicked(DynamicGridCell cell) 
{
    if (cell != null && cell.getType().equals(DynamicCellType.IMAGEBUTTON))
    {
        if(cell.getRow().getValue() instanceof PlanOfCareListVo)
        {
            PlanOfCareVo record = new PlanOfCareVo();
            PlanOfCareLiteVo voRow = (PlanOfCareLiteVo) cell.getRow().getValue();
            record = domain.getPlanOfCare(voRow);
            form.getLocalContext().setSelectedRecord(record);

            String url = getUrlText(record);
            if(url != null && url.length() > 0)
            {
                engine.openUrl(url);
            }       
        }
    }       
}
项目:openmaxims-linux    文件:PlanOfCareImpl.java   
public PlanOfCareVo savePlanOfCare(PlanOfCareVo record) throws StaleObjectException 
{
    if(record == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }
    if(!record.isValidated())
    {
        throw new CodingRuntimeException("Record not validated");
    }

    DomainFactory factory = getDomainFactory();
    PlanOfCare domainRecord = PlanOfCareVoAssembler.extractPlanOfCare(factory, record);     

    factory.save(domainRecord);

    return PlanOfCareVoAssembler.create(domainRecord);
}
项目:AvoinApotti    文件:Logic.java   
private PlanOfCareVo getCurrentPlanOfCare(AssessmentQuestionVo voAssessmQuestion)
{
    PlanOfCareVoCollection voPlanOfCareColl = form.getGlobalContext().Nursing.getPlanOfCareCollection();
    for (int i = 0; voPlanOfCareColl != null && i < voPlanOfCareColl.size(); i++)
    {
        if (voPlanOfCareColl.get(i).getAssessmentQuestionIsNotNull() && voPlanOfCareColl.get(i).getAssessmentQuestion().equals(voAssessmQuestion))
            return voPlanOfCareColl.get(i);
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private boolean save() 
{
    PlanOfCareVo record = null;

    if (form.getLocalContext().getSelectedRecordIsNotNull())//is Update or View
    { 
        record = populateDataFromScreen(form.getLocalContext().getSelectedRecord());        
    }
    else
    {
        record = populateDataFromScreen(new PlanOfCareVo());//is New
    }

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

    catch(StaleObjectException e)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        updatePlanOfCare(GenForm.ContextMenus.PlanOfCare.UPDATEPOC);
        return false;
    }

    form.getLocalContext().setSelectedRecord(record);
    return true;
}
项目:AvoinApotti    文件:Logic.java   
private void listDailyPatientProgressHistory(Boolean haveDPP, PlanOfCareVo record)
{
    clearGrdDPPList();
    if (haveDPP != null && record != null)
    {
        if (haveDPP.equals(Boolean.TRUE))
        {
            populateGrdDPP(domain.listDailyPatientProgressHistory(form.getGlobalContext().Core.getCurrentCareContext(), record));
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void listPocActions(PlanOfCareVo record)
{
    clearGrdPocActions();
    if (record != null)
    {
        populateGrdPocActions(domain.listPocActions(form.getGlobalContext().Core.getCurrentCareContext(), record));
    }
    else
    {
        populateGrdPocActions(domain.listPocActions(form.getGlobalContext().Core.getCurrentCareContext(), null));
    }
}
项目:AvoinApotti    文件:PlanOfCareImpl.java   
public PlanOfCareVo getPlanOfCare(PlanOfCareRefVo voPlanOfCareRef) 
{
    if(voPlanOfCareRef == null || voPlanOfCareRef.getID_PlanOfCare() == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }

    DomainFactory factory = getDomainFactory();
    PlanOfCare domainObject = (PlanOfCare)factory.getDomainObject(voPlanOfCareRef);

    return PlanOfCareVoAssembler.create(domainObject);
}
项目:AvoinApotti    文件:DailyPatientProgressImpl.java   
public IDPPItem savePatientAssessment(PatientAssessmentVo patientAssessment, PlanOfCareVoCollection planOfCareCollection) throws StaleObjectException
{
    if (patientAssessment == null)
        throw new CodingRuntimeException("Cannot save null PatientAssessmentVo");

    if (patientAssessment.isValidated() == false)
        throw new CodingRuntimeException("PatientAssessmentVo has not been validated");

    if (planOfCareCollection != null && planOfCareCollection.isValidated() == false)
        throw new CodingRuntimeException("PlanOfCareVoCollection have not been validated");

    DomainFactory factory = getDomainFactory();
    PatientAssessment doPatientAssessment = PatientAssessmentVoAssembler.extractPatientAssessment(factory, patientAssessment);
    factory.save(doPatientAssessment);

    int countNewCarePlan = 0;
    for (int i = 0; planOfCareCollection != null && i < planOfCareCollection.size(); i++)
    {
        PlanOfCareVo voPlanOfCare = planOfCareCollection.get(i);
        if (voPlanOfCare.getID_PlanOfCare() == null)
            countNewCarePlan++;
        PlanOfCare doPlanOfCare = PlanOfCareVoAssembler.extractPlanOfCare(factory, voPlanOfCare);
        factory.save(doPlanOfCare);
    }

    PatientAssessmentVo voPatAss = PatientAssessmentVoAssembler.create(doPatientAssessment);
    Integer newPlanOfCares = new Integer(countNewCarePlan);
    DPPItem item = new DPPItem(voPatAss, newPlanOfCares);

    return item;
}
项目:openMAXIMS    文件:Logic.java   
private PlanOfCareVo getCurrentPlanOfCare(AssessmentQuestionVo voAssessmQuestion)
{
    PlanOfCareVoCollection voPlanOfCareColl = form.getGlobalContext().Nursing.getPlanOfCareCollection();
    for (int i = 0; voPlanOfCareColl != null && i < voPlanOfCareColl.size(); i++)
    {
        if (voPlanOfCareColl.get(i).getAssessmentQuestionIsNotNull() && voPlanOfCareColl.get(i).getAssessmentQuestion().equals(voAssessmQuestion))
            return voPlanOfCareColl.get(i);
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private boolean save() 
{
    PlanOfCareVo record = null;

    if (form.getLocalContext().getSelectedRecordIsNotNull())//is Update or View
    { 
        record = populateDataFromScreen(form.getLocalContext().getSelectedRecord());        
    }
    else
    {
        record = populateDataFromScreen(new PlanOfCareVo());//is New
    }

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

    catch(StaleObjectException e)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        updatePlanOfCare(GenForm.ContextMenus.PlanOfCare.UPDATEPOC);
        return false;
    }

    form.getLocalContext().setSelectedRecord(record);
    return true;
}
项目:openMAXIMS    文件:Logic.java   
private void listDailyPatientProgressHistory(Boolean haveDPP, PlanOfCareVo record)
{
    clearGrdDPPList();
    if (haveDPP != null && record != null)
    {
        if (haveDPP.equals(Boolean.TRUE))
        {
            populateGrdDPP(domain.listDailyPatientProgressHistory(form.getGlobalContext().Core.getCurrentCareContext(), record));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void listPocActions(PlanOfCareVo record)
{
    clearGrdPocActions();
    if (record != null)
    {
        populateGrdPocActions(domain.listPocActions(form.getGlobalContext().Core.getCurrentCareContext(), record));
    }
    else
    {
        populateGrdPocActions(domain.listPocActions(form.getGlobalContext().Core.getCurrentCareContext(), null));
    }
}
项目:openMAXIMS    文件:PlanOfCareImpl.java   
public PlanOfCareVo getPlanOfCare(PlanOfCareRefVo voPlanOfCareRef) 
{
    if(voPlanOfCareRef == null || voPlanOfCareRef.getID_PlanOfCare() == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }

    DomainFactory factory = getDomainFactory();
    PlanOfCare domainObject = (PlanOfCare)factory.getDomainObject(voPlanOfCareRef);

    return PlanOfCareVoAssembler.create(domainObject);
}
项目:openMAXIMS    文件:DailyPatientProgressImpl.java   
public IDPPItem savePatientAssessment(PatientAssessmentVo patientAssessment, PlanOfCareVoCollection planOfCareCollection) throws StaleObjectException
{
    if (patientAssessment == null)
        throw new CodingRuntimeException("Cannot save null PatientAssessmentVo");

    if (patientAssessment.isValidated() == false)
        throw new CodingRuntimeException("PatientAssessmentVo has not been validated");

    if (planOfCareCollection != null && planOfCareCollection.isValidated() == false)
        throw new CodingRuntimeException("PlanOfCareVoCollection have not been validated");

    DomainFactory factory = getDomainFactory();
    PatientAssessment doPatientAssessment = PatientAssessmentVoAssembler.extractPatientAssessment(factory, patientAssessment);
    factory.save(doPatientAssessment);

    int countNewCarePlan = 0;
    for (int i = 0; planOfCareCollection != null && i < planOfCareCollection.size(); i++)
    {
        PlanOfCareVo voPlanOfCare = planOfCareCollection.get(i);
        if (voPlanOfCare.getID_PlanOfCare() == null)
            countNewCarePlan++;
        PlanOfCare doPlanOfCare = PlanOfCareVoAssembler.extractPlanOfCare(factory, voPlanOfCare);
        factory.save(doPlanOfCare);
    }

    PatientAssessmentVo voPatAss = PatientAssessmentVoAssembler.create(doPatientAssessment);
    Integer newPlanOfCares = new Integer(countNewCarePlan);
    DPPItem item = new DPPItem(voPatAss, newPlanOfCares);

    return item;
}
项目:openMAXIMS    文件:Logic.java   
private PlanOfCareVo getCurrentPlanOfCare(AssessmentQuestionVo voAssessmQuestion)
{
    PlanOfCareVoCollection voPlanOfCareColl = form.getGlobalContext().Nursing.getPlanOfCareCollection();
    for (int i = 0; voPlanOfCareColl != null && i < voPlanOfCareColl.size(); i++)
    {
        if (voPlanOfCareColl.get(i).getAssessmentQuestionIsNotNull() && voPlanOfCareColl.get(i).getAssessmentQuestion().equals(voAssessmQuestion))
            return voPlanOfCareColl.get(i);
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private boolean save() 
{
    PlanOfCareVo record = null;

    if (form.getLocalContext().getSelectedRecordIsNotNull())//is Update or View
    { 
        record = populateDataFromScreen(form.getLocalContext().getSelectedRecord());        
    }
    else
    {
        record = populateDataFromScreen(new PlanOfCareVo());//is New
    }

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

    catch(StaleObjectException e)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        updatePlanOfCare(GenForm.ContextMenus.PlanOfCare.UPDATEPOC);
        return false;
    }

    form.getLocalContext().setSelectedRecord(record);
    return true;
}
项目:openMAXIMS    文件:Logic.java   
private void listDailyPatientProgressHistory(Boolean haveDPP, PlanOfCareVo record)
{
    clearGrdDPPList();
    if (haveDPP != null && record != null)
    {
        if (haveDPP.equals(Boolean.TRUE))
        {
            populateGrdDPP(domain.listDailyPatientProgressHistory(form.getGlobalContext().Core.getCurrentCareContext(), record));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void listPocActions(PlanOfCareVo record)
{
    clearGrdPocActions();
    if (record != null)
    {
        populateGrdPocActions(domain.listPocActions(form.getGlobalContext().Core.getCurrentCareContext(), record));
    }
    else
    {
        populateGrdPocActions(domain.listPocActions(form.getGlobalContext().Core.getCurrentCareContext(), null));
    }
}
项目:openMAXIMS    文件:PlanOfCareImpl.java   
public PlanOfCareVo getPlanOfCare(PlanOfCareRefVo voPlanOfCareRef) 
{
    if(voPlanOfCareRef == null || voPlanOfCareRef.getID_PlanOfCare() == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }

    DomainFactory factory = getDomainFactory();
    PlanOfCare domainObject = (PlanOfCare)factory.getDomainObject(voPlanOfCareRef);

    return PlanOfCareVoAssembler.create(domainObject);
}
项目:openMAXIMS    文件:DailyPatientProgressImpl.java   
public IDPPItem savePatientAssessment(PatientAssessmentVo patientAssessment, PlanOfCareVoCollection planOfCareCollection) throws StaleObjectException
{
    if (patientAssessment == null)
        throw new CodingRuntimeException("Cannot save null PatientAssessmentVo");

    if (patientAssessment.isValidated() == false)
        throw new CodingRuntimeException("PatientAssessmentVo has not been validated");

    if (planOfCareCollection != null && planOfCareCollection.isValidated() == false)
        throw new CodingRuntimeException("PlanOfCareVoCollection have not been validated");

    DomainFactory factory = getDomainFactory();
    PatientAssessment doPatientAssessment = PatientAssessmentVoAssembler.extractPatientAssessment(factory, patientAssessment);
    factory.save(doPatientAssessment);

    int countNewCarePlan = 0;
    for (int i = 0; planOfCareCollection != null && i < planOfCareCollection.size(); i++)
    {
        PlanOfCareVo voPlanOfCare = planOfCareCollection.get(i);
        if (voPlanOfCare.getID_PlanOfCare() == null)
            countNewCarePlan++;
        PlanOfCare doPlanOfCare = PlanOfCareVoAssembler.extractPlanOfCare(factory, voPlanOfCare);
        factory.save(doPlanOfCare);
    }

    PatientAssessmentVo voPatAss = PatientAssessmentVoAssembler.create(doPatientAssessment);
    Integer newPlanOfCares = new Integer(countNewCarePlan);
    DPPItem item = new DPPItem(voPatAss, newPlanOfCares);

    return item;
}
项目:openmaxims-linux    文件:Logic.java   
private PlanOfCareVo getCurrentPlanOfCare(AssessmentQuestionVo voAssessmQuestion)
{
    PlanOfCareVoCollection voPlanOfCareColl = form.getGlobalContext().Nursing.getPlanOfCareCollection();
    for (int i = 0; voPlanOfCareColl != null && i < voPlanOfCareColl.size(); i++)
    {
        if (voPlanOfCareColl.get(i).getAssessmentQuestionIsNotNull() && voPlanOfCareColl.get(i).getAssessmentQuestion().equals(voAssessmQuestion))
            return voPlanOfCareColl.get(i);
    }
    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean save() 
{
    PlanOfCareVo record = null;

    if (form.getLocalContext().getSelectedRecordIsNotNull())//is Update or View
    { 
        record = populateDataFromScreen(form.getLocalContext().getSelectedRecord());        
    }
    else
    {
        record = populateDataFromScreen(new PlanOfCareVo());//is New
    }

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

    catch(StaleObjectException e)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        updatePlanOfCare(GenForm.ContextMenus.PlanOfCare.UPDATEPOC);
        return false;
    }

    form.getLocalContext().setSelectedRecord(record);
    return true;
}
项目:openmaxims-linux    文件:Logic.java   
private void listDailyPatientProgressHistory(Boolean haveDPP, PlanOfCareVo record)
{
    clearGrdDPPList();
    if (haveDPP != null && record != null)
    {
        if (haveDPP.equals(Boolean.TRUE))
        {
            populateGrdDPP(domain.listDailyPatientProgressHistory(form.getGlobalContext().Core.getCurrentCareContext(), record));
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void listPocActions(PlanOfCareVo record)
{
    clearGrdPocActions();
    if (record != null)
    {
        populateGrdPocActions(domain.listPocActions(form.getGlobalContext().Core.getCurrentCareContext(), record));
    }
    else
    {
        populateGrdPocActions(domain.listPocActions(form.getGlobalContext().Core.getCurrentCareContext(), null));
    }
}
项目:openmaxims-linux    文件:PlanOfCareImpl.java   
public PlanOfCareVo getPlanOfCare(PlanOfCareRefVo voPlanOfCareRef) 
{
    if(voPlanOfCareRef == null || voPlanOfCareRef.getID_PlanOfCare() == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }

    DomainFactory factory = getDomainFactory();
    PlanOfCare domainObject = (PlanOfCare)factory.getDomainObject(voPlanOfCareRef);

    return PlanOfCareVoAssembler.create(domainObject);
}
项目:openmaxims-linux    文件:DailyPatientProgressImpl.java   
public IDPPItem savePatientAssessment(PatientAssessmentVo patientAssessment, PlanOfCareVoCollection planOfCareCollection) throws StaleObjectException
{
    if (patientAssessment == null)
        throw new CodingRuntimeException("Cannot save null PatientAssessmentVo");

    if (patientAssessment.isValidated() == false)
        throw new CodingRuntimeException("PatientAssessmentVo has not been validated");

    if (planOfCareCollection != null && planOfCareCollection.isValidated() == false)
        throw new CodingRuntimeException("PlanOfCareVoCollection have not been validated");

    DomainFactory factory = getDomainFactory();
    PatientAssessment doPatientAssessment = PatientAssessmentVoAssembler.extractPatientAssessment(factory, patientAssessment);
    factory.save(doPatientAssessment);

    int countNewCarePlan = 0;
    for (int i = 0; planOfCareCollection != null && i < planOfCareCollection.size(); i++)
    {
        PlanOfCareVo voPlanOfCare = planOfCareCollection.get(i);
        if (voPlanOfCare.getID_PlanOfCare() == null)
            countNewCarePlan++;
        PlanOfCare doPlanOfCare = PlanOfCareVoAssembler.extractPlanOfCare(factory, voPlanOfCare);
        factory.save(doPlanOfCare);
    }

    PatientAssessmentVo voPatAss = PatientAssessmentVoAssembler.create(doPatientAssessment);
    Integer newPlanOfCares = new Integer(countNewCarePlan);
    DPPItem item = new DPPItem(voPatAss, newPlanOfCares);

    return item;
}
项目:AvoinApotti    文件:Logic.java   
protected PlanOfCareVo populateDataFromScreen()
{
    return populateDataFromScreen(new PlanOfCareVo());
}
项目:openMAXIMS    文件:Logic.java   
protected PlanOfCareVo populateDataFromScreen()
{
    return populateDataFromScreen(new PlanOfCareVo());
}
项目:openMAXIMS    文件:Logic.java   
protected PlanOfCareVo populateDataFromScreen()
{
    return populateDataFromScreen(new PlanOfCareVo());
}
项目:openmaxims-linux    文件:Logic.java   
protected PlanOfCareVo populateDataFromScreen()
{
    return populateDataFromScreen(new PlanOfCareVo());
}