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

ca.uhn.fhir.model.dstu2.resource.Bundle Maven / Gradle / Ivy

The newest version!
















package ca.uhn.fhir.model.dstu2.resource;

import java.math.BigDecimal;
import java.net.URI;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.rest.gclient.*;

import ca.uhn.fhir.model.dstu2.valueset.AccountStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ActionListEnum;
import ca.uhn.fhir.model.dstu2.composite.AddressDt;
import ca.uhn.fhir.model.dstu2.valueset.AdjudicationCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdjudicationErrorCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdjustmentReasonCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdministrativeGenderEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdmitSourceEnum;
import ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCertaintyEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCriticalityEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceSeverityEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceTypeEnum;
import ca.uhn.fhir.model.dstu2.composite.AnnotationDt;
import ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum;
import ca.uhn.fhir.model.dstu2.resource.Appointment;
import ca.uhn.fhir.model.dstu2.valueset.AppointmentStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionDirectionTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionOperatorTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionResponseTypesEnum;
import ca.uhn.fhir.model.dstu2.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventActionEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectRoleEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventOutcomeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventParticipantNetworkTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventSourceTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum;
import ca.uhn.fhir.model.dstu2.resource.BodySite;
import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.CarePlan;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanRelationshipEnum;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Claim;
import ca.uhn.fhir.model.dstu2.resource.ClaimResponse;
import ca.uhn.fhir.model.dstu2.valueset.ClaimTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.ClinicalImpression;
import ca.uhn.fhir.model.dstu2.valueset.ClinicalImpressionStatusEnum;
import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.CodingDt;
import ca.uhn.fhir.model.dstu2.resource.CommunicationRequest;
import ca.uhn.fhir.model.dstu2.valueset.CommunicationRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.CommunicationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Composition;
import ca.uhn.fhir.model.dstu2.valueset.CompositionAttestationModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.CompositionStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum;
import ca.uhn.fhir.model.dstu2.resource.Condition;
import ca.uhn.fhir.model.dstu2.valueset.ConditionCategoryCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionClinicalStatusCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionalDeleteStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Conformance;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceEventModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceResourceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceStatementKindEnum;
import ca.uhn.fhir.model.dstu2.composite.ContactPointDt;
import ca.uhn.fhir.model.dstu2.valueset.ContentTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.Contract;
import ca.uhn.fhir.model.dstu2.resource.Coverage;
import ca.uhn.fhir.model.dstu2.valueset.DataElementStringencyEnum;
import ca.uhn.fhir.model.dstu2.valueset.DaysOfWeekEnum;
import ca.uhn.fhir.model.dstu2.valueset.DetectedIssueSeverityEnum;
import ca.uhn.fhir.model.dstu2.resource.Device;
import ca.uhn.fhir.model.dstu2.resource.DeviceComponent;
import ca.uhn.fhir.model.dstu2.resource.DeviceMetric;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationStateEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricColorEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricOperationalStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest;
import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DiagnosticReport;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DigitalMediaTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.DocumentModeEnum;
import ca.uhn.fhir.model.dstu2.resource.DocumentReference;
import ca.uhn.fhir.model.dstu2.valueset.DocumentReferenceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DocumentRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt;
import ca.uhn.fhir.model.dstu2.resource.EligibilityRequest;
import ca.uhn.fhir.model.dstu2.resource.Encounter;
import ca.uhn.fhir.model.dstu2.valueset.EncounterClassEnum;
import ca.uhn.fhir.model.dstu2.valueset.EncounterLocationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.EncounterStateEnum;
import ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest;
import ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare;
import ca.uhn.fhir.model.dstu2.valueset.EpisodeOfCareStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ExtensionContextEnum;
import ca.uhn.fhir.model.dstu2.valueset.FamilyHistoryStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory;
import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum;
import ca.uhn.fhir.model.dstu2.valueset.FlagStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Goal;
import ca.uhn.fhir.model.dstu2.valueset.GoalPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.GoalStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Group;
import ca.uhn.fhir.model.dstu2.valueset.GroupTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuideDependencyTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuidePageKindEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuideResourcePurposeEnum;
import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum;
import ca.uhn.fhir.model.dstu2.resource.HealthcareService;
import ca.uhn.fhir.model.dstu2.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu2.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.IdentityAssuranceLevelEnum;
import ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection;
import ca.uhn.fhir.model.dstu2.resource.ImagingStudy;
import ca.uhn.fhir.model.dstu2.resource.Immunization;
import ca.uhn.fhir.model.dstu2.valueset.InstanceAvailabilityEnum;
import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum;
import ca.uhn.fhir.model.dstu2.valueset.IssueTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.KOStitleEnum;
import ca.uhn.fhir.model.dstu2.valueset.LinkTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListOrderCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Location;
import ca.uhn.fhir.model.dstu2.valueset.LocationModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.LocationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.LocationTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.MaritalStatusCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.MeasmntPrincipleEnum;
import ca.uhn.fhir.model.dstu2.resource.Media;
import ca.uhn.fhir.model.dstu2.resource.Medication;
import ca.uhn.fhir.model.dstu2.valueset.MedicationAdministrationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.MedicationDispenseStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.MedicationOrder;
import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.MedicationStatement;
import ca.uhn.fhir.model.dstu2.valueset.MedicationStatementStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageEventEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageSignificanceCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageTransportEnum;
import ca.uhn.fhir.model.dstu2.resource.NamingSystem;
import ca.uhn.fhir.model.dstu2.valueset.NamingSystemIdentifierTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.NamingSystemTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.NoteTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.NutritionOrder;
import ca.uhn.fhir.model.dstu2.valueset.NutritionOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Observation;
import ca.uhn.fhir.model.dstu2.valueset.ObservationRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.OperationDefinition;
import ca.uhn.fhir.model.dstu2.valueset.OperationKindEnum;
import ca.uhn.fhir.model.dstu2.resource.OperationOutcome;
import ca.uhn.fhir.model.dstu2.valueset.OperationParameterUseEnum;
import ca.uhn.fhir.model.dstu2.resource.Order;
import ca.uhn.fhir.model.dstu2.valueset.OrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Organization;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantRequiredEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Patient;
import ca.uhn.fhir.model.dstu2.valueset.PayeeTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.composite.PeriodDt;
import ca.uhn.fhir.model.dstu2.resource.Person;
import ca.uhn.fhir.model.dstu2.resource.Practitioner;
import ca.uhn.fhir.model.dstu2.resource.Procedure;
import ca.uhn.fhir.model.dstu2.resource.ProcedureRequest;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.ProcessRequest;
import ca.uhn.fhir.model.dstu2.valueset.ProvenanceEntityRoleEnum;
import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
import ca.uhn.fhir.model.dstu2.resource.Questionnaire;
import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse;
import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireResponseStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireStatusEnum;
import ca.uhn.fhir.model.dstu2.composite.RangeDt;
import ca.uhn.fhir.model.dstu2.composite.RatioDt;
import ca.uhn.fhir.model.dstu2.valueset.ReferralMethodEnum;
import ca.uhn.fhir.model.dstu2.resource.ReferralRequest;
import ca.uhn.fhir.model.dstu2.valueset.ReferralStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.RelatedPerson;
import ca.uhn.fhir.model.dstu2.valueset.RemittanceOutcomeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResourceTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResourceVersionPolicyEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResponseTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.RestfulConformanceModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.RestfulSecurityServiceEnum;
import ca.uhn.fhir.model.dstu2.resource.RiskAssessment;
import ca.uhn.fhir.model.dstu2.valueset.RulesetCodesEnum;
import ca.uhn.fhir.model.dstu2.composite.SampledDataDt;
import ca.uhn.fhir.model.dstu2.resource.Schedule;
import ca.uhn.fhir.model.dstu2.valueset.SearchEntryModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SearchModifierCodeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SearchParamTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ServiceProvisionConditionsEnum;
import ca.uhn.fhir.model.dstu2.composite.SignatureDt;
import ca.uhn.fhir.model.dstu2.resource.Slot;
import ca.uhn.fhir.model.dstu2.valueset.SlotStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Specimen;
import ca.uhn.fhir.model.dstu2.valueset.SpecimenStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.StructureDefinition;
import ca.uhn.fhir.model.dstu2.valueset.StructureDefinitionKindEnum;
import ca.uhn.fhir.model.dstu2.valueset.SubscriptionChannelTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SubscriptionStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Substance;
import ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.SupplyDeliveryStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.SupplyRequest;
import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.SystemRestfulInteractionEnum;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu2.composite.TimingDt;
import ca.uhn.fhir.model.dstu2.valueset.TransactionModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.TypeRestfulInteractionEnum;
import ca.uhn.fhir.model.dstu2.valueset.UnknownContentCodeEnum;
import ca.uhn.fhir.model.dstu2.valueset.UseEnum;
import ca.uhn.fhir.model.dstu2.resource.ValueSet;
import ca.uhn.fhir.model.dstu2.valueset.VisionBaseEnum;
import ca.uhn.fhir.model.dstu2.valueset.VisionEyesEnum;
import ca.uhn.fhir.model.dstu2.resource.VisionPrescription;
import ca.uhn.fhir.model.dstu2.valueset.XPathUsageTypeEnum;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.dstu2.composite.AgeDt;
import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.DurationDt;
import ca.uhn.fhir.model.dstu2.composite.MoneyDt;
import ca.uhn.fhir.model.dstu2.composite.NarrativeDt;
import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt;
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.OidDt;
import ca.uhn.fhir.model.primitive.PositiveIntDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.TimeDt;
import ca.uhn.fhir.model.primitive.UnsignedIntDt;
import ca.uhn.fhir.model.primitive.UriDt;


