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.valueset.AnimalSpeciesEnum;
042import ca.uhn.fhir.model.dstu2.composite.AnnotationDt;
043import ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum;
044import ca.uhn.fhir.model.dstu2.resource.Appointment;
045import ca.uhn.fhir.model.dstu2.valueset.AppointmentStatusEnum;
046import ca.uhn.fhir.model.dstu2.valueset.AssertionDirectionTypeEnum;
047import ca.uhn.fhir.model.dstu2.valueset.AssertionOperatorTypeEnum;
048import ca.uhn.fhir.model.dstu2.valueset.AssertionResponseTypesEnum;
049import ca.uhn.fhir.model.dstu2.composite.AttachmentDt;
050import ca.uhn.fhir.model.dstu2.valueset.AuditEventActionEnum;
051import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum;
052import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectRoleEnum;
053import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectTypeEnum;
054import ca.uhn.fhir.model.dstu2.valueset.AuditEventOutcomeEnum;
055import ca.uhn.fhir.model.dstu2.valueset.AuditEventParticipantNetworkTypeEnum;
056import ca.uhn.fhir.model.dstu2.valueset.AuditEventSourceTypeEnum;
057import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum;
058import ca.uhn.fhir.model.dstu2.resource.BodySite;
059import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum;
060import ca.uhn.fhir.model.dstu2.resource.CarePlan;
061import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityCategoryEnum;
062import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityStatusEnum;
063import ca.uhn.fhir.model.dstu2.valueset.CarePlanRelationshipEnum;
064import ca.uhn.fhir.model.dstu2.valueset.CarePlanStatusEnum;
065import ca.uhn.fhir.model.dstu2.resource.Claim;
066import ca.uhn.fhir.model.dstu2.resource.ClaimResponse;
067import ca.uhn.fhir.model.dstu2.valueset.ClaimTypeEnum;
068import ca.uhn.fhir.model.dstu2.resource.ClinicalImpression;
069import ca.uhn.fhir.model.dstu2.valueset.ClinicalImpressionStatusEnum;
070import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt;
071import ca.uhn.fhir.model.dstu2.composite.CodingDt;
072import ca.uhn.fhir.model.dstu2.resource.CommunicationRequest;
073import ca.uhn.fhir.model.dstu2.valueset.CommunicationRequestStatusEnum;
074import ca.uhn.fhir.model.dstu2.valueset.CommunicationStatusEnum;
075import ca.uhn.fhir.model.dstu2.resource.Composition;
076import ca.uhn.fhir.model.dstu2.valueset.CompositionAttestationModeEnum;
077import ca.uhn.fhir.model.dstu2.valueset.CompositionStatusEnum;
078import ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum;
079import ca.uhn.fhir.model.dstu2.resource.Condition;
080import ca.uhn.fhir.model.dstu2.valueset.ConditionCategoryCodesEnum;
081import ca.uhn.fhir.model.dstu2.valueset.ConditionClinicalStatusCodesEnum;
082import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum;
083import ca.uhn.fhir.model.dstu2.valueset.ConditionalDeleteStatusEnum;
084import ca.uhn.fhir.model.dstu2.valueset.ConditionsCodesEnum;
085import ca.uhn.fhir.model.dstu2.resource.Conformance;
086import ca.uhn.fhir.model.dstu2.valueset.ConformanceEventModeEnum;
087import ca.uhn.fhir.model.dstu2.valueset.ConformanceResourceStatusEnum;
088import ca.uhn.fhir.model.dstu2.valueset.ConformanceStatementKindEnum;
089import ca.uhn.fhir.model.dstu2.composite.ContactPointDt;
090import ca.uhn.fhir.model.dstu2.valueset.ContentTypeEnum;
091import ca.uhn.fhir.model.dstu2.resource.Contract;
092import ca.uhn.fhir.model.dstu2.valueset.ContractActionCodesEnum;
093import ca.uhn.fhir.model.dstu2.valueset.ContractActorRoleCodesEnum;
094import ca.uhn.fhir.model.dstu2.valueset.ContractSubtypeCodesEnum;
095import ca.uhn.fhir.model.dstu2.valueset.ContractTermTypeCodesEnum;
096import ca.uhn.fhir.model.dstu2.valueset.ContractTypeCodesEnum;
097import ca.uhn.fhir.model.dstu2.resource.Coverage;
098import ca.uhn.fhir.model.dstu2.valueset.DataElementStringencyEnum;
099import ca.uhn.fhir.model.dstu2.valueset.DaysOfWeekEnum;
100import ca.uhn.fhir.model.dstu2.valueset.DetectedIssueSeverityEnum;
101import ca.uhn.fhir.model.dstu2.resource.Device;
102import ca.uhn.fhir.model.dstu2.resource.DeviceComponent;
103import ca.uhn.fhir.model.dstu2.resource.DeviceMetric;
104import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationStateEnum;
105import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationTypeEnum;
106import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCategoryEnum;
107import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricColorEnum;
108import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricOperationalStatusEnum;
109import ca.uhn.fhir.model.dstu2.valueset.DeviceStatusEnum;
110import ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest;
111import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestPriorityEnum;
112import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestStatusEnum;
113import ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder;
114import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderPriorityEnum;
115import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderStatusEnum;
116import ca.uhn.fhir.model.dstu2.resource.DiagnosticReport;
117import ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum;
118import ca.uhn.fhir.model.dstu2.valueset.DigitalMediaTypeEnum;
119import ca.uhn.fhir.model.dstu2.valueset.DocumentModeEnum;
120import ca.uhn.fhir.model.dstu2.resource.DocumentReference;
121import ca.uhn.fhir.model.dstu2.valueset.DocumentReferenceStatusEnum;
122import ca.uhn.fhir.model.dstu2.valueset.DocumentRelationshipTypeEnum;
123import ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt;
124import ca.uhn.fhir.model.dstu2.resource.EligibilityRequest;
125import ca.uhn.fhir.model.dstu2.resource.Encounter;
126import ca.uhn.fhir.model.dstu2.valueset.EncounterClassEnum;
127import ca.uhn.fhir.model.dstu2.valueset.EncounterLocationStatusEnum;
128import ca.uhn.fhir.model.dstu2.valueset.EncounterStateEnum;
129import ca.uhn.fhir.model.dstu2.valueset.EncounterTypeEnum;
130import ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest;
131import ca.uhn.fhir.model.dstu2.valueset.EnteralFormulaTypeCodesEnum;
132import ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare;
133import ca.uhn.fhir.model.dstu2.valueset.EpisodeOfCareStatusEnum;
134import ca.uhn.fhir.model.dstu2.valueset.ExceptionCodesEnum;
135import ca.uhn.fhir.model.dstu2.valueset.ExtensionContextEnum;
136import ca.uhn.fhir.model.dstu2.valueset.FamilyHistoryStatusEnum;
137import ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory;
138import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum;
139import ca.uhn.fhir.model.dstu2.valueset.FlagCategoryCodesEnum;
140import ca.uhn.fhir.model.dstu2.valueset.FlagStatusEnum;
141import ca.uhn.fhir.model.dstu2.valueset.FluidConsistencyTypeCodesEnum;
142import ca.uhn.fhir.model.dstu2.resource.Goal;
143import ca.uhn.fhir.model.dstu2.valueset.GoalCategoryEnum;
144import ca.uhn.fhir.model.dstu2.valueset.GoalPriorityEnum;
145import ca.uhn.fhir.model.dstu2.valueset.GoalStartEventEnum;
146import ca.uhn.fhir.model.dstu2.valueset.GoalStatusEnum;
147import ca.uhn.fhir.model.dstu2.valueset.GoalStatusReasonEnum;
148import ca.uhn.fhir.model.dstu2.resource.Group;
149import ca.uhn.fhir.model.dstu2.valueset.GroupTypeEnum;
150import ca.uhn.fhir.model.dstu2.valueset.GuideDependencyTypeEnum;
151import ca.uhn.fhir.model.dstu2.valueset.GuidePageKindEnum;
152import ca.uhn.fhir.model.dstu2.valueset.GuideResourcePurposeEnum;
153import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum;
154import ca.uhn.fhir.model.dstu2.resource.HealthcareService;
155import ca.uhn.fhir.model.dstu2.composite.HumanNameDt;
156import ca.uhn.fhir.model.dstu2.composite.IdentifierDt;
157import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum;
158import ca.uhn.fhir.model.dstu2.valueset.IdentityAssuranceLevelEnum;
159import ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection;
160import ca.uhn.fhir.model.dstu2.resource.ImagingStudy;
161import ca.uhn.fhir.model.dstu2.resource.Immunization;
162import ca.uhn.fhir.model.dstu2.valueset.ImmunizationReasonCodesEnum;
163import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
164import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRecommendationStatusCodesEnum;
165import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRouteCodesEnum;
166import ca.uhn.fhir.model.dstu2.valueset.InstanceAvailabilityEnum;
167import ca.uhn.fhir.model.dstu2.valueset.InterventionCodesEnum;
168import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum;
169import ca.uhn.fhir.model.dstu2.valueset.IssueTypeEnum;
170import ca.uhn.fhir.model.dstu2.valueset.KOStitleEnum;
171import ca.uhn.fhir.model.dstu2.valueset.LateralityEnum;
172import ca.uhn.fhir.model.dstu2.valueset.LinkTypeEnum;
173import ca.uhn.fhir.model.dstu2.valueset.ListModeEnum;
174import ca.uhn.fhir.model.dstu2.valueset.ListOrderCodesEnum;
175import ca.uhn.fhir.model.dstu2.valueset.ListStatusEnum;
176import ca.uhn.fhir.model.dstu2.resource.Location;
177import ca.uhn.fhir.model.dstu2.valueset.LocationModeEnum;
178import ca.uhn.fhir.model.dstu2.valueset.LocationStatusEnum;
179import ca.uhn.fhir.model.dstu2.valueset.LocationTypeEnum;
180import ca.uhn.fhir.model.dstu2.valueset.MaritalStatusCodesEnum;
181import ca.uhn.fhir.model.dstu2.valueset.MeasmntPrincipleEnum;
182import ca.uhn.fhir.model.dstu2.resource.Media;
183import ca.uhn.fhir.model.dstu2.resource.Medication;
184import ca.uhn.fhir.model.dstu2.valueset.MedicationAdministrationStatusEnum;
185import ca.uhn.fhir.model.dstu2.valueset.MedicationDispenseStatusEnum;
186import ca.uhn.fhir.model.dstu2.resource.MedicationOrder;
187import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum;
188import ca.uhn.fhir.model.dstu2.resource.MedicationStatement;
189import ca.uhn.fhir.model.dstu2.valueset.MedicationStatementStatusEnum;
190import ca.uhn.fhir.model.dstu2.valueset.MessageEventEnum;
191import ca.uhn.fhir.model.dstu2.valueset.MessageSignificanceCategoryEnum;
192import ca.uhn.fhir.model.dstu2.valueset.MessageTransportEnum;
193import ca.uhn.fhir.model.dstu2.resource.NamingSystem;
194import ca.uhn.fhir.model.dstu2.valueset.NamingSystemIdentifierTypeEnum;
195import ca.uhn.fhir.model.dstu2.valueset.NamingSystemTypeEnum;
196import ca.uhn.fhir.model.dstu2.valueset.NoteTypeEnum;
197import ca.uhn.fhir.model.dstu2.valueset.NutrientModifierCodesEnum;
198import ca.uhn.fhir.model.dstu2.resource.NutritionOrder;
199import ca.uhn.fhir.model.dstu2.valueset.NutritionOrderStatusEnum;
200import ca.uhn.fhir.model.dstu2.resource.Observation;
201import ca.uhn.fhir.model.dstu2.valueset.ObservationCategoryCodesEnum;
202import ca.uhn.fhir.model.dstu2.valueset.ObservationRelationshipTypeEnum;
203import ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum;
204import ca.uhn.fhir.model.dstu2.resource.OperationDefinition;
205import ca.uhn.fhir.model.dstu2.valueset.OperationKindEnum;
206import ca.uhn.fhir.model.dstu2.resource.OperationOutcome;
207import ca.uhn.fhir.model.dstu2.valueset.OperationParameterUseEnum;
208import ca.uhn.fhir.model.dstu2.resource.Order;
209import ca.uhn.fhir.model.dstu2.valueset.OrderStatusEnum;
210import ca.uhn.fhir.model.dstu2.resource.Organization;
211import ca.uhn.fhir.model.dstu2.valueset.OrganizationTypeEnum;
212import ca.uhn.fhir.model.dstu2.valueset.ParticipantRequiredEnum;
213import ca.uhn.fhir.model.dstu2.valueset.ParticipantStatusEnum;
214import ca.uhn.fhir.model.dstu2.valueset.ParticipantTypeEnum;
215import ca.uhn.fhir.model.dstu2.valueset.ParticipationStatusEnum;
216import ca.uhn.fhir.model.dstu2.resource.Patient;
217import ca.uhn.fhir.model.dstu2.valueset.PayeeTypeCodesEnum;
218import ca.uhn.fhir.model.dstu2.valueset.PaymentStatusCodesEnum;
219import ca.uhn.fhir.model.dstu2.valueset.PaymentTypeCodesEnum;
220import ca.uhn.fhir.model.dstu2.composite.PeriodDt;
221import ca.uhn.fhir.model.dstu2.resource.Person;
222import ca.uhn.fhir.model.dstu2.resource.Practitioner;
223import ca.uhn.fhir.model.dstu2.valueset.PractitionerRoleEnum;
224import ca.uhn.fhir.model.dstu2.valueset.PractitionerSpecialtyEnum;
225import ca.uhn.fhir.model.dstu2.valueset.PriorityCodesEnum;
226import ca.uhn.fhir.model.dstu2.resource.Procedure;
227import ca.uhn.fhir.model.dstu2.resource.ProcedureRequest;
228import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestPriorityEnum;
229import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestStatusEnum;
230import ca.uhn.fhir.model.dstu2.valueset.ProcedureStatusEnum;
231import ca.uhn.fhir.model.dstu2.resource.ProcessRequest;
232import ca.uhn.fhir.model.dstu2.valueset.ProvenanceEntityRoleEnum;
233import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
234import ca.uhn.fhir.model.dstu2.resource.Questionnaire;
235import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse;
236import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireResponseStatusEnum;
237import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireStatusEnum;
238import ca.uhn.fhir.model.dstu2.composite.RangeDt;
239import ca.uhn.fhir.model.dstu2.composite.RatioDt;
240import ca.uhn.fhir.model.dstu2.valueset.ReferralMethodEnum;
241import ca.uhn.fhir.model.dstu2.resource.ReferralRequest;
242import ca.uhn.fhir.model.dstu2.valueset.ReferralStatusEnum;
243import ca.uhn.fhir.model.dstu2.resource.RelatedPerson;
244import ca.uhn.fhir.model.dstu2.valueset.RemittanceOutcomeEnum;
245import ca.uhn.fhir.model.dstu2.valueset.ResourceTypeEnum;
246import ca.uhn.fhir.model.dstu2.valueset.ResourceVersionPolicyEnum;
247import ca.uhn.fhir.model.dstu2.valueset.ResponseTypeEnum;
248import ca.uhn.fhir.model.dstu2.valueset.RestfulConformanceModeEnum;
249import ca.uhn.fhir.model.dstu2.valueset.RestfulSecurityServiceEnum;
250import ca.uhn.fhir.model.dstu2.resource.RiskAssessment;
251import ca.uhn.fhir.model.dstu2.valueset.RulesetCodesEnum;
252import ca.uhn.fhir.model.dstu2.composite.SampledDataDt;
253import ca.uhn.fhir.model.dstu2.resource.Schedule;
254import ca.uhn.fhir.model.dstu2.valueset.SearchEntryModeEnum;
255import ca.uhn.fhir.model.dstu2.valueset.SearchModifierCodeEnum;
256import ca.uhn.fhir.model.dstu2.valueset.SearchParamTypeEnum;
257import ca.uhn.fhir.model.dstu2.valueset.ServiceProvisionConditionsEnum;
258import ca.uhn.fhir.model.dstu2.composite.SignatureDt;
259import ca.uhn.fhir.model.dstu2.resource.Slot;
260import ca.uhn.fhir.model.dstu2.valueset.SlotStatusEnum;
261import ca.uhn.fhir.model.dstu2.resource.Specimen;
262import ca.uhn.fhir.model.dstu2.valueset.SpecimenCollectionMethodEnum;
263import ca.uhn.fhir.model.dstu2.valueset.SpecimenStatusEnum;
264import ca.uhn.fhir.model.dstu2.resource.StructureDefinition;
265import ca.uhn.fhir.model.dstu2.valueset.StructureDefinitionKindEnum;
266import ca.uhn.fhir.model.dstu2.valueset.SubscriptionChannelTypeEnum;
267import ca.uhn.fhir.model.dstu2.valueset.SubscriptionStatusEnum;
268import ca.uhn.fhir.model.dstu2.valueset.SubscriptionTagEnum;
269import ca.uhn.fhir.model.dstu2.resource.Substance;
270import ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum;
271import ca.uhn.fhir.model.dstu2.valueset.SupplementTypeCodesEnum;
272import ca.uhn.fhir.model.dstu2.valueset.SupplyDeliveryStatusEnum;
273import ca.uhn.fhir.model.dstu2.resource.SupplyRequest;
274import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestReasonEnum;
275import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestStatusEnum;
276import ca.uhn.fhir.model.dstu2.valueset.SurfaceCodesEnum;
277import ca.uhn.fhir.model.dstu2.valueset.SystemRestfulInteractionEnum;
278import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
279import ca.uhn.fhir.model.dstu2.valueset.TextureModifiedFoodTypeCodesEnum;
280import ca.uhn.fhir.model.dstu2.valueset.TextureModifierCodesEnum;
281import ca.uhn.fhir.model.dstu2.composite.TimingDt;
282import ca.uhn.fhir.model.dstu2.valueset.TransactionModeEnum;
283import ca.uhn.fhir.model.dstu2.valueset.TypeRestfulInteractionEnum;
284import ca.uhn.fhir.model.dstu2.valueset.UDICodesEnum;
285import ca.uhn.fhir.model.dstu2.valueset.UnknownContentCodeEnum;
286import ca.uhn.fhir.model.dstu2.valueset.UseEnum;
287import ca.uhn.fhir.model.dstu2.resource.ValueSet;
288import ca.uhn.fhir.model.dstu2.valueset.VisionBaseEnum;
289import ca.uhn.fhir.model.dstu2.valueset.VisionEyesEnum;
290import ca.uhn.fhir.model.dstu2.resource.VisionPrescription;
291import ca.uhn.fhir.model.dstu2.valueset.XPathUsageTypeEnum;
292import ca.uhn.fhir.model.api.IResource;
293import ca.uhn.fhir.model.dstu2.composite.AgeDt;
294import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt;
295import ca.uhn.fhir.model.dstu2.composite.DurationDt;
296import ca.uhn.fhir.model.dstu2.composite.MoneyDt;
297import ca.uhn.fhir.model.dstu2.composite.NarrativeDt;
298import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt;
299import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt;
300import ca.uhn.fhir.model.primitive.Base64BinaryDt;
301import ca.uhn.fhir.model.primitive.BooleanDt;
302import ca.uhn.fhir.model.primitive.BoundCodeDt;
303import ca.uhn.fhir.model.primitive.CodeDt;
304import ca.uhn.fhir.model.primitive.DateDt;
305import ca.uhn.fhir.model.primitive.DateTimeDt;
306import ca.uhn.fhir.model.primitive.DecimalDt;
307import ca.uhn.fhir.model.primitive.IdDt;
308import ca.uhn.fhir.model.primitive.InstantDt;
309import ca.uhn.fhir.model.primitive.IntegerDt;
310import ca.uhn.fhir.model.primitive.OidDt;
311import ca.uhn.fhir.model.primitive.PositiveIntDt;
312import ca.uhn.fhir.model.primitive.StringDt;
313import ca.uhn.fhir.model.primitive.TimeDt;
314import ca.uhn.fhir.model.primitive.UnsignedIntDt;
315import ca.uhn.fhir.model.primitive.UriDt;
316
317
318/**
319 * HAPI/FHIR <b>Media</b> Resource
320 * (infrastructure.structure)
321 *
322 * <p>
323 * <b>Definition:</b>
324 * A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference
325 * </p> 
326 *
327 * <p>
328 * <b>Requirements:</b>
329 * 
330 * </p> 
331 *
332 * <p>
333 * <b>Profile Definition:</b>
334 * <a href="http://hl7.org/fhir/profiles/Media">http://hl7.org/fhir/profiles/Media</a> 
335 * </p>
336 *
337 */
338@ResourceDef(name="Media", profile="http://hl7.org/fhir/profiles/Media", id="media")
339public class Media extends ca.uhn.fhir.model.dstu2.resource.BaseResource
340    implements  IResource     {
341
342        /**
343         * Search parameter constant for <b>type</b>
344         * <p>
345         * Description: <b></b><br>
346         * Type: <b>token</b><br>
347         * Path: <b>Media.type</b><br>
348         * </p>
349         */
350        @SearchParamDefinition(name="type", path="Media.type", description="", type="token"  )
351        public static final String SP_TYPE = "type";
352
353        /**
354         * <b>Fluent Client</b> search parameter constant for <b>type</b>
355         * <p>
356         * Description: <b></b><br>
357         * Type: <b>token</b><br>
358         * Path: <b>Media.type</b><br>
359         * </p>
360         */
361        public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
362
363        /**
364         * Search parameter constant for <b>subtype</b>
365         * <p>
366         * Description: <b></b><br>
367         * Type: <b>token</b><br>
368         * Path: <b>Media.subtype</b><br>
369         * </p>
370         */
371        @SearchParamDefinition(name="subtype", path="Media.subtype", description="", type="token"  )
372        public static final String SP_SUBTYPE = "subtype";
373
374        /**
375         * <b>Fluent Client</b> search parameter constant for <b>subtype</b>
376         * <p>
377         * Description: <b></b><br>
378         * Type: <b>token</b><br>
379         * Path: <b>Media.subtype</b><br>
380         * </p>
381         */
382        public static final TokenClientParam SUBTYPE = new TokenClientParam(SP_SUBTYPE);
383
384        /**
385         * Search parameter constant for <b>identifier</b>
386         * <p>
387         * Description: <b></b><br>
388         * Type: <b>token</b><br>
389         * Path: <b>Media.identifier</b><br>
390         * </p>
391         */
392        @SearchParamDefinition(name="identifier", path="Media.identifier", description="", type="token"  )
393        public static final String SP_IDENTIFIER = "identifier";
394
395        /**
396         * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
397         * <p>
398         * Description: <b></b><br>
399         * Type: <b>token</b><br>
400         * Path: <b>Media.identifier</b><br>
401         * </p>
402         */
403        public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
404
405        /**
406         * Search parameter constant for <b>created</b>
407         * <p>
408         * Description: <b></b><br>
409         * Type: <b>date</b><br>
410         * Path: <b>Media.content.creation</b><br>
411         * </p>
412         */
413        @SearchParamDefinition(name="created", path="Media.content.creation", description="", type="date"  )
414        public static final String SP_CREATED = "created";
415
416        /**
417         * <b>Fluent Client</b> search parameter constant for <b>created</b>
418         * <p>
419         * Description: <b></b><br>
420         * Type: <b>date</b><br>
421         * Path: <b>Media.content.creation</b><br>
422         * </p>
423         */
424        public static final DateClientParam CREATED = new DateClientParam(SP_CREATED);
425
426        /**
427         * Search parameter constant for <b>subject</b>
428         * <p>
429         * Description: <b></b><br>
430         * Type: <b>reference</b><br>
431         * Path: <b>Media.subject</b><br>
432         * </p>
433         */
434        @SearchParamDefinition(name="subject", path="Media.subject", description="", type="reference"  )
435        public static final String SP_SUBJECT = "subject";
436
437        /**
438         * <b>Fluent Client</b> search parameter constant for <b>subject</b>
439         * <p>
440         * Description: <b></b><br>
441         * Type: <b>reference</b><br>
442         * Path: <b>Media.subject</b><br>
443         * </p>
444         */
445        public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT);
446
447        /**
448         * Search parameter constant for <b>operator</b>
449         * <p>
450         * Description: <b></b><br>
451         * Type: <b>reference</b><br>
452         * Path: <b>Media.operator</b><br>
453         * </p>
454         */
455        @SearchParamDefinition(name="operator", path="Media.operator", description="", type="reference"  )
456        public static final String SP_OPERATOR = "operator";
457
458        /**
459         * <b>Fluent Client</b> search parameter constant for <b>operator</b>
460         * <p>
461         * Description: <b></b><br>
462         * Type: <b>reference</b><br>
463         * Path: <b>Media.operator</b><br>
464         * </p>
465         */
466        public static final ReferenceClientParam OPERATOR = new ReferenceClientParam(SP_OPERATOR);
467
468        /**
469         * Search parameter constant for <b>view</b>
470         * <p>
471         * Description: <b></b><br>
472         * Type: <b>token</b><br>
473         * Path: <b>Media.view</b><br>
474         * </p>
475         */
476        @SearchParamDefinition(name="view", path="Media.view", description="", type="token"  )
477        public static final String SP_VIEW = "view";
478
479        /**
480         * <b>Fluent Client</b> search parameter constant for <b>view</b>
481         * <p>
482         * Description: <b></b><br>
483         * Type: <b>token</b><br>
484         * Path: <b>Media.view</b><br>
485         * </p>
486         */
487        public static final TokenClientParam VIEW = new TokenClientParam(SP_VIEW);
488
489        /**
490         * Search parameter constant for <b>patient</b>
491         * <p>
492         * Description: <b></b><br>
493         * Type: <b>reference</b><br>
494         * Path: <b>Media.subject</b><br>
495         * </p>
496         */
497        @SearchParamDefinition(name="patient", path="Media.subject", description="", type="reference"  )
498        public static final String SP_PATIENT = "patient";
499
500        /**
501         * <b>Fluent Client</b> search parameter constant for <b>patient</b>
502         * <p>
503         * Description: <b></b><br>
504         * Type: <b>reference</b><br>
505         * Path: <b>Media.subject</b><br>
506         * </p>
507         */
508        public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT);
509
510
511        /**
512         * Constant for fluent queries to be used to add include statements. Specifies
513         * the path value of "<b>Media:operator</b>".
514         */
515        public static final Include INCLUDE_OPERATOR = new Include("Media:operator");
516
517        /**
518         * Constant for fluent queries to be used to add include statements. Specifies
519         * the path value of "<b>Media:patient</b>".
520         */
521        public static final Include INCLUDE_PATIENT = new Include("Media:patient");
522
523        /**
524         * Constant for fluent queries to be used to add include statements. Specifies
525         * the path value of "<b>Media:subject</b>".
526         */
527        public static final Include INCLUDE_SUBJECT = new Include("Media:subject");
528
529
530        @Child(name="type", type=CodeDt.class, order=0, min=1, max=1, summary=true, modifier=false)     
531        @Description(
532                shortDefinition="class",
533                formalDefinition="Whether the media is a photo (still image), an audio recording, or a video recording"
534        )
535        private BoundCodeDt<DigitalMediaTypeEnum> myType;
536        
537        @Child(name="subtype", type=CodeableConceptDt.class, order=1, min=0, max=1, summary=true, modifier=false)       
538        @Description(
539                shortDefinition="class",
540                formalDefinition="Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality"
541        )
542        private CodeableConceptDt mySubtype;
543        
544        @Child(name="identifier", type=IdentifierDt.class, order=2, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)       
545        @Description(
546                shortDefinition="id",
547                formalDefinition="Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers"
548        )
549        private java.util.List<IdentifierDt> myIdentifier;
550        
551        @Child(name="subject", order=3, min=0, max=1, summary=true, modifier=false, type={
552                ca.uhn.fhir.model.dstu2.resource.Patient.class,                 ca.uhn.fhir.model.dstu2.resource.Practitioner.class,            ca.uhn.fhir.model.dstu2.resource.Group.class,           ca.uhn.fhir.model.dstu2.resource.Device.class,          ca.uhn.fhir.model.dstu2.resource.Specimen.class })
553        @Description(
554                shortDefinition="who.focus",
555                formalDefinition="Who/What this Media is a record of"
556        )
557        private ResourceReferenceDt mySubject;
558        
559        @Child(name="operator", order=4, min=0, max=1, summary=true, modifier=false, type={
560                ca.uhn.fhir.model.dstu2.resource.Practitioner.class     })
561        @Description(
562                shortDefinition="who.actor",
563                formalDefinition="The person who administered the collection of the image"
564        )
565        private ResourceReferenceDt myOperator;
566        
567        @Child(name="view", type=CodeableConceptDt.class, order=5, min=0, max=1, summary=true, modifier=false)  
568        @Description(
569                shortDefinition="class",
570                formalDefinition="The name of the imaging view e.g. Lateral or Antero-posterior (AP)."
571        )
572        private CodeableConceptDt myView;
573        
574        @Child(name="deviceName", type=StringDt.class, order=6, min=0, max=1, summary=true, modifier=false)     
575        @Description(
576                shortDefinition="",
577                formalDefinition="The name of the device / manufacturer of the device  that was used to make the recording"
578        )
579        private StringDt myDeviceName;
580        
581        @Child(name="height", type=PositiveIntDt.class, order=7, min=0, max=1, summary=true, modifier=false)    
582        @Description(
583                shortDefinition="",
584                formalDefinition="Height of the image in pixels (photo/video)"
585        )
586        private PositiveIntDt myHeight;
587        
588        @Child(name="width", type=PositiveIntDt.class, order=8, min=0, max=1, summary=true, modifier=false)     
589        @Description(
590                shortDefinition="",
591                formalDefinition="Width of the image in pixels (photo/video)"
592        )
593        private PositiveIntDt myWidth;
594        
595        @Child(name="frames", type=PositiveIntDt.class, order=9, min=0, max=1, summary=true, modifier=false)    
596        @Description(
597                shortDefinition="",
598                formalDefinition="The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required"
599        )
600        private PositiveIntDt myFrames;
601        
602        @Child(name="duration", type=UnsignedIntDt.class, order=10, min=0, max=1, summary=true, modifier=false) 
603        @Description(
604                shortDefinition="",
605                formalDefinition="The duration of the recording in seconds - for audio and video"
606        )
607        private UnsignedIntDt myDuration;
608        
609        @Child(name="content", type=AttachmentDt.class, order=11, min=1, max=1, summary=false, modifier=false)  
610        @Description(
611                shortDefinition="",
612                formalDefinition="The actual content of the media - inline or by direct reference to the media source file"
613        )
614        private AttachmentDt myContent;
615        
616
617        @Override
618        public boolean isEmpty() {
619                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myType,  mySubtype,  myIdentifier,  mySubject,  myOperator,  myView,  myDeviceName,  myHeight,  myWidth,  myFrames,  myDuration,  myContent);
620        }
621        
622        @Override
623        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
624                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, mySubtype, myIdentifier, mySubject, myOperator, myView, myDeviceName, myHeight, myWidth, myFrames, myDuration, myContent);
625        }
626
627        /**
628         * Gets the value(s) for <b>type</b> (class).
629         * creating it if it does
630         * not exist. Will not return <code>null</code>.
631         *
632     * <p>
633     * <b>Definition:</b>
634     * Whether the media is a photo (still image), an audio recording, or a video recording
635     * </p> 
636         */
637        public BoundCodeDt<DigitalMediaTypeEnum> getTypeElement() {  
638                if (myType == null) {
639                        myType = new BoundCodeDt<DigitalMediaTypeEnum>(DigitalMediaTypeEnum.VALUESET_BINDER);
640                }
641                return myType;
642        }
643
644        
645        /**
646         * Gets the value(s) for <b>type</b> (class).
647         * creating it if it does
648         * not exist. Will not return <code>null</code>.
649         *
650     * <p>
651     * <b>Definition:</b>
652     * Whether the media is a photo (still image), an audio recording, or a video recording
653     * </p> 
654         */
655        public String getType() {  
656                return getTypeElement().getValue();
657        }
658
659        /**
660         * Sets the value(s) for <b>type</b> (class)
661         *
662     * <p>
663     * <b>Definition:</b>
664     * Whether the media is a photo (still image), an audio recording, or a video recording
665     * </p> 
666         */
667        public Media setType(BoundCodeDt<DigitalMediaTypeEnum> theValue) {
668                myType = theValue;
669                return this;
670        }
671        
672        
673
674        /**
675         * Sets the value(s) for <b>type</b> (class)
676         *
677     * <p>
678     * <b>Definition:</b>
679     * Whether the media is a photo (still image), an audio recording, or a video recording
680     * </p> 
681         */
682        public Media setType(DigitalMediaTypeEnum theValue) {
683                setType(new BoundCodeDt<DigitalMediaTypeEnum>(DigitalMediaTypeEnum.VALUESET_BINDER, theValue));
684                
685/*
686                getTypeElement().setValueAsEnum(theValue);
687*/
688                return this;
689        }
690
691  
692        /**
693         * Gets the value(s) for <b>subtype</b> (class).
694         * creating it if it does
695         * not exist. Will not return <code>null</code>.
696         *
697     * <p>
698     * <b>Definition:</b>
699     * Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality
700     * </p> 
701         */
702        public CodeableConceptDt getSubtype() {  
703                if (mySubtype == null) {
704                        mySubtype = new CodeableConceptDt();
705                }
706                return mySubtype;
707        }
708
709        /**
710         * Sets the value(s) for <b>subtype</b> (class)
711         *
712     * <p>
713     * <b>Definition:</b>
714     * Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality
715     * </p> 
716         */
717        public Media setSubtype(CodeableConceptDt theValue) {
718                mySubtype = theValue;
719                return this;
720        }
721        
722        
723
724  
725        /**
726         * Gets the value(s) for <b>identifier</b> (id).
727         * creating it if it does
728         * not exist. Will not return <code>null</code>.
729         *
730     * <p>
731     * <b>Definition:</b>
732     * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers
733     * </p> 
734         */
735        public java.util.List<IdentifierDt> getIdentifier() {  
736                if (myIdentifier == null) {
737                        myIdentifier = new java.util.ArrayList<IdentifierDt>();
738                }
739                return myIdentifier;
740        }
741
742        /**
743         * Sets the value(s) for <b>identifier</b> (id)
744         *
745     * <p>
746     * <b>Definition:</b>
747     * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers
748     * </p> 
749         */
750        public Media setIdentifier(java.util.List<IdentifierDt> theValue) {
751                myIdentifier = theValue;
752                return this;
753        }
754        
755        
756
757        /**
758         * Adds and returns a new value for <b>identifier</b> (id)
759         *
760     * <p>
761     * <b>Definition:</b>
762     * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers
763     * </p> 
764         */
765        public IdentifierDt addIdentifier() {
766                IdentifierDt newType = new IdentifierDt();
767                getIdentifier().add(newType);
768                return newType; 
769        }
770
771        /**
772         * Adds a given new value for <b>identifier</b> (id)
773         *
774         * <p>
775         * <b>Definition:</b>
776         * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers
777         * </p>
778         * @param theValue The identifier to add (must not be <code>null</code>)
779         */
780        public Media addIdentifier(IdentifierDt theValue) {
781                if (theValue == null) {
782                        throw new NullPointerException("theValue must not be null");
783                }
784                getIdentifier().add(theValue);
785                return this;
786        }
787
788        /**
789         * Gets the first repetition for <b>identifier</b> (id),
790         * creating it if it does not already exist.
791         *
792     * <p>
793     * <b>Definition:</b>
794     * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers
795     * </p> 
796         */
797        public IdentifierDt getIdentifierFirstRep() {
798                if (getIdentifier().isEmpty()) {
799                        return addIdentifier();
800                }
801                return getIdentifier().get(0); 
802        }
803  
804        /**
805         * Gets the value(s) for <b>subject</b> (who.focus).
806         * creating it if it does
807         * not exist. Will not return <code>null</code>.
808         *
809     * <p>
810     * <b>Definition:</b>
811     * Who/What this Media is a record of
812     * </p> 
813         */
814        public ResourceReferenceDt getSubject() {  
815                if (mySubject == null) {
816                        mySubject = new ResourceReferenceDt();
817                }
818                return mySubject;
819        }
820
821        /**
822         * Sets the value(s) for <b>subject</b> (who.focus)
823         *
824     * <p>
825     * <b>Definition:</b>
826     * Who/What this Media is a record of
827     * </p> 
828         */
829        public Media setSubject(ResourceReferenceDt theValue) {
830                mySubject = theValue;
831                return this;
832        }
833        
834        
835
836  
837        /**
838         * Gets the value(s) for <b>operator</b> (who.actor).
839         * creating it if it does
840         * not exist. Will not return <code>null</code>.
841         *
842     * <p>
843     * <b>Definition:</b>
844     * The person who administered the collection of the image
845     * </p> 
846         */
847        public ResourceReferenceDt getOperator() {  
848                if (myOperator == null) {
849                        myOperator = new ResourceReferenceDt();
850                }
851                return myOperator;
852        }
853
854        /**
855         * Sets the value(s) for <b>operator</b> (who.actor)
856         *
857     * <p>
858     * <b>Definition:</b>
859     * The person who administered the collection of the image
860     * </p> 
861         */
862        public Media setOperator(ResourceReferenceDt theValue) {
863                myOperator = theValue;
864                return this;
865        }
866        
867        
868
869  
870        /**
871         * Gets the value(s) for <b>view</b> (class).
872         * creating it if it does
873         * not exist. Will not return <code>null</code>.
874         *
875     * <p>
876     * <b>Definition:</b>
877     * The name of the imaging view e.g. Lateral or Antero-posterior (AP).
878     * </p> 
879         */
880        public CodeableConceptDt getView() {  
881                if (myView == null) {
882                        myView = new CodeableConceptDt();
883                }
884                return myView;
885        }
886
887        /**
888         * Sets the value(s) for <b>view</b> (class)
889         *
890     * <p>
891     * <b>Definition:</b>
892     * The name of the imaging view e.g. Lateral or Antero-posterior (AP).
893     * </p> 
894         */
895        public Media setView(CodeableConceptDt theValue) {
896                myView = theValue;
897                return this;
898        }
899        
900        
901
902  
903        /**
904         * Gets the value(s) for <b>deviceName</b> ().
905         * creating it if it does
906         * not exist. Will not return <code>null</code>.
907         *
908     * <p>
909     * <b>Definition:</b>
910     * The name of the device / manufacturer of the device  that was used to make the recording
911     * </p> 
912         */
913        public StringDt getDeviceNameElement() {  
914                if (myDeviceName == null) {
915                        myDeviceName = new StringDt();
916                }
917                return myDeviceName;
918        }
919
920        
921        /**
922         * Gets the value(s) for <b>deviceName</b> ().
923         * creating it if it does
924         * not exist. Will not return <code>null</code>.
925         *
926     * <p>
927     * <b>Definition:</b>
928     * The name of the device / manufacturer of the device  that was used to make the recording
929     * </p> 
930         */
931        public String getDeviceName() {  
932                return getDeviceNameElement().getValue();
933        }
934
935        /**
936         * Sets the value(s) for <b>deviceName</b> ()
937         *
938     * <p>
939     * <b>Definition:</b>
940     * The name of the device / manufacturer of the device  that was used to make the recording
941     * </p> 
942         */
943        public Media setDeviceName(StringDt theValue) {
944                myDeviceName = theValue;
945                return this;
946        }
947        
948        
949
950        /**
951         * Sets the value for <b>deviceName</b> ()
952         *
953     * <p>
954     * <b>Definition:</b>
955     * The name of the device / manufacturer of the device  that was used to make the recording
956     * </p> 
957         */
958        public Media setDeviceName( String theString) {
959                myDeviceName = new StringDt(theString); 
960                return this; 
961        }
962
963 
964        /**
965         * Gets the value(s) for <b>height</b> ().
966         * creating it if it does
967         * not exist. Will not return <code>null</code>.
968         *
969     * <p>
970     * <b>Definition:</b>
971     * Height of the image in pixels (photo/video)
972     * </p> 
973         */
974        public PositiveIntDt getHeightElement() {  
975                if (myHeight == null) {
976                        myHeight = new PositiveIntDt();
977                }
978                return myHeight;
979        }
980
981        
982        /**
983         * Gets the value(s) for <b>height</b> ().
984         * creating it if it does
985         * not exist. Will not return <code>null</code>.
986         *
987     * <p>
988     * <b>Definition:</b>
989     * Height of the image in pixels (photo/video)
990     * </p> 
991         */
992        public Integer getHeight() {  
993                return getHeightElement().getValue();
994        }
995
996        /**
997         * Sets the value(s) for <b>height</b> ()
998         *
999     * <p>
1000     * <b>Definition:</b>
1001     * Height of the image in pixels (photo/video)
1002     * </p> 
1003         */
1004        public Media setHeight(PositiveIntDt theValue) {
1005                myHeight = theValue;
1006                return this;
1007        }
1008        
1009        
1010
1011        /**
1012         * Sets the value for <b>height</b> ()
1013         *
1014     * <p>
1015     * <b>Definition:</b>
1016     * Height of the image in pixels (photo/video)
1017     * </p> 
1018         */
1019        public Media setHeight( int theInteger) {
1020                myHeight = new PositiveIntDt(theInteger); 
1021                return this; 
1022        }
1023
1024 
1025        /**
1026         * Gets the value(s) for <b>width</b> ().
1027         * creating it if it does
1028         * not exist. Will not return <code>null</code>.
1029         *
1030     * <p>
1031     * <b>Definition:</b>
1032     * Width of the image in pixels (photo/video)
1033     * </p> 
1034         */
1035        public PositiveIntDt getWidthElement() {  
1036                if (myWidth == null) {
1037                        myWidth = new PositiveIntDt();
1038                }
1039                return myWidth;
1040        }
1041
1042        
1043        /**
1044         * Gets the value(s) for <b>width</b> ().
1045         * creating it if it does
1046         * not exist. Will not return <code>null</code>.
1047         *
1048     * <p>
1049     * <b>Definition:</b>
1050     * Width of the image in pixels (photo/video)
1051     * </p> 
1052         */
1053        public Integer getWidth() {  
1054                return getWidthElement().getValue();
1055        }
1056
1057        /**
1058         * Sets the value(s) for <b>width</b> ()
1059         *
1060     * <p>
1061     * <b>Definition:</b>
1062     * Width of the image in pixels (photo/video)
1063     * </p> 
1064         */
1065        public Media setWidth(PositiveIntDt theValue) {
1066                myWidth = theValue;
1067                return this;
1068        }
1069        
1070        
1071
1072        /**
1073         * Sets the value for <b>width</b> ()
1074         *
1075     * <p>
1076     * <b>Definition:</b>
1077     * Width of the image in pixels (photo/video)
1078     * </p> 
1079         */
1080        public Media setWidth( int theInteger) {
1081                myWidth = new PositiveIntDt(theInteger); 
1082                return this; 
1083        }
1084
1085 
1086        /**
1087         * Gets the value(s) for <b>frames</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 number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required
1094     * </p> 
1095         */
1096        public PositiveIntDt getFramesElement() {  
1097                if (myFrames == null) {
1098                        myFrames = new PositiveIntDt();
1099                }
1100                return myFrames;
1101        }
1102
1103        
1104        /**
1105         * Gets the value(s) for <b>frames</b> ().
1106         * creating it if it does
1107         * not exist. Will not return <code>null</code>.
1108         *
1109     * <p>
1110     * <b>Definition:</b>
1111     * The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required
1112     * </p> 
1113         */
1114        public Integer getFrames() {  
1115                return getFramesElement().getValue();
1116        }
1117
1118        /**
1119         * Sets the value(s) for <b>frames</b> ()
1120         *
1121     * <p>
1122     * <b>Definition:</b>
1123     * The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required
1124     * </p> 
1125         */
1126        public Media setFrames(PositiveIntDt theValue) {
1127                myFrames = theValue;
1128                return this;
1129        }
1130        
1131        
1132
1133        /**
1134         * Sets the value for <b>frames</b> ()
1135         *
1136     * <p>
1137     * <b>Definition:</b>
1138     * The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required
1139     * </p> 
1140         */
1141        public Media setFrames( int theInteger) {
1142                myFrames = new PositiveIntDt(theInteger); 
1143                return this; 
1144        }
1145
1146 
1147        /**
1148         * Gets the value(s) for <b>duration</b> ().
1149         * creating it if it does
1150         * not exist. Will not return <code>null</code>.
1151         *
1152     * <p>
1153     * <b>Definition:</b>
1154     * The duration of the recording in seconds - for audio and video
1155     * </p> 
1156         */
1157        public UnsignedIntDt getDurationElement() {  
1158                if (myDuration == null) {
1159                        myDuration = new UnsignedIntDt();
1160                }
1161                return myDuration;
1162        }
1163
1164        
1165        /**
1166         * Gets the value(s) for <b>duration</b> ().
1167         * creating it if it does
1168         * not exist. Will not return <code>null</code>.
1169         *
1170     * <p>
1171     * <b>Definition:</b>
1172     * The duration of the recording in seconds - for audio and video
1173     * </p> 
1174         */
1175        public Integer getDuration() {  
1176                return getDurationElement().getValue();
1177        }
1178
1179        /**
1180         * Sets the value(s) for <b>duration</b> ()
1181         *
1182     * <p>
1183     * <b>Definition:</b>
1184     * The duration of the recording in seconds - for audio and video
1185     * </p> 
1186         */
1187        public Media setDuration(UnsignedIntDt theValue) {
1188                myDuration = theValue;
1189                return this;
1190        }
1191        
1192        
1193
1194        /**
1195         * Sets the value for <b>duration</b> ()
1196         *
1197     * <p>
1198     * <b>Definition:</b>
1199     * The duration of the recording in seconds - for audio and video
1200     * </p> 
1201         */
1202        public Media setDuration( int theInteger) {
1203                myDuration = new UnsignedIntDt(theInteger); 
1204                return this; 
1205        }
1206
1207 
1208        /**
1209         * Gets the value(s) for <b>content</b> ().
1210         * creating it if it does
1211         * not exist. Will not return <code>null</code>.
1212         *
1213     * <p>
1214     * <b>Definition:</b>
1215     * The actual content of the media - inline or by direct reference to the media source file
1216     * </p> 
1217         */
1218        public AttachmentDt getContent() {  
1219                if (myContent == null) {
1220                        myContent = new AttachmentDt();
1221                }
1222                return myContent;
1223        }
1224
1225        /**
1226         * Sets the value(s) for <b>content</b> ()
1227         *
1228     * <p>
1229     * <b>Definition:</b>
1230     * The actual content of the media - inline or by direct reference to the media source file
1231     * </p> 
1232         */
1233        public Media setContent(AttachmentDt theValue) {
1234                myContent = theValue;
1235                return this;
1236        }
1237        
1238        
1239
1240  
1241
1242
1243    @Override
1244    public String getResourceName() {
1245        return "Media";
1246    }
1247    
1248    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
1249        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
1250    }
1251
1252
1253}