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>Media</b> Resource 282 * (infrastructure.structure) 283 * 284 * <p> 285 * <b>Definition:</b> 286 * A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference 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/Media">http://hl7.org/fhir/profiles/Media</a> 297 * </p> 298 * 299 */ 300@ResourceDef(name="Media", profile="http://hl7.org/fhir/profiles/Media", id="media") 301public class Media extends ca.uhn.fhir.model.dstu2.resource.BaseResource 302 implements IResource { 303 304 /** 305 * Search parameter constant for <b>type</b> 306 * <p> 307 * Description: <b></b><br> 308 * Type: <b>token</b><br> 309 * Path: <b>Media.type</b><br> 310 * </p> 311 */ 312 @SearchParamDefinition(name="type", path="Media.type", description="", type="token" ) 313 public static final String SP_TYPE = "type"; 314 315 /** 316 * <b>Fluent Client</b> search parameter constant for <b>type</b> 317 * <p> 318 * Description: <b></b><br> 319 * Type: <b>token</b><br> 320 * Path: <b>Media.type</b><br> 321 * </p> 322 */ 323 public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); 324 325 /** 326 * Search parameter constant for <b>subtype</b> 327 * <p> 328 * Description: <b></b><br> 329 * Type: <b>token</b><br> 330 * Path: <b>Media.subtype</b><br> 331 * </p> 332 */ 333 @SearchParamDefinition(name="subtype", path="Media.subtype", description="", type="token" ) 334 public static final String SP_SUBTYPE = "subtype"; 335 336 /** 337 * <b>Fluent Client</b> search parameter constant for <b>subtype</b> 338 * <p> 339 * Description: <b></b><br> 340 * Type: <b>token</b><br> 341 * Path: <b>Media.subtype</b><br> 342 * </p> 343 */ 344 public static final TokenClientParam SUBTYPE = new TokenClientParam(SP_SUBTYPE); 345 346 /** 347 * Search parameter constant for <b>identifier</b> 348 * <p> 349 * Description: <b></b><br> 350 * Type: <b>token</b><br> 351 * Path: <b>Media.identifier</b><br> 352 * </p> 353 */ 354 @SearchParamDefinition(name="identifier", path="Media.identifier", description="", type="token" ) 355 public static final String SP_IDENTIFIER = "identifier"; 356 357 /** 358 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 359 * <p> 360 * Description: <b></b><br> 361 * Type: <b>token</b><br> 362 * Path: <b>Media.identifier</b><br> 363 * </p> 364 */ 365 public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); 366 367 /** 368 * Search parameter constant for <b>created</b> 369 * <p> 370 * Description: <b></b><br> 371 * Type: <b>date</b><br> 372 * Path: <b>Media.content.creation</b><br> 373 * </p> 374 */ 375 @SearchParamDefinition(name="created", path="Media.content.creation", description="", type="date" ) 376 public static final String SP_CREATED = "created"; 377 378 /** 379 * <b>Fluent Client</b> search parameter constant for <b>created</b> 380 * <p> 381 * Description: <b></b><br> 382 * Type: <b>date</b><br> 383 * Path: <b>Media.content.creation</b><br> 384 * </p> 385 */ 386 public static final DateClientParam CREATED = new DateClientParam(SP_CREATED); 387 388 /** 389 * Search parameter constant for <b>subject</b> 390 * <p> 391 * Description: <b></b><br> 392 * Type: <b>reference</b><br> 393 * Path: <b>Media.subject</b><br> 394 * </p> 395 */ 396 @SearchParamDefinition(name="subject", path="Media.subject", description="", type="reference" , providesMembershipIn={ 397 @Compartment(name="Patient") , @Compartment(name="Encounter") , @Compartment(name="RelatedPerson") } 398 ) 399 public static final String SP_SUBJECT = "subject"; 400 401 /** 402 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 403 * <p> 404 * Description: <b></b><br> 405 * Type: <b>reference</b><br> 406 * Path: <b>Media.subject</b><br> 407 * </p> 408 */ 409 public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); 410 411 /** 412 * Search parameter constant for <b>operator</b> 413 * <p> 414 * Description: <b></b><br> 415 * Type: <b>reference</b><br> 416 * Path: <b>Media.operator</b><br> 417 * </p> 418 */ 419 @SearchParamDefinition(name="operator", path="Media.operator", description="", type="reference" , providesMembershipIn={ 420 @Compartment(name="Encounter") } 421 ) 422 public static final String SP_OPERATOR = "operator"; 423 424 /** 425 * <b>Fluent Client</b> search parameter constant for <b>operator</b> 426 * <p> 427 * Description: <b></b><br> 428 * Type: <b>reference</b><br> 429 * Path: <b>Media.operator</b><br> 430 * </p> 431 */ 432 public static final ReferenceClientParam OPERATOR = new ReferenceClientParam(SP_OPERATOR); 433 434 /** 435 * Search parameter constant for <b>view</b> 436 * <p> 437 * Description: <b></b><br> 438 * Type: <b>token</b><br> 439 * Path: <b>Media.view</b><br> 440 * </p> 441 */ 442 @SearchParamDefinition(name="view", path="Media.view", description="", type="token" ) 443 public static final String SP_VIEW = "view"; 444 445 /** 446 * <b>Fluent Client</b> search parameter constant for <b>view</b> 447 * <p> 448 * Description: <b></b><br> 449 * Type: <b>token</b><br> 450 * Path: <b>Media.view</b><br> 451 * </p> 452 */ 453 public static final TokenClientParam VIEW = new TokenClientParam(SP_VIEW); 454 455 /** 456 * Search parameter constant for <b>patient</b> 457 * <p> 458 * Description: <b></b><br> 459 * Type: <b>reference</b><br> 460 * Path: <b>Media.subject</b><br> 461 * </p> 462 */ 463 @SearchParamDefinition(name="patient", path="Media.subject", description="", type="reference" , target={ 464 ca.uhn.fhir.model.dstu2.resource.Patient.class } 465 ) 466 public static final String SP_PATIENT = "patient"; 467 468 /** 469 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 470 * <p> 471 * Description: <b></b><br> 472 * Type: <b>reference</b><br> 473 * Path: <b>Media.subject</b><br> 474 * </p> 475 */ 476 public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); 477 478 479 /** 480 * Constant for fluent queries to be used to add include statements. Specifies 481 * the path value of "<b>Media:operator</b>". 482 */ 483 public static final Include INCLUDE_OPERATOR = new Include("Media:operator"); 484 485 /** 486 * Constant for fluent queries to be used to add include statements. Specifies 487 * the path value of "<b>Media:patient</b>". 488 */ 489 public static final Include INCLUDE_PATIENT = new Include("Media:patient"); 490 491 /** 492 * Constant for fluent queries to be used to add include statements. Specifies 493 * the path value of "<b>Media:subject</b>". 494 */ 495 public static final Include INCLUDE_SUBJECT = new Include("Media:subject"); 496 497 498 @Child(name="type", type=CodeDt.class, order=0, min=1, max=1, summary=true, modifier=false) 499 @Description( 500 shortDefinition="class", 501 formalDefinition="Whether the media is a photo (still image), an audio recording, or a video recording" 502 ) 503 @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/digital-media-type") 504 private BoundCodeDt<DigitalMediaTypeEnum> myType; 505 506 @Child(name="subtype", type=CodeableConceptDt.class, order=1, min=0, max=1, summary=true, modifier=false) 507 @Description( 508 shortDefinition="class", 509 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" 510 ) 511 private CodeableConceptDt mySubtype; 512 513 @Child(name="identifier", type=IdentifierDt.class, order=2, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) 514 @Description( 515 shortDefinition="id", 516 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" 517 ) 518 private java.util.List<IdentifierDt> myIdentifier; 519 520 @Child(name="subject", order=3, min=0, max=1, summary=true, modifier=false, type={ 521 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 }) 522 @Description( 523 shortDefinition="who.focus", 524 formalDefinition="Who/What this Media is a record of" 525 ) 526 private ResourceReferenceDt mySubject; 527 528 @Child(name="operator", order=4, min=0, max=1, summary=true, modifier=false, type={ 529 ca.uhn.fhir.model.dstu2.resource.Practitioner.class }) 530 @Description( 531 shortDefinition="who.actor", 532 formalDefinition="The person who administered the collection of the image" 533 ) 534 private ResourceReferenceDt myOperator; 535 536 @Child(name="view", type=CodeableConceptDt.class, order=5, min=0, max=1, summary=true, modifier=false) 537 @Description( 538 shortDefinition="class", 539 formalDefinition="The name of the imaging view e.g. Lateral or Antero-posterior (AP)." 540 ) 541 private CodeableConceptDt myView; 542 543 @Child(name="deviceName", type=StringDt.class, order=6, min=0, max=1, summary=true, modifier=false) 544 @Description( 545 shortDefinition="", 546 formalDefinition="The name of the device / manufacturer of the device that was used to make the recording" 547 ) 548 private StringDt myDeviceName; 549 550 @Child(name="height", type=PositiveIntDt.class, order=7, min=0, max=1, summary=true, modifier=false) 551 @Description( 552 shortDefinition="", 553 formalDefinition="Height of the image in pixels (photo/video)" 554 ) 555 private PositiveIntDt myHeight; 556 557 @Child(name="width", type=PositiveIntDt.class, order=8, min=0, max=1, summary=true, modifier=false) 558 @Description( 559 shortDefinition="", 560 formalDefinition="Width of the image in pixels (photo/video)" 561 ) 562 private PositiveIntDt myWidth; 563 564 @Child(name="frames", type=PositiveIntDt.class, order=9, min=0, max=1, summary=true, modifier=false) 565 @Description( 566 shortDefinition="", 567 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" 568 ) 569 private PositiveIntDt myFrames; 570 571 @Child(name="duration", type=UnsignedIntDt.class, order=10, min=0, max=1, summary=true, modifier=false) 572 @Description( 573 shortDefinition="", 574 formalDefinition="The duration of the recording in seconds - for audio and video" 575 ) 576 private UnsignedIntDt myDuration; 577 578 @Child(name="content", type=AttachmentDt.class, order=11, min=1, max=1, summary=false, modifier=false) 579 @Description( 580 shortDefinition="", 581 formalDefinition="The actual content of the media - inline or by direct reference to the media source file" 582 ) 583 private AttachmentDt myContent; 584 585 586 @Override 587 public boolean isEmpty() { 588 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, mySubtype, myIdentifier, mySubject, myOperator, myView, myDeviceName, myHeight, myWidth, myFrames, myDuration, myContent); 589 } 590 591 @Override 592 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 593 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, mySubtype, myIdentifier, mySubject, myOperator, myView, myDeviceName, myHeight, myWidth, myFrames, myDuration, myContent); 594 } 595 596 /** 597 * Gets the value(s) for <b>type</b> (class). 598 * creating it if it does 599 * not exist. Will not return <code>null</code>. 600 * 601 * <p> 602 * <b>Definition:</b> 603 * Whether the media is a photo (still image), an audio recording, or a video recording 604 * </p> 605 */ 606 public BoundCodeDt<DigitalMediaTypeEnum> getTypeElement() { 607 if (myType == null) { 608 myType = new BoundCodeDt<DigitalMediaTypeEnum>(DigitalMediaTypeEnum.VALUESET_BINDER); 609 } 610 return myType; 611 } 612 613 614 /** 615 * Gets the value(s) for <b>type</b> (class). 616 * creating it if it does 617 * not exist. This method may return <code>null</code>. 618 * 619 * <p> 620 * <b>Definition:</b> 621 * Whether the media is a photo (still image), an audio recording, or a video recording 622 * </p> 623 */ 624 public String getType() { 625 return getTypeElement().getValue(); 626 } 627 628 /** 629 * Sets the value(s) for <b>type</b> (class) 630 * 631 * <p> 632 * <b>Definition:</b> 633 * Whether the media is a photo (still image), an audio recording, or a video recording 634 * </p> 635 */ 636 public Media setType(BoundCodeDt<DigitalMediaTypeEnum> theValue) { 637 myType = theValue; 638 return this; 639 } 640 641 642 643 /** 644 * Sets the value(s) for <b>type</b> (class) 645 * 646 * <p> 647 * <b>Definition:</b> 648 * Whether the media is a photo (still image), an audio recording, or a video recording 649 * </p> 650 */ 651 public Media setType(DigitalMediaTypeEnum theValue) { 652 setType(new BoundCodeDt<DigitalMediaTypeEnum>(DigitalMediaTypeEnum.VALUESET_BINDER, theValue)); 653 654/* 655 getTypeElement().setValueAsEnum(theValue); 656*/ 657 return this; 658 } 659 660 661 /** 662 * Gets the value(s) for <b>subtype</b> (class). 663 * creating it if it does 664 * not exist. Will not return <code>null</code>. 665 * 666 * <p> 667 * <b>Definition:</b> 668 * 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 669 * </p> 670 */ 671 public CodeableConceptDt getSubtype() { 672 if (mySubtype == null) { 673 mySubtype = new CodeableConceptDt(); 674 } 675 return mySubtype; 676 } 677 678 /** 679 * Sets the value(s) for <b>subtype</b> (class) 680 * 681 * <p> 682 * <b>Definition:</b> 683 * 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 684 * </p> 685 */ 686 public Media setSubtype(CodeableConceptDt theValue) { 687 mySubtype = theValue; 688 return this; 689 } 690 691 692 693 694 /** 695 * Gets the value(s) for <b>identifier</b> (id). 696 * creating it if it does 697 * not exist. Will not return <code>null</code>. 698 * 699 * <p> 700 * <b>Definition:</b> 701 * 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 702 * </p> 703 */ 704 public java.util.List<IdentifierDt> getIdentifier() { 705 if (myIdentifier == null) { 706 myIdentifier = new java.util.ArrayList<IdentifierDt>(); 707 } 708 return myIdentifier; 709 } 710 711 /** 712 * Sets the value(s) for <b>identifier</b> (id) 713 * 714 * <p> 715 * <b>Definition:</b> 716 * 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 717 * </p> 718 */ 719 public Media setIdentifier(java.util.List<IdentifierDt> theValue) { 720 myIdentifier = theValue; 721 return this; 722 } 723 724 725 726 /** 727 * Adds and returns a new value for <b>identifier</b> (id) 728 * 729 * <p> 730 * <b>Definition:</b> 731 * 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 732 * </p> 733 */ 734 public IdentifierDt addIdentifier() { 735 IdentifierDt newType = new IdentifierDt(); 736 getIdentifier().add(newType); 737 return newType; 738 } 739 740 /** 741 * Adds a given new value for <b>identifier</b> (id) 742 * 743 * <p> 744 * <b>Definition:</b> 745 * 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 746 * </p> 747 * @param theValue The identifier to add (must not be <code>null</code>) 748 */ 749 public Media addIdentifier(IdentifierDt theValue) { 750 if (theValue == null) { 751 throw new NullPointerException("theValue must not be null"); 752 } 753 getIdentifier().add(theValue); 754 return this; 755 } 756 757 /** 758 * Gets the first repetition for <b>identifier</b> (id), 759 * creating it if it does not already exist. 760 * 761 * <p> 762 * <b>Definition:</b> 763 * 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 764 * </p> 765 */ 766 public IdentifierDt getIdentifierFirstRep() { 767 if (getIdentifier().isEmpty()) { 768 return addIdentifier(); 769 } 770 return getIdentifier().get(0); 771 } 772 773 /** 774 * Gets the value(s) for <b>subject</b> (who.focus). 775 * creating it if it does 776 * not exist. Will not return <code>null</code>. 777 * 778 * <p> 779 * <b>Definition:</b> 780 * Who/What this Media is a record of 781 * </p> 782 */ 783 public ResourceReferenceDt getSubject() { 784 if (mySubject == null) { 785 mySubject = new ResourceReferenceDt(); 786 } 787 return mySubject; 788 } 789 790 /** 791 * Sets the value(s) for <b>subject</b> (who.focus) 792 * 793 * <p> 794 * <b>Definition:</b> 795 * Who/What this Media is a record of 796 * </p> 797 */ 798 public Media setSubject(ResourceReferenceDt theValue) { 799 mySubject = theValue; 800 return this; 801 } 802 803 804 805 806 /** 807 * Gets the value(s) for <b>operator</b> (who.actor). 808 * creating it if it does 809 * not exist. Will not return <code>null</code>. 810 * 811 * <p> 812 * <b>Definition:</b> 813 * The person who administered the collection of the image 814 * </p> 815 */ 816 public ResourceReferenceDt getOperator() { 817 if (myOperator == null) { 818 myOperator = new ResourceReferenceDt(); 819 } 820 return myOperator; 821 } 822 823 /** 824 * Sets the value(s) for <b>operator</b> (who.actor) 825 * 826 * <p> 827 * <b>Definition:</b> 828 * The person who administered the collection of the image 829 * </p> 830 */ 831 public Media setOperator(ResourceReferenceDt theValue) { 832 myOperator = theValue; 833 return this; 834 } 835 836 837 838 839 /** 840 * Gets the value(s) for <b>view</b> (class). 841 * creating it if it does 842 * not exist. Will not return <code>null</code>. 843 * 844 * <p> 845 * <b>Definition:</b> 846 * The name of the imaging view e.g. Lateral or Antero-posterior (AP). 847 * </p> 848 */ 849 public CodeableConceptDt getView() { 850 if (myView == null) { 851 myView = new CodeableConceptDt(); 852 } 853 return myView; 854 } 855 856 /** 857 * Sets the value(s) for <b>view</b> (class) 858 * 859 * <p> 860 * <b>Definition:</b> 861 * The name of the imaging view e.g. Lateral or Antero-posterior (AP). 862 * </p> 863 */ 864 public Media setView(CodeableConceptDt theValue) { 865 myView = theValue; 866 return this; 867 } 868 869 870 871 872 /** 873 * Gets the value(s) for <b>deviceName</b> (). 874 * creating it if it does 875 * not exist. Will not return <code>null</code>. 876 * 877 * <p> 878 * <b>Definition:</b> 879 * The name of the device / manufacturer of the device that was used to make the recording 880 * </p> 881 */ 882 public StringDt getDeviceNameElement() { 883 if (myDeviceName == null) { 884 myDeviceName = new StringDt(); 885 } 886 return myDeviceName; 887 } 888 889 890 /** 891 * Gets the value(s) for <b>deviceName</b> (). 892 * creating it if it does 893 * not exist. This method may return <code>null</code>. 894 * 895 * <p> 896 * <b>Definition:</b> 897 * The name of the device / manufacturer of the device that was used to make the recording 898 * </p> 899 */ 900 public String getDeviceName() { 901 return getDeviceNameElement().getValue(); 902 } 903 904 /** 905 * Sets the value(s) for <b>deviceName</b> () 906 * 907 * <p> 908 * <b>Definition:</b> 909 * The name of the device / manufacturer of the device that was used to make the recording 910 * </p> 911 */ 912 public Media setDeviceName(StringDt theValue) { 913 myDeviceName = theValue; 914 return this; 915 } 916 917 918 919 /** 920 * Sets the value for <b>deviceName</b> () 921 * 922 * <p> 923 * <b>Definition:</b> 924 * The name of the device / manufacturer of the device that was used to make the recording 925 * </p> 926 */ 927 public Media setDeviceName( String theString) { 928 myDeviceName = new StringDt(theString); 929 return this; 930 } 931 932 933 /** 934 * Gets the value(s) for <b>height</b> (). 935 * creating it if it does 936 * not exist. Will not return <code>null</code>. 937 * 938 * <p> 939 * <b>Definition:</b> 940 * Height of the image in pixels (photo/video) 941 * </p> 942 */ 943 public PositiveIntDt getHeightElement() { 944 if (myHeight == null) { 945 myHeight = new PositiveIntDt(); 946 } 947 return myHeight; 948 } 949 950 951 /** 952 * Gets the value(s) for <b>height</b> (). 953 * creating it if it does 954 * not exist. This method may return <code>null</code>. 955 * 956 * <p> 957 * <b>Definition:</b> 958 * Height of the image in pixels (photo/video) 959 * </p> 960 */ 961 public Integer getHeight() { 962 return getHeightElement().getValue(); 963 } 964 965 /** 966 * Sets the value(s) for <b>height</b> () 967 * 968 * <p> 969 * <b>Definition:</b> 970 * Height of the image in pixels (photo/video) 971 * </p> 972 */ 973 public Media setHeight(PositiveIntDt theValue) { 974 myHeight = theValue; 975 return this; 976 } 977 978 979 980 /** 981 * Sets the value for <b>height</b> () 982 * 983 * <p> 984 * <b>Definition:</b> 985 * Height of the image in pixels (photo/video) 986 * </p> 987 */ 988 public Media setHeight( int theInteger) { 989 myHeight = new PositiveIntDt(theInteger); 990 return this; 991 } 992 993 994 /** 995 * Gets the value(s) for <b>width</b> (). 996 * creating it if it does 997 * not exist. Will not return <code>null</code>. 998 * 999 * <p> 1000 * <b>Definition:</b> 1001 * Width of the image in pixels (photo/video) 1002 * </p> 1003 */ 1004 public PositiveIntDt getWidthElement() { 1005 if (myWidth == null) { 1006 myWidth = new PositiveIntDt(); 1007 } 1008 return myWidth; 1009 } 1010 1011 1012 /** 1013 * Gets the value(s) for <b>width</b> (). 1014 * creating it if it does 1015 * not exist. This method may return <code>null</code>. 1016 * 1017 * <p> 1018 * <b>Definition:</b> 1019 * Width of the image in pixels (photo/video) 1020 * </p> 1021 */ 1022 public Integer getWidth() { 1023 return getWidthElement().getValue(); 1024 } 1025 1026 /** 1027 * Sets the value(s) for <b>width</b> () 1028 * 1029 * <p> 1030 * <b>Definition:</b> 1031 * Width of the image in pixels (photo/video) 1032 * </p> 1033 */ 1034 public Media setWidth(PositiveIntDt theValue) { 1035 myWidth = theValue; 1036 return this; 1037 } 1038 1039 1040 1041 /** 1042 * Sets the value for <b>width</b> () 1043 * 1044 * <p> 1045 * <b>Definition:</b> 1046 * Width of the image in pixels (photo/video) 1047 * </p> 1048 */ 1049 public Media setWidth( int theInteger) { 1050 myWidth = new PositiveIntDt(theInteger); 1051 return this; 1052 } 1053 1054 1055 /** 1056 * Gets the value(s) for <b>frames</b> (). 1057 * creating it if it does 1058 * not exist. Will not return <code>null</code>. 1059 * 1060 * <p> 1061 * <b>Definition:</b> 1062 * 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 1063 * </p> 1064 */ 1065 public PositiveIntDt getFramesElement() { 1066 if (myFrames == null) { 1067 myFrames = new PositiveIntDt(); 1068 } 1069 return myFrames; 1070 } 1071 1072 1073 /** 1074 * Gets the value(s) for <b>frames</b> (). 1075 * creating it if it does 1076 * not exist. This method may return <code>null</code>. 1077 * 1078 * <p> 1079 * <b>Definition:</b> 1080 * 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 1081 * </p> 1082 */ 1083 public Integer getFrames() { 1084 return getFramesElement().getValue(); 1085 } 1086 1087 /** 1088 * Sets the value(s) for <b>frames</b> () 1089 * 1090 * <p> 1091 * <b>Definition:</b> 1092 * 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 1093 * </p> 1094 */ 1095 public Media setFrames(PositiveIntDt theValue) { 1096 myFrames = theValue; 1097 return this; 1098 } 1099 1100 1101 1102 /** 1103 * Sets the value for <b>frames</b> () 1104 * 1105 * <p> 1106 * <b>Definition:</b> 1107 * 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 1108 * </p> 1109 */ 1110 public Media setFrames( int theInteger) { 1111 myFrames = new PositiveIntDt(theInteger); 1112 return this; 1113 } 1114 1115 1116 /** 1117 * Gets the value(s) for <b>duration</b> (). 1118 * creating it if it does 1119 * not exist. Will not return <code>null</code>. 1120 * 1121 * <p> 1122 * <b>Definition:</b> 1123 * The duration of the recording in seconds - for audio and video 1124 * </p> 1125 */ 1126 public UnsignedIntDt getDurationElement() { 1127 if (myDuration == null) { 1128 myDuration = new UnsignedIntDt(); 1129 } 1130 return myDuration; 1131 } 1132 1133 1134 /** 1135 * Gets the value(s) for <b>duration</b> (). 1136 * creating it if it does 1137 * not exist. This method may return <code>null</code>. 1138 * 1139 * <p> 1140 * <b>Definition:</b> 1141 * The duration of the recording in seconds - for audio and video 1142 * </p> 1143 */ 1144 public Integer getDuration() { 1145 return getDurationElement().getValue(); 1146 } 1147 1148 /** 1149 * Sets the value(s) for <b>duration</b> () 1150 * 1151 * <p> 1152 * <b>Definition:</b> 1153 * The duration of the recording in seconds - for audio and video 1154 * </p> 1155 */ 1156 public Media setDuration(UnsignedIntDt theValue) { 1157 myDuration = theValue; 1158 return this; 1159 } 1160 1161 1162 1163 /** 1164 * Sets the value for <b>duration</b> () 1165 * 1166 * <p> 1167 * <b>Definition:</b> 1168 * The duration of the recording in seconds - for audio and video 1169 * </p> 1170 */ 1171 public Media setDuration( int theInteger) { 1172 myDuration = new UnsignedIntDt(theInteger); 1173 return this; 1174 } 1175 1176 1177 /** 1178 * Gets the value(s) for <b>content</b> (). 1179 * creating it if it does 1180 * not exist. Will not return <code>null</code>. 1181 * 1182 * <p> 1183 * <b>Definition:</b> 1184 * The actual content of the media - inline or by direct reference to the media source file 1185 * </p> 1186 */ 1187 public AttachmentDt getContent() { 1188 if (myContent == null) { 1189 myContent = new AttachmentDt(); 1190 } 1191 return myContent; 1192 } 1193 1194 /** 1195 * Sets the value(s) for <b>content</b> () 1196 * 1197 * <p> 1198 * <b>Definition:</b> 1199 * The actual content of the media - inline or by direct reference to the media source file 1200 * </p> 1201 */ 1202 public Media setContent(AttachmentDt theValue) { 1203 myContent = theValue; 1204 return this; 1205 } 1206 1207 1208 1209 1210 1211 1212 @Override 1213 public String getResourceName() { 1214 return "Media"; 1215 } 1216 1217 public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { 1218 return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; 1219 } 1220 1221 1222}