Java 类ims.core.vo.lookups.WorklistContactType 实例源码

项目:AvoinApotti    文件:Patient_SummaryImpl.java   
public WorklistContactType getWorklistContactTypeByExternalCode(ContactType contactType)
{
    if (contactType == null)
        return null;

    LookupInstVo instContactType = LookupHelper.getContactTypeInstance(getLookupService(), contactType.getId());
    LookupInstVo instMap = getMappings(instContactType);
    LookupMappingVoCollection mapColl = instMap.getMappings();
    for (int j = 0; j < mapColl.size(); j++)
    {
        LookupMappingVo valueObject = mapColl.get(j);
        TaxonomyType taxonomyType = getExtSystemInstance(valueObject.getExtSystem());
        if (taxonomyType.equals(TaxonomyType.WORKLIST_MAPPING))
        {
            Integer codeVal = Integer.valueOf(valueObject.getExtCode());
            WorklistContactTypeCollection collWorklistContactType = LookupHelper.getWorklistContactType(getLookupService());
            for (int i = 0; i < collWorklistContactType.size(); i++)
            {
                if (codeVal == collWorklistContactType.get(i).getId())
                    return collWorklistContactType.get(i);
            }
        }
    }

    return null;
}
项目:AvoinApotti    文件:PatientSummaryImpl.java   
public WorklistContactType getWorklistContactTypeByExternalCode(ContactType contactType) {
    if (contactType == null) return null;

    LookupInstVo instContactType = LookupHelper.getContactTypeInstance(getLookupService(), contactType.getId());
    LookupInstVo instMap = getMappings(instContactType);
    LookupMappingVoCollection mapColl = instMap.getMappings();
    for (int j = 0; j < mapColl.size(); j++)
    {
        LookupMappingVo valueObject = mapColl.get(j);
        TaxonomyType taxonomyType = getExtSystemInstance(valueObject.getExtSystem());
        if(taxonomyType.equals(TaxonomyType.WORKLIST_MAPPING)){
            Integer codeVal = Integer.valueOf(valueObject.getExtCode());
            WorklistContactTypeCollection collWorklistContactType = LookupHelper.getWorklistContactType(getLookupService());
            for(int i=0;i<collWorklistContactType.size();i++)
            {
                if(codeVal == collWorklistContactType.get(i).getId())
                    return collWorklistContactType.get(i);
            }
        }
    }

    return null;
}
项目:openMAXIMS    文件:Patient_SummaryImpl.java   
public WorklistContactType getWorklistContactTypeByExternalCode(ContactType contactType)
{
    if (contactType == null)
        return null;

    LookupInstVo instContactType = LookupHelper.getContactTypeInstance(getLookupService(), contactType.getId());
    LookupInstVo instMap = getMappings(instContactType);
    LookupMappingVoCollection mapColl = instMap.getMappings();
    for (int j = 0; j < mapColl.size(); j++)
    {
        LookupMappingVo valueObject = mapColl.get(j);
        TaxonomyType taxonomyType = getExtSystemInstance(valueObject.getExtSystem());
        if (taxonomyType.equals(TaxonomyType.WORKLIST_MAPPING))
        {
            Integer codeVal = Integer.valueOf(valueObject.getExtCode());
            WorklistContactTypeCollection collWorklistContactType = LookupHelper.getWorklistContactType(getLookupService());
            for (int i = 0; i < collWorklistContactType.size(); i++)
            {
                if (codeVal == collWorklistContactType.get(i).getId())
                    return collWorklistContactType.get(i);
            }
        }
    }

    return null;
}
项目:openMAXIMS    文件:PatientSummaryImpl.java   
public WorklistContactType getWorklistContactTypeByExternalCode(ContactType contactType) {
    if (contactType == null) return null;

    LookupInstVo instContactType = LookupHelper.getContactTypeInstance(getLookupService(), contactType.getId());
    LookupInstVo instMap = getMappings(instContactType);
    LookupMappingVoCollection mapColl = instMap.getMappings();
    for (int j = 0; j < mapColl.size(); j++)
    {
        LookupMappingVo valueObject = mapColl.get(j);
        TaxonomyType taxonomyType = getExtSystemInstance(valueObject.getExtSystem());
        if(taxonomyType.equals(TaxonomyType.WORKLIST_MAPPING)){
            Integer codeVal = Integer.valueOf(valueObject.getExtCode());
            WorklistContactTypeCollection collWorklistContactType = LookupHelper.getWorklistContactType(getLookupService());
            for(int i=0;i<collWorklistContactType.size();i++)
            {
                if(codeVal == collWorklistContactType.get(i).getId())
                    return collWorklistContactType.get(i);
            }
        }
    }

    return null;
}
项目:openMAXIMS    文件:Patient_SummaryImpl.java   
public WorklistContactType getWorklistContactTypeByExternalCode(ContactType contactType)
{
    if (contactType == null)
        return null;

    LookupInstVo instContactType = LookupHelper.getContactTypeInstance(getLookupService(), contactType.getId());
    LookupInstVo instMap = getMappings(instContactType);
    LookupMappingVoCollection mapColl = instMap.getMappings();
    for (int j = 0; j < mapColl.size(); j++)
    {
        LookupMappingVo valueObject = mapColl.get(j);
        TaxonomyType taxonomyType = getExtSystemInstance(valueObject.getExtSystem());
        if (taxonomyType.equals(TaxonomyType.WORKLIST_MAPPING))
        {
            Integer codeVal = Integer.valueOf(valueObject.getExtCode());
            WorklistContactTypeCollection collWorklistContactType = LookupHelper.getWorklistContactType(getLookupService());
            for (int i = 0; i < collWorklistContactType.size(); i++)
            {
                if (codeVal == collWorklistContactType.get(i).getId())
                    return collWorklistContactType.get(i);
            }
        }
    }

    return null;
}
项目:openMAXIMS    文件:PatientSummaryImpl.java   
public WorklistContactType getWorklistContactTypeByExternalCode(ContactType contactType) {
    if (contactType == null) return null;

    LookupInstVo instContactType = LookupHelper.getContactTypeInstance(getLookupService(), contactType.getId());
    LookupInstVo instMap = getMappings(instContactType);
    LookupMappingVoCollection mapColl = instMap.getMappings();
    for (int j = 0; j < mapColl.size(); j++)
    {
        LookupMappingVo valueObject = mapColl.get(j);
        TaxonomyType taxonomyType = getExtSystemInstance(valueObject.getExtSystem());
        if(taxonomyType.equals(TaxonomyType.WORKLIST_MAPPING)){
            Integer codeVal = Integer.valueOf(valueObject.getExtCode());
            WorklistContactTypeCollection collWorklistContactType = LookupHelper.getWorklistContactType(getLookupService());
            for(int i=0;i<collWorklistContactType.size();i++)
            {
                if(codeVal == collWorklistContactType.get(i).getId())
                    return collWorklistContactType.get(i);
            }
        }
    }

    return null;
}
项目:openmaxims-linux    文件:Patient_SummaryImpl.java   
public WorklistContactType getWorklistContactTypeByExternalCode(ContactType contactType)
{
    if (contactType == null)
        return null;

    LookupInstVo instContactType = LookupHelper.getContactTypeInstance(getLookupService(), contactType.getId());
    LookupInstVo instMap = getMappings(instContactType);
    LookupMappingVoCollection mapColl = instMap.getMappings();
    for (int j = 0; j < mapColl.size(); j++)
    {
        LookupMappingVo valueObject = mapColl.get(j);
        TaxonomyType taxonomyType = getExtSystemInstance(valueObject.getExtSystem());
        if (taxonomyType.equals(TaxonomyType.WORKLIST_MAPPING))
        {
            Integer codeVal = Integer.valueOf(valueObject.getExtCode());
            WorklistContactTypeCollection collWorklistContactType = LookupHelper.getWorklistContactType(getLookupService());
            for (int i = 0; i < collWorklistContactType.size(); i++)
            {
                if (codeVal == collWorklistContactType.get(i).getId())
                    return collWorklistContactType.get(i);
            }
        }
    }

    return null;
}
项目:openmaxims-linux    文件:PatientSummaryImpl.java   
public WorklistContactType getWorklistContactTypeByExternalCode(ContactType contactType) {
    if (contactType == null) return null;

    LookupInstVo instContactType = LookupHelper.getContactTypeInstance(getLookupService(), contactType.getId());
    LookupInstVo instMap = getMappings(instContactType);
    LookupMappingVoCollection mapColl = instMap.getMappings();
    for (int j = 0; j < mapColl.size(); j++)
    {
        LookupMappingVo valueObject = mapColl.get(j);
        TaxonomyType taxonomyType = getExtSystemInstance(valueObject.getExtSystem());
        if(taxonomyType.equals(TaxonomyType.WORKLIST_MAPPING)){
            Integer codeVal = Integer.valueOf(valueObject.getExtCode());
            WorklistContactTypeCollection collWorklistContactType = LookupHelper.getWorklistContactType(getLookupService());
            for(int i=0;i<collWorklistContactType.size();i++)
            {
                if(codeVal == collWorklistContactType.get(i).getId())
                    return collWorklistContactType.get(i);
            }
        }
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void populateClinicalContacts(ClinicalContactShortVoCollection voCollclinicalContacts, DynamicGridRow careContextRow)
{
    if (voCollclinicalContacts != null && careContextRow != null)
    {
        voCollclinicalContacts.sort();
        DynamicGridRow clinicalContactRow = null;
        for (int i = 0; i < voCollclinicalContacts.size(); i++)
        {
            clinicalContactRow = careContextRow.getRows().newRow();

            DynamicGridCell cellStartEndDate = clinicalContactRow.getCells().newCell(getColumnById(COLUMN_STARTDATE_ENDDATE), DynamicCellType.STRING);
            cellStartEndDate.setValue(voCollclinicalContacts.get(i).createDisplayString());
            cellStartEndDate.setTooltip("Clinical Contact: " + voCollclinicalContacts.get(i).createDisplayString());
            cellStartEndDate.setReadOnly(true);

            DynamicGridCell cellSpecialty = clinicalContactRow.getCells().newCell(getColumnById(COLUMN_SPECIALTY), DynamicCellType.STRING);
            cellSpecialty.setValue(voCollclinicalContacts.get(i).getSpecialtyIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSpecialty().getText() : null);
            cellSpecialty.setTooltip("Clinical Contact: " + (voCollclinicalContacts.get(i).getSpecialtyIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSpecialty().getText() : ""));
            cellSpecialty.setReadOnly(true);

            DynamicGridCell cellContactType = clinicalContactRow.getCells().newCell(getColumnById(COLUMN_CONTACT_TYPE), DynamicCellType.STRING);
            cellSpecialty.setReadOnly(true);

            if (ConfigFlag.UI.DISPLAY_WORKLIST_CONTACT_TYPE_ON_PATIENT_SUMMARY.getValue() == true)
            {
                if (voCollclinicalContacts.get(i).getContactTypeIsNotNull())
                {
                    WorklistContactType lkupWorklistContactType = domain.getWorklistContactTypeByExternalCode(voCollclinicalContacts.get(i).getContactType());
                    if (lkupWorklistContactType != null)
                    {
                        cellContactType.setValue(lkupWorklistContactType.getText());
                        cellContactType.setTooltip("Clinical Contact: " + lkupWorklistContactType.getText());
                    }
                    else
                    {
                        cellContactType.setValue(voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : null);
                        cellContactType.setTooltip("Clinical Contact: " + (voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : ""));
                    }
                }
            }
            else
            {
                cellContactType.setValue(voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : null);
                cellContactType.setTooltip("Clinical Contact: " + (voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : ""));
            }

            cellContactType.setReadOnly(Boolean.TRUE);

            DynamicGridCell cellRMO = clinicalContactRow.getCells().newCell(getColumnById(COLUMN_RMO), DynamicCellType.STRING);
            cellRMO.setValue(voCollclinicalContacts.get(i).getSeenByIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSeenBy().toString() : null);
            cellRMO.setTooltip("Clinical Contact: " + (voCollclinicalContacts.get(i).getSeenByIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSeenBy().toString() : ""));
            cellRMO.setReadOnly(true);

            clinicalContactRow.setCollapsedImage(form.getImages().Admin.MemberOfStaff);
            clinicalContactRow.setExpandedImage(form.getImages().Admin.MemberOfStaff);
        //  clinicalContactRow.setColumnHistoryEmpty(true); // wdev-13896

            // WDEV-13764
            if (voCollclinicalContacts.get(i).getCurrentStatusIsNotNull() && voCollclinicalContacts.get(i).getCurrentStatus().getStatusIsNotNull() && voCollclinicalContacts.get(i).getCurrentStatus().getStatus().equals(ClinicalContactStatus.CANCELLED))
                clinicalContactRow.setBackColor(ConfigFlag.UI.DISPLAY_COLOUR_FOR_CANCELLED_CLINICAL_CONTACTS.getValue());

            clinicalContactRow.setValue(voCollclinicalContacts.get(i));
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateClinicalContacts(ClinicalContactShortVoCollection voCollclinicalContacts, grdListRow careContextRow)
{
    if (voCollclinicalContacts != null && careContextRow != null)
    {
        voCollclinicalContacts.sort();
        grdListRow clinicalContactRow = null;
        for (int i = 0; i < voCollclinicalContacts.size(); i++)
        {
            clinicalContactRow = careContextRow.getRows().newRow();

            clinicalContactRow.setcolStartDateEndDate(voCollclinicalContacts.get(i).createDisplayString());
            clinicalContactRow.setTooltipForcolStartDateEndDate("Clinical Contact: " + voCollclinicalContacts.get(i).createDisplayString());
            clinicalContactRow.setcolSpeciality(voCollclinicalContacts.get(i).getSpecialtyIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSpecialty().getText() : null);
            clinicalContactRow.setTooltipForcolSpeciality("Clinical Contact: " + (voCollclinicalContacts.get(i).getSpecialtyIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSpecialty().getText() : ""));
            if (ConfigFlag.UI.DISPLAY_WORKLIST_CONTACT_TYPE_ON_PATIENT_SUMMARY.getValue() == true){
                if(voCollclinicalContacts.get(i).getContactTypeIsNotNull()){
                    WorklistContactType lkupWorklistContactType = domain.getWorklistContactTypeByExternalCode(voCollclinicalContacts.get(i).getContactType());
                    if(lkupWorklistContactType!=null)
                    {
                        clinicalContactRow.setcolContactType(lkupWorklistContactType.getText());
                        clinicalContactRow.setTooltipForcolContactType("Clinical Contact: " + lkupWorklistContactType.getText());
                    }
                    else
                    {
                        clinicalContactRow.setcolContactType(voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : null);
                        clinicalContactRow.setTooltipForcolContactType("Clinical Contact: " + (voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : ""));
                    }
                }
            }
            else
            {
                clinicalContactRow.setcolContactType(voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : null);
                clinicalContactRow.setTooltipForcolContactType("Clinical Contact: " + (voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : ""));
            }

            clinicalContactRow.setcolRMO(voCollclinicalContacts.get(i).getSeenByIsNotNull() ? INDENT + INDENT + INDENT +  voCollclinicalContacts.get(i).getSeenBy().toString() : null);
            clinicalContactRow.setTooltipForcolRMO("Clinical Contact: " + (voCollclinicalContacts.get(i).getSeenByIsNotNull() ? INDENT + INDENT + INDENT +  voCollclinicalContacts.get(i).getSeenBy().toString() : ""));
            clinicalContactRow.setCollapsedImage(form.getImages().Admin.MemberOfStaff);
            clinicalContactRow.setExpandedImage(form.getImages().Admin.MemberOfStaff);
            clinicalContactRow.setColumnHistoryEmpty(true);   //wdev-13896

            //WDEV-13764 
            if(voCollclinicalContacts.get(i).getCurrentStatusIsNotNull() && voCollclinicalContacts.get(i).getCurrentStatus().getStatusIsNotNull() 
                    && voCollclinicalContacts.get(i).getCurrentStatus().getStatus().equals(ClinicalContactStatus.CANCELLED))
                clinicalContactRow.setBackColor(ConfigFlag.UI.DISPLAY_COLOUR_FOR_CANCELLED_CLINICAL_CONTACTS.getValue());

            clinicalContactRow.setValue(voCollclinicalContacts.get(i));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateClinicalContacts(ClinicalContactShortVoCollection voCollclinicalContacts, DynamicGridRow careContextRow)
{
    if (voCollclinicalContacts != null && careContextRow != null)
    {
        voCollclinicalContacts.sort();
        DynamicGridRow clinicalContactRow = null;
        for (int i = 0; i < voCollclinicalContacts.size(); i++)
        {
            clinicalContactRow = careContextRow.getRows().newRow();

            DynamicGridCell cellStartEndDate = clinicalContactRow.getCells().newCell(getColumnById(COLUMN_STARTDATE_ENDDATE), DynamicCellType.STRING);
            cellStartEndDate.setValue(voCollclinicalContacts.get(i).createDisplayString());
            cellStartEndDate.setTooltip("Clinical Contact: " + voCollclinicalContacts.get(i).createDisplayString());
            cellStartEndDate.setReadOnly(true);

            DynamicGridCell cellSpecialty = clinicalContactRow.getCells().newCell(getColumnById(COLUMN_SPECIALTY), DynamicCellType.STRING);
            cellSpecialty.setValue(voCollclinicalContacts.get(i).getSpecialtyIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSpecialty().getText() : null);
            cellSpecialty.setTooltip("Clinical Contact: " + (voCollclinicalContacts.get(i).getSpecialtyIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSpecialty().getText() : ""));
            cellSpecialty.setReadOnly(true);

            DynamicGridCell cellContactType = clinicalContactRow.getCells().newCell(getColumnById(COLUMN_CONTACT_TYPE), DynamicCellType.STRING);
            cellSpecialty.setReadOnly(true);

            if (ConfigFlag.UI.DISPLAY_WORKLIST_CONTACT_TYPE_ON_PATIENT_SUMMARY.getValue() == true)
            {
                if (voCollclinicalContacts.get(i).getContactTypeIsNotNull())
                {
                    WorklistContactType lkupWorklistContactType = domain.getWorklistContactTypeByExternalCode(voCollclinicalContacts.get(i).getContactType());
                    if (lkupWorklistContactType != null)
                    {
                        cellContactType.setValue(lkupWorklistContactType.getText());
                        cellContactType.setTooltip("Clinical Contact: " + lkupWorklistContactType.getText());
                    }
                    else
                    {
                        cellContactType.setValue(voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : null);
                        cellContactType.setTooltip("Clinical Contact: " + (voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : ""));
                    }
                }
            }
            else
            {
                cellContactType.setValue(voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : null);
                cellContactType.setTooltip("Clinical Contact: " + (voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : ""));
            }

            cellContactType.setReadOnly(Boolean.TRUE);

            DynamicGridCell cellRMO = clinicalContactRow.getCells().newCell(getColumnById(COLUMN_RMO), DynamicCellType.STRING);
            cellRMO.setValue(voCollclinicalContacts.get(i).getSeenByIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSeenBy().toString() : null);
            cellRMO.setTooltip("Clinical Contact: " + (voCollclinicalContacts.get(i).getSeenByIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSeenBy().toString() : ""));
            cellRMO.setReadOnly(true);

            clinicalContactRow.setCollapsedImage(form.getImages().Admin.MemberOfStaff);
            clinicalContactRow.setExpandedImage(form.getImages().Admin.MemberOfStaff);
        //  clinicalContactRow.setColumnHistoryEmpty(true); // wdev-13896

            // WDEV-13764
            if (voCollclinicalContacts.get(i).getCurrentStatusIsNotNull() && voCollclinicalContacts.get(i).getCurrentStatus().getStatusIsNotNull() && voCollclinicalContacts.get(i).getCurrentStatus().getStatus().equals(ClinicalContactStatus.CANCELLED))
                clinicalContactRow.setBackColor(ConfigFlag.UI.DISPLAY_COLOUR_FOR_CANCELLED_CLINICAL_CONTACTS.getValue());

            clinicalContactRow.setValue(voCollclinicalContacts.get(i));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateClinicalContacts(ClinicalContactShortVoCollection voCollclinicalContacts, grdListRow careContextRow)
{
    if (voCollclinicalContacts != null && careContextRow != null)
    {
        voCollclinicalContacts.sort();
        grdListRow clinicalContactRow = null;
        for (int i = 0; i < voCollclinicalContacts.size(); i++)
        {
            clinicalContactRow = careContextRow.getRows().newRow();

            clinicalContactRow.setcolStartDateEndDate(voCollclinicalContacts.get(i).createDisplayString());
            clinicalContactRow.setTooltipForcolStartDateEndDate("Clinical Contact: " + voCollclinicalContacts.get(i).createDisplayString());
            clinicalContactRow.setcolSpeciality(voCollclinicalContacts.get(i).getSpecialtyIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSpecialty().getText() : null);
            clinicalContactRow.setTooltipForcolSpeciality("Clinical Contact: " + (voCollclinicalContacts.get(i).getSpecialtyIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSpecialty().getText() : ""));
            if (ConfigFlag.UI.DISPLAY_WORKLIST_CONTACT_TYPE_ON_PATIENT_SUMMARY.getValue() == true){
                if(voCollclinicalContacts.get(i).getContactTypeIsNotNull()){
                    WorklistContactType lkupWorklistContactType = domain.getWorklistContactTypeByExternalCode(voCollclinicalContacts.get(i).getContactType());
                    if(lkupWorklistContactType!=null)
                    {
                        clinicalContactRow.setcolContactType(lkupWorklistContactType.getText());
                        clinicalContactRow.setTooltipForcolContactType("Clinical Contact: " + lkupWorklistContactType.getText());
                    }
                    else
                    {
                        clinicalContactRow.setcolContactType(voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : null);
                        clinicalContactRow.setTooltipForcolContactType("Clinical Contact: " + (voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : ""));
                    }
                }
            }
            else
            {
                clinicalContactRow.setcolContactType(voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : null);
                clinicalContactRow.setTooltipForcolContactType("Clinical Contact: " + (voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : ""));
            }

            clinicalContactRow.setcolRMO(voCollclinicalContacts.get(i).getSeenByIsNotNull() ? INDENT + INDENT + INDENT +  voCollclinicalContacts.get(i).getSeenBy().toString() : null);
            clinicalContactRow.setTooltipForcolRMO("Clinical Contact: " + (voCollclinicalContacts.get(i).getSeenByIsNotNull() ? INDENT + INDENT + INDENT +  voCollclinicalContacts.get(i).getSeenBy().toString() : ""));
            clinicalContactRow.setCollapsedImage(form.getImages().Admin.MemberOfStaff);
            clinicalContactRow.setExpandedImage(form.getImages().Admin.MemberOfStaff);
            clinicalContactRow.setColumnHistoryEmpty(true);   //wdev-13896

            //WDEV-13764 
            if(voCollclinicalContacts.get(i).getCurrentStatusIsNotNull() && voCollclinicalContacts.get(i).getCurrentStatus().getStatusIsNotNull() 
                    && voCollclinicalContacts.get(i).getCurrentStatus().getStatus().equals(ClinicalContactStatus.CANCELLED))
                clinicalContactRow.setBackColor(ConfigFlag.UI.DISPLAY_COLOUR_FOR_CANCELLED_CLINICAL_CONTACTS.getValue());

            clinicalContactRow.setValue(voCollclinicalContacts.get(i));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateClinicalContacts(ClinicalContactShortVoCollection voCollclinicalContacts, DynamicGridRow careContextRow)
{
    if (voCollclinicalContacts != null && careContextRow != null)
    {
        voCollclinicalContacts.sort();
        DynamicGridRow clinicalContactRow = null;
        for (int i = 0; i < voCollclinicalContacts.size(); i++)
        {
            clinicalContactRow = careContextRow.getRows().newRow();

            DynamicGridCell cellStartEndDate = clinicalContactRow.getCells().newCell(getColumnById(COLUMN_STARTDATE_ENDDATE), DynamicCellType.STRING);
            cellStartEndDate.setValue(voCollclinicalContacts.get(i).createDisplayString());
            cellStartEndDate.setTooltip("Clinical Contact: " + voCollclinicalContacts.get(i).createDisplayString());
            cellStartEndDate.setReadOnly(true);

            DynamicGridCell cellSpecialty = clinicalContactRow.getCells().newCell(getColumnById(COLUMN_SPECIALTY), DynamicCellType.STRING);
            cellSpecialty.setValue(voCollclinicalContacts.get(i).getSpecialtyIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSpecialty().getText() : null);
            cellSpecialty.setTooltip("Clinical Contact: " + (voCollclinicalContacts.get(i).getSpecialtyIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSpecialty().getText() : ""));
            cellSpecialty.setReadOnly(true);

            DynamicGridCell cellContactType = clinicalContactRow.getCells().newCell(getColumnById(COLUMN_CONTACT_TYPE), DynamicCellType.STRING);
            cellSpecialty.setReadOnly(true);

            if (ConfigFlag.UI.DISPLAY_WORKLIST_CONTACT_TYPE_ON_PATIENT_SUMMARY.getValue() == true)
            {
                if (voCollclinicalContacts.get(i).getContactTypeIsNotNull())
                {
                    WorklistContactType lkupWorklistContactType = domain.getWorklistContactTypeByExternalCode(voCollclinicalContacts.get(i).getContactType());
                    if (lkupWorklistContactType != null)
                    {
                        cellContactType.setValue(lkupWorklistContactType.getText());
                        cellContactType.setTooltip("Clinical Contact: " + lkupWorklistContactType.getText());
                    }
                    else
                    {
                        cellContactType.setValue(voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : null);
                        cellContactType.setTooltip("Clinical Contact: " + (voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : ""));
                    }
                }
            }
            else
            {
                cellContactType.setValue(voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : null);
                cellContactType.setTooltip("Clinical Contact: " + (voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : ""));
            }

            cellContactType.setReadOnly(Boolean.TRUE);

            DynamicGridCell cellRMO = clinicalContactRow.getCells().newCell(getColumnById(COLUMN_RMO), DynamicCellType.STRING);
            cellRMO.setValue(voCollclinicalContacts.get(i).getSeenByIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSeenBy().toString() : null);
            cellRMO.setTooltip("Clinical Contact: " + (voCollclinicalContacts.get(i).getSeenByIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSeenBy().toString() : ""));
            cellRMO.setReadOnly(true);

            clinicalContactRow.setCollapsedImage(form.getImages().Admin.MemberOfStaff);
            clinicalContactRow.setExpandedImage(form.getImages().Admin.MemberOfStaff);
        //  clinicalContactRow.setColumnHistoryEmpty(true); // wdev-13896

            // WDEV-13764
            if (voCollclinicalContacts.get(i).getCurrentStatusIsNotNull() && voCollclinicalContacts.get(i).getCurrentStatus().getStatusIsNotNull() && voCollclinicalContacts.get(i).getCurrentStatus().getStatus().equals(ClinicalContactStatus.CANCELLED))
                clinicalContactRow.setBackColor(ConfigFlag.UI.DISPLAY_COLOUR_FOR_CANCELLED_CLINICAL_CONTACTS.getValue());

            clinicalContactRow.setValue(voCollclinicalContacts.get(i));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateClinicalContacts(ClinicalContactShortVoCollection voCollclinicalContacts, grdListRow careContextRow)
{
    if (voCollclinicalContacts != null && careContextRow != null)
    {
        voCollclinicalContacts.sort();
        grdListRow clinicalContactRow = null;
        for (int i = 0; i < voCollclinicalContacts.size(); i++)
        {
            clinicalContactRow = careContextRow.getRows().newRow();

            clinicalContactRow.setcolStartDateEndDate(voCollclinicalContacts.get(i).createDisplayString());
            clinicalContactRow.setTooltipForcolStartDateEndDate("Clinical Contact: " + voCollclinicalContacts.get(i).createDisplayString());
            clinicalContactRow.setcolSpeciality(voCollclinicalContacts.get(i).getSpecialtyIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSpecialty().getText() : null);
            clinicalContactRow.setTooltipForcolSpeciality("Clinical Contact: " + (voCollclinicalContacts.get(i).getSpecialtyIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSpecialty().getText() : ""));
            if (ConfigFlag.UI.DISPLAY_WORKLIST_CONTACT_TYPE_ON_PATIENT_SUMMARY.getValue() == true){
                if(voCollclinicalContacts.get(i).getContactTypeIsNotNull()){
                    WorklistContactType lkupWorklistContactType = domain.getWorklistContactTypeByExternalCode(voCollclinicalContacts.get(i).getContactType());
                    if(lkupWorklistContactType!=null)
                    {
                        clinicalContactRow.setcolContactType(lkupWorklistContactType.getText());
                        clinicalContactRow.setTooltipForcolContactType("Clinical Contact: " + lkupWorklistContactType.getText());
                    }
                    else
                    {
                        clinicalContactRow.setcolContactType(voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : null);
                        clinicalContactRow.setTooltipForcolContactType("Clinical Contact: " + (voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : ""));
                    }
                }
            }
            else
            {
                clinicalContactRow.setcolContactType(voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : null);
                clinicalContactRow.setTooltipForcolContactType("Clinical Contact: " + (voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : ""));
            }

            clinicalContactRow.setcolRMO(voCollclinicalContacts.get(i).getSeenByIsNotNull() ? INDENT + INDENT + INDENT +  voCollclinicalContacts.get(i).getSeenBy().toString() : null);
            clinicalContactRow.setTooltipForcolRMO("Clinical Contact: " + (voCollclinicalContacts.get(i).getSeenByIsNotNull() ? INDENT + INDENT + INDENT +  voCollclinicalContacts.get(i).getSeenBy().toString() : ""));
            clinicalContactRow.setCollapsedImage(form.getImages().Admin.MemberOfStaff);
            clinicalContactRow.setExpandedImage(form.getImages().Admin.MemberOfStaff);
            clinicalContactRow.setColumnHistoryEmpty(true);   //wdev-13896

            //WDEV-13764 
            if(voCollclinicalContacts.get(i).getCurrentStatusIsNotNull() && voCollclinicalContacts.get(i).getCurrentStatus().getStatusIsNotNull() 
                    && voCollclinicalContacts.get(i).getCurrentStatus().getStatus().equals(ClinicalContactStatus.CANCELLED))
                clinicalContactRow.setBackColor(ConfigFlag.UI.DISPLAY_COLOUR_FOR_CANCELLED_CLINICAL_CONTACTS.getValue());

            clinicalContactRow.setValue(voCollclinicalContacts.get(i));
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateClinicalContacts(ClinicalContactShortVoCollection voCollclinicalContacts, DynamicGridRow careContextRow)
{
    if (voCollclinicalContacts != null && careContextRow != null)
    {
        voCollclinicalContacts.sort();
        DynamicGridRow clinicalContactRow = null;
        for (int i = 0; i < voCollclinicalContacts.size(); i++)
        {
            clinicalContactRow = careContextRow.getRows().newRow();

            DynamicGridCell cellStartEndDate = clinicalContactRow.getCells().newCell(getColumnById(COLUMN_STARTDATE_ENDDATE), DynamicCellType.STRING);
            cellStartEndDate.setValue(voCollclinicalContacts.get(i).createDisplayString());
            cellStartEndDate.setTooltip("Clinical Contact: " + voCollclinicalContacts.get(i).createDisplayString());
            cellStartEndDate.setReadOnly(true);

            DynamicGridCell cellSpecialty = clinicalContactRow.getCells().newCell(getColumnById(COLUMN_SPECIALTY), DynamicCellType.STRING);
            cellSpecialty.setValue(voCollclinicalContacts.get(i).getSpecialtyIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSpecialty().getText() : null);
            cellSpecialty.setTooltip("Clinical Contact: " + (voCollclinicalContacts.get(i).getSpecialtyIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSpecialty().getText() : ""));
            cellSpecialty.setReadOnly(true);

            DynamicGridCell cellContactType = clinicalContactRow.getCells().newCell(getColumnById(COLUMN_CONTACT_TYPE), DynamicCellType.STRING);
            cellSpecialty.setReadOnly(true);

            if (ConfigFlag.UI.DISPLAY_WORKLIST_CONTACT_TYPE_ON_PATIENT_SUMMARY.getValue() == true)
            {
                if (voCollclinicalContacts.get(i).getContactTypeIsNotNull())
                {
                    WorklistContactType lkupWorklistContactType = domain.getWorklistContactTypeByExternalCode(voCollclinicalContacts.get(i).getContactType());
                    if (lkupWorklistContactType != null)
                    {
                        cellContactType.setValue(lkupWorklistContactType.getText());
                        cellContactType.setTooltip("Clinical Contact: " + lkupWorklistContactType.getText());
                    }
                    else
                    {
                        cellContactType.setValue(voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : null);
                        cellContactType.setTooltip("Clinical Contact: " + (voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : ""));
                    }
                }
            }
            else
            {
                cellContactType.setValue(voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : null);
                cellContactType.setTooltip("Clinical Contact: " + (voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : ""));
            }

            cellContactType.setReadOnly(Boolean.TRUE);

            DynamicGridCell cellRMO = clinicalContactRow.getCells().newCell(getColumnById(COLUMN_RMO), DynamicCellType.STRING);
            cellRMO.setValue(voCollclinicalContacts.get(i).getSeenByIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSeenBy().toString() : null);
            cellRMO.setTooltip("Clinical Contact: " + (voCollclinicalContacts.get(i).getSeenByIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSeenBy().toString() : ""));
            cellRMO.setReadOnly(true);

            clinicalContactRow.setCollapsedImage(form.getImages().Admin.MemberOfStaff);
            clinicalContactRow.setExpandedImage(form.getImages().Admin.MemberOfStaff);
        //  clinicalContactRow.setColumnHistoryEmpty(true); // wdev-13896

            // WDEV-13764
            if (voCollclinicalContacts.get(i).getCurrentStatusIsNotNull() && voCollclinicalContacts.get(i).getCurrentStatus().getStatusIsNotNull() && voCollclinicalContacts.get(i).getCurrentStatus().getStatus().equals(ClinicalContactStatus.CANCELLED))
                clinicalContactRow.setBackColor(ConfigFlag.UI.DISPLAY_COLOUR_FOR_CANCELLED_CLINICAL_CONTACTS.getValue());

            clinicalContactRow.setValue(voCollclinicalContacts.get(i));
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateClinicalContacts(ClinicalContactShortVoCollection voCollclinicalContacts, grdListRow careContextRow)
{
    if (voCollclinicalContacts != null && careContextRow != null)
    {
        voCollclinicalContacts.sort();
        grdListRow clinicalContactRow = null;
        for (int i = 0; i < voCollclinicalContacts.size(); i++)
        {
            clinicalContactRow = careContextRow.getRows().newRow();

            clinicalContactRow.setcolStartDateEndDate(voCollclinicalContacts.get(i).createDisplayString());
            clinicalContactRow.setTooltipForcolStartDateEndDate("Clinical Contact: " + voCollclinicalContacts.get(i).createDisplayString());
            clinicalContactRow.setcolSpeciality(voCollclinicalContacts.get(i).getSpecialtyIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSpecialty().getText() : null);
            clinicalContactRow.setTooltipForcolSpeciality("Clinical Contact: " + (voCollclinicalContacts.get(i).getSpecialtyIsNotNull() ? INDENT + INDENT + INDENT + voCollclinicalContacts.get(i).getSpecialty().getText() : ""));
            if (ConfigFlag.UI.DISPLAY_WORKLIST_CONTACT_TYPE_ON_PATIENT_SUMMARY.getValue() == true){
                if(voCollclinicalContacts.get(i).getContactTypeIsNotNull()){
                    WorklistContactType lkupWorklistContactType = domain.getWorklistContactTypeByExternalCode(voCollclinicalContacts.get(i).getContactType());
                    if(lkupWorklistContactType!=null)
                    {
                        clinicalContactRow.setcolContactType(lkupWorklistContactType.getText());
                        clinicalContactRow.setTooltipForcolContactType("Clinical Contact: " + lkupWorklistContactType.getText());
                    }
                    else
                    {
                        clinicalContactRow.setcolContactType(voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : null);
                        clinicalContactRow.setTooltipForcolContactType("Clinical Contact: " + (voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : ""));
                    }
                }
            }
            else
            {
                clinicalContactRow.setcolContactType(voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : null);
                clinicalContactRow.setTooltipForcolContactType("Clinical Contact: " + (voCollclinicalContacts.get(i).getContactTypeIsNotNull() ? voCollclinicalContacts.get(i).getContactType().getText() : ""));
            }

            clinicalContactRow.setcolRMO(voCollclinicalContacts.get(i).getSeenByIsNotNull() ? INDENT + INDENT + INDENT +  voCollclinicalContacts.get(i).getSeenBy().toString() : null);
            clinicalContactRow.setTooltipForcolRMO("Clinical Contact: " + (voCollclinicalContacts.get(i).getSeenByIsNotNull() ? INDENT + INDENT + INDENT +  voCollclinicalContacts.get(i).getSeenBy().toString() : ""));
            clinicalContactRow.setCollapsedImage(form.getImages().Admin.MemberOfStaff);
            clinicalContactRow.setExpandedImage(form.getImages().Admin.MemberOfStaff);
            clinicalContactRow.setColumnHistoryEmpty(true);   //wdev-13896

            //WDEV-13764 
            if(voCollclinicalContacts.get(i).getCurrentStatusIsNotNull() && voCollclinicalContacts.get(i).getCurrentStatus().getStatusIsNotNull() 
                    && voCollclinicalContacts.get(i).getCurrentStatus().getStatus().equals(ClinicalContactStatus.CANCELLED))
                clinicalContactRow.setBackColor(ConfigFlag.UI.DISPLAY_COLOUR_FOR_CANCELLED_CLINICAL_CONTACTS.getValue());

            clinicalContactRow.setValue(voCollclinicalContacts.get(i));
        }
    }
}