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

项目:AvoinApotti    文件:Logic.java   
private void gridProcedureSelChange()
{

    PatientProcedureProcsComponentLiteVo voPatientProcedure = (PatientProcedureProcsComponentLiteVo) form.grdProcs().getValue();
    if (voPatientProcedure == null)
    {
        engine.showMessage("Please select a Procedure");
        return;
    }

    PatientProcedureProcsComponentVo voPatProc = domain.getProcedure(voPatientProcedure.toPatientProcedureRefVo());
    form.getLocalContext().setPatientProcedureVo(voPatProc);

    populateScreenFromData(voPatProc);
    updateContextMenu();
}
项目:AvoinApotti    文件:Logic.java   
protected void populateScreenFromData(PatientProcedureProcsComponentVo voPatProc)
{
    if (voPatProc == null)
        return;

    Object hcpLite = domain.getHcpLiteUser();
    CareContextVo careContextVO = domain.getCareContext(voPatProc.getCareContext());
    form.ctnDetails().lblResponsible().setValue(hcpLite != null ? (((HcpLiteVo) hcpLite).getName() != null ? ((HcpLiteVo) hcpLite).getName().toString() : null) : null);
    if (careContextVO != null)
        form.ctnDetails().lblResponsible().setValue(careContextVO.getResponsibleHCPIsNotNull() ? careContextVO.getResponsibleHCP().getIHcpName() : null);
    form.ctnDetails().ccProcedure().setValue((IClinicalCodingValue) voPatProc);

    // Set performed by value
    form.ctnDetails().ccPerformedBy().clear();
    form.ctnDetails().ccPerformedBy().setValue(voPatProc.getPeformedBy());

    form.ctnDetails().pdtPerformed().setValue(voPatProc.getProcDateIsNotNull() ? voPatProc.getProcDate() : null);
    form.ctnDetails().timProc().setValue(voPatProc.getProcTimeIsNotNull() ? voPatProc.getProcTime() : null);
    form.ctnDetails().cmbLaterality().setValue(voPatProc.getProcLateralityIsNotNull() ? voPatProc.getProcLaterality() : null);
    form.ctnDetails().txtSite().setValue(voPatProc.getSiteTextIsNotNull() ? voPatProc.getSiteText() : null);

    if (voPatProc.getAuthoringInformationIsNotNull())
        form.ctnDetails().ccAuthor().setValue(voPatProc.getAuthoringInformation());

    setResponsibleHcp(voPatProc.getCareContext());
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onGrdProcsSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if(FormMode.VIEW.equals(form.getMode()))
    {
        PatientProcedureProcsComponentLiteVo voPatientProcedure = (PatientProcedureProcsComponentLiteVo) form.grdProcs().getValue();
        if (voPatientProcedure == null)
        {
            engine.showMessage("Please select a Procedure");
            form.getLocalContext().setPatientProcedureVo(null);
            return;
        }

        PatientProcedureProcsComponentVo voPatProc = domain.getProcedure(voPatientProcedure);
        form.getLocalContext().setPatientProcedureVo(voPatProc);

        populateScreenFromData(voPatProc);
        updateContextMenu();
        updateControlState();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void gridProcedureSelChange()
{

    PatientProcedureProcsComponentLiteVo voPatientProcedure = (PatientProcedureProcsComponentLiteVo) form.grdProcs().getValue();
    if (voPatientProcedure == null)
    {
        engine.showMessage("Please select a Procedure");
        return;
    }

    PatientProcedureProcsComponentVo voPatProc = domain.getProcedure(voPatientProcedure.toPatientProcedureRefVo());
    form.getLocalContext().setPatientProcedureVo(voPatProc);

    populateScreenFromData(voPatProc);
    updateContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
protected void populateScreenFromData(PatientProcedureProcsComponentVo voPatProc)
{
    if (voPatProc == null)
        return;

    Object hcpLite = domain.getHcpLiteUser();
    CareContextVo careContextVO = domain.getCareContext(voPatProc.getCareContext());
    form.ctnDetails().lblResponsible().setValue(hcpLite != null ? (((HcpLiteVo) hcpLite).getName() != null ? ((HcpLiteVo) hcpLite).getName().toString() : null) : null);
    if (careContextVO != null)
        form.ctnDetails().lblResponsible().setValue(careContextVO.getResponsibleHCPIsNotNull() ? careContextVO.getResponsibleHCP().getIHcpName() : null);
    form.ctnDetails().ccProcedure().setValue((IClinicalCodingValue) voPatProc);

    // Set performed by value
    form.ctnDetails().ccPerformedBy().clear();
    form.ctnDetails().ccPerformedBy().setValue(voPatProc.getPeformedBy());

    form.ctnDetails().pdtPerformed().setValue(voPatProc.getProcDateIsNotNull() ? voPatProc.getProcDate() : null);
    form.ctnDetails().timProc().setValue(voPatProc.getProcTimeIsNotNull() ? voPatProc.getProcTime() : null);
    form.ctnDetails().cmbLaterality().setValue(voPatProc.getProcLateralityIsNotNull() ? voPatProc.getProcLaterality() : null);
    form.ctnDetails().txtSite().setValue(voPatProc.getSiteTextIsNotNull() ? voPatProc.getSiteText() : null);

    if (voPatProc.getAuthoringInformationIsNotNull())
        form.ctnDetails().ccAuthor().setValue(voPatProc.getAuthoringInformation());

    setResponsibleHcp(voPatProc.getCareContext());
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdProcsSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if(FormMode.VIEW.equals(form.getMode()))
    {
        PatientProcedureProcsComponentLiteVo voPatientProcedure = (PatientProcedureProcsComponentLiteVo) form.grdProcs().getValue();
        if (voPatientProcedure == null)
        {
            engine.showMessage("Please select a Procedure");
            form.getLocalContext().setPatientProcedureVo(null);
            return;
        }

        PatientProcedureProcsComponentVo voPatProc = domain.getProcedure(voPatientProcedure);
        form.getLocalContext().setPatientProcedureVo(voPatProc);

        populateScreenFromData(voPatProc);
        updateContextMenu();
        updateControlState();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void gridProcedureSelChange()
{

    PatientProcedureProcsComponentLiteVo voPatientProcedure = (PatientProcedureProcsComponentLiteVo) form.grdProcs().getValue();
    if (voPatientProcedure == null)
    {
        engine.showMessage("Please select a Procedure");
        return;
    }

    PatientProcedureProcsComponentVo voPatProc = domain.getProcedure(voPatientProcedure.toPatientProcedureRefVo());
    form.getLocalContext().setPatientProcedureVo(voPatProc);

    populateScreenFromData(voPatProc);
    updateContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
protected void populateScreenFromData(PatientProcedureProcsComponentVo voPatProc)
{
    if (voPatProc == null)
        return;

    Object hcpLite = domain.getHcpLiteUser();
    CareContextVo careContextVO = domain.getCareContext(voPatProc.getCareContext());
    form.ctnDetails().lblResponsible().setValue(hcpLite != null ? (((HcpLiteVo) hcpLite).getName() != null ? ((HcpLiteVo) hcpLite).getName().toString() : null) : null);
    if (careContextVO != null)
        form.ctnDetails().lblResponsible().setValue(careContextVO.getResponsibleHCPIsNotNull() ? careContextVO.getResponsibleHCP().getIHcpName() : null);
    form.ctnDetails().ccProcedure().setValue((IClinicalCodingValue) voPatProc);

    // Set performed by value
    form.ctnDetails().ccPerformedBy().clear();
    form.ctnDetails().ccPerformedBy().setValue(voPatProc.getPeformedBy());

    form.ctnDetails().pdtPerformed().setValue(voPatProc.getProcDateIsNotNull() ? voPatProc.getProcDate() : null);
    form.ctnDetails().timProc().setValue(voPatProc.getProcTimeIsNotNull() ? voPatProc.getProcTime() : null);
    form.ctnDetails().cmbLaterality().setValue(voPatProc.getProcLateralityIsNotNull() ? voPatProc.getProcLaterality() : null);
    form.ctnDetails().txtSite().setValue(voPatProc.getSiteTextIsNotNull() ? voPatProc.getSiteText() : null);

    if (voPatProc.getAuthoringInformationIsNotNull())
        form.ctnDetails().ccAuthor().setValue(voPatProc.getAuthoringInformation());

    setResponsibleHcp(voPatProc.getCareContext());
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdProcsSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if(FormMode.VIEW.equals(form.getMode()))
    {
        PatientProcedureProcsComponentLiteVo voPatientProcedure = (PatientProcedureProcsComponentLiteVo) form.grdProcs().getValue();
        if (voPatientProcedure == null)
        {
            engine.showMessage("Please select a Procedure");
            form.getLocalContext().setPatientProcedureVo(null);
            return;
        }

        PatientProcedureProcsComponentVo voPatProc = domain.getProcedure(voPatientProcedure);
        form.getLocalContext().setPatientProcedureVo(voPatProc);

        populateScreenFromData(voPatProc);
        updateContextMenu();
        updateControlState();
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void gridProcedureSelChange()
{

    PatientProcedureProcsComponentLiteVo voPatientProcedure = (PatientProcedureProcsComponentLiteVo) form.grdProcs().getValue();
    if (voPatientProcedure == null)
    {
        engine.showMessage("Please select a Procedure");
        return;
    }

    PatientProcedureProcsComponentVo voPatProc = domain.getProcedure(voPatientProcedure.toPatientProcedureRefVo());
    form.getLocalContext().setPatientProcedureVo(voPatProc);

    populateScreenFromData(voPatProc);
    updateContextMenu();
}
项目:openmaxims-linux    文件:Logic.java   
protected void populateScreenFromData(PatientProcedureProcsComponentVo voPatProc)
{
    if (voPatProc == null)
        return;

    Object hcpLite = domain.getHcpLiteUser();
    CareContextVo careContextVO = domain.getCareContext(voPatProc.getCareContext());
    form.ctnDetails().lblResponsible().setValue(hcpLite != null ? (((HcpLiteVo) hcpLite).getName() != null ? ((HcpLiteVo) hcpLite).getName().toString() : null) : null);
    if (careContextVO != null)
        form.ctnDetails().lblResponsible().setValue(careContextVO.getResponsibleHCPIsNotNull() ? careContextVO.getResponsibleHCP().getIHcpName() : null);
    form.ctnDetails().ccProcedure().setValue((IClinicalCodingValue) voPatProc);

    // Set performed by value
    form.ctnDetails().ccPerformedBy().clear();
    form.ctnDetails().ccPerformedBy().setValue(voPatProc.getPeformedBy());

    form.ctnDetails().pdtPerformed().setValue(voPatProc.getProcDateIsNotNull() ? voPatProc.getProcDate() : null);
    form.ctnDetails().timProc().setValue(voPatProc.getProcTimeIsNotNull() ? voPatProc.getProcTime() : null);
    form.ctnDetails().cmbLaterality().setValue(voPatProc.getProcLateralityIsNotNull() ? voPatProc.getProcLaterality() : null);
    form.ctnDetails().txtSite().setValue(voPatProc.getSiteTextIsNotNull() ? voPatProc.getSiteText() : null);

    if (voPatProc.getAuthoringInformationIsNotNull())
        form.ctnDetails().ccAuthor().setValue(voPatProc.getAuthoringInformation());

    setResponsibleHcp(voPatProc.getCareContext());
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onGrdProcsSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if(FormMode.VIEW.equals(form.getMode()))
    {
        PatientProcedureProcsComponentLiteVo voPatientProcedure = (PatientProcedureProcsComponentLiteVo) form.grdProcs().getValue();
        if (voPatientProcedure == null)
        {
            engine.showMessage("Please select a Procedure");
            form.getLocalContext().setPatientProcedureVo(null);
            return;
        }

        PatientProcedureProcsComponentVo voPatProc = domain.getProcedure(voPatientProcedure);
        form.getLocalContext().setPatientProcedureVo(voPatProc);

        populateScreenFromData(voPatProc);
        updateContextMenu();
        updateControlState();
    }
}
项目:AvoinApotti    文件:EDischargeOpsProcsComponentImpl.java   
public ims.core.vo.PatientProcedureProcsComponentVo getProcedure(PatientProcedureRefVo procedure)
{
    DomainFactory factory = getDomainFactory();
    IMSCriteria imsc = new IMSCriteria(PatientProcedure.class, factory);

    imsc.equal("id", procedure.getID_PatientProcedure());
    List procedures = imsc.find();
    if (procedures.size() > 0)
        return PatientProcedureProcsComponentVoAssembler.create((PatientProcedure) procedures.get(0));
    else
        return null;
}
项目:openMAXIMS    文件:EDischargeOpsProcsComponentImpl.java   
public ims.core.vo.PatientProcedureProcsComponentVo getProcedure(PatientProcedureRefVo procedure)
{
    DomainFactory factory = getDomainFactory();
    IMSCriteria imsc = new IMSCriteria(PatientProcedure.class, factory);

    imsc.equal("id", procedure.getID_PatientProcedure());
    List procedures = imsc.find();
    if (procedures.size() > 0)
        return PatientProcedureProcsComponentVoAssembler.create((PatientProcedure) procedures.get(0));
    else
        return null;
}
项目:openMAXIMS    文件:EDischargeOpsProcsComponentImpl.java   
public ims.core.vo.PatientProcedureProcsComponentVo getProcedure(PatientProcedureRefVo procedure)
{
    DomainFactory factory = getDomainFactory();
    IMSCriteria imsc = new IMSCriteria(PatientProcedure.class, factory);

    imsc.equal("id", procedure.getID_PatientProcedure());
    List procedures = imsc.find();
    if (procedures.size() > 0)
        return PatientProcedureProcsComponentVoAssembler.create((PatientProcedure) procedures.get(0));
    else
        return null;
}
项目:openmaxims-linux    文件:EDischargeOpsProcsComponentImpl.java   
public ims.core.vo.PatientProcedureProcsComponentVo getProcedure(PatientProcedureRefVo procedure)
{
    DomainFactory factory = getDomainFactory();
    IMSCriteria imsc = new IMSCriteria(PatientProcedure.class, factory);

    imsc.equal("id", procedure.getID_PatientProcedure());
    List procedures = imsc.find();
    if (procedures.size() > 0)
        return PatientProcedureProcsComponentVoAssembler.create((PatientProcedure) procedures.get(0));
    else
        return null;
}