Class RelatedArtifact

  • All Implemented Interfaces:
    Visitable

    @Generated("com.ibm.fhir.tools.CodeGenerator")
    public class RelatedArtifact
    extends Element
    Related artifacts such as additional documentation, justification, or bibliographic references.
    • Method Detail

      • getLabel

        public String getLabel()
        A short label that can be used to reference the citation from elsewhere in the containing artifact, such as a footnote index.
        Returns:
        An immutable object of type String that may be null.
      • getDisplay

        public String getDisplay()
        A brief description of the document or knowledge resource being referenced, suitable for display to a consumer.
        Returns:
        An immutable object of type String that may be null.
      • getCitation

        public Markdown getCitation()
        A bibliographic citation for the related artifact. This text SHOULD be formatted according to an accepted citation format.
        Returns:
        An immutable object of type Markdown that may be null.
      • getUrl

        public Url getUrl()
        A url for the artifact that can be followed to access the actual content.
        Returns:
        An immutable object of type Url that may be null.
      • getDocument

        public Attachment getDocument()
        The document being referenced, represented as an attachment. This is exclusive with the resource element.
        Returns:
        An immutable object of type Attachment that may be null.
      • getResource

        public Canonical getResource()
        The related resource, such as a library, value set, profile, or other knowledge resource.
        Returns:
        An immutable object of type Canonical that may be null.
      • accept

        public void accept​(String elementName,
                           int elementIndex,
                           Visitor visitor)
        Description copied from interface: Visitable
        Accept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:
         if (visitor.preVisit(this)) {
             visitor.visitStart(elementName, elementIndex, this);
             if (visitor.visit(elementName, elementIndex, this)) {
                 // visit children
             }
             visitor.visitEnd(elementName, elementIndex, this);
             visitor.postVisit(this);
         }
         
        Specified by:
        accept in interface Visitable
        Specified by:
        accept in class AbstractVisitable
        Parameters:
        elementName - the name of the element in the context of this visit
        elementIndex - the index of the element in a list or -1 if it is not contained within a List
        visitor - the visitor to use
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object