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>RiskAssessment</b> Resource 282 * (clinical.general) 283 * 284 * <p> 285 * <b>Definition:</b> 286 * An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome. 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/RiskAssessment">http://hl7.org/fhir/profiles/RiskAssessment</a> 297 * </p> 298 * 299 */ 300@ResourceDef(name="RiskAssessment", profile="http://hl7.org/fhir/profiles/RiskAssessment", id="riskassessment") 301public class RiskAssessment extends ca.uhn.fhir.model.dstu2.resource.BaseResource 302 implements IResource 303 { 304 305 /** 306 * Search parameter constant for <b>identifier</b> 307 * <p> 308 * Description: <b></b><br> 309 * Type: <b>token</b><br> 310 * Path: <b>RiskAssessment.identifier</b><br> 311 * </p> 312 */ 313 @SearchParamDefinition(name="identifier", path="RiskAssessment.identifier", description="", type="token" 314 ) 315 public static final String SP_IDENTIFIER = "identifier"; 316 317 /** 318 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 319 * <p> 320 * Description: <b></b><br> 321 * Type: <b>token</b><br> 322 * Path: <b>RiskAssessment.identifier</b><br> 323 * </p> 324 */ 325 public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); 326 327 /** 328 * Search parameter constant for <b>date</b> 329 * <p> 330 * Description: <b></b><br> 331 * Type: <b>date</b><br> 332 * Path: <b>RiskAssessment.date</b><br> 333 * </p> 334 */ 335 @SearchParamDefinition(name="date", path="RiskAssessment.date", description="", type="date" 336 ) 337 public static final String SP_DATE = "date"; 338 339 /** 340 * <b>Fluent Client</b> search parameter constant for <b>date</b> 341 * <p> 342 * Description: <b></b><br> 343 * Type: <b>date</b><br> 344 * Path: <b>RiskAssessment.date</b><br> 345 * </p> 346 */ 347 public static final DateClientParam DATE = new DateClientParam(SP_DATE); 348 349 /** 350 * Search parameter constant for <b>encounter</b> 351 * <p> 352 * Description: <b></b><br> 353 * Type: <b>reference</b><br> 354 * Path: <b>RiskAssessment.encounter</b><br> 355 * </p> 356 */ 357 @SearchParamDefinition(name="encounter", path="RiskAssessment.encounter", description="", type="reference" 358 ) 359 public static final String SP_ENCOUNTER = "encounter"; 360 361 /** 362 * <b>Fluent Client</b> search parameter constant for <b>encounter</b> 363 * <p> 364 * Description: <b></b><br> 365 * Type: <b>reference</b><br> 366 * Path: <b>RiskAssessment.encounter</b><br> 367 * </p> 368 */ 369 public static final ReferenceClientParam ENCOUNTER = new ReferenceClientParam(SP_ENCOUNTER); 370 371 /** 372 * Search parameter constant for <b>performer</b> 373 * <p> 374 * Description: <b></b><br> 375 * Type: <b>reference</b><br> 376 * Path: <b>RiskAssessment.performer</b><br> 377 * </p> 378 */ 379 @SearchParamDefinition(name="performer", path="RiskAssessment.performer", description="", type="reference" 380, providesMembershipIn={ 381 @Compartment(name="Encounter") , @Compartment(name="RelatedPerson") } 382 ) 383 public static final String SP_PERFORMER = "performer"; 384 385 /** 386 * <b>Fluent Client</b> search parameter constant for <b>performer</b> 387 * <p> 388 * Description: <b></b><br> 389 * Type: <b>reference</b><br> 390 * Path: <b>RiskAssessment.performer</b><br> 391 * </p> 392 */ 393 public static final ReferenceClientParam PERFORMER = new ReferenceClientParam(SP_PERFORMER); 394 395 /** 396 * Search parameter constant for <b>subject</b> 397 * <p> 398 * Description: <b></b><br> 399 * Type: <b>reference</b><br> 400 * Path: <b>RiskAssessment.subject</b><br> 401 * </p> 402 */ 403 @SearchParamDefinition(name="subject", path="RiskAssessment.subject", description="", type="reference" 404, providesMembershipIn={ 405 @Compartment(name="Patient") } 406 ) 407 public static final String SP_SUBJECT = "subject"; 408 409 /** 410 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 411 * <p> 412 * Description: <b></b><br> 413 * Type: <b>reference</b><br> 414 * Path: <b>RiskAssessment.subject</b><br> 415 * </p> 416 */ 417 public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); 418 419 /** 420 * Search parameter constant for <b>condition</b> 421 * <p> 422 * Description: <b></b><br> 423 * Type: <b>reference</b><br> 424 * Path: <b>RiskAssessment.condition</b><br> 425 * </p> 426 */ 427 @SearchParamDefinition(name="condition", path="RiskAssessment.condition", description="", type="reference" 428 ) 429 public static final String SP_CONDITION = "condition"; 430 431 /** 432 * <b>Fluent Client</b> search parameter constant for <b>condition</b> 433 * <p> 434 * Description: <b></b><br> 435 * Type: <b>reference</b><br> 436 * Path: <b>RiskAssessment.condition</b><br> 437 * </p> 438 */ 439 public static final ReferenceClientParam CONDITION = new ReferenceClientParam(SP_CONDITION); 440 441 /** 442 * Search parameter constant for <b>method</b> 443 * <p> 444 * Description: <b></b><br> 445 * Type: <b>token</b><br> 446 * Path: <b>RiskAssessment.method</b><br> 447 * </p> 448 */ 449 @SearchParamDefinition(name="method", path="RiskAssessment.method", description="", type="token" 450 ) 451 public static final String SP_METHOD = "method"; 452 453 /** 454 * <b>Fluent Client</b> search parameter constant for <b>method</b> 455 * <p> 456 * Description: <b></b><br> 457 * Type: <b>token</b><br> 458 * Path: <b>RiskAssessment.method</b><br> 459 * </p> 460 */ 461 public static final TokenClientParam METHOD = new TokenClientParam(SP_METHOD); 462 463 /** 464 * Search parameter constant for <b>patient</b> 465 * <p> 466 * Description: <b></b><br> 467 * Type: <b>reference</b><br> 468 * Path: <b>RiskAssessment.subject</b><br> 469 * </p> 470 */ 471 @SearchParamDefinition(name="patient", path="RiskAssessment.subject", description="", type="reference" 472, target={ 473 ca.uhn.fhir.model.dstu2.resource.Patient.class } 474 ) 475 public static final String SP_PATIENT = "patient"; 476 477 /** 478 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 479 * <p> 480 * Description: <b></b><br> 481 * Type: <b>reference</b><br> 482 * Path: <b>RiskAssessment.subject</b><br> 483 * </p> 484 */ 485 public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); 486 487 488 /** 489 * Constant for fluent queries to be used to add include statements. Specifies 490 * the path value of "<b>RiskAssessment:condition</b>". 491 */ 492 public static final Include INCLUDE_CONDITION = new Include("RiskAssessment:condition"); 493 494 /** 495 * Constant for fluent queries to be used to add include statements. Specifies 496 * the path value of "<b>RiskAssessment:encounter</b>". 497 */ 498 public static final Include INCLUDE_ENCOUNTER = new Include("RiskAssessment:encounter"); 499 500 /** 501 * Constant for fluent queries to be used to add include statements. Specifies 502 * the path value of "<b>RiskAssessment:patient</b>". 503 */ 504 public static final Include INCLUDE_PATIENT = new Include("RiskAssessment:patient"); 505 506 /** 507 * Constant for fluent queries to be used to add include statements. Specifies 508 * the path value of "<b>RiskAssessment:performer</b>". 509 */ 510 public static final Include INCLUDE_PERFORMER = new Include("RiskAssessment:performer"); 511 512 /** 513 * Constant for fluent queries to be used to add include statements. Specifies 514 * the path value of "<b>RiskAssessment:subject</b>". 515 */ 516 public static final Include INCLUDE_SUBJECT = new Include("RiskAssessment:subject"); 517 518 519 @Child(name="subject", order=0, min=0, max=1, summary=true, modifier=false, type={ 520 ca.uhn.fhir.model.dstu2.resource.Patient.class, 521 ca.uhn.fhir.model.dstu2.resource.Group.class 522 }) 523 @Description( 524 shortDefinition="who.focus", 525 formalDefinition="The patient or group the risk assessment applies to" 526 ) 527 private ResourceReferenceDt mySubject; 528 529 @Child(name="date", type=DateTimeDt.class, order=1, min=0, max=1, summary=true, modifier=false) 530 @Description( 531 shortDefinition="when.recorded", 532 formalDefinition="The date (and possibly time) the risk assessment was performed" 533 ) 534 private DateTimeDt myDate; 535 536 @Child(name="condition", order=2, min=0, max=1, summary=true, modifier=false, type={ 537 ca.uhn.fhir.model.dstu2.resource.Condition.class 538 }) 539 @Description( 540 shortDefinition="", 541 formalDefinition="For assessments or prognosis specific to a particular condition, indicates the condition being assessed." 542 ) 543 private ResourceReferenceDt myCondition; 544 545 @Child(name="encounter", order=3, min=0, max=1, summary=true, modifier=false, type={ 546 ca.uhn.fhir.model.dstu2.resource.Encounter.class 547 }) 548 @Description( 549 shortDefinition="context", 550 formalDefinition="The encounter where the assessment was performed" 551 ) 552 private ResourceReferenceDt myEncounter; 553 554 @Child(name="performer", order=4, min=0, max=1, summary=true, modifier=false, type={ 555 ca.uhn.fhir.model.dstu2.resource.Practitioner.class, 556 ca.uhn.fhir.model.dstu2.resource.Device.class 557 }) 558 @Description( 559 shortDefinition="who.author", 560 formalDefinition="The provider or software application that performed the assessment" 561 ) 562 private ResourceReferenceDt myPerformer; 563 564 @Child(name="identifier", type=IdentifierDt.class, order=5, min=0, max=1, summary=true, modifier=false) 565 @Description( 566 shortDefinition="id", 567 formalDefinition="Business identifier assigned to the risk assessment" 568 ) 569 private IdentifierDt myIdentifier; 570 571 @Child(name="method", type=CodeableConceptDt.class, order=6, min=0, max=1, summary=true, modifier=false) 572 @Description( 573 shortDefinition="class", 574 formalDefinition="The algorithm, process or mechanism used to evaluate the risk" 575 ) 576 private CodeableConceptDt myMethod; 577 578 @Child(name="basis", order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={ 579 IResource.class 580 }) 581 @Description( 582 shortDefinition="", 583 formalDefinition="Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.)" 584 ) 585 private java.util.List<ResourceReferenceDt> myBasis; 586 587 @Child(name="prediction", order=8, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 588 @Description( 589 shortDefinition="", 590 formalDefinition="Describes the expected outcome for the subject" 591 ) 592 private java.util.List<Prediction> myPrediction; 593 594 @Child(name="mitigation", type=StringDt.class, order=9, min=0, max=1, summary=false, modifier=false) 595 @Description( 596 shortDefinition="", 597 formalDefinition="A description of the steps that might be taken to reduce the identified risk(s)." 598 ) 599 private StringDt myMitigation; 600 601 602 @Override 603 public boolean isEmpty() { 604 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySubject, myDate, myCondition, myEncounter, myPerformer, myIdentifier, myMethod, myBasis, myPrediction, myMitigation); 605 } 606 607 @Override 608 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 609 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySubject, myDate, myCondition, myEncounter, myPerformer, myIdentifier, myMethod, myBasis, myPrediction, myMitigation); 610 } 611 612 /** 613 * Gets the value(s) for <b>subject</b> (who.focus). 614 * creating it if it does 615 * not exist. Will not return <code>null</code>. 616 * 617 * <p> 618 * <b>Definition:</b> 619 * The patient or group the risk assessment applies to 620 * </p> 621 */ 622 public ResourceReferenceDt getSubject() { 623 if (mySubject == null) { 624 mySubject = new ResourceReferenceDt(); 625 } 626 return mySubject; 627 } 628 629 /** 630 * Sets the value(s) for <b>subject</b> (who.focus) 631 * 632 * <p> 633 * <b>Definition:</b> 634 * The patient or group the risk assessment applies to 635 * </p> 636 */ 637 public RiskAssessment setSubject(ResourceReferenceDt theValue) { 638 mySubject = theValue; 639 return this; 640 } 641 642 643 644 645 /** 646 * Gets the value(s) for <b>date</b> (when.recorded). 647 * creating it if it does 648 * not exist. Will not return <code>null</code>. 649 * 650 * <p> 651 * <b>Definition:</b> 652 * The date (and possibly time) the risk assessment was performed 653 * </p> 654 */ 655 public DateTimeDt getDateElement() { 656 if (myDate == null) { 657 myDate = new DateTimeDt(); 658 } 659 return myDate; 660 } 661 662 663 /** 664 * Gets the value(s) for <b>date</b> (when.recorded). 665 * creating it if it does 666 * not exist. This method may return <code>null</code>. 667 * 668 * <p> 669 * <b>Definition:</b> 670 * The date (and possibly time) the risk assessment was performed 671 * </p> 672 */ 673 public Date getDate() { 674 return getDateElement().getValue(); 675 } 676 677 /** 678 * Sets the value(s) for <b>date</b> (when.recorded) 679 * 680 * <p> 681 * <b>Definition:</b> 682 * The date (and possibly time) the risk assessment was performed 683 * </p> 684 */ 685 public RiskAssessment setDate(DateTimeDt theValue) { 686 myDate = theValue; 687 return this; 688 } 689 690 691 692 /** 693 * Sets the value for <b>date</b> (when.recorded) 694 * 695 * <p> 696 * <b>Definition:</b> 697 * The date (and possibly time) the risk assessment was performed 698 * </p> 699 */ 700 public RiskAssessment setDateWithSecondsPrecision( Date theDate) { 701 myDate = new DateTimeDt(theDate); 702 return this; 703 } 704 705 /** 706 * Sets the value for <b>date</b> (when.recorded) 707 * 708 * <p> 709 * <b>Definition:</b> 710 * The date (and possibly time) the risk assessment was performed 711 * </p> 712 */ 713 public RiskAssessment setDate( Date theDate, TemporalPrecisionEnum thePrecision) { 714 myDate = new DateTimeDt(theDate, thePrecision); 715 return this; 716 } 717 718 719 /** 720 * Gets the value(s) for <b>condition</b> (). 721 * creating it if it does 722 * not exist. Will not return <code>null</code>. 723 * 724 * <p> 725 * <b>Definition:</b> 726 * For assessments or prognosis specific to a particular condition, indicates the condition being assessed. 727 * </p> 728 */ 729 public ResourceReferenceDt getCondition() { 730 if (myCondition == null) { 731 myCondition = new ResourceReferenceDt(); 732 } 733 return myCondition; 734 } 735 736 /** 737 * Sets the value(s) for <b>condition</b> () 738 * 739 * <p> 740 * <b>Definition:</b> 741 * For assessments or prognosis specific to a particular condition, indicates the condition being assessed. 742 * </p> 743 */ 744 public RiskAssessment setCondition(ResourceReferenceDt theValue) { 745 myCondition = theValue; 746 return this; 747 } 748 749 750 751 752 /** 753 * Gets the value(s) for <b>encounter</b> (context). 754 * creating it if it does 755 * not exist. Will not return <code>null</code>. 756 * 757 * <p> 758 * <b>Definition:</b> 759 * The encounter where the assessment was performed 760 * </p> 761 */ 762 public ResourceReferenceDt getEncounter() { 763 if (myEncounter == null) { 764 myEncounter = new ResourceReferenceDt(); 765 } 766 return myEncounter; 767 } 768 769 /** 770 * Sets the value(s) for <b>encounter</b> (context) 771 * 772 * <p> 773 * <b>Definition:</b> 774 * The encounter where the assessment was performed 775 * </p> 776 */ 777 public RiskAssessment setEncounter(ResourceReferenceDt theValue) { 778 myEncounter = theValue; 779 return this; 780 } 781 782 783 784 785 /** 786 * Gets the value(s) for <b>performer</b> (who.author). 787 * creating it if it does 788 * not exist. Will not return <code>null</code>. 789 * 790 * <p> 791 * <b>Definition:</b> 792 * The provider or software application that performed the assessment 793 * </p> 794 */ 795 public ResourceReferenceDt getPerformer() { 796 if (myPerformer == null) { 797 myPerformer = new ResourceReferenceDt(); 798 } 799 return myPerformer; 800 } 801 802 /** 803 * Sets the value(s) for <b>performer</b> (who.author) 804 * 805 * <p> 806 * <b>Definition:</b> 807 * The provider or software application that performed the assessment 808 * </p> 809 */ 810 public RiskAssessment setPerformer(ResourceReferenceDt theValue) { 811 myPerformer = theValue; 812 return this; 813 } 814 815 816 817 818 /** 819 * Gets the value(s) for <b>identifier</b> (id). 820 * creating it if it does 821 * not exist. Will not return <code>null</code>. 822 * 823 * <p> 824 * <b>Definition:</b> 825 * Business identifier assigned to the risk assessment 826 * </p> 827 */ 828 public IdentifierDt getIdentifier() { 829 if (myIdentifier == null) { 830 myIdentifier = new IdentifierDt(); 831 } 832 return myIdentifier; 833 } 834 835 /** 836 * Sets the value(s) for <b>identifier</b> (id) 837 * 838 * <p> 839 * <b>Definition:</b> 840 * Business identifier assigned to the risk assessment 841 * </p> 842 */ 843 public RiskAssessment setIdentifier(IdentifierDt theValue) { 844 myIdentifier = theValue; 845 return this; 846 } 847 848 849 850 851 /** 852 * Gets the value(s) for <b>method</b> (class). 853 * creating it if it does 854 * not exist. Will not return <code>null</code>. 855 * 856 * <p> 857 * <b>Definition:</b> 858 * The algorithm, process or mechanism used to evaluate the risk 859 * </p> 860 */ 861 public CodeableConceptDt getMethod() { 862 if (myMethod == null) { 863 myMethod = new CodeableConceptDt(); 864 } 865 return myMethod; 866 } 867 868 /** 869 * Sets the value(s) for <b>method</b> (class) 870 * 871 * <p> 872 * <b>Definition:</b> 873 * The algorithm, process or mechanism used to evaluate the risk 874 * </p> 875 */ 876 public RiskAssessment setMethod(CodeableConceptDt theValue) { 877 myMethod = theValue; 878 return this; 879 } 880 881 882 883 884 /** 885 * Gets the value(s) for <b>basis</b> (). 886 * creating it if it does 887 * not exist. Will not return <code>null</code>. 888 * 889 * <p> 890 * <b>Definition:</b> 891 * Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.) 892 * </p> 893 */ 894 public java.util.List<ResourceReferenceDt> getBasis() { 895 if (myBasis == null) { 896 myBasis = new java.util.ArrayList<ResourceReferenceDt>(); 897 } 898 return myBasis; 899 } 900 901 /** 902 * Sets the value(s) for <b>basis</b> () 903 * 904 * <p> 905 * <b>Definition:</b> 906 * Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.) 907 * </p> 908 */ 909 public RiskAssessment setBasis(java.util.List<ResourceReferenceDt> theValue) { 910 myBasis = theValue; 911 return this; 912 } 913 914 915 916 /** 917 * Adds and returns a new value for <b>basis</b> () 918 * 919 * <p> 920 * <b>Definition:</b> 921 * Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.) 922 * </p> 923 */ 924 public ResourceReferenceDt addBasis() { 925 ResourceReferenceDt newType = new ResourceReferenceDt(); 926 getBasis().add(newType); 927 return newType; 928 } 929 930 /** 931 * Gets the value(s) for <b>prediction</b> (). 932 * creating it if it does 933 * not exist. Will not return <code>null</code>. 934 * 935 * <p> 936 * <b>Definition:</b> 937 * Describes the expected outcome for the subject 938 * </p> 939 */ 940 public java.util.List<Prediction> getPrediction() { 941 if (myPrediction == null) { 942 myPrediction = new java.util.ArrayList<Prediction>(); 943 } 944 return myPrediction; 945 } 946 947 /** 948 * Sets the value(s) for <b>prediction</b> () 949 * 950 * <p> 951 * <b>Definition:</b> 952 * Describes the expected outcome for the subject 953 * </p> 954 */ 955 public RiskAssessment setPrediction(java.util.List<Prediction> theValue) { 956 myPrediction = theValue; 957 return this; 958 } 959 960 961 962 /** 963 * Adds and returns a new value for <b>prediction</b> () 964 * 965 * <p> 966 * <b>Definition:</b> 967 * Describes the expected outcome for the subject 968 * </p> 969 */ 970 public Prediction addPrediction() { 971 Prediction newType = new Prediction(); 972 getPrediction().add(newType); 973 return newType; 974 } 975 976 /** 977 * Adds a given new value for <b>prediction</b> () 978 * 979 * <p> 980 * <b>Definition:</b> 981 * Describes the expected outcome for the subject 982 * </p> 983 * @param theValue The prediction to add (must not be <code>null</code>) 984 */ 985 public RiskAssessment addPrediction(Prediction theValue) { 986 if (theValue == null) { 987 throw new NullPointerException("theValue must not be null"); 988 } 989 getPrediction().add(theValue); 990 return this; 991 } 992 993 /** 994 * Gets the first repetition for <b>prediction</b> (), 995 * creating it if it does not already exist. 996 * 997 * <p> 998 * <b>Definition:</b> 999 * Describes the expected outcome for the subject 1000 * </p> 1001 */ 1002 public Prediction getPredictionFirstRep() { 1003 if (getPrediction().isEmpty()) { 1004 return addPrediction(); 1005 } 1006 return getPrediction().get(0); 1007 } 1008 1009 /** 1010 * Gets the value(s) for <b>mitigation</b> (). 1011 * creating it if it does 1012 * not exist. Will not return <code>null</code>. 1013 * 1014 * <p> 1015 * <b>Definition:</b> 1016 * A description of the steps that might be taken to reduce the identified risk(s). 1017 * </p> 1018 */ 1019 public StringDt getMitigationElement() { 1020 if (myMitigation == null) { 1021 myMitigation = new StringDt(); 1022 } 1023 return myMitigation; 1024 } 1025 1026 1027 /** 1028 * Gets the value(s) for <b>mitigation</b> (). 1029 * creating it if it does 1030 * not exist. This method may return <code>null</code>. 1031 * 1032 * <p> 1033 * <b>Definition:</b> 1034 * A description of the steps that might be taken to reduce the identified risk(s). 1035 * </p> 1036 */ 1037 public String getMitigation() { 1038 return getMitigationElement().getValue(); 1039 } 1040 1041 /** 1042 * Sets the value(s) for <b>mitigation</b> () 1043 * 1044 * <p> 1045 * <b>Definition:</b> 1046 * A description of the steps that might be taken to reduce the identified risk(s). 1047 * </p> 1048 */ 1049 public RiskAssessment setMitigation(StringDt theValue) { 1050 myMitigation = theValue; 1051 return this; 1052 } 1053 1054 1055 1056 /** 1057 * Sets the value for <b>mitigation</b> () 1058 * 1059 * <p> 1060 * <b>Definition:</b> 1061 * A description of the steps that might be taken to reduce the identified risk(s). 1062 * </p> 1063 */ 1064 public RiskAssessment setMitigation( String theString) { 1065 myMitigation = new StringDt(theString); 1066 return this; 1067 } 1068 1069 1070 /** 1071 * Block class for child element: <b>RiskAssessment.prediction</b> () 1072 * 1073 * <p> 1074 * <b>Definition:</b> 1075 * Describes the expected outcome for the subject 1076 * </p> 1077 */ 1078 @Block() 1079 public static class Prediction 1080 extends BaseIdentifiableElement 1081 implements IResourceBlock { 1082 1083 @Child(name="outcome", type=CodeableConceptDt.class, order=0, min=1, max=1, summary=false, modifier=false) 1084 @Description( 1085 shortDefinition="", 1086 formalDefinition="One of the potential outcomes for the patient (e.g. remission, death, a particular condition)" 1087 ) 1088 private CodeableConceptDt myOutcome; 1089 1090 @Child(name="probability", order=1, min=0, max=1, summary=false, modifier=false, type={ 1091 DecimalDt.class, 1092 RangeDt.class, 1093 CodeableConceptDt.class 1094 }) 1095 @Description( 1096 shortDefinition="", 1097 formalDefinition="How likely is the outcome (in the specified timeframe)" 1098 ) 1099 private IDatatype myProbability; 1100 1101 @Child(name="relativeRisk", type=DecimalDt.class, order=2, min=0, max=1, summary=false, modifier=false) 1102 @Description( 1103 shortDefinition="", 1104 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.)" 1105 ) 1106 private DecimalDt myRelativeRisk; 1107 1108 @Child(name="when", order=3, min=0, max=1, summary=false, modifier=false, type={ 1109 PeriodDt.class, 1110 RangeDt.class 1111 }) 1112 @Description( 1113 shortDefinition="", 1114 formalDefinition="Indicates the period of time or age range of the subject to which the specified probability applies" 1115 ) 1116 private IDatatype myWhen; 1117 1118 @Child(name="rationale", type=StringDt.class, order=4, min=0, max=1, summary=false, modifier=false) 1119 @Description( 1120 shortDefinition="", 1121 formalDefinition="Additional information explaining the basis for the prediction" 1122 ) 1123 private StringDt myRationale; 1124 1125 1126 @Override 1127 public boolean isEmpty() { 1128 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myOutcome, myProbability, myRelativeRisk, myWhen, myRationale); 1129 } 1130 1131 @Override 1132 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 1133 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myOutcome, myProbability, myRelativeRisk, myWhen, myRationale); 1134 } 1135 1136 /** 1137 * Gets the value(s) for <b>outcome</b> (). 1138 * creating it if it does 1139 * not exist. Will not return <code>null</code>. 1140 * 1141 * <p> 1142 * <b>Definition:</b> 1143 * One of the potential outcomes for the patient (e.g. remission, death, a particular condition) 1144 * </p> 1145 */ 1146 public CodeableConceptDt getOutcome() { 1147 if (myOutcome == null) { 1148 myOutcome = new CodeableConceptDt(); 1149 } 1150 return myOutcome; 1151 } 1152 1153 /** 1154 * Sets the value(s) for <b>outcome</b> () 1155 * 1156 * <p> 1157 * <b>Definition:</b> 1158 * One of the potential outcomes for the patient (e.g. remission, death, a particular condition) 1159 * </p> 1160 */ 1161 public Prediction setOutcome(CodeableConceptDt theValue) { 1162 myOutcome = theValue; 1163 return this; 1164 } 1165 1166 1167 1168 1169 /** 1170 * Gets the value(s) for <b>probability[x]</b> (). 1171 * creating it if it does 1172 * not exist. Will not return <code>null</code>. 1173 * 1174 * <p> 1175 * <b>Definition:</b> 1176 * How likely is the outcome (in the specified timeframe) 1177 * </p> 1178 */ 1179 public IDatatype getProbability() { 1180 return myProbability; 1181 } 1182 1183 /** 1184 * Sets the value(s) for <b>probability[x]</b> () 1185 * 1186 * <p> 1187 * <b>Definition:</b> 1188 * How likely is the outcome (in the specified timeframe) 1189 * </p> 1190 */ 1191 public Prediction setProbability(IDatatype theValue) { 1192 myProbability = theValue; 1193 return this; 1194 } 1195 1196 1197 1198 1199 /** 1200 * Gets the value(s) for <b>relativeRisk</b> (). 1201 * creating it if it does 1202 * not exist. Will not return <code>null</code>. 1203 * 1204 * <p> 1205 * <b>Definition:</b> 1206 * 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.) 1207 * </p> 1208 */ 1209 public DecimalDt getRelativeRiskElement() { 1210 if (myRelativeRisk == null) { 1211 myRelativeRisk = new DecimalDt(); 1212 } 1213 return myRelativeRisk; 1214 } 1215 1216 1217 /** 1218 * Gets the value(s) for <b>relativeRisk</b> (). 1219 * creating it if it does 1220 * not exist. This method may return <code>null</code>. 1221 * 1222 * <p> 1223 * <b>Definition:</b> 1224 * 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.) 1225 * </p> 1226 */ 1227 public BigDecimal getRelativeRisk() { 1228 return getRelativeRiskElement().getValue(); 1229 } 1230 1231 /** 1232 * Sets the value(s) for <b>relativeRisk</b> () 1233 * 1234 * <p> 1235 * <b>Definition:</b> 1236 * 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.) 1237 * </p> 1238 */ 1239 public Prediction setRelativeRisk(DecimalDt theValue) { 1240 myRelativeRisk = theValue; 1241 return this; 1242 } 1243 1244 1245 1246 /** 1247 * Sets the value for <b>relativeRisk</b> () 1248 * 1249 * <p> 1250 * <b>Definition:</b> 1251 * 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.) 1252 * </p> 1253 */ 1254 public Prediction setRelativeRisk( long theValue) { 1255 myRelativeRisk = new DecimalDt(theValue); 1256 return this; 1257 } 1258 1259 /** 1260 * Sets the value for <b>relativeRisk</b> () 1261 * 1262 * <p> 1263 * <b>Definition:</b> 1264 * 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.) 1265 * </p> 1266 */ 1267 public Prediction setRelativeRisk( double theValue) { 1268 myRelativeRisk = new DecimalDt(theValue); 1269 return this; 1270 } 1271 1272 /** 1273 * Sets the value for <b>relativeRisk</b> () 1274 * 1275 * <p> 1276 * <b>Definition:</b> 1277 * 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.) 1278 * </p> 1279 */ 1280 public Prediction setRelativeRisk( java.math.BigDecimal theValue) { 1281 myRelativeRisk = new DecimalDt(theValue); 1282 return this; 1283 } 1284 1285 1286 /** 1287 * Gets the value(s) for <b>when[x]</b> (). 1288 * creating it if it does 1289 * not exist. Will not return <code>null</code>. 1290 * 1291 * <p> 1292 * <b>Definition:</b> 1293 * Indicates the period of time or age range of the subject to which the specified probability applies 1294 * </p> 1295 */ 1296 public IDatatype getWhen() { 1297 return myWhen; 1298 } 1299 1300 /** 1301 * Sets the value(s) for <b>when[x]</b> () 1302 * 1303 * <p> 1304 * <b>Definition:</b> 1305 * Indicates the period of time or age range of the subject to which the specified probability applies 1306 * </p> 1307 */ 1308 public Prediction setWhen(IDatatype theValue) { 1309 myWhen = theValue; 1310 return this; 1311 } 1312 1313 1314 1315 1316 /** 1317 * Gets the value(s) for <b>rationale</b> (). 1318 * creating it if it does 1319 * not exist. Will not return <code>null</code>. 1320 * 1321 * <p> 1322 * <b>Definition:</b> 1323 * Additional information explaining the basis for the prediction 1324 * </p> 1325 */ 1326 public StringDt getRationaleElement() { 1327 if (myRationale == null) { 1328 myRationale = new StringDt(); 1329 } 1330 return myRationale; 1331 } 1332 1333 1334 /** 1335 * Gets the value(s) for <b>rationale</b> (). 1336 * creating it if it does 1337 * not exist. This method may return <code>null</code>. 1338 * 1339 * <p> 1340 * <b>Definition:</b> 1341 * Additional information explaining the basis for the prediction 1342 * </p> 1343 */ 1344 public String getRationale() { 1345 return getRationaleElement().getValue(); 1346 } 1347 1348 /** 1349 * Sets the value(s) for <b>rationale</b> () 1350 * 1351 * <p> 1352 * <b>Definition:</b> 1353 * Additional information explaining the basis for the prediction 1354 * </p> 1355 */ 1356 public Prediction setRationale(StringDt theValue) { 1357 myRationale = theValue; 1358 return this; 1359 } 1360 1361 1362 1363 /** 1364 * Sets the value for <b>rationale</b> () 1365 * 1366 * <p> 1367 * <b>Definition:</b> 1368 * Additional information explaining the basis for the prediction 1369 * </p> 1370 */ 1371 public Prediction setRationale( String theString) { 1372 myRationale = new StringDt(theString); 1373 return this; 1374 } 1375 1376 1377 1378 1379 } 1380 1381 1382 1383 1384 @Override 1385 public String getResourceName() { 1386 return "RiskAssessment"; 1387 } 1388 1389 public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { 1390 return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; 1391 } 1392 1393 1394}