001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017package ca.uhn.fhir.model.dstu2.resource; 018 019import java.math.BigDecimal; 020import java.net.URI; 021import java.util.*; 022import ca.uhn.fhir.model.api.*; 023import ca.uhn.fhir.model.api.annotation.*; 024import ca.uhn.fhir.rest.gclient.*; 025 026import ca.uhn.fhir.model.dstu2.valueset.AccountStatusEnum; 027import ca.uhn.fhir.model.dstu2.valueset.ActionListEnum; 028import ca.uhn.fhir.model.dstu2.composite.AddressDt; 029import ca.uhn.fhir.model.dstu2.valueset.AdjudicationCodesEnum; 030import ca.uhn.fhir.model.dstu2.valueset.AdjudicationErrorCodesEnum; 031import ca.uhn.fhir.model.dstu2.valueset.AdjustmentReasonCodesEnum; 032import ca.uhn.fhir.model.dstu2.valueset.AdministrativeGenderEnum; 033import ca.uhn.fhir.model.dstu2.valueset.AdmitSourceEnum; 034import ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance; 035import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCategoryEnum; 036import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCertaintyEnum; 037import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCriticalityEnum; 038import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceSeverityEnum; 039import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceStatusEnum; 040import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceTypeEnum; 041import ca.uhn.fhir.model.dstu2.composite.AnnotationDt; 042import ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum; 043import ca.uhn.fhir.model.dstu2.resource.Appointment; 044import ca.uhn.fhir.model.dstu2.valueset.AppointmentStatusEnum; 045import ca.uhn.fhir.model.dstu2.valueset.AssertionDirectionTypeEnum; 046import ca.uhn.fhir.model.dstu2.valueset.AssertionOperatorTypeEnum; 047import ca.uhn.fhir.model.dstu2.valueset.AssertionResponseTypesEnum; 048import ca.uhn.fhir.model.dstu2.composite.AttachmentDt; 049import ca.uhn.fhir.model.dstu2.valueset.AuditEventActionEnum; 050import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum; 051import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectRoleEnum; 052import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectTypeEnum; 053import ca.uhn.fhir.model.dstu2.valueset.AuditEventOutcomeEnum; 054import ca.uhn.fhir.model.dstu2.valueset.AuditEventParticipantNetworkTypeEnum; 055import ca.uhn.fhir.model.dstu2.valueset.AuditEventSourceTypeEnum; 056import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum; 057import ca.uhn.fhir.model.dstu2.resource.BodySite; 058import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum; 059import ca.uhn.fhir.model.dstu2.resource.CarePlan; 060import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityStatusEnum; 061import ca.uhn.fhir.model.dstu2.valueset.CarePlanRelationshipEnum; 062import ca.uhn.fhir.model.dstu2.valueset.CarePlanStatusEnum; 063import ca.uhn.fhir.model.dstu2.resource.Claim; 064import ca.uhn.fhir.model.dstu2.resource.ClaimResponse; 065import ca.uhn.fhir.model.dstu2.valueset.ClaimTypeEnum; 066import ca.uhn.fhir.model.dstu2.resource.ClinicalImpression; 067import ca.uhn.fhir.model.dstu2.valueset.ClinicalImpressionStatusEnum; 068import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt; 069import ca.uhn.fhir.model.dstu2.composite.CodingDt; 070import ca.uhn.fhir.model.dstu2.resource.CommunicationRequest; 071import ca.uhn.fhir.model.dstu2.valueset.CommunicationRequestStatusEnum; 072import ca.uhn.fhir.model.dstu2.valueset.CommunicationStatusEnum; 073import ca.uhn.fhir.model.dstu2.resource.Composition; 074import ca.uhn.fhir.model.dstu2.valueset.CompositionAttestationModeEnum; 075import ca.uhn.fhir.model.dstu2.valueset.CompositionStatusEnum; 076import ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum; 077import ca.uhn.fhir.model.dstu2.resource.Condition; 078import ca.uhn.fhir.model.dstu2.valueset.ConditionCategoryCodesEnum; 079import ca.uhn.fhir.model.dstu2.valueset.ConditionClinicalStatusCodesEnum; 080import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum; 081import ca.uhn.fhir.model.dstu2.valueset.ConditionalDeleteStatusEnum; 082import ca.uhn.fhir.model.dstu2.resource.Conformance; 083import ca.uhn.fhir.model.dstu2.valueset.ConformanceEventModeEnum; 084import ca.uhn.fhir.model.dstu2.valueset.ConformanceResourceStatusEnum; 085import ca.uhn.fhir.model.dstu2.valueset.ConformanceStatementKindEnum; 086import ca.uhn.fhir.model.dstu2.composite.ContactPointDt; 087import ca.uhn.fhir.model.dstu2.valueset.ContentTypeEnum; 088import ca.uhn.fhir.model.dstu2.resource.Contract; 089import ca.uhn.fhir.model.dstu2.resource.Coverage; 090import ca.uhn.fhir.model.dstu2.valueset.DataElementStringencyEnum; 091import ca.uhn.fhir.model.dstu2.valueset.DaysOfWeekEnum; 092import ca.uhn.fhir.model.dstu2.valueset.DetectedIssueSeverityEnum; 093import ca.uhn.fhir.model.dstu2.resource.Device; 094import ca.uhn.fhir.model.dstu2.resource.DeviceComponent; 095import ca.uhn.fhir.model.dstu2.resource.DeviceMetric; 096import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationStateEnum; 097import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationTypeEnum; 098import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCategoryEnum; 099import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricColorEnum; 100import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricOperationalStatusEnum; 101import ca.uhn.fhir.model.dstu2.valueset.DeviceStatusEnum; 102import ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest; 103import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestPriorityEnum; 104import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestStatusEnum; 105import ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder; 106import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderPriorityEnum; 107import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderStatusEnum; 108import ca.uhn.fhir.model.dstu2.resource.DiagnosticReport; 109import ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum; 110import ca.uhn.fhir.model.dstu2.valueset.DigitalMediaTypeEnum; 111import ca.uhn.fhir.model.dstu2.valueset.DocumentModeEnum; 112import ca.uhn.fhir.model.dstu2.resource.DocumentReference; 113import ca.uhn.fhir.model.dstu2.valueset.DocumentReferenceStatusEnum; 114import ca.uhn.fhir.model.dstu2.valueset.DocumentRelationshipTypeEnum; 115import ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt; 116import ca.uhn.fhir.model.dstu2.resource.EligibilityRequest; 117import ca.uhn.fhir.model.dstu2.resource.Encounter; 118import ca.uhn.fhir.model.dstu2.valueset.EncounterClassEnum; 119import ca.uhn.fhir.model.dstu2.valueset.EncounterLocationStatusEnum; 120import ca.uhn.fhir.model.dstu2.valueset.EncounterStateEnum; 121import ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest; 122import ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare; 123import ca.uhn.fhir.model.dstu2.valueset.EpisodeOfCareStatusEnum; 124import ca.uhn.fhir.model.dstu2.valueset.ExtensionContextEnum; 125import ca.uhn.fhir.model.dstu2.valueset.FamilyHistoryStatusEnum; 126import ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory; 127import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum; 128import ca.uhn.fhir.model.dstu2.valueset.FlagStatusEnum; 129import ca.uhn.fhir.model.dstu2.resource.Goal; 130import ca.uhn.fhir.model.dstu2.valueset.GoalPriorityEnum; 131import ca.uhn.fhir.model.dstu2.valueset.GoalStatusEnum; 132import ca.uhn.fhir.model.dstu2.resource.Group; 133import ca.uhn.fhir.model.dstu2.valueset.GroupTypeEnum; 134import ca.uhn.fhir.model.dstu2.valueset.GuideDependencyTypeEnum; 135import ca.uhn.fhir.model.dstu2.valueset.GuidePageKindEnum; 136import ca.uhn.fhir.model.dstu2.valueset.GuideResourcePurposeEnum; 137import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum; 138import ca.uhn.fhir.model.dstu2.resource.HealthcareService; 139import ca.uhn.fhir.model.dstu2.composite.HumanNameDt; 140import ca.uhn.fhir.model.dstu2.composite.IdentifierDt; 141import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum; 142import ca.uhn.fhir.model.dstu2.valueset.IdentityAssuranceLevelEnum; 143import ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection; 144import ca.uhn.fhir.model.dstu2.resource.ImagingStudy; 145import ca.uhn.fhir.model.dstu2.resource.Immunization; 146import ca.uhn.fhir.model.dstu2.valueset.InstanceAvailabilityEnum; 147import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum; 148import ca.uhn.fhir.model.dstu2.valueset.IssueTypeEnum; 149import ca.uhn.fhir.model.dstu2.valueset.KOStitleEnum; 150import ca.uhn.fhir.model.dstu2.valueset.LinkTypeEnum; 151import ca.uhn.fhir.model.dstu2.valueset.ListModeEnum; 152import ca.uhn.fhir.model.dstu2.valueset.ListOrderCodesEnum; 153import ca.uhn.fhir.model.dstu2.valueset.ListStatusEnum; 154import ca.uhn.fhir.model.dstu2.resource.Location; 155import ca.uhn.fhir.model.dstu2.valueset.LocationModeEnum; 156import ca.uhn.fhir.model.dstu2.valueset.LocationStatusEnum; 157import ca.uhn.fhir.model.dstu2.valueset.LocationTypeEnum; 158import ca.uhn.fhir.model.dstu2.valueset.MaritalStatusCodesEnum; 159import ca.uhn.fhir.model.dstu2.valueset.MeasmntPrincipleEnum; 160import ca.uhn.fhir.model.dstu2.resource.Media; 161import ca.uhn.fhir.model.dstu2.resource.Medication; 162import ca.uhn.fhir.model.dstu2.valueset.MedicationAdministrationStatusEnum; 163import ca.uhn.fhir.model.dstu2.valueset.MedicationDispenseStatusEnum; 164import ca.uhn.fhir.model.dstu2.resource.MedicationOrder; 165import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum; 166import ca.uhn.fhir.model.dstu2.resource.MedicationStatement; 167import ca.uhn.fhir.model.dstu2.valueset.MedicationStatementStatusEnum; 168import ca.uhn.fhir.model.dstu2.valueset.MessageEventEnum; 169import ca.uhn.fhir.model.dstu2.valueset.MessageSignificanceCategoryEnum; 170import ca.uhn.fhir.model.dstu2.valueset.MessageTransportEnum; 171import ca.uhn.fhir.model.dstu2.resource.NamingSystem; 172import ca.uhn.fhir.model.dstu2.valueset.NamingSystemIdentifierTypeEnum; 173import ca.uhn.fhir.model.dstu2.valueset.NamingSystemTypeEnum; 174import ca.uhn.fhir.model.dstu2.valueset.NoteTypeEnum; 175import ca.uhn.fhir.model.dstu2.resource.NutritionOrder; 176import ca.uhn.fhir.model.dstu2.valueset.NutritionOrderStatusEnum; 177import ca.uhn.fhir.model.dstu2.resource.Observation; 178import ca.uhn.fhir.model.dstu2.valueset.ObservationRelationshipTypeEnum; 179import ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum; 180import ca.uhn.fhir.model.dstu2.resource.OperationDefinition; 181import ca.uhn.fhir.model.dstu2.valueset.OperationKindEnum; 182import ca.uhn.fhir.model.dstu2.resource.OperationOutcome; 183import ca.uhn.fhir.model.dstu2.valueset.OperationParameterUseEnum; 184import ca.uhn.fhir.model.dstu2.resource.Order; 185import ca.uhn.fhir.model.dstu2.valueset.OrderStatusEnum; 186import ca.uhn.fhir.model.dstu2.resource.Organization; 187import ca.uhn.fhir.model.dstu2.valueset.ParticipantRequiredEnum; 188import ca.uhn.fhir.model.dstu2.valueset.ParticipantStatusEnum; 189import ca.uhn.fhir.model.dstu2.valueset.ParticipantTypeEnum; 190import ca.uhn.fhir.model.dstu2.valueset.ParticipationStatusEnum; 191import ca.uhn.fhir.model.dstu2.resource.Patient; 192import ca.uhn.fhir.model.dstu2.valueset.PayeeTypeCodesEnum; 193import ca.uhn.fhir.model.dstu2.composite.PeriodDt; 194import ca.uhn.fhir.model.dstu2.resource.Person; 195import ca.uhn.fhir.model.dstu2.resource.Practitioner; 196import ca.uhn.fhir.model.dstu2.resource.Procedure; 197import ca.uhn.fhir.model.dstu2.resource.ProcedureRequest; 198import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestPriorityEnum; 199import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestStatusEnum; 200import ca.uhn.fhir.model.dstu2.valueset.ProcedureStatusEnum; 201import ca.uhn.fhir.model.dstu2.resource.ProcessRequest; 202import ca.uhn.fhir.model.dstu2.valueset.ProvenanceEntityRoleEnum; 203import ca.uhn.fhir.model.dstu2.composite.QuantityDt; 204import ca.uhn.fhir.model.dstu2.resource.Questionnaire; 205import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse; 206import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireResponseStatusEnum; 207import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireStatusEnum; 208import ca.uhn.fhir.model.dstu2.composite.RangeDt; 209import ca.uhn.fhir.model.dstu2.composite.RatioDt; 210import ca.uhn.fhir.model.dstu2.valueset.ReferralMethodEnum; 211import ca.uhn.fhir.model.dstu2.resource.ReferralRequest; 212import ca.uhn.fhir.model.dstu2.valueset.ReferralStatusEnum; 213import ca.uhn.fhir.model.dstu2.resource.RelatedPerson; 214import ca.uhn.fhir.model.dstu2.valueset.RemittanceOutcomeEnum; 215import ca.uhn.fhir.model.dstu2.valueset.ResourceTypeEnum; 216import ca.uhn.fhir.model.dstu2.valueset.ResourceVersionPolicyEnum; 217import ca.uhn.fhir.model.dstu2.valueset.ResponseTypeEnum; 218import ca.uhn.fhir.model.dstu2.valueset.RestfulConformanceModeEnum; 219import ca.uhn.fhir.model.dstu2.valueset.RestfulSecurityServiceEnum; 220import ca.uhn.fhir.model.dstu2.resource.RiskAssessment; 221import ca.uhn.fhir.model.dstu2.valueset.RulesetCodesEnum; 222import ca.uhn.fhir.model.dstu2.composite.SampledDataDt; 223import ca.uhn.fhir.model.dstu2.resource.Schedule; 224import ca.uhn.fhir.model.dstu2.valueset.SearchEntryModeEnum; 225import ca.uhn.fhir.model.dstu2.valueset.SearchModifierCodeEnum; 226import ca.uhn.fhir.model.dstu2.valueset.SearchParamTypeEnum; 227import ca.uhn.fhir.model.dstu2.valueset.ServiceProvisionConditionsEnum; 228import ca.uhn.fhir.model.dstu2.composite.SignatureDt; 229import ca.uhn.fhir.model.dstu2.resource.Slot; 230import ca.uhn.fhir.model.dstu2.valueset.SlotStatusEnum; 231import ca.uhn.fhir.model.dstu2.resource.Specimen; 232import ca.uhn.fhir.model.dstu2.valueset.SpecimenStatusEnum; 233import ca.uhn.fhir.model.dstu2.resource.StructureDefinition; 234import ca.uhn.fhir.model.dstu2.valueset.StructureDefinitionKindEnum; 235import ca.uhn.fhir.model.dstu2.valueset.SubscriptionChannelTypeEnum; 236import ca.uhn.fhir.model.dstu2.valueset.SubscriptionStatusEnum; 237import ca.uhn.fhir.model.dstu2.resource.Substance; 238import ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum; 239import ca.uhn.fhir.model.dstu2.valueset.SupplyDeliveryStatusEnum; 240import ca.uhn.fhir.model.dstu2.resource.SupplyRequest; 241import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestStatusEnum; 242import ca.uhn.fhir.model.dstu2.valueset.SystemRestfulInteractionEnum; 243import ca.uhn.fhir.model.api.TemporalPrecisionEnum; 244import ca.uhn.fhir.model.dstu2.composite.TimingDt; 245import ca.uhn.fhir.model.dstu2.valueset.TransactionModeEnum; 246import ca.uhn.fhir.model.dstu2.valueset.TypeRestfulInteractionEnum; 247import ca.uhn.fhir.model.dstu2.valueset.UnknownContentCodeEnum; 248import ca.uhn.fhir.model.dstu2.valueset.UseEnum; 249import ca.uhn.fhir.model.dstu2.resource.ValueSet; 250import ca.uhn.fhir.model.dstu2.valueset.VisionBaseEnum; 251import ca.uhn.fhir.model.dstu2.valueset.VisionEyesEnum; 252import ca.uhn.fhir.model.dstu2.resource.VisionPrescription; 253import ca.uhn.fhir.model.dstu2.valueset.XPathUsageTypeEnum; 254import ca.uhn.fhir.model.api.IResource; 255import ca.uhn.fhir.model.dstu2.composite.AgeDt; 256import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt; 257import ca.uhn.fhir.model.dstu2.composite.DurationDt; 258import ca.uhn.fhir.model.dstu2.composite.MoneyDt; 259import ca.uhn.fhir.model.dstu2.composite.NarrativeDt; 260import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt; 261import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt; 262import ca.uhn.fhir.model.primitive.Base64BinaryDt; 263import ca.uhn.fhir.model.primitive.BooleanDt; 264import ca.uhn.fhir.model.primitive.BoundCodeDt; 265import ca.uhn.fhir.model.primitive.CodeDt; 266import ca.uhn.fhir.model.primitive.DateDt; 267import ca.uhn.fhir.model.primitive.DateTimeDt; 268import ca.uhn.fhir.model.primitive.DecimalDt; 269import ca.uhn.fhir.model.primitive.IdDt; 270import ca.uhn.fhir.model.primitive.InstantDt; 271import ca.uhn.fhir.model.primitive.IntegerDt; 272import ca.uhn.fhir.model.primitive.OidDt; 273import ca.uhn.fhir.model.primitive.PositiveIntDt; 274import ca.uhn.fhir.model.primitive.StringDt; 275import ca.uhn.fhir.model.primitive.TimeDt; 276import ca.uhn.fhir.model.primitive.UnsignedIntDt; 277import ca.uhn.fhir.model.primitive.UriDt; 278 279 280/** 281 * HAPI/FHIR <b>Schedule</b> Resource 282 * (workflow.scheduling) 283 * 284 * <p> 285 * <b>Definition:</b> 286 * A container for slot(s) of time that may be available for booking appointments. 287 * </p> 288 * 289 * <p> 290 * <b>Requirements:</b> 291 * 292 * </p> 293 * 294 * <p> 295 * <b>Profile Definition:</b> 296 * <a href="http://hl7.org/fhir/profiles/Schedule">http://hl7.org/fhir/profiles/Schedule</a> 297 * </p> 298 * 299 */ 300@ResourceDef(name="Schedule", profile="http://hl7.org/fhir/profiles/Schedule", id="schedule") 301public class Schedule extends ca.uhn.fhir.model.dstu2.resource.BaseResource 302 implements IResource 303 { 304 305 /** 306 * Search parameter constant for <b>actor</b> 307 * <p> 308 * Description: <b>The individual(HealthcareService, Practitioner, Location, ...) to find a Schedule for</b><br> 309 * Type: <b>reference</b><br> 310 * Path: <b>Schedule.actor</b><br> 311 * </p> 312 */ 313 @SearchParamDefinition(name="actor", path="Schedule.actor", description="The individual(HealthcareService, Practitioner, Location, ...) to find a Schedule for", type="reference" 314, providesMembershipIn={ 315 @Compartment(name="Patient") , @Compartment(name="Encounter") , @Compartment(name="RelatedPerson") , @Compartment(name="Practitioner") } 316 ) 317 public static final String SP_ACTOR = "actor"; 318 319 /** 320 * <b>Fluent Client</b> search parameter constant for <b>actor</b> 321 * <p> 322 * Description: <b>The individual(HealthcareService, Practitioner, Location, ...) to find a Schedule for</b><br> 323 * Type: <b>reference</b><br> 324 * Path: <b>Schedule.actor</b><br> 325 * </p> 326 */ 327 public static final ReferenceClientParam ACTOR = new ReferenceClientParam(SP_ACTOR); 328 329 /** 330 * Search parameter constant for <b>type</b> 331 * <p> 332 * Description: <b>The type of appointments that can be booked into associated slot(s)</b><br> 333 * Type: <b>token</b><br> 334 * Path: <b>Schedule.type</b><br> 335 * </p> 336 */ 337 @SearchParamDefinition(name="type", path="Schedule.type", description="The type of appointments that can be booked into associated slot(s)", type="token" 338 ) 339 public static final String SP_TYPE = "type"; 340 341 /** 342 * <b>Fluent Client</b> search parameter constant for <b>type</b> 343 * <p> 344 * Description: <b>The type of appointments that can be booked into associated slot(s)</b><br> 345 * Type: <b>token</b><br> 346 * Path: <b>Schedule.type</b><br> 347 * </p> 348 */ 349 public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); 350 351 /** 352 * Search parameter constant for <b>date</b> 353 * <p> 354 * Description: <b>Search for Schedule resources that have a period that contains this date specified</b><br> 355 * Type: <b>date</b><br> 356 * Path: <b>Schedule.planningHorizon</b><br> 357 * </p> 358 */ 359 @SearchParamDefinition(name="date", path="Schedule.planningHorizon", description="Search for Schedule resources that have a period that contains this date specified", type="date" 360 ) 361 public static final String SP_DATE = "date"; 362 363 /** 364 * <b>Fluent Client</b> search parameter constant for <b>date</b> 365 * <p> 366 * Description: <b>Search for Schedule resources that have a period that contains this date specified</b><br> 367 * Type: <b>date</b><br> 368 * Path: <b>Schedule.planningHorizon</b><br> 369 * </p> 370 */ 371 public static final DateClientParam DATE = new DateClientParam(SP_DATE); 372 373 /** 374 * Search parameter constant for <b>identifier</b> 375 * <p> 376 * Description: <b>A Schedule Identifier</b><br> 377 * Type: <b>token</b><br> 378 * Path: <b>Schedule.identifier</b><br> 379 * </p> 380 */ 381 @SearchParamDefinition(name="identifier", path="Schedule.identifier", description="A Schedule Identifier", type="token" 382 ) 383 public static final String SP_IDENTIFIER = "identifier"; 384 385 /** 386 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 387 * <p> 388 * Description: <b>A Schedule Identifier</b><br> 389 * Type: <b>token</b><br> 390 * Path: <b>Schedule.identifier</b><br> 391 * </p> 392 */ 393 public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); 394 395 396 /** 397 * Constant for fluent queries to be used to add include statements. Specifies 398 * the path value of "<b>Schedule:actor</b>". 399 */ 400 public static final Include INCLUDE_ACTOR = new Include("Schedule:actor"); 401 402 403 @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) 404 @Description( 405 shortDefinition="id", 406 formalDefinition="" 407 ) 408 private java.util.List<IdentifierDt> myIdentifier; 409 410 @Child(name="type", type=CodeableConceptDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 411 @Description( 412 shortDefinition="class", 413 formalDefinition="" 414 ) 415 @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/c80-practice-codes") 416 private java.util.List<CodeableConceptDt> myType; 417 418 @Child(name="actor", order=2, min=1, max=1, summary=true, modifier=false, type={ 419 ca.uhn.fhir.model.dstu2.resource.Patient.class, 420 ca.uhn.fhir.model.dstu2.resource.Practitioner.class, 421 ca.uhn.fhir.model.dstu2.resource.RelatedPerson.class, 422 ca.uhn.fhir.model.dstu2.resource.Device.class, 423 ca.uhn.fhir.model.dstu2.resource.HealthcareService.class, 424 ca.uhn.fhir.model.dstu2.resource.Location.class 425 }) 426 @Description( 427 shortDefinition="who.focus", 428 formalDefinition="" 429 ) 430 private ResourceReferenceDt myActor; 431 432 @Child(name="planningHorizon", type=PeriodDt.class, order=3, min=0, max=1, summary=true, modifier=false) 433 @Description( 434 shortDefinition="when.planned", 435 formalDefinition="" 436 ) 437 private PeriodDt myPlanningHorizon; 438 439 @Child(name="comment", type=StringDt.class, order=4, min=0, max=1, summary=false, modifier=false) 440 @Description( 441 shortDefinition="", 442 formalDefinition="" 443 ) 444 private StringDt myComment; 445 446 447 @Override 448 public boolean isEmpty() { 449 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType, myActor, myPlanningHorizon, myComment); 450 } 451 452 @Override 453 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 454 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myType, myActor, myPlanningHorizon, myComment); 455 } 456 457 /** 458 * Gets the value(s) for <b>identifier</b> (id). 459 * creating it if it does 460 * not exist. Will not return <code>null</code>. 461 * 462 * <p> 463 * <b>Definition:</b> 464 * 465 * </p> 466 */ 467 public java.util.List<IdentifierDt> getIdentifier() { 468 if (myIdentifier == null) { 469 myIdentifier = new java.util.ArrayList<IdentifierDt>(); 470 } 471 return myIdentifier; 472 } 473 474 /** 475 * Sets the value(s) for <b>identifier</b> (id) 476 * 477 * <p> 478 * <b>Definition:</b> 479 * 480 * </p> 481 */ 482 public Schedule setIdentifier(java.util.List<IdentifierDt> theValue) { 483 myIdentifier = theValue; 484 return this; 485 } 486 487 488 489 /** 490 * Adds and returns a new value for <b>identifier</b> (id) 491 * 492 * <p> 493 * <b>Definition:</b> 494 * 495 * </p> 496 */ 497 public IdentifierDt addIdentifier() { 498 IdentifierDt newType = new IdentifierDt(); 499 getIdentifier().add(newType); 500 return newType; 501 } 502 503 /** 504 * Adds a given new value for <b>identifier</b> (id) 505 * 506 * <p> 507 * <b>Definition:</b> 508 * 509 * </p> 510 * @param theValue The identifier to add (must not be <code>null</code>) 511 */ 512 public Schedule addIdentifier(IdentifierDt theValue) { 513 if (theValue == null) { 514 throw new NullPointerException("theValue must not be null"); 515 } 516 getIdentifier().add(theValue); 517 return this; 518 } 519 520 /** 521 * Gets the first repetition for <b>identifier</b> (id), 522 * creating it if it does not already exist. 523 * 524 * <p> 525 * <b>Definition:</b> 526 * 527 * </p> 528 */ 529 public IdentifierDt getIdentifierFirstRep() { 530 if (getIdentifier().isEmpty()) { 531 return addIdentifier(); 532 } 533 return getIdentifier().get(0); 534 } 535 536 /** 537 * Gets the value(s) for <b>type</b> (class). 538 * creating it if it does 539 * not exist. Will not return <code>null</code>. 540 * 541 * <p> 542 * <b>Definition:</b> 543 * 544 * </p> 545 */ 546 public java.util.List<CodeableConceptDt> getType() { 547 if (myType == null) { 548 myType = new java.util.ArrayList<CodeableConceptDt>(); 549 } 550 return myType; 551 } 552 553 /** 554 * Sets the value(s) for <b>type</b> (class) 555 * 556 * <p> 557 * <b>Definition:</b> 558 * 559 * </p> 560 */ 561 public Schedule setType(java.util.List<CodeableConceptDt> theValue) { 562 myType = theValue; 563 return this; 564 } 565 566 567 568 /** 569 * Adds and returns a new value for <b>type</b> (class) 570 * 571 * <p> 572 * <b>Definition:</b> 573 * 574 * </p> 575 */ 576 public CodeableConceptDt addType() { 577 CodeableConceptDt newType = new CodeableConceptDt(); 578 getType().add(newType); 579 return newType; 580 } 581 582 /** 583 * Adds a given new value for <b>type</b> (class) 584 * 585 * <p> 586 * <b>Definition:</b> 587 * 588 * </p> 589 * @param theValue The type to add (must not be <code>null</code>) 590 */ 591 public Schedule addType(CodeableConceptDt theValue) { 592 if (theValue == null) { 593 throw new NullPointerException("theValue must not be null"); 594 } 595 getType().add(theValue); 596 return this; 597 } 598 599 /** 600 * Gets the first repetition for <b>type</b> (class), 601 * creating it if it does not already exist. 602 * 603 * <p> 604 * <b>Definition:</b> 605 * 606 * </p> 607 */ 608 public CodeableConceptDt getTypeFirstRep() { 609 if (getType().isEmpty()) { 610 return addType(); 611 } 612 return getType().get(0); 613 } 614 615 /** 616 * Gets the value(s) for <b>actor</b> (who.focus). 617 * creating it if it does 618 * not exist. Will not return <code>null</code>. 619 * 620 * <p> 621 * <b>Definition:</b> 622 * 623 * </p> 624 */ 625 public ResourceReferenceDt getActor() { 626 if (myActor == null) { 627 myActor = new ResourceReferenceDt(); 628 } 629 return myActor; 630 } 631 632 /** 633 * Sets the value(s) for <b>actor</b> (who.focus) 634 * 635 * <p> 636 * <b>Definition:</b> 637 * 638 * </p> 639 */ 640 public Schedule setActor(ResourceReferenceDt theValue) { 641 myActor = theValue; 642 return this; 643 } 644 645 646 647 648 /** 649 * Gets the value(s) for <b>planningHorizon</b> (when.planned). 650 * creating it if it does 651 * not exist. Will not return <code>null</code>. 652 * 653 * <p> 654 * <b>Definition:</b> 655 * 656 * </p> 657 */ 658 public PeriodDt getPlanningHorizon() { 659 if (myPlanningHorizon == null) { 660 myPlanningHorizon = new PeriodDt(); 661 } 662 return myPlanningHorizon; 663 } 664 665 /** 666 * Sets the value(s) for <b>planningHorizon</b> (when.planned) 667 * 668 * <p> 669 * <b>Definition:</b> 670 * 671 * </p> 672 */ 673 public Schedule setPlanningHorizon(PeriodDt theValue) { 674 myPlanningHorizon = theValue; 675 return this; 676 } 677 678 679 680 681 /** 682 * Gets the value(s) for <b>comment</b> (). 683 * creating it if it does 684 * not exist. Will not return <code>null</code>. 685 * 686 * <p> 687 * <b>Definition:</b> 688 * 689 * </p> 690 */ 691 public StringDt getCommentElement() { 692 if (myComment == null) { 693 myComment = new StringDt(); 694 } 695 return myComment; 696 } 697 698 699 /** 700 * Gets the value(s) for <b>comment</b> (). 701 * creating it if it does 702 * not exist. This method may return <code>null</code>. 703 * 704 * <p> 705 * <b>Definition:</b> 706 * 707 * </p> 708 */ 709 public String getComment() { 710 return getCommentElement().getValue(); 711 } 712 713 /** 714 * Sets the value(s) for <b>comment</b> () 715 * 716 * <p> 717 * <b>Definition:</b> 718 * 719 * </p> 720 */ 721 public Schedule setComment(StringDt theValue) { 722 myComment = theValue; 723 return this; 724 } 725 726 727 728 /** 729 * Sets the value for <b>comment</b> () 730 * 731 * <p> 732 * <b>Definition:</b> 733 * 734 * </p> 735 */ 736 public Schedule setComment( String theString) { 737 myComment = new StringDt(theString); 738 return this; 739 } 740 741 742 743 744 @Override 745 public String getResourceName() { 746 return "Schedule"; 747 } 748 749 public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { 750 return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; 751 } 752 753 754}