Class BundleBuilder.Impl

  • All Implemented Interfaces:
    com.babylonhealth.lit.core_java.builders.ResourceBuilder, BundleBuilder
    Enclosing interface:
    BundleBuilder

    public static class BundleBuilder.Impl
    extends java.lang.Object
    implements BundleBuilder
    • Constructor Detail

      • Impl

        public Impl​(com.babylonhealth.lit.hl7.BUNDLE_TYPE _type)
        Required fields for Bundle
        Parameters:
        _type - - Indicates the purpose of this bundle - how it is intended to be used.
    • Method Detail

      • withId

        public BundleBuilder.Impl withId​(@NonNull
                                         @NonNull java.lang.String id)
        Parameters:
        id - - The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
      • withMeta

        public BundleBuilder.Impl withMeta​(@NonNull
                                           @NonNull com.babylonhealth.lit.core.model.Meta meta)
        Parameters:
        meta - - The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
      • withMeta

        public BundleBuilder.Impl withMeta​(@NonNull
                                           @NonNull com.babylonhealth.lit.core_java.builders.MetaBuilder meta)
      • withTotal

        public BundleBuilder.Impl withTotal​(@NonNull
                                            @NonNull java.lang.Integer total)
        Parameters:
        total - - If a set of search matches, this is the total number of entries of type 'match' across all pages in the search. It does not include search.mode = 'include' or 'outcome' entries and it does not provide a count of the number of entries in the Bundle.
      • withLanguage

        public BundleBuilder.Impl withLanguage​(@NonNull
                                               @NonNull com.babylonhealth.lit.core.LANGUAGES language)
        Parameters:
        language - - The base language in which the resource is written.
      • withTimestamp

        public BundleBuilder.Impl withTimestamp​(@NonNull
                                                @NonNull java.time.ZonedDateTime timestamp)
        Parameters:
        timestamp - - The date/time that the bundle was assembled - i.e. when the resources were placed in the bundle.
      • withSignature

        public BundleBuilder.Impl withSignature​(@NonNull
                                                @NonNull com.babylonhealth.lit.core.model.Signature signature)
        Parameters:
        signature - - Digital Signature - base64 encoded. XML-DSig or a JWT.
      • withSignature

        public BundleBuilder.Impl withSignature​(@NonNull
                                                @NonNull com.babylonhealth.lit.core_java.builders.SignatureBuilder signature)
      • withIdentifier

        public BundleBuilder.Impl withIdentifier​(@NonNull
                                                 @NonNull com.babylonhealth.lit.core.model.Identifier identifier)
        Parameters:
        identifier - - A persistent identifier for the bundle that won't change as a bundle is copied from server to server.
      • withIdentifier

        public BundleBuilder.Impl withIdentifier​(@NonNull
                                                 @NonNull com.babylonhealth.lit.core_java.builders.IdentifierBuilder identifier)
      • withImplicitRules

        public BundleBuilder.Impl withImplicitRules​(@NonNull
                                                    @NonNull java.lang.String implicitRules)
        Parameters:
        implicitRules - - A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
      • withLink

        public BundleBuilder.Impl withLink​(@NonNull
                                           @NonNull com.babylonhealth.lit.hl7.model.Bundle.Link... link)
        Parameters:
        link - - A series of links that provide context to this bundle.
      • withLink

        public BundleBuilder.Impl withLink​(@NonNull
                                           @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.Bundle.Link> link)
        Parameters:
        link - - A series of links that provide context to this bundle.
      • withEntry

        public BundleBuilder.Impl withEntry​(@NonNull
                                            @NonNull com.babylonhealth.lit.hl7.model.Bundle.Entry... entry)
        Parameters:
        entry - - An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only).
      • withEntry

        public BundleBuilder.Impl withEntry​(@NonNull
                                            @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.Bundle.Entry> entry)
        Parameters:
        entry - - An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only).
      • build

        public com.babylonhealth.lit.hl7.model.Bundle build()
        Specified by:
        build in interface BundleBuilder
        Specified by:
        build in interface com.babylonhealth.lit.core_java.builders.ResourceBuilder