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>ReferralRequest</b> Resource 282 * (clinical.careprovision) 283 * 284 * <p> 285 * <b>Definition:</b> 286 * Used to record and send details about a request for referral service or transfer of a patient to the care of another provider or provider organization. 287 * </p> 288 * 289 * <p> 290 * <b>Requirements:</b> 291 * 292 * </p> 293 * 294 * <p> 295 * <b>Profile Definition:</b> 296 * <a href="http://hl7.org/fhir/profiles/ReferralRequest">http://hl7.org/fhir/profiles/ReferralRequest</a> 297 * </p> 298 * 299 */ 300@ResourceDef(name="ReferralRequest", profile="http://hl7.org/fhir/profiles/ReferralRequest", id="referralrequest") 301public class ReferralRequest extends ca.uhn.fhir.model.dstu2.resource.BaseResource 302 implements IResource 303 { 304 305 /** 306 * Search parameter constant for <b>status</b> 307 * <p> 308 * Description: <b>The status of the referral</b><br> 309 * Type: <b>token</b><br> 310 * Path: <b>ReferralRequest.status</b><br> 311 * </p> 312 */ 313 @SearchParamDefinition(name="status", path="ReferralRequest.status", description="The status of the referral", type="token" 314 ) 315 public static final String SP_STATUS = "status"; 316 317 /** 318 * <b>Fluent Client</b> search parameter constant for <b>status</b> 319 * <p> 320 * Description: <b>The status of the referral</b><br> 321 * Type: <b>token</b><br> 322 * Path: <b>ReferralRequest.status</b><br> 323 * </p> 324 */ 325 public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); 326 327 /** 328 * Search parameter constant for <b>date</b> 329 * <p> 330 * Description: <b>Creation or activation date</b><br> 331 * Type: <b>date</b><br> 332 * Path: <b>ReferralRequest.date</b><br> 333 * </p> 334 */ 335 @SearchParamDefinition(name="date", path="ReferralRequest.date", description="Creation or activation date", 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>Creation or activation date</b><br> 343 * Type: <b>date</b><br> 344 * Path: <b>ReferralRequest.date</b><br> 345 * </p> 346 */ 347 public static final DateClientParam DATE = new DateClientParam(SP_DATE); 348 349 /** 350 * Search parameter constant for <b>type</b> 351 * <p> 352 * Description: <b>The type of the referral</b><br> 353 * Type: <b>token</b><br> 354 * Path: <b>ReferralRequest.type</b><br> 355 * </p> 356 */ 357 @SearchParamDefinition(name="type", path="ReferralRequest.type", description="The type of the referral", type="token" 358 ) 359 public static final String SP_TYPE = "type"; 360 361 /** 362 * <b>Fluent Client</b> search parameter constant for <b>type</b> 363 * <p> 364 * Description: <b>The type of the referral</b><br> 365 * Type: <b>token</b><br> 366 * Path: <b>ReferralRequest.type</b><br> 367 * </p> 368 */ 369 public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); 370 371 /** 372 * Search parameter constant for <b>specialty</b> 373 * <p> 374 * Description: <b>The specialty that the referral is for</b><br> 375 * Type: <b>token</b><br> 376 * Path: <b>ReferralRequest.specialty</b><br> 377 * </p> 378 */ 379 @SearchParamDefinition(name="specialty", path="ReferralRequest.specialty", description="The specialty that the referral is for", type="token" 380 ) 381 public static final String SP_SPECIALTY = "specialty"; 382 383 /** 384 * <b>Fluent Client</b> search parameter constant for <b>specialty</b> 385 * <p> 386 * Description: <b>The specialty that the referral is for</b><br> 387 * Type: <b>token</b><br> 388 * Path: <b>ReferralRequest.specialty</b><br> 389 * </p> 390 */ 391 public static final TokenClientParam SPECIALTY = new TokenClientParam(SP_SPECIALTY); 392 393 /** 394 * Search parameter constant for <b>priority</b> 395 * <p> 396 * Description: <b>The priority assigned to the referral</b><br> 397 * Type: <b>token</b><br> 398 * Path: <b>ReferralRequest.priority</b><br> 399 * </p> 400 */ 401 @SearchParamDefinition(name="priority", path="ReferralRequest.priority", description="The priority assigned to the referral", type="token" 402 ) 403 public static final String SP_PRIORITY = "priority"; 404 405 /** 406 * <b>Fluent Client</b> search parameter constant for <b>priority</b> 407 * <p> 408 * Description: <b>The priority assigned to the referral</b><br> 409 * Type: <b>token</b><br> 410 * Path: <b>ReferralRequest.priority</b><br> 411 * </p> 412 */ 413 public static final TokenClientParam PRIORITY = new TokenClientParam(SP_PRIORITY); 414 415 /** 416 * Search parameter constant for <b>recipient</b> 417 * <p> 418 * Description: <b>The person that the referral was sent to</b><br> 419 * Type: <b>reference</b><br> 420 * Path: <b>ReferralRequest.recipient</b><br> 421 * </p> 422 */ 423 @SearchParamDefinition(name="recipient", path="ReferralRequest.recipient", description="The person that the referral was sent to", type="reference" 424, providesMembershipIn={ 425 @Compartment(name="Encounter") } 426 ) 427 public static final String SP_RECIPIENT = "recipient"; 428 429 /** 430 * <b>Fluent Client</b> search parameter constant for <b>recipient</b> 431 * <p> 432 * Description: <b>The person that the referral was sent to</b><br> 433 * Type: <b>reference</b><br> 434 * Path: <b>ReferralRequest.recipient</b><br> 435 * </p> 436 */ 437 public static final ReferenceClientParam RECIPIENT = new ReferenceClientParam(SP_RECIPIENT); 438 439 /** 440 * Search parameter constant for <b>patient</b> 441 * <p> 442 * Description: <b>Who the referral is about</b><br> 443 * Type: <b>reference</b><br> 444 * Path: <b>ReferralRequest.patient</b><br> 445 * </p> 446 */ 447 @SearchParamDefinition(name="patient", path="ReferralRequest.patient", description="Who the referral is about", type="reference" 448, providesMembershipIn={ 449 @Compartment(name="Patient") } 450 ) 451 public static final String SP_PATIENT = "patient"; 452 453 /** 454 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 455 * <p> 456 * Description: <b>Who the referral is about</b><br> 457 * Type: <b>reference</b><br> 458 * Path: <b>ReferralRequest.patient</b><br> 459 * </p> 460 */ 461 public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); 462 463 /** 464 * Search parameter constant for <b>requester</b> 465 * <p> 466 * Description: <b></b><br> 467 * Type: <b>reference</b><br> 468 * Path: <b>ReferralRequest.requester</b><br> 469 * </p> 470 */ 471 @SearchParamDefinition(name="requester", path="ReferralRequest.requester", description="", type="reference" 472, providesMembershipIn={ 473 @Compartment(name="Patient") , @Compartment(name="Encounter") } 474 ) 475 public static final String SP_REQUESTER = "requester"; 476 477 /** 478 * <b>Fluent Client</b> search parameter constant for <b>requester</b> 479 * <p> 480 * Description: <b></b><br> 481 * Type: <b>reference</b><br> 482 * Path: <b>ReferralRequest.requester</b><br> 483 * </p> 484 */ 485 public static final ReferenceClientParam REQUESTER = new ReferenceClientParam(SP_REQUESTER); 486 487 488 /** 489 * Constant for fluent queries to be used to add include statements. Specifies 490 * the path value of "<b>ReferralRequest:patient</b>". 491 */ 492 public static final Include INCLUDE_PATIENT = new Include("ReferralRequest:patient"); 493 494 /** 495 * Constant for fluent queries to be used to add include statements. Specifies 496 * the path value of "<b>ReferralRequest:recipient</b>". 497 */ 498 public static final Include INCLUDE_RECIPIENT = new Include("ReferralRequest:recipient"); 499 500 /** 501 * Constant for fluent queries to be used to add include statements. Specifies 502 * the path value of "<b>ReferralRequest:requester</b>". 503 */ 504 public static final Include INCLUDE_REQUESTER = new Include("ReferralRequest:requester"); 505 506 507 @Child(name="status", type=CodeDt.class, order=0, min=1, max=1, summary=true, modifier=true) 508 @Description( 509 shortDefinition="status", 510 formalDefinition="The workflow status of the referral or transfer of care request" 511 ) 512 @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/referralstatus") 513 private BoundCodeDt<ReferralStatusEnum> myStatus; 514 515 @Child(name="identifier", type=IdentifierDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 516 @Description( 517 shortDefinition="id", 518 formalDefinition="Business identifier that uniquely identifies the referral/care transfer request instance" 519 ) 520 private java.util.List<IdentifierDt> myIdentifier; 521 522 @Child(name="date", type=DateTimeDt.class, order=2, min=0, max=1, summary=true, modifier=false) 523 @Description( 524 shortDefinition="when.init", 525 formalDefinition="Date/DateTime of creation for draft requests and date of activation for active requests" 526 ) 527 private DateTimeDt myDate; 528 529 @Child(name="type", type=CodeableConceptDt.class, order=3, min=0, max=1, summary=true, modifier=false) 530 @Description( 531 shortDefinition="class", 532 formalDefinition="An indication of the type of referral (or where applicable the type of transfer of care) request" 533 ) 534 private CodeableConceptDt myType; 535 536 @Child(name="specialty", type=CodeableConceptDt.class, order=4, min=0, max=1, summary=false, modifier=false) 537 @Description( 538 shortDefinition="", 539 formalDefinition="Indication of the clinical domain or discipline to which the referral or transfer of care request is sent. For example: Cardiology Gastroenterology Diabetology" 540 ) 541 private CodeableConceptDt mySpecialty; 542 543 @Child(name="priority", type=CodeableConceptDt.class, order=5, min=0, max=1, summary=true, modifier=false) 544 @Description( 545 shortDefinition="grade", 546 formalDefinition="An indication of the urgency of referral (or where applicable the type of transfer of care) request" 547 ) 548 private CodeableConceptDt myPriority; 549 550 @Child(name="patient", order=6, min=0, max=1, summary=true, modifier=false, type={ 551 ca.uhn.fhir.model.dstu2.resource.Patient.class 552 }) 553 @Description( 554 shortDefinition="who.focus", 555 formalDefinition="The patient who is the subject of a referral or transfer of care request" 556 ) 557 private ResourceReferenceDt myPatient; 558 559 @Child(name="requester", order=7, min=0, max=1, summary=true, modifier=false, type={ 560 ca.uhn.fhir.model.dstu2.resource.Practitioner.class, 561 ca.uhn.fhir.model.dstu2.resource.Organization.class, 562 ca.uhn.fhir.model.dstu2.resource.Patient.class 563 }) 564 @Description( 565 shortDefinition="who.author", 566 formalDefinition="The healthcare provider or provider organization who/which initiated the referral/transfer of care request. Can also be Patient (a self referral)" 567 ) 568 private ResourceReferenceDt myRequester; 569 570 @Child(name="recipient", order=8, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false, type={ 571 ca.uhn.fhir.model.dstu2.resource.Practitioner.class, 572 ca.uhn.fhir.model.dstu2.resource.Organization.class 573 }) 574 @Description( 575 shortDefinition="who.actor", 576 formalDefinition="The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request" 577 ) 578 private java.util.List<ResourceReferenceDt> myRecipient; 579 580 @Child(name="encounter", order=9, min=0, max=1, summary=false, modifier=false, type={ 581 ca.uhn.fhir.model.dstu2.resource.Encounter.class 582 }) 583 @Description( 584 shortDefinition="context", 585 formalDefinition="The encounter at which the request for referral or transfer of care is initiated" 586 ) 587 private ResourceReferenceDt myEncounter; 588 589 @Child(name="dateSent", type=DateTimeDt.class, order=10, min=0, max=1, summary=true, modifier=false) 590 @Description( 591 shortDefinition="when.init", 592 formalDefinition="Date/DateTime the request for referral or transfer of care is sent by the author" 593 ) 594 private DateTimeDt myDateSent; 595 596 @Child(name="reason", type=CodeableConceptDt.class, order=11, min=0, max=1, summary=true, modifier=false) 597 @Description( 598 shortDefinition="why", 599 formalDefinition="Description of clinical condition indicating why referral/transfer of care is requested. For example: Pathological Anomalies, Disabled (physical or mental), Behavioral Management" 600 ) 601 private CodeableConceptDt myReason; 602 603 @Child(name="description", type=StringDt.class, order=12, min=0, max=1, summary=false, modifier=false) 604 @Description( 605 shortDefinition="", 606 formalDefinition="The reason element gives a short description of why the referral is being made, the description expands on this to support a more complete clinical summary" 607 ) 608 private StringDt myDescription; 609 610 @Child(name="serviceRequested", type=CodeableConceptDt.class, order=13, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) 611 @Description( 612 shortDefinition="what", 613 formalDefinition="The service(s) that is/are requested to be provided to the patient. For example: cardiac pacemaker insertion" 614 ) 615 private java.util.List<CodeableConceptDt> myServiceRequested; 616 617 @Child(name="supportingInformation", order=14, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false, type={ 618 IResource.class 619 }) 620 @Description( 621 shortDefinition="", 622 formalDefinition="Any additional (administrative, financial or clinical) information required to support request for referral or transfer of care. For example: Presenting problems/chief complaints Medical History Family History Alerts Allergy/Intolerance and Adverse Reactions Medications Observations/Assessments (may include cognitive and fundtional assessments) Diagnostic Reports Care Plan" 623 ) 624 private java.util.List<ResourceReferenceDt> mySupportingInformation; 625 626 @Child(name="fulfillmentTime", type=PeriodDt.class, order=15, min=0, max=1, summary=true, modifier=false) 627 @Description( 628 shortDefinition="when.planned", 629 formalDefinition="The period of time within which the services identified in the referral/transfer of care is specified or required to occur" 630 ) 631 private PeriodDt myFulfillmentTime; 632 633 634 @Override 635 public boolean isEmpty() { 636 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myStatus, myIdentifier, myDate, myType, mySpecialty, myPriority, myPatient, myRequester, myRecipient, myEncounter, myDateSent, myReason, myDescription, myServiceRequested, mySupportingInformation, myFulfillmentTime); 637 } 638 639 @Override 640 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 641 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myStatus, myIdentifier, myDate, myType, mySpecialty, myPriority, myPatient, myRequester, myRecipient, myEncounter, myDateSent, myReason, myDescription, myServiceRequested, mySupportingInformation, myFulfillmentTime); 642 } 643 644 /** 645 * Gets the value(s) for <b>status</b> (status). 646 * creating it if it does 647 * not exist. Will not return <code>null</code>. 648 * 649 * <p> 650 * <b>Definition:</b> 651 * The workflow status of the referral or transfer of care request 652 * </p> 653 */ 654 public BoundCodeDt<ReferralStatusEnum> getStatusElement() { 655 if (myStatus == null) { 656 myStatus = new BoundCodeDt<ReferralStatusEnum>(ReferralStatusEnum.VALUESET_BINDER); 657 } 658 return myStatus; 659 } 660 661 662 /** 663 * Gets the value(s) for <b>status</b> (status). 664 * creating it if it does 665 * not exist. This method may return <code>null</code>. 666 * 667 * <p> 668 * <b>Definition:</b> 669 * The workflow status of the referral or transfer of care request 670 * </p> 671 */ 672 public String getStatus() { 673 return getStatusElement().getValue(); 674 } 675 676 /** 677 * Sets the value(s) for <b>status</b> (status) 678 * 679 * <p> 680 * <b>Definition:</b> 681 * The workflow status of the referral or transfer of care request 682 * </p> 683 */ 684 public ReferralRequest setStatus(BoundCodeDt<ReferralStatusEnum> theValue) { 685 myStatus = theValue; 686 return this; 687 } 688 689 690 691 /** 692 * Sets the value(s) for <b>status</b> (status) 693 * 694 * <p> 695 * <b>Definition:</b> 696 * The workflow status of the referral or transfer of care request 697 * </p> 698 */ 699 public ReferralRequest setStatus(ReferralStatusEnum theValue) { 700 setStatus(new BoundCodeDt<ReferralStatusEnum>(ReferralStatusEnum.VALUESET_BINDER, theValue)); 701 702/* 703 getStatusElement().setValueAsEnum(theValue); 704*/ 705 return this; 706 } 707 708 709 /** 710 * Gets the value(s) for <b>identifier</b> (id). 711 * creating it if it does 712 * not exist. Will not return <code>null</code>. 713 * 714 * <p> 715 * <b>Definition:</b> 716 * Business identifier that uniquely identifies the referral/care transfer request instance 717 * </p> 718 */ 719 public java.util.List<IdentifierDt> getIdentifier() { 720 if (myIdentifier == null) { 721 myIdentifier = new java.util.ArrayList<IdentifierDt>(); 722 } 723 return myIdentifier; 724 } 725 726 /** 727 * Sets the value(s) for <b>identifier</b> (id) 728 * 729 * <p> 730 * <b>Definition:</b> 731 * Business identifier that uniquely identifies the referral/care transfer request instance 732 * </p> 733 */ 734 public ReferralRequest setIdentifier(java.util.List<IdentifierDt> theValue) { 735 myIdentifier = theValue; 736 return this; 737 } 738 739 740 741 /** 742 * Adds and returns a new value for <b>identifier</b> (id) 743 * 744 * <p> 745 * <b>Definition:</b> 746 * Business identifier that uniquely identifies the referral/care transfer request instance 747 * </p> 748 */ 749 public IdentifierDt addIdentifier() { 750 IdentifierDt newType = new IdentifierDt(); 751 getIdentifier().add(newType); 752 return newType; 753 } 754 755 /** 756 * Adds a given new value for <b>identifier</b> (id) 757 * 758 * <p> 759 * <b>Definition:</b> 760 * Business identifier that uniquely identifies the referral/care transfer request instance 761 * </p> 762 * @param theValue The identifier to add (must not be <code>null</code>) 763 */ 764 public ReferralRequest addIdentifier(IdentifierDt theValue) { 765 if (theValue == null) { 766 throw new NullPointerException("theValue must not be null"); 767 } 768 getIdentifier().add(theValue); 769 return this; 770 } 771 772 /** 773 * Gets the first repetition for <b>identifier</b> (id), 774 * creating it if it does not already exist. 775 * 776 * <p> 777 * <b>Definition:</b> 778 * Business identifier that uniquely identifies the referral/care transfer request instance 779 * </p> 780 */ 781 public IdentifierDt getIdentifierFirstRep() { 782 if (getIdentifier().isEmpty()) { 783 return addIdentifier(); 784 } 785 return getIdentifier().get(0); 786 } 787 788 /** 789 * Gets the value(s) for <b>date</b> (when.init). 790 * creating it if it does 791 * not exist. Will not return <code>null</code>. 792 * 793 * <p> 794 * <b>Definition:</b> 795 * Date/DateTime of creation for draft requests and date of activation for active requests 796 * </p> 797 */ 798 public DateTimeDt getDateElement() { 799 if (myDate == null) { 800 myDate = new DateTimeDt(); 801 } 802 return myDate; 803 } 804 805 806 /** 807 * Gets the value(s) for <b>date</b> (when.init). 808 * creating it if it does 809 * not exist. This method may return <code>null</code>. 810 * 811 * <p> 812 * <b>Definition:</b> 813 * Date/DateTime of creation for draft requests and date of activation for active requests 814 * </p> 815 */ 816 public Date getDate() { 817 return getDateElement().getValue(); 818 } 819 820 /** 821 * Sets the value(s) for <b>date</b> (when.init) 822 * 823 * <p> 824 * <b>Definition:</b> 825 * Date/DateTime of creation for draft requests and date of activation for active requests 826 * </p> 827 */ 828 public ReferralRequest setDate(DateTimeDt theValue) { 829 myDate = theValue; 830 return this; 831 } 832 833 834 835 /** 836 * Sets the value for <b>date</b> (when.init) 837 * 838 * <p> 839 * <b>Definition:</b> 840 * Date/DateTime of creation for draft requests and date of activation for active requests 841 * </p> 842 */ 843 public ReferralRequest setDateWithSecondsPrecision( Date theDate) { 844 myDate = new DateTimeDt(theDate); 845 return this; 846 } 847 848 /** 849 * Sets the value for <b>date</b> (when.init) 850 * 851 * <p> 852 * <b>Definition:</b> 853 * Date/DateTime of creation for draft requests and date of activation for active requests 854 * </p> 855 */ 856 public ReferralRequest setDate( Date theDate, TemporalPrecisionEnum thePrecision) { 857 myDate = new DateTimeDt(theDate, thePrecision); 858 return this; 859 } 860 861 862 /** 863 * Gets the value(s) for <b>type</b> (class). 864 * creating it if it does 865 * not exist. Will not return <code>null</code>. 866 * 867 * <p> 868 * <b>Definition:</b> 869 * An indication of the type of referral (or where applicable the type of transfer of care) request 870 * </p> 871 */ 872 public CodeableConceptDt getType() { 873 if (myType == null) { 874 myType = new CodeableConceptDt(); 875 } 876 return myType; 877 } 878 879 /** 880 * Sets the value(s) for <b>type</b> (class) 881 * 882 * <p> 883 * <b>Definition:</b> 884 * An indication of the type of referral (or where applicable the type of transfer of care) request 885 * </p> 886 */ 887 public ReferralRequest setType(CodeableConceptDt theValue) { 888 myType = theValue; 889 return this; 890 } 891 892 893 894 895 /** 896 * Gets the value(s) for <b>specialty</b> (). 897 * creating it if it does 898 * not exist. Will not return <code>null</code>. 899 * 900 * <p> 901 * <b>Definition:</b> 902 * Indication of the clinical domain or discipline to which the referral or transfer of care request is sent. For example: Cardiology Gastroenterology Diabetology 903 * </p> 904 */ 905 public CodeableConceptDt getSpecialty() { 906 if (mySpecialty == null) { 907 mySpecialty = new CodeableConceptDt(); 908 } 909 return mySpecialty; 910 } 911 912 /** 913 * Sets the value(s) for <b>specialty</b> () 914 * 915 * <p> 916 * <b>Definition:</b> 917 * Indication of the clinical domain or discipline to which the referral or transfer of care request is sent. For example: Cardiology Gastroenterology Diabetology 918 * </p> 919 */ 920 public ReferralRequest setSpecialty(CodeableConceptDt theValue) { 921 mySpecialty = theValue; 922 return this; 923 } 924 925 926 927 928 /** 929 * Gets the value(s) for <b>priority</b> (grade). 930 * creating it if it does 931 * not exist. Will not return <code>null</code>. 932 * 933 * <p> 934 * <b>Definition:</b> 935 * An indication of the urgency of referral (or where applicable the type of transfer of care) request 936 * </p> 937 */ 938 public CodeableConceptDt getPriority() { 939 if (myPriority == null) { 940 myPriority = new CodeableConceptDt(); 941 } 942 return myPriority; 943 } 944 945 /** 946 * Sets the value(s) for <b>priority</b> (grade) 947 * 948 * <p> 949 * <b>Definition:</b> 950 * An indication of the urgency of referral (or where applicable the type of transfer of care) request 951 * </p> 952 */ 953 public ReferralRequest setPriority(CodeableConceptDt theValue) { 954 myPriority = theValue; 955 return this; 956 } 957 958 959 960 961 /** 962 * Gets the value(s) for <b>patient</b> (who.focus). 963 * creating it if it does 964 * not exist. Will not return <code>null</code>. 965 * 966 * <p> 967 * <b>Definition:</b> 968 * The patient who is the subject of a referral or transfer of care request 969 * </p> 970 */ 971 public ResourceReferenceDt getPatient() { 972 if (myPatient == null) { 973 myPatient = new ResourceReferenceDt(); 974 } 975 return myPatient; 976 } 977 978 /** 979 * Sets the value(s) for <b>patient</b> (who.focus) 980 * 981 * <p> 982 * <b>Definition:</b> 983 * The patient who is the subject of a referral or transfer of care request 984 * </p> 985 */ 986 public ReferralRequest setPatient(ResourceReferenceDt theValue) { 987 myPatient = theValue; 988 return this; 989 } 990 991 992 993 994 /** 995 * Gets the value(s) for <b>requester</b> (who.author). 996 * creating it if it does 997 * not exist. Will not return <code>null</code>. 998 * 999 * <p> 1000 * <b>Definition:</b> 1001 * The healthcare provider or provider organization who/which initiated the referral/transfer of care request. Can also be Patient (a self referral) 1002 * </p> 1003 */ 1004 public ResourceReferenceDt getRequester() { 1005 if (myRequester == null) { 1006 myRequester = new ResourceReferenceDt(); 1007 } 1008 return myRequester; 1009 } 1010 1011 /** 1012 * Sets the value(s) for <b>requester</b> (who.author) 1013 * 1014 * <p> 1015 * <b>Definition:</b> 1016 * The healthcare provider or provider organization who/which initiated the referral/transfer of care request. Can also be Patient (a self referral) 1017 * </p> 1018 */ 1019 public ReferralRequest setRequester(ResourceReferenceDt theValue) { 1020 myRequester = theValue; 1021 return this; 1022 } 1023 1024 1025 1026 1027 /** 1028 * Gets the value(s) for <b>recipient</b> (who.actor). 1029 * creating it if it does 1030 * not exist. Will not return <code>null</code>. 1031 * 1032 * <p> 1033 * <b>Definition:</b> 1034 * The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request 1035 * </p> 1036 */ 1037 public java.util.List<ResourceReferenceDt> getRecipient() { 1038 if (myRecipient == null) { 1039 myRecipient = new java.util.ArrayList<ResourceReferenceDt>(); 1040 } 1041 return myRecipient; 1042 } 1043 1044 /** 1045 * Sets the value(s) for <b>recipient</b> (who.actor) 1046 * 1047 * <p> 1048 * <b>Definition:</b> 1049 * The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request 1050 * </p> 1051 */ 1052 public ReferralRequest setRecipient(java.util.List<ResourceReferenceDt> theValue) { 1053 myRecipient = theValue; 1054 return this; 1055 } 1056 1057 1058 1059 /** 1060 * Adds and returns a new value for <b>recipient</b> (who.actor) 1061 * 1062 * <p> 1063 * <b>Definition:</b> 1064 * The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request 1065 * </p> 1066 */ 1067 public ResourceReferenceDt addRecipient() { 1068 ResourceReferenceDt newType = new ResourceReferenceDt(); 1069 getRecipient().add(newType); 1070 return newType; 1071 } 1072 1073 /** 1074 * Gets the value(s) for <b>encounter</b> (context). 1075 * creating it if it does 1076 * not exist. Will not return <code>null</code>. 1077 * 1078 * <p> 1079 * <b>Definition:</b> 1080 * The encounter at which the request for referral or transfer of care is initiated 1081 * </p> 1082 */ 1083 public ResourceReferenceDt getEncounter() { 1084 if (myEncounter == null) { 1085 myEncounter = new ResourceReferenceDt(); 1086 } 1087 return myEncounter; 1088 } 1089 1090 /** 1091 * Sets the value(s) for <b>encounter</b> (context) 1092 * 1093 * <p> 1094 * <b>Definition:</b> 1095 * The encounter at which the request for referral or transfer of care is initiated 1096 * </p> 1097 */ 1098 public ReferralRequest setEncounter(ResourceReferenceDt theValue) { 1099 myEncounter = theValue; 1100 return this; 1101 } 1102 1103 1104 1105 1106 /** 1107 * Gets the value(s) for <b>dateSent</b> (when.init). 1108 * creating it if it does 1109 * not exist. Will not return <code>null</code>. 1110 * 1111 * <p> 1112 * <b>Definition:</b> 1113 * Date/DateTime the request for referral or transfer of care is sent by the author 1114 * </p> 1115 */ 1116 public DateTimeDt getDateSentElement() { 1117 if (myDateSent == null) { 1118 myDateSent = new DateTimeDt(); 1119 } 1120 return myDateSent; 1121 } 1122 1123 1124 /** 1125 * Gets the value(s) for <b>dateSent</b> (when.init). 1126 * creating it if it does 1127 * not exist. This method may return <code>null</code>. 1128 * 1129 * <p> 1130 * <b>Definition:</b> 1131 * Date/DateTime the request for referral or transfer of care is sent by the author 1132 * </p> 1133 */ 1134 public Date getDateSent() { 1135 return getDateSentElement().getValue(); 1136 } 1137 1138 /** 1139 * Sets the value(s) for <b>dateSent</b> (when.init) 1140 * 1141 * <p> 1142 * <b>Definition:</b> 1143 * Date/DateTime the request for referral or transfer of care is sent by the author 1144 * </p> 1145 */ 1146 public ReferralRequest setDateSent(DateTimeDt theValue) { 1147 myDateSent = theValue; 1148 return this; 1149 } 1150 1151 1152 1153 /** 1154 * Sets the value for <b>dateSent</b> (when.init) 1155 * 1156 * <p> 1157 * <b>Definition:</b> 1158 * Date/DateTime the request for referral or transfer of care is sent by the author 1159 * </p> 1160 */ 1161 public ReferralRequest setDateSentWithSecondsPrecision( Date theDate) { 1162 myDateSent = new DateTimeDt(theDate); 1163 return this; 1164 } 1165 1166 /** 1167 * Sets the value for <b>dateSent</b> (when.init) 1168 * 1169 * <p> 1170 * <b>Definition:</b> 1171 * Date/DateTime the request for referral or transfer of care is sent by the author 1172 * </p> 1173 */ 1174 public ReferralRequest setDateSent( Date theDate, TemporalPrecisionEnum thePrecision) { 1175 myDateSent = new DateTimeDt(theDate, thePrecision); 1176 return this; 1177 } 1178 1179 1180 /** 1181 * Gets the value(s) for <b>reason</b> (why). 1182 * creating it if it does 1183 * not exist. Will not return <code>null</code>. 1184 * 1185 * <p> 1186 * <b>Definition:</b> 1187 * Description of clinical condition indicating why referral/transfer of care is requested. For example: Pathological Anomalies, Disabled (physical or mental), Behavioral Management 1188 * </p> 1189 */ 1190 public CodeableConceptDt getReason() { 1191 if (myReason == null) { 1192 myReason = new CodeableConceptDt(); 1193 } 1194 return myReason; 1195 } 1196 1197 /** 1198 * Sets the value(s) for <b>reason</b> (why) 1199 * 1200 * <p> 1201 * <b>Definition:</b> 1202 * Description of clinical condition indicating why referral/transfer of care is requested. For example: Pathological Anomalies, Disabled (physical or mental), Behavioral Management 1203 * </p> 1204 */ 1205 public ReferralRequest setReason(CodeableConceptDt theValue) { 1206 myReason = theValue; 1207 return this; 1208 } 1209 1210 1211 1212 1213 /** 1214 * Gets the value(s) for <b>description</b> (). 1215 * creating it if it does 1216 * not exist. Will not return <code>null</code>. 1217 * 1218 * <p> 1219 * <b>Definition:</b> 1220 * The reason element gives a short description of why the referral is being made, the description expands on this to support a more complete clinical summary 1221 * </p> 1222 */ 1223 public StringDt getDescriptionElement() { 1224 if (myDescription == null) { 1225 myDescription = new StringDt(); 1226 } 1227 return myDescription; 1228 } 1229 1230 1231 /** 1232 * Gets the value(s) for <b>description</b> (). 1233 * creating it if it does 1234 * not exist. This method may return <code>null</code>. 1235 * 1236 * <p> 1237 * <b>Definition:</b> 1238 * The reason element gives a short description of why the referral is being made, the description expands on this to support a more complete clinical summary 1239 * </p> 1240 */ 1241 public String getDescription() { 1242 return getDescriptionElement().getValue(); 1243 } 1244 1245 /** 1246 * Sets the value(s) for <b>description</b> () 1247 * 1248 * <p> 1249 * <b>Definition:</b> 1250 * The reason element gives a short description of why the referral is being made, the description expands on this to support a more complete clinical summary 1251 * </p> 1252 */ 1253 public ReferralRequest setDescription(StringDt theValue) { 1254 myDescription = theValue; 1255 return this; 1256 } 1257 1258 1259 1260 /** 1261 * Sets the value for <b>description</b> () 1262 * 1263 * <p> 1264 * <b>Definition:</b> 1265 * The reason element gives a short description of why the referral is being made, the description expands on this to support a more complete clinical summary 1266 * </p> 1267 */ 1268 public ReferralRequest setDescription( String theString) { 1269 myDescription = new StringDt(theString); 1270 return this; 1271 } 1272 1273 1274 /** 1275 * Gets the value(s) for <b>serviceRequested</b> (what). 1276 * creating it if it does 1277 * not exist. Will not return <code>null</code>. 1278 * 1279 * <p> 1280 * <b>Definition:</b> 1281 * The service(s) that is/are requested to be provided to the patient. For example: cardiac pacemaker insertion 1282 * </p> 1283 */ 1284 public java.util.List<CodeableConceptDt> getServiceRequested() { 1285 if (myServiceRequested == null) { 1286 myServiceRequested = new java.util.ArrayList<CodeableConceptDt>(); 1287 } 1288 return myServiceRequested; 1289 } 1290 1291 /** 1292 * Sets the value(s) for <b>serviceRequested</b> (what) 1293 * 1294 * <p> 1295 * <b>Definition:</b> 1296 * The service(s) that is/are requested to be provided to the patient. For example: cardiac pacemaker insertion 1297 * </p> 1298 */ 1299 public ReferralRequest setServiceRequested(java.util.List<CodeableConceptDt> theValue) { 1300 myServiceRequested = theValue; 1301 return this; 1302 } 1303 1304 1305 1306 /** 1307 * Adds and returns a new value for <b>serviceRequested</b> (what) 1308 * 1309 * <p> 1310 * <b>Definition:</b> 1311 * The service(s) that is/are requested to be provided to the patient. For example: cardiac pacemaker insertion 1312 * </p> 1313 */ 1314 public CodeableConceptDt addServiceRequested() { 1315 CodeableConceptDt newType = new CodeableConceptDt(); 1316 getServiceRequested().add(newType); 1317 return newType; 1318 } 1319 1320 /** 1321 * Adds a given new value for <b>serviceRequested</b> (what) 1322 * 1323 * <p> 1324 * <b>Definition:</b> 1325 * The service(s) that is/are requested to be provided to the patient. For example: cardiac pacemaker insertion 1326 * </p> 1327 * @param theValue The serviceRequested to add (must not be <code>null</code>) 1328 */ 1329 public ReferralRequest addServiceRequested(CodeableConceptDt theValue) { 1330 if (theValue == null) { 1331 throw new NullPointerException("theValue must not be null"); 1332 } 1333 getServiceRequested().add(theValue); 1334 return this; 1335 } 1336 1337 /** 1338 * Gets the first repetition for <b>serviceRequested</b> (what), 1339 * creating it if it does not already exist. 1340 * 1341 * <p> 1342 * <b>Definition:</b> 1343 * The service(s) that is/are requested to be provided to the patient. For example: cardiac pacemaker insertion 1344 * </p> 1345 */ 1346 public CodeableConceptDt getServiceRequestedFirstRep() { 1347 if (getServiceRequested().isEmpty()) { 1348 return addServiceRequested(); 1349 } 1350 return getServiceRequested().get(0); 1351 } 1352 1353 /** 1354 * Gets the value(s) for <b>supportingInformation</b> (). 1355 * creating it if it does 1356 * not exist. Will not return <code>null</code>. 1357 * 1358 * <p> 1359 * <b>Definition:</b> 1360 * Any additional (administrative, financial or clinical) information required to support request for referral or transfer of care. For example: Presenting problems/chief complaints Medical History Family History Alerts Allergy/Intolerance and Adverse Reactions Medications Observations/Assessments (may include cognitive and fundtional assessments) Diagnostic Reports Care Plan 1361 * </p> 1362 */ 1363 public java.util.List<ResourceReferenceDt> getSupportingInformation() { 1364 if (mySupportingInformation == null) { 1365 mySupportingInformation = new java.util.ArrayList<ResourceReferenceDt>(); 1366 } 1367 return mySupportingInformation; 1368 } 1369 1370 /** 1371 * Sets the value(s) for <b>supportingInformation</b> () 1372 * 1373 * <p> 1374 * <b>Definition:</b> 1375 * Any additional (administrative, financial or clinical) information required to support request for referral or transfer of care. For example: Presenting problems/chief complaints Medical History Family History Alerts Allergy/Intolerance and Adverse Reactions Medications Observations/Assessments (may include cognitive and fundtional assessments) Diagnostic Reports Care Plan 1376 * </p> 1377 */ 1378 public ReferralRequest setSupportingInformation(java.util.List<ResourceReferenceDt> theValue) { 1379 mySupportingInformation = theValue; 1380 return this; 1381 } 1382 1383 1384 1385 /** 1386 * Adds and returns a new value for <b>supportingInformation</b> () 1387 * 1388 * <p> 1389 * <b>Definition:</b> 1390 * Any additional (administrative, financial or clinical) information required to support request for referral or transfer of care. For example: Presenting problems/chief complaints Medical History Family History Alerts Allergy/Intolerance and Adverse Reactions Medications Observations/Assessments (may include cognitive and fundtional assessments) Diagnostic Reports Care Plan 1391 * </p> 1392 */ 1393 public ResourceReferenceDt addSupportingInformation() { 1394 ResourceReferenceDt newType = new ResourceReferenceDt(); 1395 getSupportingInformation().add(newType); 1396 return newType; 1397 } 1398 1399 /** 1400 * Gets the value(s) for <b>fulfillmentTime</b> (when.planned). 1401 * creating it if it does 1402 * not exist. Will not return <code>null</code>. 1403 * 1404 * <p> 1405 * <b>Definition:</b> 1406 * The period of time within which the services identified in the referral/transfer of care is specified or required to occur 1407 * </p> 1408 */ 1409 public PeriodDt getFulfillmentTime() { 1410 if (myFulfillmentTime == null) { 1411 myFulfillmentTime = new PeriodDt(); 1412 } 1413 return myFulfillmentTime; 1414 } 1415 1416 /** 1417 * Sets the value(s) for <b>fulfillmentTime</b> (when.planned) 1418 * 1419 * <p> 1420 * <b>Definition:</b> 1421 * The period of time within which the services identified in the referral/transfer of care is specified or required to occur 1422 * </p> 1423 */ 1424 public ReferralRequest setFulfillmentTime(PeriodDt theValue) { 1425 myFulfillmentTime = theValue; 1426 return this; 1427 } 1428 1429 1430 1431 1432 1433 1434 @Override 1435 public String getResourceName() { 1436 return "ReferralRequest"; 1437 } 1438 1439 public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { 1440 return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; 1441 } 1442 1443 1444}