/**
 * HAPI/FHIR Bundle Resource
 * ()
 *
 * 

* Definition: * A container for a collection of resources. *

* *

* Requirements: * *

* *

* Profile Definition: * http://hl7.org/fhir/profiles/Bundle *

* */ @ResourceDef(name="Bundle", profile="http://hl7.org/fhir/profiles/Bundle", id="bundle") public class Bundle extends ca.uhn.fhir.model.dstu2.resource.BaseResource implements IResource , org.hl7.fhir.instance.model.api.IBaseBundle { /** * Search parameter constant for type *

* Description:
* Type: token
* Path: Bundle.type
*

*/ @SearchParamDefinition(name="type", path="Bundle.type", description="", type="token" ) public static final String SP_TYPE = "type"; /** * Fluent Client search parameter constant for type *

* Description:
* Type: token
* Path: Bundle.type
*

*/ public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); /** * Search parameter constant for message *

* Description: The first resource in the bundle, if the bundle type is \"message\" - this is a message header, and this parameter provides access to search its contents
* Type: reference
* Path: Bundle.entry.resource(0)
*

*/ @SearchParamDefinition(name="message", path="Bundle.entry.resource(0)", description="The first resource in the bundle, if the bundle type is \"message\" - this is a message header, and this parameter provides access to search its contents", type="reference" , target={ ca.uhn.fhir.model.dstu2.resource.MessageHeader.class } ) public static final String SP_MESSAGE = "message"; /** * Fluent Client search parameter constant for message *

* Description: The first resource in the bundle, if the bundle type is \"message\" - this is a message header, and this parameter provides access to search its contents
* Type: reference
* Path: Bundle.entry.resource(0)
*

*/ public static final ReferenceClientParam MESSAGE = new ReferenceClientParam(SP_MESSAGE); /** * Search parameter constant for composition *

* Description: The first resource in the bundle, if the bundle type is \"document\" - this is a composition, and this parameter provides access to searches its contents
* Type: reference
* Path: Bundle.entry.resource(0)
*

*/ @SearchParamDefinition(name="composition", path="Bundle.entry.resource(0)", description="The first resource in the bundle, if the bundle type is \"document\" - this is a composition, and this parameter provides access to searches its contents", type="reference" , target={ ca.uhn.fhir.model.dstu2.resource.Composition.class } ) public static final String SP_COMPOSITION = "composition"; /** * Fluent Client search parameter constant for composition *

* Description: The first resource in the bundle, if the bundle type is \"document\" - this is a composition, and this parameter provides access to searches its contents
* Type: reference
* Path: Bundle.entry.resource(0)
*

*/ public static final ReferenceClientParam COMPOSITION = new ReferenceClientParam(SP_COMPOSITION); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Bundle:composition". */ public static final Include INCLUDE_COMPOSITION = new Include("Bundle:composition"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Bundle:message". */ public static final Include INCLUDE_MESSAGE = new Include("Bundle:message"); @Child(name="type", type=CodeDt.class, order=0, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Indicates the purpose of this bundle- how it was intended to be used" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/bundle-type") private BoundCodeDt myType; @Child(name="total", type=UnsignedIntDt.class, order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="If a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle)" ) private UnsignedIntDt myTotal; @Child(name="link", order=2, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A series of links that provide context to this bundle" ) private java.util.List myLink; @Child(name="entry", order=3, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only)" ) private java.util.List myEntry; @Child(name="signature", type=SignatureDt.class, order=4, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Digital Signature - base64 encoded. XML DigSIg or a JWT" ) private SignatureDt mySignature; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myTotal, myLink, myEntry, mySignature); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myTotal, myLink, myEntry, mySignature); } /** * Gets the value(s) for type (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates the purpose of this bundle- how it was intended to be used *

*/ public BoundCodeDt getTypeElement() { if (myType == null) { myType = new BoundCodeDt(BundleTypeEnum.VALUESET_BINDER); } return myType; } /** * Gets the value(s) for type (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Indicates the purpose of this bundle- how it was intended to be used *

*/ public String getType() { return getTypeElement().getValue(); } /** * Sets the value(s) for type () * *

* Definition: * Indicates the purpose of this bundle- how it was intended to be used *

*/ public Bundle setType(BoundCodeDt theValue) { myType = theValue; return this; } /** * Sets the value(s) for type () * *

* Definition: * Indicates the purpose of this bundle- how it was intended to be used *

*/ public Bundle setType(BundleTypeEnum theValue) { setType(new BoundCodeDt(BundleTypeEnum.VALUESET_BINDER, theValue)); /* getTypeElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for total (). * creating it if it does * not exist. Will not return null. * *

* Definition: * If a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle) *

*/ public UnsignedIntDt getTotalElement() { if (myTotal == null) { myTotal = new UnsignedIntDt(); } return myTotal; } /** * Gets the value(s) for total (). * creating it if it does * not exist. This method may return null. * *

* Definition: * If a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle) *

*/ public Integer getTotal() { return getTotalElement().getValue(); } /** * Sets the value(s) for total () * *

* Definition: * If a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle) *

*/ public Bundle setTotal(UnsignedIntDt theValue) { myTotal = theValue; return this; } /** * Sets the value for total () * *

* Definition: * If a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle) *

*/ public Bundle setTotal( int theInteger) { myTotal = new UnsignedIntDt(theInteger); return this; } /** * Gets the value(s) for link (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A series of links that provide context to this bundle *

*/ public java.util.List getLink() { if (myLink == null) { myLink = new java.util.ArrayList(); } return myLink; } /** * Sets the value(s) for link () * *

* Definition: * A series of links that provide context to this bundle *

*/ public Bundle setLink(java.util.List theValue) { myLink = theValue; return this; } /** * Adds and returns a new value for link () * *

* Definition: * A series of links that provide context to this bundle *

*/ public Link addLink() { Link newType = new Link(); getLink().add(newType); return newType; } /** * Adds a given new value for link () * *

* Definition: * A series of links that provide context to this bundle *

* @param theValue The link to add (must not be null) */ public Bundle addLink(Link theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getLink().add(theValue); return this; } /** * Gets the first repetition for link (), * creating it if it does not already exist. * *

* Definition: * A series of links that provide context to this bundle *

*/ public Link getLinkFirstRep() { if (getLink().isEmpty()) { return addLink(); } return getLink().get(0); } /** * Gets the value(s) for entry (). * creating it if it does * not exist. Will not return null. * *

* Definition: * An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only) *

*/ public java.util.List getEntry() { if (myEntry == null) { myEntry = new java.util.ArrayList(); } return myEntry; } /** * Sets the value(s) for entry () * *

* Definition: * An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only) *

*/ public Bundle setEntry(java.util.List theValue) { myEntry = theValue; return this; } /** * Adds and returns a new value for entry () * *

* Definition: * An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only) *

*/ public Entry addEntry() { Entry newType = new Entry(); getEntry().add(newType); return newType; } /** * Adds a given new value for entry () * *

* Definition: * An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only) *

* @param theValue The entry to add (must not be null) */ public Bundle addEntry(Entry theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getEntry().add(theValue); return this; } /** * Gets the first repetition for entry (), * creating it if it does not already exist. * *

* Definition: * An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only) *

*/ public Entry getEntryFirstRep() { if (getEntry().isEmpty()) { return addEntry(); } return getEntry().get(0); } /** * Gets the value(s) for signature (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Digital Signature - base64 encoded. XML DigSIg or a JWT *

*/ public SignatureDt getSignature() { if (mySignature == null) { mySignature = new SignatureDt(); } return mySignature; } /** * Sets the value(s) for signature () * *

* Definition: * Digital Signature - base64 encoded. XML DigSIg or a JWT *

*/ public Bundle setSignature(SignatureDt theValue) { mySignature = theValue; return this; } /** * Block class for child element: Bundle.link () * *

* Definition: * A series of links that provide context to this bundle *

*/ @Block() public static class Link extends BaseIdentifiableElement implements IResourceBlock { @Child(name="relation", type=StringDt.class, order=0, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A name which details the functional use for this link - see [[http://www.iana.org/assignments/link-relations/link-relations.xhtml]]" ) private StringDt myRelation; @Child(name="url", type=UriDt.class, order=1, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The reference details for the link" ) private UriDt myUrl; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRelation, myUrl); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myRelation, myUrl); } /** * Gets the value(s) for relation (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A name which details the functional use for this link - see [[http://www.iana.org/assignments/link-relations/link-relations.xhtml]] *

*/ public StringDt getRelationElement() { if (myRelation == null) { myRelation = new StringDt(); } return myRelation; } /** * Gets the value(s) for relation (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A name which details the functional use for this link - see [[http://www.iana.org/assignments/link-relations/link-relations.xhtml]] *

*/ public String getRelation() { return getRelationElement().getValue(); } /** * Sets the value(s) for relation () * *

* Definition: * A name which details the functional use for this link - see [[http://www.iana.org/assignments/link-relations/link-relations.xhtml]] *

*/ public Link setRelation(StringDt theValue) { myRelation = theValue; return this; } /** * Sets the value for relation () * *

* Definition: * A name which details the functional use for this link - see [[http://www.iana.org/assignments/link-relations/link-relations.xhtml]] *

*/ public Link setRelation( String theString) { myRelation = new StringDt(theString); return this; } /** * Gets the value(s) for url (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The reference details for the link *

*/ public UriDt getUrlElement() { if (myUrl == null) { myUrl = new UriDt(); } return myUrl; } /** * Gets the value(s) for url (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The reference details for the link *

*/ public String getUrl() { return getUrlElement().getValue(); } /** * Sets the value(s) for url () * *

* Definition: * The reference details for the link *

*/ public Link setUrl(UriDt theValue) { myUrl = theValue; return this; } /** * Sets the value for url () * *

* Definition: * The reference details for the link *

*/ public Link setUrl( String theUri) { myUrl = new UriDt(theUri); return this; } } /** * Block class for child element: Bundle.entry () * *

* Definition: * An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only) *

*/ @Block() public static class Entry extends BaseIdentifiableElement implements IResourceBlock { @Child(name="link", type=Link.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A series of links that provide context to this entry" ) private java.util.List myLink; @Child(name="fullUrl", type=UriDt.class, order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The Absolute URL for the resource. This must be provided for all resources. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource" ) private UriDt myFullUrl; @Child(name="resource", type=IResource.class, order=2, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The Resources for the entry" ) private IResource myResource; @Child(name="search", order=3, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Information about the search process that lead to the creation of this entry" ) private EntrySearch mySearch; @Child(name="request", order=4, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Additional information about how this entry should be processed as part of a transaction" ) private EntryRequest myRequest; @Child(name="response", order=5, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Additional information about how this entry should be processed as part of a transaction" ) private EntryResponse myResponse; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLink, myFullUrl, myResource, mySearch, myRequest, myResponse); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLink, myFullUrl, myResource, mySearch, myRequest, myResponse); } /** * Gets the value(s) for link (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A series of links that provide context to this entry *

*/ public java.util.List getLink() { if (myLink == null) { myLink = new java.util.ArrayList(); } return myLink; } /** * Sets the value(s) for link () * *

* Definition: * A series of links that provide context to this entry *

*/ public Entry setLink(java.util.List theValue) { myLink = theValue; return this; } /** * Adds and returns a new value for link () * *

* Definition: * A series of links that provide context to this entry *

*/ public Link addLink() { Link newType = new Link(); getLink().add(newType); return newType; } /** * Adds a given new value for link () * *

* Definition: * A series of links that provide context to this entry *

* @param theValue The link to add (must not be null) */ public Entry addLink(Link theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getLink().add(theValue); return this; } /** * Gets the first repetition for link (), * creating it if it does not already exist. * *

* Definition: * A series of links that provide context to this entry *

*/ public Link getLinkFirstRep() { if (getLink().isEmpty()) { return addLink(); } return getLink().get(0); } /** * Gets the value(s) for fullUrl (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The Absolute URL for the resource. This must be provided for all resources. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource *

*/ public UriDt getFullUrlElement() { if (myFullUrl == null) { myFullUrl = new UriDt(); } return myFullUrl; } /** * Gets the value(s) for fullUrl (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The Absolute URL for the resource. This must be provided for all resources. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource *

*/ public String getFullUrl() { return getFullUrlElement().getValue(); } /** * Sets the value(s) for fullUrl () * *

* Definition: * The Absolute URL for the resource. This must be provided for all resources. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource *

*/ public Entry setFullUrl(UriDt theValue) { myFullUrl = theValue; return this; } /** * Sets the value for fullUrl () * *

* Definition: * The Absolute URL for the resource. This must be provided for all resources. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource *

*/ public Entry setFullUrl( String theUri) { myFullUrl = new UriDt(theUri); return this; } /** * Gets the value(s) for resource (). * *

* Definition: * The Resources for the entry *

*/ public IResource getResource() { return myResource; } /** * Sets the value(s) for resource () * *

* Definition: * The Resources for the entry *

*/ public Entry setResource(IResource theValue) { myResource = theValue; return this; } /** * Gets the value(s) for search (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Information about the search process that lead to the creation of this entry *

*/ public EntrySearch getSearch() { if (mySearch == null) { mySearch = new EntrySearch(); } return mySearch; } /** * Sets the value(s) for search () * *

* Definition: * Information about the search process that lead to the creation of this entry *

*/ public Entry setSearch(EntrySearch theValue) { mySearch = theValue; return this; } /** * Gets the value(s) for request (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Additional information about how this entry should be processed as part of a transaction *

*/ public EntryRequest getRequest() { if (myRequest == null) { myRequest = new EntryRequest(); } return myRequest; } /** * Sets the value(s) for request () * *

* Definition: * Additional information about how this entry should be processed as part of a transaction *

*/ public Entry setRequest(EntryRequest theValue) { myRequest = theValue; return this; } /** * Gets the value(s) for response (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Additional information about how this entry should be processed as part of a transaction *

*/ public EntryResponse getResponse() { if (myResponse == null) { myResponse = new EntryResponse(); } return myResponse; } /** * Sets the value(s) for response () * *

* Definition: * Additional information about how this entry should be processed as part of a transaction *

*/ public Entry setResponse(EntryResponse theValue) { myResponse = theValue; return this; } } /** * Block class for child element: Bundle.entry.search () * *

* Definition: * Information about the search process that lead to the creation of this entry *

*/ @Block() public static class EntrySearch extends BaseIdentifiableElement implements IResourceBlock { @Child(name="mode", type=CodeDt.class, order=0, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Why this entry is in the result set - whether it's included as a match or because of an _include requirement" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/search-entry-mode") private BoundCodeDt myMode; @Child(name="score", type=DecimalDt.class, order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="When searching, the server's search ranking score for the entry" ) private DecimalDt myScore; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myMode, myScore); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myMode, myScore); } /** * Gets the value(s) for mode (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Why this entry is in the result set - whether it's included as a match or because of an _include requirement *

*/ public BoundCodeDt getModeElement() { if (myMode == null) { myMode = new BoundCodeDt(SearchEntryModeEnum.VALUESET_BINDER); } return myMode; } /** * Gets the value(s) for mode (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Why this entry is in the result set - whether it's included as a match or because of an _include requirement *

*/ public String getMode() { return getModeElement().getValue(); } /** * Sets the value(s) for mode () * *

* Definition: * Why this entry is in the result set - whether it's included as a match or because of an _include requirement *

*/ public EntrySearch setMode(BoundCodeDt theValue) { myMode = theValue; return this; } /** * Sets the value(s) for mode () * *

* Definition: * Why this entry is in the result set - whether it's included as a match or because of an _include requirement *

*/ public EntrySearch setMode(SearchEntryModeEnum theValue) { setMode(new BoundCodeDt(SearchEntryModeEnum.VALUESET_BINDER, theValue)); /* getModeElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for score (). * creating it if it does * not exist. Will not return null. * *

* Definition: * When searching, the server's search ranking score for the entry *

*/ public DecimalDt getScoreElement() { if (myScore == null) { myScore = new DecimalDt(); } return myScore; } /** * Gets the value(s) for score (). * creating it if it does * not exist. This method may return null. * *

* Definition: * When searching, the server's search ranking score for the entry *

*/ public BigDecimal getScore() { return getScoreElement().getValue(); } /** * Sets the value(s) for score () * *

* Definition: * When searching, the server's search ranking score for the entry *

*/ public EntrySearch setScore(DecimalDt theValue) { myScore = theValue; return this; } /** * Sets the value for score () * *

* Definition: * When searching, the server's search ranking score for the entry *

*/ public EntrySearch setScore( double theValue) { myScore = new DecimalDt(theValue); return this; } /** * Sets the value for score () * *

* Definition: * When searching, the server's search ranking score for the entry *

*/ public EntrySearch setScore( long theValue) { myScore = new DecimalDt(theValue); return this; } /** * Sets the value for score () * *

* Definition: * When searching, the server's search ranking score for the entry *

*/ public EntrySearch setScore( java.math.BigDecimal theValue) { myScore = new DecimalDt(theValue); return this; } } /** * Block class for child element: Bundle.entry.request () * *

* Definition: * Additional information about how this entry should be processed as part of a transaction *

*/ @Block() public static class EntryRequest extends BaseIdentifiableElement implements IResourceBlock { @Child(name="method", type=CodeDt.class, order=0, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The HTTP verb for this entry in either a update history, or a transaction/ transaction response" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/http-verb") private BoundCodeDt myMethod; @Child(name="url", type=UriDt.class, order=1, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The URL for this entry, relative to the root (the address to which the request is posted)" ) private UriDt myUrl; @Child(name="ifNoneMatch", type=StringDt.class, order=2, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="If the ETag values match, return a 304 Not modified status. See the API documentation for [\"Conditional Read\"](http.html#cread)" ) private StringDt myIfNoneMatch; @Child(name="ifModifiedSince", type=InstantDt.class, order=3, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Only perform the operation if the last updated date matches. See the API documentation for [\"Conditional Read\"](http.html#cread)" ) private InstantDt myIfModifiedSince; @Child(name="ifMatch", type=StringDt.class, order=4, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Only perform the operation if the Etag value matches. For more information, see the API section [\"Managing Resource Contention\"](http.html#concurrency)" ) private StringDt myIfMatch; @Child(name="ifNoneExist", type=StringDt.class, order=5, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for [\"Conditional Create\"](http.html#ccreate). This is just the query portion of the URL - what follows the \"?\" (not including the \"?\")" ) private StringDt myIfNoneExist; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myMethod, myUrl, myIfNoneMatch, myIfModifiedSince, myIfMatch, myIfNoneExist); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myMethod, myUrl, myIfNoneMatch, myIfModifiedSince, myIfMatch, myIfNoneExist); } /** * Gets the value(s) for method (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The HTTP verb for this entry in either a update history, or a transaction/ transaction response *

*/ public BoundCodeDt getMethodElement() { if (myMethod == null) { myMethod = new BoundCodeDt(HTTPVerbEnum.VALUESET_BINDER); } return myMethod; } /** * Gets the value(s) for method (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The HTTP verb for this entry in either a update history, or a transaction/ transaction response *

*/ public String getMethod() { return getMethodElement().getValue(); } /** * Sets the value(s) for method () * *

* Definition: * The HTTP verb for this entry in either a update history, or a transaction/ transaction response *

*/ public EntryRequest setMethod(BoundCodeDt theValue) { myMethod = theValue; return this; } /** * Sets the value(s) for method () * *

* Definition: * The HTTP verb for this entry in either a update history, or a transaction/ transaction response *

*/ public EntryRequest setMethod(HTTPVerbEnum theValue) { setMethod(new BoundCodeDt(HTTPVerbEnum.VALUESET_BINDER, theValue)); /* getMethodElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for url (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The URL for this entry, relative to the root (the address to which the request is posted) *

*/ public UriDt getUrlElement() { if (myUrl == null) { myUrl = new UriDt(); } return myUrl; } /** * Gets the value(s) for url (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The URL for this entry, relative to the root (the address to which the request is posted) *

*/ public String getUrl() { return getUrlElement().getValue(); } /** * Sets the value(s) for url () * *

* Definition: * The URL for this entry, relative to the root (the address to which the request is posted) *

*/ public EntryRequest setUrl(UriDt theValue) { myUrl = theValue; return this; } /** * Sets the value for url () * *

* Definition: * The URL for this entry, relative to the root (the address to which the request is posted) *

*/ public EntryRequest setUrl( String theUri) { myUrl = new UriDt(theUri); return this; } /** * Gets the value(s) for ifNoneMatch (). * creating it if it does * not exist. Will not return null. * *

* Definition: * If the ETag values match, return a 304 Not modified status. See the API documentation for [\"Conditional Read\"](http.html#cread) *

*/ public StringDt getIfNoneMatchElement() { if (myIfNoneMatch == null) { myIfNoneMatch = new StringDt(); } return myIfNoneMatch; } /** * Gets the value(s) for ifNoneMatch (). * creating it if it does * not exist. This method may return null. * *

* Definition: * If the ETag values match, return a 304 Not modified status. See the API documentation for [\"Conditional Read\"](http.html#cread) *

*/ public String getIfNoneMatch() { return getIfNoneMatchElement().getValue(); } /** * Sets the value(s) for ifNoneMatch () * *

* Definition: * If the ETag values match, return a 304 Not modified status. See the API documentation for [\"Conditional Read\"](http.html#cread) *

*/ public EntryRequest setIfNoneMatch(StringDt theValue) { myIfNoneMatch = theValue; return this; } /** * Sets the value for ifNoneMatch () * *

* Definition: * If the ETag values match, return a 304 Not modified status. See the API documentation for [\"Conditional Read\"](http.html#cread) *

*/ public EntryRequest setIfNoneMatch( String theString) { myIfNoneMatch = new StringDt(theString); return this; } /** * Gets the value(s) for ifModifiedSince (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Only perform the operation if the last updated date matches. See the API documentation for [\"Conditional Read\"](http.html#cread) *

*/ public InstantDt getIfModifiedSinceElement() { if (myIfModifiedSince == null) { myIfModifiedSince = new InstantDt(); } return myIfModifiedSince; } /** * Gets the value(s) for ifModifiedSince (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Only perform the operation if the last updated date matches. See the API documentation for [\"Conditional Read\"](http.html#cread) *

*/ public Date getIfModifiedSince() { return getIfModifiedSinceElement().getValue(); } /** * Sets the value(s) for ifModifiedSince () * *

* Definition: * Only perform the operation if the last updated date matches. See the API documentation for [\"Conditional Read\"](http.html#cread) *

*/ public EntryRequest setIfModifiedSince(InstantDt theValue) { myIfModifiedSince = theValue; return this; } /** * Sets the value for ifModifiedSince () * *

* Definition: * Only perform the operation if the last updated date matches. See the API documentation for [\"Conditional Read\"](http.html#cread) *

*/ public EntryRequest setIfModifiedSinceWithMillisPrecision( Date theDate) { myIfModifiedSince = new InstantDt(theDate); return this; } /** * Sets the value for ifModifiedSince () * *

* Definition: * Only perform the operation if the last updated date matches. See the API documentation for [\"Conditional Read\"](http.html#cread) *

*/ public EntryRequest setIfModifiedSince( Date theDate, TemporalPrecisionEnum thePrecision) { myIfModifiedSince = new InstantDt(theDate, thePrecision); return this; } /** * Gets the value(s) for ifMatch (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Only perform the operation if the Etag value matches. For more information, see the API section [\"Managing Resource Contention\"](http.html#concurrency) *

*/ public StringDt getIfMatchElement() { if (myIfMatch == null) { myIfMatch = new StringDt(); } return myIfMatch; } /** * Gets the value(s) for ifMatch (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Only perform the operation if the Etag value matches. For more information, see the API section [\"Managing Resource Contention\"](http.html#concurrency) *

*/ public String getIfMatch() { return getIfMatchElement().getValue(); } /** * Sets the value(s) for ifMatch () * *

* Definition: * Only perform the operation if the Etag value matches. For more information, see the API section [\"Managing Resource Contention\"](http.html#concurrency) *

*/ public EntryRequest setIfMatch(StringDt theValue) { myIfMatch = theValue; return this; } /** * Sets the value for ifMatch () * *

* Definition: * Only perform the operation if the Etag value matches. For more information, see the API section [\"Managing Resource Contention\"](http.html#concurrency) *

*/ public EntryRequest setIfMatch( String theString) { myIfMatch = new StringDt(theString); return this; } /** * Gets the value(s) for ifNoneExist (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for [\"Conditional Create\"](http.html#ccreate). This is just the query portion of the URL - what follows the \"?\" (not including the \"?\") *

*/ public StringDt getIfNoneExistElement() { if (myIfNoneExist == null) { myIfNoneExist = new StringDt(); } return myIfNoneExist; } /** * Gets the value(s) for ifNoneExist (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for [\"Conditional Create\"](http.html#ccreate). This is just the query portion of the URL - what follows the \"?\" (not including the \"?\") *

*/ public String getIfNoneExist() { return getIfNoneExistElement().getValue(); } /** * Sets the value(s) for ifNoneExist () * *

* Definition: * Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for [\"Conditional Create\"](http.html#ccreate). This is just the query portion of the URL - what follows the \"?\" (not including the \"?\") *

*/ public EntryRequest setIfNoneExist(StringDt theValue) { myIfNoneExist = theValue; return this; } /** * Sets the value for ifNoneExist () * *

* Definition: * Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for [\"Conditional Create\"](http.html#ccreate). This is just the query portion of the URL - what follows the \"?\" (not including the \"?\") *

*/ public EntryRequest setIfNoneExist( String theString) { myIfNoneExist = new StringDt(theString); return this; } } /** * Block class for child element: Bundle.entry.response () * *

* Definition: * Additional information about how this entry should be processed as part of a transaction *

*/ @Block() public static class EntryResponse extends BaseIdentifiableElement implements IResourceBlock { @Child(name="status", type=StringDt.class, order=0, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The status code returned by processing this entry" ) private StringDt myStatus; @Child(name="location", type=UriDt.class, order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The location header created by processing this operation" ) private UriDt myLocation; @Child(name="etag", type=StringDt.class, order=2, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The etag for the resource, it the operation for the entry produced a versioned resource" ) private StringDt myEtag; @Child(name="lastModified", type=InstantDt.class, order=3, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The date/time that the resource was modified on the server" ) private InstantDt myLastModified; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myStatus, myLocation, myEtag, myLastModified); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myStatus, myLocation, myEtag, myLastModified); } /** * Gets the value(s) for status (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The status code returned by processing this entry *

*/ public StringDt getStatusElement() { if (myStatus == null) { myStatus = new StringDt(); } return myStatus; } /** * Gets the value(s) for status (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The status code returned by processing this entry *

*/ public String getStatus() { return getStatusElement().getValue(); } /** * Sets the value(s) for status () * *

* Definition: * The status code returned by processing this entry *

*/ public EntryResponse setStatus(StringDt theValue) { myStatus = theValue; return this; } /** * Sets the value for status () * *

* Definition: * The status code returned by processing this entry *

*/ public EntryResponse setStatus( String theString) { myStatus = new StringDt(theString); return this; } /** * Gets the value(s) for location (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The location header created by processing this operation *

*/ public UriDt getLocationElement() { if (myLocation == null) { myLocation = new UriDt(); } return myLocation; } /** * Gets the value(s) for location (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The location header created by processing this operation *

*/ public String getLocation() { return getLocationElement().getValue(); } /** * Sets the value(s) for location () * *

* Definition: * The location header created by processing this operation *

*/ public EntryResponse setLocation(UriDt theValue) { myLocation = theValue; return this; } /** * Sets the value for location () * *

* Definition: * The location header created by processing this operation *

*/ public EntryResponse setLocation( String theUri) { myLocation = new UriDt(theUri); return this; } /** * Gets the value(s) for etag (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The etag for the resource, it the operation for the entry produced a versioned resource *

*/ public StringDt getEtagElement() { if (myEtag == null) { myEtag = new StringDt(); } return myEtag; } /** * Gets the value(s) for etag (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The etag for the resource, it the operation for the entry produced a versioned resource *

*/ public String getEtag() { return getEtagElement().getValue(); } /** * Sets the value(s) for etag () * *

* Definition: * The etag for the resource, it the operation for the entry produced a versioned resource *

*/ public EntryResponse setEtag(StringDt theValue) { myEtag = theValue; return this; } /** * Sets the value for etag () * *

* Definition: * The etag for the resource, it the operation for the entry produced a versioned resource *

*/ public EntryResponse setEtag( String theString) { myEtag = new StringDt(theString); return this; } /** * Gets the value(s) for lastModified (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The date/time that the resource was modified on the server *

*/ public InstantDt getLastModifiedElement() { if (myLastModified == null) { myLastModified = new InstantDt(); } return myLastModified; } /** * Gets the value(s) for lastModified (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The date/time that the resource was modified on the server *

*/ public Date getLastModified() { return getLastModifiedElement().getValue(); } /** * Sets the value(s) for lastModified () * *

* Definition: * The date/time that the resource was modified on the server *

*/ public EntryResponse setLastModified(InstantDt theValue) { myLastModified = theValue; return this; } /** * Sets the value for lastModified () * *

* Definition: * The date/time that the resource was modified on the server *

*/ public EntryResponse setLastModifiedWithMillisPrecision( Date theDate) { myLastModified = new InstantDt(theDate); return this; } /** * Sets the value for lastModified () * *

* Definition: * The date/time that the resource was modified on the server *

*/ public EntryResponse setLastModified( Date theDate, TemporalPrecisionEnum thePrecision) { myLastModified = new InstantDt(theDate, thePrecision); return this; } } @Override public String getResourceName() { return "Bundle"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; } /** * Returns the {@link #getLink() link} which matches a given {@link Link#getRelation() relation}. * If no link is found which matches the given relation, returns null. If more than one * link is found which matches the given relation, returns the first matching Link. * * @param theRelation * The relation, such as "next", or "self. See the constants such as {@link IBaseBundle#LINK_SELF} and {@link IBaseBundle#LINK_NEXT}. * @return Returns a matching Link, or null * @see IBaseBundle#LINK_NEXT * @see IBaseBundle#LINK_PREV * @see IBaseBundle#LINK_SELF */ public Link getLink(String theRelation) { org.apache.commons.lang3.Validate.notBlank(theRelation, "theRelation may not be null or empty"); for (Link next : getLink()) { if (theRelation.equals(next.getRelation())) { return next; } } return null; } /** * Returns the {@link #getLink() link} which matches a given {@link Link#getRelation() relation}. * If no link is found which matches the given relation, creates a new Link with the * given relation and adds it to this Bundle. If more than one * link is found which matches the given relation, returns the first matching Link. * * @param theRelation * The relation, such as "next", or "self. See the constants such as {@link IBaseBundle#LINK_SELF} and {@link IBaseBundle#LINK_NEXT}. * @return Returns a matching Link, or null * @see IBaseBundle#LINK_NEXT * @see IBaseBundle#LINK_PREV * @see IBaseBundle#LINK_SELF */ public Link getLinkOrCreate(String theRelation) { org.apache.commons.lang3.Validate.notBlank(theRelation, "theRelation may not be null or empty"); for (Link next : getLink()) { if (theRelation.equals(next.getRelation())) { return next; } } Link retVal = new Link(); retVal.setRelation(theRelation); getLink().add(retVal); return retVal; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy