001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017package ca.uhn.fhir.model.dstu2.resource;
018
019import java.math.BigDecimal;
020import java.net.URI;
021import java.util.*;
022import ca.uhn.fhir.model.api.*;
023import ca.uhn.fhir.model.api.annotation.*;
024import ca.uhn.fhir.rest.gclient.*;
025
026import ca.uhn.fhir.model.dstu2.valueset.AccountStatusEnum;
027import ca.uhn.fhir.model.dstu2.valueset.ActionListEnum;
028import ca.uhn.fhir.model.dstu2.composite.AddressDt;
029import ca.uhn.fhir.model.dstu2.valueset.AdjudicationCodesEnum;
030import ca.uhn.fhir.model.dstu2.valueset.AdjudicationErrorCodesEnum;
031import ca.uhn.fhir.model.dstu2.valueset.AdjustmentReasonCodesEnum;
032import ca.uhn.fhir.model.dstu2.valueset.AdministrativeGenderEnum;
033import ca.uhn.fhir.model.dstu2.valueset.AdmitSourceEnum;
034import ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance;
035import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCategoryEnum;
036import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCertaintyEnum;
037import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCriticalityEnum;
038import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceSeverityEnum;
039import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceStatusEnum;
040import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceTypeEnum;
041import ca.uhn.fhir.model.dstu2.composite.AnnotationDt;
042import ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum;
043import ca.uhn.fhir.model.dstu2.resource.Appointment;
044import ca.uhn.fhir.model.dstu2.valueset.AppointmentStatusEnum;
045import ca.uhn.fhir.model.dstu2.valueset.AssertionDirectionTypeEnum;
046import ca.uhn.fhir.model.dstu2.valueset.AssertionOperatorTypeEnum;
047import ca.uhn.fhir.model.dstu2.valueset.AssertionResponseTypesEnum;
048import ca.uhn.fhir.model.dstu2.composite.AttachmentDt;
049import ca.uhn.fhir.model.dstu2.valueset.AuditEventActionEnum;
050import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum;
051import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectRoleEnum;
052import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectTypeEnum;
053import ca.uhn.fhir.model.dstu2.valueset.AuditEventOutcomeEnum;
054import ca.uhn.fhir.model.dstu2.valueset.AuditEventParticipantNetworkTypeEnum;
055import ca.uhn.fhir.model.dstu2.valueset.AuditEventSourceTypeEnum;
056import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum;
057import ca.uhn.fhir.model.dstu2.resource.BodySite;
058import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum;
059import ca.uhn.fhir.model.dstu2.resource.CarePlan;
060import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityStatusEnum;
061import ca.uhn.fhir.model.dstu2.valueset.CarePlanRelationshipEnum;
062import ca.uhn.fhir.model.dstu2.valueset.CarePlanStatusEnum;
063import ca.uhn.fhir.model.dstu2.resource.Claim;
064import ca.uhn.fhir.model.dstu2.resource.ClaimResponse;
065import ca.uhn.fhir.model.dstu2.valueset.ClaimTypeEnum;
066import ca.uhn.fhir.model.dstu2.resource.ClinicalImpression;
067import ca.uhn.fhir.model.dstu2.valueset.ClinicalImpressionStatusEnum;
068import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt;
069import ca.uhn.fhir.model.dstu2.composite.CodingDt;
070import ca.uhn.fhir.model.dstu2.resource.CommunicationRequest;
071import ca.uhn.fhir.model.dstu2.valueset.CommunicationRequestStatusEnum;
072import ca.uhn.fhir.model.dstu2.valueset.CommunicationStatusEnum;
073import ca.uhn.fhir.model.dstu2.resource.Composition;
074import ca.uhn.fhir.model.dstu2.valueset.CompositionAttestationModeEnum;
075import ca.uhn.fhir.model.dstu2.valueset.CompositionStatusEnum;
076import ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum;
077import ca.uhn.fhir.model.dstu2.resource.Condition;
078import ca.uhn.fhir.model.dstu2.valueset.ConditionCategoryCodesEnum;
079import ca.uhn.fhir.model.dstu2.valueset.ConditionClinicalStatusCodesEnum;
080import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum;
081import ca.uhn.fhir.model.dstu2.valueset.ConditionalDeleteStatusEnum;
082import ca.uhn.fhir.model.dstu2.resource.Conformance;
083import ca.uhn.fhir.model.dstu2.valueset.ConformanceEventModeEnum;
084import ca.uhn.fhir.model.dstu2.valueset.ConformanceResourceStatusEnum;
085import ca.uhn.fhir.model.dstu2.valueset.ConformanceStatementKindEnum;
086import ca.uhn.fhir.model.dstu2.composite.ContactPointDt;
087import ca.uhn.fhir.model.dstu2.valueset.ContentTypeEnum;
088import ca.uhn.fhir.model.dstu2.resource.Contract;
089import ca.uhn.fhir.model.dstu2.resource.Coverage;
090import ca.uhn.fhir.model.dstu2.valueset.DataElementStringencyEnum;
091import ca.uhn.fhir.model.dstu2.valueset.DaysOfWeekEnum;
092import ca.uhn.fhir.model.dstu2.valueset.DetectedIssueSeverityEnum;
093import ca.uhn.fhir.model.dstu2.resource.Device;
094import ca.uhn.fhir.model.dstu2.resource.DeviceComponent;
095import ca.uhn.fhir.model.dstu2.resource.DeviceMetric;
096import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationStateEnum;
097import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationTypeEnum;
098import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCategoryEnum;
099import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricColorEnum;
100import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricOperationalStatusEnum;
101import ca.uhn.fhir.model.dstu2.valueset.DeviceStatusEnum;
102import ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest;
103import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestPriorityEnum;
104import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestStatusEnum;
105import ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder;
106import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderPriorityEnum;
107import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderStatusEnum;
108import ca.uhn.fhir.model.dstu2.resource.DiagnosticReport;
109import ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum;
110import ca.uhn.fhir.model.dstu2.valueset.DigitalMediaTypeEnum;
111import ca.uhn.fhir.model.dstu2.valueset.DocumentModeEnum;
112import ca.uhn.fhir.model.dstu2.resource.DocumentReference;
113import ca.uhn.fhir.model.dstu2.valueset.DocumentReferenceStatusEnum;
114import ca.uhn.fhir.model.dstu2.valueset.DocumentRelationshipTypeEnum;
115import ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt;
116import ca.uhn.fhir.model.dstu2.resource.EligibilityRequest;
117import ca.uhn.fhir.model.dstu2.resource.Encounter;
118import ca.uhn.fhir.model.dstu2.valueset.EncounterClassEnum;
119import ca.uhn.fhir.model.dstu2.valueset.EncounterLocationStatusEnum;
120import ca.uhn.fhir.model.dstu2.valueset.EncounterStateEnum;
121import ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest;
122import ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare;
123import ca.uhn.fhir.model.dstu2.valueset.EpisodeOfCareStatusEnum;
124import ca.uhn.fhir.model.dstu2.valueset.ExtensionContextEnum;
125import ca.uhn.fhir.model.dstu2.valueset.FamilyHistoryStatusEnum;
126import ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory;
127import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum;
128import ca.uhn.fhir.model.dstu2.valueset.FlagStatusEnum;
129import ca.uhn.fhir.model.dstu2.resource.Goal;
130import ca.uhn.fhir.model.dstu2.valueset.GoalPriorityEnum;
131import ca.uhn.fhir.model.dstu2.valueset.GoalStatusEnum;
132import ca.uhn.fhir.model.dstu2.resource.Group;
133import ca.uhn.fhir.model.dstu2.valueset.GroupTypeEnum;
134import ca.uhn.fhir.model.dstu2.valueset.GuideDependencyTypeEnum;
135import ca.uhn.fhir.model.dstu2.valueset.GuidePageKindEnum;
136import ca.uhn.fhir.model.dstu2.valueset.GuideResourcePurposeEnum;
137import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum;
138import ca.uhn.fhir.model.dstu2.resource.HealthcareService;
139import ca.uhn.fhir.model.dstu2.composite.HumanNameDt;
140import ca.uhn.fhir.model.dstu2.composite.IdentifierDt;
141import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum;
142import ca.uhn.fhir.model.dstu2.valueset.IdentityAssuranceLevelEnum;
143import ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection;
144import ca.uhn.fhir.model.dstu2.resource.ImagingStudy;
145import ca.uhn.fhir.model.dstu2.resource.Immunization;
146import ca.uhn.fhir.model.dstu2.valueset.InstanceAvailabilityEnum;
147import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum;
148import ca.uhn.fhir.model.dstu2.valueset.IssueTypeEnum;
149import ca.uhn.fhir.model.dstu2.valueset.KOStitleEnum;
150import ca.uhn.fhir.model.dstu2.valueset.LinkTypeEnum;
151import ca.uhn.fhir.model.dstu2.valueset.ListModeEnum;
152import ca.uhn.fhir.model.dstu2.valueset.ListOrderCodesEnum;
153import ca.uhn.fhir.model.dstu2.valueset.ListStatusEnum;
154import ca.uhn.fhir.model.dstu2.resource.Location;
155import ca.uhn.fhir.model.dstu2.valueset.LocationModeEnum;
156import ca.uhn.fhir.model.dstu2.valueset.LocationStatusEnum;
157import ca.uhn.fhir.model.dstu2.valueset.LocationTypeEnum;
158import ca.uhn.fhir.model.dstu2.valueset.MaritalStatusCodesEnum;
159import ca.uhn.fhir.model.dstu2.valueset.MeasmntPrincipleEnum;
160import ca.uhn.fhir.model.dstu2.resource.Media;
161import ca.uhn.fhir.model.dstu2.resource.Medication;
162import ca.uhn.fhir.model.dstu2.valueset.MedicationAdministrationStatusEnum;
163import ca.uhn.fhir.model.dstu2.valueset.MedicationDispenseStatusEnum;
164import ca.uhn.fhir.model.dstu2.resource.MedicationOrder;
165import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum;
166import ca.uhn.fhir.model.dstu2.resource.MedicationStatement;
167import ca.uhn.fhir.model.dstu2.valueset.MedicationStatementStatusEnum;
168import ca.uhn.fhir.model.dstu2.valueset.MessageEventEnum;
169import ca.uhn.fhir.model.dstu2.valueset.MessageSignificanceCategoryEnum;
170import ca.uhn.fhir.model.dstu2.valueset.MessageTransportEnum;
171import ca.uhn.fhir.model.dstu2.resource.NamingSystem;
172import ca.uhn.fhir.model.dstu2.valueset.NamingSystemIdentifierTypeEnum;
173import ca.uhn.fhir.model.dstu2.valueset.NamingSystemTypeEnum;
174import ca.uhn.fhir.model.dstu2.valueset.NoteTypeEnum;
175import ca.uhn.fhir.model.dstu2.resource.NutritionOrder;
176import ca.uhn.fhir.model.dstu2.valueset.NutritionOrderStatusEnum;
177import ca.uhn.fhir.model.dstu2.resource.Observation;
178import ca.uhn.fhir.model.dstu2.valueset.ObservationRelationshipTypeEnum;
179import ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum;
180import ca.uhn.fhir.model.dstu2.resource.OperationDefinition;
181import ca.uhn.fhir.model.dstu2.valueset.OperationKindEnum;
182import ca.uhn.fhir.model.dstu2.resource.OperationOutcome;
183import ca.uhn.fhir.model.dstu2.valueset.OperationParameterUseEnum;
184import ca.uhn.fhir.model.dstu2.resource.Order;
185import ca.uhn.fhir.model.dstu2.valueset.OrderStatusEnum;
186import ca.uhn.fhir.model.dstu2.resource.Organization;
187import ca.uhn.fhir.model.dstu2.valueset.ParticipantRequiredEnum;
188import ca.uhn.fhir.model.dstu2.valueset.ParticipantStatusEnum;
189import ca.uhn.fhir.model.dstu2.valueset.ParticipantTypeEnum;
190import ca.uhn.fhir.model.dstu2.valueset.ParticipationStatusEnum;
191import ca.uhn.fhir.model.dstu2.resource.Patient;
192import ca.uhn.fhir.model.dstu2.valueset.PayeeTypeCodesEnum;
193import ca.uhn.fhir.model.dstu2.composite.PeriodDt;
194import ca.uhn.fhir.model.dstu2.resource.Person;
195import ca.uhn.fhir.model.dstu2.resource.Practitioner;
196import ca.uhn.fhir.model.dstu2.resource.Procedure;
197import ca.uhn.fhir.model.dstu2.resource.ProcedureRequest;
198import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestPriorityEnum;
199import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestStatusEnum;
200import ca.uhn.fhir.model.dstu2.valueset.ProcedureStatusEnum;
201import ca.uhn.fhir.model.dstu2.resource.ProcessRequest;
202import ca.uhn.fhir.model.dstu2.valueset.ProvenanceEntityRoleEnum;
203import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
204import ca.uhn.fhir.model.dstu2.resource.Questionnaire;
205import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse;
206import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireResponseStatusEnum;
207import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireStatusEnum;
208import ca.uhn.fhir.model.dstu2.composite.RangeDt;
209import ca.uhn.fhir.model.dstu2.composite.RatioDt;
210import ca.uhn.fhir.model.dstu2.valueset.ReferralMethodEnum;
211import ca.uhn.fhir.model.dstu2.resource.ReferralRequest;
212import ca.uhn.fhir.model.dstu2.valueset.ReferralStatusEnum;
213import ca.uhn.fhir.model.dstu2.resource.RelatedPerson;
214import ca.uhn.fhir.model.dstu2.valueset.RemittanceOutcomeEnum;
215import ca.uhn.fhir.model.dstu2.valueset.ResourceTypeEnum;
216import ca.uhn.fhir.model.dstu2.valueset.ResourceVersionPolicyEnum;
217import ca.uhn.fhir.model.dstu2.valueset.ResponseTypeEnum;
218import ca.uhn.fhir.model.dstu2.valueset.RestfulConformanceModeEnum;
219import ca.uhn.fhir.model.dstu2.valueset.RestfulSecurityServiceEnum;
220import ca.uhn.fhir.model.dstu2.resource.RiskAssessment;
221import ca.uhn.fhir.model.dstu2.valueset.RulesetCodesEnum;
222import ca.uhn.fhir.model.dstu2.composite.SampledDataDt;
223import ca.uhn.fhir.model.dstu2.resource.Schedule;
224import ca.uhn.fhir.model.dstu2.valueset.SearchEntryModeEnum;
225import ca.uhn.fhir.model.dstu2.valueset.SearchModifierCodeEnum;
226import ca.uhn.fhir.model.dstu2.valueset.SearchParamTypeEnum;
227import ca.uhn.fhir.model.dstu2.valueset.ServiceProvisionConditionsEnum;
228import ca.uhn.fhir.model.dstu2.composite.SignatureDt;
229import ca.uhn.fhir.model.dstu2.resource.Slot;
230import ca.uhn.fhir.model.dstu2.valueset.SlotStatusEnum;
231import ca.uhn.fhir.model.dstu2.resource.Specimen;
232import ca.uhn.fhir.model.dstu2.valueset.SpecimenStatusEnum;
233import ca.uhn.fhir.model.dstu2.resource.StructureDefinition;
234import ca.uhn.fhir.model.dstu2.valueset.StructureDefinitionKindEnum;
235import ca.uhn.fhir.model.dstu2.valueset.SubscriptionChannelTypeEnum;
236import ca.uhn.fhir.model.dstu2.valueset.SubscriptionStatusEnum;
237import ca.uhn.fhir.model.dstu2.resource.Substance;
238import ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum;
239import ca.uhn.fhir.model.dstu2.valueset.SupplyDeliveryStatusEnum;
240import ca.uhn.fhir.model.dstu2.resource.SupplyRequest;
241import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestStatusEnum;
242import ca.uhn.fhir.model.dstu2.valueset.SystemRestfulInteractionEnum;
243import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
244import ca.uhn.fhir.model.dstu2.composite.TimingDt;
245import ca.uhn.fhir.model.dstu2.valueset.TransactionModeEnum;
246import ca.uhn.fhir.model.dstu2.valueset.TypeRestfulInteractionEnum;
247import ca.uhn.fhir.model.dstu2.valueset.UnknownContentCodeEnum;
248import ca.uhn.fhir.model.dstu2.valueset.UseEnum;
249import ca.uhn.fhir.model.dstu2.resource.ValueSet;
250import ca.uhn.fhir.model.dstu2.valueset.VisionBaseEnum;
251import ca.uhn.fhir.model.dstu2.valueset.VisionEyesEnum;
252import ca.uhn.fhir.model.dstu2.resource.VisionPrescription;
253import ca.uhn.fhir.model.dstu2.valueset.XPathUsageTypeEnum;
254import ca.uhn.fhir.model.api.IResource;
255import ca.uhn.fhir.model.dstu2.composite.AgeDt;
256import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt;
257import ca.uhn.fhir.model.dstu2.composite.DurationDt;
258import ca.uhn.fhir.model.dstu2.composite.MoneyDt;
259import ca.uhn.fhir.model.dstu2.composite.NarrativeDt;
260import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt;
261import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt;
262import ca.uhn.fhir.model.primitive.Base64BinaryDt;
263import ca.uhn.fhir.model.primitive.BooleanDt;
264import ca.uhn.fhir.model.primitive.BoundCodeDt;
265import ca.uhn.fhir.model.primitive.CodeDt;
266import ca.uhn.fhir.model.primitive.DateDt;
267import ca.uhn.fhir.model.primitive.DateTimeDt;
268import ca.uhn.fhir.model.primitive.DecimalDt;
269import ca.uhn.fhir.model.primitive.IdDt;
270import ca.uhn.fhir.model.primitive.InstantDt;
271import ca.uhn.fhir.model.primitive.IntegerDt;
272import ca.uhn.fhir.model.primitive.OidDt;
273import ca.uhn.fhir.model.primitive.PositiveIntDt;
274import ca.uhn.fhir.model.primitive.StringDt;
275import ca.uhn.fhir.model.primitive.TimeDt;
276import ca.uhn.fhir.model.primitive.UnsignedIntDt;
277import ca.uhn.fhir.model.primitive.UriDt;
278
279
280/**
281 * HAPI/FHIR <b>Parameters</b> Resource
282 * (infrastructure.exchange)
283 *
284 * <p>
285 * <b>Definition:</b>
286 * This special resource type is used to represent an operation request and response (operations.html). It has no other use, and there is no RESTful endpoint associated with it.
287 * </p> 
288 *
289 * <p>
290 * <b>Requirements:</b>
291 * 
292 * </p> 
293 *
294 * <p>
295 * <b>Profile Definition:</b>
296 * <a href="http://hl7.org/fhir/profiles/Parameters">http://hl7.org/fhir/profiles/Parameters</a> 
297 * </p>
298 *
299 */
300@ResourceDef(name="Parameters", profile="http://hl7.org/fhir/profiles/Parameters", id="parameters")
301public class Parameters extends ca.uhn.fhir.model.dstu2.resource.BaseResource
302    implements  IResource     , org.hl7.fhir.instance.model.api.IBaseParameters
303    {
304
305
306
307        @Child(name="parameter", order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)        
308        @Description(
309                shortDefinition="",
310                formalDefinition="A parameter passed to or received from the operation"
311        )
312        private java.util.List<Parameter> myParameter;
313        
314
315        @Override
316        public boolean isEmpty() {
317                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myParameter);
318        }
319        
320        @Override
321        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
322                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myParameter);
323        }
324
325        /**
326         * Gets the value(s) for <b>parameter</b> ().
327         * creating it if it does
328         * not exist. Will not return <code>null</code>.
329         *
330     * <p>
331     * <b>Definition:</b>
332     * A parameter passed to or received from the operation
333     * </p> 
334         */
335        public java.util.List<Parameter> getParameter() {  
336                if (myParameter == null) {
337                        myParameter = new java.util.ArrayList<Parameter>();
338                }
339                return myParameter;
340        }
341
342        /**
343         * Sets the value(s) for <b>parameter</b> ()
344         *
345     * <p>
346     * <b>Definition:</b>
347     * A parameter passed to or received from the operation
348     * </p> 
349         */
350        public Parameters setParameter(java.util.List<Parameter> theValue) {
351                myParameter = theValue;
352                return this;
353        }
354        
355        
356
357        /**
358         * Adds and returns a new value for <b>parameter</b> ()
359         *
360     * <p>
361     * <b>Definition:</b>
362     * A parameter passed to or received from the operation
363     * </p> 
364         */
365        public Parameter addParameter() {
366                Parameter newType = new Parameter();
367                getParameter().add(newType);
368                return newType; 
369        }
370
371        /**
372         * Adds a given new value for <b>parameter</b> ()
373         *
374         * <p>
375         * <b>Definition:</b>
376         * A parameter passed to or received from the operation
377         * </p>
378         * @param theValue The parameter to add (must not be <code>null</code>)
379         */
380        public Parameters addParameter(Parameter theValue) {
381                if (theValue == null) {
382                        throw new NullPointerException("theValue must not be null");
383                }
384                getParameter().add(theValue);
385                return this;
386        }
387
388        /**
389         * Gets the first repetition for <b>parameter</b> (),
390         * creating it if it does not already exist.
391         *
392     * <p>
393     * <b>Definition:</b>
394     * A parameter passed to or received from the operation
395     * </p> 
396         */
397        public Parameter getParameterFirstRep() {
398                if (getParameter().isEmpty()) {
399                        return addParameter();
400                }
401                return getParameter().get(0); 
402        }
403  
404        /**
405         * Block class for child element: <b>Parameters.parameter</b> ()
406         *
407     * <p>
408     * <b>Definition:</b>
409     * A parameter passed to or received from the operation
410     * </p> 
411         */
412        @Block()        
413        public static class Parameter 
414            extends  BaseIdentifiableElement        implements IResourceBlock {
415        
416        @Child(name="name", type=StringDt.class, order=0, min=1, max=1, summary=false, modifier=false)  
417        @Description(
418                shortDefinition="",
419                formalDefinition="The name of the parameter (reference to the operation definition)"
420        )
421        private StringDt myName;
422        
423        @Child(name="value", type=IDatatype.class, order=1, min=0, max=1, summary=false, modifier=false)        
424        @Description(
425                shortDefinition="",
426                formalDefinition="If the parameter is a data type"
427        )
428        private IDatatype myValue;
429        
430        @Child(name="resource", type=IResource.class, order=2, min=0, max=1, summary=false, modifier=false)     
431        @Description(
432                shortDefinition="",
433                formalDefinition="If the parameter is a whole resource"
434        )
435        private IResource myResource;
436        
437        @Child(name="part", type=Parameter.class, order=3, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)       
438        @Description(
439                shortDefinition="",
440                formalDefinition="A named part of a parameter. In many implementation context, a set of named parts is known as a \"Tuple\""
441        )
442        private java.util.List<Parameter> myPart;
443        
444
445        @Override
446        public boolean isEmpty() {
447                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myName,  myValue,  myResource,  myPart);
448        }
449        
450        @Override
451        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
452                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myValue, myResource, myPart);
453        }
454
455        /**
456         * Gets the value(s) for <b>name</b> ().
457         * creating it if it does
458         * not exist. Will not return <code>null</code>.
459         *
460     * <p>
461     * <b>Definition:</b>
462     * The name of the parameter (reference to the operation definition)
463     * </p> 
464         */
465        public StringDt getNameElement() {  
466                if (myName == null) {
467                        myName = new StringDt();
468                }
469                return myName;
470        }
471
472        
473        /**
474         * Gets the value(s) for <b>name</b> ().
475         * creating it if it does
476         * not exist. This method may return <code>null</code>.
477         *
478     * <p>
479     * <b>Definition:</b>
480     * The name of the parameter (reference to the operation definition)
481     * </p> 
482         */
483        public String getName() {  
484                return getNameElement().getValue();
485        }
486
487        /**
488         * Sets the value(s) for <b>name</b> ()
489         *
490     * <p>
491     * <b>Definition:</b>
492     * The name of the parameter (reference to the operation definition)
493     * </p> 
494         */
495        public Parameter setName(StringDt theValue) {
496                myName = theValue;
497                return this;
498        }
499        
500        
501
502        /**
503         * Sets the value for <b>name</b> ()
504         *
505     * <p>
506     * <b>Definition:</b>
507     * The name of the parameter (reference to the operation definition)
508     * </p> 
509         */
510        public Parameter setName( String theString) {
511                myName = new StringDt(theString); 
512                return this; 
513        }
514
515 
516        /**
517         * Gets the value(s) for <b>value[x]</b> ().
518         * creating it if it does
519         * not exist. Will not return <code>null</code>.
520         *
521     * <p>
522     * <b>Definition:</b>
523     * If the parameter is a data type
524     * </p> 
525         */
526        public IDatatype getValue() {  
527                return myValue;
528        }
529
530        /**
531         * Sets the value(s) for <b>value[x]</b> ()
532         *
533     * <p>
534     * <b>Definition:</b>
535     * If the parameter is a data type
536     * </p> 
537         */
538        public Parameter setValue(IDatatype theValue) {
539                myValue = theValue;
540                return this;
541        }
542        
543        
544
545  
546        /**
547         * Gets the value(s) for <b>resource</b> ().
548         *
549     * <p>
550     * <b>Definition:</b>
551     * If the parameter is a whole resource
552     * </p> 
553         */
554        public IResource getResource() {  
555                return myResource;
556        }
557
558
559        /**
560         * Sets the value(s) for <b>resource</b> ()
561         *
562     * <p>
563     * <b>Definition:</b>
564     * If the parameter is a whole resource
565     * </p> 
566         */
567        public Parameter setResource(IResource theValue) {
568                myResource = theValue;
569                return this;
570        }
571        
572        
573
574  
575        /**
576         * Gets the value(s) for <b>part</b> ().
577         * creating it if it does
578         * not exist. Will not return <code>null</code>.
579         *
580     * <p>
581     * <b>Definition:</b>
582     * A named part of a parameter. In many implementation context, a set of named parts is known as a \&quot;Tuple\&quot;
583     * </p> 
584         */
585        public java.util.List<Parameter> getPart() {  
586                if (myPart == null) {
587                        myPart = new java.util.ArrayList<Parameter>();
588                }
589                return myPart;
590        }
591
592        /**
593         * Sets the value(s) for <b>part</b> ()
594         *
595     * <p>
596     * <b>Definition:</b>
597     * A named part of a parameter. In many implementation context, a set of named parts is known as a \&quot;Tuple\&quot;
598     * </p> 
599         */
600        public Parameter setPart(java.util.List<Parameter> theValue) {
601                myPart = theValue;
602                return this;
603        }
604        
605        
606
607        /**
608         * Adds and returns a new value for <b>part</b> ()
609         *
610     * <p>
611     * <b>Definition:</b>
612     * A named part of a parameter. In many implementation context, a set of named parts is known as a \&quot;Tuple\&quot;
613     * </p> 
614         */
615        public Parameter addPart() {
616                Parameter newType = new Parameter();
617                getPart().add(newType);
618                return newType; 
619        }
620
621        /**
622         * Adds a given new value for <b>part</b> ()
623         *
624         * <p>
625         * <b>Definition:</b>
626         * A named part of a parameter. In many implementation context, a set of named parts is known as a \&quot;Tuple\&quot;
627         * </p>
628         * @param theValue The part to add (must not be <code>null</code>)
629         */
630        public Parameter addPart(Parameter theValue) {
631                if (theValue == null) {
632                        throw new NullPointerException("theValue must not be null");
633                }
634                getPart().add(theValue);
635                return this;
636        }
637
638        /**
639         * Gets the first repetition for <b>part</b> (),
640         * creating it if it does not already exist.
641         *
642     * <p>
643     * <b>Definition:</b>
644     * A named part of a parameter. In many implementation context, a set of named parts is known as a \&quot;Tuple\&quot;
645     * </p> 
646         */
647        public Parameter getPartFirstRep() {
648                if (getPart().isEmpty()) {
649                        return addPart();
650                }
651                return getPart().get(0); 
652        }
653  
654
655
656        }
657
658
659
660
661    @Override
662    public String getResourceName() {
663        return "Parameters";
664    }
665    
666    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
667        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
668    }
669
670
671}