Class BundleType

  • All Implemented Interfaces:
    Visitable

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

      • DOCUMENT

        public static final BundleType DOCUMENT
        Document

        The bundle is a document. The first resource is a Composition.

      • MESSAGE

        public static final BundleType MESSAGE
        Message

        The bundle is a message. The first resource is a MessageHeader.

      • TRANSACTION

        public static final BundleType TRANSACTION
        Transaction

        The bundle is a transaction - intended to be processed by a server as an atomic commit.

      • TRANSACTION_RESPONSE

        public static final BundleType TRANSACTION_RESPONSE
        Transaction Response

        The bundle is a transaction response. Because the response is a transaction response, the transaction has succeeded, and all responses are error free.

      • BATCH

        public static final BundleType BATCH
        Batch

        The bundle is a set of actions - intended to be processed by a server as a group of independent actions.

      • BATCH_RESPONSE

        public static final BundleType BATCH_RESPONSE
        Batch Response

        The bundle is a batch response. Note that as a batch, some responses may indicate failure and others success.

      • HISTORY

        public static final BundleType HISTORY
        History List

        The bundle is a list of resources from a history interaction on a server.

      • SEARCHSET

        public static final BundleType SEARCHSET
        Search Results

        The bundle is a list of resources returned as a result of a search/query interaction, operation, or message.

      • COLLECTION

        public static final BundleType COLLECTION
        Collection

        The bundle is a set of resources collected into a single package for ease of distribution that imposes no processing obligations or behavioral rules beyond persistence.

    • Method Detail

      • of

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