Java 类ims.clinical.vo.PatientForDementiaVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private ims.core.vo.PatientId getDisplayID(PatientForDementiaVo patient)
{
    String configFlagIDType = ims.configuration.ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue();
    ims.core.vo.lookups.PatIdType type = ims.core.vo.lookups.PatIdType.getNegativeInstance(configFlagIDType);

    if (type == null)
        type = ims.core.vo.lookups.PatIdType.HOSPNUM;

    for (int i = 0; i < patient.getIdentifiers().size(); i++)
    {
        ims.core.vo.PatientId id = patient.getIdentifiers().get(i);
        if (id.getType().equals(type))
        {
            return id;
        }
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private ims.core.vo.PatientId getDisplayID(PatientForDementiaVo patient)
{
    String configFlagIDType = ims.configuration.ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue();
    ims.core.vo.lookups.PatIdType type = ims.core.vo.lookups.PatIdType.getNegativeInstance(configFlagIDType);

    if (type == null)
        type = ims.core.vo.lookups.PatIdType.HOSPNUM;

    for (int i = 0; i < patient.getIdentifiers().size(); i++)
    {
        ims.core.vo.PatientId id = patient.getIdentifiers().get(i);
        if (id.getType().equals(type))
        {
            return id;
        }
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private ims.core.vo.PatientId getDisplayID(PatientForDementiaVo patient)
{
    String configFlagIDType = ims.configuration.ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue();
    ims.core.vo.lookups.PatIdType type = ims.core.vo.lookups.PatIdType.getNegativeInstance(configFlagIDType);

    if (type == null)
        type = ims.core.vo.lookups.PatIdType.HOSPNUM;

    for (int i = 0; i < patient.getIdentifiers().size(); i++)
    {
        ims.core.vo.PatientId id = patient.getIdentifiers().get(i);
        if (id.getType().equals(type))
        {
            return id;
        }
    }

    return null;
}