001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017package ca.uhn.fhir.model.dstu2.resource; 018 019import java.math.BigDecimal; 020import java.net.URI; 021import java.util.*; 022import ca.uhn.fhir.model.api.*; 023import ca.uhn.fhir.model.api.annotation.*; 024import ca.uhn.fhir.rest.gclient.*; 025 026import ca.uhn.fhir.model.dstu2.valueset.AccountStatusEnum; 027import ca.uhn.fhir.model.dstu2.valueset.ActionListEnum; 028import ca.uhn.fhir.model.dstu2.composite.AddressDt; 029import ca.uhn.fhir.model.dstu2.valueset.AdjudicationCodesEnum; 030import ca.uhn.fhir.model.dstu2.valueset.AdjudicationErrorCodesEnum; 031import ca.uhn.fhir.model.dstu2.valueset.AdjustmentReasonCodesEnum; 032import ca.uhn.fhir.model.dstu2.valueset.AdministrativeGenderEnum; 033import ca.uhn.fhir.model.dstu2.valueset.AdmitSourceEnum; 034import ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance; 035import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCategoryEnum; 036import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCertaintyEnum; 037import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCriticalityEnum; 038import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceSeverityEnum; 039import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceStatusEnum; 040import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceTypeEnum; 041import ca.uhn.fhir.model.dstu2.valueset.AnimalSpeciesEnum; 042import ca.uhn.fhir.model.dstu2.composite.AnnotationDt; 043import ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum; 044import ca.uhn.fhir.model.dstu2.resource.Appointment; 045import ca.uhn.fhir.model.dstu2.valueset.AppointmentStatusEnum; 046import ca.uhn.fhir.model.dstu2.valueset.AssertionDirectionTypeEnum; 047import ca.uhn.fhir.model.dstu2.valueset.AssertionOperatorTypeEnum; 048import ca.uhn.fhir.model.dstu2.valueset.AssertionResponseTypesEnum; 049import ca.uhn.fhir.model.dstu2.composite.AttachmentDt; 050import ca.uhn.fhir.model.dstu2.valueset.AuditEventActionEnum; 051import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum; 052import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectRoleEnum; 053import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectTypeEnum; 054import ca.uhn.fhir.model.dstu2.valueset.AuditEventOutcomeEnum; 055import ca.uhn.fhir.model.dstu2.valueset.AuditEventParticipantNetworkTypeEnum; 056import ca.uhn.fhir.model.dstu2.valueset.AuditEventSourceTypeEnum; 057import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum; 058import ca.uhn.fhir.model.dstu2.resource.BodySite; 059import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum; 060import ca.uhn.fhir.model.dstu2.resource.CarePlan; 061import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityCategoryEnum; 062import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityStatusEnum; 063import ca.uhn.fhir.model.dstu2.valueset.CarePlanRelationshipEnum; 064import ca.uhn.fhir.model.dstu2.valueset.CarePlanStatusEnum; 065import ca.uhn.fhir.model.dstu2.resource.Claim; 066import ca.uhn.fhir.model.dstu2.resource.ClaimResponse; 067import ca.uhn.fhir.model.dstu2.valueset.ClaimTypeEnum; 068import ca.uhn.fhir.model.dstu2.resource.ClinicalImpression; 069import ca.uhn.fhir.model.dstu2.valueset.ClinicalImpressionStatusEnum; 070import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt; 071import ca.uhn.fhir.model.dstu2.composite.CodingDt; 072import ca.uhn.fhir.model.dstu2.resource.CommunicationRequest; 073import ca.uhn.fhir.model.dstu2.valueset.CommunicationRequestStatusEnum; 074import ca.uhn.fhir.model.dstu2.valueset.CommunicationStatusEnum; 075import ca.uhn.fhir.model.dstu2.resource.Composition; 076import ca.uhn.fhir.model.dstu2.valueset.CompositionAttestationModeEnum; 077import ca.uhn.fhir.model.dstu2.valueset.CompositionStatusEnum; 078import ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum; 079import ca.uhn.fhir.model.dstu2.resource.Condition; 080import ca.uhn.fhir.model.dstu2.valueset.ConditionCategoryCodesEnum; 081import ca.uhn.fhir.model.dstu2.valueset.ConditionClinicalStatusCodesEnum; 082import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum; 083import ca.uhn.fhir.model.dstu2.valueset.ConditionalDeleteStatusEnum; 084import ca.uhn.fhir.model.dstu2.valueset.ConditionsCodesEnum; 085import ca.uhn.fhir.model.dstu2.resource.Conformance; 086import ca.uhn.fhir.model.dstu2.valueset.ConformanceEventModeEnum; 087import ca.uhn.fhir.model.dstu2.valueset.ConformanceResourceStatusEnum; 088import ca.uhn.fhir.model.dstu2.valueset.ConformanceStatementKindEnum; 089import ca.uhn.fhir.model.dstu2.composite.ContactPointDt; 090import ca.uhn.fhir.model.dstu2.valueset.ContentTypeEnum; 091import ca.uhn.fhir.model.dstu2.resource.Contract; 092import ca.uhn.fhir.model.dstu2.valueset.ContractActionCodesEnum; 093import ca.uhn.fhir.model.dstu2.valueset.ContractActorRoleCodesEnum; 094import ca.uhn.fhir.model.dstu2.valueset.ContractSubtypeCodesEnum; 095import ca.uhn.fhir.model.dstu2.valueset.ContractTermTypeCodesEnum; 096import ca.uhn.fhir.model.dstu2.valueset.ContractTypeCodesEnum; 097import ca.uhn.fhir.model.dstu2.resource.Coverage; 098import ca.uhn.fhir.model.dstu2.valueset.DataElementStringencyEnum; 099import ca.uhn.fhir.model.dstu2.valueset.DaysOfWeekEnum; 100import ca.uhn.fhir.model.dstu2.valueset.DetectedIssueSeverityEnum; 101import ca.uhn.fhir.model.dstu2.resource.Device; 102import ca.uhn.fhir.model.dstu2.resource.DeviceComponent; 103import ca.uhn.fhir.model.dstu2.resource.DeviceMetric; 104import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationStateEnum; 105import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationTypeEnum; 106import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCategoryEnum; 107import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricColorEnum; 108import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricOperationalStatusEnum; 109import ca.uhn.fhir.model.dstu2.valueset.DeviceStatusEnum; 110import ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest; 111import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestPriorityEnum; 112import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestStatusEnum; 113import ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder; 114import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderPriorityEnum; 115import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderStatusEnum; 116import ca.uhn.fhir.model.dstu2.resource.DiagnosticReport; 117import ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum; 118import ca.uhn.fhir.model.dstu2.valueset.DigitalMediaTypeEnum; 119import ca.uhn.fhir.model.dstu2.valueset.DocumentModeEnum; 120import ca.uhn.fhir.model.dstu2.resource.DocumentReference; 121import ca.uhn.fhir.model.dstu2.valueset.DocumentReferenceStatusEnum; 122import ca.uhn.fhir.model.dstu2.valueset.DocumentRelationshipTypeEnum; 123import ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt; 124import ca.uhn.fhir.model.dstu2.resource.EligibilityRequest; 125import ca.uhn.fhir.model.dstu2.resource.Encounter; 126import ca.uhn.fhir.model.dstu2.valueset.EncounterClassEnum; 127import ca.uhn.fhir.model.dstu2.valueset.EncounterLocationStatusEnum; 128import ca.uhn.fhir.model.dstu2.valueset.EncounterStateEnum; 129import ca.uhn.fhir.model.dstu2.valueset.EncounterTypeEnum; 130import ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest; 131import ca.uhn.fhir.model.dstu2.valueset.EnteralFormulaTypeCodesEnum; 132import ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare; 133import ca.uhn.fhir.model.dstu2.valueset.EpisodeOfCareStatusEnum; 134import ca.uhn.fhir.model.dstu2.valueset.ExceptionCodesEnum; 135import ca.uhn.fhir.model.dstu2.valueset.ExtensionContextEnum; 136import ca.uhn.fhir.model.dstu2.valueset.FamilyHistoryStatusEnum; 137import ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory; 138import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum; 139import ca.uhn.fhir.model.dstu2.valueset.FlagCategoryCodesEnum; 140import ca.uhn.fhir.model.dstu2.valueset.FlagStatusEnum; 141import ca.uhn.fhir.model.dstu2.valueset.FluidConsistencyTypeCodesEnum; 142import ca.uhn.fhir.model.dstu2.resource.Goal; 143import ca.uhn.fhir.model.dstu2.valueset.GoalCategoryEnum; 144import ca.uhn.fhir.model.dstu2.valueset.GoalPriorityEnum; 145import ca.uhn.fhir.model.dstu2.valueset.GoalStartEventEnum; 146import ca.uhn.fhir.model.dstu2.valueset.GoalStatusEnum; 147import ca.uhn.fhir.model.dstu2.valueset.GoalStatusReasonEnum; 148import ca.uhn.fhir.model.dstu2.resource.Group; 149import ca.uhn.fhir.model.dstu2.valueset.GroupTypeEnum; 150import ca.uhn.fhir.model.dstu2.valueset.GuideDependencyTypeEnum; 151import ca.uhn.fhir.model.dstu2.valueset.GuidePageKindEnum; 152import ca.uhn.fhir.model.dstu2.valueset.GuideResourcePurposeEnum; 153import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum; 154import ca.uhn.fhir.model.dstu2.resource.HealthcareService; 155import ca.uhn.fhir.model.dstu2.composite.HumanNameDt; 156import ca.uhn.fhir.model.dstu2.composite.IdentifierDt; 157import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum; 158import ca.uhn.fhir.model.dstu2.valueset.IdentityAssuranceLevelEnum; 159import ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection; 160import ca.uhn.fhir.model.dstu2.resource.ImagingStudy; 161import ca.uhn.fhir.model.dstu2.resource.Immunization; 162import ca.uhn.fhir.model.dstu2.valueset.ImmunizationReasonCodesEnum; 163import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRecommendationDateCriterionCodesEnum; 164import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRecommendationStatusCodesEnum; 165import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRouteCodesEnum; 166import ca.uhn.fhir.model.dstu2.valueset.InstanceAvailabilityEnum; 167import ca.uhn.fhir.model.dstu2.valueset.InterventionCodesEnum; 168import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum; 169import ca.uhn.fhir.model.dstu2.valueset.IssueTypeEnum; 170import ca.uhn.fhir.model.dstu2.valueset.KOStitleEnum; 171import ca.uhn.fhir.model.dstu2.valueset.LateralityEnum; 172import ca.uhn.fhir.model.dstu2.valueset.LinkTypeEnum; 173import ca.uhn.fhir.model.dstu2.valueset.ListModeEnum; 174import ca.uhn.fhir.model.dstu2.valueset.ListOrderCodesEnum; 175import ca.uhn.fhir.model.dstu2.valueset.ListStatusEnum; 176import ca.uhn.fhir.model.dstu2.resource.Location; 177import ca.uhn.fhir.model.dstu2.valueset.LocationModeEnum; 178import ca.uhn.fhir.model.dstu2.valueset.LocationStatusEnum; 179import ca.uhn.fhir.model.dstu2.valueset.LocationTypeEnum; 180import ca.uhn.fhir.model.dstu2.valueset.MaritalStatusCodesEnum; 181import ca.uhn.fhir.model.dstu2.valueset.MeasmntPrincipleEnum; 182import ca.uhn.fhir.model.dstu2.resource.Media; 183import ca.uhn.fhir.model.dstu2.resource.Medication; 184import ca.uhn.fhir.model.dstu2.valueset.MedicationAdministrationStatusEnum; 185import ca.uhn.fhir.model.dstu2.valueset.MedicationDispenseStatusEnum; 186import ca.uhn.fhir.model.dstu2.resource.MedicationOrder; 187import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum; 188import ca.uhn.fhir.model.dstu2.resource.MedicationStatement; 189import ca.uhn.fhir.model.dstu2.valueset.MedicationStatementStatusEnum; 190import ca.uhn.fhir.model.dstu2.valueset.MessageEventEnum; 191import ca.uhn.fhir.model.dstu2.valueset.MessageSignificanceCategoryEnum; 192import ca.uhn.fhir.model.dstu2.valueset.MessageTransportEnum; 193import ca.uhn.fhir.model.dstu2.resource.NamingSystem; 194import ca.uhn.fhir.model.dstu2.valueset.NamingSystemIdentifierTypeEnum; 195import ca.uhn.fhir.model.dstu2.valueset.NamingSystemTypeEnum; 196import ca.uhn.fhir.model.dstu2.valueset.NoteTypeEnum; 197import ca.uhn.fhir.model.dstu2.valueset.NutrientModifierCodesEnum; 198import ca.uhn.fhir.model.dstu2.resource.NutritionOrder; 199import ca.uhn.fhir.model.dstu2.valueset.NutritionOrderStatusEnum; 200import ca.uhn.fhir.model.dstu2.resource.Observation; 201import ca.uhn.fhir.model.dstu2.valueset.ObservationCategoryCodesEnum; 202import ca.uhn.fhir.model.dstu2.valueset.ObservationRelationshipTypeEnum; 203import ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum; 204import ca.uhn.fhir.model.dstu2.resource.OperationDefinition; 205import ca.uhn.fhir.model.dstu2.valueset.OperationKindEnum; 206import ca.uhn.fhir.model.dstu2.resource.OperationOutcome; 207import ca.uhn.fhir.model.dstu2.valueset.OperationParameterUseEnum; 208import ca.uhn.fhir.model.dstu2.resource.Order; 209import ca.uhn.fhir.model.dstu2.valueset.OrderStatusEnum; 210import ca.uhn.fhir.model.dstu2.resource.Organization; 211import ca.uhn.fhir.model.dstu2.valueset.OrganizationTypeEnum; 212import ca.uhn.fhir.model.dstu2.valueset.ParticipantRequiredEnum; 213import ca.uhn.fhir.model.dstu2.valueset.ParticipantStatusEnum; 214import ca.uhn.fhir.model.dstu2.valueset.ParticipantTypeEnum; 215import ca.uhn.fhir.model.dstu2.valueset.ParticipationStatusEnum; 216import ca.uhn.fhir.model.dstu2.resource.Patient; 217import ca.uhn.fhir.model.dstu2.valueset.PayeeTypeCodesEnum; 218import ca.uhn.fhir.model.dstu2.valueset.PaymentStatusCodesEnum; 219import ca.uhn.fhir.model.dstu2.valueset.PaymentTypeCodesEnum; 220import ca.uhn.fhir.model.dstu2.composite.PeriodDt; 221import ca.uhn.fhir.model.dstu2.resource.Person; 222import ca.uhn.fhir.model.dstu2.resource.Practitioner; 223import ca.uhn.fhir.model.dstu2.valueset.PractitionerRoleEnum; 224import ca.uhn.fhir.model.dstu2.valueset.PractitionerSpecialtyEnum; 225import ca.uhn.fhir.model.dstu2.valueset.PriorityCodesEnum; 226import ca.uhn.fhir.model.dstu2.resource.Procedure; 227import ca.uhn.fhir.model.dstu2.resource.ProcedureRequest; 228import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestPriorityEnum; 229import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestStatusEnum; 230import ca.uhn.fhir.model.dstu2.valueset.ProcedureStatusEnum; 231import ca.uhn.fhir.model.dstu2.resource.ProcessRequest; 232import ca.uhn.fhir.model.dstu2.valueset.ProvenanceEntityRoleEnum; 233import ca.uhn.fhir.model.dstu2.composite.QuantityDt; 234import ca.uhn.fhir.model.dstu2.resource.Questionnaire; 235import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse; 236import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireResponseStatusEnum; 237import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireStatusEnum; 238import ca.uhn.fhir.model.dstu2.composite.RangeDt; 239import ca.uhn.fhir.model.dstu2.composite.RatioDt; 240import ca.uhn.fhir.model.dstu2.valueset.ReferralMethodEnum; 241import ca.uhn.fhir.model.dstu2.resource.ReferralRequest; 242import ca.uhn.fhir.model.dstu2.valueset.ReferralStatusEnum; 243import ca.uhn.fhir.model.dstu2.resource.RelatedPerson; 244import ca.uhn.fhir.model.dstu2.valueset.RemittanceOutcomeEnum; 245import ca.uhn.fhir.model.dstu2.valueset.ResourceTypeEnum; 246import ca.uhn.fhir.model.dstu2.valueset.ResourceVersionPolicyEnum; 247import ca.uhn.fhir.model.dstu2.valueset.ResponseTypeEnum; 248import ca.uhn.fhir.model.dstu2.valueset.RestfulConformanceModeEnum; 249import ca.uhn.fhir.model.dstu2.valueset.RestfulSecurityServiceEnum; 250import ca.uhn.fhir.model.dstu2.resource.RiskAssessment; 251import ca.uhn.fhir.model.dstu2.valueset.RulesetCodesEnum; 252import ca.uhn.fhir.model.dstu2.composite.SampledDataDt; 253import ca.uhn.fhir.model.dstu2.resource.Schedule; 254import ca.uhn.fhir.model.dstu2.valueset.SearchEntryModeEnum; 255import ca.uhn.fhir.model.dstu2.valueset.SearchModifierCodeEnum; 256import ca.uhn.fhir.model.dstu2.valueset.SearchParamTypeEnum; 257import ca.uhn.fhir.model.dstu2.valueset.ServiceProvisionConditionsEnum; 258import ca.uhn.fhir.model.dstu2.composite.SignatureDt; 259import ca.uhn.fhir.model.dstu2.resource.Slot; 260import ca.uhn.fhir.model.dstu2.valueset.SlotStatusEnum; 261import ca.uhn.fhir.model.dstu2.resource.Specimen; 262import ca.uhn.fhir.model.dstu2.valueset.SpecimenCollectionMethodEnum; 263import ca.uhn.fhir.model.dstu2.valueset.SpecimenStatusEnum; 264import ca.uhn.fhir.model.dstu2.resource.StructureDefinition; 265import ca.uhn.fhir.model.dstu2.valueset.StructureDefinitionKindEnum; 266import ca.uhn.fhir.model.dstu2.valueset.SubscriptionChannelTypeEnum; 267import ca.uhn.fhir.model.dstu2.valueset.SubscriptionStatusEnum; 268import ca.uhn.fhir.model.dstu2.valueset.SubscriptionTagEnum; 269import ca.uhn.fhir.model.dstu2.resource.Substance; 270import ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum; 271import ca.uhn.fhir.model.dstu2.valueset.SupplementTypeCodesEnum; 272import ca.uhn.fhir.model.dstu2.valueset.SupplyDeliveryStatusEnum; 273import ca.uhn.fhir.model.dstu2.resource.SupplyRequest; 274import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestReasonEnum; 275import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestStatusEnum; 276import ca.uhn.fhir.model.dstu2.valueset.SurfaceCodesEnum; 277import ca.uhn.fhir.model.dstu2.valueset.SystemRestfulInteractionEnum; 278import ca.uhn.fhir.model.api.TemporalPrecisionEnum; 279import ca.uhn.fhir.model.dstu2.valueset.TextureModifiedFoodTypeCodesEnum; 280import ca.uhn.fhir.model.dstu2.valueset.TextureModifierCodesEnum; 281import ca.uhn.fhir.model.dstu2.composite.TimingDt; 282import ca.uhn.fhir.model.dstu2.valueset.TransactionModeEnum; 283import ca.uhn.fhir.model.dstu2.valueset.TypeRestfulInteractionEnum; 284import ca.uhn.fhir.model.dstu2.valueset.UDICodesEnum; 285import ca.uhn.fhir.model.dstu2.valueset.UnknownContentCodeEnum; 286import ca.uhn.fhir.model.dstu2.valueset.UseEnum; 287import ca.uhn.fhir.model.dstu2.resource.ValueSet; 288import ca.uhn.fhir.model.dstu2.valueset.VisionBaseEnum; 289import ca.uhn.fhir.model.dstu2.valueset.VisionEyesEnum; 290import ca.uhn.fhir.model.dstu2.resource.VisionPrescription; 291import ca.uhn.fhir.model.dstu2.valueset.XPathUsageTypeEnum; 292import ca.uhn.fhir.model.api.IResource; 293import ca.uhn.fhir.model.dstu2.composite.AgeDt; 294import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt; 295import ca.uhn.fhir.model.dstu2.composite.DurationDt; 296import ca.uhn.fhir.model.dstu2.composite.MoneyDt; 297import ca.uhn.fhir.model.dstu2.composite.NarrativeDt; 298import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt; 299import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt; 300import ca.uhn.fhir.model.primitive.Base64BinaryDt; 301import ca.uhn.fhir.model.primitive.BooleanDt; 302import ca.uhn.fhir.model.primitive.BoundCodeDt; 303import ca.uhn.fhir.model.primitive.CodeDt; 304import ca.uhn.fhir.model.primitive.DateDt; 305import ca.uhn.fhir.model.primitive.DateTimeDt; 306import ca.uhn.fhir.model.primitive.DecimalDt; 307import ca.uhn.fhir.model.primitive.IdDt; 308import ca.uhn.fhir.model.primitive.InstantDt; 309import ca.uhn.fhir.model.primitive.IntegerDt; 310import ca.uhn.fhir.model.primitive.OidDt; 311import ca.uhn.fhir.model.primitive.PositiveIntDt; 312import ca.uhn.fhir.model.primitive.StringDt; 313import ca.uhn.fhir.model.primitive.TimeDt; 314import ca.uhn.fhir.model.primitive.UnsignedIntDt; 315import ca.uhn.fhir.model.primitive.UriDt; 316 317 318/** 319 * HAPI/FHIR <b>AppointmentResponse</b> Resource 320 * () 321 * 322 * <p> 323 * <b>Definition:</b> 324 * A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection. 325 * </p> 326 * 327 * <p> 328 * <b>Requirements:</b> 329 * 330 * </p> 331 * 332 * <p> 333 * <b>Profile Definition:</b> 334 * <a href="http://hl7.org/fhir/profiles/AppointmentResponse">http://hl7.org/fhir/profiles/AppointmentResponse</a> 335 * </p> 336 * 337 */ 338@ResourceDef(name="AppointmentResponse", profile="http://hl7.org/fhir/profiles/AppointmentResponse", id="appointmentresponse") 339public class AppointmentResponse extends ca.uhn.fhir.model.dstu2.resource.BaseResource 340 implements IResource { 341 342 /** 343 * Search parameter constant for <b>appointment</b> 344 * <p> 345 * Description: <b>The appointment that the response is attached to</b><br> 346 * Type: <b>reference</b><br> 347 * Path: <b>AppointmentResponse.appointment</b><br> 348 * </p> 349 */ 350 @SearchParamDefinition(name="appointment", path="AppointmentResponse.appointment", description="The appointment that the response is attached to", type="reference" ) 351 public static final String SP_APPOINTMENT = "appointment"; 352 353 /** 354 * <b>Fluent Client</b> search parameter constant for <b>appointment</b> 355 * <p> 356 * Description: <b>The appointment that the response is attached to</b><br> 357 * Type: <b>reference</b><br> 358 * Path: <b>AppointmentResponse.appointment</b><br> 359 * </p> 360 */ 361 public static final ReferenceClientParam APPOINTMENT = new ReferenceClientParam(SP_APPOINTMENT); 362 363 /** 364 * Search parameter constant for <b>part-status</b> 365 * <p> 366 * Description: <b>The participants acceptance status for this appointment</b><br> 367 * Type: <b>token</b><br> 368 * Path: <b>AppointmentResponse.participantStatus</b><br> 369 * </p> 370 */ 371 @SearchParamDefinition(name="part-status", path="AppointmentResponse.participantStatus", description="The participants acceptance status for this appointment", type="token" ) 372 public static final String SP_PART_STATUS = "part-status"; 373 374 /** 375 * <b>Fluent Client</b> search parameter constant for <b>part-status</b> 376 * <p> 377 * Description: <b>The participants acceptance status for this appointment</b><br> 378 * Type: <b>token</b><br> 379 * Path: <b>AppointmentResponse.participantStatus</b><br> 380 * </p> 381 */ 382 public static final TokenClientParam PART_STATUS = new TokenClientParam(SP_PART_STATUS); 383 384 /** 385 * Search parameter constant for <b>actor</b> 386 * <p> 387 * Description: <b>The Person, Location/HealthcareService or Device that this appointment response replies for</b><br> 388 * Type: <b>reference</b><br> 389 * Path: <b>AppointmentResponse.actor</b><br> 390 * </p> 391 */ 392 @SearchParamDefinition(name="actor", path="AppointmentResponse.actor", description="The Person, Location/HealthcareService or Device that this appointment response replies for", type="reference" ) 393 public static final String SP_ACTOR = "actor"; 394 395 /** 396 * <b>Fluent Client</b> search parameter constant for <b>actor</b> 397 * <p> 398 * Description: <b>The Person, Location/HealthcareService or Device that this appointment response replies for</b><br> 399 * Type: <b>reference</b><br> 400 * Path: <b>AppointmentResponse.actor</b><br> 401 * </p> 402 */ 403 public static final ReferenceClientParam ACTOR = new ReferenceClientParam(SP_ACTOR); 404 405 /** 406 * Search parameter constant for <b>patient</b> 407 * <p> 408 * Description: <b>This Response is for this Patient</b><br> 409 * Type: <b>reference</b><br> 410 * Path: <b>AppointmentResponse.actor</b><br> 411 * </p> 412 */ 413 @SearchParamDefinition(name="patient", path="AppointmentResponse.actor", description="This Response is for this Patient", type="reference" ) 414 public static final String SP_PATIENT = "patient"; 415 416 /** 417 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 418 * <p> 419 * Description: <b>This Response is for this Patient</b><br> 420 * Type: <b>reference</b><br> 421 * Path: <b>AppointmentResponse.actor</b><br> 422 * </p> 423 */ 424 public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); 425 426 /** 427 * Search parameter constant for <b>practitioner</b> 428 * <p> 429 * Description: <b>This Response is for this Practitioner</b><br> 430 * Type: <b>reference</b><br> 431 * Path: <b>AppointmentResponse.actor</b><br> 432 * </p> 433 */ 434 @SearchParamDefinition(name="practitioner", path="AppointmentResponse.actor", description="This Response is for this Practitioner", type="reference" ) 435 public static final String SP_PRACTITIONER = "practitioner"; 436 437 /** 438 * <b>Fluent Client</b> search parameter constant for <b>practitioner</b> 439 * <p> 440 * Description: <b>This Response is for this Practitioner</b><br> 441 * Type: <b>reference</b><br> 442 * Path: <b>AppointmentResponse.actor</b><br> 443 * </p> 444 */ 445 public static final ReferenceClientParam PRACTITIONER = new ReferenceClientParam(SP_PRACTITIONER); 446 447 /** 448 * Search parameter constant for <b>location</b> 449 * <p> 450 * Description: <b>This Response is for this Location</b><br> 451 * Type: <b>reference</b><br> 452 * Path: <b>AppointmentResponse.actor</b><br> 453 * </p> 454 */ 455 @SearchParamDefinition(name="location", path="AppointmentResponse.actor", description="This Response is for this Location", type="reference" ) 456 public static final String SP_LOCATION = "location"; 457 458 /** 459 * <b>Fluent Client</b> search parameter constant for <b>location</b> 460 * <p> 461 * Description: <b>This Response is for this Location</b><br> 462 * Type: <b>reference</b><br> 463 * Path: <b>AppointmentResponse.actor</b><br> 464 * </p> 465 */ 466 public static final ReferenceClientParam LOCATION = new ReferenceClientParam(SP_LOCATION); 467 468 /** 469 * Search parameter constant for <b>identifier</b> 470 * <p> 471 * Description: <b>An Identifier in this appointment response</b><br> 472 * Type: <b>token</b><br> 473 * Path: <b>AppointmentResponse.identifier</b><br> 474 * </p> 475 */ 476 @SearchParamDefinition(name="identifier", path="AppointmentResponse.identifier", description="An Identifier in this appointment response", type="token" ) 477 public static final String SP_IDENTIFIER = "identifier"; 478 479 /** 480 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 481 * <p> 482 * Description: <b>An Identifier in this appointment response</b><br> 483 * Type: <b>token</b><br> 484 * Path: <b>AppointmentResponse.identifier</b><br> 485 * </p> 486 */ 487 public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); 488 489 490 /** 491 * Constant for fluent queries to be used to add include statements. Specifies 492 * the path value of "<b>AppointmentResponse:actor</b>". 493 */ 494 public static final Include INCLUDE_ACTOR = new Include("AppointmentResponse:actor"); 495 496 /** 497 * Constant for fluent queries to be used to add include statements. Specifies 498 * the path value of "<b>AppointmentResponse:appointment</b>". 499 */ 500 public static final Include INCLUDE_APPOINTMENT = new Include("AppointmentResponse:appointment"); 501 502 /** 503 * Constant for fluent queries to be used to add include statements. Specifies 504 * the path value of "<b>AppointmentResponse:location</b>". 505 */ 506 public static final Include INCLUDE_LOCATION = new Include("AppointmentResponse:location"); 507 508 /** 509 * Constant for fluent queries to be used to add include statements. Specifies 510 * the path value of "<b>AppointmentResponse:patient</b>". 511 */ 512 public static final Include INCLUDE_PATIENT = new Include("AppointmentResponse:patient"); 513 514 /** 515 * Constant for fluent queries to be used to add include statements. Specifies 516 * the path value of "<b>AppointmentResponse:practitioner</b>". 517 */ 518 public static final Include INCLUDE_PRACTITIONER = new Include("AppointmentResponse:practitioner"); 519 520 521 @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) 522 @Description( 523 shortDefinition="", 524 formalDefinition="This records identifiers associated with this appointment response concern that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate" 525 ) 526 private java.util.List<IdentifierDt> myIdentifier; 527 528 @Child(name="appointment", order=1, min=1, max=1, summary=true, modifier=false, type={ 529 ca.uhn.fhir.model.dstu2.resource.Appointment.class }) 530 @Description( 531 shortDefinition="", 532 formalDefinition="" 533 ) 534 private ResourceReferenceDt myAppointment; 535 536 @Child(name="start", type=InstantDt.class, order=2, min=0, max=1, summary=false, modifier=false) 537 @Description( 538 shortDefinition="", 539 formalDefinition="Date/Time that the appointment is to take place, or requested new start time" 540 ) 541 private InstantDt myStart; 542 543 @Child(name="end", type=InstantDt.class, order=3, min=0, max=1, summary=false, modifier=false) 544 @Description( 545 shortDefinition="", 546 formalDefinition="This may be either the same as the appointment request to confirm the details of the appointment, or alternately a new time to request a re-negotiation of the end time." 547 ) 548 private InstantDt myEnd; 549 550 @Child(name="participantType", type=CodeableConceptDt.class, order=4, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) 551 @Description( 552 shortDefinition="", 553 formalDefinition="Role of participant in the appointment" 554 ) 555 private java.util.List<BoundCodeableConceptDt<ParticipantTypeEnum>> myParticipantType; 556 557 @Child(name="actor", order=5, min=0, max=1, summary=true, modifier=false, type={ 558 ca.uhn.fhir.model.dstu2.resource.Patient.class, ca.uhn.fhir.model.dstu2.resource.Practitioner.class, ca.uhn.fhir.model.dstu2.resource.RelatedPerson.class, ca.uhn.fhir.model.dstu2.resource.Device.class, ca.uhn.fhir.model.dstu2.resource.HealthcareService.class, ca.uhn.fhir.model.dstu2.resource.Location.class }) 559 @Description( 560 shortDefinition="", 561 formalDefinition="A Person, Location/HealthcareService or Device that is participating in the appointment" 562 ) 563 private ResourceReferenceDt myActor; 564 565 @Child(name="participantStatus", type=CodeDt.class, order=6, min=1, max=1, summary=true, modifier=true) 566 @Description( 567 shortDefinition="", 568 formalDefinition="Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty." 569 ) 570 private BoundCodeDt<ParticipantStatusEnum> myParticipantStatus; 571 572 @Child(name="comment", type=StringDt.class, order=7, min=0, max=1, summary=false, modifier=false) 573 @Description( 574 shortDefinition="", 575 formalDefinition="Additional comments about the appointment" 576 ) 577 private StringDt myComment; 578 579 580 @Override 581 public boolean isEmpty() { 582 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myAppointment, myStart, myEnd, myParticipantType, myActor, myParticipantStatus, myComment); 583 } 584 585 @Override 586 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 587 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myAppointment, myStart, myEnd, myParticipantType, myActor, myParticipantStatus, myComment); 588 } 589 590 /** 591 * Gets the value(s) for <b>identifier</b> (). 592 * creating it if it does 593 * not exist. Will not return <code>null</code>. 594 * 595 * <p> 596 * <b>Definition:</b> 597 * This records identifiers associated with this appointment response concern that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate 598 * </p> 599 */ 600 public java.util.List<IdentifierDt> getIdentifier() { 601 if (myIdentifier == null) { 602 myIdentifier = new java.util.ArrayList<IdentifierDt>(); 603 } 604 return myIdentifier; 605 } 606 607 /** 608 * Sets the value(s) for <b>identifier</b> () 609 * 610 * <p> 611 * <b>Definition:</b> 612 * This records identifiers associated with this appointment response concern that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate 613 * </p> 614 */ 615 public AppointmentResponse setIdentifier(java.util.List<IdentifierDt> theValue) { 616 myIdentifier = theValue; 617 return this; 618 } 619 620 621 622 /** 623 * Adds and returns a new value for <b>identifier</b> () 624 * 625 * <p> 626 * <b>Definition:</b> 627 * This records identifiers associated with this appointment response concern that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate 628 * </p> 629 */ 630 public IdentifierDt addIdentifier() { 631 IdentifierDt newType = new IdentifierDt(); 632 getIdentifier().add(newType); 633 return newType; 634 } 635 636 /** 637 * Adds a given new value for <b>identifier</b> () 638 * 639 * <p> 640 * <b>Definition:</b> 641 * This records identifiers associated with this appointment response concern that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate 642 * </p> 643 * @param theValue The identifier to add (must not be <code>null</code>) 644 */ 645 public AppointmentResponse addIdentifier(IdentifierDt theValue) { 646 if (theValue == null) { 647 throw new NullPointerException("theValue must not be null"); 648 } 649 getIdentifier().add(theValue); 650 return this; 651 } 652 653 /** 654 * Gets the first repetition for <b>identifier</b> (), 655 * creating it if it does not already exist. 656 * 657 * <p> 658 * <b>Definition:</b> 659 * This records identifiers associated with this appointment response concern that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate 660 * </p> 661 */ 662 public IdentifierDt getIdentifierFirstRep() { 663 if (getIdentifier().isEmpty()) { 664 return addIdentifier(); 665 } 666 return getIdentifier().get(0); 667 } 668 669 /** 670 * Gets the value(s) for <b>appointment</b> (). 671 * creating it if it does 672 * not exist. Will not return <code>null</code>. 673 * 674 * <p> 675 * <b>Definition:</b> 676 * 677 * </p> 678 */ 679 public ResourceReferenceDt getAppointment() { 680 if (myAppointment == null) { 681 myAppointment = new ResourceReferenceDt(); 682 } 683 return myAppointment; 684 } 685 686 /** 687 * Sets the value(s) for <b>appointment</b> () 688 * 689 * <p> 690 * <b>Definition:</b> 691 * 692 * </p> 693 */ 694 public AppointmentResponse setAppointment(ResourceReferenceDt theValue) { 695 myAppointment = theValue; 696 return this; 697 } 698 699 700 701 702 /** 703 * Gets the value(s) for <b>start</b> (). 704 * creating it if it does 705 * not exist. Will not return <code>null</code>. 706 * 707 * <p> 708 * <b>Definition:</b> 709 * Date/Time that the appointment is to take place, or requested new start time 710 * </p> 711 */ 712 public InstantDt getStartElement() { 713 if (myStart == null) { 714 myStart = new InstantDt(); 715 } 716 return myStart; 717 } 718 719 720 /** 721 * Gets the value(s) for <b>start</b> (). 722 * creating it if it does 723 * not exist. Will not return <code>null</code>. 724 * 725 * <p> 726 * <b>Definition:</b> 727 * Date/Time that the appointment is to take place, or requested new start time 728 * </p> 729 */ 730 public Date getStart() { 731 return getStartElement().getValue(); 732 } 733 734 /** 735 * Sets the value(s) for <b>start</b> () 736 * 737 * <p> 738 * <b>Definition:</b> 739 * Date/Time that the appointment is to take place, or requested new start time 740 * </p> 741 */ 742 public AppointmentResponse setStart(InstantDt theValue) { 743 myStart = theValue; 744 return this; 745 } 746 747 748 749 /** 750 * Sets the value for <b>start</b> () 751 * 752 * <p> 753 * <b>Definition:</b> 754 * Date/Time that the appointment is to take place, or requested new start time 755 * </p> 756 */ 757 public AppointmentResponse setStartWithMillisPrecision( Date theDate) { 758 myStart = new InstantDt(theDate); 759 return this; 760 } 761 762 /** 763 * Sets the value for <b>start</b> () 764 * 765 * <p> 766 * <b>Definition:</b> 767 * Date/Time that the appointment is to take place, or requested new start time 768 * </p> 769 */ 770 public AppointmentResponse setStart( Date theDate, TemporalPrecisionEnum thePrecision) { 771 myStart = new InstantDt(theDate, thePrecision); 772 return this; 773 } 774 775 776 /** 777 * Gets the value(s) for <b>end</b> (). 778 * creating it if it does 779 * not exist. Will not return <code>null</code>. 780 * 781 * <p> 782 * <b>Definition:</b> 783 * This may be either the same as the appointment request to confirm the details of the appointment, or alternately a new time to request a re-negotiation of the end time. 784 * </p> 785 */ 786 public InstantDt getEndElement() { 787 if (myEnd == null) { 788 myEnd = new InstantDt(); 789 } 790 return myEnd; 791 } 792 793 794 /** 795 * Gets the value(s) for <b>end</b> (). 796 * creating it if it does 797 * not exist. Will not return <code>null</code>. 798 * 799 * <p> 800 * <b>Definition:</b> 801 * This may be either the same as the appointment request to confirm the details of the appointment, or alternately a new time to request a re-negotiation of the end time. 802 * </p> 803 */ 804 public Date getEnd() { 805 return getEndElement().getValue(); 806 } 807 808 /** 809 * Sets the value(s) for <b>end</b> () 810 * 811 * <p> 812 * <b>Definition:</b> 813 * This may be either the same as the appointment request to confirm the details of the appointment, or alternately a new time to request a re-negotiation of the end time. 814 * </p> 815 */ 816 public AppointmentResponse setEnd(InstantDt theValue) { 817 myEnd = theValue; 818 return this; 819 } 820 821 822 823 /** 824 * Sets the value for <b>end</b> () 825 * 826 * <p> 827 * <b>Definition:</b> 828 * This may be either the same as the appointment request to confirm the details of the appointment, or alternately a new time to request a re-negotiation of the end time. 829 * </p> 830 */ 831 public AppointmentResponse setEndWithMillisPrecision( Date theDate) { 832 myEnd = new InstantDt(theDate); 833 return this; 834 } 835 836 /** 837 * Sets the value for <b>end</b> () 838 * 839 * <p> 840 * <b>Definition:</b> 841 * This may be either the same as the appointment request to confirm the details of the appointment, or alternately a new time to request a re-negotiation of the end time. 842 * </p> 843 */ 844 public AppointmentResponse setEnd( Date theDate, TemporalPrecisionEnum thePrecision) { 845 myEnd = new InstantDt(theDate, thePrecision); 846 return this; 847 } 848 849 850 /** 851 * Gets the value(s) for <b>participantType</b> (). 852 * creating it if it does 853 * not exist. Will not return <code>null</code>. 854 * 855 * <p> 856 * <b>Definition:</b> 857 * Role of participant in the appointment 858 * </p> 859 */ 860 public java.util.List<BoundCodeableConceptDt<ParticipantTypeEnum>> getParticipantType() { 861 if (myParticipantType == null) { 862 myParticipantType = new java.util.ArrayList<BoundCodeableConceptDt<ParticipantTypeEnum>>(); 863 } 864 return myParticipantType; 865 } 866 867 /** 868 * Sets the value(s) for <b>participantType</b> () 869 * 870 * <p> 871 * <b>Definition:</b> 872 * Role of participant in the appointment 873 * </p> 874 */ 875 public AppointmentResponse setParticipantType(java.util.List<BoundCodeableConceptDt<ParticipantTypeEnum>> theValue) { 876 myParticipantType = theValue; 877 return this; 878 } 879 880 881 882 /** 883 * Add a value for <b>participantType</b> () using an enumerated type. This 884 * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory 885 * or contain the desirable codes. If you wish to use codes other than those which are built-in, 886 * you may also use the {@link #addParticipantType()} method. 887 * 888 * <p> 889 * <b>Definition:</b> 890 * Role of participant in the appointment 891 * </p> 892 */ 893 public BoundCodeableConceptDt<ParticipantTypeEnum> addParticipantType(ParticipantTypeEnum theValue) { 894 BoundCodeableConceptDt<ParticipantTypeEnum> retVal = new BoundCodeableConceptDt<ParticipantTypeEnum>(ParticipantTypeEnum.VALUESET_BINDER, theValue); 895 getParticipantType().add(retVal); 896 return retVal; 897 } 898 899 /** 900 * Gets the first repetition for <b>participantType</b> (), 901 * creating it if it does not already exist. 902 * 903 * <p> 904 * <b>Definition:</b> 905 * Role of participant in the appointment 906 * </p> 907 */ 908 public BoundCodeableConceptDt<ParticipantTypeEnum> getParticipantTypeFirstRep() { 909 if (getParticipantType().size() == 0) { 910 addParticipantType(); 911 } 912 return getParticipantType().get(0); 913 } 914 915 /** 916 * Add a value for <b>participantType</b> () 917 * 918 * <p> 919 * <b>Definition:</b> 920 * Role of participant in the appointment 921 * </p> 922 */ 923 public BoundCodeableConceptDt<ParticipantTypeEnum> addParticipantType() { 924 BoundCodeableConceptDt<ParticipantTypeEnum> retVal = new BoundCodeableConceptDt<ParticipantTypeEnum>(ParticipantTypeEnum.VALUESET_BINDER); 925 getParticipantType().add(retVal); 926 return retVal; 927 } 928 929 /** 930 * Sets the value(s), and clears any existing value(s) for <b>participantType</b> () 931 * 932 * <p> 933 * <b>Definition:</b> 934 * Role of participant in the appointment 935 * </p> 936 */ 937 public AppointmentResponse setParticipantType(ParticipantTypeEnum theValue) { 938 getParticipantType().clear(); 939 addParticipantType(theValue); 940 return this; 941 } 942 943 944 /** 945 * Gets the value(s) for <b>actor</b> (). 946 * creating it if it does 947 * not exist. Will not return <code>null</code>. 948 * 949 * <p> 950 * <b>Definition:</b> 951 * A Person, Location/HealthcareService or Device that is participating in the appointment 952 * </p> 953 */ 954 public ResourceReferenceDt getActor() { 955 if (myActor == null) { 956 myActor = new ResourceReferenceDt(); 957 } 958 return myActor; 959 } 960 961 /** 962 * Sets the value(s) for <b>actor</b> () 963 * 964 * <p> 965 * <b>Definition:</b> 966 * A Person, Location/HealthcareService or Device that is participating in the appointment 967 * </p> 968 */ 969 public AppointmentResponse setActor(ResourceReferenceDt theValue) { 970 myActor = theValue; 971 return this; 972 } 973 974 975 976 977 /** 978 * Gets the value(s) for <b>participantStatus</b> (). 979 * creating it if it does 980 * not exist. Will not return <code>null</code>. 981 * 982 * <p> 983 * <b>Definition:</b> 984 * Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty. 985 * </p> 986 */ 987 public BoundCodeDt<ParticipantStatusEnum> getParticipantStatusElement() { 988 if (myParticipantStatus == null) { 989 myParticipantStatus = new BoundCodeDt<ParticipantStatusEnum>(ParticipantStatusEnum.VALUESET_BINDER); 990 } 991 return myParticipantStatus; 992 } 993 994 995 /** 996 * Gets the value(s) for <b>participantStatus</b> (). 997 * creating it if it does 998 * not exist. Will not return <code>null</code>. 999 * 1000 * <p> 1001 * <b>Definition:</b> 1002 * Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty. 1003 * </p> 1004 */ 1005 public String getParticipantStatus() { 1006 return getParticipantStatusElement().getValue(); 1007 } 1008 1009 /** 1010 * Sets the value(s) for <b>participantStatus</b> () 1011 * 1012 * <p> 1013 * <b>Definition:</b> 1014 * Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty. 1015 * </p> 1016 */ 1017 public AppointmentResponse setParticipantStatus(BoundCodeDt<ParticipantStatusEnum> theValue) { 1018 myParticipantStatus = theValue; 1019 return this; 1020 } 1021 1022 1023 1024 /** 1025 * Sets the value(s) for <b>participantStatus</b> () 1026 * 1027 * <p> 1028 * <b>Definition:</b> 1029 * Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty. 1030 * </p> 1031 */ 1032 public AppointmentResponse setParticipantStatus(ParticipantStatusEnum theValue) { 1033 setParticipantStatus(new BoundCodeDt<ParticipantStatusEnum>(ParticipantStatusEnum.VALUESET_BINDER, theValue)); 1034 1035/* 1036 getParticipantStatusElement().setValueAsEnum(theValue); 1037*/ 1038 return this; 1039 } 1040 1041 1042 /** 1043 * Gets the value(s) for <b>comment</b> (). 1044 * creating it if it does 1045 * not exist. Will not return <code>null</code>. 1046 * 1047 * <p> 1048 * <b>Definition:</b> 1049 * Additional comments about the appointment 1050 * </p> 1051 */ 1052 public StringDt getCommentElement() { 1053 if (myComment == null) { 1054 myComment = new StringDt(); 1055 } 1056 return myComment; 1057 } 1058 1059 1060 /** 1061 * Gets the value(s) for <b>comment</b> (). 1062 * creating it if it does 1063 * not exist. Will not return <code>null</code>. 1064 * 1065 * <p> 1066 * <b>Definition:</b> 1067 * Additional comments about the appointment 1068 * </p> 1069 */ 1070 public String getComment() { 1071 return getCommentElement().getValue(); 1072 } 1073 1074 /** 1075 * Sets the value(s) for <b>comment</b> () 1076 * 1077 * <p> 1078 * <b>Definition:</b> 1079 * Additional comments about the appointment 1080 * </p> 1081 */ 1082 public AppointmentResponse setComment(StringDt theValue) { 1083 myComment = theValue; 1084 return this; 1085 } 1086 1087 1088 1089 /** 1090 * Sets the value for <b>comment</b> () 1091 * 1092 * <p> 1093 * <b>Definition:</b> 1094 * Additional comments about the appointment 1095 * </p> 1096 */ 1097 public AppointmentResponse setComment( String theString) { 1098 myComment = new StringDt(theString); 1099 return this; 1100 } 1101 1102 1103 1104 1105 @Override 1106 public String getResourceName() { 1107 return "AppointmentResponse"; 1108 } 1109 1110 public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { 1111 return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; 1112 } 1113 1114 1115}