private void filterCodingsWithNoCodeOrSystem(List<? extends IBaseCoding> tagList) { for (int i = 0; i < tagList.size(); i++) { if (isBlank(tagList.get(i).getCode()) && isBlank(tagList.get(i).getSystem())) { tagList.remove(i); i--; } } }
public TokenCriterion(String theParamName, IBaseCoding... theCodings) { myName=theParamName; StringBuilder b = new StringBuilder(); if (theCodings != null) { for (IBaseCoding next : theCodings) { if (isBlank(next.getSystem()) && isBlank(next.getCode())) { continue; } if (b.length() > 0) { b.append(','); } b.append(toValue(next.getSystem(), next.getCode())); } } myValue = b.toString(); }
private ArrayList<TagDefinition> toTagList(IBaseMetaType theMeta) { ArrayList<TagDefinition> retVal = new ArrayList<TagDefinition>(); for (IBaseCoding next : theMeta.getTag()) { retVal.add(new TagDefinition(TagTypeEnum.TAG, next.getSystem(), next.getCode(), next.getDisplay())); } for (IBaseCoding next : theMeta.getSecurity()) { retVal.add(new TagDefinition(TagTypeEnum.SECURITY_LABEL, next.getSystem(), next.getCode(), next.getDisplay())); } for (IPrimitiveType<String> next : theMeta.getProfile()) { retVal.add(new TagDefinition(TagTypeEnum.PROFILE, BaseHapiFhirDao.NS_JPA_PROFILE, next.getValue(), null)); } return retVal; }
if (tagList != null) { for (IBaseCoding next : tagList) { TagDefinition def = getTagOrNull(TagTypeEnum.TAG, next.getSystem(), next.getCode(), next.getDisplay()); if (def != null) { ResourceTag tag = theEntity.addTag(def); if (securityLabels != null) { for (IBaseCoding next : securityLabels) { TagDefinition def = getTagOrNull(TagTypeEnum.SECURITY_LABEL, next.getSystem(), next.getCode(), next.getDisplay()); if (def != null) { ResourceTag tag = theEntity.addTag(def);
private void filterCodingsWithNoCodeOrSystem(List<? extends IBaseCoding> tagList) { for (int i = 0; i < tagList.size(); i++) { if (isBlank(tagList.get(i).getCode()) && isBlank(tagList.get(i).getSystem())) { tagList.remove(i); i--; } } }
public TokenCriterion(String theParamName, IBaseCoding... theCodings) { myName=theParamName; StringBuilder b = new StringBuilder(); if (theCodings != null) { for (IBaseCoding next : theCodings) { if (isBlank(next.getSystem()) && isBlank(next.getCode())) { continue; } if (b.length() > 0) { b.append(','); } b.append(toValue(next.getSystem(), next.getCode())); } } myValue = b.toString(); }
@Override public IBaseCoding getTag(String theSystem, String theCode) { for (IBaseCoding next : getTag()) { if (next.getSystem().equals(theSystem) && next.getCode().equals(theCode)) { return next; } } return null; }
@Override public IBaseCoding getSecurity(String theSystem, String theCode) { for (IBaseCoding next : getSecurity()) { if (theSystem.equals(next.getSystem()) && theCode.equals(next.getCode())) { return next; } } return null; }
private ArrayList<TagDefinition> toTagList(IBaseMetaType theMeta) { ArrayList<TagDefinition> retVal = new ArrayList<TagDefinition>(); for (IBaseCoding next : theMeta.getTag()) { retVal.add(new TagDefinition(TagTypeEnum.TAG, next.getSystem(), next.getCode(), next.getDisplay())); } for (IBaseCoding next : theMeta.getSecurity()) { retVal.add(new TagDefinition(TagTypeEnum.SECURITY_LABEL, next.getSystem(), next.getCode(), next.getDisplay())); } for (IPrimitiveType<String> next : theMeta.getProfile()) { retVal.add(new TagDefinition(TagTypeEnum.PROFILE, BaseHapiFhirDao.NS_JPA_PROFILE, next.getValue(), null)); } return retVal; }
if (tagList != null) { for (IBaseCoding next : tagList) { TagDefinition def = getTagOrNull(TagTypeEnum.TAG, next.getSystem(), next.getCode(), next.getDisplay()); if (def != null) { ResourceTag tag = theEntity.addTag(def); if (securityLabels != null) { for (IBaseCoding next : securityLabels) { TagDefinition def = getTagOrNull(TagTypeEnum.SECURITY_LABEL, next.getSystem(), next.getCode(), next.getDisplay()); if (def != null) { ResourceTag tag = theEntity.addTag(def);