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>Flag</b> Resource 282 * (workflow.encounter) 283 * 284 * <p> 285 * <b>Definition:</b> 286 * Prospective warnings of potential issues when providing care to the patient. 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/Flag">http://hl7.org/fhir/profiles/Flag</a> 297 * </p> 298 * 299 */ 300@ResourceDef(name="Flag", profile="http://hl7.org/fhir/profiles/Flag", id="flag") 301public class Flag extends ca.uhn.fhir.model.dstu2.resource.BaseResource 302 implements IResource 303 { 304 305 /** 306 * Search parameter constant for <b>subject</b> 307 * <p> 308 * Description: <b>The identity of a subject to list flags for</b><br> 309 * Type: <b>reference</b><br> 310 * Path: <b>Flag.subject</b><br> 311 * </p> 312 */ 313 @SearchParamDefinition(name="subject", path="Flag.subject", description="The identity of a subject to list flags for", type="reference" 314 ) 315 public static final String SP_SUBJECT = "subject"; 316 317 /** 318 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 319 * <p> 320 * Description: <b>The identity of a subject to list flags for</b><br> 321 * Type: <b>reference</b><br> 322 * Path: <b>Flag.subject</b><br> 323 * </p> 324 */ 325 public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); 326 327 /** 328 * Search parameter constant for <b>patient</b> 329 * <p> 330 * Description: <b>The identity of a subject to list flags for</b><br> 331 * Type: <b>reference</b><br> 332 * Path: <b>Flag.subject</b><br> 333 * </p> 334 */ 335 @SearchParamDefinition(name="patient", path="Flag.subject", description="The identity of a subject to list flags for", type="reference" 336, providesMembershipIn={ 337 @Compartment(name="Patient") } 338, target={ 339 ca.uhn.fhir.model.dstu2.resource.Patient.class } 340 ) 341 public static final String SP_PATIENT = "patient"; 342 343 /** 344 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 345 * <p> 346 * Description: <b>The identity of a subject to list flags for</b><br> 347 * Type: <b>reference</b><br> 348 * Path: <b>Flag.subject</b><br> 349 * </p> 350 */ 351 public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); 352 353 /** 354 * Search parameter constant for <b>author</b> 355 * <p> 356 * Description: <b></b><br> 357 * Type: <b>reference</b><br> 358 * Path: <b>Flag.author</b><br> 359 * </p> 360 */ 361 @SearchParamDefinition(name="author", path="Flag.author", description="", type="reference" 362, providesMembershipIn={ 363 @Compartment(name="Encounter") , @Compartment(name="RelatedPerson") } 364 ) 365 public static final String SP_AUTHOR = "author"; 366 367 /** 368 * <b>Fluent Client</b> search parameter constant for <b>author</b> 369 * <p> 370 * Description: <b></b><br> 371 * Type: <b>reference</b><br> 372 * Path: <b>Flag.author</b><br> 373 * </p> 374 */ 375 public static final ReferenceClientParam AUTHOR = new ReferenceClientParam(SP_AUTHOR); 376 377 /** 378 * Search parameter constant for <b>date</b> 379 * <p> 380 * Description: <b></b><br> 381 * Type: <b>date</b><br> 382 * Path: <b>Flag.period</b><br> 383 * </p> 384 */ 385 @SearchParamDefinition(name="date", path="Flag.period", description="", type="date" 386 ) 387 public static final String SP_DATE = "date"; 388 389 /** 390 * <b>Fluent Client</b> search parameter constant for <b>date</b> 391 * <p> 392 * Description: <b></b><br> 393 * Type: <b>date</b><br> 394 * Path: <b>Flag.period</b><br> 395 * </p> 396 */ 397 public static final DateClientParam DATE = new DateClientParam(SP_DATE); 398 399 /** 400 * Search parameter constant for <b>encounter</b> 401 * <p> 402 * Description: <b></b><br> 403 * Type: <b>reference</b><br> 404 * Path: <b>Flag.encounter</b><br> 405 * </p> 406 */ 407 @SearchParamDefinition(name="encounter", path="Flag.encounter", description="", type="reference" 408 ) 409 public static final String SP_ENCOUNTER = "encounter"; 410 411 /** 412 * <b>Fluent Client</b> search parameter constant for <b>encounter</b> 413 * <p> 414 * Description: <b></b><br> 415 * Type: <b>reference</b><br> 416 * Path: <b>Flag.encounter</b><br> 417 * </p> 418 */ 419 public static final ReferenceClientParam ENCOUNTER = new ReferenceClientParam(SP_ENCOUNTER); 420 421 422 /** 423 * Constant for fluent queries to be used to add include statements. Specifies 424 * the path value of "<b>Flag:author</b>". 425 */ 426 public static final Include INCLUDE_AUTHOR = new Include("Flag:author"); 427 428 /** 429 * Constant for fluent queries to be used to add include statements. Specifies 430 * the path value of "<b>Flag:encounter</b>". 431 */ 432 public static final Include INCLUDE_ENCOUNTER = new Include("Flag:encounter"); 433 434 /** 435 * Constant for fluent queries to be used to add include statements. Specifies 436 * the path value of "<b>Flag:patient</b>". 437 */ 438 public static final Include INCLUDE_PATIENT = new Include("Flag:patient"); 439 440 /** 441 * Constant for fluent queries to be used to add include statements. Specifies 442 * the path value of "<b>Flag:subject</b>". 443 */ 444 public static final Include INCLUDE_SUBJECT = new Include("Flag:subject"); 445 446 447 @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) 448 @Description( 449 shortDefinition="id", 450 formalDefinition="Identifier assigned to the flag for external use (outside the FHIR environment)" 451 ) 452 private java.util.List<IdentifierDt> myIdentifier; 453 454 @Child(name="category", type=CodeableConceptDt.class, order=1, min=0, max=1, summary=true, modifier=false) 455 @Description( 456 shortDefinition="class", 457 formalDefinition="Allows an flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context." 458 ) 459 private CodeableConceptDt myCategory; 460 461 @Child(name="status", type=CodeDt.class, order=2, min=1, max=1, summary=true, modifier=true) 462 @Description( 463 shortDefinition="status", 464 formalDefinition="Supports basic workflow" 465 ) 466 @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/flag-status") 467 private BoundCodeDt<FlagStatusEnum> myStatus; 468 469 @Child(name="period", type=PeriodDt.class, order=3, min=0, max=1, summary=true, modifier=false) 470 @Description( 471 shortDefinition="context", 472 formalDefinition="The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified." 473 ) 474 private PeriodDt myPeriod; 475 476 @Child(name="subject", order=4, min=1, max=1, summary=true, modifier=false, type={ 477 ca.uhn.fhir.model.dstu2.resource.Patient.class, 478 ca.uhn.fhir.model.dstu2.resource.Location.class, 479 ca.uhn.fhir.model.dstu2.resource.Group.class, 480 ca.uhn.fhir.model.dstu2.resource.Organization.class, 481 ca.uhn.fhir.model.dstu2.resource.Practitioner.class 482 }) 483 @Description( 484 shortDefinition="who.focus", 485 formalDefinition="The patient, location, group , organization , or practitioner this is about record this flag is associated with" 486 ) 487 private ResourceReferenceDt mySubject; 488 489 @Child(name="encounter", order=5, min=0, max=1, summary=true, modifier=false, type={ 490 ca.uhn.fhir.model.dstu2.resource.Encounter.class 491 }) 492 @Description( 493 shortDefinition="context", 494 formalDefinition="This alert is only relevant during the encounter" 495 ) 496 private ResourceReferenceDt myEncounter; 497 498 @Child(name="author", order=6, min=0, max=1, summary=true, modifier=false, type={ 499 ca.uhn.fhir.model.dstu2.resource.Device.class, 500 ca.uhn.fhir.model.dstu2.resource.Organization.class, 501 ca.uhn.fhir.model.dstu2.resource.Patient.class, 502 ca.uhn.fhir.model.dstu2.resource.Practitioner.class 503 }) 504 @Description( 505 shortDefinition="who.author", 506 formalDefinition="The person, organization or device that created the flag" 507 ) 508 private ResourceReferenceDt myAuthor; 509 510 @Child(name="code", type=CodeableConceptDt.class, order=7, min=1, max=1, summary=true, modifier=false) 511 @Description( 512 shortDefinition="what", 513 formalDefinition="The coded value or textual component of the flag to display to the user" 514 ) 515 private CodeableConceptDt myCode; 516 517 518 @Override 519 public boolean isEmpty() { 520 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myCategory, myStatus, myPeriod, mySubject, myEncounter, myAuthor, myCode); 521 } 522 523 @Override 524 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 525 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myCategory, myStatus, myPeriod, mySubject, myEncounter, myAuthor, myCode); 526 } 527 528 /** 529 * Gets the value(s) for <b>identifier</b> (id). 530 * creating it if it does 531 * not exist. Will not return <code>null</code>. 532 * 533 * <p> 534 * <b>Definition:</b> 535 * Identifier assigned to the flag for external use (outside the FHIR environment) 536 * </p> 537 */ 538 public java.util.List<IdentifierDt> getIdentifier() { 539 if (myIdentifier == null) { 540 myIdentifier = new java.util.ArrayList<IdentifierDt>(); 541 } 542 return myIdentifier; 543 } 544 545 /** 546 * Sets the value(s) for <b>identifier</b> (id) 547 * 548 * <p> 549 * <b>Definition:</b> 550 * Identifier assigned to the flag for external use (outside the FHIR environment) 551 * </p> 552 */ 553 public Flag setIdentifier(java.util.List<IdentifierDt> theValue) { 554 myIdentifier = theValue; 555 return this; 556 } 557 558 559 560 /** 561 * Adds and returns a new value for <b>identifier</b> (id) 562 * 563 * <p> 564 * <b>Definition:</b> 565 * Identifier assigned to the flag for external use (outside the FHIR environment) 566 * </p> 567 */ 568 public IdentifierDt addIdentifier() { 569 IdentifierDt newType = new IdentifierDt(); 570 getIdentifier().add(newType); 571 return newType; 572 } 573 574 /** 575 * Adds a given new value for <b>identifier</b> (id) 576 * 577 * <p> 578 * <b>Definition:</b> 579 * Identifier assigned to the flag for external use (outside the FHIR environment) 580 * </p> 581 * @param theValue The identifier to add (must not be <code>null</code>) 582 */ 583 public Flag addIdentifier(IdentifierDt theValue) { 584 if (theValue == null) { 585 throw new NullPointerException("theValue must not be null"); 586 } 587 getIdentifier().add(theValue); 588 return this; 589 } 590 591 /** 592 * Gets the first repetition for <b>identifier</b> (id), 593 * creating it if it does not already exist. 594 * 595 * <p> 596 * <b>Definition:</b> 597 * Identifier assigned to the flag for external use (outside the FHIR environment) 598 * </p> 599 */ 600 public IdentifierDt getIdentifierFirstRep() { 601 if (getIdentifier().isEmpty()) { 602 return addIdentifier(); 603 } 604 return getIdentifier().get(0); 605 } 606 607 /** 608 * Gets the value(s) for <b>category</b> (class). 609 * creating it if it does 610 * not exist. Will not return <code>null</code>. 611 * 612 * <p> 613 * <b>Definition:</b> 614 * Allows an flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context. 615 * </p> 616 */ 617 public CodeableConceptDt getCategory() { 618 if (myCategory == null) { 619 myCategory = new CodeableConceptDt(); 620 } 621 return myCategory; 622 } 623 624 /** 625 * Sets the value(s) for <b>category</b> (class) 626 * 627 * <p> 628 * <b>Definition:</b> 629 * Allows an flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context. 630 * </p> 631 */ 632 public Flag setCategory(CodeableConceptDt theValue) { 633 myCategory = theValue; 634 return this; 635 } 636 637 638 639 640 /** 641 * Gets the value(s) for <b>status</b> (status). 642 * creating it if it does 643 * not exist. Will not return <code>null</code>. 644 * 645 * <p> 646 * <b>Definition:</b> 647 * Supports basic workflow 648 * </p> 649 */ 650 public BoundCodeDt<FlagStatusEnum> getStatusElement() { 651 if (myStatus == null) { 652 myStatus = new BoundCodeDt<FlagStatusEnum>(FlagStatusEnum.VALUESET_BINDER); 653 } 654 return myStatus; 655 } 656 657 658 /** 659 * Gets the value(s) for <b>status</b> (status). 660 * creating it if it does 661 * not exist. This method may return <code>null</code>. 662 * 663 * <p> 664 * <b>Definition:</b> 665 * Supports basic workflow 666 * </p> 667 */ 668 public String getStatus() { 669 return getStatusElement().getValue(); 670 } 671 672 /** 673 * Sets the value(s) for <b>status</b> (status) 674 * 675 * <p> 676 * <b>Definition:</b> 677 * Supports basic workflow 678 * </p> 679 */ 680 public Flag setStatus(BoundCodeDt<FlagStatusEnum> theValue) { 681 myStatus = theValue; 682 return this; 683 } 684 685 686 687 /** 688 * Sets the value(s) for <b>status</b> (status) 689 * 690 * <p> 691 * <b>Definition:</b> 692 * Supports basic workflow 693 * </p> 694 */ 695 public Flag setStatus(FlagStatusEnum theValue) { 696 setStatus(new BoundCodeDt<FlagStatusEnum>(FlagStatusEnum.VALUESET_BINDER, theValue)); 697 698/* 699 getStatusElement().setValueAsEnum(theValue); 700*/ 701 return this; 702 } 703 704 705 /** 706 * Gets the value(s) for <b>period</b> (context). 707 * creating it if it does 708 * not exist. Will not return <code>null</code>. 709 * 710 * <p> 711 * <b>Definition:</b> 712 * The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified. 713 * </p> 714 */ 715 public PeriodDt getPeriod() { 716 if (myPeriod == null) { 717 myPeriod = new PeriodDt(); 718 } 719 return myPeriod; 720 } 721 722 /** 723 * Sets the value(s) for <b>period</b> (context) 724 * 725 * <p> 726 * <b>Definition:</b> 727 * The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified. 728 * </p> 729 */ 730 public Flag setPeriod(PeriodDt theValue) { 731 myPeriod = theValue; 732 return this; 733 } 734 735 736 737 738 /** 739 * Gets the value(s) for <b>subject</b> (who.focus). 740 * creating it if it does 741 * not exist. Will not return <code>null</code>. 742 * 743 * <p> 744 * <b>Definition:</b> 745 * The patient, location, group , organization , or practitioner this is about record this flag is associated with 746 * </p> 747 */ 748 public ResourceReferenceDt getSubject() { 749 if (mySubject == null) { 750 mySubject = new ResourceReferenceDt(); 751 } 752 return mySubject; 753 } 754 755 /** 756 * Sets the value(s) for <b>subject</b> (who.focus) 757 * 758 * <p> 759 * <b>Definition:</b> 760 * The patient, location, group , organization , or practitioner this is about record this flag is associated with 761 * </p> 762 */ 763 public Flag setSubject(ResourceReferenceDt theValue) { 764 mySubject = theValue; 765 return this; 766 } 767 768 769 770 771 /** 772 * Gets the value(s) for <b>encounter</b> (context). 773 * creating it if it does 774 * not exist. Will not return <code>null</code>. 775 * 776 * <p> 777 * <b>Definition:</b> 778 * This alert is only relevant during the encounter 779 * </p> 780 */ 781 public ResourceReferenceDt getEncounter() { 782 if (myEncounter == null) { 783 myEncounter = new ResourceReferenceDt(); 784 } 785 return myEncounter; 786 } 787 788 /** 789 * Sets the value(s) for <b>encounter</b> (context) 790 * 791 * <p> 792 * <b>Definition:</b> 793 * This alert is only relevant during the encounter 794 * </p> 795 */ 796 public Flag setEncounter(ResourceReferenceDt theValue) { 797 myEncounter = theValue; 798 return this; 799 } 800 801 802 803 804 /** 805 * Gets the value(s) for <b>author</b> (who.author). 806 * creating it if it does 807 * not exist. Will not return <code>null</code>. 808 * 809 * <p> 810 * <b>Definition:</b> 811 * The person, organization or device that created the flag 812 * </p> 813 */ 814 public ResourceReferenceDt getAuthor() { 815 if (myAuthor == null) { 816 myAuthor = new ResourceReferenceDt(); 817 } 818 return myAuthor; 819 } 820 821 /** 822 * Sets the value(s) for <b>author</b> (who.author) 823 * 824 * <p> 825 * <b>Definition:</b> 826 * The person, organization or device that created the flag 827 * </p> 828 */ 829 public Flag setAuthor(ResourceReferenceDt theValue) { 830 myAuthor = theValue; 831 return this; 832 } 833 834 835 836 837 /** 838 * Gets the value(s) for <b>code</b> (what). 839 * creating it if it does 840 * not exist. Will not return <code>null</code>. 841 * 842 * <p> 843 * <b>Definition:</b> 844 * The coded value or textual component of the flag to display to the user 845 * </p> 846 */ 847 public CodeableConceptDt getCode() { 848 if (myCode == null) { 849 myCode = new CodeableConceptDt(); 850 } 851 return myCode; 852 } 853 854 /** 855 * Sets the value(s) for <b>code</b> (what) 856 * 857 * <p> 858 * <b>Definition:</b> 859 * The coded value or textual component of the flag to display to the user 860 * </p> 861 */ 862 public Flag setCode(CodeableConceptDt theValue) { 863 myCode = theValue; 864 return this; 865 } 866 867 868 869 870 871 872 @Override 873 public String getResourceName() { 874 return "Flag"; 875 } 876 877 public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { 878 return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; 879 } 880 881 882}