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>Group</b> Resource 282 * (administrative.group) 283 * 284 * <p> 285 * <b>Definition:</b> 286 * Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization. 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/Group">http://hl7.org/fhir/profiles/Group</a> 297 * </p> 298 * 299 */ 300@ResourceDef(name="Group", profile="http://hl7.org/fhir/profiles/Group", id="group") 301public class Group extends ca.uhn.fhir.model.dstu2.resource.BaseResource 302 implements IResource { 303 304 /** 305 * Search parameter constant for <b>type</b> 306 * <p> 307 * Description: <b>The type of resources the group contains</b><br> 308 * Type: <b>token</b><br> 309 * Path: <b>Group.type</b><br> 310 * </p> 311 */ 312 @SearchParamDefinition(name="type", path="Group.type", description="The type of resources the group contains", type="token" ) 313 public static final String SP_TYPE = "type"; 314 315 /** 316 * <b>Fluent Client</b> search parameter constant for <b>type</b> 317 * <p> 318 * Description: <b>The type of resources the group contains</b><br> 319 * Type: <b>token</b><br> 320 * Path: <b>Group.type</b><br> 321 * </p> 322 */ 323 public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); 324 325 /** 326 * Search parameter constant for <b>code</b> 327 * <p> 328 * Description: <b>The kind of resources contained</b><br> 329 * Type: <b>token</b><br> 330 * Path: <b>Group.code</b><br> 331 * </p> 332 */ 333 @SearchParamDefinition(name="code", path="Group.code", description="The kind of resources contained", type="token" ) 334 public static final String SP_CODE = "code"; 335 336 /** 337 * <b>Fluent Client</b> search parameter constant for <b>code</b> 338 * <p> 339 * Description: <b>The kind of resources contained</b><br> 340 * Type: <b>token</b><br> 341 * Path: <b>Group.code</b><br> 342 * </p> 343 */ 344 public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); 345 346 /** 347 * Search parameter constant for <b>actual</b> 348 * <p> 349 * Description: <b></b><br> 350 * Type: <b>token</b><br> 351 * Path: <b>Group.actual</b><br> 352 * </p> 353 */ 354 @SearchParamDefinition(name="actual", path="Group.actual", description="", type="token" ) 355 public static final String SP_ACTUAL = "actual"; 356 357 /** 358 * <b>Fluent Client</b> search parameter constant for <b>actual</b> 359 * <p> 360 * Description: <b></b><br> 361 * Type: <b>token</b><br> 362 * Path: <b>Group.actual</b><br> 363 * </p> 364 */ 365 public static final TokenClientParam ACTUAL = new TokenClientParam(SP_ACTUAL); 366 367 /** 368 * Search parameter constant for <b>identifier</b> 369 * <p> 370 * Description: <b></b><br> 371 * Type: <b>token</b><br> 372 * Path: <b>Group.identifier</b><br> 373 * </p> 374 */ 375 @SearchParamDefinition(name="identifier", path="Group.identifier", description="", type="token" ) 376 public static final String SP_IDENTIFIER = "identifier"; 377 378 /** 379 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 380 * <p> 381 * Description: <b></b><br> 382 * Type: <b>token</b><br> 383 * Path: <b>Group.identifier</b><br> 384 * </p> 385 */ 386 public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); 387 388 /** 389 * Search parameter constant for <b>member</b> 390 * <p> 391 * Description: <b></b><br> 392 * Type: <b>reference</b><br> 393 * Path: <b>Group.member.entity</b><br> 394 * </p> 395 */ 396 @SearchParamDefinition(name="member", path="Group.member.entity", description="", type="reference" , providesMembershipIn={ 397 @Compartment(name="Patient") , @Compartment(name="Encounter") , @Compartment(name="RelatedPerson") } 398 ) 399 public static final String SP_MEMBER = "member"; 400 401 /** 402 * <b>Fluent Client</b> search parameter constant for <b>member</b> 403 * <p> 404 * Description: <b></b><br> 405 * Type: <b>reference</b><br> 406 * Path: <b>Group.member.entity</b><br> 407 * </p> 408 */ 409 public static final ReferenceClientParam MEMBER = new ReferenceClientParam(SP_MEMBER); 410 411 /** 412 * Search parameter constant for <b>characteristic</b> 413 * <p> 414 * Description: <b></b><br> 415 * Type: <b>token</b><br> 416 * Path: <b>Group.characteristic.code</b><br> 417 * </p> 418 */ 419 @SearchParamDefinition(name="characteristic", path="Group.characteristic.code", description="", type="token" ) 420 public static final String SP_CHARACTERISTIC = "characteristic"; 421 422 /** 423 * <b>Fluent Client</b> search parameter constant for <b>characteristic</b> 424 * <p> 425 * Description: <b></b><br> 426 * Type: <b>token</b><br> 427 * Path: <b>Group.characteristic.code</b><br> 428 * </p> 429 */ 430 public static final TokenClientParam CHARACTERISTIC = new TokenClientParam(SP_CHARACTERISTIC); 431 432 /** 433 * Search parameter constant for <b>value</b> 434 * <p> 435 * Description: <b></b><br> 436 * Type: <b>token</b><br> 437 * Path: <b>Group.characteristic.value[x]</b><br> 438 * </p> 439 */ 440 @SearchParamDefinition(name="value", path="Group.characteristic.value[x]", description="", type="token" ) 441 public static final String SP_VALUE = "value"; 442 443 /** 444 * <b>Fluent Client</b> search parameter constant for <b>value</b> 445 * <p> 446 * Description: <b></b><br> 447 * Type: <b>token</b><br> 448 * Path: <b>Group.characteristic.value[x]</b><br> 449 * </p> 450 */ 451 public static final TokenClientParam VALUE = new TokenClientParam(SP_VALUE); 452 453 /** 454 * Search parameter constant for <b>exclude</b> 455 * <p> 456 * Description: <b></b><br> 457 * Type: <b>token</b><br> 458 * Path: <b>Group.characteristic.exclude</b><br> 459 * </p> 460 */ 461 @SearchParamDefinition(name="exclude", path="Group.characteristic.exclude", description="", type="token" ) 462 public static final String SP_EXCLUDE = "exclude"; 463 464 /** 465 * <b>Fluent Client</b> search parameter constant for <b>exclude</b> 466 * <p> 467 * Description: <b></b><br> 468 * Type: <b>token</b><br> 469 * Path: <b>Group.characteristic.exclude</b><br> 470 * </p> 471 */ 472 public static final TokenClientParam EXCLUDE = new TokenClientParam(SP_EXCLUDE); 473 474 /** 475 * Search parameter constant for <b>characteristic-value</b> 476 * <p> 477 * Description: <b>A composite of both characteristic and value</b><br> 478 * Type: <b>composite</b><br> 479 * Path: <b>characteristic & value</b><br> 480 * </p> 481 */ 482 @SearchParamDefinition(name="characteristic-value", path="characteristic & value", description="A composite of both characteristic and value", type="composite" , compositeOf={ "characteristic", "value" } ) 483 public static final String SP_CHARACTERISTIC_VALUE = "characteristic-value"; 484 485 /** 486 * <b>Fluent Client</b> search parameter constant for <b>characteristic-value</b> 487 * <p> 488 * Description: <b>A composite of both characteristic and value</b><br> 489 * Type: <b>composite</b><br> 490 * Path: <b>characteristic & value</b><br> 491 * </p> 492 */ 493 public static final CompositeClientParam<TokenClientParam, TokenClientParam> CHARACTERISTIC_VALUE = new CompositeClientParam<TokenClientParam, TokenClientParam>(SP_CHARACTERISTIC_VALUE); 494 495 496 /** 497 * Constant for fluent queries to be used to add include statements. Specifies 498 * the path value of "<b>Group:member</b>". 499 */ 500 public static final Include INCLUDE_MEMBER = new Include("Group:member"); 501 502 503 @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) 504 @Description( 505 shortDefinition="id", 506 formalDefinition="A unique business identifier for this group" 507 ) 508 private java.util.List<IdentifierDt> myIdentifier; 509 510 @Child(name="type", type=CodeDt.class, order=1, min=1, max=1, summary=true, modifier=false) 511 @Description( 512 shortDefinition="class", 513 formalDefinition="Identifies the broad classification of the kind of resources the group includes" 514 ) 515 @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/group-type") 516 private BoundCodeDt<GroupTypeEnum> myType; 517 518 @Child(name="actual", type=BooleanDt.class, order=2, min=1, max=1, summary=true, modifier=false) 519 @Description( 520 shortDefinition="", 521 formalDefinition="If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals" 522 ) 523 private BooleanDt myActual; 524 525 @Child(name="code", type=CodeableConceptDt.class, order=3, min=0, max=1, summary=true, modifier=false) 526 @Description( 527 shortDefinition="", 528 formalDefinition="Provides a specific type of resource the group includes; e.g. \"cow\", \"syringe\", etc." 529 ) 530 private CodeableConceptDt myCode; 531 532 @Child(name="name", type=StringDt.class, order=4, min=0, max=1, summary=true, modifier=false) 533 @Description( 534 shortDefinition="", 535 formalDefinition="A label assigned to the group for human identification and communication" 536 ) 537 private StringDt myName; 538 539 @Child(name="quantity", type=UnsignedIntDt.class, order=5, min=0, max=1, summary=true, modifier=false) 540 @Description( 541 shortDefinition="", 542 formalDefinition="A count of the number of resource instances that are part of the group" 543 ) 544 private UnsignedIntDt myQuantity; 545 546 @Child(name="characteristic", order=6, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 547 @Description( 548 shortDefinition="", 549 formalDefinition="Identifies the traits shared by members of the group" 550 ) 551 private java.util.List<Characteristic> myCharacteristic; 552 553 @Child(name="member", order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 554 @Description( 555 shortDefinition="", 556 formalDefinition="Identifies the resource instances that are members of the group." 557 ) 558 private java.util.List<Member> myMember; 559 560 561 @Override 562 public boolean isEmpty() { 563 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType, myActual, myCode, myName, myQuantity, myCharacteristic, myMember); 564 } 565 566 @Override 567 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 568 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myType, myActual, myCode, myName, myQuantity, myCharacteristic, myMember); 569 } 570 571 /** 572 * Gets the value(s) for <b>identifier</b> (id). 573 * creating it if it does 574 * not exist. Will not return <code>null</code>. 575 * 576 * <p> 577 * <b>Definition:</b> 578 * A unique business identifier for this group 579 * </p> 580 */ 581 public java.util.List<IdentifierDt> getIdentifier() { 582 if (myIdentifier == null) { 583 myIdentifier = new java.util.ArrayList<IdentifierDt>(); 584 } 585 return myIdentifier; 586 } 587 588 /** 589 * Sets the value(s) for <b>identifier</b> (id) 590 * 591 * <p> 592 * <b>Definition:</b> 593 * A unique business identifier for this group 594 * </p> 595 */ 596 public Group setIdentifier(java.util.List<IdentifierDt> theValue) { 597 myIdentifier = theValue; 598 return this; 599 } 600 601 602 603 /** 604 * Adds and returns a new value for <b>identifier</b> (id) 605 * 606 * <p> 607 * <b>Definition:</b> 608 * A unique business identifier for this group 609 * </p> 610 */ 611 public IdentifierDt addIdentifier() { 612 IdentifierDt newType = new IdentifierDt(); 613 getIdentifier().add(newType); 614 return newType; 615 } 616 617 /** 618 * Adds a given new value for <b>identifier</b> (id) 619 * 620 * <p> 621 * <b>Definition:</b> 622 * A unique business identifier for this group 623 * </p> 624 * @param theValue The identifier to add (must not be <code>null</code>) 625 */ 626 public Group addIdentifier(IdentifierDt theValue) { 627 if (theValue == null) { 628 throw new NullPointerException("theValue must not be null"); 629 } 630 getIdentifier().add(theValue); 631 return this; 632 } 633 634 /** 635 * Gets the first repetition for <b>identifier</b> (id), 636 * creating it if it does not already exist. 637 * 638 * <p> 639 * <b>Definition:</b> 640 * A unique business identifier for this group 641 * </p> 642 */ 643 public IdentifierDt getIdentifierFirstRep() { 644 if (getIdentifier().isEmpty()) { 645 return addIdentifier(); 646 } 647 return getIdentifier().get(0); 648 } 649 650 /** 651 * Gets the value(s) for <b>type</b> (class). 652 * creating it if it does 653 * not exist. Will not return <code>null</code>. 654 * 655 * <p> 656 * <b>Definition:</b> 657 * Identifies the broad classification of the kind of resources the group includes 658 * </p> 659 */ 660 public BoundCodeDt<GroupTypeEnum> getTypeElement() { 661 if (myType == null) { 662 myType = new BoundCodeDt<GroupTypeEnum>(GroupTypeEnum.VALUESET_BINDER); 663 } 664 return myType; 665 } 666 667 668 /** 669 * Gets the value(s) for <b>type</b> (class). 670 * creating it if it does 671 * not exist. This method may return <code>null</code>. 672 * 673 * <p> 674 * <b>Definition:</b> 675 * Identifies the broad classification of the kind of resources the group includes 676 * </p> 677 */ 678 public String getType() { 679 return getTypeElement().getValue(); 680 } 681 682 /** 683 * Sets the value(s) for <b>type</b> (class) 684 * 685 * <p> 686 * <b>Definition:</b> 687 * Identifies the broad classification of the kind of resources the group includes 688 * </p> 689 */ 690 public Group setType(BoundCodeDt<GroupTypeEnum> theValue) { 691 myType = theValue; 692 return this; 693 } 694 695 696 697 /** 698 * Sets the value(s) for <b>type</b> (class) 699 * 700 * <p> 701 * <b>Definition:</b> 702 * Identifies the broad classification of the kind of resources the group includes 703 * </p> 704 */ 705 public Group setType(GroupTypeEnum theValue) { 706 setType(new BoundCodeDt<GroupTypeEnum>(GroupTypeEnum.VALUESET_BINDER, theValue)); 707 708/* 709 getTypeElement().setValueAsEnum(theValue); 710*/ 711 return this; 712 } 713 714 715 /** 716 * Gets the value(s) for <b>actual</b> (). 717 * creating it if it does 718 * not exist. Will not return <code>null</code>. 719 * 720 * <p> 721 * <b>Definition:</b> 722 * If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals 723 * </p> 724 */ 725 public BooleanDt getActualElement() { 726 if (myActual == null) { 727 myActual = new BooleanDt(); 728 } 729 return myActual; 730 } 731 732 733 /** 734 * Gets the value(s) for <b>actual</b> (). 735 * creating it if it does 736 * not exist. This method may return <code>null</code>. 737 * 738 * <p> 739 * <b>Definition:</b> 740 * If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals 741 * </p> 742 */ 743 public Boolean getActual() { 744 return getActualElement().getValue(); 745 } 746 747 /** 748 * Sets the value(s) for <b>actual</b> () 749 * 750 * <p> 751 * <b>Definition:</b> 752 * If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals 753 * </p> 754 */ 755 public Group setActual(BooleanDt theValue) { 756 myActual = theValue; 757 return this; 758 } 759 760 761 762 /** 763 * Sets the value for <b>actual</b> () 764 * 765 * <p> 766 * <b>Definition:</b> 767 * If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals 768 * </p> 769 */ 770 public Group setActual( boolean theBoolean) { 771 myActual = new BooleanDt(theBoolean); 772 return this; 773 } 774 775 776 /** 777 * Gets the value(s) for <b>code</b> (). 778 * creating it if it does 779 * not exist. Will not return <code>null</code>. 780 * 781 * <p> 782 * <b>Definition:</b> 783 * Provides a specific type of resource the group includes; e.g. \"cow\", \"syringe\", etc. 784 * </p> 785 */ 786 public CodeableConceptDt getCode() { 787 if (myCode == null) { 788 myCode = new CodeableConceptDt(); 789 } 790 return myCode; 791 } 792 793 /** 794 * Sets the value(s) for <b>code</b> () 795 * 796 * <p> 797 * <b>Definition:</b> 798 * Provides a specific type of resource the group includes; e.g. \"cow\", \"syringe\", etc. 799 * </p> 800 */ 801 public Group setCode(CodeableConceptDt theValue) { 802 myCode = theValue; 803 return this; 804 } 805 806 807 808 809 /** 810 * Gets the value(s) for <b>name</b> (). 811 * creating it if it does 812 * not exist. Will not return <code>null</code>. 813 * 814 * <p> 815 * <b>Definition:</b> 816 * A label assigned to the group for human identification and communication 817 * </p> 818 */ 819 public StringDt getNameElement() { 820 if (myName == null) { 821 myName = new StringDt(); 822 } 823 return myName; 824 } 825 826 827 /** 828 * Gets the value(s) for <b>name</b> (). 829 * creating it if it does 830 * not exist. This method may return <code>null</code>. 831 * 832 * <p> 833 * <b>Definition:</b> 834 * A label assigned to the group for human identification and communication 835 * </p> 836 */ 837 public String getName() { 838 return getNameElement().getValue(); 839 } 840 841 /** 842 * Sets the value(s) for <b>name</b> () 843 * 844 * <p> 845 * <b>Definition:</b> 846 * A label assigned to the group for human identification and communication 847 * </p> 848 */ 849 public Group setName(StringDt theValue) { 850 myName = theValue; 851 return this; 852 } 853 854 855 856 /** 857 * Sets the value for <b>name</b> () 858 * 859 * <p> 860 * <b>Definition:</b> 861 * A label assigned to the group for human identification and communication 862 * </p> 863 */ 864 public Group setName( String theString) { 865 myName = new StringDt(theString); 866 return this; 867 } 868 869 870 /** 871 * Gets the value(s) for <b>quantity</b> (). 872 * creating it if it does 873 * not exist. Will not return <code>null</code>. 874 * 875 * <p> 876 * <b>Definition:</b> 877 * A count of the number of resource instances that are part of the group 878 * </p> 879 */ 880 public UnsignedIntDt getQuantityElement() { 881 if (myQuantity == null) { 882 myQuantity = new UnsignedIntDt(); 883 } 884 return myQuantity; 885 } 886 887 888 /** 889 * Gets the value(s) for <b>quantity</b> (). 890 * creating it if it does 891 * not exist. This method may return <code>null</code>. 892 * 893 * <p> 894 * <b>Definition:</b> 895 * A count of the number of resource instances that are part of the group 896 * </p> 897 */ 898 public Integer getQuantity() { 899 return getQuantityElement().getValue(); 900 } 901 902 /** 903 * Sets the value(s) for <b>quantity</b> () 904 * 905 * <p> 906 * <b>Definition:</b> 907 * A count of the number of resource instances that are part of the group 908 * </p> 909 */ 910 public Group setQuantity(UnsignedIntDt theValue) { 911 myQuantity = theValue; 912 return this; 913 } 914 915 916 917 /** 918 * Sets the value for <b>quantity</b> () 919 * 920 * <p> 921 * <b>Definition:</b> 922 * A count of the number of resource instances that are part of the group 923 * </p> 924 */ 925 public Group setQuantity( int theInteger) { 926 myQuantity = new UnsignedIntDt(theInteger); 927 return this; 928 } 929 930 931 /** 932 * Gets the value(s) for <b>characteristic</b> (). 933 * creating it if it does 934 * not exist. Will not return <code>null</code>. 935 * 936 * <p> 937 * <b>Definition:</b> 938 * Identifies the traits shared by members of the group 939 * </p> 940 */ 941 public java.util.List<Characteristic> getCharacteristic() { 942 if (myCharacteristic == null) { 943 myCharacteristic = new java.util.ArrayList<Characteristic>(); 944 } 945 return myCharacteristic; 946 } 947 948 /** 949 * Sets the value(s) for <b>characteristic</b> () 950 * 951 * <p> 952 * <b>Definition:</b> 953 * Identifies the traits shared by members of the group 954 * </p> 955 */ 956 public Group setCharacteristic(java.util.List<Characteristic> theValue) { 957 myCharacteristic = theValue; 958 return this; 959 } 960 961 962 963 /** 964 * Adds and returns a new value for <b>characteristic</b> () 965 * 966 * <p> 967 * <b>Definition:</b> 968 * Identifies the traits shared by members of the group 969 * </p> 970 */ 971 public Characteristic addCharacteristic() { 972 Characteristic newType = new Characteristic(); 973 getCharacteristic().add(newType); 974 return newType; 975 } 976 977 /** 978 * Adds a given new value for <b>characteristic</b> () 979 * 980 * <p> 981 * <b>Definition:</b> 982 * Identifies the traits shared by members of the group 983 * </p> 984 * @param theValue The characteristic to add (must not be <code>null</code>) 985 */ 986 public Group addCharacteristic(Characteristic theValue) { 987 if (theValue == null) { 988 throw new NullPointerException("theValue must not be null"); 989 } 990 getCharacteristic().add(theValue); 991 return this; 992 } 993 994 /** 995 * Gets the first repetition for <b>characteristic</b> (), 996 * creating it if it does not already exist. 997 * 998 * <p> 999 * <b>Definition:</b> 1000 * Identifies the traits shared by members of the group 1001 * </p> 1002 */ 1003 public Characteristic getCharacteristicFirstRep() { 1004 if (getCharacteristic().isEmpty()) { 1005 return addCharacteristic(); 1006 } 1007 return getCharacteristic().get(0); 1008 } 1009 1010 /** 1011 * Gets the value(s) for <b>member</b> (). 1012 * creating it if it does 1013 * not exist. Will not return <code>null</code>. 1014 * 1015 * <p> 1016 * <b>Definition:</b> 1017 * Identifies the resource instances that are members of the group. 1018 * </p> 1019 */ 1020 public java.util.List<Member> getMember() { 1021 if (myMember == null) { 1022 myMember = new java.util.ArrayList<Member>(); 1023 } 1024 return myMember; 1025 } 1026 1027 /** 1028 * Sets the value(s) for <b>member</b> () 1029 * 1030 * <p> 1031 * <b>Definition:</b> 1032 * Identifies the resource instances that are members of the group. 1033 * </p> 1034 */ 1035 public Group setMember(java.util.List<Member> theValue) { 1036 myMember = theValue; 1037 return this; 1038 } 1039 1040 1041 1042 /** 1043 * Adds and returns a new value for <b>member</b> () 1044 * 1045 * <p> 1046 * <b>Definition:</b> 1047 * Identifies the resource instances that are members of the group. 1048 * </p> 1049 */ 1050 public Member addMember() { 1051 Member newType = new Member(); 1052 getMember().add(newType); 1053 return newType; 1054 } 1055 1056 /** 1057 * Adds a given new value for <b>member</b> () 1058 * 1059 * <p> 1060 * <b>Definition:</b> 1061 * Identifies the resource instances that are members of the group. 1062 * </p> 1063 * @param theValue The member to add (must not be <code>null</code>) 1064 */ 1065 public Group addMember(Member theValue) { 1066 if (theValue == null) { 1067 throw new NullPointerException("theValue must not be null"); 1068 } 1069 getMember().add(theValue); 1070 return this; 1071 } 1072 1073 /** 1074 * Gets the first repetition for <b>member</b> (), 1075 * creating it if it does not already exist. 1076 * 1077 * <p> 1078 * <b>Definition:</b> 1079 * Identifies the resource instances that are members of the group. 1080 * </p> 1081 */ 1082 public Member getMemberFirstRep() { 1083 if (getMember().isEmpty()) { 1084 return addMember(); 1085 } 1086 return getMember().get(0); 1087 } 1088 1089 /** 1090 * Block class for child element: <b>Group.characteristic</b> () 1091 * 1092 * <p> 1093 * <b>Definition:</b> 1094 * Identifies the traits shared by members of the group 1095 * </p> 1096 */ 1097 @Block() 1098 public static class Characteristic 1099 extends BaseIdentifiableElement implements IResourceBlock { 1100 1101 @Child(name="code", type=CodeableConceptDt.class, order=0, min=1, max=1, summary=false, modifier=false) 1102 @Description( 1103 shortDefinition="", 1104 formalDefinition="A code that identifies the kind of trait being asserted" 1105 ) 1106 private CodeableConceptDt myCode; 1107 1108 @Child(name="value", order=1, min=1, max=1, summary=false, modifier=false, type={ 1109 CodeableConceptDt.class, BooleanDt.class, QuantityDt.class, RangeDt.class }) 1110 @Description( 1111 shortDefinition="", 1112 formalDefinition="The value of the trait that holds (or does not hold - see 'exclude') for members of the group" 1113 ) 1114 private IDatatype myValue; 1115 1116 @Child(name="exclude", type=BooleanDt.class, order=2, min=1, max=1, summary=false, modifier=true) 1117 @Description( 1118 shortDefinition="", 1119 formalDefinition="If true, indicates the characteristic is one that is NOT held by members of the group" 1120 ) 1121 private BooleanDt myExclude; 1122 1123 @Child(name="period", type=PeriodDt.class, order=3, min=0, max=1, summary=false, modifier=false) 1124 @Description( 1125 shortDefinition="", 1126 formalDefinition="The period over which the characteristic is tested; e.g. the patient had an operation during the month of June" 1127 ) 1128 private PeriodDt myPeriod; 1129 1130 1131 @Override 1132 public boolean isEmpty() { 1133 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myValue, myExclude, myPeriod); 1134 } 1135 1136 @Override 1137 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 1138 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myValue, myExclude, myPeriod); 1139 } 1140 1141 /** 1142 * Gets the value(s) for <b>code</b> (). 1143 * creating it if it does 1144 * not exist. Will not return <code>null</code>. 1145 * 1146 * <p> 1147 * <b>Definition:</b> 1148 * A code that identifies the kind of trait being asserted 1149 * </p> 1150 */ 1151 public CodeableConceptDt getCode() { 1152 if (myCode == null) { 1153 myCode = new CodeableConceptDt(); 1154 } 1155 return myCode; 1156 } 1157 1158 /** 1159 * Sets the value(s) for <b>code</b> () 1160 * 1161 * <p> 1162 * <b>Definition:</b> 1163 * A code that identifies the kind of trait being asserted 1164 * </p> 1165 */ 1166 public Characteristic setCode(CodeableConceptDt theValue) { 1167 myCode = theValue; 1168 return this; 1169 } 1170 1171 1172 1173 1174 /** 1175 * Gets the value(s) for <b>value[x]</b> (). 1176 * creating it if it does 1177 * not exist. Will not return <code>null</code>. 1178 * 1179 * <p> 1180 * <b>Definition:</b> 1181 * The value of the trait that holds (or does not hold - see 'exclude') for members of the group 1182 * </p> 1183 */ 1184 public IDatatype getValue() { 1185 return myValue; 1186 } 1187 1188 /** 1189 * Sets the value(s) for <b>value[x]</b> () 1190 * 1191 * <p> 1192 * <b>Definition:</b> 1193 * The value of the trait that holds (or does not hold - see 'exclude') for members of the group 1194 * </p> 1195 */ 1196 public Characteristic setValue(IDatatype theValue) { 1197 myValue = theValue; 1198 return this; 1199 } 1200 1201 1202 1203 1204 /** 1205 * Gets the value(s) for <b>exclude</b> (). 1206 * creating it if it does 1207 * not exist. Will not return <code>null</code>. 1208 * 1209 * <p> 1210 * <b>Definition:</b> 1211 * If true, indicates the characteristic is one that is NOT held by members of the group 1212 * </p> 1213 */ 1214 public BooleanDt getExcludeElement() { 1215 if (myExclude == null) { 1216 myExclude = new BooleanDt(); 1217 } 1218 return myExclude; 1219 } 1220 1221 1222 /** 1223 * Gets the value(s) for <b>exclude</b> (). 1224 * creating it if it does 1225 * not exist. This method may return <code>null</code>. 1226 * 1227 * <p> 1228 * <b>Definition:</b> 1229 * If true, indicates the characteristic is one that is NOT held by members of the group 1230 * </p> 1231 */ 1232 public Boolean getExclude() { 1233 return getExcludeElement().getValue(); 1234 } 1235 1236 /** 1237 * Sets the value(s) for <b>exclude</b> () 1238 * 1239 * <p> 1240 * <b>Definition:</b> 1241 * If true, indicates the characteristic is one that is NOT held by members of the group 1242 * </p> 1243 */ 1244 public Characteristic setExclude(BooleanDt theValue) { 1245 myExclude = theValue; 1246 return this; 1247 } 1248 1249 1250 1251 /** 1252 * Sets the value for <b>exclude</b> () 1253 * 1254 * <p> 1255 * <b>Definition:</b> 1256 * If true, indicates the characteristic is one that is NOT held by members of the group 1257 * </p> 1258 */ 1259 public Characteristic setExclude( boolean theBoolean) { 1260 myExclude = new BooleanDt(theBoolean); 1261 return this; 1262 } 1263 1264 1265 /** 1266 * Gets the value(s) for <b>period</b> (). 1267 * creating it if it does 1268 * not exist. Will not return <code>null</code>. 1269 * 1270 * <p> 1271 * <b>Definition:</b> 1272 * The period over which the characteristic is tested; e.g. the patient had an operation during the month of June 1273 * </p> 1274 */ 1275 public PeriodDt getPeriod() { 1276 if (myPeriod == null) { 1277 myPeriod = new PeriodDt(); 1278 } 1279 return myPeriod; 1280 } 1281 1282 /** 1283 * Sets the value(s) for <b>period</b> () 1284 * 1285 * <p> 1286 * <b>Definition:</b> 1287 * The period over which the characteristic is tested; e.g. the patient had an operation during the month of June 1288 * </p> 1289 */ 1290 public Characteristic setPeriod(PeriodDt theValue) { 1291 myPeriod = theValue; 1292 return this; 1293 } 1294 1295 1296 1297 1298 1299 1300 } 1301 1302 1303 /** 1304 * Block class for child element: <b>Group.member</b> () 1305 * 1306 * <p> 1307 * <b>Definition:</b> 1308 * Identifies the resource instances that are members of the group. 1309 * </p> 1310 */ 1311 @Block() 1312 public static class Member 1313 extends BaseIdentifiableElement implements IResourceBlock { 1314 1315 @Child(name="entity", order=0, min=1, max=1, summary=false, modifier=false, type={ 1316 ca.uhn.fhir.model.dstu2.resource.Patient.class, ca.uhn.fhir.model.dstu2.resource.Practitioner.class, ca.uhn.fhir.model.dstu2.resource.Device.class, ca.uhn.fhir.model.dstu2.resource.Medication.class, ca.uhn.fhir.model.dstu2.resource.Substance.class }) 1317 @Description( 1318 shortDefinition="", 1319 formalDefinition="A reference to the entity that is a member of the group. Must be consistent with Group.type" 1320 ) 1321 private ResourceReferenceDt myEntity; 1322 1323 @Child(name="period", type=PeriodDt.class, order=1, min=0, max=1, summary=false, modifier=false) 1324 @Description( 1325 shortDefinition="", 1326 formalDefinition="The period that the member was in the group, if known" 1327 ) 1328 private PeriodDt myPeriod; 1329 1330 @Child(name="inactive", type=BooleanDt.class, order=2, min=0, max=1, summary=false, modifier=false) 1331 @Description( 1332 shortDefinition="", 1333 formalDefinition="A flag to indicate that the member is no longer in the group, but previously may have been a member" 1334 ) 1335 private BooleanDt myInactive; 1336 1337 1338 @Override 1339 public boolean isEmpty() { 1340 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEntity, myPeriod, myInactive); 1341 } 1342 1343 @Override 1344 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 1345 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEntity, myPeriod, myInactive); 1346 } 1347 1348 /** 1349 * Gets the value(s) for <b>entity</b> (). 1350 * creating it if it does 1351 * not exist. Will not return <code>null</code>. 1352 * 1353 * <p> 1354 * <b>Definition:</b> 1355 * A reference to the entity that is a member of the group. Must be consistent with Group.type 1356 * </p> 1357 */ 1358 public ResourceReferenceDt getEntity() { 1359 if (myEntity == null) { 1360 myEntity = new ResourceReferenceDt(); 1361 } 1362 return myEntity; 1363 } 1364 1365 /** 1366 * Sets the value(s) for <b>entity</b> () 1367 * 1368 * <p> 1369 * <b>Definition:</b> 1370 * A reference to the entity that is a member of the group. Must be consistent with Group.type 1371 * </p> 1372 */ 1373 public Member setEntity(ResourceReferenceDt theValue) { 1374 myEntity = theValue; 1375 return this; 1376 } 1377 1378 1379 1380 1381 /** 1382 * Gets the value(s) for <b>period</b> (). 1383 * creating it if it does 1384 * not exist. Will not return <code>null</code>. 1385 * 1386 * <p> 1387 * <b>Definition:</b> 1388 * The period that the member was in the group, if known 1389 * </p> 1390 */ 1391 public PeriodDt getPeriod() { 1392 if (myPeriod == null) { 1393 myPeriod = new PeriodDt(); 1394 } 1395 return myPeriod; 1396 } 1397 1398 /** 1399 * Sets the value(s) for <b>period</b> () 1400 * 1401 * <p> 1402 * <b>Definition:</b> 1403 * The period that the member was in the group, if known 1404 * </p> 1405 */ 1406 public Member setPeriod(PeriodDt theValue) { 1407 myPeriod = theValue; 1408 return this; 1409 } 1410 1411 1412 1413 1414 /** 1415 * Gets the value(s) for <b>inactive</b> (). 1416 * creating it if it does 1417 * not exist. Will not return <code>null</code>. 1418 * 1419 * <p> 1420 * <b>Definition:</b> 1421 * A flag to indicate that the member is no longer in the group, but previously may have been a member 1422 * </p> 1423 */ 1424 public BooleanDt getInactiveElement() { 1425 if (myInactive == null) { 1426 myInactive = new BooleanDt(); 1427 } 1428 return myInactive; 1429 } 1430 1431 1432 /** 1433 * Gets the value(s) for <b>inactive</b> (). 1434 * creating it if it does 1435 * not exist. This method may return <code>null</code>. 1436 * 1437 * <p> 1438 * <b>Definition:</b> 1439 * A flag to indicate that the member is no longer in the group, but previously may have been a member 1440 * </p> 1441 */ 1442 public Boolean getInactive() { 1443 return getInactiveElement().getValue(); 1444 } 1445 1446 /** 1447 * Sets the value(s) for <b>inactive</b> () 1448 * 1449 * <p> 1450 * <b>Definition:</b> 1451 * A flag to indicate that the member is no longer in the group, but previously may have been a member 1452 * </p> 1453 */ 1454 public Member setInactive(BooleanDt theValue) { 1455 myInactive = theValue; 1456 return this; 1457 } 1458 1459 1460 1461 /** 1462 * Sets the value for <b>inactive</b> () 1463 * 1464 * <p> 1465 * <b>Definition:</b> 1466 * A flag to indicate that the member is no longer in the group, but previously may have been a member 1467 * </p> 1468 */ 1469 public Member setInactive( boolean theBoolean) { 1470 myInactive = new BooleanDt(theBoolean); 1471 return this; 1472 } 1473 1474 1475 1476 1477 } 1478 1479 1480 1481 1482 @Override 1483 public String getResourceName() { 1484 return "Group"; 1485 } 1486 1487 public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { 1488 return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; 1489 } 1490 1491 1492}