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>SupplyDelivery</b> Resource
282 * ()
283 *
284 * <p>
285 * <b>Definition:</b>
286 * Record of delivery of what is supplied.
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/SupplyDelivery">http://hl7.org/fhir/profiles/SupplyDelivery</a> 
297 * </p>
298 *
299 */
300@ResourceDef(name="SupplyDelivery", profile="http://hl7.org/fhir/profiles/SupplyDelivery", id="supplydelivery")
301public class SupplyDelivery extends ca.uhn.fhir.model.dstu2.resource.BaseResource
302    implements  IResource 
303    {
304
305        /**
306         * Search parameter constant for <b>supplier</b>
307         * <p>
308         * Description: <b></b><br>
309         * Type: <b>reference</b><br>
310         * Path: <b>SupplyDelivery.supplier</b><br>
311         * </p>
312         */
313        @SearchParamDefinition(name="supplier", path="SupplyDelivery.supplier", description="", type="reference" 
314, providesMembershipIn={
315 @Compartment(name="Encounter")         }
316 )
317        public static final String SP_SUPPLIER = "supplier";
318
319        /**
320         * <b>Fluent Client</b> search parameter constant for <b>supplier</b>
321         * <p>
322         * Description: <b></b><br>
323         * Type: <b>reference</b><br>
324         * Path: <b>SupplyDelivery.supplier</b><br>
325         * </p>
326         */
327        public static final ReferenceClientParam SUPPLIER = new ReferenceClientParam(SP_SUPPLIER);
328
329        /**
330         * Search parameter constant for <b>identifier</b>
331         * <p>
332         * Description: <b></b><br>
333         * Type: <b>token</b><br>
334         * Path: <b>SupplyDelivery.identifier</b><br>
335         * </p>
336         */
337        @SearchParamDefinition(name="identifier", path="SupplyDelivery.identifier", description="", type="token" 
338 )
339        public static final String SP_IDENTIFIER = "identifier";
340
341        /**
342         * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
343         * <p>
344         * Description: <b></b><br>
345         * Type: <b>token</b><br>
346         * Path: <b>SupplyDelivery.identifier</b><br>
347         * </p>
348         */
349        public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
350
351        /**
352         * Search parameter constant for <b>status</b>
353         * <p>
354         * Description: <b></b><br>
355         * Type: <b>token</b><br>
356         * Path: <b>SupplyDelivery.status</b><br>
357         * </p>
358         */
359        @SearchParamDefinition(name="status", path="SupplyDelivery.status", description="", type="token" 
360 )
361        public static final String SP_STATUS = "status";
362
363        /**
364         * <b>Fluent Client</b> search parameter constant for <b>status</b>
365         * <p>
366         * Description: <b></b><br>
367         * Type: <b>token</b><br>
368         * Path: <b>SupplyDelivery.status</b><br>
369         * </p>
370         */
371        public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS);
372
373        /**
374         * Search parameter constant for <b>patient</b>
375         * <p>
376         * Description: <b></b><br>
377         * Type: <b>reference</b><br>
378         * Path: <b>SupplyDelivery.patient</b><br>
379         * </p>
380         */
381        @SearchParamDefinition(name="patient", path="SupplyDelivery.patient", description="", type="reference" 
382, providesMembershipIn={
383 @Compartment(name="Patient")   }
384 )
385        public static final String SP_PATIENT = "patient";
386
387        /**
388         * <b>Fluent Client</b> search parameter constant for <b>patient</b>
389         * <p>
390         * Description: <b></b><br>
391         * Type: <b>reference</b><br>
392         * Path: <b>SupplyDelivery.patient</b><br>
393         * </p>
394         */
395        public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT);
396
397        /**
398         * Search parameter constant for <b>receiver</b>
399         * <p>
400         * Description: <b></b><br>
401         * Type: <b>reference</b><br>
402         * Path: <b>SupplyDelivery.receiver</b><br>
403         * </p>
404         */
405        @SearchParamDefinition(name="receiver", path="SupplyDelivery.receiver", description="", type="reference" 
406, providesMembershipIn={
407 @Compartment(name="Encounter")         }
408 )
409        public static final String SP_RECEIVER = "receiver";
410
411        /**
412         * <b>Fluent Client</b> search parameter constant for <b>receiver</b>
413         * <p>
414         * Description: <b></b><br>
415         * Type: <b>reference</b><br>
416         * Path: <b>SupplyDelivery.receiver</b><br>
417         * </p>
418         */
419        public static final ReferenceClientParam RECEIVER = new ReferenceClientParam(SP_RECEIVER);
420
421
422        /**
423         * Constant for fluent queries to be used to add include statements. Specifies
424         * the path value of "<b>SupplyDelivery:patient</b>".
425         */
426        public static final Include INCLUDE_PATIENT = new Include("SupplyDelivery:patient");
427
428        /**
429         * Constant for fluent queries to be used to add include statements. Specifies
430         * the path value of "<b>SupplyDelivery:receiver</b>".
431         */
432        public static final Include INCLUDE_RECEIVER = new Include("SupplyDelivery:receiver");
433
434        /**
435         * Constant for fluent queries to be used to add include statements. Specifies
436         * the path value of "<b>SupplyDelivery:supplier</b>".
437         */
438        public static final Include INCLUDE_SUPPLIER = new Include("SupplyDelivery:supplier");
439
440
441        @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1, summary=false, modifier=false)        
442        @Description(
443                shortDefinition="",
444                formalDefinition="Identifier assigned by the dispensing facility when the item(s) is dispensed."
445        )
446        private IdentifierDt myIdentifier;
447        
448        @Child(name="status", type=CodeDt.class, order=1, min=0, max=1, summary=false, modifier=true)   
449        @Description(
450                shortDefinition="",
451                formalDefinition="A code specifying the state of the dispense event."
452        )
453        @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/supplydelivery-status")
454        private BoundCodeDt<SupplyDeliveryStatusEnum> myStatus;
455        
456        @Child(name="patient", order=2, min=0, max=1, summary=false, modifier=false, type={
457                ca.uhn.fhir.model.dstu2.resource.Patient.class
458        })
459        @Description(
460                shortDefinition="",
461                formalDefinition="A link to a resource representing the person whom the delivered item is for"
462        )
463        private ResourceReferenceDt myPatient;
464        
465        @Child(name="type", type=CodeableConceptDt.class, order=3, min=0, max=1, summary=false, modifier=false) 
466        @Description(
467                shortDefinition="",
468                formalDefinition="Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc."
469        )
470        @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-supplydelivery-type")
471        private CodeableConceptDt myType;
472        
473        @Child(name="quantity", type=SimpleQuantityDt.class, order=4, min=0, max=1, summary=false, modifier=false)      
474        @Description(
475                shortDefinition="",
476                formalDefinition="The amount of supply that has been dispensed. Includes unit of measure."
477        )
478        private SimpleQuantityDt myQuantity;
479        
480        @Child(name="suppliedItem", order=5, min=0, max=1, summary=false, modifier=false, type={
481                ca.uhn.fhir.model.dstu2.resource.Medication.class, 
482                ca.uhn.fhir.model.dstu2.resource.Substance.class, 
483                ca.uhn.fhir.model.dstu2.resource.Device.class
484        })
485        @Description(
486                shortDefinition="",
487                formalDefinition="Identifies the medication, substance or device being dispensed. This is either a link to a resource representing the details of the item or a simple attribute carrying a code that identifies the item from a known list."
488        )
489        private ResourceReferenceDt mySuppliedItem;
490        
491        @Child(name="supplier", order=6, min=0, max=1, summary=false, modifier=false, type={
492                ca.uhn.fhir.model.dstu2.resource.Practitioner.class
493        })
494        @Description(
495                shortDefinition="",
496                formalDefinition="The individual responsible for dispensing the medication, supplier or device."
497        )
498        private ResourceReferenceDt mySupplier;
499        
500        @Child(name="whenPrepared", type=PeriodDt.class, order=7, min=0, max=1, summary=false, modifier=false)  
501        @Description(
502                shortDefinition="",
503                formalDefinition="The time the dispense event occurred."
504        )
505        private PeriodDt myWhenPrepared;
506        
507        @Child(name="time", type=DateTimeDt.class, order=8, min=0, max=1, summary=false, modifier=false)        
508        @Description(
509                shortDefinition="",
510                formalDefinition="The time the dispensed item was sent or handed to the patient (or agent)."
511        )
512        private DateTimeDt myTime;
513        
514        @Child(name="destination", order=9, min=0, max=1, summary=false, modifier=false, type={
515                ca.uhn.fhir.model.dstu2.resource.Location.class
516        })
517        @Description(
518                shortDefinition="",
519                formalDefinition="Identification of the facility/location where the Supply was shipped to, as part of the dispense event."
520        )
521        private ResourceReferenceDt myDestination;
522        
523        @Child(name="receiver", order=10, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
524                ca.uhn.fhir.model.dstu2.resource.Practitioner.class
525        })
526        @Description(
527                shortDefinition="",
528                formalDefinition="Identifies the person who picked up the Supply."
529        )
530        private java.util.List<ResourceReferenceDt> myReceiver;
531        
532
533        @Override
534        public boolean isEmpty() {
535                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myIdentifier,  myStatus,  myPatient,  myType,  myQuantity,  mySuppliedItem,  mySupplier,  myWhenPrepared,  myTime,  myDestination,  myReceiver);
536        }
537        
538        @Override
539        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
540                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myStatus, myPatient, myType, myQuantity, mySuppliedItem, mySupplier, myWhenPrepared, myTime, myDestination, myReceiver);
541        }
542
543        /**
544         * Gets the value(s) for <b>identifier</b> ().
545         * creating it if it does
546         * not exist. Will not return <code>null</code>.
547         *
548     * <p>
549     * <b>Definition:</b>
550     * Identifier assigned by the dispensing facility when the item(s) is dispensed.
551     * </p> 
552         */
553        public IdentifierDt getIdentifier() {  
554                if (myIdentifier == null) {
555                        myIdentifier = new IdentifierDt();
556                }
557                return myIdentifier;
558        }
559
560        /**
561         * Sets the value(s) for <b>identifier</b> ()
562         *
563     * <p>
564     * <b>Definition:</b>
565     * Identifier assigned by the dispensing facility when the item(s) is dispensed.
566     * </p> 
567         */
568        public SupplyDelivery setIdentifier(IdentifierDt theValue) {
569                myIdentifier = theValue;
570                return this;
571        }
572        
573        
574
575  
576        /**
577         * Gets the value(s) for <b>status</b> ().
578         * creating it if it does
579         * not exist. Will not return <code>null</code>.
580         *
581     * <p>
582     * <b>Definition:</b>
583     * A code specifying the state of the dispense event.
584     * </p> 
585         */
586        public BoundCodeDt<SupplyDeliveryStatusEnum> getStatusElement() {  
587                if (myStatus == null) {
588                        myStatus = new BoundCodeDt<SupplyDeliveryStatusEnum>(SupplyDeliveryStatusEnum.VALUESET_BINDER);
589                }
590                return myStatus;
591        }
592
593        
594        /**
595         * Gets the value(s) for <b>status</b> ().
596         * creating it if it does
597         * not exist. This method may return <code>null</code>.
598         *
599     * <p>
600     * <b>Definition:</b>
601     * A code specifying the state of the dispense event.
602     * </p> 
603         */
604        public String getStatus() {  
605                return getStatusElement().getValue();
606        }
607
608        /**
609         * Sets the value(s) for <b>status</b> ()
610         *
611     * <p>
612     * <b>Definition:</b>
613     * A code specifying the state of the dispense event.
614     * </p> 
615         */
616        public SupplyDelivery setStatus(BoundCodeDt<SupplyDeliveryStatusEnum> theValue) {
617                myStatus = theValue;
618                return this;
619        }
620        
621        
622
623        /**
624         * Sets the value(s) for <b>status</b> ()
625         *
626     * <p>
627     * <b>Definition:</b>
628     * A code specifying the state of the dispense event.
629     * </p> 
630         */
631        public SupplyDelivery setStatus(SupplyDeliveryStatusEnum theValue) {
632                setStatus(new BoundCodeDt<SupplyDeliveryStatusEnum>(SupplyDeliveryStatusEnum.VALUESET_BINDER, theValue));
633                
634/*
635                getStatusElement().setValueAsEnum(theValue);
636*/
637                return this;
638        }
639
640  
641        /**
642         * Gets the value(s) for <b>patient</b> ().
643         * creating it if it does
644         * not exist. Will not return <code>null</code>.
645         *
646     * <p>
647     * <b>Definition:</b>
648     * A link to a resource representing the person whom the delivered item is for
649     * </p> 
650         */
651        public ResourceReferenceDt getPatient() {  
652                if (myPatient == null) {
653                        myPatient = new ResourceReferenceDt();
654                }
655                return myPatient;
656        }
657
658        /**
659         * Sets the value(s) for <b>patient</b> ()
660         *
661     * <p>
662     * <b>Definition:</b>
663     * A link to a resource representing the person whom the delivered item is for
664     * </p> 
665         */
666        public SupplyDelivery setPatient(ResourceReferenceDt theValue) {
667                myPatient = theValue;
668                return this;
669        }
670        
671        
672
673  
674        /**
675         * Gets the value(s) for <b>type</b> ().
676         * creating it if it does
677         * not exist. Will not return <code>null</code>.
678         *
679     * <p>
680     * <b>Definition:</b>
681     * Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.
682     * </p> 
683         */
684        public CodeableConceptDt getType() {  
685                if (myType == null) {
686                        myType = new CodeableConceptDt();
687                }
688                return myType;
689        }
690
691        /**
692         * Sets the value(s) for <b>type</b> ()
693         *
694     * <p>
695     * <b>Definition:</b>
696     * Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.
697     * </p> 
698         */
699        public SupplyDelivery setType(CodeableConceptDt theValue) {
700                myType = theValue;
701                return this;
702        }
703        
704        
705
706  
707        /**
708         * Gets the value(s) for <b>quantity</b> ().
709         * creating it if it does
710         * not exist. Will not return <code>null</code>.
711         *
712     * <p>
713     * <b>Definition:</b>
714     * The amount of supply that has been dispensed. Includes unit of measure.
715     * </p> 
716         */
717        public SimpleQuantityDt getQuantity() {  
718                if (myQuantity == null) {
719                        myQuantity = new SimpleQuantityDt();
720                }
721                return myQuantity;
722        }
723
724        /**
725         * Sets the value(s) for <b>quantity</b> ()
726         *
727     * <p>
728     * <b>Definition:</b>
729     * The amount of supply that has been dispensed. Includes unit of measure.
730     * </p> 
731         */
732        public SupplyDelivery setQuantity(SimpleQuantityDt theValue) {
733                myQuantity = theValue;
734                return this;
735        }
736        
737        
738
739  
740        /**
741         * Gets the value(s) for <b>suppliedItem</b> ().
742         * creating it if it does
743         * not exist. Will not return <code>null</code>.
744         *
745     * <p>
746     * <b>Definition:</b>
747     * Identifies the medication, substance or device being dispensed. This is either a link to a resource representing the details of the item or a simple attribute carrying a code that identifies the item from a known list.
748     * </p> 
749         */
750        public ResourceReferenceDt getSuppliedItem() {  
751                if (mySuppliedItem == null) {
752                        mySuppliedItem = new ResourceReferenceDt();
753                }
754                return mySuppliedItem;
755        }
756
757        /**
758         * Sets the value(s) for <b>suppliedItem</b> ()
759         *
760     * <p>
761     * <b>Definition:</b>
762     * Identifies the medication, substance or device being dispensed. This is either a link to a resource representing the details of the item or a simple attribute carrying a code that identifies the item from a known list.
763     * </p> 
764         */
765        public SupplyDelivery setSuppliedItem(ResourceReferenceDt theValue) {
766                mySuppliedItem = theValue;
767                return this;
768        }
769        
770        
771
772  
773        /**
774         * Gets the value(s) for <b>supplier</b> ().
775         * creating it if it does
776         * not exist. Will not return <code>null</code>.
777         *
778     * <p>
779     * <b>Definition:</b>
780     * The individual responsible for dispensing the medication, supplier or device.
781     * </p> 
782         */
783        public ResourceReferenceDt getSupplier() {  
784                if (mySupplier == null) {
785                        mySupplier = new ResourceReferenceDt();
786                }
787                return mySupplier;
788        }
789
790        /**
791         * Sets the value(s) for <b>supplier</b> ()
792         *
793     * <p>
794     * <b>Definition:</b>
795     * The individual responsible for dispensing the medication, supplier or device.
796     * </p> 
797         */
798        public SupplyDelivery setSupplier(ResourceReferenceDt theValue) {
799                mySupplier = theValue;
800                return this;
801        }
802        
803        
804
805  
806        /**
807         * Gets the value(s) for <b>whenPrepared</b> ().
808         * creating it if it does
809         * not exist. Will not return <code>null</code>.
810         *
811     * <p>
812     * <b>Definition:</b>
813     * The time the dispense event occurred.
814     * </p> 
815         */
816        public PeriodDt getWhenPrepared() {  
817                if (myWhenPrepared == null) {
818                        myWhenPrepared = new PeriodDt();
819                }
820                return myWhenPrepared;
821        }
822
823        /**
824         * Sets the value(s) for <b>whenPrepared</b> ()
825         *
826     * <p>
827     * <b>Definition:</b>
828     * The time the dispense event occurred.
829     * </p> 
830         */
831        public SupplyDelivery setWhenPrepared(PeriodDt theValue) {
832                myWhenPrepared = theValue;
833                return this;
834        }
835        
836        
837
838  
839        /**
840         * Gets the value(s) for <b>time</b> ().
841         * creating it if it does
842         * not exist. Will not return <code>null</code>.
843         *
844     * <p>
845     * <b>Definition:</b>
846     * The time the dispensed item was sent or handed to the patient (or agent).
847     * </p> 
848         */
849        public DateTimeDt getTimeElement() {  
850                if (myTime == null) {
851                        myTime = new DateTimeDt();
852                }
853                return myTime;
854        }
855
856        
857        /**
858         * Gets the value(s) for <b>time</b> ().
859         * creating it if it does
860         * not exist. This method may return <code>null</code>.
861         *
862     * <p>
863     * <b>Definition:</b>
864     * The time the dispensed item was sent or handed to the patient (or agent).
865     * </p> 
866         */
867        public Date getTime() {  
868                return getTimeElement().getValue();
869        }
870
871        /**
872         * Sets the value(s) for <b>time</b> ()
873         *
874     * <p>
875     * <b>Definition:</b>
876     * The time the dispensed item was sent or handed to the patient (or agent).
877     * </p> 
878         */
879        public SupplyDelivery setTime(DateTimeDt theValue) {
880                myTime = theValue;
881                return this;
882        }
883        
884        
885
886        /**
887         * Sets the value for <b>time</b> ()
888         *
889     * <p>
890     * <b>Definition:</b>
891     * The time the dispensed item was sent or handed to the patient (or agent).
892     * </p> 
893         */
894        public SupplyDelivery setTimeWithSecondsPrecision( Date theDate) {
895                myTime = new DateTimeDt(theDate); 
896                return this; 
897        }
898
899        /**
900         * Sets the value for <b>time</b> ()
901         *
902     * <p>
903     * <b>Definition:</b>
904     * The time the dispensed item was sent or handed to the patient (or agent).
905     * </p> 
906         */
907        public SupplyDelivery setTime( Date theDate,  TemporalPrecisionEnum thePrecision) {
908                myTime = new DateTimeDt(theDate, thePrecision); 
909                return this; 
910        }
911
912 
913        /**
914         * Gets the value(s) for <b>destination</b> ().
915         * creating it if it does
916         * not exist. Will not return <code>null</code>.
917         *
918     * <p>
919     * <b>Definition:</b>
920     * Identification of the facility/location where the Supply was shipped to, as part of the dispense event.
921     * </p> 
922         */
923        public ResourceReferenceDt getDestination() {  
924                if (myDestination == null) {
925                        myDestination = new ResourceReferenceDt();
926                }
927                return myDestination;
928        }
929
930        /**
931         * Sets the value(s) for <b>destination</b> ()
932         *
933     * <p>
934     * <b>Definition:</b>
935     * Identification of the facility/location where the Supply was shipped to, as part of the dispense event.
936     * </p> 
937         */
938        public SupplyDelivery setDestination(ResourceReferenceDt theValue) {
939                myDestination = theValue;
940                return this;
941        }
942        
943        
944
945  
946        /**
947         * Gets the value(s) for <b>receiver</b> ().
948         * creating it if it does
949         * not exist. Will not return <code>null</code>.
950         *
951     * <p>
952     * <b>Definition:</b>
953     * Identifies the person who picked up the Supply.
954     * </p> 
955         */
956        public java.util.List<ResourceReferenceDt> getReceiver() {  
957                if (myReceiver == null) {
958                        myReceiver = new java.util.ArrayList<ResourceReferenceDt>();
959                }
960                return myReceiver;
961        }
962
963        /**
964         * Sets the value(s) for <b>receiver</b> ()
965         *
966     * <p>
967     * <b>Definition:</b>
968     * Identifies the person who picked up the Supply.
969     * </p> 
970         */
971        public SupplyDelivery setReceiver(java.util.List<ResourceReferenceDt> theValue) {
972                myReceiver = theValue;
973                return this;
974        }
975        
976        
977
978        /**
979         * Adds and returns a new value for <b>receiver</b> ()
980         *
981     * <p>
982     * <b>Definition:</b>
983     * Identifies the person who picked up the Supply.
984     * </p> 
985         */
986        public ResourceReferenceDt addReceiver() {
987                ResourceReferenceDt newType = new ResourceReferenceDt();
988                getReceiver().add(newType);
989                return newType; 
990        }
991  
992
993
994    @Override
995    public String getResourceName() {
996        return "SupplyDelivery";
997    }
998    
999    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
1000        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
1001    }
1002
1003
1004}