Class LinkType

  • All Implemented Interfaces:
    Visitable

    @Generated("com.ibm.fhir.tools.CodeGenerator")
    public class LinkType
    extends Code
    • Field Detail

      • REPLACED_BY

        public static final LinkType REPLACED_BY
        Replaced-by

        The patient resource containing this link must no longer be used. The link points forward to another patient resource that must be used in lieu of the patient resource that contains this link.

      • REPLACES

        public static final LinkType REPLACES
        Replaces

        The patient resource containing this link is the current active patient record. The link points back to an inactive patient resource that has been merged into this resource, and should be consulted to retrieve additional referenced information.

      • REFER

        public static final LinkType REFER
        Refer

        The patient resource containing this link is in use and valid but not considered the main source of information about a patient. The link points forward to another patient resource that should be consulted to retrieve additional patient information.

      • SEEALSO

        public static final LinkType SEEALSO
        See also

        The patient resource containing this link is in use and valid, but points to another patient resource that is known to contain data about the same person. Data in this resource might overlap or contradict information found in the other patient resource. This link does not indicate any relative importance of the resources concerned, and both should be regarded as equally valid.

    • Method Detail

      • of

        public static LinkType of​(LinkType.ValueSet value)
        Factory method for creating LinkType objects from a passed enum value.
      • of

        public static LinkType of​(String value)
        Factory method for creating LinkType objects from a passed string value.
        Parameters:
        value - A string that matches one of the allowed code values
        Throws:
        IllegalArgumentException - If the passed string cannot be parsed into an allowed code value
      • string

        public static String string​(String value)
        Inherited factory method for creating LinkType objects from a passed string value.
        Parameters:
        value - A string that matches one of the allowed code values
        Throws:
        IllegalArgumentException - If the passed string cannot be parsed into an allowed code value
      • code

        public static Code code​(String value)
        Inherited factory method for creating LinkType objects from a passed string value.
        Parameters:
        value - A string that matches one of the allowed code values
        Throws:
        IllegalArgumentException - If the passed string cannot be parsed into an allowed code value
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Code
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Code
      • toBuilder

        public LinkType.Builder toBuilder()
        Description copied from class: Element
        Create a new Builder from the contents of this Element
        Overrides:
        toBuilder in class Code