001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017package ca.uhn.fhir.model.dstu2.resource; 018 019import java.math.BigDecimal; 020import java.net.URI; 021import java.util.*; 022import ca.uhn.fhir.model.api.*; 023import ca.uhn.fhir.model.api.annotation.*; 024import ca.uhn.fhir.rest.gclient.*; 025 026import ca.uhn.fhir.model.dstu2.valueset.AccountStatusEnum; 027import ca.uhn.fhir.model.dstu2.valueset.ActionListEnum; 028import ca.uhn.fhir.model.dstu2.composite.AddressDt; 029import ca.uhn.fhir.model.dstu2.valueset.AdjudicationCodesEnum; 030import ca.uhn.fhir.model.dstu2.valueset.AdjudicationErrorCodesEnum; 031import ca.uhn.fhir.model.dstu2.valueset.AdjustmentReasonCodesEnum; 032import ca.uhn.fhir.model.dstu2.valueset.AdministrativeGenderEnum; 033import ca.uhn.fhir.model.dstu2.valueset.AdmitSourceEnum; 034import ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance; 035import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCategoryEnum; 036import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCertaintyEnum; 037import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCriticalityEnum; 038import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceSeverityEnum; 039import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceStatusEnum; 040import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceTypeEnum; 041import ca.uhn.fhir.model.dstu2.valueset.AnimalSpeciesEnum; 042import ca.uhn.fhir.model.dstu2.composite.AnnotationDt; 043import ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum; 044import ca.uhn.fhir.model.dstu2.resource.Appointment; 045import ca.uhn.fhir.model.dstu2.valueset.AppointmentStatusEnum; 046import ca.uhn.fhir.model.dstu2.valueset.AssertionDirectionTypeEnum; 047import ca.uhn.fhir.model.dstu2.valueset.AssertionOperatorTypeEnum; 048import ca.uhn.fhir.model.dstu2.valueset.AssertionResponseTypesEnum; 049import ca.uhn.fhir.model.dstu2.composite.AttachmentDt; 050import ca.uhn.fhir.model.dstu2.valueset.AuditEventActionEnum; 051import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum; 052import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectRoleEnum; 053import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectTypeEnum; 054import ca.uhn.fhir.model.dstu2.valueset.AuditEventOutcomeEnum; 055import ca.uhn.fhir.model.dstu2.valueset.AuditEventParticipantNetworkTypeEnum; 056import ca.uhn.fhir.model.dstu2.valueset.AuditEventSourceTypeEnum; 057import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum; 058import ca.uhn.fhir.model.dstu2.resource.BodySite; 059import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum; 060import ca.uhn.fhir.model.dstu2.resource.CarePlan; 061import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityCategoryEnum; 062import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityStatusEnum; 063import ca.uhn.fhir.model.dstu2.valueset.CarePlanRelationshipEnum; 064import ca.uhn.fhir.model.dstu2.valueset.CarePlanStatusEnum; 065import ca.uhn.fhir.model.dstu2.resource.Claim; 066import ca.uhn.fhir.model.dstu2.resource.ClaimResponse; 067import ca.uhn.fhir.model.dstu2.valueset.ClaimTypeEnum; 068import ca.uhn.fhir.model.dstu2.resource.ClinicalImpression; 069import ca.uhn.fhir.model.dstu2.valueset.ClinicalImpressionStatusEnum; 070import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt; 071import ca.uhn.fhir.model.dstu2.composite.CodingDt; 072import ca.uhn.fhir.model.dstu2.resource.CommunicationRequest; 073import ca.uhn.fhir.model.dstu2.valueset.CommunicationRequestStatusEnum; 074import ca.uhn.fhir.model.dstu2.valueset.CommunicationStatusEnum; 075import ca.uhn.fhir.model.dstu2.resource.Composition; 076import ca.uhn.fhir.model.dstu2.valueset.CompositionAttestationModeEnum; 077import ca.uhn.fhir.model.dstu2.valueset.CompositionStatusEnum; 078import ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum; 079import ca.uhn.fhir.model.dstu2.resource.Condition; 080import ca.uhn.fhir.model.dstu2.valueset.ConditionCategoryCodesEnum; 081import ca.uhn.fhir.model.dstu2.valueset.ConditionClinicalStatusCodesEnum; 082import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum; 083import ca.uhn.fhir.model.dstu2.valueset.ConditionalDeleteStatusEnum; 084import ca.uhn.fhir.model.dstu2.valueset.ConditionsCodesEnum; 085import ca.uhn.fhir.model.dstu2.resource.Conformance; 086import ca.uhn.fhir.model.dstu2.valueset.ConformanceEventModeEnum; 087import ca.uhn.fhir.model.dstu2.valueset.ConformanceResourceStatusEnum; 088import ca.uhn.fhir.model.dstu2.valueset.ConformanceStatementKindEnum; 089import ca.uhn.fhir.model.dstu2.composite.ContactPointDt; 090import ca.uhn.fhir.model.dstu2.valueset.ContentTypeEnum; 091import ca.uhn.fhir.model.dstu2.resource.Contract; 092import ca.uhn.fhir.model.dstu2.valueset.ContractActionCodesEnum; 093import ca.uhn.fhir.model.dstu2.valueset.ContractActorRoleCodesEnum; 094import ca.uhn.fhir.model.dstu2.valueset.ContractSubtypeCodesEnum; 095import ca.uhn.fhir.model.dstu2.valueset.ContractTermTypeCodesEnum; 096import ca.uhn.fhir.model.dstu2.valueset.ContractTypeCodesEnum; 097import ca.uhn.fhir.model.dstu2.resource.Coverage; 098import ca.uhn.fhir.model.dstu2.valueset.DataElementStringencyEnum; 099import ca.uhn.fhir.model.dstu2.valueset.DaysOfWeekEnum; 100import ca.uhn.fhir.model.dstu2.valueset.DetectedIssueSeverityEnum; 101import ca.uhn.fhir.model.dstu2.resource.Device; 102import ca.uhn.fhir.model.dstu2.resource.DeviceComponent; 103import ca.uhn.fhir.model.dstu2.resource.DeviceMetric; 104import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationStateEnum; 105import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationTypeEnum; 106import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCategoryEnum; 107import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricColorEnum; 108import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricOperationalStatusEnum; 109import ca.uhn.fhir.model.dstu2.valueset.DeviceStatusEnum; 110import ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest; 111import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestPriorityEnum; 112import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestStatusEnum; 113import ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder; 114import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderPriorityEnum; 115import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderStatusEnum; 116import ca.uhn.fhir.model.dstu2.resource.DiagnosticReport; 117import ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum; 118import ca.uhn.fhir.model.dstu2.valueset.DigitalMediaTypeEnum; 119import ca.uhn.fhir.model.dstu2.valueset.DocumentModeEnum; 120import ca.uhn.fhir.model.dstu2.resource.DocumentReference; 121import ca.uhn.fhir.model.dstu2.valueset.DocumentReferenceStatusEnum; 122import ca.uhn.fhir.model.dstu2.valueset.DocumentRelationshipTypeEnum; 123import ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt; 124import ca.uhn.fhir.model.dstu2.resource.EligibilityRequest; 125import ca.uhn.fhir.model.dstu2.resource.Encounter; 126import ca.uhn.fhir.model.dstu2.valueset.EncounterClassEnum; 127import ca.uhn.fhir.model.dstu2.valueset.EncounterLocationStatusEnum; 128import ca.uhn.fhir.model.dstu2.valueset.EncounterStateEnum; 129import ca.uhn.fhir.model.dstu2.valueset.EncounterTypeEnum; 130import ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest; 131import ca.uhn.fhir.model.dstu2.valueset.EnteralFormulaTypeCodesEnum; 132import ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare; 133import ca.uhn.fhir.model.dstu2.valueset.EpisodeOfCareStatusEnum; 134import ca.uhn.fhir.model.dstu2.valueset.ExceptionCodesEnum; 135import ca.uhn.fhir.model.dstu2.valueset.ExtensionContextEnum; 136import ca.uhn.fhir.model.dstu2.valueset.FamilyHistoryStatusEnum; 137import ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory; 138import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum; 139import ca.uhn.fhir.model.dstu2.valueset.FlagCategoryCodesEnum; 140import ca.uhn.fhir.model.dstu2.valueset.FlagStatusEnum; 141import ca.uhn.fhir.model.dstu2.valueset.FluidConsistencyTypeCodesEnum; 142import ca.uhn.fhir.model.dstu2.resource.Goal; 143import ca.uhn.fhir.model.dstu2.valueset.GoalCategoryEnum; 144import ca.uhn.fhir.model.dstu2.valueset.GoalPriorityEnum; 145import ca.uhn.fhir.model.dstu2.valueset.GoalStartEventEnum; 146import ca.uhn.fhir.model.dstu2.valueset.GoalStatusEnum; 147import ca.uhn.fhir.model.dstu2.valueset.GoalStatusReasonEnum; 148import ca.uhn.fhir.model.dstu2.resource.Group; 149import ca.uhn.fhir.model.dstu2.valueset.GroupTypeEnum; 150import ca.uhn.fhir.model.dstu2.valueset.GuideDependencyTypeEnum; 151import ca.uhn.fhir.model.dstu2.valueset.GuidePageKindEnum; 152import ca.uhn.fhir.model.dstu2.valueset.GuideResourcePurposeEnum; 153import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum; 154import ca.uhn.fhir.model.dstu2.resource.HealthcareService; 155import ca.uhn.fhir.model.dstu2.composite.HumanNameDt; 156import ca.uhn.fhir.model.dstu2.composite.IdentifierDt; 157import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum; 158import ca.uhn.fhir.model.dstu2.valueset.IdentityAssuranceLevelEnum; 159import ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection; 160import ca.uhn.fhir.model.dstu2.resource.ImagingStudy; 161import ca.uhn.fhir.model.dstu2.resource.Immunization; 162import ca.uhn.fhir.model.dstu2.valueset.ImmunizationReasonCodesEnum; 163import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRecommendationDateCriterionCodesEnum; 164import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRecommendationStatusCodesEnum; 165import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRouteCodesEnum; 166import ca.uhn.fhir.model.dstu2.valueset.InstanceAvailabilityEnum; 167import ca.uhn.fhir.model.dstu2.valueset.InterventionCodesEnum; 168import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum; 169import ca.uhn.fhir.model.dstu2.valueset.IssueTypeEnum; 170import ca.uhn.fhir.model.dstu2.valueset.KOStitleEnum; 171import ca.uhn.fhir.model.dstu2.valueset.LateralityEnum; 172import ca.uhn.fhir.model.dstu2.valueset.LinkTypeEnum; 173import ca.uhn.fhir.model.dstu2.valueset.ListModeEnum; 174import ca.uhn.fhir.model.dstu2.valueset.ListOrderCodesEnum; 175import ca.uhn.fhir.model.dstu2.valueset.ListStatusEnum; 176import ca.uhn.fhir.model.dstu2.resource.Location; 177import ca.uhn.fhir.model.dstu2.valueset.LocationModeEnum; 178import ca.uhn.fhir.model.dstu2.valueset.LocationStatusEnum; 179import ca.uhn.fhir.model.dstu2.valueset.LocationTypeEnum; 180import ca.uhn.fhir.model.dstu2.valueset.MaritalStatusCodesEnum; 181import ca.uhn.fhir.model.dstu2.valueset.MeasmntPrincipleEnum; 182import ca.uhn.fhir.model.dstu2.resource.Media; 183import ca.uhn.fhir.model.dstu2.resource.Medication; 184import ca.uhn.fhir.model.dstu2.valueset.MedicationAdministrationStatusEnum; 185import ca.uhn.fhir.model.dstu2.valueset.MedicationDispenseStatusEnum; 186import ca.uhn.fhir.model.dstu2.resource.MedicationOrder; 187import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum; 188import ca.uhn.fhir.model.dstu2.resource.MedicationStatement; 189import ca.uhn.fhir.model.dstu2.valueset.MedicationStatementStatusEnum; 190import ca.uhn.fhir.model.dstu2.valueset.MessageEventEnum; 191import ca.uhn.fhir.model.dstu2.valueset.MessageSignificanceCategoryEnum; 192import ca.uhn.fhir.model.dstu2.valueset.MessageTransportEnum; 193import ca.uhn.fhir.model.dstu2.resource.NamingSystem; 194import ca.uhn.fhir.model.dstu2.valueset.NamingSystemIdentifierTypeEnum; 195import ca.uhn.fhir.model.dstu2.valueset.NamingSystemTypeEnum; 196import ca.uhn.fhir.model.dstu2.valueset.NoteTypeEnum; 197import ca.uhn.fhir.model.dstu2.valueset.NutrientModifierCodesEnum; 198import ca.uhn.fhir.model.dstu2.resource.NutritionOrder; 199import ca.uhn.fhir.model.dstu2.valueset.NutritionOrderStatusEnum; 200import ca.uhn.fhir.model.dstu2.resource.Observation; 201import ca.uhn.fhir.model.dstu2.valueset.ObservationCategoryCodesEnum; 202import ca.uhn.fhir.model.dstu2.valueset.ObservationRelationshipTypeEnum; 203import ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum; 204import ca.uhn.fhir.model.dstu2.resource.OperationDefinition; 205import ca.uhn.fhir.model.dstu2.valueset.OperationKindEnum; 206import ca.uhn.fhir.model.dstu2.resource.OperationOutcome; 207import ca.uhn.fhir.model.dstu2.valueset.OperationParameterUseEnum; 208import ca.uhn.fhir.model.dstu2.resource.Order; 209import ca.uhn.fhir.model.dstu2.valueset.OrderStatusEnum; 210import ca.uhn.fhir.model.dstu2.resource.Organization; 211import ca.uhn.fhir.model.dstu2.valueset.OrganizationTypeEnum; 212import ca.uhn.fhir.model.dstu2.valueset.ParticipantRequiredEnum; 213import ca.uhn.fhir.model.dstu2.valueset.ParticipantStatusEnum; 214import ca.uhn.fhir.model.dstu2.valueset.ParticipantTypeEnum; 215import ca.uhn.fhir.model.dstu2.valueset.ParticipationStatusEnum; 216import ca.uhn.fhir.model.dstu2.resource.Patient; 217import ca.uhn.fhir.model.dstu2.valueset.PayeeTypeCodesEnum; 218import ca.uhn.fhir.model.dstu2.valueset.PaymentStatusCodesEnum; 219import ca.uhn.fhir.model.dstu2.valueset.PaymentTypeCodesEnum; 220import ca.uhn.fhir.model.dstu2.composite.PeriodDt; 221import ca.uhn.fhir.model.dstu2.resource.Person; 222import ca.uhn.fhir.model.dstu2.resource.Practitioner; 223import ca.uhn.fhir.model.dstu2.valueset.PractitionerRoleEnum; 224import ca.uhn.fhir.model.dstu2.valueset.PractitionerSpecialtyEnum; 225import ca.uhn.fhir.model.dstu2.valueset.PriorityCodesEnum; 226import ca.uhn.fhir.model.dstu2.resource.Procedure; 227import ca.uhn.fhir.model.dstu2.resource.ProcedureRequest; 228import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestPriorityEnum; 229import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestStatusEnum; 230import ca.uhn.fhir.model.dstu2.valueset.ProcedureStatusEnum; 231import ca.uhn.fhir.model.dstu2.resource.ProcessRequest; 232import ca.uhn.fhir.model.dstu2.valueset.ProvenanceEntityRoleEnum; 233import ca.uhn.fhir.model.dstu2.composite.QuantityDt; 234import ca.uhn.fhir.model.dstu2.resource.Questionnaire; 235import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse; 236import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireResponseStatusEnum; 237import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireStatusEnum; 238import ca.uhn.fhir.model.dstu2.composite.RangeDt; 239import ca.uhn.fhir.model.dstu2.composite.RatioDt; 240import ca.uhn.fhir.model.dstu2.valueset.ReferralMethodEnum; 241import ca.uhn.fhir.model.dstu2.resource.ReferralRequest; 242import ca.uhn.fhir.model.dstu2.valueset.ReferralStatusEnum; 243import ca.uhn.fhir.model.dstu2.resource.RelatedPerson; 244import ca.uhn.fhir.model.dstu2.valueset.RemittanceOutcomeEnum; 245import ca.uhn.fhir.model.dstu2.valueset.ResourceTypeEnum; 246import ca.uhn.fhir.model.dstu2.valueset.ResourceVersionPolicyEnum; 247import ca.uhn.fhir.model.dstu2.valueset.ResponseTypeEnum; 248import ca.uhn.fhir.model.dstu2.valueset.RestfulConformanceModeEnum; 249import ca.uhn.fhir.model.dstu2.valueset.RestfulSecurityServiceEnum; 250import ca.uhn.fhir.model.dstu2.resource.RiskAssessment; 251import ca.uhn.fhir.model.dstu2.valueset.RulesetCodesEnum; 252import ca.uhn.fhir.model.dstu2.composite.SampledDataDt; 253import ca.uhn.fhir.model.dstu2.resource.Schedule; 254import ca.uhn.fhir.model.dstu2.valueset.SearchEntryModeEnum; 255import ca.uhn.fhir.model.dstu2.valueset.SearchModifierCodeEnum; 256import ca.uhn.fhir.model.dstu2.valueset.SearchParamTypeEnum; 257import ca.uhn.fhir.model.dstu2.valueset.ServiceProvisionConditionsEnum; 258import ca.uhn.fhir.model.dstu2.composite.SignatureDt; 259import ca.uhn.fhir.model.dstu2.resource.Slot; 260import ca.uhn.fhir.model.dstu2.valueset.SlotStatusEnum; 261import ca.uhn.fhir.model.dstu2.resource.Specimen; 262import ca.uhn.fhir.model.dstu2.valueset.SpecimenCollectionMethodEnum; 263import ca.uhn.fhir.model.dstu2.valueset.SpecimenStatusEnum; 264import ca.uhn.fhir.model.dstu2.resource.StructureDefinition; 265import ca.uhn.fhir.model.dstu2.valueset.StructureDefinitionKindEnum; 266import ca.uhn.fhir.model.dstu2.valueset.SubscriptionChannelTypeEnum; 267import ca.uhn.fhir.model.dstu2.valueset.SubscriptionStatusEnum; 268import ca.uhn.fhir.model.dstu2.valueset.SubscriptionTagEnum; 269import ca.uhn.fhir.model.dstu2.resource.Substance; 270import ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum; 271import ca.uhn.fhir.model.dstu2.valueset.SupplementTypeCodesEnum; 272import ca.uhn.fhir.model.dstu2.valueset.SupplyDeliveryStatusEnum; 273import ca.uhn.fhir.model.dstu2.resource.SupplyRequest; 274import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestReasonEnum; 275import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestStatusEnum; 276import ca.uhn.fhir.model.dstu2.valueset.SurfaceCodesEnum; 277import ca.uhn.fhir.model.dstu2.valueset.SystemRestfulInteractionEnum; 278import ca.uhn.fhir.model.api.TemporalPrecisionEnum; 279import ca.uhn.fhir.model.dstu2.valueset.TextureModifiedFoodTypeCodesEnum; 280import ca.uhn.fhir.model.dstu2.valueset.TextureModifierCodesEnum; 281import ca.uhn.fhir.model.dstu2.composite.TimingDt; 282import ca.uhn.fhir.model.dstu2.valueset.TransactionModeEnum; 283import ca.uhn.fhir.model.dstu2.valueset.TypeRestfulInteractionEnum; 284import ca.uhn.fhir.model.dstu2.valueset.UDICodesEnum; 285import ca.uhn.fhir.model.dstu2.valueset.UnknownContentCodeEnum; 286import ca.uhn.fhir.model.dstu2.valueset.UseEnum; 287import ca.uhn.fhir.model.dstu2.resource.ValueSet; 288import ca.uhn.fhir.model.dstu2.valueset.VisionBaseEnum; 289import ca.uhn.fhir.model.dstu2.valueset.VisionEyesEnum; 290import ca.uhn.fhir.model.dstu2.resource.VisionPrescription; 291import ca.uhn.fhir.model.dstu2.valueset.XPathUsageTypeEnum; 292import ca.uhn.fhir.model.api.IResource; 293import ca.uhn.fhir.model.dstu2.composite.AgeDt; 294import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt; 295import ca.uhn.fhir.model.dstu2.composite.DurationDt; 296import ca.uhn.fhir.model.dstu2.composite.MoneyDt; 297import ca.uhn.fhir.model.dstu2.composite.NarrativeDt; 298import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt; 299import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt; 300import ca.uhn.fhir.model.primitive.Base64BinaryDt; 301import ca.uhn.fhir.model.primitive.BooleanDt; 302import ca.uhn.fhir.model.primitive.BoundCodeDt; 303import ca.uhn.fhir.model.primitive.CodeDt; 304import ca.uhn.fhir.model.primitive.DateDt; 305import ca.uhn.fhir.model.primitive.DateTimeDt; 306import ca.uhn.fhir.model.primitive.DecimalDt; 307import ca.uhn.fhir.model.primitive.IdDt; 308import ca.uhn.fhir.model.primitive.InstantDt; 309import ca.uhn.fhir.model.primitive.IntegerDt; 310import ca.uhn.fhir.model.primitive.OidDt; 311import ca.uhn.fhir.model.primitive.PositiveIntDt; 312import ca.uhn.fhir.model.primitive.StringDt; 313import ca.uhn.fhir.model.primitive.TimeDt; 314import ca.uhn.fhir.model.primitive.UnsignedIntDt; 315import ca.uhn.fhir.model.primitive.UriDt; 316 317 318/** 319 * HAPI/FHIR <b>RiskAssessment</b> Resource 320 * (clinical.general) 321 * 322 * <p> 323 * <b>Definition:</b> 324 * An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome. 325 * </p> 326 * 327 * <p> 328 * <b>Requirements:</b> 329 * 330 * </p> 331 * 332 * <p> 333 * <b>Profile Definition:</b> 334 * <a href="http://hl7.org/fhir/profiles/RiskAssessment">http://hl7.org/fhir/profiles/RiskAssessment</a> 335 * </p> 336 * 337 */ 338@ResourceDef(name="RiskAssessment", profile="http://hl7.org/fhir/profiles/RiskAssessment", id="riskassessment") 339public class RiskAssessment extends ca.uhn.fhir.model.dstu2.resource.BaseResource 340 implements IResource { 341 342 /** 343 * Search parameter constant for <b>identifier</b> 344 * <p> 345 * Description: <b></b><br> 346 * Type: <b>token</b><br> 347 * Path: <b>RiskAssessment.identifier</b><br> 348 * </p> 349 */ 350 @SearchParamDefinition(name="identifier", path="RiskAssessment.identifier", description="", type="token" ) 351 public static final String SP_IDENTIFIER = "identifier"; 352 353 /** 354 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 355 * <p> 356 * Description: <b></b><br> 357 * Type: <b>token</b><br> 358 * Path: <b>RiskAssessment.identifier</b><br> 359 * </p> 360 */ 361 public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); 362 363 /** 364 * Search parameter constant for <b>date</b> 365 * <p> 366 * Description: <b></b><br> 367 * Type: <b>date</b><br> 368 * Path: <b>RiskAssessment.date</b><br> 369 * </p> 370 */ 371 @SearchParamDefinition(name="date", path="RiskAssessment.date", description="", type="date" ) 372 public static final String SP_DATE = "date"; 373 374 /** 375 * <b>Fluent Client</b> search parameter constant for <b>date</b> 376 * <p> 377 * Description: <b></b><br> 378 * Type: <b>date</b><br> 379 * Path: <b>RiskAssessment.date</b><br> 380 * </p> 381 */ 382 public static final DateClientParam DATE = new DateClientParam(SP_DATE); 383 384 /** 385 * Search parameter constant for <b>encounter</b> 386 * <p> 387 * Description: <b></b><br> 388 * Type: <b>reference</b><br> 389 * Path: <b>RiskAssessment.encounter</b><br> 390 * </p> 391 */ 392 @SearchParamDefinition(name="encounter", path="RiskAssessment.encounter", description="", type="reference" ) 393 public static final String SP_ENCOUNTER = "encounter"; 394 395 /** 396 * <b>Fluent Client</b> search parameter constant for <b>encounter</b> 397 * <p> 398 * Description: <b></b><br> 399 * Type: <b>reference</b><br> 400 * Path: <b>RiskAssessment.encounter</b><br> 401 * </p> 402 */ 403 public static final ReferenceClientParam ENCOUNTER = new ReferenceClientParam(SP_ENCOUNTER); 404 405 /** 406 * Search parameter constant for <b>performer</b> 407 * <p> 408 * Description: <b></b><br> 409 * Type: <b>reference</b><br> 410 * Path: <b>RiskAssessment.performer</b><br> 411 * </p> 412 */ 413 @SearchParamDefinition(name="performer", path="RiskAssessment.performer", description="", type="reference" ) 414 public static final String SP_PERFORMER = "performer"; 415 416 /** 417 * <b>Fluent Client</b> search parameter constant for <b>performer</b> 418 * <p> 419 * Description: <b></b><br> 420 * Type: <b>reference</b><br> 421 * Path: <b>RiskAssessment.performer</b><br> 422 * </p> 423 */ 424 public static final ReferenceClientParam PERFORMER = new ReferenceClientParam(SP_PERFORMER); 425 426 /** 427 * Search parameter constant for <b>subject</b> 428 * <p> 429 * Description: <b></b><br> 430 * Type: <b>reference</b><br> 431 * Path: <b>RiskAssessment.subject</b><br> 432 * </p> 433 */ 434 @SearchParamDefinition(name="subject", path="RiskAssessment.subject", description="", type="reference" ) 435 public static final String SP_SUBJECT = "subject"; 436 437 /** 438 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 439 * <p> 440 * Description: <b></b><br> 441 * Type: <b>reference</b><br> 442 * Path: <b>RiskAssessment.subject</b><br> 443 * </p> 444 */ 445 public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); 446 447 /** 448 * Search parameter constant for <b>condition</b> 449 * <p> 450 * Description: <b></b><br> 451 * Type: <b>reference</b><br> 452 * Path: <b>RiskAssessment.condition</b><br> 453 * </p> 454 */ 455 @SearchParamDefinition(name="condition", path="RiskAssessment.condition", description="", type="reference" ) 456 public static final String SP_CONDITION = "condition"; 457 458 /** 459 * <b>Fluent Client</b> search parameter constant for <b>condition</b> 460 * <p> 461 * Description: <b></b><br> 462 * Type: <b>reference</b><br> 463 * Path: <b>RiskAssessment.condition</b><br> 464 * </p> 465 */ 466 public static final ReferenceClientParam CONDITION = new ReferenceClientParam(SP_CONDITION); 467 468 /** 469 * Search parameter constant for <b>method</b> 470 * <p> 471 * Description: <b></b><br> 472 * Type: <b>token</b><br> 473 * Path: <b>RiskAssessment.method</b><br> 474 * </p> 475 */ 476 @SearchParamDefinition(name="method", path="RiskAssessment.method", description="", type="token" ) 477 public static final String SP_METHOD = "method"; 478 479 /** 480 * <b>Fluent Client</b> search parameter constant for <b>method</b> 481 * <p> 482 * Description: <b></b><br> 483 * Type: <b>token</b><br> 484 * Path: <b>RiskAssessment.method</b><br> 485 * </p> 486 */ 487 public static final TokenClientParam METHOD = new TokenClientParam(SP_METHOD); 488 489 /** 490 * Search parameter constant for <b>patient</b> 491 * <p> 492 * Description: <b></b><br> 493 * Type: <b>reference</b><br> 494 * Path: <b>RiskAssessment.subject</b><br> 495 * </p> 496 */ 497 @SearchParamDefinition(name="patient", path="RiskAssessment.subject", description="", type="reference" ) 498 public static final String SP_PATIENT = "patient"; 499 500 /** 501 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 502 * <p> 503 * Description: <b></b><br> 504 * Type: <b>reference</b><br> 505 * Path: <b>RiskAssessment.subject</b><br> 506 * </p> 507 */ 508 public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); 509 510 511 /** 512 * Constant for fluent queries to be used to add include statements. Specifies 513 * the path value of "<b>RiskAssessment:condition</b>". 514 */ 515 public static final Include INCLUDE_CONDITION = new Include("RiskAssessment:condition"); 516 517 /** 518 * Constant for fluent queries to be used to add include statements. Specifies 519 * the path value of "<b>RiskAssessment:encounter</b>". 520 */ 521 public static final Include INCLUDE_ENCOUNTER = new Include("RiskAssessment:encounter"); 522 523 /** 524 * Constant for fluent queries to be used to add include statements. Specifies 525 * the path value of "<b>RiskAssessment:patient</b>". 526 */ 527 public static final Include INCLUDE_PATIENT = new Include("RiskAssessment:patient"); 528 529 /** 530 * Constant for fluent queries to be used to add include statements. Specifies 531 * the path value of "<b>RiskAssessment:performer</b>". 532 */ 533 public static final Include INCLUDE_PERFORMER = new Include("RiskAssessment:performer"); 534 535 /** 536 * Constant for fluent queries to be used to add include statements. Specifies 537 * the path value of "<b>RiskAssessment:subject</b>". 538 */ 539 public static final Include INCLUDE_SUBJECT = new Include("RiskAssessment:subject"); 540 541 542 @Child(name="subject", order=0, min=0, max=1, summary=true, modifier=false, type={ 543 ca.uhn.fhir.model.dstu2.resource.Patient.class, ca.uhn.fhir.model.dstu2.resource.Group.class }) 544 @Description( 545 shortDefinition="who.focus", 546 formalDefinition="The patient or group the risk assessment applies to" 547 ) 548 private ResourceReferenceDt mySubject; 549 550 @Child(name="date", type=DateTimeDt.class, order=1, min=0, max=1, summary=true, modifier=false) 551 @Description( 552 shortDefinition="when.recorded", 553 formalDefinition="The date (and possibly time) the risk assessment was performed" 554 ) 555 private DateTimeDt myDate; 556 557 @Child(name="condition", order=2, min=0, max=1, summary=true, modifier=false, type={ 558 ca.uhn.fhir.model.dstu2.resource.Condition.class }) 559 @Description( 560 shortDefinition="", 561 formalDefinition="For assessments or prognosis specific to a particular condition, indicates the condition being assessed." 562 ) 563 private ResourceReferenceDt myCondition; 564 565 @Child(name="encounter", order=3, min=0, max=1, summary=true, modifier=false, type={ 566 ca.uhn.fhir.model.dstu2.resource.Encounter.class }) 567 @Description( 568 shortDefinition="context", 569 formalDefinition="The encounter where the assessment was performed" 570 ) 571 private ResourceReferenceDt myEncounter; 572 573 @Child(name="performer", order=4, min=0, max=1, summary=true, modifier=false, type={ 574 ca.uhn.fhir.model.dstu2.resource.Practitioner.class, ca.uhn.fhir.model.dstu2.resource.Device.class }) 575 @Description( 576 shortDefinition="who.author", 577 formalDefinition="The provider or software application that performed the assessment" 578 ) 579 private ResourceReferenceDt myPerformer; 580 581 @Child(name="identifier", type=IdentifierDt.class, order=5, min=0, max=1, summary=true, modifier=false) 582 @Description( 583 shortDefinition="id", 584 formalDefinition="Business identifier assigned to the risk assessment" 585 ) 586 private IdentifierDt myIdentifier; 587 588 @Child(name="method", type=CodeableConceptDt.class, order=6, min=0, max=1, summary=true, modifier=false) 589 @Description( 590 shortDefinition="class", 591 formalDefinition="The algorithm, process or mechanism used to evaluate the risk" 592 ) 593 private CodeableConceptDt myMethod; 594 595 @Child(name="basis", order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={ 596 IResource.class }) 597 @Description( 598 shortDefinition="", 599 formalDefinition="Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.)" 600 ) 601 private java.util.List<ResourceReferenceDt> myBasis; 602 603 @Child(name="prediction", order=8, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 604 @Description( 605 shortDefinition="", 606 formalDefinition="Describes the expected outcome for the subject" 607 ) 608 private java.util.List<Prediction> myPrediction; 609 610 @Child(name="mitigation", type=StringDt.class, order=9, min=0, max=1, summary=false, modifier=false) 611 @Description( 612 shortDefinition="", 613 formalDefinition="A description of the steps that might be taken to reduce the identified risk(s)." 614 ) 615 private StringDt myMitigation; 616 617 618 @Override 619 public boolean isEmpty() { 620 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySubject, myDate, myCondition, myEncounter, myPerformer, myIdentifier, myMethod, myBasis, myPrediction, myMitigation); 621 } 622 623 @Override 624 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 625 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySubject, myDate, myCondition, myEncounter, myPerformer, myIdentifier, myMethod, myBasis, myPrediction, myMitigation); 626 } 627 628 /** 629 * Gets the value(s) for <b>subject</b> (who.focus). 630 * creating it if it does 631 * not exist. Will not return <code>null</code>. 632 * 633 * <p> 634 * <b>Definition:</b> 635 * The patient or group the risk assessment applies to 636 * </p> 637 */ 638 public ResourceReferenceDt getSubject() { 639 if (mySubject == null) { 640 mySubject = new ResourceReferenceDt(); 641 } 642 return mySubject; 643 } 644 645 /** 646 * Sets the value(s) for <b>subject</b> (who.focus) 647 * 648 * <p> 649 * <b>Definition:</b> 650 * The patient or group the risk assessment applies to 651 * </p> 652 */ 653 public RiskAssessment setSubject(ResourceReferenceDt theValue) { 654 mySubject = theValue; 655 return this; 656 } 657 658 659 660 661 /** 662 * Gets the value(s) for <b>date</b> (when.recorded). 663 * creating it if it does 664 * not exist. Will not return <code>null</code>. 665 * 666 * <p> 667 * <b>Definition:</b> 668 * The date (and possibly time) the risk assessment was performed 669 * </p> 670 */ 671 public DateTimeDt getDateElement() { 672 if (myDate == null) { 673 myDate = new DateTimeDt(); 674 } 675 return myDate; 676 } 677 678 679 /** 680 * Gets the value(s) for <b>date</b> (when.recorded). 681 * creating it if it does 682 * not exist. Will not return <code>null</code>. 683 * 684 * <p> 685 * <b>Definition:</b> 686 * The date (and possibly time) the risk assessment was performed 687 * </p> 688 */ 689 public Date getDate() { 690 return getDateElement().getValue(); 691 } 692 693 /** 694 * Sets the value(s) for <b>date</b> (when.recorded) 695 * 696 * <p> 697 * <b>Definition:</b> 698 * The date (and possibly time) the risk assessment was performed 699 * </p> 700 */ 701 public RiskAssessment setDate(DateTimeDt theValue) { 702 myDate = theValue; 703 return this; 704 } 705 706 707 708 /** 709 * Sets the value for <b>date</b> (when.recorded) 710 * 711 * <p> 712 * <b>Definition:</b> 713 * The date (and possibly time) the risk assessment was performed 714 * </p> 715 */ 716 public RiskAssessment setDate( Date theDate, TemporalPrecisionEnum thePrecision) { 717 myDate = new DateTimeDt(theDate, thePrecision); 718 return this; 719 } 720 721 /** 722 * Sets the value for <b>date</b> (when.recorded) 723 * 724 * <p> 725 * <b>Definition:</b> 726 * The date (and possibly time) the risk assessment was performed 727 * </p> 728 */ 729 public RiskAssessment setDateWithSecondsPrecision( Date theDate) { 730 myDate = new DateTimeDt(theDate); 731 return this; 732 } 733 734 735 /** 736 * Gets the value(s) for <b>condition</b> (). 737 * creating it if it does 738 * not exist. Will not return <code>null</code>. 739 * 740 * <p> 741 * <b>Definition:</b> 742 * For assessments or prognosis specific to a particular condition, indicates the condition being assessed. 743 * </p> 744 */ 745 public ResourceReferenceDt getCondition() { 746 if (myCondition == null) { 747 myCondition = new ResourceReferenceDt(); 748 } 749 return myCondition; 750 } 751 752 /** 753 * Sets the value(s) for <b>condition</b> () 754 * 755 * <p> 756 * <b>Definition:</b> 757 * For assessments or prognosis specific to a particular condition, indicates the condition being assessed. 758 * </p> 759 */ 760 public RiskAssessment setCondition(ResourceReferenceDt theValue) { 761 myCondition = theValue; 762 return this; 763 } 764 765 766 767 768 /** 769 * Gets the value(s) for <b>encounter</b> (context). 770 * creating it if it does 771 * not exist. Will not return <code>null</code>. 772 * 773 * <p> 774 * <b>Definition:</b> 775 * The encounter where the assessment was performed 776 * </p> 777 */ 778 public ResourceReferenceDt getEncounter() { 779 if (myEncounter == null) { 780 myEncounter = new ResourceReferenceDt(); 781 } 782 return myEncounter; 783 } 784 785 /** 786 * Sets the value(s) for <b>encounter</b> (context) 787 * 788 * <p> 789 * <b>Definition:</b> 790 * The encounter where the assessment was performed 791 * </p> 792 */ 793 public RiskAssessment setEncounter(ResourceReferenceDt theValue) { 794 myEncounter = theValue; 795 return this; 796 } 797 798 799 800 801 /** 802 * Gets the value(s) for <b>performer</b> (who.author). 803 * creating it if it does 804 * not exist. Will not return <code>null</code>. 805 * 806 * <p> 807 * <b>Definition:</b> 808 * The provider or software application that performed the assessment 809 * </p> 810 */ 811 public ResourceReferenceDt getPerformer() { 812 if (myPerformer == null) { 813 myPerformer = new ResourceReferenceDt(); 814 } 815 return myPerformer; 816 } 817 818 /** 819 * Sets the value(s) for <b>performer</b> (who.author) 820 * 821 * <p> 822 * <b>Definition:</b> 823 * The provider or software application that performed the assessment 824 * </p> 825 */ 826 public RiskAssessment setPerformer(ResourceReferenceDt theValue) { 827 myPerformer = theValue; 828 return this; 829 } 830 831 832 833 834 /** 835 * Gets the value(s) for <b>identifier</b> (id). 836 * creating it if it does 837 * not exist. Will not return <code>null</code>. 838 * 839 * <p> 840 * <b>Definition:</b> 841 * Business identifier assigned to the risk assessment 842 * </p> 843 */ 844 public IdentifierDt getIdentifier() { 845 if (myIdentifier == null) { 846 myIdentifier = new IdentifierDt(); 847 } 848 return myIdentifier; 849 } 850 851 /** 852 * Sets the value(s) for <b>identifier</b> (id) 853 * 854 * <p> 855 * <b>Definition:</b> 856 * Business identifier assigned to the risk assessment 857 * </p> 858 */ 859 public RiskAssessment setIdentifier(IdentifierDt theValue) { 860 myIdentifier = theValue; 861 return this; 862 } 863 864 865 866 867 /** 868 * Gets the value(s) for <b>method</b> (class). 869 * creating it if it does 870 * not exist. Will not return <code>null</code>. 871 * 872 * <p> 873 * <b>Definition:</b> 874 * The algorithm, process or mechanism used to evaluate the risk 875 * </p> 876 */ 877 public CodeableConceptDt getMethod() { 878 if (myMethod == null) { 879 myMethod = new CodeableConceptDt(); 880 } 881 return myMethod; 882 } 883 884 /** 885 * Sets the value(s) for <b>method</b> (class) 886 * 887 * <p> 888 * <b>Definition:</b> 889 * The algorithm, process or mechanism used to evaluate the risk 890 * </p> 891 */ 892 public RiskAssessment setMethod(CodeableConceptDt theValue) { 893 myMethod = theValue; 894 return this; 895 } 896 897 898 899 900 /** 901 * Gets the value(s) for <b>basis</b> (). 902 * creating it if it does 903 * not exist. Will not return <code>null</code>. 904 * 905 * <p> 906 * <b>Definition:</b> 907 * Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.) 908 * </p> 909 */ 910 public java.util.List<ResourceReferenceDt> getBasis() { 911 if (myBasis == null) { 912 myBasis = new java.util.ArrayList<ResourceReferenceDt>(); 913 } 914 return myBasis; 915 } 916 917 /** 918 * Sets the value(s) for <b>basis</b> () 919 * 920 * <p> 921 * <b>Definition:</b> 922 * Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.) 923 * </p> 924 */ 925 public RiskAssessment setBasis(java.util.List<ResourceReferenceDt> theValue) { 926 myBasis = theValue; 927 return this; 928 } 929 930 931 932 /** 933 * Adds and returns a new value for <b>basis</b> () 934 * 935 * <p> 936 * <b>Definition:</b> 937 * Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.) 938 * </p> 939 */ 940 public ResourceReferenceDt addBasis() { 941 ResourceReferenceDt newType = new ResourceReferenceDt(); 942 getBasis().add(newType); 943 return newType; 944 } 945 946 /** 947 * Gets the value(s) for <b>prediction</b> (). 948 * creating it if it does 949 * not exist. Will not return <code>null</code>. 950 * 951 * <p> 952 * <b>Definition:</b> 953 * Describes the expected outcome for the subject 954 * </p> 955 */ 956 public java.util.List<Prediction> getPrediction() { 957 if (myPrediction == null) { 958 myPrediction = new java.util.ArrayList<Prediction>(); 959 } 960 return myPrediction; 961 } 962 963 /** 964 * Sets the value(s) for <b>prediction</b> () 965 * 966 * <p> 967 * <b>Definition:</b> 968 * Describes the expected outcome for the subject 969 * </p> 970 */ 971 public RiskAssessment setPrediction(java.util.List<Prediction> theValue) { 972 myPrediction = theValue; 973 return this; 974 } 975 976 977 978 /** 979 * Adds and returns a new value for <b>prediction</b> () 980 * 981 * <p> 982 * <b>Definition:</b> 983 * Describes the expected outcome for the subject 984 * </p> 985 */ 986 public Prediction addPrediction() { 987 Prediction newType = new Prediction(); 988 getPrediction().add(newType); 989 return newType; 990 } 991 992 /** 993 * Adds a given new value for <b>prediction</b> () 994 * 995 * <p> 996 * <b>Definition:</b> 997 * Describes the expected outcome for the subject 998 * </p> 999 * @param theValue The prediction to add (must not be <code>null</code>) 1000 */ 1001 public RiskAssessment addPrediction(Prediction theValue) { 1002 if (theValue == null) { 1003 throw new NullPointerException("theValue must not be null"); 1004 } 1005 getPrediction().add(theValue); 1006 return this; 1007 } 1008 1009 /** 1010 * Gets the first repetition for <b>prediction</b> (), 1011 * creating it if it does not already exist. 1012 * 1013 * <p> 1014 * <b>Definition:</b> 1015 * Describes the expected outcome for the subject 1016 * </p> 1017 */ 1018 public Prediction getPredictionFirstRep() { 1019 if (getPrediction().isEmpty()) { 1020 return addPrediction(); 1021 } 1022 return getPrediction().get(0); 1023 } 1024 1025 /** 1026 * Gets the value(s) for <b>mitigation</b> (). 1027 * creating it if it does 1028 * not exist. Will not return <code>null</code>. 1029 * 1030 * <p> 1031 * <b>Definition:</b> 1032 * A description of the steps that might be taken to reduce the identified risk(s). 1033 * </p> 1034 */ 1035 public StringDt getMitigationElement() { 1036 if (myMitigation == null) { 1037 myMitigation = new StringDt(); 1038 } 1039 return myMitigation; 1040 } 1041 1042 1043 /** 1044 * Gets the value(s) for <b>mitigation</b> (). 1045 * creating it if it does 1046 * not exist. Will not return <code>null</code>. 1047 * 1048 * <p> 1049 * <b>Definition:</b> 1050 * A description of the steps that might be taken to reduce the identified risk(s). 1051 * </p> 1052 */ 1053 public String getMitigation() { 1054 return getMitigationElement().getValue(); 1055 } 1056 1057 /** 1058 * Sets the value(s) for <b>mitigation</b> () 1059 * 1060 * <p> 1061 * <b>Definition:</b> 1062 * A description of the steps that might be taken to reduce the identified risk(s). 1063 * </p> 1064 */ 1065 public RiskAssessment setMitigation(StringDt theValue) { 1066 myMitigation = theValue; 1067 return this; 1068 } 1069 1070 1071 1072 /** 1073 * Sets the value for <b>mitigation</b> () 1074 * 1075 * <p> 1076 * <b>Definition:</b> 1077 * A description of the steps that might be taken to reduce the identified risk(s). 1078 * </p> 1079 */ 1080 public RiskAssessment setMitigation( String theString) { 1081 myMitigation = new StringDt(theString); 1082 return this; 1083 } 1084 1085 1086 /** 1087 * Block class for child element: <b>RiskAssessment.prediction</b> () 1088 * 1089 * <p> 1090 * <b>Definition:</b> 1091 * Describes the expected outcome for the subject 1092 * </p> 1093 */ 1094 @Block() 1095 public static class Prediction 1096 extends BaseIdentifiableElement implements IResourceBlock { 1097 1098 @Child(name="outcome", type=CodeableConceptDt.class, order=0, min=1, max=1, summary=false, modifier=false) 1099 @Description( 1100 shortDefinition="", 1101 formalDefinition="One of the potential outcomes for the patient (e.g. remission, death, a particular condition)" 1102 ) 1103 private CodeableConceptDt myOutcome; 1104 1105 @Child(name="probability", order=1, min=0, max=1, summary=false, modifier=false, type={ 1106 DecimalDt.class, RangeDt.class, CodeableConceptDt.class }) 1107 @Description( 1108 shortDefinition="", 1109 formalDefinition="How likely is the outcome (in the specified timeframe)" 1110 ) 1111 private IDatatype myProbability; 1112 1113 @Child(name="relativeRisk", type=DecimalDt.class, order=2, min=0, max=1, summary=false, modifier=false) 1114 @Description( 1115 shortDefinition="", 1116 formalDefinition="Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.)" 1117 ) 1118 private DecimalDt myRelativeRisk; 1119 1120 @Child(name="when", order=3, min=0, max=1, summary=false, modifier=false, type={ 1121 PeriodDt.class, RangeDt.class }) 1122 @Description( 1123 shortDefinition="", 1124 formalDefinition="Indicates the period of time or age range of the subject to which the specified probability applies" 1125 ) 1126 private IDatatype myWhen; 1127 1128 @Child(name="rationale", type=StringDt.class, order=4, min=0, max=1, summary=false, modifier=false) 1129 @Description( 1130 shortDefinition="", 1131 formalDefinition="Additional information explaining the basis for the prediction" 1132 ) 1133 private StringDt myRationale; 1134 1135 1136 @Override 1137 public boolean isEmpty() { 1138 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myOutcome, myProbability, myRelativeRisk, myWhen, myRationale); 1139 } 1140 1141 @Override 1142 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 1143 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myOutcome, myProbability, myRelativeRisk, myWhen, myRationale); 1144 } 1145 1146 /** 1147 * Gets the value(s) for <b>outcome</b> (). 1148 * creating it if it does 1149 * not exist. Will not return <code>null</code>. 1150 * 1151 * <p> 1152 * <b>Definition:</b> 1153 * One of the potential outcomes for the patient (e.g. remission, death, a particular condition) 1154 * </p> 1155 */ 1156 public CodeableConceptDt getOutcome() { 1157 if (myOutcome == null) { 1158 myOutcome = new CodeableConceptDt(); 1159 } 1160 return myOutcome; 1161 } 1162 1163 /** 1164 * Sets the value(s) for <b>outcome</b> () 1165 * 1166 * <p> 1167 * <b>Definition:</b> 1168 * One of the potential outcomes for the patient (e.g. remission, death, a particular condition) 1169 * </p> 1170 */ 1171 public Prediction setOutcome(CodeableConceptDt theValue) { 1172 myOutcome = theValue; 1173 return this; 1174 } 1175 1176 1177 1178 1179 /** 1180 * Gets the value(s) for <b>probability[x]</b> (). 1181 * creating it if it does 1182 * not exist. Will not return <code>null</code>. 1183 * 1184 * <p> 1185 * <b>Definition:</b> 1186 * How likely is the outcome (in the specified timeframe) 1187 * </p> 1188 */ 1189 public IDatatype getProbability() { 1190 return myProbability; 1191 } 1192 1193 /** 1194 * Sets the value(s) for <b>probability[x]</b> () 1195 * 1196 * <p> 1197 * <b>Definition:</b> 1198 * How likely is the outcome (in the specified timeframe) 1199 * </p> 1200 */ 1201 public Prediction setProbability(IDatatype theValue) { 1202 myProbability = theValue; 1203 return this; 1204 } 1205 1206 1207 1208 1209 /** 1210 * Gets the value(s) for <b>relativeRisk</b> (). 1211 * creating it if it does 1212 * not exist. Will not return <code>null</code>. 1213 * 1214 * <p> 1215 * <b>Definition:</b> 1216 * Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.) 1217 * </p> 1218 */ 1219 public DecimalDt getRelativeRiskElement() { 1220 if (myRelativeRisk == null) { 1221 myRelativeRisk = new DecimalDt(); 1222 } 1223 return myRelativeRisk; 1224 } 1225 1226 1227 /** 1228 * Gets the value(s) for <b>relativeRisk</b> (). 1229 * creating it if it does 1230 * not exist. Will not return <code>null</code>. 1231 * 1232 * <p> 1233 * <b>Definition:</b> 1234 * Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.) 1235 * </p> 1236 */ 1237 public BigDecimal getRelativeRisk() { 1238 return getRelativeRiskElement().getValue(); 1239 } 1240 1241 /** 1242 * Sets the value(s) for <b>relativeRisk</b> () 1243 * 1244 * <p> 1245 * <b>Definition:</b> 1246 * Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.) 1247 * </p> 1248 */ 1249 public Prediction setRelativeRisk(DecimalDt theValue) { 1250 myRelativeRisk = theValue; 1251 return this; 1252 } 1253 1254 1255 1256 /** 1257 * Sets the value for <b>relativeRisk</b> () 1258 * 1259 * <p> 1260 * <b>Definition:</b> 1261 * Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.) 1262 * </p> 1263 */ 1264 public Prediction setRelativeRisk( long theValue) { 1265 myRelativeRisk = new DecimalDt(theValue); 1266 return this; 1267 } 1268 1269 /** 1270 * Sets the value for <b>relativeRisk</b> () 1271 * 1272 * <p> 1273 * <b>Definition:</b> 1274 * Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.) 1275 * </p> 1276 */ 1277 public Prediction setRelativeRisk( double theValue) { 1278 myRelativeRisk = new DecimalDt(theValue); 1279 return this; 1280 } 1281 1282 /** 1283 * Sets the value for <b>relativeRisk</b> () 1284 * 1285 * <p> 1286 * <b>Definition:</b> 1287 * Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.) 1288 * </p> 1289 */ 1290 public Prediction setRelativeRisk( java.math.BigDecimal theValue) { 1291 myRelativeRisk = new DecimalDt(theValue); 1292 return this; 1293 } 1294 1295 1296 /** 1297 * Gets the value(s) for <b>when[x]</b> (). 1298 * creating it if it does 1299 * not exist. Will not return <code>null</code>. 1300 * 1301 * <p> 1302 * <b>Definition:</b> 1303 * Indicates the period of time or age range of the subject to which the specified probability applies 1304 * </p> 1305 */ 1306 public IDatatype getWhen() { 1307 return myWhen; 1308 } 1309 1310 /** 1311 * Sets the value(s) for <b>when[x]</b> () 1312 * 1313 * <p> 1314 * <b>Definition:</b> 1315 * Indicates the period of time or age range of the subject to which the specified probability applies 1316 * </p> 1317 */ 1318 public Prediction setWhen(IDatatype theValue) { 1319 myWhen = theValue; 1320 return this; 1321 } 1322 1323 1324 1325 1326 /** 1327 * Gets the value(s) for <b>rationale</b> (). 1328 * creating it if it does 1329 * not exist. Will not return <code>null</code>. 1330 * 1331 * <p> 1332 * <b>Definition:</b> 1333 * Additional information explaining the basis for the prediction 1334 * </p> 1335 */ 1336 public StringDt getRationaleElement() { 1337 if (myRationale == null) { 1338 myRationale = new StringDt(); 1339 } 1340 return myRationale; 1341 } 1342 1343 1344 /** 1345 * Gets the value(s) for <b>rationale</b> (). 1346 * creating it if it does 1347 * not exist. Will not return <code>null</code>. 1348 * 1349 * <p> 1350 * <b>Definition:</b> 1351 * Additional information explaining the basis for the prediction 1352 * </p> 1353 */ 1354 public String getRationale() { 1355 return getRationaleElement().getValue(); 1356 } 1357 1358 /** 1359 * Sets the value(s) for <b>rationale</b> () 1360 * 1361 * <p> 1362 * <b>Definition:</b> 1363 * Additional information explaining the basis for the prediction 1364 * </p> 1365 */ 1366 public Prediction setRationale(StringDt theValue) { 1367 myRationale = theValue; 1368 return this; 1369 } 1370 1371 1372 1373 /** 1374 * Sets the value for <b>rationale</b> () 1375 * 1376 * <p> 1377 * <b>Definition:</b> 1378 * Additional information explaining the basis for the prediction 1379 * </p> 1380 */ 1381 public Prediction setRationale( String theString) { 1382 myRationale = new StringDt(theString); 1383 return this; 1384 } 1385 1386 1387 1388 1389 } 1390 1391 1392 1393 1394 @Override 1395 public String getResourceName() { 1396 return "RiskAssessment"; 1397 } 1398 1399 public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { 1400 return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; 1401 } 1402 1403 1404}