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>Subscription</b> Resource
282 * (infrastructure.exchange)
283 *
284 * <p>
285 * <b>Definition:</b>
286 * The subscription resource is used to define a push based subscription from a server to another system. Once a subscription is registered with the server, the server checks every resource that is created or updated, and if the resource matches the given criteria, it sends a message on the defined \"channel\" so that another system is able to take an appropriate action.
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/Subscription">http://hl7.org/fhir/profiles/Subscription</a> 
297 * </p>
298 *
299 */
300@ResourceDef(name="Subscription", profile="http://hl7.org/fhir/profiles/Subscription", id="subscription")
301public class Subscription extends ca.uhn.fhir.model.dstu2.resource.BaseResource
302    implements  IResource     {
303
304        /**
305         * Search parameter constant for <b>status</b>
306         * <p>
307         * Description: <b></b><br>
308         * Type: <b>token</b><br>
309         * Path: <b>Subscription.status</b><br>
310         * </p>
311         */
312        @SearchParamDefinition(name="status", path="Subscription.status", description="", type="token"  )
313        public static final String SP_STATUS = "status";
314
315        /**
316         * <b>Fluent Client</b> search parameter constant for <b>status</b>
317         * <p>
318         * Description: <b></b><br>
319         * Type: <b>token</b><br>
320         * Path: <b>Subscription.status</b><br>
321         * </p>
322         */
323        public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS);
324
325        /**
326         * Search parameter constant for <b>type</b>
327         * <p>
328         * Description: <b></b><br>
329         * Type: <b>token</b><br>
330         * Path: <b>Subscription.channel.type</b><br>
331         * </p>
332         */
333        @SearchParamDefinition(name="type", path="Subscription.channel.type", description="", type="token"  )
334        public static final String SP_TYPE = "type";
335
336        /**
337         * <b>Fluent Client</b> search parameter constant for <b>type</b>
338         * <p>
339         * Description: <b></b><br>
340         * Type: <b>token</b><br>
341         * Path: <b>Subscription.channel.type</b><br>
342         * </p>
343         */
344        public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
345
346        /**
347         * Search parameter constant for <b>url</b>
348         * <p>
349         * Description: <b></b><br>
350         * Type: <b>uri</b><br>
351         * Path: <b>Subscription.channel.endpoint</b><br>
352         * </p>
353         */
354        @SearchParamDefinition(name="url", path="Subscription.channel.endpoint", description="", type="uri"  )
355        public static final String SP_URL = "url";
356
357        /**
358         * <b>Fluent Client</b> search parameter constant for <b>url</b>
359         * <p>
360         * Description: <b></b><br>
361         * Type: <b>uri</b><br>
362         * Path: <b>Subscription.channel.endpoint</b><br>
363         * </p>
364         */
365        public static final UriClientParam URL = new UriClientParam(SP_URL);
366
367        /**
368         * Search parameter constant for <b>criteria</b>
369         * <p>
370         * Description: <b></b><br>
371         * Type: <b>string</b><br>
372         * Path: <b>Subscription.criteria</b><br>
373         * </p>
374         */
375        @SearchParamDefinition(name="criteria", path="Subscription.criteria", description="", type="string"  )
376        public static final String SP_CRITERIA = "criteria";
377
378        /**
379         * <b>Fluent Client</b> search parameter constant for <b>criteria</b>
380         * <p>
381         * Description: <b></b><br>
382         * Type: <b>string</b><br>
383         * Path: <b>Subscription.criteria</b><br>
384         * </p>
385         */
386        public static final StringClientParam CRITERIA = new StringClientParam(SP_CRITERIA);
387
388        /**
389         * Search parameter constant for <b>payload</b>
390         * <p>
391         * Description: <b></b><br>
392         * Type: <b>string</b><br>
393         * Path: <b>Subscription.channel.payload</b><br>
394         * </p>
395         */
396        @SearchParamDefinition(name="payload", path="Subscription.channel.payload", description="", type="string"  )
397        public static final String SP_PAYLOAD = "payload";
398
399        /**
400         * <b>Fluent Client</b> search parameter constant for <b>payload</b>
401         * <p>
402         * Description: <b></b><br>
403         * Type: <b>string</b><br>
404         * Path: <b>Subscription.channel.payload</b><br>
405         * </p>
406         */
407        public static final StringClientParam PAYLOAD = new StringClientParam(SP_PAYLOAD);
408
409        /**
410         * Search parameter constant for <b>contact</b>
411         * <p>
412         * Description: <b></b><br>
413         * Type: <b>token</b><br>
414         * Path: <b>Subscription.contact</b><br>
415         * </p>
416         */
417        @SearchParamDefinition(name="contact", path="Subscription.contact", description="", type="token"  )
418        public static final String SP_CONTACT = "contact";
419
420        /**
421         * <b>Fluent Client</b> search parameter constant for <b>contact</b>
422         * <p>
423         * Description: <b></b><br>
424         * Type: <b>token</b><br>
425         * Path: <b>Subscription.contact</b><br>
426         * </p>
427         */
428        public static final TokenClientParam CONTACT = new TokenClientParam(SP_CONTACT);
429
430        /**
431         * Search parameter constant for <b>tag</b>
432         * <p>
433         * Description: <b></b><br>
434         * Type: <b>token</b><br>
435         * Path: <b>Subscription.tag</b><br>
436         * </p>
437         */
438        @SearchParamDefinition(name="tag", path="Subscription.tag", description="", type="token"  )
439        public static final String SP_TAG = "tag";
440
441        /**
442         * <b>Fluent Client</b> search parameter constant for <b>tag</b>
443         * <p>
444         * Description: <b></b><br>
445         * Type: <b>token</b><br>
446         * Path: <b>Subscription.tag</b><br>
447         * </p>
448         */
449        public static final TokenClientParam TAG = new TokenClientParam(SP_TAG);
450
451
452
453        @Child(name="criteria", type=StringDt.class, order=0, min=1, max=1, summary=false, modifier=false)      
454        @Description(
455                shortDefinition="",
456                formalDefinition="The rules that the server should use to determine when to generate notifications for this subscription"
457        )
458        private StringDt myCriteria;
459        
460        @Child(name="contact", type=ContactPointDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)       
461        @Description(
462                shortDefinition="who.focus",
463                formalDefinition="Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting"
464        )
465        private java.util.List<ContactPointDt> myContact;
466        
467        @Child(name="reason", type=StringDt.class, order=2, min=1, max=1, summary=false, modifier=false)        
468        @Description(
469                shortDefinition="why",
470                formalDefinition="A description of why this subscription is defined"
471        )
472        private StringDt myReason;
473        
474        @Child(name="status", type=CodeDt.class, order=3, min=1, max=1, summary=false, modifier=true)   
475        @Description(
476                shortDefinition="status",
477                formalDefinition="The status of the subscription, which marks the server state for managing the subscription"
478        )
479        @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/subscription-status")
480        private BoundCodeDt<SubscriptionStatusEnum> myStatus;
481        
482        @Child(name="error", type=StringDt.class, order=4, min=0, max=1, summary=false, modifier=false) 
483        @Description(
484                shortDefinition="",
485                formalDefinition="A record of the last error that occurred when the server processed a notification"
486        )
487        private StringDt myError;
488        
489        @Child(name="channel", order=5, min=1, max=1, summary=false, modifier=false)    
490        @Description(
491                shortDefinition="",
492                formalDefinition="Details where to send notifications when resources are received that meet the criteria"
493        )
494        private Channel myChannel;
495        
496        @Child(name="end", type=InstantDt.class, order=6, min=0, max=1, summary=false, modifier=false)  
497        @Description(
498                shortDefinition="when.done",
499                formalDefinition="The time for the server to turn the subscription off"
500        )
501        private InstantDt myEnd;
502        
503        @Child(name="tag", type=CodingDt.class, order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 
504        @Description(
505                shortDefinition="",
506                formalDefinition="A tag to add to any resource that matches the criteria, after the subscription is processed"
507        )
508        private java.util.List<CodingDt> myTag;
509        
510
511        @Override
512        public boolean isEmpty() {
513                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myCriteria,  myContact,  myReason,  myStatus,  myError,  myChannel,  myEnd,  myTag);
514        }
515        
516        @Override
517        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
518                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCriteria, myContact, myReason, myStatus, myError, myChannel, myEnd, myTag);
519        }
520
521        /**
522         * Gets the value(s) for <b>criteria</b> ().
523         * creating it if it does
524         * not exist. Will not return <code>null</code>.
525         *
526     * <p>
527     * <b>Definition:</b>
528     * The rules that the server should use to determine when to generate notifications for this subscription
529     * </p> 
530         */
531        public StringDt getCriteriaElement() {  
532                if (myCriteria == null) {
533                        myCriteria = new StringDt();
534                }
535                return myCriteria;
536        }
537
538        
539        /**
540         * Gets the value(s) for <b>criteria</b> ().
541         * creating it if it does
542         * not exist. This method may return <code>null</code>.
543         *
544     * <p>
545     * <b>Definition:</b>
546     * The rules that the server should use to determine when to generate notifications for this subscription
547     * </p> 
548         */
549        public String getCriteria() {  
550                return getCriteriaElement().getValue();
551        }
552
553        /**
554         * Sets the value(s) for <b>criteria</b> ()
555         *
556     * <p>
557     * <b>Definition:</b>
558     * The rules that the server should use to determine when to generate notifications for this subscription
559     * </p> 
560         */
561        public Subscription setCriteria(StringDt theValue) {
562                myCriteria = theValue;
563                return this;
564        }
565        
566        
567
568        /**
569         * Sets the value for <b>criteria</b> ()
570         *
571     * <p>
572     * <b>Definition:</b>
573     * The rules that the server should use to determine when to generate notifications for this subscription
574     * </p> 
575         */
576        public Subscription setCriteria( String theString) {
577                myCriteria = new StringDt(theString); 
578                return this; 
579        }
580
581 
582        /**
583         * Gets the value(s) for <b>contact</b> (who.focus).
584         * creating it if it does
585         * not exist. Will not return <code>null</code>.
586         *
587     * <p>
588     * <b>Definition:</b>
589     * Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
590     * </p> 
591         */
592        public java.util.List<ContactPointDt> getContact() {  
593                if (myContact == null) {
594                        myContact = new java.util.ArrayList<ContactPointDt>();
595                }
596                return myContact;
597        }
598
599        /**
600         * Sets the value(s) for <b>contact</b> (who.focus)
601         *
602     * <p>
603     * <b>Definition:</b>
604     * Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
605     * </p> 
606         */
607        public Subscription setContact(java.util.List<ContactPointDt> theValue) {
608                myContact = theValue;
609                return this;
610        }
611        
612        
613
614        /**
615         * Adds and returns a new value for <b>contact</b> (who.focus)
616         *
617     * <p>
618     * <b>Definition:</b>
619     * Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
620     * </p> 
621         */
622        public ContactPointDt addContact() {
623                ContactPointDt newType = new ContactPointDt();
624                getContact().add(newType);
625                return newType; 
626        }
627
628        /**
629         * Adds a given new value for <b>contact</b> (who.focus)
630         *
631         * <p>
632         * <b>Definition:</b>
633         * Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
634         * </p>
635         * @param theValue The contact to add (must not be <code>null</code>)
636         */
637        public Subscription addContact(ContactPointDt theValue) {
638                if (theValue == null) {
639                        throw new NullPointerException("theValue must not be null");
640                }
641                getContact().add(theValue);
642                return this;
643        }
644
645        /**
646         * Gets the first repetition for <b>contact</b> (who.focus),
647         * creating it if it does not already exist.
648         *
649     * <p>
650     * <b>Definition:</b>
651     * Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
652     * </p> 
653         */
654        public ContactPointDt getContactFirstRep() {
655                if (getContact().isEmpty()) {
656                        return addContact();
657                }
658                return getContact().get(0); 
659        }
660  
661        /**
662         * Gets the value(s) for <b>reason</b> (why).
663         * creating it if it does
664         * not exist. Will not return <code>null</code>.
665         *
666     * <p>
667     * <b>Definition:</b>
668     * A description of why this subscription is defined
669     * </p> 
670         */
671        public StringDt getReasonElement() {  
672                if (myReason == null) {
673                        myReason = new StringDt();
674                }
675                return myReason;
676        }
677
678        
679        /**
680         * Gets the value(s) for <b>reason</b> (why).
681         * creating it if it does
682         * not exist. This method may return <code>null</code>.
683         *
684     * <p>
685     * <b>Definition:</b>
686     * A description of why this subscription is defined
687     * </p> 
688         */
689        public String getReason() {  
690                return getReasonElement().getValue();
691        }
692
693        /**
694         * Sets the value(s) for <b>reason</b> (why)
695         *
696     * <p>
697     * <b>Definition:</b>
698     * A description of why this subscription is defined
699     * </p> 
700         */
701        public Subscription setReason(StringDt theValue) {
702                myReason = theValue;
703                return this;
704        }
705        
706        
707
708        /**
709         * Sets the value for <b>reason</b> (why)
710         *
711     * <p>
712     * <b>Definition:</b>
713     * A description of why this subscription is defined
714     * </p> 
715         */
716        public Subscription setReason( String theString) {
717                myReason = new StringDt(theString); 
718                return this; 
719        }
720
721 
722        /**
723         * Gets the value(s) for <b>status</b> (status).
724         * creating it if it does
725         * not exist. Will not return <code>null</code>.
726         *
727     * <p>
728     * <b>Definition:</b>
729     * The status of the subscription, which marks the server state for managing the subscription
730     * </p> 
731         */
732        public BoundCodeDt<SubscriptionStatusEnum> getStatusElement() {  
733                if (myStatus == null) {
734                        myStatus = new BoundCodeDt<SubscriptionStatusEnum>(SubscriptionStatusEnum.VALUESET_BINDER);
735                }
736                return myStatus;
737        }
738
739        
740        /**
741         * Gets the value(s) for <b>status</b> (status).
742         * creating it if it does
743         * not exist. This method may return <code>null</code>.
744         *
745     * <p>
746     * <b>Definition:</b>
747     * The status of the subscription, which marks the server state for managing the subscription
748     * </p> 
749         */
750        public String getStatus() {  
751                return getStatusElement().getValue();
752        }
753
754        /**
755         * Sets the value(s) for <b>status</b> (status)
756         *
757     * <p>
758     * <b>Definition:</b>
759     * The status of the subscription, which marks the server state for managing the subscription
760     * </p> 
761         */
762        public Subscription setStatus(BoundCodeDt<SubscriptionStatusEnum> theValue) {
763                myStatus = theValue;
764                return this;
765        }
766        
767        
768
769        /**
770         * Sets the value(s) for <b>status</b> (status)
771         *
772     * <p>
773     * <b>Definition:</b>
774     * The status of the subscription, which marks the server state for managing the subscription
775     * </p> 
776         */
777        public Subscription setStatus(SubscriptionStatusEnum theValue) {
778                setStatus(new BoundCodeDt<SubscriptionStatusEnum>(SubscriptionStatusEnum.VALUESET_BINDER, theValue));
779                
780/*
781                getStatusElement().setValueAsEnum(theValue);
782*/
783                return this;
784        }
785
786  
787        /**
788         * Gets the value(s) for <b>error</b> ().
789         * creating it if it does
790         * not exist. Will not return <code>null</code>.
791         *
792     * <p>
793     * <b>Definition:</b>
794     * A record of the last error that occurred when the server processed a notification
795     * </p> 
796         */
797        public StringDt getErrorElement() {  
798                if (myError == null) {
799                        myError = new StringDt();
800                }
801                return myError;
802        }
803
804        
805        /**
806         * Gets the value(s) for <b>error</b> ().
807         * creating it if it does
808         * not exist. This method may return <code>null</code>.
809         *
810     * <p>
811     * <b>Definition:</b>
812     * A record of the last error that occurred when the server processed a notification
813     * </p> 
814         */
815        public String getError() {  
816                return getErrorElement().getValue();
817        }
818
819        /**
820         * Sets the value(s) for <b>error</b> ()
821         *
822     * <p>
823     * <b>Definition:</b>
824     * A record of the last error that occurred when the server processed a notification
825     * </p> 
826         */
827        public Subscription setError(StringDt theValue) {
828                myError = theValue;
829                return this;
830        }
831        
832        
833
834        /**
835         * Sets the value for <b>error</b> ()
836         *
837     * <p>
838     * <b>Definition:</b>
839     * A record of the last error that occurred when the server processed a notification
840     * </p> 
841         */
842        public Subscription setError( String theString) {
843                myError = new StringDt(theString); 
844                return this; 
845        }
846
847 
848        /**
849         * Gets the value(s) for <b>channel</b> ().
850         * creating it if it does
851         * not exist. Will not return <code>null</code>.
852         *
853     * <p>
854     * <b>Definition:</b>
855     * Details where to send notifications when resources are received that meet the criteria
856     * </p> 
857         */
858        public Channel getChannel() {  
859                if (myChannel == null) {
860                        myChannel = new Channel();
861                }
862                return myChannel;
863        }
864
865        /**
866         * Sets the value(s) for <b>channel</b> ()
867         *
868     * <p>
869     * <b>Definition:</b>
870     * Details where to send notifications when resources are received that meet the criteria
871     * </p> 
872         */
873        public Subscription setChannel(Channel theValue) {
874                myChannel = theValue;
875                return this;
876        }
877        
878        
879
880  
881        /**
882         * Gets the value(s) for <b>end</b> (when.done).
883         * creating it if it does
884         * not exist. Will not return <code>null</code>.
885         *
886     * <p>
887     * <b>Definition:</b>
888     * The time for the server to turn the subscription off
889     * </p> 
890         */
891        public InstantDt getEndElement() {  
892                if (myEnd == null) {
893                        myEnd = new InstantDt();
894                }
895                return myEnd;
896        }
897
898        
899        /**
900         * Gets the value(s) for <b>end</b> (when.done).
901         * creating it if it does
902         * not exist. This method may return <code>null</code>.
903         *
904     * <p>
905     * <b>Definition:</b>
906     * The time for the server to turn the subscription off
907     * </p> 
908         */
909        public Date getEnd() {  
910                return getEndElement().getValue();
911        }
912
913        /**
914         * Sets the value(s) for <b>end</b> (when.done)
915         *
916     * <p>
917     * <b>Definition:</b>
918     * The time for the server to turn the subscription off
919     * </p> 
920         */
921        public Subscription setEnd(InstantDt theValue) {
922                myEnd = theValue;
923                return this;
924        }
925        
926        
927
928        /**
929         * Sets the value for <b>end</b> (when.done)
930         *
931     * <p>
932     * <b>Definition:</b>
933     * The time for the server to turn the subscription off
934     * </p> 
935         */
936        public Subscription setEndWithMillisPrecision( Date theDate) {
937                myEnd = new InstantDt(theDate); 
938                return this; 
939        }
940
941        /**
942         * Sets the value for <b>end</b> (when.done)
943         *
944     * <p>
945     * <b>Definition:</b>
946     * The time for the server to turn the subscription off
947     * </p> 
948         */
949        public Subscription setEnd( Date theDate,  TemporalPrecisionEnum thePrecision) {
950                myEnd = new InstantDt(theDate, thePrecision); 
951                return this; 
952        }
953
954 
955        /**
956         * Gets the value(s) for <b>tag</b> ().
957         * creating it if it does
958         * not exist. Will not return <code>null</code>.
959         *
960     * <p>
961     * <b>Definition:</b>
962     * A tag to add to any resource that matches the criteria, after the subscription is processed
963     * </p> 
964         */
965        public java.util.List<CodingDt> getTag() {  
966                if (myTag == null) {
967                        myTag = new java.util.ArrayList<CodingDt>();
968                }
969                return myTag;
970        }
971
972        /**
973         * Sets the value(s) for <b>tag</b> ()
974         *
975     * <p>
976     * <b>Definition:</b>
977     * A tag to add to any resource that matches the criteria, after the subscription is processed
978     * </p> 
979         */
980        public Subscription setTag(java.util.List<CodingDt> theValue) {
981                myTag = theValue;
982                return this;
983        }
984        
985        
986
987        /**
988         * Adds and returns a new value for <b>tag</b> ()
989         *
990     * <p>
991     * <b>Definition:</b>
992     * A tag to add to any resource that matches the criteria, after the subscription is processed
993     * </p> 
994         */
995        public CodingDt addTag() {
996                CodingDt newType = new CodingDt();
997                getTag().add(newType);
998                return newType; 
999        }
1000
1001        /**
1002         * Adds a given new value for <b>tag</b> ()
1003         *
1004         * <p>
1005         * <b>Definition:</b>
1006         * A tag to add to any resource that matches the criteria, after the subscription is processed
1007         * </p>
1008         * @param theValue The tag to add (must not be <code>null</code>)
1009         */
1010        public Subscription addTag(CodingDt theValue) {
1011                if (theValue == null) {
1012                        throw new NullPointerException("theValue must not be null");
1013                }
1014                getTag().add(theValue);
1015                return this;
1016        }
1017
1018        /**
1019         * Gets the first repetition for <b>tag</b> (),
1020         * creating it if it does not already exist.
1021         *
1022     * <p>
1023     * <b>Definition:</b>
1024     * A tag to add to any resource that matches the criteria, after the subscription is processed
1025     * </p> 
1026         */
1027        public CodingDt getTagFirstRep() {
1028                if (getTag().isEmpty()) {
1029                        return addTag();
1030                }
1031                return getTag().get(0); 
1032        }
1033  
1034        /**
1035         * Block class for child element: <b>Subscription.channel</b> ()
1036         *
1037     * <p>
1038     * <b>Definition:</b>
1039     * Details where to send notifications when resources are received that meet the criteria
1040     * </p> 
1041         */
1042        @Block()        
1043        public static class Channel 
1044            extends  BaseIdentifiableElement        implements IResourceBlock {
1045        
1046        @Child(name="type", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false)    
1047        @Description(
1048                shortDefinition="",
1049                formalDefinition="The type of channel to send notifications on"
1050        )
1051        @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/subscription-channel-type")
1052        private BoundCodeDt<SubscriptionChannelTypeEnum> myType;
1053        
1054        @Child(name="endpoint", type=UriDt.class, order=1, min=0, max=1, summary=false, modifier=false) 
1055        @Description(
1056                shortDefinition="",
1057                formalDefinition="The uri that describes the actual end-point to send messages to"
1058        )
1059        private UriDt myEndpoint;
1060        
1061        @Child(name="payload", type=StringDt.class, order=2, min=1, max=1, summary=false, modifier=false)       
1062        @Description(
1063                shortDefinition="",
1064                formalDefinition="The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification"
1065        )
1066        private StringDt myPayload;
1067        
1068        @Child(name="header", type=StringDt.class, order=3, min=0, max=1, summary=false, modifier=false)        
1069        @Description(
1070                shortDefinition="",
1071                formalDefinition="Additional headers / information to send as part of the notification"
1072        )
1073        private StringDt myHeader;
1074        
1075
1076        @Override
1077        public boolean isEmpty() {
1078                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myType,  myEndpoint,  myPayload,  myHeader);
1079        }
1080        
1081        @Override
1082        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
1083                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myEndpoint, myPayload, myHeader);
1084        }
1085
1086        /**
1087         * Gets the value(s) for <b>type</b> ().
1088         * creating it if it does
1089         * not exist. Will not return <code>null</code>.
1090         *
1091     * <p>
1092     * <b>Definition:</b>
1093     * The type of channel to send notifications on
1094     * </p> 
1095         */
1096        public BoundCodeDt<SubscriptionChannelTypeEnum> getTypeElement() {  
1097                if (myType == null) {
1098                        myType = new BoundCodeDt<SubscriptionChannelTypeEnum>(SubscriptionChannelTypeEnum.VALUESET_BINDER);
1099                }
1100                return myType;
1101        }
1102
1103        
1104        /**
1105         * Gets the value(s) for <b>type</b> ().
1106         * creating it if it does
1107         * not exist. This method may return <code>null</code>.
1108         *
1109     * <p>
1110     * <b>Definition:</b>
1111     * The type of channel to send notifications on
1112     * </p> 
1113         */
1114        public String getType() {  
1115                return getTypeElement().getValue();
1116        }
1117
1118        /**
1119         * Sets the value(s) for <b>type</b> ()
1120         *
1121     * <p>
1122     * <b>Definition:</b>
1123     * The type of channel to send notifications on
1124     * </p> 
1125         */
1126        public Channel setType(BoundCodeDt<SubscriptionChannelTypeEnum> theValue) {
1127                myType = theValue;
1128                return this;
1129        }
1130        
1131        
1132
1133        /**
1134         * Sets the value(s) for <b>type</b> ()
1135         *
1136     * <p>
1137     * <b>Definition:</b>
1138     * The type of channel to send notifications on
1139     * </p> 
1140         */
1141        public Channel setType(SubscriptionChannelTypeEnum theValue) {
1142                setType(new BoundCodeDt<SubscriptionChannelTypeEnum>(SubscriptionChannelTypeEnum.VALUESET_BINDER, theValue));
1143                
1144/*
1145                getTypeElement().setValueAsEnum(theValue);
1146*/
1147                return this;
1148        }
1149
1150  
1151        /**
1152         * Gets the value(s) for <b>endpoint</b> ().
1153         * creating it if it does
1154         * not exist. Will not return <code>null</code>.
1155         *
1156     * <p>
1157     * <b>Definition:</b>
1158     * The uri that describes the actual end-point to send messages to
1159     * </p> 
1160         */
1161        public UriDt getEndpointElement() {  
1162                if (myEndpoint == null) {
1163                        myEndpoint = new UriDt();
1164                }
1165                return myEndpoint;
1166        }
1167
1168        
1169        /**
1170         * Gets the value(s) for <b>endpoint</b> ().
1171         * creating it if it does
1172         * not exist. This method may return <code>null</code>.
1173         *
1174     * <p>
1175     * <b>Definition:</b>
1176     * The uri that describes the actual end-point to send messages to
1177     * </p> 
1178         */
1179        public String getEndpoint() {  
1180                return getEndpointElement().getValue();
1181        }
1182
1183        /**
1184         * Sets the value(s) for <b>endpoint</b> ()
1185         *
1186     * <p>
1187     * <b>Definition:</b>
1188     * The uri that describes the actual end-point to send messages to
1189     * </p> 
1190         */
1191        public Channel setEndpoint(UriDt theValue) {
1192                myEndpoint = theValue;
1193                return this;
1194        }
1195        
1196        
1197
1198        /**
1199         * Sets the value for <b>endpoint</b> ()
1200         *
1201     * <p>
1202     * <b>Definition:</b>
1203     * The uri that describes the actual end-point to send messages to
1204     * </p> 
1205         */
1206        public Channel setEndpoint( String theUri) {
1207                myEndpoint = new UriDt(theUri); 
1208                return this; 
1209        }
1210
1211 
1212        /**
1213         * Gets the value(s) for <b>payload</b> ().
1214         * creating it if it does
1215         * not exist. Will not return <code>null</code>.
1216         *
1217     * <p>
1218     * <b>Definition:</b>
1219     * The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification
1220     * </p> 
1221         */
1222        public StringDt getPayloadElement() {  
1223                if (myPayload == null) {
1224                        myPayload = new StringDt();
1225                }
1226                return myPayload;
1227        }
1228
1229        
1230        /**
1231         * Gets the value(s) for <b>payload</b> ().
1232         * creating it if it does
1233         * not exist. This method may return <code>null</code>.
1234         *
1235     * <p>
1236     * <b>Definition:</b>
1237     * The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification
1238     * </p> 
1239         */
1240        public String getPayload() {  
1241                return getPayloadElement().getValue();
1242        }
1243
1244        /**
1245         * Sets the value(s) for <b>payload</b> ()
1246         *
1247     * <p>
1248     * <b>Definition:</b>
1249     * The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification
1250     * </p> 
1251         */
1252        public Channel setPayload(StringDt theValue) {
1253                myPayload = theValue;
1254                return this;
1255        }
1256        
1257        
1258
1259        /**
1260         * Sets the value for <b>payload</b> ()
1261         *
1262     * <p>
1263     * <b>Definition:</b>
1264     * The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification
1265     * </p> 
1266         */
1267        public Channel setPayload( String theString) {
1268                myPayload = new StringDt(theString); 
1269                return this; 
1270        }
1271
1272 
1273        /**
1274         * Gets the value(s) for <b>header</b> ().
1275         * creating it if it does
1276         * not exist. Will not return <code>null</code>.
1277         *
1278     * <p>
1279     * <b>Definition:</b>
1280     * Additional headers / information to send as part of the notification
1281     * </p> 
1282         */
1283        public StringDt getHeaderElement() {  
1284                if (myHeader == null) {
1285                        myHeader = new StringDt();
1286                }
1287                return myHeader;
1288        }
1289
1290        
1291        /**
1292         * Gets the value(s) for <b>header</b> ().
1293         * creating it if it does
1294         * not exist. This method may return <code>null</code>.
1295         *
1296     * <p>
1297     * <b>Definition:</b>
1298     * Additional headers / information to send as part of the notification
1299     * </p> 
1300         */
1301        public String getHeader() {  
1302                return getHeaderElement().getValue();
1303        }
1304
1305        /**
1306         * Sets the value(s) for <b>header</b> ()
1307         *
1308     * <p>
1309     * <b>Definition:</b>
1310     * Additional headers / information to send as part of the notification
1311     * </p> 
1312         */
1313        public Channel setHeader(StringDt theValue) {
1314                myHeader = theValue;
1315                return this;
1316        }
1317        
1318        
1319
1320        /**
1321         * Sets the value for <b>header</b> ()
1322         *
1323     * <p>
1324     * <b>Definition:</b>
1325     * Additional headers / information to send as part of the notification
1326     * </p> 
1327         */
1328        public Channel setHeader( String theString) {
1329                myHeader = new StringDt(theString); 
1330                return this; 
1331        }
1332
1333 
1334
1335
1336        }
1337
1338
1339
1340
1341    @Override
1342    public String getResourceName() {
1343        return "Subscription";
1344    }
1345    
1346    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
1347        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
1348    }
1349
1350
1351}