Class ReferenceHandlingPolicy

  • All Implemented Interfaces:
    Visitable

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

      • LITERAL

        public static final ReferenceHandlingPolicy LITERAL
        Literal References

        The server supports and populates Literal references (i.e. using Reference.reference) where they are known (this code does not guarantee that all references are literal; see 'enforced').

      • LOGICAL

        public static final ReferenceHandlingPolicy LOGICAL
        Logical References

        The server allows logical references (i.e. using Reference.identifier).

      • RESOLVES

        public static final ReferenceHandlingPolicy RESOLVES
        Resolves References

        The server will attempt to resolve logical references to literal references - i.e. converting Reference.identifier to Reference.reference (if resolution fails, the server may still accept resources; see logical).

      • ENFORCED

        public static final ReferenceHandlingPolicy ENFORCED
        Reference Integrity Enforced

        The server enforces that references have integrity - e.g. it ensures that references can always be resolved. This is typically the case for clinical record systems, but often not the case for middleware/proxy systems.

      • LOCAL

        public static final ReferenceHandlingPolicy LOCAL
        Local References Only

        The server does not support references that point to other servers.

    • Method Detail

      • of

        public static ReferenceHandlingPolicy of​(String value)
        Factory method for creating ReferenceHandlingPolicy 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 ReferenceHandlingPolicy 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 ReferenceHandlingPolicy 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