Class PeriodBuilder.Impl
- java.lang.Object
-
- com.babylonhealth.lit.core_java.builders.PeriodBuilder.Impl
-
- All Implemented Interfaces:
ElementBuilder,PeriodBuilder
- Enclosing interface:
- PeriodBuilder
public static class PeriodBuilder.Impl extends java.lang.Object implements PeriodBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.babylonhealth.lit.core_java.builders.PeriodBuilder
PeriodBuilder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl()Required fields forPeriod
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.babylonhealth.lit.core.model.Periodbuild()PeriodBuilder.ImplwithEnd(@NonNull com.babylonhealth.lit.core.FHIRDateTime end)PeriodBuilder.ImplwithExtension(@NonNull ExtensionBuilder... extension)PeriodBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core.model.Extension... extension)PeriodBuilder.ImplwithExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)PeriodBuilder.ImplwithId(@NonNull java.lang.String id)PeriodBuilder.ImplwithStart(@NonNull com.babylonhealth.lit.core.FHIRDateTime start)
-
-
-
Method Detail
-
withId
public PeriodBuilder.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.
-
withEnd
public PeriodBuilder.Impl withEnd(@NonNull @NonNull com.babylonhealth.lit.core.FHIRDateTime end)
- Parameters:
end- - The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.
-
withStart
public PeriodBuilder.Impl withStart(@NonNull @NonNull com.babylonhealth.lit.core.FHIRDateTime start)
- Parameters:
start- - The start of the period. The boundary is inclusive.
-
withExtension
public PeriodBuilder.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 PeriodBuilder.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 PeriodBuilder.Impl withExtension(@NonNull @NonNull ExtensionBuilder... extension)
-
build
public com.babylonhealth.lit.core.model.Period build()
- Specified by:
buildin interfaceElementBuilder- Specified by:
buildin interfacePeriodBuilder
-
-