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>List</b> Resource 282 * (infrastructure.documents) 283 * 284 * <p> 285 * <b>Definition:</b> 286 * A set of information summarized from a list of other resources. 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/List">http://hl7.org/fhir/profiles/List</a> 297 * </p> 298 * 299 */ 300@ResourceDef(name="List", profile="http://hl7.org/fhir/profiles/List", id="list") 301public class ListResource extends ca.uhn.fhir.model.dstu2.resource.BaseResource 302 implements IResource { 303 304 /** 305 * Search parameter constant for <b>source</b> 306 * <p> 307 * Description: <b></b><br> 308 * Type: <b>reference</b><br> 309 * Path: <b>List.source</b><br> 310 * </p> 311 */ 312 @SearchParamDefinition(name="source", path="List.source", description="", type="reference" , providesMembershipIn={ 313 @Compartment(name="Patient") , @Compartment(name="Encounter") , @Compartment(name="RelatedPerson") } 314 ) 315 public static final String SP_SOURCE = "source"; 316 317 /** 318 * <b>Fluent Client</b> search parameter constant for <b>source</b> 319 * <p> 320 * Description: <b></b><br> 321 * Type: <b>reference</b><br> 322 * Path: <b>List.source</b><br> 323 * </p> 324 */ 325 public static final ReferenceClientParam SOURCE = new ReferenceClientParam(SP_SOURCE); 326 327 /** 328 * Search parameter constant for <b>item</b> 329 * <p> 330 * Description: <b></b><br> 331 * Type: <b>reference</b><br> 332 * Path: <b>List.entry.item</b><br> 333 * </p> 334 */ 335 @SearchParamDefinition(name="item", path="List.entry.item", description="", type="reference" ) 336 public static final String SP_ITEM = "item"; 337 338 /** 339 * <b>Fluent Client</b> search parameter constant for <b>item</b> 340 * <p> 341 * Description: <b></b><br> 342 * Type: <b>reference</b><br> 343 * Path: <b>List.entry.item</b><br> 344 * </p> 345 */ 346 public static final ReferenceClientParam ITEM = new ReferenceClientParam(SP_ITEM); 347 348 /** 349 * Search parameter constant for <b>empty-reason</b> 350 * <p> 351 * Description: <b></b><br> 352 * Type: <b>token</b><br> 353 * Path: <b>List.emptyReason</b><br> 354 * </p> 355 */ 356 @SearchParamDefinition(name="empty-reason", path="List.emptyReason", description="", type="token" ) 357 public static final String SP_EMPTY_REASON = "empty-reason"; 358 359 /** 360 * <b>Fluent Client</b> search parameter constant for <b>empty-reason</b> 361 * <p> 362 * Description: <b></b><br> 363 * Type: <b>token</b><br> 364 * Path: <b>List.emptyReason</b><br> 365 * </p> 366 */ 367 public static final TokenClientParam EMPTY_REASON = new TokenClientParam(SP_EMPTY_REASON); 368 369 /** 370 * Search parameter constant for <b>date</b> 371 * <p> 372 * Description: <b></b><br> 373 * Type: <b>date</b><br> 374 * Path: <b>List.date</b><br> 375 * </p> 376 */ 377 @SearchParamDefinition(name="date", path="List.date", description="", type="date" ) 378 public static final String SP_DATE = "date"; 379 380 /** 381 * <b>Fluent Client</b> search parameter constant for <b>date</b> 382 * <p> 383 * Description: <b></b><br> 384 * Type: <b>date</b><br> 385 * Path: <b>List.date</b><br> 386 * </p> 387 */ 388 public static final DateClientParam DATE = new DateClientParam(SP_DATE); 389 390 /** 391 * Search parameter constant for <b>code</b> 392 * <p> 393 * Description: <b></b><br> 394 * Type: <b>token</b><br> 395 * Path: <b>List.code</b><br> 396 * </p> 397 */ 398 @SearchParamDefinition(name="code", path="List.code", description="", type="token" ) 399 public static final String SP_CODE = "code"; 400 401 /** 402 * <b>Fluent Client</b> search parameter constant for <b>code</b> 403 * <p> 404 * Description: <b></b><br> 405 * Type: <b>token</b><br> 406 * Path: <b>List.code</b><br> 407 * </p> 408 */ 409 public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); 410 411 /** 412 * Search parameter constant for <b>subject</b> 413 * <p> 414 * Description: <b></b><br> 415 * Type: <b>reference</b><br> 416 * Path: <b>List.subject</b><br> 417 * </p> 418 */ 419 @SearchParamDefinition(name="subject", path="List.subject", description="", type="reference" , providesMembershipIn={ 420 @Compartment(name="Patient") , @Compartment(name="RelatedPerson") } 421 ) 422 public static final String SP_SUBJECT = "subject"; 423 424 /** 425 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 426 * <p> 427 * Description: <b></b><br> 428 * Type: <b>reference</b><br> 429 * Path: <b>List.subject</b><br> 430 * </p> 431 */ 432 public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); 433 434 /** 435 * Search parameter constant for <b>patient</b> 436 * <p> 437 * Description: <b></b><br> 438 * Type: <b>reference</b><br> 439 * Path: <b>List.subject</b><br> 440 * </p> 441 */ 442 @SearchParamDefinition(name="patient", path="List.subject", description="", type="reference" , target={ 443 ca.uhn.fhir.model.dstu2.resource.Patient.class } 444 ) 445 public static final String SP_PATIENT = "patient"; 446 447 /** 448 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 449 * <p> 450 * Description: <b></b><br> 451 * Type: <b>reference</b><br> 452 * Path: <b>List.subject</b><br> 453 * </p> 454 */ 455 public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); 456 457 /** 458 * Search parameter constant for <b>status</b> 459 * <p> 460 * Description: <b></b><br> 461 * Type: <b>token</b><br> 462 * Path: <b>List.status</b><br> 463 * </p> 464 */ 465 @SearchParamDefinition(name="status", path="List.status", description="", type="token" ) 466 public static final String SP_STATUS = "status"; 467 468 /** 469 * <b>Fluent Client</b> search parameter constant for <b>status</b> 470 * <p> 471 * Description: <b></b><br> 472 * Type: <b>token</b><br> 473 * Path: <b>List.status</b><br> 474 * </p> 475 */ 476 public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); 477 478 /** 479 * Search parameter constant for <b>title</b> 480 * <p> 481 * Description: <b></b><br> 482 * Type: <b>string</b><br> 483 * Path: <b>List.title</b><br> 484 * </p> 485 */ 486 @SearchParamDefinition(name="title", path="List.title", description="", type="string" ) 487 public static final String SP_TITLE = "title"; 488 489 /** 490 * <b>Fluent Client</b> search parameter constant for <b>title</b> 491 * <p> 492 * Description: <b></b><br> 493 * Type: <b>string</b><br> 494 * Path: <b>List.title</b><br> 495 * </p> 496 */ 497 public static final StringClientParam TITLE = new StringClientParam(SP_TITLE); 498 499 /** 500 * Search parameter constant for <b>notes</b> 501 * <p> 502 * Description: <b></b><br> 503 * Type: <b>string</b><br> 504 * Path: <b>List.note</b><br> 505 * </p> 506 */ 507 @SearchParamDefinition(name="notes", path="List.note", description="", type="string" ) 508 public static final String SP_NOTES = "notes"; 509 510 /** 511 * <b>Fluent Client</b> search parameter constant for <b>notes</b> 512 * <p> 513 * Description: <b></b><br> 514 * Type: <b>string</b><br> 515 * Path: <b>List.note</b><br> 516 * </p> 517 */ 518 public static final StringClientParam NOTES = new StringClientParam(SP_NOTES); 519 520 /** 521 * Search parameter constant for <b>encounter</b> 522 * <p> 523 * Description: <b></b><br> 524 * Type: <b>reference</b><br> 525 * Path: <b>List.encounter</b><br> 526 * </p> 527 */ 528 @SearchParamDefinition(name="encounter", path="List.encounter", description="", type="reference" ) 529 public static final String SP_ENCOUNTER = "encounter"; 530 531 /** 532 * <b>Fluent Client</b> search parameter constant for <b>encounter</b> 533 * <p> 534 * Description: <b></b><br> 535 * Type: <b>reference</b><br> 536 * Path: <b>List.encounter</b><br> 537 * </p> 538 */ 539 public static final ReferenceClientParam ENCOUNTER = new ReferenceClientParam(SP_ENCOUNTER); 540 541 542 /** 543 * Constant for fluent queries to be used to add include statements. Specifies 544 * the path value of "<b>List:encounter</b>". 545 */ 546 public static final Include INCLUDE_ENCOUNTER = new Include("List:encounter"); 547 548 /** 549 * Constant for fluent queries to be used to add include statements. Specifies 550 * the path value of "<b>List:item</b>". 551 */ 552 public static final Include INCLUDE_ITEM = new Include("List:item"); 553 554 /** 555 * Constant for fluent queries to be used to add include statements. Specifies 556 * the path value of "<b>List:patient</b>". 557 */ 558 public static final Include INCLUDE_PATIENT = new Include("List:patient"); 559 560 /** 561 * Constant for fluent queries to be used to add include statements. Specifies 562 * the path value of "<b>List:source</b>". 563 */ 564 public static final Include INCLUDE_SOURCE = new Include("List:source"); 565 566 /** 567 * Constant for fluent queries to be used to add include statements. Specifies 568 * the path value of "<b>List:subject</b>". 569 */ 570 public static final Include INCLUDE_SUBJECT = new Include("List:subject"); 571 572 573 @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 574 @Description( 575 shortDefinition="id", 576 formalDefinition="Identifier for the List assigned for business purposes outside the context of FHIR." 577 ) 578 private java.util.List<IdentifierDt> myIdentifier; 579 580 @Child(name="title", type=StringDt.class, order=1, min=0, max=1, summary=true, modifier=false) 581 @Description( 582 shortDefinition="", 583 formalDefinition="A label for the list assigned by the author" 584 ) 585 private StringDt myTitle; 586 587 @Child(name="code", type=CodeableConceptDt.class, order=2, min=0, max=1, summary=true, modifier=false) 588 @Description( 589 shortDefinition="what", 590 formalDefinition="This code defines the purpose of the list - why it was created" 591 ) 592 private CodeableConceptDt myCode; 593 594 @Child(name="subject", order=3, min=0, max=1, summary=true, modifier=false, type={ 595 ca.uhn.fhir.model.dstu2.resource.Patient.class, ca.uhn.fhir.model.dstu2.resource.Group.class, ca.uhn.fhir.model.dstu2.resource.Device.class, ca.uhn.fhir.model.dstu2.resource.Location.class }) 596 @Description( 597 shortDefinition="who.focus", 598 formalDefinition="The common subject (or patient) of the resources that are in the list, if there is one" 599 ) 600 private ResourceReferenceDt mySubject; 601 602 @Child(name="source", order=4, min=0, max=1, summary=true, modifier=false, type={ 603 ca.uhn.fhir.model.dstu2.resource.Practitioner.class, ca.uhn.fhir.model.dstu2.resource.Patient.class, ca.uhn.fhir.model.dstu2.resource.Device.class }) 604 @Description( 605 shortDefinition="who.author", 606 formalDefinition="The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list" 607 ) 608 private ResourceReferenceDt mySource; 609 610 @Child(name="encounter", order=5, min=0, max=1, summary=false, modifier=false, type={ 611 ca.uhn.fhir.model.dstu2.resource.Encounter.class }) 612 @Description( 613 shortDefinition="context", 614 formalDefinition="The encounter that is the context in which this list was created" 615 ) 616 private ResourceReferenceDt myEncounter; 617 618 @Child(name="status", type=CodeDt.class, order=6, min=1, max=1, summary=true, modifier=true) 619 @Description( 620 shortDefinition="status", 621 formalDefinition="Indicates the current state of this list" 622 ) 623 @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/list-status") 624 private BoundCodeDt<ListStatusEnum> myStatus; 625 626 @Child(name="date", type=DateTimeDt.class, order=7, min=0, max=1, summary=true, modifier=false) 627 @Description( 628 shortDefinition="when.recorded", 629 formalDefinition="The date that the list was prepared" 630 ) 631 private DateTimeDt myDate; 632 633 @Child(name="orderedBy", type=CodeableConceptDt.class, order=8, min=0, max=1, summary=false, modifier=false) 634 @Description( 635 shortDefinition="", 636 formalDefinition="What order applies to the items in the list" 637 ) 638 @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-list-order") 639 private BoundCodeableConceptDt<ListOrderCodesEnum> myOrderedBy; 640 641 @Child(name="mode", type=CodeDt.class, order=9, min=1, max=1, summary=true, modifier=true) 642 @Description( 643 shortDefinition="class", 644 formalDefinition="How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted" 645 ) 646 @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/list-mode") 647 private BoundCodeDt<ListModeEnum> myMode; 648 649 @Child(name="note", type=StringDt.class, order=10, min=0, max=1, summary=false, modifier=false) 650 @Description( 651 shortDefinition="", 652 formalDefinition="Comments that apply to the overall list" 653 ) 654 private StringDt myNote; 655 656 @Child(name="entry", order=11, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 657 @Description( 658 shortDefinition="", 659 formalDefinition="Entries in this list" 660 ) 661 private java.util.List<Entry> myEntry; 662 663 @Child(name="emptyReason", type=CodeableConceptDt.class, order=12, min=0, max=1, summary=false, modifier=false) 664 @Description( 665 shortDefinition="", 666 formalDefinition="If the list is empty, why the list is empty" 667 ) 668 @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-list-empty-reason") 669 private CodeableConceptDt myEmptyReason; 670 671 672 @Override 673 public boolean isEmpty() { 674 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myTitle, myCode, mySubject, mySource, myEncounter, myStatus, myDate, myOrderedBy, myMode, myNote, myEntry, myEmptyReason); 675 } 676 677 @Override 678 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 679 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myTitle, myCode, mySubject, mySource, myEncounter, myStatus, myDate, myOrderedBy, myMode, myNote, myEntry, myEmptyReason); 680 } 681 682 /** 683 * Gets the value(s) for <b>identifier</b> (id). 684 * creating it if it does 685 * not exist. Will not return <code>null</code>. 686 * 687 * <p> 688 * <b>Definition:</b> 689 * Identifier for the List assigned for business purposes outside the context of FHIR. 690 * </p> 691 */ 692 public java.util.List<IdentifierDt> getIdentifier() { 693 if (myIdentifier == null) { 694 myIdentifier = new java.util.ArrayList<IdentifierDt>(); 695 } 696 return myIdentifier; 697 } 698 699 /** 700 * Sets the value(s) for <b>identifier</b> (id) 701 * 702 * <p> 703 * <b>Definition:</b> 704 * Identifier for the List assigned for business purposes outside the context of FHIR. 705 * </p> 706 */ 707 public ListResource setIdentifier(java.util.List<IdentifierDt> theValue) { 708 myIdentifier = theValue; 709 return this; 710 } 711 712 713 714 /** 715 * Adds and returns a new value for <b>identifier</b> (id) 716 * 717 * <p> 718 * <b>Definition:</b> 719 * Identifier for the List assigned for business purposes outside the context of FHIR. 720 * </p> 721 */ 722 public IdentifierDt addIdentifier() { 723 IdentifierDt newType = new IdentifierDt(); 724 getIdentifier().add(newType); 725 return newType; 726 } 727 728 /** 729 * Adds a given new value for <b>identifier</b> (id) 730 * 731 * <p> 732 * <b>Definition:</b> 733 * Identifier for the List assigned for business purposes outside the context of FHIR. 734 * </p> 735 * @param theValue The identifier to add (must not be <code>null</code>) 736 */ 737 public ListResource addIdentifier(IdentifierDt theValue) { 738 if (theValue == null) { 739 throw new NullPointerException("theValue must not be null"); 740 } 741 getIdentifier().add(theValue); 742 return this; 743 } 744 745 /** 746 * Gets the first repetition for <b>identifier</b> (id), 747 * creating it if it does not already exist. 748 * 749 * <p> 750 * <b>Definition:</b> 751 * Identifier for the List assigned for business purposes outside the context of FHIR. 752 * </p> 753 */ 754 public IdentifierDt getIdentifierFirstRep() { 755 if (getIdentifier().isEmpty()) { 756 return addIdentifier(); 757 } 758 return getIdentifier().get(0); 759 } 760 761 /** 762 * Gets the value(s) for <b>title</b> (). 763 * creating it if it does 764 * not exist. Will not return <code>null</code>. 765 * 766 * <p> 767 * <b>Definition:</b> 768 * A label for the list assigned by the author 769 * </p> 770 */ 771 public StringDt getTitleElement() { 772 if (myTitle == null) { 773 myTitle = new StringDt(); 774 } 775 return myTitle; 776 } 777 778 779 /** 780 * Gets the value(s) for <b>title</b> (). 781 * creating it if it does 782 * not exist. This method may return <code>null</code>. 783 * 784 * <p> 785 * <b>Definition:</b> 786 * A label for the list assigned by the author 787 * </p> 788 */ 789 public String getTitle() { 790 return getTitleElement().getValue(); 791 } 792 793 /** 794 * Sets the value(s) for <b>title</b> () 795 * 796 * <p> 797 * <b>Definition:</b> 798 * A label for the list assigned by the author 799 * </p> 800 */ 801 public ListResource setTitle(StringDt theValue) { 802 myTitle = theValue; 803 return this; 804 } 805 806 807 808 /** 809 * Sets the value for <b>title</b> () 810 * 811 * <p> 812 * <b>Definition:</b> 813 * A label for the list assigned by the author 814 * </p> 815 */ 816 public ListResource setTitle( String theString) { 817 myTitle = new StringDt(theString); 818 return this; 819 } 820 821 822 /** 823 * Gets the value(s) for <b>code</b> (what). 824 * creating it if it does 825 * not exist. Will not return <code>null</code>. 826 * 827 * <p> 828 * <b>Definition:</b> 829 * This code defines the purpose of the list - why it was created 830 * </p> 831 */ 832 public CodeableConceptDt getCode() { 833 if (myCode == null) { 834 myCode = new CodeableConceptDt(); 835 } 836 return myCode; 837 } 838 839 /** 840 * Sets the value(s) for <b>code</b> (what) 841 * 842 * <p> 843 * <b>Definition:</b> 844 * This code defines the purpose of the list - why it was created 845 * </p> 846 */ 847 public ListResource setCode(CodeableConceptDt theValue) { 848 myCode = theValue; 849 return this; 850 } 851 852 853 854 855 /** 856 * Gets the value(s) for <b>subject</b> (who.focus). 857 * creating it if it does 858 * not exist. Will not return <code>null</code>. 859 * 860 * <p> 861 * <b>Definition:</b> 862 * The common subject (or patient) of the resources that are in the list, if there is one 863 * </p> 864 */ 865 public ResourceReferenceDt getSubject() { 866 if (mySubject == null) { 867 mySubject = new ResourceReferenceDt(); 868 } 869 return mySubject; 870 } 871 872 /** 873 * Sets the value(s) for <b>subject</b> (who.focus) 874 * 875 * <p> 876 * <b>Definition:</b> 877 * The common subject (or patient) of the resources that are in the list, if there is one 878 * </p> 879 */ 880 public ListResource setSubject(ResourceReferenceDt theValue) { 881 mySubject = theValue; 882 return this; 883 } 884 885 886 887 888 /** 889 * Gets the value(s) for <b>source</b> (who.author). 890 * creating it if it does 891 * not exist. Will not return <code>null</code>. 892 * 893 * <p> 894 * <b>Definition:</b> 895 * The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list 896 * </p> 897 */ 898 public ResourceReferenceDt getSource() { 899 if (mySource == null) { 900 mySource = new ResourceReferenceDt(); 901 } 902 return mySource; 903 } 904 905 /** 906 * Sets the value(s) for <b>source</b> (who.author) 907 * 908 * <p> 909 * <b>Definition:</b> 910 * The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list 911 * </p> 912 */ 913 public ListResource setSource(ResourceReferenceDt theValue) { 914 mySource = theValue; 915 return this; 916 } 917 918 919 920 921 /** 922 * Gets the value(s) for <b>encounter</b> (context). 923 * creating it if it does 924 * not exist. Will not return <code>null</code>. 925 * 926 * <p> 927 * <b>Definition:</b> 928 * The encounter that is the context in which this list was created 929 * </p> 930 */ 931 public ResourceReferenceDt getEncounter() { 932 if (myEncounter == null) { 933 myEncounter = new ResourceReferenceDt(); 934 } 935 return myEncounter; 936 } 937 938 /** 939 * Sets the value(s) for <b>encounter</b> (context) 940 * 941 * <p> 942 * <b>Definition:</b> 943 * The encounter that is the context in which this list was created 944 * </p> 945 */ 946 public ListResource setEncounter(ResourceReferenceDt theValue) { 947 myEncounter = theValue; 948 return this; 949 } 950 951 952 953 954 /** 955 * Gets the value(s) for <b>status</b> (status). 956 * creating it if it does 957 * not exist. Will not return <code>null</code>. 958 * 959 * <p> 960 * <b>Definition:</b> 961 * Indicates the current state of this list 962 * </p> 963 */ 964 public BoundCodeDt<ListStatusEnum> getStatusElement() { 965 if (myStatus == null) { 966 myStatus = new BoundCodeDt<ListStatusEnum>(ListStatusEnum.VALUESET_BINDER); 967 } 968 return myStatus; 969 } 970 971 972 /** 973 * Gets the value(s) for <b>status</b> (status). 974 * creating it if it does 975 * not exist. This method may return <code>null</code>. 976 * 977 * <p> 978 * <b>Definition:</b> 979 * Indicates the current state of this list 980 * </p> 981 */ 982 public String getStatus() { 983 return getStatusElement().getValue(); 984 } 985 986 /** 987 * Sets the value(s) for <b>status</b> (status) 988 * 989 * <p> 990 * <b>Definition:</b> 991 * Indicates the current state of this list 992 * </p> 993 */ 994 public ListResource setStatus(BoundCodeDt<ListStatusEnum> theValue) { 995 myStatus = theValue; 996 return this; 997 } 998 999 1000 1001 /** 1002 * Sets the value(s) for <b>status</b> (status) 1003 * 1004 * <p> 1005 * <b>Definition:</b> 1006 * Indicates the current state of this list 1007 * </p> 1008 */ 1009 public ListResource setStatus(ListStatusEnum theValue) { 1010 setStatus(new BoundCodeDt<ListStatusEnum>(ListStatusEnum.VALUESET_BINDER, theValue)); 1011 1012/* 1013 getStatusElement().setValueAsEnum(theValue); 1014*/ 1015 return this; 1016 } 1017 1018 1019 /** 1020 * Gets the value(s) for <b>date</b> (when.recorded). 1021 * creating it if it does 1022 * not exist. Will not return <code>null</code>. 1023 * 1024 * <p> 1025 * <b>Definition:</b> 1026 * The date that the list was prepared 1027 * </p> 1028 */ 1029 public DateTimeDt getDateElement() { 1030 if (myDate == null) { 1031 myDate = new DateTimeDt(); 1032 } 1033 return myDate; 1034 } 1035 1036 1037 /** 1038 * Gets the value(s) for <b>date</b> (when.recorded). 1039 * creating it if it does 1040 * not exist. This method may return <code>null</code>. 1041 * 1042 * <p> 1043 * <b>Definition:</b> 1044 * The date that the list was prepared 1045 * </p> 1046 */ 1047 public Date getDate() { 1048 return getDateElement().getValue(); 1049 } 1050 1051 /** 1052 * Sets the value(s) for <b>date</b> (when.recorded) 1053 * 1054 * <p> 1055 * <b>Definition:</b> 1056 * The date that the list was prepared 1057 * </p> 1058 */ 1059 public ListResource setDate(DateTimeDt theValue) { 1060 myDate = theValue; 1061 return this; 1062 } 1063 1064 1065 1066 /** 1067 * Sets the value for <b>date</b> (when.recorded) 1068 * 1069 * <p> 1070 * <b>Definition:</b> 1071 * The date that the list was prepared 1072 * </p> 1073 */ 1074 public ListResource setDate( Date theDate, TemporalPrecisionEnum thePrecision) { 1075 myDate = new DateTimeDt(theDate, thePrecision); 1076 return this; 1077 } 1078 1079 /** 1080 * Sets the value for <b>date</b> (when.recorded) 1081 * 1082 * <p> 1083 * <b>Definition:</b> 1084 * The date that the list was prepared 1085 * </p> 1086 */ 1087 public ListResource setDateWithSecondsPrecision( Date theDate) { 1088 myDate = new DateTimeDt(theDate); 1089 return this; 1090 } 1091 1092 1093 /** 1094 * Gets the value(s) for <b>orderedBy</b> (). 1095 * creating it if it does 1096 * not exist. Will not return <code>null</code>. 1097 * 1098 * <p> 1099 * <b>Definition:</b> 1100 * What order applies to the items in the list 1101 * </p> 1102 */ 1103 public BoundCodeableConceptDt<ListOrderCodesEnum> getOrderedBy() { 1104 if (myOrderedBy == null) { 1105 myOrderedBy = new BoundCodeableConceptDt<ListOrderCodesEnum>(ListOrderCodesEnum.VALUESET_BINDER); 1106 } 1107 return myOrderedBy; 1108 } 1109 1110 /** 1111 * Sets the value(s) for <b>orderedBy</b> () 1112 * 1113 * <p> 1114 * <b>Definition:</b> 1115 * What order applies to the items in the list 1116 * </p> 1117 */ 1118 public ListResource setOrderedBy(BoundCodeableConceptDt<ListOrderCodesEnum> theValue) { 1119 myOrderedBy = theValue; 1120 return this; 1121 } 1122 1123 1124 1125 /** 1126 * Sets the value(s) for <b>orderedBy</b> () 1127 * 1128 * <p> 1129 * <b>Definition:</b> 1130 * What order applies to the items in the list 1131 * </p> 1132 */ 1133 public ListResource setOrderedBy(ListOrderCodesEnum theValue) { 1134 setOrderedBy(new BoundCodeableConceptDt<ListOrderCodesEnum>(ListOrderCodesEnum.VALUESET_BINDER, theValue)); 1135 1136/* 1137 getOrderedBy().setValueAsEnum(theValue); 1138*/ 1139 return this; 1140 } 1141 1142 1143 /** 1144 * Gets the value(s) for <b>mode</b> (class). 1145 * creating it if it does 1146 * not exist. Will not return <code>null</code>. 1147 * 1148 * <p> 1149 * <b>Definition:</b> 1150 * How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted 1151 * </p> 1152 */ 1153 public BoundCodeDt<ListModeEnum> getModeElement() { 1154 if (myMode == null) { 1155 myMode = new BoundCodeDt<ListModeEnum>(ListModeEnum.VALUESET_BINDER); 1156 } 1157 return myMode; 1158 } 1159 1160 1161 /** 1162 * Gets the value(s) for <b>mode</b> (class). 1163 * creating it if it does 1164 * not exist. This method may return <code>null</code>. 1165 * 1166 * <p> 1167 * <b>Definition:</b> 1168 * How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted 1169 * </p> 1170 */ 1171 public String getMode() { 1172 return getModeElement().getValue(); 1173 } 1174 1175 /** 1176 * Sets the value(s) for <b>mode</b> (class) 1177 * 1178 * <p> 1179 * <b>Definition:</b> 1180 * How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted 1181 * </p> 1182 */ 1183 public ListResource setMode(BoundCodeDt<ListModeEnum> theValue) { 1184 myMode = theValue; 1185 return this; 1186 } 1187 1188 1189 1190 /** 1191 * Sets the value(s) for <b>mode</b> (class) 1192 * 1193 * <p> 1194 * <b>Definition:</b> 1195 * How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted 1196 * </p> 1197 */ 1198 public ListResource setMode(ListModeEnum theValue) { 1199 setMode(new BoundCodeDt<ListModeEnum>(ListModeEnum.VALUESET_BINDER, theValue)); 1200 1201/* 1202 getModeElement().setValueAsEnum(theValue); 1203*/ 1204 return this; 1205 } 1206 1207 1208 /** 1209 * Gets the value(s) for <b>note</b> (). 1210 * creating it if it does 1211 * not exist. Will not return <code>null</code>. 1212 * 1213 * <p> 1214 * <b>Definition:</b> 1215 * Comments that apply to the overall list 1216 * </p> 1217 */ 1218 public StringDt getNoteElement() { 1219 if (myNote == null) { 1220 myNote = new StringDt(); 1221 } 1222 return myNote; 1223 } 1224 1225 1226 /** 1227 * Gets the value(s) for <b>note</b> (). 1228 * creating it if it does 1229 * not exist. This method may return <code>null</code>. 1230 * 1231 * <p> 1232 * <b>Definition:</b> 1233 * Comments that apply to the overall list 1234 * </p> 1235 */ 1236 public String getNote() { 1237 return getNoteElement().getValue(); 1238 } 1239 1240 /** 1241 * Sets the value(s) for <b>note</b> () 1242 * 1243 * <p> 1244 * <b>Definition:</b> 1245 * Comments that apply to the overall list 1246 * </p> 1247 */ 1248 public ListResource setNote(StringDt theValue) { 1249 myNote = theValue; 1250 return this; 1251 } 1252 1253 1254 1255 /** 1256 * Sets the value for <b>note</b> () 1257 * 1258 * <p> 1259 * <b>Definition:</b> 1260 * Comments that apply to the overall list 1261 * </p> 1262 */ 1263 public ListResource setNote( String theString) { 1264 myNote = new StringDt(theString); 1265 return this; 1266 } 1267 1268 1269 /** 1270 * Gets the value(s) for <b>entry</b> (). 1271 * creating it if it does 1272 * not exist. Will not return <code>null</code>. 1273 * 1274 * <p> 1275 * <b>Definition:</b> 1276 * Entries in this list 1277 * </p> 1278 */ 1279 public java.util.List<Entry> getEntry() { 1280 if (myEntry == null) { 1281 myEntry = new java.util.ArrayList<Entry>(); 1282 } 1283 return myEntry; 1284 } 1285 1286 /** 1287 * Sets the value(s) for <b>entry</b> () 1288 * 1289 * <p> 1290 * <b>Definition:</b> 1291 * Entries in this list 1292 * </p> 1293 */ 1294 public ListResource setEntry(java.util.List<Entry> theValue) { 1295 myEntry = theValue; 1296 return this; 1297 } 1298 1299 1300 1301 /** 1302 * Adds and returns a new value for <b>entry</b> () 1303 * 1304 * <p> 1305 * <b>Definition:</b> 1306 * Entries in this list 1307 * </p> 1308 */ 1309 public Entry addEntry() { 1310 Entry newType = new Entry(); 1311 getEntry().add(newType); 1312 return newType; 1313 } 1314 1315 /** 1316 * Adds a given new value for <b>entry</b> () 1317 * 1318 * <p> 1319 * <b>Definition:</b> 1320 * Entries in this list 1321 * </p> 1322 * @param theValue The entry to add (must not be <code>null</code>) 1323 */ 1324 public ListResource addEntry(Entry theValue) { 1325 if (theValue == null) { 1326 throw new NullPointerException("theValue must not be null"); 1327 } 1328 getEntry().add(theValue); 1329 return this; 1330 } 1331 1332 /** 1333 * Gets the first repetition for <b>entry</b> (), 1334 * creating it if it does not already exist. 1335 * 1336 * <p> 1337 * <b>Definition:</b> 1338 * Entries in this list 1339 * </p> 1340 */ 1341 public Entry getEntryFirstRep() { 1342 if (getEntry().isEmpty()) { 1343 return addEntry(); 1344 } 1345 return getEntry().get(0); 1346 } 1347 1348 /** 1349 * Gets the value(s) for <b>emptyReason</b> (). 1350 * creating it if it does 1351 * not exist. Will not return <code>null</code>. 1352 * 1353 * <p> 1354 * <b>Definition:</b> 1355 * If the list is empty, why the list is empty 1356 * </p> 1357 */ 1358 public CodeableConceptDt getEmptyReason() { 1359 if (myEmptyReason == null) { 1360 myEmptyReason = new CodeableConceptDt(); 1361 } 1362 return myEmptyReason; 1363 } 1364 1365 /** 1366 * Sets the value(s) for <b>emptyReason</b> () 1367 * 1368 * <p> 1369 * <b>Definition:</b> 1370 * If the list is empty, why the list is empty 1371 * </p> 1372 */ 1373 public ListResource setEmptyReason(CodeableConceptDt theValue) { 1374 myEmptyReason = theValue; 1375 return this; 1376 } 1377 1378 1379 1380 1381 /** 1382 * Block class for child element: <b>List.entry</b> () 1383 * 1384 * <p> 1385 * <b>Definition:</b> 1386 * Entries in this list 1387 * </p> 1388 */ 1389 @Block() 1390 public static class Entry 1391 extends BaseIdentifiableElement implements IResourceBlock { 1392 1393 @Child(name="flag", type=CodeableConceptDt.class, order=0, min=0, max=1, summary=false, modifier=false) 1394 @Description( 1395 shortDefinition="", 1396 formalDefinition="The flag allows the system constructing the list to indicate the role and significance of the item in the list" 1397 ) 1398 private CodeableConceptDt myFlag; 1399 1400 @Child(name="deleted", type=BooleanDt.class, order=1, min=0, max=1, summary=false, modifier=true) 1401 @Description( 1402 shortDefinition="", 1403 formalDefinition="True if this item is marked as deleted in the list." 1404 ) 1405 private BooleanDt myDeleted; 1406 1407 @Child(name="date", type=DateTimeDt.class, order=2, min=0, max=1, summary=false, modifier=false) 1408 @Description( 1409 shortDefinition="", 1410 formalDefinition="When this item was added to the list" 1411 ) 1412 private DateTimeDt myDate; 1413 1414 @Child(name="item", order=3, min=1, max=1, summary=false, modifier=false, type={ 1415 IResource.class }) 1416 @Description( 1417 shortDefinition="", 1418 formalDefinition="A reference to the actual resource from which data was derived" 1419 ) 1420 private ResourceReferenceDt myItem; 1421 1422 1423 @Override 1424 public boolean isEmpty() { 1425 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myFlag, myDeleted, myDate, myItem); 1426 } 1427 1428 @Override 1429 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 1430 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myFlag, myDeleted, myDate, myItem); 1431 } 1432 1433 /** 1434 * Gets the value(s) for <b>flag</b> (). 1435 * creating it if it does 1436 * not exist. Will not return <code>null</code>. 1437 * 1438 * <p> 1439 * <b>Definition:</b> 1440 * The flag allows the system constructing the list to indicate the role and significance of the item in the list 1441 * </p> 1442 */ 1443 public CodeableConceptDt getFlag() { 1444 if (myFlag == null) { 1445 myFlag = new CodeableConceptDt(); 1446 } 1447 return myFlag; 1448 } 1449 1450 /** 1451 * Sets the value(s) for <b>flag</b> () 1452 * 1453 * <p> 1454 * <b>Definition:</b> 1455 * The flag allows the system constructing the list to indicate the role and significance of the item in the list 1456 * </p> 1457 */ 1458 public Entry setFlag(CodeableConceptDt theValue) { 1459 myFlag = theValue; 1460 return this; 1461 } 1462 1463 1464 1465 1466 /** 1467 * Gets the value(s) for <b>deleted</b> (). 1468 * creating it if it does 1469 * not exist. Will not return <code>null</code>. 1470 * 1471 * <p> 1472 * <b>Definition:</b> 1473 * True if this item is marked as deleted in the list. 1474 * </p> 1475 */ 1476 public BooleanDt getDeletedElement() { 1477 if (myDeleted == null) { 1478 myDeleted = new BooleanDt(); 1479 } 1480 return myDeleted; 1481 } 1482 1483 1484 /** 1485 * Gets the value(s) for <b>deleted</b> (). 1486 * creating it if it does 1487 * not exist. This method may return <code>null</code>. 1488 * 1489 * <p> 1490 * <b>Definition:</b> 1491 * True if this item is marked as deleted in the list. 1492 * </p> 1493 */ 1494 public Boolean getDeleted() { 1495 return getDeletedElement().getValue(); 1496 } 1497 1498 /** 1499 * Sets the value(s) for <b>deleted</b> () 1500 * 1501 * <p> 1502 * <b>Definition:</b> 1503 * True if this item is marked as deleted in the list. 1504 * </p> 1505 */ 1506 public Entry setDeleted(BooleanDt theValue) { 1507 myDeleted = theValue; 1508 return this; 1509 } 1510 1511 1512 1513 /** 1514 * Sets the value for <b>deleted</b> () 1515 * 1516 * <p> 1517 * <b>Definition:</b> 1518 * True if this item is marked as deleted in the list. 1519 * </p> 1520 */ 1521 public Entry setDeleted( boolean theBoolean) { 1522 myDeleted = new BooleanDt(theBoolean); 1523 return this; 1524 } 1525 1526 1527 /** 1528 * Gets the value(s) for <b>date</b> (). 1529 * creating it if it does 1530 * not exist. Will not return <code>null</code>. 1531 * 1532 * <p> 1533 * <b>Definition:</b> 1534 * When this item was added to the list 1535 * </p> 1536 */ 1537 public DateTimeDt getDateElement() { 1538 if (myDate == null) { 1539 myDate = new DateTimeDt(); 1540 } 1541 return myDate; 1542 } 1543 1544 1545 /** 1546 * Gets the value(s) for <b>date</b> (). 1547 * creating it if it does 1548 * not exist. This method may return <code>null</code>. 1549 * 1550 * <p> 1551 * <b>Definition:</b> 1552 * When this item was added to the list 1553 * </p> 1554 */ 1555 public Date getDate() { 1556 return getDateElement().getValue(); 1557 } 1558 1559 /** 1560 * Sets the value(s) for <b>date</b> () 1561 * 1562 * <p> 1563 * <b>Definition:</b> 1564 * When this item was added to the list 1565 * </p> 1566 */ 1567 public Entry setDate(DateTimeDt theValue) { 1568 myDate = theValue; 1569 return this; 1570 } 1571 1572 1573 1574 /** 1575 * Sets the value for <b>date</b> () 1576 * 1577 * <p> 1578 * <b>Definition:</b> 1579 * When this item was added to the list 1580 * </p> 1581 */ 1582 public Entry setDate( Date theDate, TemporalPrecisionEnum thePrecision) { 1583 myDate = new DateTimeDt(theDate, thePrecision); 1584 return this; 1585 } 1586 1587 /** 1588 * Sets the value for <b>date</b> () 1589 * 1590 * <p> 1591 * <b>Definition:</b> 1592 * When this item was added to the list 1593 * </p> 1594 */ 1595 public Entry setDateWithSecondsPrecision( Date theDate) { 1596 myDate = new DateTimeDt(theDate); 1597 return this; 1598 } 1599 1600 1601 /** 1602 * Gets the value(s) for <b>item</b> (). 1603 * creating it if it does 1604 * not exist. Will not return <code>null</code>. 1605 * 1606 * <p> 1607 * <b>Definition:</b> 1608 * A reference to the actual resource from which data was derived 1609 * </p> 1610 */ 1611 public ResourceReferenceDt getItem() { 1612 if (myItem == null) { 1613 myItem = new ResourceReferenceDt(); 1614 } 1615 return myItem; 1616 } 1617 1618 /** 1619 * Sets the value(s) for <b>item</b> () 1620 * 1621 * <p> 1622 * <b>Definition:</b> 1623 * A reference to the actual resource from which data was derived 1624 * </p> 1625 */ 1626 public Entry setItem(ResourceReferenceDt theValue) { 1627 myItem = theValue; 1628 return this; 1629 } 1630 1631 1632 1633 1634 1635 1636 } 1637 1638 1639 1640 1641 @Override 1642 public String getResourceName() { 1643 return "List"; 1644 } 1645 1646 public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { 1647 return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; 1648 } 1649 1650 1651}