org.hl7.fhir.BackboneElement Maven / Gradle / Ivy
Show all versions of quick Show documentation
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.08.16 at 09:36:55 AM MDT
//
package org.hl7.fhir;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlSeeAlso;
import jakarta.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* If the element is present, it must have a value for at least one of the defined elements, an @id referenced from the Narrative, or extensions
*
* Java class for BackboneElement complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="BackboneElement">
* <complexContent>
* <extension base="{http://hl7.org/fhir}Element">
* <sequence>
* <element name="modifierExtension" type="{http://hl7.org/fhir}Extension" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BackboneElement", propOrder = {
"modifierExtension"
})
@XmlSeeAlso({
AppointmentParticipant.class,
AuditEventAgent.class,
AuditEventNetwork.class,
AuditEventSource.class,
AuditEventEntity.class,
AuditEventDetail.class,
BundleLink.class,
BundleEntry.class,
BundleSearch.class,
BundleRequest.class,
BundleResponse.class,
CarePlanRelatedPlan.class,
CarePlanParticipant.class,
CarePlanActivity.class,
CarePlanDetail.class,
CareTeamParticipant.class,
ClaimRelated.class,
ClaimPayee.class,
ClaimDiagnosis.class,
ClaimProcedure.class,
ClaimCoverage.class,
ClaimOnset.class,
ClaimItem.class,
ClaimDetail.class,
ClaimSubDetail.class,
ClaimProsthesis.class,
ClaimMissingTeeth.class,
ClaimResponseItem.class,
ClaimResponseAdjudication.class,
ClaimResponseDetail.class,
ClaimResponseAdjudication1 .class,
ClaimResponseSubDetail.class,
ClaimResponseAdjudication2 .class,
ClaimResponseAddItem.class,
ClaimResponseAdjudication3 .class,
ClaimResponseDetail1 .class,
ClaimResponseAdjudication4 .class,
ClaimResponseError.class,
ClaimResponseNote.class,
ClaimResponseCoverage.class,
ClinicalImpressionInvestigations.class,
ClinicalImpressionFinding.class,
ClinicalImpressionRuledOut.class,
CodeSystemContact.class,
CodeSystemFilter.class,
CodeSystemProperty.class,
CodeSystemConcept.class,
CodeSystemDesignation.class,
CodeSystemProperty1 .class,
CommunicationPayload.class,
CommunicationRequestPayload.class,
CompartmentDefinitionContact.class,
CompartmentDefinitionResource.class,
CompositionAttester.class,
CompositionEvent.class,
CompositionSection.class,
ConceptMapContact.class,
ConceptMapElement.class,
ConceptMapTarget.class,
ConceptMapDependsOn.class,
ConditionStage.class,
ConditionEvidence.class,
ConformanceContact.class,
ConformanceSoftware.class,
ConformanceImplementation.class,
ConformanceRest.class,
ConformanceSecurity.class,
ConformanceCertificate.class,
ConformanceResource.class,
ConformanceInteraction.class,
ConformanceSearchParam.class,
ConformanceInteraction1 .class,
ConformanceOperation.class,
ConformanceMessaging.class,
ConformanceEndpoint.class,
ConformanceEvent.class,
ConformanceDocument.class,
ContractAgent.class,
ContractSigner.class,
ContractValuedItem.class,
ContractTerm.class,
ContractAgent1 .class,
ContractValuedItem1 .class,
ContractFriendly.class,
ContractLegal.class,
ContractRule.class,
DataElementContact.class,
DataElementMapping.class,
DetectedIssueMitigation.class,
DeviceComponentProductionSpecification.class,
DeviceMetricCalibration.class,
DiagnosticOrderEvent.class,
DiagnosticOrderItem.class,
DiagnosticReportImage.class,
DocumentManifestContent.class,
DocumentManifestRelated.class,
DocumentReferenceRelatesTo.class,
DocumentReferenceContent.class,
DocumentReferenceContext.class,
DocumentReferenceRelated.class,
EligibilityResponseBenefitBalance.class,
EligibilityResponseFinancial.class,
EligibilityResponseError.class,
EncounterStatusHistory.class,
EncounterParticipant.class,
EncounterHospitalization.class,
EncounterLocation.class,
EpisodeOfCareStatusHistory.class,
ExpansionProfileContact.class,
ExpansionProfileCodeSystem.class,
ExpansionProfileInclude.class,
ExpansionProfileCodeSystem1 .class,
ExpansionProfileExclude.class,
ExpansionProfileCodeSystem2 .class,
ExpansionProfileDesignation.class,
ExpansionProfileInclude1 .class,
ExpansionProfileDesignation1 .class,
ExpansionProfileExclude1 .class,
ExpansionProfileDesignation2 .class,
ExplanationOfBenefitRelated.class,
ExplanationOfBenefitPayee.class,
ExplanationOfBenefitDiagnosis.class,
ExplanationOfBenefitProcedure.class,
ExplanationOfBenefitCoverage.class,
ExplanationOfBenefitOnset.class,
ExplanationOfBenefitItem.class,
ExplanationOfBenefitAdjudication.class,
ExplanationOfBenefitDetail.class,
ExplanationOfBenefitAdjudication1 .class,
ExplanationOfBenefitSubDetail.class,
ExplanationOfBenefitAdjudication2 .class,
ExplanationOfBenefitProsthesis.class,
ExplanationOfBenefitAddItem.class,
ExplanationOfBenefitAdjudication3 .class,
ExplanationOfBenefitDetail1 .class,
ExplanationOfBenefitAdjudication4 .class,
ExplanationOfBenefitMissingTeeth.class,
ExplanationOfBenefitNote.class,
ExplanationOfBenefitBenefitBalance.class,
ExplanationOfBenefitFinancial.class,
FamilyMemberHistoryCondition.class,
GoalOutcome.class,
GroupCharacteristic.class,
GroupMember.class,
GuidanceResponseAction.class,
GuidanceResponseRelatedAction.class,
GuidanceResponseBehavior.class,
HealthcareServiceAvailableTime.class,
HealthcareServiceNotAvailable.class,
ImagingExcerptStudy.class,
ImagingExcerptDicom.class,
ImagingExcerptViewable.class,
ImagingExcerptSeries.class,
ImagingExcerptDicom1 .class,
ImagingExcerptInstance.class,
ImagingExcerptDicom2 .class,
ImagingObjectSelectionStudy.class,
ImagingObjectSelectionSeries.class,
ImagingObjectSelectionInstance.class,
ImagingObjectSelectionFrame.class,
ImagingStudySeries.class,
ImagingStudyInstance.class,
ImmunizationExplanation.class,
ImmunizationReaction.class,
ImmunizationVaccinationProtocol.class,
ImmunizationRecommendationRecommendation.class,
ImmunizationRecommendationDateCriterion.class,
ImmunizationRecommendationProtocol.class,
ImplementationGuideContact.class,
ImplementationGuideDependency.class,
ImplementationGuidePackage.class,
ImplementationGuideResource.class,
ImplementationGuideGlobal.class,
ImplementationGuidePage.class,
LibraryModel.class,
LibraryLibrary.class,
LibraryCodeSystem.class,
LibraryValueSet.class,
LinkageItem.class,
ListEntry.class,
LocationPosition.class,
MeasureGroup.class,
MeasurePopulation.class,
MeasureStratifier.class,
MeasureSupplementalData.class,
MeasureReportGroup.class,
MeasureReportPopulation.class,
MeasureReportStratifier.class,
MeasureReportGroup1 .class,
MeasureReportPopulation1 .class,
MeasureReportSupplementalData.class,
MeasureReportGroup2 .class,
MedicationProduct.class,
MedicationIngredient.class,
MedicationBatch.class,
MedicationPackage.class,
MedicationContent.class,
MedicationAdministrationDosage.class,
MedicationDispenseDosageInstruction.class,
MedicationDispenseSubstitution.class,
MedicationOrderDosageInstruction.class,
MedicationOrderDispenseRequest.class,
MedicationOrderSubstitution.class,
MedicationStatementDosage.class,
MessageHeaderResponse.class,
MessageHeaderSource.class,
MessageHeaderDestination.class,
ModuleDefinitionModel.class,
ModuleDefinitionLibrary.class,
ModuleDefinitionCodeSystem.class,
ModuleDefinitionValueSet.class,
ModuleDefinitionParameter.class,
ModuleDefinitionData.class,
ModuleDefinitionCodeFilter.class,
ModuleDefinitionDateFilter.class,
NamingSystemContact.class,
NamingSystemUniqueId.class,
NutritionOrderOralDiet.class,
NutritionOrderNutrient.class,
NutritionOrderTexture.class,
NutritionOrderSupplement.class,
NutritionOrderEnteralFormula.class,
NutritionOrderAdministration.class,
ObservationReferenceRange.class,
ObservationRelated.class,
ObservationComponent.class,
OperationDefinitionContact.class,
OperationDefinitionParameter.class,
OperationDefinitionBinding.class,
OperationOutcomeIssue.class,
OrderWhen.class,
OrganizationContact.class,
ParametersParameter.class,
PatientContact.class,
PatientAnimal.class,
PatientCommunication.class,
PatientLink.class,
PaymentReconciliationDetail.class,
PaymentReconciliationNote.class,
PersonLink.class,
PractitionerPractitionerRole.class,
PractitionerQualification.class,
PractitionerRoleAvailableTime.class,
PractitionerRoleNotAvailable.class,
ProcedurePerformer.class,
ProcedureFocalDevice.class,
ProcessRequestItem.class,
ProcessResponseNotes.class,
ProtocolStep.class,
ProtocolPrecondition.class,
ProtocolCondition.class,
ProtocolActivity.class,
ProtocolComponent.class,
ProtocolDetail.class,
ProtocolNext.class,
ProvenanceAgent.class,
ProvenanceRelatedAgent.class,
ProvenanceEntity.class,
QuestionnaireItem.class,
QuestionnaireEnableWhen.class,
QuestionnaireOption.class,
QuestionnaireResponseItem.class,
QuestionnaireResponseAnswer.class,
RiskAssessmentPrediction.class,
SearchParameterContact.class,
SequenceReferenceSeq.class,
SequenceVariation.class,
SequenceQuality.class,
SequenceRepository.class,
SequenceStructureVariation.class,
SequenceOuter.class,
SequenceInner.class,
SpecimenCollection.class,
SpecimenTreatment.class,
SpecimenContainer.class,
StructureDefinitionContact.class,
StructureDefinitionMapping.class,
StructureDefinitionSnapshot.class,
StructureDefinitionDifferential.class,
StructureMapContact.class,
StructureMapStructure.class,
StructureMapGroup.class,
StructureMapInput.class,
StructureMapRule.class,
StructureMapSource.class,
StructureMapTarget.class,
StructureMapParameter.class,
StructureMapDependent.class,
SubscriptionChannel.class,
SubstanceInstance.class,
SubstanceIngredient.class,
SupplyRequestWhen.class,
TaskInput.class,
TaskOutput.class,
TestScriptContact.class,
TestScriptOrigin.class,
TestScriptDestination.class,
TestScriptMetadata.class,
TestScriptLink.class,
TestScriptCapability.class,
TestScriptFixture.class,
TestScriptVariable.class,
TestScriptRule.class,
TestScriptParam.class,
TestScriptRuleset.class,
TestScriptRule1 .class,
TestScriptParam1 .class,
TestScriptSetup.class,
TestScriptAction.class,
TestScriptOperation.class,
TestScriptRequestHeader.class,
TestScriptAssert.class,
TestScriptRule2 .class,
TestScriptParam2 .class,
TestScriptRuleset1 .class,
TestScriptRule3 .class,
TestScriptParam3 .class,
TestScriptTest.class,
TestScriptAction1 .class,
TestScriptTeardown.class,
TestScriptAction2 .class,
ValueSetContact.class,
ValueSetCompose.class,
ValueSetInclude.class,
ValueSetConcept.class,
ValueSetDesignation.class,
ValueSetFilter.class,
ValueSetExpansion.class,
ValueSetParameter.class,
ValueSetContains.class,
VisionPrescriptionDispense.class,
AllergyIntoleranceReaction.class
})
public class BackboneElement
extends Element
implements Equals2, HashCode2, ToString2
{
protected List modifierExtension;
/**
* Gets the value of the modifierExtension property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a set
method for the modifierExtension property.
*
*
* For example, to add a new item, do as follows:
*
* getModifierExtension().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List getModifierExtension() {
if (modifierExtension == null) {
modifierExtension = new ArrayList();
}
return this.modifierExtension;
}
public BackboneElement withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
public BackboneElement withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public BackboneElement withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public BackboneElement withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public BackboneElement withId(java.lang.String value) {
setId(value);
return this;
}
@Override
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
if (!super.equals(thisLocator, thatLocator, object, strategy)) {
return false;
}
final BackboneElement that = ((BackboneElement) object);
{
List lhsModifierExtension;
lhsModifierExtension = (((this.modifierExtension!= null)&&(!this.modifierExtension.isEmpty()))?this.getModifierExtension():null);
List rhsModifierExtension;
rhsModifierExtension = (((that.modifierExtension!= null)&&(!that.modifierExtension.isEmpty()))?that.getModifierExtension():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "modifierExtension", lhsModifierExtension), LocatorUtils.property(thatLocator, "modifierExtension", rhsModifierExtension), lhsModifierExtension, rhsModifierExtension, ((this.modifierExtension!= null)&&(!this.modifierExtension.isEmpty())), ((that.modifierExtension!= null)&&(!that.modifierExtension.isEmpty())))) {
return false;
}
}
return true;
}
@Override
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance();
return equals(null, null, object, strategy);
}
@Override
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = super.hashCode(locator, strategy);
{
List theModifierExtension;
theModifierExtension = (((this.modifierExtension!= null)&&(!this.modifierExtension.isEmpty()))?this.getModifierExtension():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "modifierExtension", theModifierExtension), currentHashCode, theModifierExtension, ((this.modifierExtension!= null)&&(!this.modifierExtension.isEmpty())));
}
return currentHashCode;
}
@Override
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance();
return this.hashCode(null, strategy);
}
@Override
public java.lang.String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance();
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
@Override
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
@Override
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
super.appendFields(locator, buffer, strategy);
{
List theModifierExtension;
theModifierExtension = (((this.modifierExtension!= null)&&(!this.modifierExtension.isEmpty()))?this.getModifierExtension():null);
strategy.appendField(locator, this, "modifierExtension", buffer, theModifierExtension, ((this.modifierExtension!= null)&&(!this.modifierExtension.isEmpty())));
}
return buffer;
}
public void setModifierExtension(List value) {
this.modifierExtension = value;
}
}