Class ExtensionBuilder.Impl
- java.lang.Object
-
- com.babylonhealth.lit.core_java.builders.ExtensionBuilder.Impl
-
- All Implemented Interfaces:
ElementBuilder,ExtensionBuilder
- Enclosing interface:
- ExtensionBuilder
public static class ExtensionBuilder.Impl extends java.lang.Object implements ExtensionBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.babylonhealth.lit.core_java.builders.ExtensionBuilder
ExtensionBuilder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl(java.lang.String url)Required fields forExtension
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.babylonhealth.lit.core.model.Extensionbuild()ExtensionBuilder.ImplwithExtension(@NonNull ExtensionBuilder... extension)ExtensionBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core.model.Extension... extension)ExtensionBuilder.ImplwithExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)ExtensionBuilder.ImplwithId(@NonNull java.lang.String id)ExtensionBuilder.ImplwithValue(@NonNull Unions.ChoiceAll value)
-
-
-
Method Detail
-
withId
public ExtensionBuilder.Impl withId(@NonNull @NonNull java.lang.String id)
- Parameters:
id- - Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
-
withValue
public ExtensionBuilder.Impl withValue(@NonNull @NonNull Unions.ChoiceAll value)
- Parameters:
value- - Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list). Field is a 'choice' field. Type should be one of Address, Age, Annotation, Attachment, byte[], BigDecimal, Boolean, String, CodeableConcept, Coding, ContactDetail, ContactPoint, Contributor, Count, DataRequirement, Distance, Dosage, Duration, Expression, FHIRDate, FHIRDateTime, HumanName, Identifier, Integer, LocalTime, Meta, Money, ParameterDefinition, Period, Quantity, Range, Ratio, Reference, RelatedArtifact, SampledData, Signature, Timing, TriggerDefinition, UUID, UsageContext, ZonedDateTime. To pass the value in, wrap with one of the ExtensionBuilder.value static methods
-
withExtension
public ExtensionBuilder.Impl withExtension(@NonNull @NonNull com.babylonhealth.lit.core.model.Extension... extension)
- Parameters:
extension- - May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
-
withExtension
public ExtensionBuilder.Impl withExtension(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)
- Parameters:
extension- - May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
-
withExtension
public ExtensionBuilder.Impl withExtension(@NonNull @NonNull ExtensionBuilder... extension)
-
build
public com.babylonhealth.lit.core.model.Extension build()
- Specified by:
buildin interfaceElementBuilder- Specified by:
buildin interfaceExtensionBuilder
-
-