Class BundleBuilder.Impl
- java.lang.Object
-
- com.babylonhealth.lit.hl7_java.builders.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.babylonhealth.lit.hl7_java.builders.BundleBuilder
BundleBuilder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl(com.babylonhealth.lit.hl7.BUNDLE_TYPE _type)Required fields forBundle
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.babylonhealth.lit.hl7.model.Bundlebuild()BundleBuilder.ImplwithEntry(@NonNull Bundle_EntryBuilder... entry)BundleBuilder.ImplwithEntry(@NonNull com.babylonhealth.lit.hl7.model.Bundle.Entry... entry)BundleBuilder.ImplwithEntry(@NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.Bundle.Entry> entry)BundleBuilder.ImplwithId(@NonNull java.lang.String id)BundleBuilder.ImplwithIdentifier(@NonNull com.babylonhealth.lit.core_java.builders.IdentifierBuilder identifier)BundleBuilder.ImplwithIdentifier(@NonNull com.babylonhealth.lit.core.model.Identifier identifier)BundleBuilder.ImplwithImplicitRules(@NonNull java.lang.String implicitRules)BundleBuilder.ImplwithLanguage(@NonNull com.babylonhealth.lit.core.LANGUAGES language)BundleBuilder.ImplwithLink(@NonNull Bundle_LinkBuilder... link)BundleBuilder.ImplwithLink(@NonNull com.babylonhealth.lit.hl7.model.Bundle.Link... link)BundleBuilder.ImplwithLink(@NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.Bundle.Link> link)BundleBuilder.ImplwithMeta(@NonNull com.babylonhealth.lit.core_java.builders.MetaBuilder meta)BundleBuilder.ImplwithMeta(@NonNull com.babylonhealth.lit.core.model.Meta meta)BundleBuilder.ImplwithoutMeta()BundleBuilder.ImplwithSignature(@NonNull com.babylonhealth.lit.core_java.builders.SignatureBuilder signature)BundleBuilder.ImplwithSignature(@NonNull com.babylonhealth.lit.core.model.Signature signature)BundleBuilder.ImplwithTimestamp(@NonNull java.time.ZonedDateTime timestamp)BundleBuilder.ImplwithTotal(@NonNull java.lang.Integer total)
-
-
-
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.
-
withLink
public BundleBuilder.Impl withLink(@NonNull @NonNull Bundle_LinkBuilder... link)
-
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).
-
withEntry
public BundleBuilder.Impl withEntry(@NonNull @NonNull Bundle_EntryBuilder... entry)
-
withoutMeta
public BundleBuilder.Impl withoutMeta()
-
build
public com.babylonhealth.lit.hl7.model.Bundle build()
- Specified by:
buildin interfaceBundleBuilder- Specified by:
buildin interfacecom.babylonhealth.lit.core_java.builders.ResourceBuilder
-
-