All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hl7.fhir.Element Maven / Gradle / Ivy

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.18.0
Show newest version
//
// 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.05.02 at 09:57:28 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.XmlAttribute;
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 Element complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="Element">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="extension" type="{http://hl7.org/fhir}Extension" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="id" type="{http://hl7.org/fhir}id-primitive" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Element", propOrder = { "extension" }) @XmlSeeAlso({ AccountStatus.class, ParticipantRequired.class, AppointmentStatus.class, ParticipationStatus.class, AuditEventAction.class, AuditEventOutcome.class, AuditEventParticipantNetworkType.class, HTTPVerb.class, SearchEntryMode.class, BundleType.class, CarePlanStatus.class, CarePlanRelationship.class, CarePlanActivityStatus.class, ClaimType.class, Use.class, ClinicalImpressionStatus.class, PropertyType.class, CodeSystemContentMode.class, CommunicationStatus.class, CommunicationRequestStatus.class, CompartmentType.class, CompositionStatus.class, CompositionAttestationMode.class, ConditionVerificationStatus.class, DocumentMode.class, SystemRestfulInteraction.class, ResourceVersionPolicy.class, RestfulConformanceMode.class, TypeRestfulInteraction.class, ConditionalDeleteStatus.class, ConformanceStatementKind.class, SearchModifierCode.class, ConformanceEventMode.class, MessageSignificanceCategory.class, UnknownContentCode.class, TransactionMode.class, DataElementStringency.class, DetectedIssueSeverity.class, DeviceStatus.class, MeasmntPrinciple.class, DeviceMetricColor.class, DeviceMetricCalibrationState.class, DeviceMetricCalibrationType.class, DeviceMetricCategory.class, DeviceMetricOperationalStatus.class, DeviceUseRequestStatus.class, DeviceUseRequestPriority.class, DiagnosticOrderStatus.class, DiagnosticOrderPriority.class, DiagnosticReportStatus.class, DocumentRelationshipType.class, EncounterLocationStatus.class, EncounterClass.class, EncounterState.class, EpisodeOfCareStatus.class, FamilyHistoryStatus.class, FlagStatus.class, GoalStatus.class, GroupType.class, GuidanceResponseStatus.class, DaysOfWeek.class, DWebType.class, InstanceAvailability.class, GuideDependencyType.class, GuidePageKind.class, LinkageType.class, ListStatus.class, ListMode.class, LocationStatus.class, LocationMode.class, MeasureType.class, MeasureDataUsage.class, MeasurePopulationType.class, MeasureScoring.class, MeasureReportStatus.class, MeasureReportType.class, DigitalMediaType.class, MedicationAdministrationStatus.class, MedicationDispenseStatus.class, MedicationOrderStatus.class, MedicationStatementStatus.class, ResponseType.class, NamingSystemType.class, NamingSystemIdentifierType.class, NutritionOrderStatus.class, ObservationStatus.class, ObservationRelationshipType.class, OperationParameterUse.class, OperationKind.class, IssueType.class, IssueSeverity.class, OrderStatus.class, LinkType.class, IdentityAssuranceLevel.class, ProcedureStatus.class, ProcedureRequestPriority.class, ProcedureRequestStatus.class, ActionList.class, ProtocolType.class, ActivityDefinitionCategory.class, ProtocolStatus.class, ProvenanceEntityRole.class, QuestionnaireItemType.class, QuestionnaireStatus.class, QuestionnaireResponseStatus.class, ReferralCategory.class, ReferralStatus.class, XPathUsageType.class, SequenceType.class, SlotStatus.class, SpecimenStatus.class, StructureDefinitionKind.class, ExtensionContext.class, TypeDerivationRule.class, StructureMapTransform.class, StructureMapListMode.class, StructureMapInputMode.class, StructureMapContextType.class, StructureMapModelMode.class, SubscriptionStatus.class, SubscriptionChannelType.class, SupplyDeliveryStatus.class, SupplyRequestStatus.class, TaskStatus.class, TaskPriority.class, AssertionDirectionType.class, AssertionResponseTypes.class, AssertionOperatorType.class, ContentType.class, FilterOperator.class, VisionBase.class, VisionEyes.class, Markdown.class, Integer.class, DateTime.class, UnsignedInt.class, Code.class, Date.class, Decimal.class, Uri.class, Id.class, Base64Binary.class, Time.class, Oid.class, PositiveInt.class, org.hl7.fhir.String.class, Boolean.class, Uuid.class, Instant.class, Extension.class, Narrative.class, NarrativeStatus.class, Period.class, Coding.class, Range.class, QuantityComparator.class, Attachment.class, Ratio.class, Annotation.class, SampledData.class, SampledDataDataType.class, Reference.class, CodeableConcept.class, Identifier.class, IdentifierUse.class, Signature.class, Quantity.class, TriggerDefinition.class, TriggerType.class, ElementDefinition.class, ElementDefinitionMapping.class, ElementDefinitionSlicing.class, ElementDefinitionBinding.class, ElementDefinitionType.class, ElementDefinitionBase.class, ElementDefinitionConstraint.class, PropertyRepresentation.class, SlicingRules.class, BindingStrength.class, AggregationMode.class, ReferenceVersionRules.class, ConstraintSeverity.class, Timing.class, TimingRepeat.class, UnitsOfTime.class, EventTiming.class, ModuleMetadata.class, ModuleMetadataRelatedResource.class, ModuleMetadataContributor.class, ModuleMetadataContact1 .class, ModuleMetadataContact.class, ModuleMetadataCoverage.class, ModuleMetadataType.class, ModuleMetadataStatus.class, ModuleMetadataResourceType.class, ModuleMetadataContributorType.class, ActionDefinition.class, ActionDefinitionBehavior.class, ActionDefinitionCustomization.class, ActionDefinitionRelatedAction.class, ParticipantType.class, ActionType.class, ActionRelationshipType.class, ActionRelationshipAnchor.class, Address.class, AddressUse.class, AddressType.class, HumanName.class, NameUse.class, DataRequirement.class, DataRequirementDateFilter.class, DataRequirementCodeFilter.class, Meta.class, ParameterDefinition.class, ContactPoint.class, ContactPointSystem.class, ContactPointUse.class, NoteType.class, DocumentReferenceStatus.class, ConceptMapEquivalence.class, RemittanceOutcome.class, ConformanceResourceStatus.class, AdministrativeGender.class, SearchParamType.class, BackboneElement.class, AllergyIntoleranceCertainty.class, AllergyIntoleranceType.class, AllergyIntoleranceSeverity.class, AllergyIntoleranceCriticality.class, AllergyIntoleranceCategory.class, AllergyIntoleranceStatus.class }) public class Element implements Equals2, HashCode2, ToString2 { protected List extension; @XmlAttribute(name = "id") protected java.lang.String id; /** * Gets the value of the extension 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 extension property. * *

