Class ResponseType

  • All Implemented Interfaces:
    Visitable

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

      • OK

        public static final ResponseType OK
        OK

        The message was accepted and processed without error.

      • TRANSIENT_ERROR

        public static final ResponseType TRANSIENT_ERROR
        Transient Error

        Some internal unexpected error occurred - wait and try again. Note - this is usually used for things like database unavailable, which may be expected to resolve, though human intervention may be required.

      • FATAL_ERROR

        public static final ResponseType FATAL_ERROR
        Fatal Error

        The message was rejected because of a problem with the content. There is no point in re-sending without change. The response narrative SHALL describe the issue.

    • Method Detail

      • of

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