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>DeviceUseRequest</b> Resource 320 * (workflow.order) 321 * 322 * <p> 323 * <b>Definition:</b> 324 * Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker. 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/DeviceUseRequest">http://hl7.org/fhir/profiles/DeviceUseRequest</a> 335 * </p> 336 * 337 */ 338@ResourceDef(name="DeviceUseRequest", profile="http://hl7.org/fhir/profiles/DeviceUseRequest", id="deviceuserequest") 339public class DeviceUseRequest extends ca.uhn.fhir.model.dstu2.resource.BaseResource 340 implements IResource { 341 342 /** 343 * Search parameter constant for <b>subject</b> 344 * <p> 345 * Description: <b>Search by subject</b><br> 346 * Type: <b>reference</b><br> 347 * Path: <b>DeviceUseRequest.subject</b><br> 348 * </p> 349 */ 350 @SearchParamDefinition(name="subject", path="DeviceUseRequest.subject", description="Search by subject", type="reference" ) 351 public static final String SP_SUBJECT = "subject"; 352 353 /** 354 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 355 * <p> 356 * Description: <b>Search by subject</b><br> 357 * Type: <b>reference</b><br> 358 * Path: <b>DeviceUseRequest.subject</b><br> 359 * </p> 360 */ 361 public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); 362 363 /** 364 * Search parameter constant for <b>patient</b> 365 * <p> 366 * Description: <b>Search by subject - a patient</b><br> 367 * Type: <b>reference</b><br> 368 * Path: <b>DeviceUseRequest.subject</b><br> 369 * </p> 370 */ 371 @SearchParamDefinition(name="patient", path="DeviceUseRequest.subject", description="Search by subject - a patient", type="reference" ) 372 public static final String SP_PATIENT = "patient"; 373 374 /** 375 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 376 * <p> 377 * Description: <b>Search by subject - a patient</b><br> 378 * Type: <b>reference</b><br> 379 * Path: <b>DeviceUseRequest.subject</b><br> 380 * </p> 381 */ 382 public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); 383 384 /** 385 * Search parameter constant for <b>device</b> 386 * <p> 387 * Description: <b></b><br> 388 * Type: <b>reference</b><br> 389 * Path: <b>DeviceUseRequest.device</b><br> 390 * </p> 391 */ 392 @SearchParamDefinition(name="device", path="DeviceUseRequest.device", description="", type="reference" ) 393 public static final String SP_DEVICE = "device"; 394 395 /** 396 * <b>Fluent Client</b> search parameter constant for <b>device</b> 397 * <p> 398 * Description: <b></b><br> 399 * Type: <b>reference</b><br> 400 * Path: <b>DeviceUseRequest.device</b><br> 401 * </p> 402 */ 403 public static final ReferenceClientParam DEVICE = new ReferenceClientParam(SP_DEVICE); 404 405 406 /** 407 * Constant for fluent queries to be used to add include statements. Specifies 408 * the path value of "<b>DeviceUseRequest:device</b>". 409 */ 410 public static final Include INCLUDE_DEVICE = new Include("DeviceUseRequest:device"); 411 412 /** 413 * Constant for fluent queries to be used to add include statements. Specifies 414 * the path value of "<b>DeviceUseRequest:patient</b>". 415 */ 416 public static final Include INCLUDE_PATIENT = new Include("DeviceUseRequest:patient"); 417 418 /** 419 * Constant for fluent queries to be used to add include statements. Specifies 420 * the path value of "<b>DeviceUseRequest:subject</b>". 421 */ 422 public static final Include INCLUDE_SUBJECT = new Include("DeviceUseRequest:subject"); 423 424 425 @Child(name="bodySite", order=0, min=0, max=1, summary=false, modifier=false, type={ 426 CodeableConceptDt.class, BodySite.class }) 427 @Description( 428 shortDefinition="", 429 formalDefinition="Indicates the site on the subject's body where the device should be used ( i.e. the target site)." 430 ) 431 private IDatatype myBodySite; 432 433 @Child(name="status", type=CodeDt.class, order=1, min=0, max=1, summary=false, modifier=true) 434 @Description( 435 shortDefinition="status", 436 formalDefinition="The status of the request." 437 ) 438 private BoundCodeDt<DeviceUseRequestStatusEnum> myStatus; 439 440 @Child(name="device", order=2, min=1, max=1, summary=false, modifier=false, type={ 441 ca.uhn.fhir.model.dstu2.resource.Device.class }) 442 @Description( 443 shortDefinition="", 444 formalDefinition="The details of the device to be used." 445 ) 446 private ResourceReferenceDt myDevice; 447 448 @Child(name="encounter", order=3, min=0, max=1, summary=false, modifier=false, type={ 449 ca.uhn.fhir.model.dstu2.resource.Encounter.class }) 450 @Description( 451 shortDefinition="context", 452 formalDefinition="An encounter that provides additional context in which this request is made." 453 ) 454 private ResourceReferenceDt myEncounter; 455 456 @Child(name="identifier", type=IdentifierDt.class, order=4, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 457 @Description( 458 shortDefinition="id", 459 formalDefinition="Identifiers assigned to this order by the orderer or by the receiver." 460 ) 461 private java.util.List<IdentifierDt> myIdentifier; 462 463 @Child(name="indication", type=CodeableConceptDt.class, order=5, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 464 @Description( 465 shortDefinition="why", 466 formalDefinition="Reason or justification for the use of this device." 467 ) 468 private java.util.List<CodeableConceptDt> myIndication; 469 470 @Child(name="notes", type=StringDt.class, order=6, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 471 @Description( 472 shortDefinition="", 473 formalDefinition="Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement." 474 ) 475 private java.util.List<StringDt> myNotes; 476 477 @Child(name="prnReason", type=CodeableConceptDt.class, order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 478 @Description( 479 shortDefinition="", 480 formalDefinition="The proposed act must be performed if the indicated conditions occur, e.g.., shortness of breath, SpO2 less than x%." 481 ) 482 private java.util.List<CodeableConceptDt> myPrnReason; 483 484 @Child(name="orderedOn", type=DateTimeDt.class, order=8, min=0, max=1, summary=false, modifier=false) 485 @Description( 486 shortDefinition="when.init", 487 formalDefinition="The time when the request was made." 488 ) 489 private DateTimeDt myOrderedOn; 490 491 @Child(name="recordedOn", type=DateTimeDt.class, order=9, min=0, max=1, summary=false, modifier=false) 492 @Description( 493 shortDefinition="when.recorded", 494 formalDefinition="The time at which the request was made/recorded." 495 ) 496 private DateTimeDt myRecordedOn; 497 498 @Child(name="subject", order=10, min=1, max=1, summary=false, modifier=false, type={ 499 ca.uhn.fhir.model.dstu2.resource.Patient.class }) 500 @Description( 501 shortDefinition="who.focus", 502 formalDefinition="The patient who will use the device." 503 ) 504 private ResourceReferenceDt mySubject; 505 506 @Child(name="timing", order=11, min=0, max=1, summary=false, modifier=false, type={ 507 TimingDt.class, PeriodDt.class, DateTimeDt.class }) 508 @Description( 509 shortDefinition="when.planned", 510 formalDefinition="The timing schedule for the use of the device The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\"." 511 ) 512 private IDatatype myTiming; 513 514 @Child(name="priority", type=CodeDt.class, order=12, min=0, max=1, summary=false, modifier=false) 515 @Description( 516 shortDefinition="grade", 517 formalDefinition="Characterizes how quickly the use of device must be initiated. Includes concepts such as stat, urgent, routine." 518 ) 519 private BoundCodeDt<DeviceUseRequestPriorityEnum> myPriority; 520 521 522 @Override 523 public boolean isEmpty() { 524 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myBodySite, myStatus, myDevice, myEncounter, myIdentifier, myIndication, myNotes, myPrnReason, myOrderedOn, myRecordedOn, mySubject, myTiming, myPriority); 525 } 526 527 @Override 528 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 529 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myBodySite, myStatus, myDevice, myEncounter, myIdentifier, myIndication, myNotes, myPrnReason, myOrderedOn, myRecordedOn, mySubject, myTiming, myPriority); 530 } 531 532 /** 533 * Gets the value(s) for <b>bodySite[x]</b> (). 534 * creating it if it does 535 * not exist. Will not return <code>null</code>. 536 * 537 * <p> 538 * <b>Definition:</b> 539 * Indicates the site on the subject's body where the device should be used ( i.e. the target site). 540 * </p> 541 */ 542 public IDatatype getBodySite() { 543 return myBodySite; 544 } 545 546 /** 547 * Sets the value(s) for <b>bodySite[x]</b> () 548 * 549 * <p> 550 * <b>Definition:</b> 551 * Indicates the site on the subject's body where the device should be used ( i.e. the target site). 552 * </p> 553 */ 554 public DeviceUseRequest setBodySite(IDatatype theValue) { 555 myBodySite = theValue; 556 return this; 557 } 558 559 560 561 562 /** 563 * Gets the value(s) for <b>status</b> (status). 564 * creating it if it does 565 * not exist. Will not return <code>null</code>. 566 * 567 * <p> 568 * <b>Definition:</b> 569 * The status of the request. 570 * </p> 571 */ 572 public BoundCodeDt<DeviceUseRequestStatusEnum> getStatusElement() { 573 if (myStatus == null) { 574 myStatus = new BoundCodeDt<DeviceUseRequestStatusEnum>(DeviceUseRequestStatusEnum.VALUESET_BINDER); 575 } 576 return myStatus; 577 } 578 579 580 /** 581 * Gets the value(s) for <b>status</b> (status). 582 * creating it if it does 583 * not exist. Will not return <code>null</code>. 584 * 585 * <p> 586 * <b>Definition:</b> 587 * The status of the request. 588 * </p> 589 */ 590 public String getStatus() { 591 return getStatusElement().getValue(); 592 } 593 594 /** 595 * Sets the value(s) for <b>status</b> (status) 596 * 597 * <p> 598 * <b>Definition:</b> 599 * The status of the request. 600 * </p> 601 */ 602 public DeviceUseRequest setStatus(BoundCodeDt<DeviceUseRequestStatusEnum> theValue) { 603 myStatus = theValue; 604 return this; 605 } 606 607 608 609 /** 610 * Sets the value(s) for <b>status</b> (status) 611 * 612 * <p> 613 * <b>Definition:</b> 614 * The status of the request. 615 * </p> 616 */ 617 public DeviceUseRequest setStatus(DeviceUseRequestStatusEnum theValue) { 618 setStatus(new BoundCodeDt<DeviceUseRequestStatusEnum>(DeviceUseRequestStatusEnum.VALUESET_BINDER, theValue)); 619 620/* 621 getStatusElement().setValueAsEnum(theValue); 622*/ 623 return this; 624 } 625 626 627 /** 628 * Gets the value(s) for <b>device</b> (). 629 * creating it if it does 630 * not exist. Will not return <code>null</code>. 631 * 632 * <p> 633 * <b>Definition:</b> 634 * The details of the device to be used. 635 * </p> 636 */ 637 public ResourceReferenceDt getDevice() { 638 if (myDevice == null) { 639 myDevice = new ResourceReferenceDt(); 640 } 641 return myDevice; 642 } 643 644 /** 645 * Sets the value(s) for <b>device</b> () 646 * 647 * <p> 648 * <b>Definition:</b> 649 * The details of the device to be used. 650 * </p> 651 */ 652 public DeviceUseRequest setDevice(ResourceReferenceDt theValue) { 653 myDevice = theValue; 654 return this; 655 } 656 657 658 659 660 /** 661 * Gets the value(s) for <b>encounter</b> (context). 662 * creating it if it does 663 * not exist. Will not return <code>null</code>. 664 * 665 * <p> 666 * <b>Definition:</b> 667 * An encounter that provides additional context in which this request is made. 668 * </p> 669 */ 670 public ResourceReferenceDt getEncounter() { 671 if (myEncounter == null) { 672 myEncounter = new ResourceReferenceDt(); 673 } 674 return myEncounter; 675 } 676 677 /** 678 * Sets the value(s) for <b>encounter</b> (context) 679 * 680 * <p> 681 * <b>Definition:</b> 682 * An encounter that provides additional context in which this request is made. 683 * </p> 684 */ 685 public DeviceUseRequest setEncounter(ResourceReferenceDt theValue) { 686 myEncounter = theValue; 687 return this; 688 } 689 690 691 692 693 /** 694 * Gets the value(s) for <b>identifier</b> (id). 695 * creating it if it does 696 * not exist. Will not return <code>null</code>. 697 * 698 * <p> 699 * <b>Definition:</b> 700 * Identifiers assigned to this order by the orderer or by the receiver. 701 * </p> 702 */ 703 public java.util.List<IdentifierDt> getIdentifier() { 704 if (myIdentifier == null) { 705 myIdentifier = new java.util.ArrayList<IdentifierDt>(); 706 } 707 return myIdentifier; 708 } 709 710 /** 711 * Sets the value(s) for <b>identifier</b> (id) 712 * 713 * <p> 714 * <b>Definition:</b> 715 * Identifiers assigned to this order by the orderer or by the receiver. 716 * </p> 717 */ 718 public DeviceUseRequest setIdentifier(java.util.List<IdentifierDt> theValue) { 719 myIdentifier = theValue; 720 return this; 721 } 722 723 724 725 /** 726 * Adds and returns a new value for <b>identifier</b> (id) 727 * 728 * <p> 729 * <b>Definition:</b> 730 * Identifiers assigned to this order by the orderer or by the receiver. 731 * </p> 732 */ 733 public IdentifierDt addIdentifier() { 734 IdentifierDt newType = new IdentifierDt(); 735 getIdentifier().add(newType); 736 return newType; 737 } 738 739 /** 740 * Adds a given new value for <b>identifier</b> (id) 741 * 742 * <p> 743 * <b>Definition:</b> 744 * Identifiers assigned to this order by the orderer or by the receiver. 745 * </p> 746 * @param theValue The identifier to add (must not be <code>null</code>) 747 */ 748 public DeviceUseRequest addIdentifier(IdentifierDt theValue) { 749 if (theValue == null) { 750 throw new NullPointerException("theValue must not be null"); 751 } 752 getIdentifier().add(theValue); 753 return this; 754 } 755 756 /** 757 * Gets the first repetition for <b>identifier</b> (id), 758 * creating it if it does not already exist. 759 * 760 * <p> 761 * <b>Definition:</b> 762 * Identifiers assigned to this order by the orderer or by the receiver. 763 * </p> 764 */ 765 public IdentifierDt getIdentifierFirstRep() { 766 if (getIdentifier().isEmpty()) { 767 return addIdentifier(); 768 } 769 return getIdentifier().get(0); 770 } 771 772 /** 773 * Gets the value(s) for <b>indication</b> (why). 774 * creating it if it does 775 * not exist. Will not return <code>null</code>. 776 * 777 * <p> 778 * <b>Definition:</b> 779 * Reason or justification for the use of this device. 780 * </p> 781 */ 782 public java.util.List<CodeableConceptDt> getIndication() { 783 if (myIndication == null) { 784 myIndication = new java.util.ArrayList<CodeableConceptDt>(); 785 } 786 return myIndication; 787 } 788 789 /** 790 * Sets the value(s) for <b>indication</b> (why) 791 * 792 * <p> 793 * <b>Definition:</b> 794 * Reason or justification for the use of this device. 795 * </p> 796 */ 797 public DeviceUseRequest setIndication(java.util.List<CodeableConceptDt> theValue) { 798 myIndication = theValue; 799 return this; 800 } 801 802 803 804 /** 805 * Adds and returns a new value for <b>indication</b> (why) 806 * 807 * <p> 808 * <b>Definition:</b> 809 * Reason or justification for the use of this device. 810 * </p> 811 */ 812 public CodeableConceptDt addIndication() { 813 CodeableConceptDt newType = new CodeableConceptDt(); 814 getIndication().add(newType); 815 return newType; 816 } 817 818 /** 819 * Adds a given new value for <b>indication</b> (why) 820 * 821 * <p> 822 * <b>Definition:</b> 823 * Reason or justification for the use of this device. 824 * </p> 825 * @param theValue The indication to add (must not be <code>null</code>) 826 */ 827 public DeviceUseRequest addIndication(CodeableConceptDt theValue) { 828 if (theValue == null) { 829 throw new NullPointerException("theValue must not be null"); 830 } 831 getIndication().add(theValue); 832 return this; 833 } 834 835 /** 836 * Gets the first repetition for <b>indication</b> (why), 837 * creating it if it does not already exist. 838 * 839 * <p> 840 * <b>Definition:</b> 841 * Reason or justification for the use of this device. 842 * </p> 843 */ 844 public CodeableConceptDt getIndicationFirstRep() { 845 if (getIndication().isEmpty()) { 846 return addIndication(); 847 } 848 return getIndication().get(0); 849 } 850 851 /** 852 * Gets the value(s) for <b>notes</b> (). 853 * creating it if it does 854 * not exist. Will not return <code>null</code>. 855 * 856 * <p> 857 * <b>Definition:</b> 858 * Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement. 859 * </p> 860 */ 861 public java.util.List<StringDt> getNotes() { 862 if (myNotes == null) { 863 myNotes = new java.util.ArrayList<StringDt>(); 864 } 865 return myNotes; 866 } 867 868 /** 869 * Sets the value(s) for <b>notes</b> () 870 * 871 * <p> 872 * <b>Definition:</b> 873 * Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement. 874 * </p> 875 */ 876 public DeviceUseRequest setNotes(java.util.List<StringDt> theValue) { 877 myNotes = theValue; 878 return this; 879 } 880 881 882 883 /** 884 * Adds and returns a new value for <b>notes</b> () 885 * 886 * <p> 887 * <b>Definition:</b> 888 * Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement. 889 * </p> 890 */ 891 public StringDt addNotes() { 892 StringDt newType = new StringDt(); 893 getNotes().add(newType); 894 return newType; 895 } 896 897 /** 898 * Adds a given new value for <b>notes</b> () 899 * 900 * <p> 901 * <b>Definition:</b> 902 * Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement. 903 * </p> 904 * @param theValue The notes to add (must not be <code>null</code>) 905 */ 906 public DeviceUseRequest addNotes(StringDt theValue) { 907 if (theValue == null) { 908 throw new NullPointerException("theValue must not be null"); 909 } 910 getNotes().add(theValue); 911 return this; 912 } 913 914 /** 915 * Gets the first repetition for <b>notes</b> (), 916 * creating it if it does not already exist. 917 * 918 * <p> 919 * <b>Definition:</b> 920 * Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement. 921 * </p> 922 */ 923 public StringDt getNotesFirstRep() { 924 if (getNotes().isEmpty()) { 925 return addNotes(); 926 } 927 return getNotes().get(0); 928 } 929 /** 930 * Adds a new value for <b>notes</b> () 931 * 932 * <p> 933 * <b>Definition:</b> 934 * Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement. 935 * </p> 936 * 937 * @return Returns a reference to this object, to allow for simple chaining. 938 */ 939 public DeviceUseRequest addNotes( String theString) { 940 if (myNotes == null) { 941 myNotes = new java.util.ArrayList<StringDt>(); 942 } 943 myNotes.add(new StringDt(theString)); 944 return this; 945 } 946 947 948 /** 949 * Gets the value(s) for <b>prnReason</b> (). 950 * creating it if it does 951 * not exist. Will not return <code>null</code>. 952 * 953 * <p> 954 * <b>Definition:</b> 955 * The proposed act must be performed if the indicated conditions occur, e.g.., shortness of breath, SpO2 less than x%. 956 * </p> 957 */ 958 public java.util.List<CodeableConceptDt> getPrnReason() { 959 if (myPrnReason == null) { 960 myPrnReason = new java.util.ArrayList<CodeableConceptDt>(); 961 } 962 return myPrnReason; 963 } 964 965 /** 966 * Sets the value(s) for <b>prnReason</b> () 967 * 968 * <p> 969 * <b>Definition:</b> 970 * The proposed act must be performed if the indicated conditions occur, e.g.., shortness of breath, SpO2 less than x%. 971 * </p> 972 */ 973 public DeviceUseRequest setPrnReason(java.util.List<CodeableConceptDt> theValue) { 974 myPrnReason = theValue; 975 return this; 976 } 977 978 979 980 /** 981 * Adds and returns a new value for <b>prnReason</b> () 982 * 983 * <p> 984 * <b>Definition:</b> 985 * The proposed act must be performed if the indicated conditions occur, e.g.., shortness of breath, SpO2 less than x%. 986 * </p> 987 */ 988 public CodeableConceptDt addPrnReason() { 989 CodeableConceptDt newType = new CodeableConceptDt(); 990 getPrnReason().add(newType); 991 return newType; 992 } 993 994 /** 995 * Adds a given new value for <b>prnReason</b> () 996 * 997 * <p> 998 * <b>Definition:</b> 999 * The proposed act must be performed if the indicated conditions occur, e.g.., shortness of breath, SpO2 less than x%. 1000 * </p> 1001 * @param theValue The prnReason to add (must not be <code>null</code>) 1002 */ 1003 public DeviceUseRequest addPrnReason(CodeableConceptDt theValue) { 1004 if (theValue == null) { 1005 throw new NullPointerException("theValue must not be null"); 1006 } 1007 getPrnReason().add(theValue); 1008 return this; 1009 } 1010 1011 /** 1012 * Gets the first repetition for <b>prnReason</b> (), 1013 * creating it if it does not already exist. 1014 * 1015 * <p> 1016 * <b>Definition:</b> 1017 * The proposed act must be performed if the indicated conditions occur, e.g.., shortness of breath, SpO2 less than x%. 1018 * </p> 1019 */ 1020 public CodeableConceptDt getPrnReasonFirstRep() { 1021 if (getPrnReason().isEmpty()) { 1022 return addPrnReason(); 1023 } 1024 return getPrnReason().get(0); 1025 } 1026 1027 /** 1028 * Gets the value(s) for <b>orderedOn</b> (when.init). 1029 * creating it if it does 1030 * not exist. Will not return <code>null</code>. 1031 * 1032 * <p> 1033 * <b>Definition:</b> 1034 * The time when the request was made. 1035 * </p> 1036 */ 1037 public DateTimeDt getOrderedOnElement() { 1038 if (myOrderedOn == null) { 1039 myOrderedOn = new DateTimeDt(); 1040 } 1041 return myOrderedOn; 1042 } 1043 1044 1045 /** 1046 * Gets the value(s) for <b>orderedOn</b> (when.init). 1047 * creating it if it does 1048 * not exist. Will not return <code>null</code>. 1049 * 1050 * <p> 1051 * <b>Definition:</b> 1052 * The time when the request was made. 1053 * </p> 1054 */ 1055 public Date getOrderedOn() { 1056 return getOrderedOnElement().getValue(); 1057 } 1058 1059 /** 1060 * Sets the value(s) for <b>orderedOn</b> (when.init) 1061 * 1062 * <p> 1063 * <b>Definition:</b> 1064 * The time when the request was made. 1065 * </p> 1066 */ 1067 public DeviceUseRequest setOrderedOn(DateTimeDt theValue) { 1068 myOrderedOn = theValue; 1069 return this; 1070 } 1071 1072 1073 1074 /** 1075 * Sets the value for <b>orderedOn</b> (when.init) 1076 * 1077 * <p> 1078 * <b>Definition:</b> 1079 * The time when the request was made. 1080 * </p> 1081 */ 1082 public DeviceUseRequest setOrderedOn( Date theDate, TemporalPrecisionEnum thePrecision) { 1083 myOrderedOn = new DateTimeDt(theDate, thePrecision); 1084 return this; 1085 } 1086 1087 /** 1088 * Sets the value for <b>orderedOn</b> (when.init) 1089 * 1090 * <p> 1091 * <b>Definition:</b> 1092 * The time when the request was made. 1093 * </p> 1094 */ 1095 public DeviceUseRequest setOrderedOnWithSecondsPrecision( Date theDate) { 1096 myOrderedOn = new DateTimeDt(theDate); 1097 return this; 1098 } 1099 1100 1101 /** 1102 * Gets the value(s) for <b>recordedOn</b> (when.recorded). 1103 * creating it if it does 1104 * not exist. Will not return <code>null</code>. 1105 * 1106 * <p> 1107 * <b>Definition:</b> 1108 * The time at which the request was made/recorded. 1109 * </p> 1110 */ 1111 public DateTimeDt getRecordedOnElement() { 1112 if (myRecordedOn == null) { 1113 myRecordedOn = new DateTimeDt(); 1114 } 1115 return myRecordedOn; 1116 } 1117 1118 1119 /** 1120 * Gets the value(s) for <b>recordedOn</b> (when.recorded). 1121 * creating it if it does 1122 * not exist. Will not return <code>null</code>. 1123 * 1124 * <p> 1125 * <b>Definition:</b> 1126 * The time at which the request was made/recorded. 1127 * </p> 1128 */ 1129 public Date getRecordedOn() { 1130 return getRecordedOnElement().getValue(); 1131 } 1132 1133 /** 1134 * Sets the value(s) for <b>recordedOn</b> (when.recorded) 1135 * 1136 * <p> 1137 * <b>Definition:</b> 1138 * The time at which the request was made/recorded. 1139 * </p> 1140 */ 1141 public DeviceUseRequest setRecordedOn(DateTimeDt theValue) { 1142 myRecordedOn = theValue; 1143 return this; 1144 } 1145 1146 1147 1148 /** 1149 * Sets the value for <b>recordedOn</b> (when.recorded) 1150 * 1151 * <p> 1152 * <b>Definition:</b> 1153 * The time at which the request was made/recorded. 1154 * </p> 1155 */ 1156 public DeviceUseRequest setRecordedOn( Date theDate, TemporalPrecisionEnum thePrecision) { 1157 myRecordedOn = new DateTimeDt(theDate, thePrecision); 1158 return this; 1159 } 1160 1161 /** 1162 * Sets the value for <b>recordedOn</b> (when.recorded) 1163 * 1164 * <p> 1165 * <b>Definition:</b> 1166 * The time at which the request was made/recorded. 1167 * </p> 1168 */ 1169 public DeviceUseRequest setRecordedOnWithSecondsPrecision( Date theDate) { 1170 myRecordedOn = new DateTimeDt(theDate); 1171 return this; 1172 } 1173 1174 1175 /** 1176 * Gets the value(s) for <b>subject</b> (who.focus). 1177 * creating it if it does 1178 * not exist. Will not return <code>null</code>. 1179 * 1180 * <p> 1181 * <b>Definition:</b> 1182 * The patient who will use the device. 1183 * </p> 1184 */ 1185 public ResourceReferenceDt getSubject() { 1186 if (mySubject == null) { 1187 mySubject = new ResourceReferenceDt(); 1188 } 1189 return mySubject; 1190 } 1191 1192 /** 1193 * Sets the value(s) for <b>subject</b> (who.focus) 1194 * 1195 * <p> 1196 * <b>Definition:</b> 1197 * The patient who will use the device. 1198 * </p> 1199 */ 1200 public DeviceUseRequest setSubject(ResourceReferenceDt theValue) { 1201 mySubject = theValue; 1202 return this; 1203 } 1204 1205 1206 1207 1208 /** 1209 * Gets the value(s) for <b>timing[x]</b> (when.planned). 1210 * creating it if it does 1211 * not exist. Will not return <code>null</code>. 1212 * 1213 * <p> 1214 * <b>Definition:</b> 1215 * The timing schedule for the use of the device The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\". 1216 * </p> 1217 */ 1218 public IDatatype getTiming() { 1219 return myTiming; 1220 } 1221 1222 /** 1223 * Sets the value(s) for <b>timing[x]</b> (when.planned) 1224 * 1225 * <p> 1226 * <b>Definition:</b> 1227 * The timing schedule for the use of the device The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\". 1228 * </p> 1229 */ 1230 public DeviceUseRequest setTiming(IDatatype theValue) { 1231 myTiming = theValue; 1232 return this; 1233 } 1234 1235 1236 1237 1238 /** 1239 * Gets the value(s) for <b>priority</b> (grade). 1240 * creating it if it does 1241 * not exist. Will not return <code>null</code>. 1242 * 1243 * <p> 1244 * <b>Definition:</b> 1245 * Characterizes how quickly the use of device must be initiated. Includes concepts such as stat, urgent, routine. 1246 * </p> 1247 */ 1248 public BoundCodeDt<DeviceUseRequestPriorityEnum> getPriorityElement() { 1249 if (myPriority == null) { 1250 myPriority = new BoundCodeDt<DeviceUseRequestPriorityEnum>(DeviceUseRequestPriorityEnum.VALUESET_BINDER); 1251 } 1252 return myPriority; 1253 } 1254 1255 1256 /** 1257 * Gets the value(s) for <b>priority</b> (grade). 1258 * creating it if it does 1259 * not exist. Will not return <code>null</code>. 1260 * 1261 * <p> 1262 * <b>Definition:</b> 1263 * Characterizes how quickly the use of device must be initiated. Includes concepts such as stat, urgent, routine. 1264 * </p> 1265 */ 1266 public String getPriority() { 1267 return getPriorityElement().getValue(); 1268 } 1269 1270 /** 1271 * Sets the value(s) for <b>priority</b> (grade) 1272 * 1273 * <p> 1274 * <b>Definition:</b> 1275 * Characterizes how quickly the use of device must be initiated. Includes concepts such as stat, urgent, routine. 1276 * </p> 1277 */ 1278 public DeviceUseRequest setPriority(BoundCodeDt<DeviceUseRequestPriorityEnum> theValue) { 1279 myPriority = theValue; 1280 return this; 1281 } 1282 1283 1284 1285 /** 1286 * Sets the value(s) for <b>priority</b> (grade) 1287 * 1288 * <p> 1289 * <b>Definition:</b> 1290 * Characterizes how quickly the use of device must be initiated. Includes concepts such as stat, urgent, routine. 1291 * </p> 1292 */ 1293 public DeviceUseRequest setPriority(DeviceUseRequestPriorityEnum theValue) { 1294 setPriority(new BoundCodeDt<DeviceUseRequestPriorityEnum>(DeviceUseRequestPriorityEnum.VALUESET_BINDER, theValue)); 1295 1296/* 1297 getPriorityElement().setValueAsEnum(theValue); 1298*/ 1299 return this; 1300 } 1301 1302 1303 1304 1305 @Override 1306 public String getResourceName() { 1307 return "DeviceUseRequest"; 1308 } 1309 1310 public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { 1311 return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; 1312 } 1313 1314 1315}