* For example, to add a new item, do as follows: *

     *    getExtension().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Extension } * * */ public List getExtension() { if (extension == null) { extension = new ArrayList(); } return this.extension; } /** * Gets the value of the id property. * * @return * possible object is * {@link java.lang.String } * */ public java.lang.String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link java.lang.String } * */ public void setId(java.lang.String value) { this.id = value; } public Element withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } public Element withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } public Element 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; } final Element that = ((Element) object); { List lhsExtension; lhsExtension = (((this.extension!= null)&&(!this.extension.isEmpty()))?this.getExtension():null); List rhsExtension; rhsExtension = (((that.extension!= null)&&(!that.extension.isEmpty()))?that.getExtension():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "extension", lhsExtension), LocatorUtils.property(thatLocator, "extension", rhsExtension), lhsExtension, rhsExtension, ((this.extension!= null)&&(!this.extension.isEmpty())), ((that.extension!= null)&&(!that.extension.isEmpty())))) { return false; } } { java.lang.String lhsId; lhsId = this.getId(); java.lang.String rhsId; rhsId = that.getId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId, (this.id!= null), (that.id!= null))) { 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 = 1; { List theExtension; theExtension = (((this.extension!= null)&&(!this.extension.isEmpty()))?this.getExtension():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "extension", theExtension), currentHashCode, theExtension, ((this.extension!= null)&&(!this.extension.isEmpty()))); } { java.lang.String theId; theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null)); } 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) { { List theExtension; theExtension = (((this.extension!= null)&&(!this.extension.isEmpty()))?this.getExtension():null); strategy.appendField(locator, this, "extension", buffer, theExtension, ((this.extension!= null)&&(!this.extension.isEmpty()))); } { java.lang.String theId; theId = this.getId(); strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null)); } return buffer; } public void setExtension(List value) { this.extension = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy