com.babylonhealth.lit.usbase_java.builders.VitalsignsBuilder Maven / Gradle / Ivy
package com.babylonhealth.lit.usbase_java.builders;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.ZonedDateTime;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Stream;
import java.util.stream.Collectors;
import scala.math.BigDecimal;
import scala.Option;
import scala.collection.immutable.Seq;
import scala.jdk.javaapi.CollectionConverters;
import scala.jdk.javaapi.OptionConverters;
import lombok.NonNull;
import com.babylonhealth.lit.core.FHIRComponentFieldMeta;
import com.babylonhealth.lit.core.FHIRDateTime;
import com.babylonhealth.lit.core.FHIRDate;
import com.babylonhealth.lit.core.LitSeqJCollector;
import com.babylonhealth.lit.core.LitSeq;
import com.babylonhealth.lit.core.LitSeq$;
import com.babylonhealth.lit.core.NonEmptyLitSeqJCollector;
import com.babylonhealth.lit.core.Choice;
import com.babylonhealth.lit.core.Choice$;
import com.babylonhealth.lit.core.model.*;
import com.babylonhealth.lit.hl7.model.*;
import com.babylonhealth.lit.usbase.model.*;
import com.babylonhealth.lit.core_java.builders.*;
import com.babylonhealth.lit.hl7_java.builders.*;
import com.babylonhealth.lit.usbase_java.builders.*;
import com.babylonhealth.lit.core_java.model.Unions.*;
import com.babylonhealth.lit.hl7_java.model.Unions.*;
import com.babylonhealth.lit.usbase_java.model.Unions.*;
import com.babylonhealth.lit.hl7.OBSERVATION_STATUS;
import com.babylonhealth.lit.core.LANGUAGES;
import com.babylonhealth.lit.core.$bslash$div;
import com.babylonhealth.lit.core_java.LitUtils;
import static com.babylonhealth.lit.core_java.LitUtils.autoSuffix;
import static com.babylonhealth.lit.core_java.LitUtils.guard;
import static java.util.stream.Collectors.toList;
public interface VitalsignsBuilder extends ObservationBuilder {
public Vitalsigns build();
public static Impl init(
CodeableConcept code,
OBSERVATION_STATUS status,
Reference subject,
Collection category,
@NonNull ChoiceDateTimeOrPeriod effective) {
return new Impl(code, status, subject, category, effective);
}
public static Impl builder(
CodeableConceptBuilder code,
OBSERVATION_STATUS status,
ReferenceBuilder subject,
Collection category,
@NonNull ChoiceDateTimeOrPeriod effective) {
return new Impl(
code.build(),
status,
subject.build(),
new LitSeq<>(category).map(CodeableConceptBuilder::build),
effective);
}
public static Choice02118820890 value(Boolean b) {
return new Choice02118820890(b);
}
public static Choice02118820890 value(CodeableConcept c) {
return new Choice02118820890(c);
}
public static Choice02118820890 value(FHIRDateTime f) {
return new Choice02118820890(f);
}
public static Choice02118820890 value(Integer i) {
return new Choice02118820890(i);
}
public static Choice02118820890 value(LocalTime l) {
return new Choice02118820890(l);
}
public static Choice02118820890 value(Period p) {
return new Choice02118820890(p);
}
public static Choice02118820890 value(Quantity q) {
return new Choice02118820890(q);
}
public static Choice02118820890 value(Range r) {
return new Choice02118820890(r);
}
public static Choice02118820890 value(Ratio r) {
return new Choice02118820890(r);
}
public static Choice02118820890 value(SampledData s) {
return new Choice02118820890(s);
}
public static Choice02118820890 value(String s) {
return new Choice02118820890(s);
}
public static ChoiceDateTimeOrPeriod effective(FHIRDateTime f) {
return new ChoiceDateTimeOrPeriod(f);
}
public static ChoiceDateTimeOrPeriod effective(Period p) {
return new ChoiceDateTimeOrPeriod(p);
}
public class Impl implements VitalsignsBuilder {
private Optional id = Optional.empty();
private Optional meta =
Optional.of(
MetaBuilder.init()
.withProfile("http://hl7.org/fhir/StructureDefinition/vitalsigns")
.build());
private Optional text = Optional.empty();
private CodeableConcept code;
private Collection note = Collections.emptyList();
private Collection focus = Collections.emptyList();
private Collection partOf = Collections.emptyList();
private OBSERVATION_STATUS status;
private Optional issued = Optional.empty();
private Optional method = Optional.empty();
private Optional device = Optional.empty();
private Collection basedOn = Collections.emptyList();
private Reference subject;
private Optional language = Optional.empty();
private Collection category;
private Optional value = Optional.empty();
private Optional bodySite = Optional.empty();
private Optional specimen = Optional.empty();
private Collection contained = Collections.emptyList();
private Collection extension = Collections.emptyList();
private Optional encounter = Optional.empty();
private Collection performer = Collections.emptyList();
private Collection hasMember = Collections.emptyList();
private Collection identifier = Collections.emptyList();
private Collection derivedFrom = Collections.emptyList();
private ChoiceDateTimeOrPeriod effective;
private Optional implicitRules = Optional.empty();
private Collection interpretation = Collections.emptyList();
private Optional dataAbsentReason = Optional.empty();
private Collection modifierExtension = Collections.emptyList();
private Collection component = Collections.emptyList();
private Collection referenceRange = Collections.emptyList();
/**
* Required fields for {@link Vitalsigns}
*
* @param code - Coded Responses from C-CDA Vital Sign Results.
* @param status - The status of the result value.
* @param subject - The patient, or group of patients, location, or device this observation is
* about and into whose record the observation is placed. If the actual focus of the
* observation is different from the subject (or a sample of, part, or region of the
* subject), the `focus` element or the `code` itself specifies the actual focus of the
* observation.
* @param category - A code that classifies the general type of observation being made.
* @param effective - Often just a dateTime for Vital Signs. Field is a 'choice' field. Type
* should be one of FHIRDateTime, Period. To pass the value in, wrap with one of the
* VitalsignsBuilder.effective static methods
*/
public Impl(
CodeableConcept code,
OBSERVATION_STATUS status,
Reference subject,
Collection category,
@NonNull ChoiceDateTimeOrPeriod effective) {
this.code = code;
this.status = status;
this.subject = subject;
this.category = category;
this.effective = effective;
}
/**
* @param id - The logical id of the resource, as used in the URL for the resource. Once
* assigned, this value never changes.
*/
public VitalsignsBuilder.Impl withId(@NonNull String id) {
this.id = Optional.of(id);
return this;
}
/**
* @param 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.
*/
public VitalsignsBuilder.Impl withMeta(@NonNull Meta meta) {
this.meta = Optional.of(meta);
return this;
}
public VitalsignsBuilder.Impl withMeta(@NonNull MetaBuilder meta) {
this.meta = Optional.of(meta.build());
return this;
}
/**
* @param text - A human-readable narrative that contains a summary of the resource and can be
* used to represent the content of the resource to a human. The narrative need not encode
* all the structured data, but is required to contain sufficient detail to make it
* "clinically safe" for a human to just read the narrative. Resource definitions may define
* what content should be represented in the narrative to ensure clinical safety.
*/
public VitalsignsBuilder.Impl withText(@NonNull Narrative text) {
this.text = Optional.of(text);
return this;
}
public VitalsignsBuilder.Impl withText(@NonNull NarrativeBuilder text) {
this.text = Optional.of(text.build());
return this;
}
/** @param note - Comments about the observation or the results. */
public VitalsignsBuilder.Impl withNote(@NonNull Annotation... note) {
this.note = Arrays.asList(note);
return this;
}
/** @param note - Comments about the observation or the results. */
public VitalsignsBuilder.Impl withNote(@NonNull Collection note) {
this.note = Collections.unmodifiableCollection(note);
return this;
}
public VitalsignsBuilder.Impl withNote(@NonNull AnnotationBuilder... note) {
this.note = Arrays.stream(note).map(e -> e.build()).collect(toList());
return this;
}
/**
* @param focus - The actual focus of an observation when it is not the patient of record
* representing something or someone associated with the patient such as a spouse, parent,
* fetus, or donor. For example, fetus observations in a mother's record. The focus of an
* observation could also be an existing condition, an intervention, the subject's diet,
* another observation of the subject, or a body structure such as tumor or implanted
* device. An example use case would be using the Observation resource to capture whether
* the mother is trained to change her child's tracheostomy tube. In this example, the child
* is the patient of record and the mother is the focus.
*/
public VitalsignsBuilder.Impl withFocus(@NonNull Reference... focus) {
this.focus = Arrays.asList(focus);
return this;
}
/**
* @param focus - The actual focus of an observation when it is not the patient of record
* representing something or someone associated with the patient such as a spouse, parent,
* fetus, or donor. For example, fetus observations in a mother's record. The focus of an
* observation could also be an existing condition, an intervention, the subject's diet,
* another observation of the subject, or a body structure such as tumor or implanted
* device. An example use case would be using the Observation resource to capture whether
* the mother is trained to change her child's tracheostomy tube. In this example, the child
* is the patient of record and the mother is the focus.
*/
public VitalsignsBuilder.Impl withFocus(@NonNull Collection focus) {
this.focus = Collections.unmodifiableCollection(focus);
return this;
}
public VitalsignsBuilder.Impl withFocus(@NonNull ReferenceBuilder... focus) {
this.focus = Arrays.stream(focus).map(e -> e.build()).collect(toList());
return this;
}
/**
* @param partOf - A larger event of which this particular Observation is a component or step.
* For example, an observation as part of a procedure.
*/
public VitalsignsBuilder.Impl withPartOf(@NonNull Reference... partOf) {
this.partOf = Arrays.asList(partOf);
return this;
}
/**
* @param partOf - A larger event of which this particular Observation is a component or step.
* For example, an observation as part of a procedure.
*/
public VitalsignsBuilder.Impl withPartOf(@NonNull Collection partOf) {
this.partOf = Collections.unmodifiableCollection(partOf);
return this;
}
public VitalsignsBuilder.Impl withPartOf(@NonNull ReferenceBuilder... partOf) {
this.partOf = Arrays.stream(partOf).map(e -> e.build()).collect(toList());
return this;
}
/**
* @param issued - The date and time this version of the observation was made available to
* providers, typically after the results have been reviewed and verified.
*/
public VitalsignsBuilder.Impl withIssued(@NonNull ZonedDateTime issued) {
this.issued = Optional.of(issued);
return this;
}
/** @param method - Indicates the mechanism used to perform the observation. */
public VitalsignsBuilder.Impl withMethod(@NonNull CodeableConcept method) {
this.method = Optional.of(method);
return this;
}
public VitalsignsBuilder.Impl withMethod(@NonNull CodeableConceptBuilder method) {
this.method = Optional.of(method.build());
return this;
}
/** @param device - The device used to generate the observation data. */
public VitalsignsBuilder.Impl withDevice(@NonNull Reference device) {
this.device = Optional.of(device);
return this;
}
public VitalsignsBuilder.Impl withDevice(@NonNull ReferenceBuilder device) {
this.device = Optional.of(device.build());
return this;
}
/**
* @param basedOn - A plan, proposal or order that is fulfilled in whole or in part by this
* event. For example, a MedicationRequest may require a patient to have laboratory test
* performed before it is dispensed.
*/
public VitalsignsBuilder.Impl withBasedOn(@NonNull Reference... basedOn) {
this.basedOn = Arrays.asList(basedOn);
return this;
}
/**
* @param basedOn - A plan, proposal or order that is fulfilled in whole or in part by this
* event. For example, a MedicationRequest may require a patient to have laboratory test
* performed before it is dispensed.
*/
public VitalsignsBuilder.Impl withBasedOn(@NonNull Collection basedOn) {
this.basedOn = Collections.unmodifiableCollection(basedOn);
return this;
}
public VitalsignsBuilder.Impl withBasedOn(@NonNull ReferenceBuilder... basedOn) {
this.basedOn = Arrays.stream(basedOn).map(e -> e.build()).collect(toList());
return this;
}
/** @param language - The base language in which the resource is written. */
public VitalsignsBuilder.Impl withLanguage(@NonNull LANGUAGES language) {
this.language = Optional.of(language);
return this;
}
/**
* @param value - Vital Signs value are recorded using the Quantity data type. For supporting
* observations such as Cuff size could use other datatypes such as CodeableConcept. Field
* is a 'choice' field. Type should be one of Boolean, CodeableConcept, FHIRDateTime,
* Integer, LocalTime, Period, Quantity, Range, Ratio, SampledData, String. To pass the
* value in, wrap with one of the VitalsignsBuilder.value static methods
*/
public VitalsignsBuilder.Impl withValue(@NonNull Choice02118820890 value) {
this.value = Optional.of(value);
return this;
}
/**
* @param bodySite - Indicates the site on the subject's body where the observation was made
* (i.e. the target site).
*/
public VitalsignsBuilder.Impl withBodySite(@NonNull CodeableConcept bodySite) {
this.bodySite = Optional.of(bodySite);
return this;
}
public VitalsignsBuilder.Impl withBodySite(@NonNull CodeableConceptBuilder bodySite) {
this.bodySite = Optional.of(bodySite.build());
return this;
}
/** @param specimen - The specimen that was used when this observation was made. */
public VitalsignsBuilder.Impl withSpecimen(@NonNull Reference specimen) {
this.specimen = Optional.of(specimen);
return this;
}
public VitalsignsBuilder.Impl withSpecimen(@NonNull ReferenceBuilder specimen) {
this.specimen = Optional.of(specimen.build());
return this;
}
/**
* @param contained - These resources do not have an independent existence apart from the
* resource that contains them - they cannot be identified independently, and nor can they
* have their own independent transaction scope.
*/
public VitalsignsBuilder.Impl withContained(@NonNull Resource... contained) {
this.contained = Arrays.asList(contained);
return this;
}
/**
* @param contained - These resources do not have an independent existence apart from the
* resource that contains them - they cannot be identified independently, and nor can they
* have their own independent transaction scope.
*/
public VitalsignsBuilder.Impl withContained(@NonNull Collection contained) {
this.contained = Collections.unmodifiableCollection(contained);
return this;
}
public VitalsignsBuilder.Impl withContained(@NonNull ResourceBuilder... contained) {
this.contained = Arrays.stream(contained).map(e -> e.build()).collect(toList());
return this;
}
/**
* @param extension - May be used to represent additional information that is not part of the
* basic definition of the resource. 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.
*/
public VitalsignsBuilder.Impl withExtension(@NonNull Extension... extension) {
this.extension = Arrays.asList(extension);
return this;
}
/**
* @param extension - May be used to represent additional information that is not part of the
* basic definition of the resource. 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.
*/
public VitalsignsBuilder.Impl withExtension(@NonNull Collection extension) {
this.extension = Collections.unmodifiableCollection(extension);
return this;
}
public VitalsignsBuilder.Impl withExtension(@NonNull ExtensionBuilder... extension) {
this.extension = Arrays.stream(extension).map(e -> e.build()).collect(toList());
return this;
}
/**
* @param encounter - The healthcare event (e.g. a patient and healthcare provider interaction)
* during which this observation is made.
*/
public VitalsignsBuilder.Impl withEncounter(@NonNull Reference encounter) {
this.encounter = Optional.of(encounter);
return this;
}
public VitalsignsBuilder.Impl withEncounter(@NonNull ReferenceBuilder encounter) {
this.encounter = Optional.of(encounter.build());
return this;
}
/** @param performer - Who was responsible for asserting the observed value as "true". */
public VitalsignsBuilder.Impl withPerformer(@NonNull Reference... performer) {
this.performer = Arrays.asList(performer);
return this;
}
/** @param performer - Who was responsible for asserting the observed value as "true". */
public VitalsignsBuilder.Impl withPerformer(@NonNull Collection performer) {
this.performer = Collections.unmodifiableCollection(performer);
return this;
}
public VitalsignsBuilder.Impl withPerformer(@NonNull ReferenceBuilder... performer) {
this.performer = Arrays.stream(performer).map(e -> e.build()).collect(toList());
return this;
}
/** @param hasMember - Used when reporting vital signs panel components. */
public VitalsignsBuilder.Impl withHasMember(@NonNull Reference... hasMember) {
this.hasMember = Arrays.asList(hasMember);
return this;
}
/** @param hasMember - Used when reporting vital signs panel components. */
public VitalsignsBuilder.Impl withHasMember(@NonNull Collection hasMember) {
this.hasMember = Collections.unmodifiableCollection(hasMember);
return this;
}
public VitalsignsBuilder.Impl withHasMember(@NonNull ReferenceBuilder... hasMember) {
this.hasMember = Arrays.stream(hasMember).map(e -> e.build()).collect(toList());
return this;
}
/** @param identifier - A unique identifier assigned to this observation. */
public VitalsignsBuilder.Impl withIdentifier(@NonNull Identifier... identifier) {
this.identifier = Arrays.asList(identifier);
return this;
}
/** @param identifier - A unique identifier assigned to this observation. */
public VitalsignsBuilder.Impl withIdentifier(@NonNull Collection identifier) {
this.identifier = Collections.unmodifiableCollection(identifier);
return this;
}
public VitalsignsBuilder.Impl withIdentifier(@NonNull IdentifierBuilder... identifier) {
this.identifier = Arrays.stream(identifier).map(e -> e.build()).collect(toList());
return this;
}
/**
* @param derivedFrom - The target resource that represents a measurement from which this
* observation value is derived. For example, a calculated anion gap or a fetal measurement
* based on an ultrasound image.
*/
public VitalsignsBuilder.Impl withDerivedFrom(@NonNull Reference... derivedFrom) {
this.derivedFrom = Arrays.asList(derivedFrom);
return this;
}
/**
* @param derivedFrom - The target resource that represents a measurement from which this
* observation value is derived. For example, a calculated anion gap or a fetal measurement
* based on an ultrasound image.
*/
public VitalsignsBuilder.Impl withDerivedFrom(@NonNull Collection derivedFrom) {
this.derivedFrom = Collections.unmodifiableCollection(derivedFrom);
return this;
}
public VitalsignsBuilder.Impl withDerivedFrom(@NonNull ReferenceBuilder... derivedFrom) {
this.derivedFrom = Arrays.stream(derivedFrom).map(e -> e.build()).collect(toList());
return this;
}
/**
* @param 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.
*/
public VitalsignsBuilder.Impl withImplicitRules(@NonNull String implicitRules) {
this.implicitRules = Optional.of(implicitRules);
return this;
}
/**
* @param interpretation - A categorical assessment of an observation value. For example, high,
* low, normal.
*/
public VitalsignsBuilder.Impl withInterpretation(@NonNull CodeableConcept... interpretation) {
this.interpretation = Arrays.asList(interpretation);
return this;
}
/**
* @param interpretation - A categorical assessment of an observation value. For example, high,
* low, normal.
*/
public VitalsignsBuilder.Impl withInterpretation(
@NonNull Collection interpretation) {
this.interpretation = Collections.unmodifiableCollection(interpretation);
return this;
}
public VitalsignsBuilder.Impl withInterpretation(
@NonNull CodeableConceptBuilder... interpretation) {
this.interpretation = Arrays.stream(interpretation).map(e -> e.build()).collect(toList());
return this;
}
/**
* @param dataAbsentReason - Provides a reason why the expected value in the element
* Observation.value[x] is missing.
*/
public VitalsignsBuilder.Impl withDataAbsentReason(@NonNull CodeableConcept dataAbsentReason) {
this.dataAbsentReason = Optional.of(dataAbsentReason);
return this;
}
public VitalsignsBuilder.Impl withDataAbsentReason(
@NonNull CodeableConceptBuilder dataAbsentReason) {
this.dataAbsentReason = Optional.of(dataAbsentReason.build());
return this;
}
/**
* @param modifierExtension - May be used to represent additional information that is not part
* of the basic definition of the resource and that modifies the understanding of the
* element that contains it and/or the understanding of the containing element's
* descendants. Usually modifier elements provide negation or qualification. 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 is allowed to define an
* extension, there is a set of requirements that SHALL be met as part of the definition of
* the extension. Applications processing a resource are required to check for modifier
* extensions.
* Modifier extensions SHALL NOT change the meaning of any elements on Resource or
* DomainResource (including cannot change the meaning of modifierExtension itself).
*/
public VitalsignsBuilder.Impl withModifierExtension(@NonNull Extension... modifierExtension) {
this.modifierExtension = Arrays.asList(modifierExtension);
return this;
}
/**
* @param modifierExtension - May be used to represent additional information that is not part
* of the basic definition of the resource and that modifies the understanding of the
* element that contains it and/or the understanding of the containing element's
* descendants. Usually modifier elements provide negation or qualification. 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 is allowed to define an
* extension, there is a set of requirements that SHALL be met as part of the definition of
* the extension. Applications processing a resource are required to check for modifier
* extensions.
*
Modifier extensions SHALL NOT change the meaning of any elements on Resource or
* DomainResource (including cannot change the meaning of modifierExtension itself).
*/
public VitalsignsBuilder.Impl withModifierExtension(
@NonNull Collection modifierExtension) {
this.modifierExtension = Collections.unmodifiableCollection(modifierExtension);
return this;
}
public VitalsignsBuilder.Impl withModifierExtension(
@NonNull ExtensionBuilder... modifierExtension) {
this.modifierExtension =
Arrays.stream(modifierExtension).map(e -> e.build()).collect(toList());
return this;
}
/** @param component - Used when reporting systolic and diastolic blood pressure. */
public VitalsignsBuilder.Impl withComponent(@NonNull Observation.Component... component) {
this.component = Arrays.asList(component);
return this;
}
/** @param component - Used when reporting systolic and diastolic blood pressure. */
public VitalsignsBuilder.Impl withComponent(
@NonNull Collection component) {
this.component = Collections.unmodifiableCollection(component);
return this;
}
public VitalsignsBuilder.Impl withComponent(
@NonNull Observation_ComponentBuilder... component) {
this.component = Arrays.stream(component).map(e -> e.build()).collect(toList());
return this;
}
/**
* @param referenceRange - Guidance on how to interpret the value by comparison to a normal or
* recommended range. Multiple reference ranges are interpreted as an "OR". In other words,
* to represent two distinct target populations, two `referenceRange` elements would be
* used.
*/
public VitalsignsBuilder.Impl withReferenceRange(
@NonNull Observation.ReferenceRange... referenceRange) {
this.referenceRange = Arrays.asList(referenceRange);
return this;
}
/**
* @param referenceRange - Guidance on how to interpret the value by comparison to a normal or
* recommended range. Multiple reference ranges are interpreted as an "OR". In other words,
* to represent two distinct target populations, two `referenceRange` elements would be
* used.
*/
public VitalsignsBuilder.Impl withReferenceRange(
@NonNull Collection referenceRange) {
this.referenceRange = Collections.unmodifiableCollection(referenceRange);
return this;
}
public VitalsignsBuilder.Impl withReferenceRange(
@NonNull Observation_ReferenceRangeBuilder... referenceRange) {
this.referenceRange = Arrays.stream(referenceRange).map(e -> e.build()).collect(toList());
return this;
}
public VitalsignsBuilder.Impl withoutMeta() {
this.meta = Optional.empty();
return this;
}
public Vitalsigns build() {
return new Vitalsigns(
OptionConverters.toScala(id),
OptionConverters.toScala(meta),
OptionConverters.toScala(text),
code,
note.stream().collect(new LitSeqJCollector<>()),
focus.stream().collect(new LitSeqJCollector<>()),
partOf.stream().collect(new LitSeqJCollector<>()),
status,
OptionConverters.toScala(issued),
OptionConverters.toScala(method),
OptionConverters.toScala(device),
basedOn.stream().collect(new LitSeqJCollector<>()),
subject,
OptionConverters.toScala(language),
category.stream().collect(new NonEmptyLitSeqJCollector<>()),
(Option) OptionConverters.toScala(value),
OptionConverters.toScala(bodySite),
OptionConverters.toScala(specimen),
contained.stream().collect(new LitSeqJCollector<>()),
extension.stream().collect(new LitSeqJCollector<>()),
OptionConverters.toScala(encounter),
performer.stream().collect(new LitSeqJCollector<>()),
hasMember.stream().collect(new LitSeqJCollector<>()),
identifier.stream().collect(new LitSeqJCollector<>()),
derivedFrom.stream().collect(new LitSeqJCollector<>()),
effective,
OptionConverters.toScala(implicitRules),
interpretation.stream().collect(new LitSeqJCollector<>()),
OptionConverters.toScala(dataAbsentReason),
modifierExtension.stream().collect(new LitSeqJCollector<>()),
component.stream().collect(new LitSeqJCollector<>()),
referenceRange.stream().collect(new LitSeqJCollector<>()),
LitUtils.emptyMetaElMap());
}
}
}