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