Java 类ims.clinical.vo.lookups.CodingItemType 实例源码

项目:AvoinApotti    文件:Logic.java   
private void initilize()
{
    // Initialize dynamic grid
    initializeDynamicGrid();

    // Initialize context menu
    form.getContextMenus().getMedicationMultipleDosesNEW_DOSEItem().setEnabled(true);
    form.getContextMenus().getMedicationMultipleDosesDISCONTINUE_DOSEItem().setEnabled(true);
    form.getContextMenus().getMedicationMultipleDosesDISCONTINUE_DOSEItem().setText("Remove");

    form.ccMedication().setCodingItemType(CodingItemType.MEDICATION);
    form.ccMedication().setHotlist(Boolean.FALSE);
    form.ccMedication().setParentEditing(Boolean.TRUE);
    form.ccMedication().setSpecialty(Specialty.PRESCRIPTION);

    form.ccMedication().setClinicalTermMandatory(Boolean.TRUE);
    form.ccMedication().setDescriptionMandatory(Boolean.TRUE);
}
项目:AvoinApotti    文件:Logic.java   
private void setAllergyDefaultValues()
{
    if(ConfigFlag.UI.RESTRICT_TAXONOMY_ACCESS.getValue())
    {
        form.ctnAllergy().ccAllergyTerm().setCodingItemType(CodingItemType.ALLERGY);
        form.ctnAllergy().ccAllergyTerm().setHotlist(new Boolean(false));
        form.ctnAllergy().ccAllergyTerm().setParentEditing(true);
        form.ctnAllergy().ccAllergyTerm().search("%");
        form.ctnAllergy().ccAllergyTerm().clear();
    }

    Hcp voHcp = (Hcp) domain.getHcpUser();
    if (voHcp != null)
    {
        form.ctnAllergy().ccAllergyAuthor().initializeComponent();
    }
}
项目:AvoinApotti    文件:Logic.java   
private ValueObject getDefaultItem() 
{
    if(form.getLocalContext().getTaxonomyRestricted())
        return null;

    ValueObject voRet = null;
    CodingItemType lkpCodingType = form.getLocalContext().getCodingLookupType();

    if (lkpCodingType.equals(CodingItemType.ALLERGY))
        voRet = getGenericRowAllergen(false);
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS)  || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))
        voRet = getGenericRowDiagnosis(false);
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))
        voRet = getGenericRowProblem(false);
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
        voRet = getGenericRowProcedure(false);
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
        voRet = getGenericRowImagingEvent(false);
    else if (lkpCodingType.equals(CodingItemType.MEDICATION))
        voRet = getGenericRowMedicationConfig(false);

    return voRet;
}
项目:AvoinApotti    文件:Logic.java   
public IClinicalCodingValue getValue() 
{
    if (form.qmbCodingItem().getValue() != null && form.txtDescription().getValue() != null )
    {
        if (form.getLocalContext().getCodingLookupTypeIsNotNull() &&
                form.getLocalContext().getCodingLookupType().equals(CodingItemType.MEDICATION))
        {
            if (Boolean.FALSE.equals(form.getLocalContext().getEnableDescriptionField()))
            {                   
                if( form.getLocalContext().getNoValueFoundIsNotNull() && form.getLocalContext().getNoValueFound())
                {
                    return null;
                }
            }
        }
        ClinicalCodingVo vo = new ClinicalCodingVo();
        vo.setIClinicalCodingValue(form.qmbCodingItem().getValue());
        vo.setIClinicalCodingValueDescription(form.txtDescription().getValue() == null ? "" : form.txtDescription().getValue());
        return vo;
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void initializeTabCareRecord()
{
    form.lyr1().tabCareRecord().ccActualProcedurePerformed().setCodingItemType(CodingItemType.PROCEDURE);
    form.lyr1().tabCareRecord().ccActualProcedurePerformed().setHotlist(new Boolean(false));
    form.lyr1().tabCareRecord().ccActualProcedurePerformed().setIsRequired(true);
    form.lyr1().tabCareRecord().ccPlannedProcedure().setCodingItemType(CodingItemType.PROCEDURE);
    form.lyr1().tabCareRecord().ccPlannedProcedure().setHotlist(new Boolean(false));
    form.lyr1().tabCareRecord().ccPlannedProcedure().setIsRequired(true);

    form.lyr1().tabCareRecord().ccSurgeon().initialize(MosType.HCP);
    form.lyr1().tabCareRecord().ccSurgeonAssistant().initialize(MosType.HCP);
    form.lyr1().tabCareRecord().ccAnaesthetist().initialize(MosType.HCP);
    form.lyr1().tabCareRecord().ccODAODP().initialize(MosType.HCP);

    form.lyr1().tabCareRecord().ccScrubNurse().initialize(MosType.HCP, HcpDisType.NURSING);
    form.lyr1().tabCareRecord().ccCirculatingNurse().initialize(MosType.HCP, HcpDisType.NURSING);

    //wdev-12096
    form.getLocalContext().setNewOrEditMode(null);
    //-----------

    loadTheatreCombo(null);
}
项目:AvoinApotti    文件:Logic.java   
private void initializeCustomControls()
{
    // We set the type to Procedure.
    form.ctnDetails().ccProcedure().setCodingItemType(CodingItemType.PROCEDURE);
    // We set the hotlist to be selected by default.
    form.ctnDetails().ccProcedure().setHotlist(new Boolean(true));
    form.ctnDetails().ccProcedure().setSpecialty(getSpecialty());
    // The authoring user will be the current user logged into the system
    MemberOfStaffShortVo user = (MemberOfStaffShortVo) domain.getMosUser();
    if (user != null && user.getHcp() != null)
    {

        HcpLiteVo hcp = new HcpLiteVo();
        hcp.setMos(user);
        hcp.setID_Hcp(user.getHcp().getID_Hcp());
        form.getLocalContext().setHcp(hcp);
    }
    else
    {
        form.getLocalContext().setHcp(null);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void setDefaultValues()
{
    if(ConfigFlag.UI.RESTRICT_TAXONOMY_ACCESS.getValue())
    {
        form.ctnDetails().customControlCodingItem().setCodingItemType(CodingItemType.ALLERGY);
        form.ctnDetails().customControlCodingItem().setHotlist(new Boolean(false));
        form.ctnDetails().customControlCodingItem().setParentEditing(true);
        form.ctnDetails().customControlCodingItem().search("%");
        form.ctnDetails().customControlCodingItem().clear();


    }
    Hcp voHcp = (Hcp) domain.getHcpUser();
    if (voHcp != null)
    {
        form.ctnDetails().customControlAuthoringInfo().initializeComponent();
    }
}
项目:AvoinApotti    文件:Logic.java   
private void initialize()
{
    form.grpFilter().setEnabled(grpFilterEnumeration.rdoAll, form.getGlobalContext().Clinical.getSelectedPatientProcedureFromSurgicalAudit()==null);
    form.grpFilter().setEnabled(grpFilterEnumeration.rdoSpecialty, form.getGlobalContext().Clinical.getSelectedPatientProcedureFromSurgicalAudit()==null);

    form.ccProcedure().setCodingItemType(CodingItemType.PROCEDURE);
    form.ccProcedure().setSpecialty(getSpecialty());
    form.ccProcedure().setIsRequired(true);
    form.ccProcedure().setParentEditing(true);

    form.grpFilter().setValue(grpFilterEnumeration.rdoSpecialty);
    form.ccProcedure().setHotlist(new Boolean(true));

    form.ccProcedure().setEnabled(true);

    form.chkPrimary().setEnabled(!form.getGlobalContext().Clinical.getPatientProcedureMarkedAsPrimaryIsNotNull()||
            (form.getGlobalContext().Clinical.getSelectedPatientProcedureFromSurgicalAuditIsNotNull()?form.getGlobalContext().Clinical.getSelectedPatientProcedureFromSurgicalAudit().getIsPrimary():false));

    form.chkPrimary().setTooltip(form.getGlobalContext().Clinical.getPatientProcedureMarkedAsPrimaryIsNotNull()?form.getGlobalContext().Clinical.getPatientProcedureMarkedAsPrimary().getProcedureDescription() + " is already marked as Primary":"There is no procedure marked as Primary");
}
项目:AvoinApotti    文件:Logic.java   
public void initialize() throws FormOpenException
{
    // Set the procedure as the clinical coding
    form.ccClinicalProcedure().setCodingItemType(CodingItemType.PROCEDURE);
    form.ccClinicalProcedure().setHotlist(Boolean.FALSE);

    // Remove BOTH value from theatre type lookup
    form.cmbTheatreType().removeRow(TheatreType.BOTH);

    // Initialise the Authoring Component
    form.ccAuthoring().setIsRequiredPropertyToControls(true);

    form.getLocalContext().setAssessment(null);

    initDynGridComments();

    Object hcpLiteUser = domain.getHcpLiteUser();

    if (hcpLiteUser instanceof HcpLiteVo)
    {
        form.getLocalContext().setLoggedInHcp((HcpRefVo) hcpLiteUser);
    }

    // WDEV-11667 - Initialise MosQuery component to work with HCP of type Medic
    form.ccNamedSurgeon().initialize(MosType.MEDIC);
}
项目:AvoinApotti    文件:Logic.java   
private void initializeCustomControl()
{
    //WDEV-11535
    form.cc1().setCodingItemType(CodingItemType.PROCEDURE);     
    form.cc1().setHotlist(new Boolean(true));       
    form.cc1().setSpecialty(getSpecialty());
    form.cc1().setSearchAllSelected(Boolean.FALSE);
    form.cc1().setHotlist(Boolean.TRUE);

    form.cc1().setClinicalTermMandatory(true);
    form.cc1().setDescriptionMandatory(true);
    form.cc1().setParentEditing(true);      
    form.cc1().setMode(FormMode.EDIT);              

    form.cc2().initializeComponent();
}
项目:openMAXIMS    文件:Logic.java   
private void initilize()
{
    // Initialize dynamic grid
    initializeDynamicGrid();

    // Initialize context menu
    form.getContextMenus().getMedicationMultipleDosesNEW_DOSEItem().setEnabled(true);
    form.getContextMenus().getMedicationMultipleDosesDISCONTINUE_DOSEItem().setEnabled(true);
    form.getContextMenus().getMedicationMultipleDosesDISCONTINUE_DOSEItem().setText("Remove");

    form.ccMedication().setCodingItemType(CodingItemType.MEDICATION);
    form.ccMedication().setHotlist(Boolean.FALSE);
    form.ccMedication().setParentEditing(Boolean.TRUE);
    form.ccMedication().setSpecialty(Specialty.PRESCRIPTION);

    form.ccMedication().setClinicalTermMandatory(Boolean.TRUE);
    form.ccMedication().setDescriptionMandatory(Boolean.TRUE);

    //WDEV-20283
    if (form.getGlobalContext().RefMan.getPatientMedication()!=null)
        form.btnAdd().setText("Save");
    form.ccMedication().setDrugsAlreadyAddedToPrescriptionStringID(form.getGlobalContext().RefMan.getDrugsAlreadyAddedToPrescription());
}
项目:openMAXIMS    文件:Logic.java   
private void setAllergyDefaultValues()
{
    if(ConfigFlag.UI.RESTRICT_TAXONOMY_ACCESS.getValue())
    {
        form.ctnAllergy().ccAllergyTerm().setCodingItemType(CodingItemType.ALLERGY);
        form.ctnAllergy().ccAllergyTerm().setHotlist(new Boolean(false));
        form.ctnAllergy().ccAllergyTerm().setParentEditing(true);
        form.ctnAllergy().ccAllergyTerm().search("%");
        form.ctnAllergy().ccAllergyTerm().clear();
    }

    Hcp voHcp = (Hcp) domain.getHcpUser();
    if (voHcp != null)
    {
        form.ctnAllergy().ccAllergyAuthor().initializeComponent();
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void initializeCustomControls()
{
    // We set the type to Procedure.
    form.ctnDetails().ccProcedure().setCodingItemType(CodingItemType.PROCEDURE);
    // We set the hotlist to be selected by default.
    form.ctnDetails().ccProcedure().setHotlist(new Boolean(true));
    form.ctnDetails().ccProcedure().setSpecialty(getSpecialty());
    // The authoring user will be the current user logged into the system
    MemberOfStaffShortVo user = (MemberOfStaffShortVo) domain.getMosUser();
    if (user != null && user.getHcp() != null)
    {

        HcpLiteVo hcp = new HcpLiteVo();
        hcp.setMos(user);
        hcp.setID_Hcp(user.getHcp().getID_Hcp());
        form.getLocalContext().setHcp(hcp);
    }
    else
    {
        form.getLocalContext().setHcp(null);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void initializeCustomControl()
{
    //WDEV-11535
    form.cc1().setCodingItemType(CodingItemType.PROCEDURE);     
    form.cc1().setHotlist(new Boolean(true));       
    form.cc1().setSpecialty(getSpecialty());
    form.cc1().setSearchAllSelected(Boolean.FALSE);
    form.cc1().setHotlist(Boolean.TRUE);

    form.cc1().setClinicalTermMandatory(true);
    form.cc1().setDescriptionMandatory(true);
    form.cc1().setParentEditing(true);      
    form.cc1().setMode(FormMode.EDIT);              

    form.cc2().initializeComponent();
}
项目:openMAXIMS    文件:Logic.java   
private ValueObject getDefaultItem() 
{
    if(form.getLocalContext().getTaxonomyRestricted())
        return null;

    ValueObject voRet = null;
    CodingItemType lkpCodingType = form.getLocalContext().getCodingLookupType();

    if (lkpCodingType.equals(CodingItemType.ALLERGY))
        voRet = getGenericRowAllergen(false);
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS)  || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))
        voRet = getGenericRowDiagnosis(false);
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))
        voRet = getGenericRowProblem(false);
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
        voRet = getGenericRowProcedure(false);
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
        voRet = getGenericRowImagingEvent(false);
    else if (lkpCodingType.equals(CodingItemType.MEDICATION))
        voRet = getGenericRowMedicationConfig(false);

    return voRet;
}
项目:openMAXIMS    文件:Logic.java   
public IClinicalCodingValue getValue() 
{
    if (form.qmbCodingItem().getValue() != null && form.txtDescription().getValue() != null )
    {
        if (form.getLocalContext().getCodingLookupTypeIsNotNull() &&
                form.getLocalContext().getCodingLookupType().equals(CodingItemType.MEDICATION))
        {
            if (Boolean.FALSE.equals(form.getLocalContext().getEnableDescriptionField()))
            {                   
                if( form.getLocalContext().getNoValueFoundIsNotNull() && form.getLocalContext().getNoValueFound())
                {
                    return null;
                }
            }
        }
        ClinicalCodingVo vo = new ClinicalCodingVo();
        vo.setIClinicalCodingValue(form.qmbCodingItem().getValue());
        vo.setIClinicalCodingValueDescription(form.txtDescription().getValue() == null ? "" : form.txtDescription().getValue());
        return vo;
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void initialize()
{
    form.grpFilter().setEnabled(grpFilterEnumeration.rdoAll, form.getGlobalContext().Clinical.getSelectedPatientProcedureFromSurgicalAudit()==null);
    form.grpFilter().setEnabled(grpFilterEnumeration.rdoSpecialty, form.getGlobalContext().Clinical.getSelectedPatientProcedureFromSurgicalAudit()==null);

    form.ccProcedure().setCodingItemType(CodingItemType.PROCEDURE);
    form.ccProcedure().setSpecialty(getSpecialty());
    form.ccProcedure().setIsRequired(true);
    form.ccProcedure().setParentEditing(true);

    form.grpFilter().setValue(grpFilterEnumeration.rdoSpecialty);
    form.ccProcedure().setHotlist(new Boolean(true));

    form.ccProcedure().setEnabled(true);

    form.chkPrimary().setEnabled(!form.getGlobalContext().Clinical.getPatientProcedureMarkedAsPrimaryIsNotNull()||
            (form.getGlobalContext().Clinical.getSelectedPatientProcedureFromSurgicalAuditIsNotNull()?form.getGlobalContext().Clinical.getSelectedPatientProcedureFromSurgicalAudit().getIsPrimary():false));

    form.chkPrimary().setTooltip(form.getGlobalContext().Clinical.getPatientProcedureMarkedAsPrimaryIsNotNull()?form.getGlobalContext().Clinical.getPatientProcedureMarkedAsPrimary().getProcedureDescription() + " is already marked as Primary":"There is no procedure marked as Primary");
}
项目:openMAXIMS    文件:Logic.java   
private void initializeTabCareRecord()
{
    form.lyr1().tabCareRecord().ccActualProcedurePerformed().setCodingItemType(CodingItemType.PROCEDURE);
    form.lyr1().tabCareRecord().ccActualProcedurePerformed().setHotlist(new Boolean(false));
    form.lyr1().tabCareRecord().ccActualProcedurePerformed().setIsRequired(true);
    form.lyr1().tabCareRecord().ccPlannedProcedure().setCodingItemType(CodingItemType.PROCEDURE);
    form.lyr1().tabCareRecord().ccPlannedProcedure().setHotlist(new Boolean(false));
    form.lyr1().tabCareRecord().ccPlannedProcedure().setIsRequired(true);

    form.lyr1().tabCareRecord().ccSurgeon().initialize(MosType.HCP);
    form.lyr1().tabCareRecord().ccSurgeonAssistant().initialize(MosType.HCP);
    form.lyr1().tabCareRecord().ccAnaesthetist().initialize(MosType.HCP);
    form.lyr1().tabCareRecord().ccODAODP().initialize(MosType.HCP);

    form.lyr1().tabCareRecord().ccScrubNurse().initialize(MosType.HCP, HcpDisType.NURSING);
    form.lyr1().tabCareRecord().ccCirculatingNurse().initialize(MosType.HCP, HcpDisType.NURSING);

    //wdev-12096
    form.getLocalContext().setNewOrEditMode(null);
    //-----------

    loadTheatreCombo(null);
}
项目:openmaxims-linux    文件:Logic.java   
private void setDefaultValues()
{
    if(ConfigFlag.UI.RESTRICT_TAXONOMY_ACCESS.getValue())
    {
        form.ctnDetails().customControlCodingItem().setCodingItemType(CodingItemType.ALLERGY);
        form.ctnDetails().customControlCodingItem().setHotlist(new Boolean(false));
        form.ctnDetails().customControlCodingItem().setParentEditing(true);
        form.ctnDetails().customControlCodingItem().search("%");
        form.ctnDetails().customControlCodingItem().clear();


    }
    Hcp voHcp = (Hcp) domain.getHcpUser();
    if (voHcp != null)
    {
        form.ctnDetails().customControlAuthoringInfo().initializeComponent();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setDefaultValues()
{
    if(ConfigFlag.UI.RESTRICT_TAXONOMY_ACCESS.getValue())
    {
        form.ctnDetails().customControlCodingItem().setCodingItemType(CodingItemType.ALLERGY);
        form.ctnDetails().customControlCodingItem().setHotlist(new Boolean(false));
        form.ctnDetails().customControlCodingItem().setParentEditing(true);
        form.ctnDetails().customControlCodingItem().search("%");
        form.ctnDetails().customControlCodingItem().clear();


    }
    Hcp voHcp = (Hcp) domain.getHcpUser();
    if (voHcp != null)
    {
        form.ctnDetails().customControlAuthoringInfo().initializeComponent();
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void setAllergyDefaultValues()
{
    if(ConfigFlag.UI.RESTRICT_TAXONOMY_ACCESS.getValue())
    {
        form.ctnAllergy().ccAllergyTerm().setCodingItemType(CodingItemType.ALLERGY);
        form.ctnAllergy().ccAllergyTerm().setHotlist(new Boolean(false));
        form.ctnAllergy().ccAllergyTerm().setParentEditing(true);
        form.ctnAllergy().ccAllergyTerm().search("%");
        form.ctnAllergy().ccAllergyTerm().clear();
    }

    Hcp voHcp = (Hcp) domain.getHcpUser();
    if (voHcp != null)
    {
        form.ctnAllergy().ccAllergyAuthor().initializeComponent();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void initializeCustomControl()
{
    //WDEV-11535
    form.cc1().setCodingItemType(CodingItemType.PROCEDURE);     
    form.cc1().setHotlist(new Boolean(true));       
    form.cc1().setSpecialty(getSpecialty());
    form.cc1().setSearchAllSelected(Boolean.FALSE);
    form.cc1().setHotlist(Boolean.TRUE);

    form.cc1().setClinicalTermMandatory(true);
    form.cc1().setDescriptionMandatory(true);
    form.cc1().setParentEditing(true);      
    form.cc1().setMode(FormMode.EDIT);              

    form.cc2().initializeComponent();
}
项目:openmaxims-linux    文件:Logic.java   
public void initialize() throws FormOpenException
{
    // Set the procedure as the clinical coding
    form.ccClinicalProcedure().setCodingItemType(CodingItemType.PROCEDURE);
    form.ccClinicalProcedure().setHotlist(Boolean.FALSE);

    // Remove BOTH value from theatre type lookup
    form.cmbTheatreType().removeRow(TheatreType.BOTH);

    // Initialise the Authoring Component
    form.ccAuthoring().setIsRequiredPropertyToControls(true);

    form.getLocalContext().setAssessment(null);

    initDynGridComments();

    Object hcpLiteUser = domain.getHcpLiteUser();

    if (hcpLiteUser instanceof HcpLiteVo)
    {
        form.getLocalContext().setLoggedInHcp((HcpRefVo) hcpLiteUser);
    }

    // WDEV-11667 - Initialise MosQuery component to work with HCP of type Medic
    form.ccNamedSurgeon().initialize(MosType.MEDIC);
}
项目:openmaxims-linux    文件:Logic.java   
private ValueObject getDefaultItem() 
{
    if(form.getLocalContext().getTaxonomyRestricted())
        return null;

    ValueObject voRet = null;
    CodingItemType lkpCodingType = form.getLocalContext().getCodingLookupType();

    if (lkpCodingType.equals(CodingItemType.ALLERGY))
        voRet = getGenericRowAllergen(false);
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS)  || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))
        voRet = getGenericRowDiagnosis(false);
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))
        voRet = getGenericRowProblem(false);
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
        voRet = getGenericRowProcedure(false);
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
        voRet = getGenericRowImagingEvent(false);
    else if (lkpCodingType.equals(CodingItemType.MEDICATION))
        voRet = getGenericRowMedicationConfig(false);

    return voRet;
}
项目:openMAXIMS    文件:Logic.java   
private void initilize()
{
    // Initialize dynamic grid
    initializeDynamicGrid();

    // Initialize context menu
    form.getContextMenus().getMedicationMultipleDosesNEW_DOSEItem().setEnabled(true);
    form.getContextMenus().getMedicationMultipleDosesDISCONTINUE_DOSEItem().setEnabled(true);
    form.getContextMenus().getMedicationMultipleDosesDISCONTINUE_DOSEItem().setText("Remove");

    form.ccMedication().setCodingItemType(CodingItemType.MEDICATION);
    form.ccMedication().setHotlist(Boolean.FALSE);
    form.ccMedication().setParentEditing(Boolean.TRUE);
    form.ccMedication().setSpecialty(Specialty.PRESCRIPTION);

    form.ccMedication().setClinicalTermMandatory(Boolean.TRUE);
    form.ccMedication().setDescriptionMandatory(Boolean.TRUE);
}
项目:openMAXIMS    文件:Logic.java   
private void setAllergyDefaultValues()
{
    if(ConfigFlag.UI.RESTRICT_TAXONOMY_ACCESS.getValue())
    {
        form.ctnAllergy().ccAllergyTerm().setCodingItemType(CodingItemType.ALLERGY);
        form.ctnAllergy().ccAllergyTerm().setHotlist(new Boolean(false));
        form.ctnAllergy().ccAllergyTerm().setParentEditing(true);
        form.ctnAllergy().ccAllergyTerm().search("%");
        form.ctnAllergy().ccAllergyTerm().clear();
    }

    Hcp voHcp = (Hcp) domain.getHcpUser();
    if (voHcp != null)
    {
        form.ctnAllergy().ccAllergyAuthor().initializeComponent();
    }
}
项目:openMAXIMS    文件:Logic.java   
private ValueObject getDefaultItem() 
{
    if(form.getLocalContext().getTaxonomyRestricted())
        return null;

    ValueObject voRet = null;
    CodingItemType lkpCodingType = form.getLocalContext().getCodingLookupType();

    if (lkpCodingType.equals(CodingItemType.ALLERGY))
        voRet = getGenericRowAllergen(false);
    else if (lkpCodingType.equals(CodingItemType.DIAGNOSIS)  || lkpCodingType.equals(CodingItemType.FAMILY_HISTORY))
        voRet = getGenericRowDiagnosis(false);
    else if (lkpCodingType.equals(CodingItemType.PROBLEM))
        voRet = getGenericRowProblem(false);
    else if (lkpCodingType.equals(CodingItemType.PROCEDURE))
        voRet = getGenericRowProcedure(false);
    else if (lkpCodingType.equals(CodingItemType.IMAGING_EVENT))
        voRet = getGenericRowImagingEvent(false);
    else if (lkpCodingType.equals(CodingItemType.MEDICATION))
        voRet = getGenericRowMedicationConfig(false);

    return voRet;
}
项目:openMAXIMS    文件:Logic.java   
public IClinicalCodingValue getValue() 
{
    if (form.qmbCodingItem().getValue() != null && form.txtDescription().getValue() != null )
    {
        if (form.getLocalContext().getCodingLookupTypeIsNotNull() &&
                form.getLocalContext().getCodingLookupType().equals(CodingItemType.MEDICATION))
        {
            if (Boolean.FALSE.equals(form.getLocalContext().getEnableDescriptionField()))
            {                   
                if( form.getLocalContext().getNoValueFoundIsNotNull() && form.getLocalContext().getNoValueFound())
                {
                    return null;
                }
            }
        }
        ClinicalCodingVo vo = new ClinicalCodingVo();
        vo.setIClinicalCodingValue(form.qmbCodingItem().getValue());
        vo.setIClinicalCodingValueDescription(form.txtDescription().getValue() == null ? "" : form.txtDescription().getValue());
        return vo;
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void initializeTabCareRecord()
{
    form.lyr1().tabCareRecord().ccActualProcedurePerformed().setCodingItemType(CodingItemType.PROCEDURE);
    form.lyr1().tabCareRecord().ccActualProcedurePerformed().setHotlist(new Boolean(false));
    form.lyr1().tabCareRecord().ccActualProcedurePerformed().setIsRequired(true);
    form.lyr1().tabCareRecord().ccPlannedProcedure().setCodingItemType(CodingItemType.PROCEDURE);
    form.lyr1().tabCareRecord().ccPlannedProcedure().setHotlist(new Boolean(false));
    form.lyr1().tabCareRecord().ccPlannedProcedure().setIsRequired(true);

    form.lyr1().tabCareRecord().ccSurgeon().initialize(MosType.HCP);
    form.lyr1().tabCareRecord().ccSurgeonAssistant().initialize(MosType.HCP);
    form.lyr1().tabCareRecord().ccAnaesthetist().initialize(MosType.HCP);
    form.lyr1().tabCareRecord().ccODAODP().initialize(MosType.HCP);

    form.lyr1().tabCareRecord().ccScrubNurse().initialize(MosType.HCP, HcpDisType.NURSING);
    form.lyr1().tabCareRecord().ccCirculatingNurse().initialize(MosType.HCP, HcpDisType.NURSING);

    //wdev-12096
    form.getLocalContext().setNewOrEditMode(null);
    //-----------

    loadTheatreCombo(null);
}
项目:openMAXIMS    文件:Logic.java   
private void initializeCustomControls()
{
    // We set the type to Procedure.
    form.ctnDetails().ccProcedure().setCodingItemType(CodingItemType.PROCEDURE);
    // We set the hotlist to be selected by default.
    form.ctnDetails().ccProcedure().setHotlist(new Boolean(true));
    form.ctnDetails().ccProcedure().setSpecialty(getSpecialty());
    // The authoring user will be the current user logged into the system
    MemberOfStaffShortVo user = (MemberOfStaffShortVo) domain.getMosUser();
    if (user != null && user.getHcp() != null)
    {

        HcpLiteVo hcp = new HcpLiteVo();
        hcp.setMos(user);
        hcp.setID_Hcp(user.getHcp().getID_Hcp());
        form.getLocalContext().setHcp(hcp);
    }
    else
    {
        form.getLocalContext().setHcp(null);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setDefaultValues()
{
    if(ConfigFlag.UI.RESTRICT_TAXONOMY_ACCESS.getValue())
    {
        form.ctnDetails().customControlCodingItem().setCodingItemType(CodingItemType.ALLERGY);
        form.ctnDetails().customControlCodingItem().setHotlist(new Boolean(false));
        form.ctnDetails().customControlCodingItem().setParentEditing(true);
        form.ctnDetails().customControlCodingItem().search("%");
        form.ctnDetails().customControlCodingItem().clear();


    }
    Hcp voHcp = (Hcp) domain.getHcpUser();
    if (voHcp != null)
    {
        form.ctnDetails().customControlAuthoringInfo().initializeComponent();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void initialize()
{
    form.grpFilter().setEnabled(grpFilterEnumeration.rdoAll, form.getGlobalContext().Clinical.getSelectedPatientProcedureFromSurgicalAudit()==null);
    form.grpFilter().setEnabled(grpFilterEnumeration.rdoSpecialty, form.getGlobalContext().Clinical.getSelectedPatientProcedureFromSurgicalAudit()==null);

    form.ccProcedure().setCodingItemType(CodingItemType.PROCEDURE);
    form.ccProcedure().setSpecialty(getSpecialty());
    form.ccProcedure().setIsRequired(true);
    form.ccProcedure().setParentEditing(true);

    form.grpFilter().setValue(grpFilterEnumeration.rdoSpecialty);
    form.ccProcedure().setHotlist(new Boolean(true));

    form.ccProcedure().setEnabled(true);

    form.chkPrimary().setEnabled(!form.getGlobalContext().Clinical.getPatientProcedureMarkedAsPrimaryIsNotNull()||
            (form.getGlobalContext().Clinical.getSelectedPatientProcedureFromSurgicalAuditIsNotNull()?form.getGlobalContext().Clinical.getSelectedPatientProcedureFromSurgicalAudit().getIsPrimary():false));

    form.chkPrimary().setTooltip(form.getGlobalContext().Clinical.getPatientProcedureMarkedAsPrimaryIsNotNull()?form.getGlobalContext().Clinical.getPatientProcedureMarkedAsPrimary().getProcedureDescription() + " is already marked as Primary":"There is no procedure marked as Primary");
}
项目:openMAXIMS    文件:Logic.java   
public void initialize() throws FormOpenException
{
    // Set the procedure as the clinical coding
    form.ccClinicalProcedure().setCodingItemType(CodingItemType.PROCEDURE);
    form.ccClinicalProcedure().setHotlist(Boolean.FALSE);

    // Remove BOTH value from theatre type lookup
    form.cmbTheatreType().removeRow(TheatreType.BOTH);

    // Initialise the Authoring Component
    form.ccAuthoring().setIsRequiredPropertyToControls(true);

    form.getLocalContext().setAssessment(null);

    initDynGridComments();

    Object hcpLiteUser = domain.getHcpLiteUser();

    if (hcpLiteUser instanceof HcpLiteVo)
    {
        form.getLocalContext().setLoggedInHcp((HcpRefVo) hcpLiteUser);
    }

    // WDEV-11667 - Initialise MosQuery component to work with HCP of type Medic
    form.ccNamedSurgeon().initialize(MosType.MEDIC);
}
项目:AvoinApotti    文件:Logic.java   
private void initializeCustomControl() 
{
    form.customControlCodingItem().setCodingItemType(CodingItemType.PROCEDURE);
    form.customControlCodingItem().setHotlist(new Boolean(true));
    form.customControlCodingItem().setSpecialty(getSpecialty());
    form.customControlCodingItem().setParentEditing(new Boolean(form.getMode().equals(FormMode.EDIT)));
    form.customControlCodingItem().setClinicalTermMandatory(true);
    form.customControlCodingItem().setDescriptionMandatory(true);
    form.grpProcedureType().setValue(grpProcedureTypeEnumeration.rdoSpecialty);
}
项目:AvoinApotti    文件:Logic.java   
private void initializeCodingControl() 
{
    form.lyrSurgeryDetails().tabGenDet().customControlProcedure().setCodingItemType(CodingItemType.PROCEDURE);
    form.lyrSurgeryDetails().tabGenDet().customControlProcedure().setHotlist(new Boolean(true));
    form.lyrSurgeryDetails().tabGenDet().customControlProcedure().setSpecialty(getSpecialty());
    form.lyrSurgeryDetails().tabGenDet().customControlProcedure().setClinicalTermMandatory(true);
    form.lyrSurgeryDetails().tabGenDet().customControlProcedure().setDescriptionMandatory(true);

}
项目:AvoinApotti    文件:Logic.java   
private void initialise()
{
    form.ccMedication().setCodingItemType(CodingItemType.MEDICATION);
    form.ccMedication().setHotlist(Boolean.FALSE);
    form.ccMedication().setParentEditing(Boolean.TRUE);
    form.ccMedication().setIsRequired(Boolean.TRUE);
}
项目:AvoinApotti    文件:Logic.java   
private void initialise()
{
    form.customControlMedication().setCodingItemType(CodingItemType.MEDICATION);
    form.customControlMedication().setHotlist(Boolean.FALSE);
    form.customControlMedication().setParentEditing(Boolean.TRUE);
    form.customControlMedication().setIsRequired(Boolean.TRUE);

    enableDosageControls(false);

    ChemoCycleMode mode = form.getGlobalContext().Oncology.getCycleDrugDetailMode();
    enableCycleFractionControls(mode);      
}
项目:AvoinApotti    文件:Logic.java   
private void initializeCustomControl() 
    {
        form.ctn1().customControlCodingItem().setCodingItemType(CodingItemType.IMAGING_EVENT);
//      form.ctn1().customControlCodingItem().setHotlist(new Boolean(false));

        form.ctn1().customControlCodingItem().setSearchAllSelected(Boolean.FALSE);


        form.ctn1().customControlCodingItem().setHotlist(new Boolean(true));
        form.ctn1().customControlCodingItem().setSpecialty(getSpecialty());
    }
项目:AvoinApotti    文件:Logic.java   
private void initialize()
{
    form.ccDiagnosis().setCodingItemType(CodingItemType.DIAGNOSIS);
    form.ccDiagnosis().setIsRequired(true);
    form.ccDiagnosis().setParentEditing(true);

    form.ccDiagnosis().setEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
private void initialize()
{
    form.ccProcedure().setCodingItemType(CodingItemType.PROCEDURE);
    form.ccProcedure().setIsRequired(true);
    form.ccProcedure().setParentEditing(true);

    form.ccProcedure().setEnabled(false);
}