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