/** * Add a new tag instance * * @param theScheme * The tag scheme (the system) * @param theTerm * The tag term (the code) * @return Returns the newly created tag instance. Note that the tag is added to the list by this method, so you * generally do not need to interact directly with the added tag. */ public Tag addTag(String theScheme, String theTerm) { Tag retVal = new Tag(theScheme, theTerm); add(retVal); myOrderedTags = null; return retVal; }
/** * Add a new tag instance * * @param theScheme * The tag scheme * @param theTerm * The tag term * @param theLabel * The tag label * @return Returns the newly created tag instance. Note that the tag is added to the list by this method, so you * generally do not need to interact directly with the added tag. */ public Tag addTag(String theScheme, String theTerm, String theLabel) { Tag retVal = new Tag(theScheme, theTerm, theLabel); add(retVal); myOrderedTags = null; return retVal; }
public Tag toTag() { return new Tag(getSystem(), getCode(), getDisplay()); }
protected TagList getMetaTagsForEncoding(IResource theIResource) { TagList tags = ResourceMetadataKeyEnum.TAG_LIST.get(theIResource); if (shouldAddSubsettedTag()) { tags = new TagList(tags); tags.add(new Tag(getSubsettedCodeSystem(), Constants.TAG_SUBSETTED_CODE, subsetDescription())); } return tags; }
break; case TAG: tagList.add(new Tag(next.getTag().getSystem(), next.getTag().getCode(), next.getTag().getDisplay())); break;
/** * Add a new tag instance * * @param theScheme * The tag scheme (the system) * @param theTerm * The tag term (the code) * @return Returns the newly created tag instance. Note that the tag is added to the list by this method, so you * generally do not need to interact directly with the added tag. */ public Tag addTag(String theScheme, String theTerm) { Tag retVal = new Tag(theScheme, theTerm); add(retVal); myOrderedTags = null; return retVal; }
/** * Add a new tag instance * * @param theScheme * The tag scheme * @param theTerm * The tag term * @param theLabel * The tag label * @return Returns the newly created tag instance. Note that the tag is added to the list by this method, so you * generally do not need to interact directly with the added tag. */ public Tag addTag(String theScheme, String theTerm, String theLabel) { Tag retVal = new Tag(theScheme, theTerm, theLabel); add(retVal); myOrderedTags = null; return retVal; }
@Override public IBaseCoding addTag() { TagList tagList = ResourceMetadataKeyEnum.TAG_LIST.get(BaseResource.this); if (tagList == null) { tagList = new TagList(); ResourceMetadataKeyEnum.TAG_LIST.put(BaseResource.this, tagList); } Tag tag = new Tag(); tagList.add(tag); return tag; }
@Override public IBaseCoding addTag() { TagList tagList = ResourceMetadataKeyEnum.TAG_LIST.get(BaseResource.this); if (tagList == null) { tagList = new TagList(); ResourceMetadataKeyEnum.TAG_LIST.put(BaseResource.this, tagList); } Tag tag = new Tag(); tagList.add(tag); return tag; }
protected TagList getMetaTagsForEncoding(IResource theIResource, EncodeContext theEncodeContext) { TagList tags = ResourceMetadataKeyEnum.TAG_LIST.get(theIResource); if (shouldAddSubsettedTag(theEncodeContext)) { tags = new TagList(tags); tags.add(new Tag(getSubsettedCodeSystem(), Constants.TAG_SUBSETTED_CODE, subsetDescription())); } return tags; }
private void addProfileIfNeeded(IRestfulServer<?> theServer, String theServerBase, IBaseResource nextRes) { RuntimeResourceDefinition def = theServer.getFhirContext().getResourceDefinition(nextRes); if (theServer.getAddProfileTag() == AddProfileTagEnum.ALWAYS || !def.isStandardType()) { TagList tl = ResourceMetadataKeyEnum.TAG_LIST.get((IResource) nextRes); if (tl == null) { tl = new TagList(); ResourceMetadataKeyEnum.TAG_LIST.put((IResource) nextRes, tl); } RuntimeResourceDefinition nextDef = myContext.getResourceDefinition(nextRes); String profile = nextDef.getResourceProfile(theServerBase); if (isNotBlank(profile)) { tl.add(new Tag(Tag.HL7_ORG_PROFILE_TAG, profile, null)); } } }
break; case TAG: tagList.add(new Tag(next.getTag().getSystem(), next.getTag().getCode(), next.getTag().getDisplay())); break;