001package org.hl7.fhir.r5.model; 002 003/*- 004 * #%L 005 * org.hl7.fhir.r5 006 * %% 007 * Copyright (C) 2014 - 2019 Health Level 7 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023/* 024 Copyright (c) 2011+, HL7, Inc. 025 All rights reserved. 026 027 Redistribution and use in source and binary forms, with or without modification, 028 are permitted provided that the following conditions are met: 029 030 * Redistributions of source code must retain the above copyright notice, this 031 list of conditions and the following disclaimer. 032 * Redistributions in binary form must reproduce the above copyright notice, 033 this list of conditions and the following disclaimer in the documentation 034 and/or other materials provided with the distribution. 035 * Neither the name of HL7 nor the names of its contributors may be used to 036 endorse or promote products derived from this software without specific 037 prior written permission. 038 039 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 040 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 041 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 042 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 043 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 044 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 045 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 046 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 047 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 048 POSSIBILITY OF SUCH DAMAGE. 049 050*/ 051 052// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0 053import java.util.ArrayList; 054import java.util.Date; 055import java.util.List; 056import org.hl7.fhir.exceptions.FHIRException; 057import org.hl7.fhir.instance.model.api.ICompositeType; 058 059import org.hl7.fhir.instance.model.api.IBaseDatatypeElement; 060import org.hl7.fhir.utilities.Utilities; 061import org.hl7.fhir.r5.model.Enumerations.*; 062import ca.uhn.fhir.model.api.annotation.ResourceDef; 063import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 064import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 065import ca.uhn.fhir.model.api.annotation.Child; 066import ca.uhn.fhir.model.api.annotation.ChildOrder; 067import ca.uhn.fhir.model.api.annotation.Description; 068import ca.uhn.fhir.model.api.annotation.Block; 069/** 070 * This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context. 071 */ 072@ResourceDef(name="ActivityDefinition", profile="http://hl7.org/fhir/StructureDefinition/ActivityDefinition") 073@ChildOrder(names={"url", "identifier", "version", "name", "title", "subtitle", "status", "experimental", "subject[x]", "date", "publisher", "contact", "description", "useContext", "jurisdiction", "purpose", "usage", "copyright", "approvalDate", "lastReviewDate", "effectivePeriod", "topic", "author", "editor", "reviewer", "endorser", "relatedArtifact", "library", "kind", "profile", "code", "intent", "priority", "doNotPerform", "timing[x]", "location", "participant", "product[x]", "quantity", "dosage", "bodySite", "specimenRequirement", "observationRequirement", "observationResultRequirement", "transform", "dynamicValue"}) 074public class ActivityDefinition extends MetadataResource { 075 076 public enum ActivityDefinitionKind { 077 /** 078 * A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s). 079 */ 080 APPOINTMENT, 081 /** 082 * A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection. 083 */ 084 APPOINTMENTRESPONSE, 085 /** 086 * Healthcare plan for patient or group. 087 */ 088 CAREPLAN, 089 /** 090 * Claim, Pre-determination or Pre-authorization. 091 */ 092 CLAIM, 093 /** 094 * A request for information to be sent to a receiver. 095 */ 096 COMMUNICATIONREQUEST, 097 /** 098 * Legal Agreement. 099 */ 100 CONTRACT, 101 /** 102 * Medical device request. 103 */ 104 DEVICEREQUEST, 105 /** 106 * Enrollment request. 107 */ 108 ENROLLMENTREQUEST, 109 /** 110 * Guidance or advice relating to an immunization. 111 */ 112 IMMUNIZATIONRECOMMENDATION, 113 /** 114 * Ordering of medication for patient or group. 115 */ 116 MEDICATIONREQUEST, 117 /** 118 * Diet, formula or nutritional supplement request. 119 */ 120 NUTRITIONORDER, 121 /** 122 * A record of a request for service such as diagnostic investigations, treatments, or operations to be performed. 123 */ 124 SERVICEREQUEST, 125 /** 126 * Request for a medication, substance or device. 127 */ 128 SUPPLYREQUEST, 129 /** 130 * A task to be performed. 131 */ 132 TASK, 133 /** 134 * Prescription for vision correction products for a patient. 135 */ 136 VISIONPRESCRIPTION, 137 /** 138 * added to help the parsers with the generic types 139 */ 140 NULL; 141 public static ActivityDefinitionKind fromCode(String codeString) throws FHIRException { 142 if (codeString == null || "".equals(codeString)) 143 return null; 144 if ("Appointment".equals(codeString)) 145 return APPOINTMENT; 146 if ("AppointmentResponse".equals(codeString)) 147 return APPOINTMENTRESPONSE; 148 if ("CarePlan".equals(codeString)) 149 return CAREPLAN; 150 if ("Claim".equals(codeString)) 151 return CLAIM; 152 if ("CommunicationRequest".equals(codeString)) 153 return COMMUNICATIONREQUEST; 154 if ("Contract".equals(codeString)) 155 return CONTRACT; 156 if ("DeviceRequest".equals(codeString)) 157 return DEVICEREQUEST; 158 if ("EnrollmentRequest".equals(codeString)) 159 return ENROLLMENTREQUEST; 160 if ("ImmunizationRecommendation".equals(codeString)) 161 return IMMUNIZATIONRECOMMENDATION; 162 if ("MedicationRequest".equals(codeString)) 163 return MEDICATIONREQUEST; 164 if ("NutritionOrder".equals(codeString)) 165 return NUTRITIONORDER; 166 if ("ServiceRequest".equals(codeString)) 167 return SERVICEREQUEST; 168 if ("SupplyRequest".equals(codeString)) 169 return SUPPLYREQUEST; 170 if ("Task".equals(codeString)) 171 return TASK; 172 if ("VisionPrescription".equals(codeString)) 173 return VISIONPRESCRIPTION; 174 if (Configuration.isAcceptInvalidEnums()) 175 return null; 176 else 177 throw new FHIRException("Unknown ActivityDefinitionKind code '"+codeString+"'"); 178 } 179 public String toCode() { 180 switch (this) { 181 case APPOINTMENT: return "Appointment"; 182 case APPOINTMENTRESPONSE: return "AppointmentResponse"; 183 case CAREPLAN: return "CarePlan"; 184 case CLAIM: return "Claim"; 185 case COMMUNICATIONREQUEST: return "CommunicationRequest"; 186 case CONTRACT: return "Contract"; 187 case DEVICEREQUEST: return "DeviceRequest"; 188 case ENROLLMENTREQUEST: return "EnrollmentRequest"; 189 case IMMUNIZATIONRECOMMENDATION: return "ImmunizationRecommendation"; 190 case MEDICATIONREQUEST: return "MedicationRequest"; 191 case NUTRITIONORDER: return "NutritionOrder"; 192 case SERVICEREQUEST: return "ServiceRequest"; 193 case SUPPLYREQUEST: return "SupplyRequest"; 194 case TASK: return "Task"; 195 case VISIONPRESCRIPTION: return "VisionPrescription"; 196 default: return "?"; 197 } 198 } 199 public String getSystem() { 200 switch (this) { 201 case APPOINTMENT: return "http://hl7.org/fhir/request-resource-types"; 202 case APPOINTMENTRESPONSE: return "http://hl7.org/fhir/request-resource-types"; 203 case CAREPLAN: return "http://hl7.org/fhir/request-resource-types"; 204 case CLAIM: return "http://hl7.org/fhir/request-resource-types"; 205 case COMMUNICATIONREQUEST: return "http://hl7.org/fhir/request-resource-types"; 206 case CONTRACT: return "http://hl7.org/fhir/request-resource-types"; 207 case DEVICEREQUEST: return "http://hl7.org/fhir/request-resource-types"; 208 case ENROLLMENTREQUEST: return "http://hl7.org/fhir/request-resource-types"; 209 case IMMUNIZATIONRECOMMENDATION: return "http://hl7.org/fhir/request-resource-types"; 210 case MEDICATIONREQUEST: return "http://hl7.org/fhir/request-resource-types"; 211 case NUTRITIONORDER: return "http://hl7.org/fhir/request-resource-types"; 212 case SERVICEREQUEST: return "http://hl7.org/fhir/request-resource-types"; 213 case SUPPLYREQUEST: return "http://hl7.org/fhir/request-resource-types"; 214 case TASK: return "http://hl7.org/fhir/request-resource-types"; 215 case VISIONPRESCRIPTION: return "http://hl7.org/fhir/request-resource-types"; 216 default: return "?"; 217 } 218 } 219 public String getDefinition() { 220 switch (this) { 221 case APPOINTMENT: return "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)."; 222 case APPOINTMENTRESPONSE: return "A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection."; 223 case CAREPLAN: return "Healthcare plan for patient or group."; 224 case CLAIM: return "Claim, Pre-determination or Pre-authorization."; 225 case COMMUNICATIONREQUEST: return "A request for information to be sent to a receiver."; 226 case CONTRACT: return "Legal Agreement."; 227 case DEVICEREQUEST: return "Medical device request."; 228 case ENROLLMENTREQUEST: return "Enrollment request."; 229 case IMMUNIZATIONRECOMMENDATION: return "Guidance or advice relating to an immunization."; 230 case MEDICATIONREQUEST: return "Ordering of medication for patient or group."; 231 case NUTRITIONORDER: return "Diet, formula or nutritional supplement request."; 232 case SERVICEREQUEST: return "A record of a request for service such as diagnostic investigations, treatments, or operations to be performed."; 233 case SUPPLYREQUEST: return "Request for a medication, substance or device."; 234 case TASK: return "A task to be performed."; 235 case VISIONPRESCRIPTION: return "Prescription for vision correction products for a patient."; 236 default: return "?"; 237 } 238 } 239 public String getDisplay() { 240 switch (this) { 241 case APPOINTMENT: return "Appointment"; 242 case APPOINTMENTRESPONSE: return "AppointmentResponse"; 243 case CAREPLAN: return "CarePlan"; 244 case CLAIM: return "Claim"; 245 case COMMUNICATIONREQUEST: return "CommunicationRequest"; 246 case CONTRACT: return "Contract"; 247 case DEVICEREQUEST: return "DeviceRequest"; 248 case ENROLLMENTREQUEST: return "EnrollmentRequest"; 249 case IMMUNIZATIONRECOMMENDATION: return "ImmunizationRecommendation"; 250 case MEDICATIONREQUEST: return "MedicationRequest"; 251 case NUTRITIONORDER: return "NutritionOrder"; 252 case SERVICEREQUEST: return "ServiceRequest"; 253 case SUPPLYREQUEST: return "SupplyRequest"; 254 case TASK: return "Task"; 255 case VISIONPRESCRIPTION: return "VisionPrescription"; 256 default: return "?"; 257 } 258 } 259 } 260 261 public static class ActivityDefinitionKindEnumFactory implements EnumFactory<ActivityDefinitionKind> { 262 public ActivityDefinitionKind fromCode(String codeString) throws IllegalArgumentException { 263 if (codeString == null || "".equals(codeString)) 264 if (codeString == null || "".equals(codeString)) 265 return null; 266 if ("Appointment".equals(codeString)) 267 return ActivityDefinitionKind.APPOINTMENT; 268 if ("AppointmentResponse".equals(codeString)) 269 return ActivityDefinitionKind.APPOINTMENTRESPONSE; 270 if ("CarePlan".equals(codeString)) 271 return ActivityDefinitionKind.CAREPLAN; 272 if ("Claim".equals(codeString)) 273 return ActivityDefinitionKind.CLAIM; 274 if ("CommunicationRequest".equals(codeString)) 275 return ActivityDefinitionKind.COMMUNICATIONREQUEST; 276 if ("Contract".equals(codeString)) 277 return ActivityDefinitionKind.CONTRACT; 278 if ("DeviceRequest".equals(codeString)) 279 return ActivityDefinitionKind.DEVICEREQUEST; 280 if ("EnrollmentRequest".equals(codeString)) 281 return ActivityDefinitionKind.ENROLLMENTREQUEST; 282 if ("ImmunizationRecommendation".equals(codeString)) 283 return ActivityDefinitionKind.IMMUNIZATIONRECOMMENDATION; 284 if ("MedicationRequest".equals(codeString)) 285 return ActivityDefinitionKind.MEDICATIONREQUEST; 286 if ("NutritionOrder".equals(codeString)) 287 return ActivityDefinitionKind.NUTRITIONORDER; 288 if ("ServiceRequest".equals(codeString)) 289 return ActivityDefinitionKind.SERVICEREQUEST; 290 if ("SupplyRequest".equals(codeString)) 291 return ActivityDefinitionKind.SUPPLYREQUEST; 292 if ("Task".equals(codeString)) 293 return ActivityDefinitionKind.TASK; 294 if ("VisionPrescription".equals(codeString)) 295 return ActivityDefinitionKind.VISIONPRESCRIPTION; 296 throw new IllegalArgumentException("Unknown ActivityDefinitionKind code '"+codeString+"'"); 297 } 298 public Enumeration<ActivityDefinitionKind> fromType(Base code) throws FHIRException { 299 if (code == null) 300 return null; 301 if (code.isEmpty()) 302 return new Enumeration<ActivityDefinitionKind>(this); 303 String codeString = ((PrimitiveType) code).asStringValue(); 304 if (codeString == null || "".equals(codeString)) 305 return null; 306 if ("Appointment".equals(codeString)) 307 return new Enumeration<ActivityDefinitionKind>(this, ActivityDefinitionKind.APPOINTMENT); 308 if ("AppointmentResponse".equals(codeString)) 309 return new Enumeration<ActivityDefinitionKind>(this, ActivityDefinitionKind.APPOINTMENTRESPONSE); 310 if ("CarePlan".equals(codeString)) 311 return new Enumeration<ActivityDefinitionKind>(this, ActivityDefinitionKind.CAREPLAN); 312 if ("Claim".equals(codeString)) 313 return new Enumeration<ActivityDefinitionKind>(this, ActivityDefinitionKind.CLAIM); 314 if ("CommunicationRequest".equals(codeString)) 315 return new Enumeration<ActivityDefinitionKind>(this, ActivityDefinitionKind.COMMUNICATIONREQUEST); 316 if ("Contract".equals(codeString)) 317 return new Enumeration<ActivityDefinitionKind>(this, ActivityDefinitionKind.CONTRACT); 318 if ("DeviceRequest".equals(codeString)) 319 return new Enumeration<ActivityDefinitionKind>(this, ActivityDefinitionKind.DEVICEREQUEST); 320 if ("EnrollmentRequest".equals(codeString)) 321 return new Enumeration<ActivityDefinitionKind>(this, ActivityDefinitionKind.ENROLLMENTREQUEST); 322 if ("ImmunizationRecommendation".equals(codeString)) 323 return new Enumeration<ActivityDefinitionKind>(this, ActivityDefinitionKind.IMMUNIZATIONRECOMMENDATION); 324 if ("MedicationRequest".equals(codeString)) 325 return new Enumeration<ActivityDefinitionKind>(this, ActivityDefinitionKind.MEDICATIONREQUEST); 326 if ("NutritionOrder".equals(codeString)) 327 return new Enumeration<ActivityDefinitionKind>(this, ActivityDefinitionKind.NUTRITIONORDER); 328 if ("ServiceRequest".equals(codeString)) 329 return new Enumeration<ActivityDefinitionKind>(this, ActivityDefinitionKind.SERVICEREQUEST); 330 if ("SupplyRequest".equals(codeString)) 331 return new Enumeration<ActivityDefinitionKind>(this, ActivityDefinitionKind.SUPPLYREQUEST); 332 if ("Task".equals(codeString)) 333 return new Enumeration<ActivityDefinitionKind>(this, ActivityDefinitionKind.TASK); 334 if ("VisionPrescription".equals(codeString)) 335 return new Enumeration<ActivityDefinitionKind>(this, ActivityDefinitionKind.VISIONPRESCRIPTION); 336 throw new FHIRException("Unknown ActivityDefinitionKind code '"+codeString+"'"); 337 } 338 public String toCode(ActivityDefinitionKind code) { 339 if (code == ActivityDefinitionKind.APPOINTMENT) 340 return "Appointment"; 341 if (code == ActivityDefinitionKind.APPOINTMENTRESPONSE) 342 return "AppointmentResponse"; 343 if (code == ActivityDefinitionKind.CAREPLAN) 344 return "CarePlan"; 345 if (code == ActivityDefinitionKind.CLAIM) 346 return "Claim"; 347 if (code == ActivityDefinitionKind.COMMUNICATIONREQUEST) 348 return "CommunicationRequest"; 349 if (code == ActivityDefinitionKind.CONTRACT) 350 return "Contract"; 351 if (code == ActivityDefinitionKind.DEVICEREQUEST) 352 return "DeviceRequest"; 353 if (code == ActivityDefinitionKind.ENROLLMENTREQUEST) 354 return "EnrollmentRequest"; 355 if (code == ActivityDefinitionKind.IMMUNIZATIONRECOMMENDATION) 356 return "ImmunizationRecommendation"; 357 if (code == ActivityDefinitionKind.MEDICATIONREQUEST) 358 return "MedicationRequest"; 359 if (code == ActivityDefinitionKind.NUTRITIONORDER) 360 return "NutritionOrder"; 361 if (code == ActivityDefinitionKind.SERVICEREQUEST) 362 return "ServiceRequest"; 363 if (code == ActivityDefinitionKind.SUPPLYREQUEST) 364 return "SupplyRequest"; 365 if (code == ActivityDefinitionKind.TASK) 366 return "Task"; 367 if (code == ActivityDefinitionKind.VISIONPRESCRIPTION) 368 return "VisionPrescription"; 369 return "?"; 370 } 371 public String toSystem(ActivityDefinitionKind code) { 372 return code.getSystem(); 373 } 374 } 375 376 public enum RequestIntent { 377 /** 378 * The request is a suggestion made by someone/something that does not have an intention to ensure it occurs and without providing an authorization to act. 379 */ 380 PROPOSAL, 381 /** 382 * The request represents an intention to ensure something occurs without providing an authorization for others to act. 383 */ 384 PLAN, 385 /** 386 * The request represents a legally binding instruction authored by a Patient or RelatedPerson. 387 */ 388 DIRECTIVE, 389 /** 390 * The request represents a request/demand and authorization for action by a Practitioner. 391 */ 392 ORDER, 393 /** 394 * The request represents an original authorization for action. 395 */ 396 ORIGINALORDER, 397 /** 398 * The request represents an automatically generated supplemental authorization for action based on a parent authorization together with initial results of the action taken against that parent authorization. 399 */ 400 REFLEXORDER, 401 /** 402 * The request represents the view of an authorization instantiated by a fulfilling system representing the details of the fulfiller's intention to act upon a submitted order. 403 */ 404 FILLERORDER, 405 /** 406 * An order created in fulfillment of a broader order that represents the authorization for a single activity occurrence. E.g. The administration of a single dose of a drug. 407 */ 408 INSTANCEORDER, 409 /** 410 * The request represents a component or option for a RequestGroup that establishes timing, conditionality and/or other constraints among a set of requests. Refer to [[[RequestGroup]]] for additional information on how this status is used. 411 */ 412 OPTION, 413 /** 414 * added to help the parsers with the generic types 415 */ 416 NULL; 417 public static RequestIntent fromCode(String codeString) throws FHIRException { 418 if (codeString == null || "".equals(codeString)) 419 return null; 420 if ("proposal".equals(codeString)) 421 return PROPOSAL; 422 if ("plan".equals(codeString)) 423 return PLAN; 424 if ("directive".equals(codeString)) 425 return DIRECTIVE; 426 if ("order".equals(codeString)) 427 return ORDER; 428 if ("original-order".equals(codeString)) 429 return ORIGINALORDER; 430 if ("reflex-order".equals(codeString)) 431 return REFLEXORDER; 432 if ("filler-order".equals(codeString)) 433 return FILLERORDER; 434 if ("instance-order".equals(codeString)) 435 return INSTANCEORDER; 436 if ("option".equals(codeString)) 437 return OPTION; 438 if (Configuration.isAcceptInvalidEnums()) 439 return null; 440 else 441 throw new FHIRException("Unknown RequestIntent code '"+codeString+"'"); 442 } 443 public String toCode() { 444 switch (this) { 445 case PROPOSAL: return "proposal"; 446 case PLAN: return "plan"; 447 case DIRECTIVE: return "directive"; 448 case ORDER: return "order"; 449 case ORIGINALORDER: return "original-order"; 450 case REFLEXORDER: return "reflex-order"; 451 case FILLERORDER: return "filler-order"; 452 case INSTANCEORDER: return "instance-order"; 453 case OPTION: return "option"; 454 default: return "?"; 455 } 456 } 457 public String getSystem() { 458 switch (this) { 459 case PROPOSAL: return "http://hl7.org/fhir/request-intent"; 460 case PLAN: return "http://hl7.org/fhir/request-intent"; 461 case DIRECTIVE: return "http://hl7.org/fhir/request-intent"; 462 case ORDER: return "http://hl7.org/fhir/request-intent"; 463 case ORIGINALORDER: return "http://hl7.org/fhir/request-intent"; 464 case REFLEXORDER: return "http://hl7.org/fhir/request-intent"; 465 case FILLERORDER: return "http://hl7.org/fhir/request-intent"; 466 case INSTANCEORDER: return "http://hl7.org/fhir/request-intent"; 467 case OPTION: return "http://hl7.org/fhir/request-intent"; 468 default: return "?"; 469 } 470 } 471 public String getDefinition() { 472 switch (this) { 473 case PROPOSAL: return "The request is a suggestion made by someone/something that does not have an intention to ensure it occurs and without providing an authorization to act."; 474 case PLAN: return "The request represents an intention to ensure something occurs without providing an authorization for others to act."; 475 case DIRECTIVE: return "The request represents a legally binding instruction authored by a Patient or RelatedPerson."; 476 case ORDER: return "The request represents a request/demand and authorization for action by a Practitioner."; 477 case ORIGINALORDER: return "The request represents an original authorization for action."; 478 case REFLEXORDER: return "The request represents an automatically generated supplemental authorization for action based on a parent authorization together with initial results of the action taken against that parent authorization."; 479 case FILLERORDER: return "The request represents the view of an authorization instantiated by a fulfilling system representing the details of the fulfiller's intention to act upon a submitted order."; 480 case INSTANCEORDER: return "An order created in fulfillment of a broader order that represents the authorization for a single activity occurrence. E.g. The administration of a single dose of a drug."; 481 case OPTION: return "The request represents a component or option for a RequestGroup that establishes timing, conditionality and/or other constraints among a set of requests. Refer to [[[RequestGroup]]] for additional information on how this status is used."; 482 default: return "?"; 483 } 484 } 485 public String getDisplay() { 486 switch (this) { 487 case PROPOSAL: return "Proposal"; 488 case PLAN: return "Plan"; 489 case DIRECTIVE: return "Directive"; 490 case ORDER: return "Order"; 491 case ORIGINALORDER: return "Original Order"; 492 case REFLEXORDER: return "Reflex Order"; 493 case FILLERORDER: return "Filler Order"; 494 case INSTANCEORDER: return "Instance Order"; 495 case OPTION: return "Option"; 496 default: return "?"; 497 } 498 } 499 } 500 501 public static class RequestIntentEnumFactory implements EnumFactory<RequestIntent> { 502 public RequestIntent fromCode(String codeString) throws IllegalArgumentException { 503 if (codeString == null || "".equals(codeString)) 504 if (codeString == null || "".equals(codeString)) 505 return null; 506 if ("proposal".equals(codeString)) 507 return RequestIntent.PROPOSAL; 508 if ("plan".equals(codeString)) 509 return RequestIntent.PLAN; 510 if ("directive".equals(codeString)) 511 return RequestIntent.DIRECTIVE; 512 if ("order".equals(codeString)) 513 return RequestIntent.ORDER; 514 if ("original-order".equals(codeString)) 515 return RequestIntent.ORIGINALORDER; 516 if ("reflex-order".equals(codeString)) 517 return RequestIntent.REFLEXORDER; 518 if ("filler-order".equals(codeString)) 519 return RequestIntent.FILLERORDER; 520 if ("instance-order".equals(codeString)) 521 return RequestIntent.INSTANCEORDER; 522 if ("option".equals(codeString)) 523 return RequestIntent.OPTION; 524 throw new IllegalArgumentException("Unknown RequestIntent code '"+codeString+"'"); 525 } 526 public Enumeration<RequestIntent> fromType(Base code) throws FHIRException { 527 if (code == null) 528 return null; 529 if (code.isEmpty()) 530 return new Enumeration<RequestIntent>(this); 531 String codeString = ((PrimitiveType) code).asStringValue(); 532 if (codeString == null || "".equals(codeString)) 533 return null; 534 if ("proposal".equals(codeString)) 535 return new Enumeration<RequestIntent>(this, RequestIntent.PROPOSAL); 536 if ("plan".equals(codeString)) 537 return new Enumeration<RequestIntent>(this, RequestIntent.PLAN); 538 if ("directive".equals(codeString)) 539 return new Enumeration<RequestIntent>(this, RequestIntent.DIRECTIVE); 540 if ("order".equals(codeString)) 541 return new Enumeration<RequestIntent>(this, RequestIntent.ORDER); 542 if ("original-order".equals(codeString)) 543 return new Enumeration<RequestIntent>(this, RequestIntent.ORIGINALORDER); 544 if ("reflex-order".equals(codeString)) 545 return new Enumeration<RequestIntent>(this, RequestIntent.REFLEXORDER); 546 if ("filler-order".equals(codeString)) 547 return new Enumeration<RequestIntent>(this, RequestIntent.FILLERORDER); 548 if ("instance-order".equals(codeString)) 549 return new Enumeration<RequestIntent>(this, RequestIntent.INSTANCEORDER); 550 if ("option".equals(codeString)) 551 return new Enumeration<RequestIntent>(this, RequestIntent.OPTION); 552 throw new FHIRException("Unknown RequestIntent code '"+codeString+"'"); 553 } 554 public String toCode(RequestIntent code) { 555 if (code == RequestIntent.PROPOSAL) 556 return "proposal"; 557 if (code == RequestIntent.PLAN) 558 return "plan"; 559 if (code == RequestIntent.DIRECTIVE) 560 return "directive"; 561 if (code == RequestIntent.ORDER) 562 return "order"; 563 if (code == RequestIntent.ORIGINALORDER) 564 return "original-order"; 565 if (code == RequestIntent.REFLEXORDER) 566 return "reflex-order"; 567 if (code == RequestIntent.FILLERORDER) 568 return "filler-order"; 569 if (code == RequestIntent.INSTANCEORDER) 570 return "instance-order"; 571 if (code == RequestIntent.OPTION) 572 return "option"; 573 return "?"; 574 } 575 public String toSystem(RequestIntent code) { 576 return code.getSystem(); 577 } 578 } 579 580 public enum RequestPriority { 581 /** 582 * The request has normal priority. 583 */ 584 ROUTINE, 585 /** 586 * The request should be actioned promptly - higher priority than routine. 587 */ 588 URGENT, 589 /** 590 * The request should be actioned as soon as possible - higher priority than urgent. 591 */ 592 ASAP, 593 /** 594 * The request should be actioned immediately - highest possible priority. E.g. an emergency. 595 */ 596 STAT, 597 /** 598 * added to help the parsers with the generic types 599 */ 600 NULL; 601 public static RequestPriority fromCode(String codeString) throws FHIRException { 602 if (codeString == null || "".equals(codeString)) 603 return null; 604 if ("routine".equals(codeString)) 605 return ROUTINE; 606 if ("urgent".equals(codeString)) 607 return URGENT; 608 if ("asap".equals(codeString)) 609 return ASAP; 610 if ("stat".equals(codeString)) 611 return STAT; 612 if (Configuration.isAcceptInvalidEnums()) 613 return null; 614 else 615 throw new FHIRException("Unknown RequestPriority code '"+codeString+"'"); 616 } 617 public String toCode() { 618 switch (this) { 619 case ROUTINE: return "routine"; 620 case URGENT: return "urgent"; 621 case ASAP: return "asap"; 622 case STAT: return "stat"; 623 default: return "?"; 624 } 625 } 626 public String getSystem() { 627 switch (this) { 628 case ROUTINE: return "http://hl7.org/fhir/request-priority"; 629 case URGENT: return "http://hl7.org/fhir/request-priority"; 630 case ASAP: return "http://hl7.org/fhir/request-priority"; 631 case STAT: return "http://hl7.org/fhir/request-priority"; 632 default: return "?"; 633 } 634 } 635 public String getDefinition() { 636 switch (this) { 637 case ROUTINE: return "The request has normal priority."; 638 case URGENT: return "The request should be actioned promptly - higher priority than routine."; 639 case ASAP: return "The request should be actioned as soon as possible - higher priority than urgent."; 640 case STAT: return "The request should be actioned immediately - highest possible priority. E.g. an emergency."; 641 default: return "?"; 642 } 643 } 644 public String getDisplay() { 645 switch (this) { 646 case ROUTINE: return "Routine"; 647 case URGENT: return "Urgent"; 648 case ASAP: return "ASAP"; 649 case STAT: return "STAT"; 650 default: return "?"; 651 } 652 } 653 } 654 655 public static class RequestPriorityEnumFactory implements EnumFactory<RequestPriority> { 656 public RequestPriority fromCode(String codeString) throws IllegalArgumentException { 657 if (codeString == null || "".equals(codeString)) 658 if (codeString == null || "".equals(codeString)) 659 return null; 660 if ("routine".equals(codeString)) 661 return RequestPriority.ROUTINE; 662 if ("urgent".equals(codeString)) 663 return RequestPriority.URGENT; 664 if ("asap".equals(codeString)) 665 return RequestPriority.ASAP; 666 if ("stat".equals(codeString)) 667 return RequestPriority.STAT; 668 throw new IllegalArgumentException("Unknown RequestPriority code '"+codeString+"'"); 669 } 670 public Enumeration<RequestPriority> fromType(Base code) throws FHIRException { 671 if (code == null) 672 return null; 673 if (code.isEmpty()) 674 return new Enumeration<RequestPriority>(this); 675 String codeString = ((PrimitiveType) code).asStringValue(); 676 if (codeString == null || "".equals(codeString)) 677 return null; 678 if ("routine".equals(codeString)) 679 return new Enumeration<RequestPriority>(this, RequestPriority.ROUTINE); 680 if ("urgent".equals(codeString)) 681 return new Enumeration<RequestPriority>(this, RequestPriority.URGENT); 682 if ("asap".equals(codeString)) 683 return new Enumeration<RequestPriority>(this, RequestPriority.ASAP); 684 if ("stat".equals(codeString)) 685 return new Enumeration<RequestPriority>(this, RequestPriority.STAT); 686 throw new FHIRException("Unknown RequestPriority code '"+codeString+"'"); 687 } 688 public String toCode(RequestPriority code) { 689 if (code == RequestPriority.ROUTINE) 690 return "routine"; 691 if (code == RequestPriority.URGENT) 692 return "urgent"; 693 if (code == RequestPriority.ASAP) 694 return "asap"; 695 if (code == RequestPriority.STAT) 696 return "stat"; 697 return "?"; 698 } 699 public String toSystem(RequestPriority code) { 700 return code.getSystem(); 701 } 702 } 703 704 public enum ActivityParticipantType { 705 /** 706 * The participant is the patient under evaluation. 707 */ 708 PATIENT, 709 /** 710 * The participant is a practitioner involved in the patient's care. 711 */ 712 PRACTITIONER, 713 /** 714 * The participant is a person related to the patient. 715 */ 716 RELATEDPERSON, 717 /** 718 * The participant is a system or device used in the care of the patient. 719 */ 720 DEVICE, 721 /** 722 * added to help the parsers with the generic types 723 */ 724 NULL; 725 public static ActivityParticipantType fromCode(String codeString) throws FHIRException { 726 if (codeString == null || "".equals(codeString)) 727 return null; 728 if ("patient".equals(codeString)) 729 return PATIENT; 730 if ("practitioner".equals(codeString)) 731 return PRACTITIONER; 732 if ("related-person".equals(codeString)) 733 return RELATEDPERSON; 734 if ("device".equals(codeString)) 735 return DEVICE; 736 if (Configuration.isAcceptInvalidEnums()) 737 return null; 738 else 739 throw new FHIRException("Unknown ActivityParticipantType code '"+codeString+"'"); 740 } 741 public String toCode() { 742 switch (this) { 743 case PATIENT: return "patient"; 744 case PRACTITIONER: return "practitioner"; 745 case RELATEDPERSON: return "related-person"; 746 case DEVICE: return "device"; 747 default: return "?"; 748 } 749 } 750 public String getSystem() { 751 switch (this) { 752 case PATIENT: return "http://hl7.org/fhir/action-participant-type"; 753 case PRACTITIONER: return "http://hl7.org/fhir/action-participant-type"; 754 case RELATEDPERSON: return "http://hl7.org/fhir/action-participant-type"; 755 case DEVICE: return "http://hl7.org/fhir/action-participant-type"; 756 default: return "?"; 757 } 758 } 759 public String getDefinition() { 760 switch (this) { 761 case PATIENT: return "The participant is the patient under evaluation."; 762 case PRACTITIONER: return "The participant is a practitioner involved in the patient's care."; 763 case RELATEDPERSON: return "The participant is a person related to the patient."; 764 case DEVICE: return "The participant is a system or device used in the care of the patient."; 765 default: return "?"; 766 } 767 } 768 public String getDisplay() { 769 switch (this) { 770 case PATIENT: return "Patient"; 771 case PRACTITIONER: return "Practitioner"; 772 case RELATEDPERSON: return "Related Person"; 773 case DEVICE: return "Device"; 774 default: return "?"; 775 } 776 } 777 } 778 779 public static class ActivityParticipantTypeEnumFactory implements EnumFactory<ActivityParticipantType> { 780 public ActivityParticipantType fromCode(String codeString) throws IllegalArgumentException { 781 if (codeString == null || "".equals(codeString)) 782 if (codeString == null || "".equals(codeString)) 783 return null; 784 if ("patient".equals(codeString)) 785 return ActivityParticipantType.PATIENT; 786 if ("practitioner".equals(codeString)) 787 return ActivityParticipantType.PRACTITIONER; 788 if ("related-person".equals(codeString)) 789 return ActivityParticipantType.RELATEDPERSON; 790 if ("device".equals(codeString)) 791 return ActivityParticipantType.DEVICE; 792 throw new IllegalArgumentException("Unknown ActivityParticipantType code '"+codeString+"'"); 793 } 794 public Enumeration<ActivityParticipantType> fromType(Base code) throws FHIRException { 795 if (code == null) 796 return null; 797 if (code.isEmpty()) 798 return new Enumeration<ActivityParticipantType>(this); 799 String codeString = ((PrimitiveType) code).asStringValue(); 800 if (codeString == null || "".equals(codeString)) 801 return null; 802 if ("patient".equals(codeString)) 803 return new Enumeration<ActivityParticipantType>(this, ActivityParticipantType.PATIENT); 804 if ("practitioner".equals(codeString)) 805 return new Enumeration<ActivityParticipantType>(this, ActivityParticipantType.PRACTITIONER); 806 if ("related-person".equals(codeString)) 807 return new Enumeration<ActivityParticipantType>(this, ActivityParticipantType.RELATEDPERSON); 808 if ("device".equals(codeString)) 809 return new Enumeration<ActivityParticipantType>(this, ActivityParticipantType.DEVICE); 810 throw new FHIRException("Unknown ActivityParticipantType code '"+codeString+"'"); 811 } 812 public String toCode(ActivityParticipantType code) { 813 if (code == ActivityParticipantType.PATIENT) 814 return "patient"; 815 if (code == ActivityParticipantType.PRACTITIONER) 816 return "practitioner"; 817 if (code == ActivityParticipantType.RELATEDPERSON) 818 return "related-person"; 819 if (code == ActivityParticipantType.DEVICE) 820 return "device"; 821 return "?"; 822 } 823 public String toSystem(ActivityParticipantType code) { 824 return code.getSystem(); 825 } 826 } 827 828 @Block() 829 public static class ActivityDefinitionParticipantComponent extends BackboneElement implements IBaseBackboneElement { 830 /** 831 * The type of participant in the action. 832 */ 833 @Child(name = "type", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false) 834 @Description(shortDefinition="patient | practitioner | related-person | device", formalDefinition="The type of participant in the action." ) 835 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-participant-type") 836 protected Enumeration<ActivityParticipantType> type; 837 838 /** 839 * The role the participant should play in performing the described action. 840 */ 841 @Child(name = "role", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) 842 @Description(shortDefinition="E.g. Nurse, Surgeon, Parent, etc.", formalDefinition="The role the participant should play in performing the described action." ) 843 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-participant-role") 844 protected CodeableConcept role; 845 846 private static final long serialVersionUID = -1450932564L; 847 848 /** 849 * Constructor 850 */ 851 public ActivityDefinitionParticipantComponent() { 852 super(); 853 } 854 855 /** 856 * Constructor 857 */ 858 public ActivityDefinitionParticipantComponent(Enumeration<ActivityParticipantType> type) { 859 super(); 860 this.type = type; 861 } 862 863 /** 864 * @return {@link #type} (The type of participant in the action.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value 865 */ 866 public Enumeration<ActivityParticipantType> getTypeElement() { 867 if (this.type == null) 868 if (Configuration.errorOnAutoCreate()) 869 throw new Error("Attempt to auto-create ActivityDefinitionParticipantComponent.type"); 870 else if (Configuration.doAutoCreate()) 871 this.type = new Enumeration<ActivityParticipantType>(new ActivityParticipantTypeEnumFactory()); // bb 872 return this.type; 873 } 874 875 public boolean hasTypeElement() { 876 return this.type != null && !this.type.isEmpty(); 877 } 878 879 public boolean hasType() { 880 return this.type != null && !this.type.isEmpty(); 881 } 882 883 /** 884 * @param value {@link #type} (The type of participant in the action.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value 885 */ 886 public ActivityDefinitionParticipantComponent setTypeElement(Enumeration<ActivityParticipantType> value) { 887 this.type = value; 888 return this; 889 } 890 891 /** 892 * @return The type of participant in the action. 893 */ 894 public ActivityParticipantType getType() { 895 return this.type == null ? null : this.type.getValue(); 896 } 897 898 /** 899 * @param value The type of participant in the action. 900 */ 901 public ActivityDefinitionParticipantComponent setType(ActivityParticipantType value) { 902 if (this.type == null) 903 this.type = new Enumeration<ActivityParticipantType>(new ActivityParticipantTypeEnumFactory()); 904 this.type.setValue(value); 905 return this; 906 } 907 908 /** 909 * @return {@link #role} (The role the participant should play in performing the described action.) 910 */ 911 public CodeableConcept getRole() { 912 if (this.role == null) 913 if (Configuration.errorOnAutoCreate()) 914 throw new Error("Attempt to auto-create ActivityDefinitionParticipantComponent.role"); 915 else if (Configuration.doAutoCreate()) 916 this.role = new CodeableConcept(); // cc 917 return this.role; 918 } 919 920 public boolean hasRole() { 921 return this.role != null && !this.role.isEmpty(); 922 } 923 924 /** 925 * @param value {@link #role} (The role the participant should play in performing the described action.) 926 */ 927 public ActivityDefinitionParticipantComponent setRole(CodeableConcept value) { 928 this.role = value; 929 return this; 930 } 931 932 protected void listChildren(List<Property> children) { 933 super.listChildren(children); 934 children.add(new Property("type", "code", "The type of participant in the action.", 0, 1, type)); 935 children.add(new Property("role", "CodeableConcept", "The role the participant should play in performing the described action.", 0, 1, role)); 936 } 937 938 @Override 939 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 940 switch (_hash) { 941 case 3575610: /*type*/ return new Property("type", "code", "The type of participant in the action.", 0, 1, type); 942 case 3506294: /*role*/ return new Property("role", "CodeableConcept", "The role the participant should play in performing the described action.", 0, 1, role); 943 default: return super.getNamedProperty(_hash, _name, _checkValid); 944 } 945 946 } 947 948 @Override 949 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 950 switch (hash) { 951 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration<ActivityParticipantType> 952 case 3506294: /*role*/ return this.role == null ? new Base[0] : new Base[] {this.role}; // CodeableConcept 953 default: return super.getProperty(hash, name, checkValid); 954 } 955 956 } 957 958 @Override 959 public Base setProperty(int hash, String name, Base value) throws FHIRException { 960 switch (hash) { 961 case 3575610: // type 962 value = new ActivityParticipantTypeEnumFactory().fromType(castToCode(value)); 963 this.type = (Enumeration) value; // Enumeration<ActivityParticipantType> 964 return value; 965 case 3506294: // role 966 this.role = castToCodeableConcept(value); // CodeableConcept 967 return value; 968 default: return super.setProperty(hash, name, value); 969 } 970 971 } 972 973 @Override 974 public Base setProperty(String name, Base value) throws FHIRException { 975 if (name.equals("type")) { 976 value = new ActivityParticipantTypeEnumFactory().fromType(castToCode(value)); 977 this.type = (Enumeration) value; // Enumeration<ActivityParticipantType> 978 } else if (name.equals("role")) { 979 this.role = castToCodeableConcept(value); // CodeableConcept 980 } else 981 return super.setProperty(name, value); 982 return value; 983 } 984 985 @Override 986 public Base makeProperty(int hash, String name) throws FHIRException { 987 switch (hash) { 988 case 3575610: return getTypeElement(); 989 case 3506294: return getRole(); 990 default: return super.makeProperty(hash, name); 991 } 992 993 } 994 995 @Override 996 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 997 switch (hash) { 998 case 3575610: /*type*/ return new String[] {"code"}; 999 case 3506294: /*role*/ return new String[] {"CodeableConcept"}; 1000 default: return super.getTypesForProperty(hash, name); 1001 } 1002 1003 } 1004 1005 @Override 1006 public Base addChild(String name) throws FHIRException { 1007 if (name.equals("type")) { 1008 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.type"); 1009 } 1010 else if (name.equals("role")) { 1011 this.role = new CodeableConcept(); 1012 return this.role; 1013 } 1014 else 1015 return super.addChild(name); 1016 } 1017 1018 public ActivityDefinitionParticipantComponent copy() { 1019 ActivityDefinitionParticipantComponent dst = new ActivityDefinitionParticipantComponent(); 1020 copyValues(dst); 1021 return dst; 1022 } 1023 1024 public void copyValues(ActivityDefinitionParticipantComponent dst) { 1025 super.copyValues(dst); 1026 dst.type = type == null ? null : type.copy(); 1027 dst.role = role == null ? null : role.copy(); 1028 } 1029 1030 @Override 1031 public boolean equalsDeep(Base other_) { 1032 if (!super.equalsDeep(other_)) 1033 return false; 1034 if (!(other_ instanceof ActivityDefinitionParticipantComponent)) 1035 return false; 1036 ActivityDefinitionParticipantComponent o = (ActivityDefinitionParticipantComponent) other_; 1037 return compareDeep(type, o.type, true) && compareDeep(role, o.role, true); 1038 } 1039 1040 @Override 1041 public boolean equalsShallow(Base other_) { 1042 if (!super.equalsShallow(other_)) 1043 return false; 1044 if (!(other_ instanceof ActivityDefinitionParticipantComponent)) 1045 return false; 1046 ActivityDefinitionParticipantComponent o = (ActivityDefinitionParticipantComponent) other_; 1047 return compareValues(type, o.type, true); 1048 } 1049 1050 public boolean isEmpty() { 1051 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, role); 1052 } 1053 1054 public String fhirType() { 1055 return "ActivityDefinition.participant"; 1056 1057 } 1058 1059 } 1060 1061 @Block() 1062 public static class ActivityDefinitionDynamicValueComponent extends BackboneElement implements IBaseBackboneElement { 1063 /** 1064 * The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression. The specified path SHALL be a FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL consist only of identifiers, constant indexers, and a restricted subset of functions. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details). 1065 */ 1066 @Child(name = "path", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) 1067 @Description(shortDefinition="The path to the element to be set dynamically", formalDefinition="The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression. The specified path SHALL be a FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL consist only of identifiers, constant indexers, and a restricted subset of functions. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details)." ) 1068 protected StringType path; 1069 1070 /** 1071 * An expression specifying the value of the customized element. 1072 */ 1073 @Child(name = "expression", type = {Expression.class}, order=2, min=1, max=1, modifier=false, summary=false) 1074 @Description(shortDefinition="An expression that provides the dynamic value for the customization", formalDefinition="An expression specifying the value of the customized element." ) 1075 protected Expression expression; 1076 1077 private static final long serialVersionUID = 1064529082L; 1078 1079 /** 1080 * Constructor 1081 */ 1082 public ActivityDefinitionDynamicValueComponent() { 1083 super(); 1084 } 1085 1086 /** 1087 * Constructor 1088 */ 1089 public ActivityDefinitionDynamicValueComponent(StringType path, Expression expression) { 1090 super(); 1091 this.path = path; 1092 this.expression = expression; 1093 } 1094 1095 /** 1096 * @return {@link #path} (The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression. The specified path SHALL be a FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL consist only of identifiers, constant indexers, and a restricted subset of functions. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details).). This is the underlying object with id, value and extensions. The accessor "getPath" gives direct access to the value 1097 */ 1098 public StringType getPathElement() { 1099 if (this.path == null) 1100 if (Configuration.errorOnAutoCreate()) 1101 throw new Error("Attempt to auto-create ActivityDefinitionDynamicValueComponent.path"); 1102 else if (Configuration.doAutoCreate()) 1103 this.path = new StringType(); // bb 1104 return this.path; 1105 } 1106 1107 public boolean hasPathElement() { 1108 return this.path != null && !this.path.isEmpty(); 1109 } 1110 1111 public boolean hasPath() { 1112 return this.path != null && !this.path.isEmpty(); 1113 } 1114 1115 /** 1116 * @param value {@link #path} (The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression. The specified path SHALL be a FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL consist only of identifiers, constant indexers, and a restricted subset of functions. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details).). This is the underlying object with id, value and extensions. The accessor "getPath" gives direct access to the value 1117 */ 1118 public ActivityDefinitionDynamicValueComponent setPathElement(StringType value) { 1119 this.path = value; 1120 return this; 1121 } 1122 1123 /** 1124 * @return The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression. The specified path SHALL be a FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL consist only of identifiers, constant indexers, and a restricted subset of functions. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details). 1125 */ 1126 public String getPath() { 1127 return this.path == null ? null : this.path.getValue(); 1128 } 1129 1130 /** 1131 * @param value The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression. The specified path SHALL be a FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL consist only of identifiers, constant indexers, and a restricted subset of functions. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details). 1132 */ 1133 public ActivityDefinitionDynamicValueComponent setPath(String value) { 1134 if (this.path == null) 1135 this.path = new StringType(); 1136 this.path.setValue(value); 1137 return this; 1138 } 1139 1140 /** 1141 * @return {@link #expression} (An expression specifying the value of the customized element.) 1142 */ 1143 public Expression getExpression() { 1144 if (this.expression == null) 1145 if (Configuration.errorOnAutoCreate()) 1146 throw new Error("Attempt to auto-create ActivityDefinitionDynamicValueComponent.expression"); 1147 else if (Configuration.doAutoCreate()) 1148 this.expression = new Expression(); // cc 1149 return this.expression; 1150 } 1151 1152 public boolean hasExpression() { 1153 return this.expression != null && !this.expression.isEmpty(); 1154 } 1155 1156 /** 1157 * @param value {@link #expression} (An expression specifying the value of the customized element.) 1158 */ 1159 public ActivityDefinitionDynamicValueComponent setExpression(Expression value) { 1160 this.expression = value; 1161 return this; 1162 } 1163 1164 protected void listChildren(List<Property> children) { 1165 super.listChildren(children); 1166 children.add(new Property("path", "string", "The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression. The specified path SHALL be a FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL consist only of identifiers, constant indexers, and a restricted subset of functions. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details).", 0, 1, path)); 1167 children.add(new Property("expression", "Expression", "An expression specifying the value of the customized element.", 0, 1, expression)); 1168 } 1169 1170 @Override 1171 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1172 switch (_hash) { 1173 case 3433509: /*path*/ return new Property("path", "string", "The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression. The specified path SHALL be a FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL consist only of identifiers, constant indexers, and a restricted subset of functions. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details).", 0, 1, path); 1174 case -1795452264: /*expression*/ return new Property("expression", "Expression", "An expression specifying the value of the customized element.", 0, 1, expression); 1175 default: return super.getNamedProperty(_hash, _name, _checkValid); 1176 } 1177 1178 } 1179 1180 @Override 1181 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1182 switch (hash) { 1183 case 3433509: /*path*/ return this.path == null ? new Base[0] : new Base[] {this.path}; // StringType 1184 case -1795452264: /*expression*/ return this.expression == null ? new Base[0] : new Base[] {this.expression}; // Expression 1185 default: return super.getProperty(hash, name, checkValid); 1186 } 1187 1188 } 1189 1190 @Override 1191 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1192 switch (hash) { 1193 case 3433509: // path 1194 this.path = castToString(value); // StringType 1195 return value; 1196 case -1795452264: // expression 1197 this.expression = castToExpression(value); // Expression 1198 return value; 1199 default: return super.setProperty(hash, name, value); 1200 } 1201 1202 } 1203 1204 @Override 1205 public Base setProperty(String name, Base value) throws FHIRException { 1206 if (name.equals("path")) { 1207 this.path = castToString(value); // StringType 1208 } else if (name.equals("expression")) { 1209 this.expression = castToExpression(value); // Expression 1210 } else 1211 return super.setProperty(name, value); 1212 return value; 1213 } 1214 1215 @Override 1216 public Base makeProperty(int hash, String name) throws FHIRException { 1217 switch (hash) { 1218 case 3433509: return getPathElement(); 1219 case -1795452264: return getExpression(); 1220 default: return super.makeProperty(hash, name); 1221 } 1222 1223 } 1224 1225 @Override 1226 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1227 switch (hash) { 1228 case 3433509: /*path*/ return new String[] {"string"}; 1229 case -1795452264: /*expression*/ return new String[] {"Expression"}; 1230 default: return super.getTypesForProperty(hash, name); 1231 } 1232 1233 } 1234 1235 @Override 1236 public Base addChild(String name) throws FHIRException { 1237 if (name.equals("path")) { 1238 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.path"); 1239 } 1240 else if (name.equals("expression")) { 1241 this.expression = new Expression(); 1242 return this.expression; 1243 } 1244 else 1245 return super.addChild(name); 1246 } 1247 1248 public ActivityDefinitionDynamicValueComponent copy() { 1249 ActivityDefinitionDynamicValueComponent dst = new ActivityDefinitionDynamicValueComponent(); 1250 copyValues(dst); 1251 return dst; 1252 } 1253 1254 public void copyValues(ActivityDefinitionDynamicValueComponent dst) { 1255 super.copyValues(dst); 1256 dst.path = path == null ? null : path.copy(); 1257 dst.expression = expression == null ? null : expression.copy(); 1258 } 1259 1260 @Override 1261 public boolean equalsDeep(Base other_) { 1262 if (!super.equalsDeep(other_)) 1263 return false; 1264 if (!(other_ instanceof ActivityDefinitionDynamicValueComponent)) 1265 return false; 1266 ActivityDefinitionDynamicValueComponent o = (ActivityDefinitionDynamicValueComponent) other_; 1267 return compareDeep(path, o.path, true) && compareDeep(expression, o.expression, true); 1268 } 1269 1270 @Override 1271 public boolean equalsShallow(Base other_) { 1272 if (!super.equalsShallow(other_)) 1273 return false; 1274 if (!(other_ instanceof ActivityDefinitionDynamicValueComponent)) 1275 return false; 1276 ActivityDefinitionDynamicValueComponent o = (ActivityDefinitionDynamicValueComponent) other_; 1277 return compareValues(path, o.path, true); 1278 } 1279 1280 public boolean isEmpty() { 1281 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(path, expression); 1282 } 1283 1284 public String fhirType() { 1285 return "ActivityDefinition.dynamicValue"; 1286 1287 } 1288 1289 } 1290 1291 /** 1292 * A formal identifier that is used to identify this activity definition when it is represented in other formats, or referenced in a specification, model, design or an instance. 1293 */ 1294 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1295 @Description(shortDefinition="Additional identifier for the activity definition", formalDefinition="A formal identifier that is used to identify this activity definition when it is represented in other formats, or referenced in a specification, model, design or an instance." ) 1296 protected List<Identifier> identifier; 1297 1298 /** 1299 * An explanatory or alternate title for the activity definition giving additional information about its content. 1300 */ 1301 @Child(name = "subtitle", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) 1302 @Description(shortDefinition="Subordinate title of the activity definition", formalDefinition="An explanatory or alternate title for the activity definition giving additional information about its content." ) 1303 protected StringType subtitle; 1304 1305 /** 1306 * A code or group definition that describes the intended subject of the activity being defined. 1307 */ 1308 @Child(name = "subject", type = {CodeableConcept.class, Group.class}, order=2, min=0, max=1, modifier=false, summary=false) 1309 @Description(shortDefinition="Type of individual the activity definition is intended for", formalDefinition="A code or group definition that describes the intended subject of the activity being defined." ) 1310 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subject-type") 1311 protected Type subject; 1312 1313 /** 1314 * Explanation of why this activity definition is needed and why it has been designed as it has. 1315 */ 1316 @Child(name = "purpose", type = {MarkdownType.class}, order=3, min=0, max=1, modifier=false, summary=false) 1317 @Description(shortDefinition="Why this activity definition is defined", formalDefinition="Explanation of why this activity definition is needed and why it has been designed as it has." ) 1318 protected MarkdownType purpose; 1319 1320 /** 1321 * A detailed description of how the activity definition is used from a clinical perspective. 1322 */ 1323 @Child(name = "usage", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) 1324 @Description(shortDefinition="Describes the clinical usage of the activity definition", formalDefinition="A detailed description of how the activity definition is used from a clinical perspective." ) 1325 protected StringType usage; 1326 1327 /** 1328 * A copyright statement relating to the activity definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the activity definition. 1329 */ 1330 @Child(name = "copyright", type = {MarkdownType.class}, order=5, min=0, max=1, modifier=false, summary=false) 1331 @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the activity definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the activity definition." ) 1332 protected MarkdownType copyright; 1333 1334 /** 1335 * The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. 1336 */ 1337 @Child(name = "approvalDate", type = {DateType.class}, order=6, min=0, max=1, modifier=false, summary=false) 1338 @Description(shortDefinition="When the activity definition was approved by publisher", formalDefinition="The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage." ) 1339 protected DateType approvalDate; 1340 1341 /** 1342 * The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date. 1343 */ 1344 @Child(name = "lastReviewDate", type = {DateType.class}, order=7, min=0, max=1, modifier=false, summary=false) 1345 @Description(shortDefinition="When the activity definition was last reviewed", formalDefinition="The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date." ) 1346 protected DateType lastReviewDate; 1347 1348 /** 1349 * The period during which the activity definition content was or is planned to be in active use. 1350 */ 1351 @Child(name = "effectivePeriod", type = {Period.class}, order=8, min=0, max=1, modifier=false, summary=true) 1352 @Description(shortDefinition="When the activity definition is expected to be used", formalDefinition="The period during which the activity definition content was or is planned to be in active use." ) 1353 protected Period effectivePeriod; 1354 1355 /** 1356 * Descriptive topics related to the content of the activity. Topics provide a high-level categorization of the activity that can be useful for filtering and searching. 1357 */ 1358 @Child(name = "topic", type = {CodeableConcept.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1359 @Description(shortDefinition="E.g. Education, Treatment, Assessment, etc.", formalDefinition="Descriptive topics related to the content of the activity. Topics provide a high-level categorization of the activity that can be useful for filtering and searching." ) 1360 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/definition-topic") 1361 protected List<CodeableConcept> topic; 1362 1363 /** 1364 * An individiual or organization primarily involved in the creation and maintenance of the content. 1365 */ 1366 @Child(name = "author", type = {ContactDetail.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1367 @Description(shortDefinition="Who authored the content", formalDefinition="An individiual or organization primarily involved in the creation and maintenance of the content." ) 1368 protected List<ContactDetail> author; 1369 1370 /** 1371 * An individual or organization primarily responsible for internal coherence of the content. 1372 */ 1373 @Child(name = "editor", type = {ContactDetail.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1374 @Description(shortDefinition="Who edited the content", formalDefinition="An individual or organization primarily responsible for internal coherence of the content." ) 1375 protected List<ContactDetail> editor; 1376 1377 /** 1378 * An individual or organization primarily responsible for review of some aspect of the content. 1379 */ 1380 @Child(name = "reviewer", type = {ContactDetail.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1381 @Description(shortDefinition="Who reviewed the content", formalDefinition="An individual or organization primarily responsible for review of some aspect of the content." ) 1382 protected List<ContactDetail> reviewer; 1383 1384 /** 1385 * An individual or organization responsible for officially endorsing the content for use in some setting. 1386 */ 1387 @Child(name = "endorser", type = {ContactDetail.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1388 @Description(shortDefinition="Who endorsed the content", formalDefinition="An individual or organization responsible for officially endorsing the content for use in some setting." ) 1389 protected List<ContactDetail> endorser; 1390 1391 /** 1392 * Related artifacts such as additional documentation, justification, or bibliographic references. 1393 */ 1394 @Child(name = "relatedArtifact", type = {RelatedArtifact.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1395 @Description(shortDefinition="Additional documentation, citations, etc.", formalDefinition="Related artifacts such as additional documentation, justification, or bibliographic references." ) 1396 protected List<RelatedArtifact> relatedArtifact; 1397 1398 /** 1399 * A reference to a Library resource containing any formal logic used by the activity definition. 1400 */ 1401 @Child(name = "library", type = {CanonicalType.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1402 @Description(shortDefinition="Logic used by the activity definition", formalDefinition="A reference to a Library resource containing any formal logic used by the activity definition." ) 1403 protected List<CanonicalType> library; 1404 1405 /** 1406 * A description of the kind of resource the activity definition is representing. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest. Typically, but not always, this is a Request resource. 1407 */ 1408 @Child(name = "kind", type = {CodeType.class}, order=16, min=0, max=1, modifier=false, summary=true) 1409 @Description(shortDefinition="Kind of resource", formalDefinition="A description of the kind of resource the activity definition is representing. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest. Typically, but not always, this is a Request resource." ) 1410 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/request-resource-types") 1411 protected Enumeration<ActivityDefinitionKind> kind; 1412 1413 /** 1414 * A profile to which the target of the activity definition is expected to conform. 1415 */ 1416 @Child(name = "profile", type = {CanonicalType.class}, order=17, min=0, max=1, modifier=false, summary=false) 1417 @Description(shortDefinition="What profile the resource needs to conform to", formalDefinition="A profile to which the target of the activity definition is expected to conform." ) 1418 protected CanonicalType profile; 1419 1420 /** 1421 * Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter. 1422 */ 1423 @Child(name = "code", type = {CodeableConcept.class}, order=18, min=0, max=1, modifier=false, summary=true) 1424 @Description(shortDefinition="Detail type of activity", formalDefinition="Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter." ) 1425 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/procedure-code") 1426 protected CodeableConcept code; 1427 1428 /** 1429 * Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain. 1430 */ 1431 @Child(name = "intent", type = {CodeType.class}, order=19, min=0, max=1, modifier=false, summary=false) 1432 @Description(shortDefinition="proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option", formalDefinition="Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain." ) 1433 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/request-intent") 1434 protected Enumeration<RequestIntent> intent; 1435 1436 /** 1437 * Indicates how quickly the activity should be addressed with respect to other requests. 1438 */ 1439 @Child(name = "priority", type = {CodeType.class}, order=20, min=0, max=1, modifier=false, summary=false) 1440 @Description(shortDefinition="routine | urgent | asap | stat", formalDefinition="Indicates how quickly the activity should be addressed with respect to other requests." ) 1441 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/request-priority") 1442 protected Enumeration<RequestPriority> priority; 1443 1444 /** 1445 * Set this to true if the definition is to indicate that a particular activity should NOT be performed. If true, this element should be interpreted to reinforce a negative coding. For example NPO as a code with a doNotPerform of true would still indicate to NOT perform the action. 1446 */ 1447 @Child(name = "doNotPerform", type = {BooleanType.class}, order=21, min=0, max=1, modifier=true, summary=true) 1448 @Description(shortDefinition="True if the activity should not be performed", formalDefinition="Set this to true if the definition is to indicate that a particular activity should NOT be performed. If true, this element should be interpreted to reinforce a negative coding. For example NPO as a code with a doNotPerform of true would still indicate to NOT perform the action." ) 1449 protected BooleanType doNotPerform; 1450 1451 /** 1452 * The period, timing or frequency upon which the described activity is to occur. 1453 */ 1454 @Child(name = "timing", type = {Timing.class, DateTimeType.class, Age.class, Period.class, Range.class, Duration.class}, order=22, min=0, max=1, modifier=false, summary=false) 1455 @Description(shortDefinition="When activity is to occur", formalDefinition="The period, timing or frequency upon which the described activity is to occur." ) 1456 protected Type timing; 1457 1458 /** 1459 * Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc. 1460 */ 1461 @Child(name = "location", type = {Location.class}, order=23, min=0, max=1, modifier=false, summary=false) 1462 @Description(shortDefinition="Where it should happen", formalDefinition="Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc." ) 1463 protected Reference location; 1464 1465 /** 1466 * Indicates who should participate in performing the action described. 1467 */ 1468 @Child(name = "participant", type = {}, order=24, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1469 @Description(shortDefinition="Who should participate in the action", formalDefinition="Indicates who should participate in performing the action described." ) 1470 protected List<ActivityDefinitionParticipantComponent> participant; 1471 1472 /** 1473 * Identifies the food, drug or other product being consumed or supplied in the activity. 1474 */ 1475 @Child(name = "product", type = {Medication.class, Substance.class, CodeableConcept.class}, order=25, min=0, max=1, modifier=false, summary=false) 1476 @Description(shortDefinition="What's administered/supplied", formalDefinition="Identifies the food, drug or other product being consumed or supplied in the activity." ) 1477 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/medication-codes") 1478 protected Type product; 1479 1480 /** 1481 * Identifies the quantity expected to be consumed at once (per dose, per meal, etc.). 1482 */ 1483 @Child(name = "quantity", type = {Quantity.class}, order=26, min=0, max=1, modifier=false, summary=false) 1484 @Description(shortDefinition="How much is administered/consumed/supplied", formalDefinition="Identifies the quantity expected to be consumed at once (per dose, per meal, etc.)." ) 1485 protected Quantity quantity; 1486 1487 /** 1488 * Provides detailed dosage instructions in the same way that they are described for MedicationRequest resources. 1489 */ 1490 @Child(name = "dosage", type = {Dosage.class}, order=27, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1491 @Description(shortDefinition="Detailed dosage instructions", formalDefinition="Provides detailed dosage instructions in the same way that they are described for MedicationRequest resources." ) 1492 protected List<Dosage> dosage; 1493 1494 /** 1495 * Indicates the sites on the subject's body where the procedure should be performed (I.e. the target sites). 1496 */ 1497 @Child(name = "bodySite", type = {CodeableConcept.class}, order=28, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1498 @Description(shortDefinition="What part of body to perform on", formalDefinition="Indicates the sites on the subject's body where the procedure should be performed (I.e. the target sites)." ) 1499 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/body-site") 1500 protected List<CodeableConcept> bodySite; 1501 1502 /** 1503 * Defines specimen requirements for the action to be performed, such as required specimens for a lab test. 1504 */ 1505 @Child(name = "specimenRequirement", type = {SpecimenDefinition.class}, order=29, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1506 @Description(shortDefinition="What specimens are required to perform this action", formalDefinition="Defines specimen requirements for the action to be performed, such as required specimens for a lab test." ) 1507 protected List<Reference> specimenRequirement; 1508 1509 /** 1510 * Defines observation requirements for the action to be performed, such as body weight or surface area. 1511 */ 1512 @Child(name = "observationRequirement", type = {ObservationDefinition.class}, order=30, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1513 @Description(shortDefinition="What observations are required to perform this action", formalDefinition="Defines observation requirements for the action to be performed, such as body weight or surface area." ) 1514 protected List<Reference> observationRequirement; 1515 1516 /** 1517 * Defines the observations that are expected to be produced by the action. 1518 */ 1519 @Child(name = "observationResultRequirement", type = {ObservationDefinition.class}, order=31, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1520 @Description(shortDefinition="What observations must be produced by this action", formalDefinition="Defines the observations that are expected to be produced by the action." ) 1521 protected List<Reference> observationResultRequirement; 1522 1523 /** 1524 * A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input. 1525 */ 1526 @Child(name = "transform", type = {CanonicalType.class}, order=32, min=0, max=1, modifier=false, summary=false) 1527 @Description(shortDefinition="Transform to apply the template", formalDefinition="A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input." ) 1528 protected CanonicalType transform; 1529 1530 /** 1531 * Dynamic values that will be evaluated to produce values for elements of the resulting resource. For example, if the dosage of a medication must be computed based on the patient's weight, a dynamic value would be used to specify an expression that calculated the weight, and the path on the request resource that would contain the result. 1532 */ 1533 @Child(name = "dynamicValue", type = {}, order=33, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1534 @Description(shortDefinition="Dynamic aspects of the definition", formalDefinition="Dynamic values that will be evaluated to produce values for elements of the resulting resource. For example, if the dosage of a medication must be computed based on the patient's weight, a dynamic value would be used to specify an expression that calculated the weight, and the path on the request resource that would contain the result." ) 1535 protected List<ActivityDefinitionDynamicValueComponent> dynamicValue; 1536 1537 private static final long serialVersionUID = -2129841377L; 1538 1539 /** 1540 * Constructor 1541 */ 1542 public ActivityDefinition() { 1543 super(); 1544 } 1545 1546 /** 1547 * Constructor 1548 */ 1549 public ActivityDefinition(Enumeration<PublicationStatus> status) { 1550 super(); 1551 this.status = status; 1552 } 1553 1554 /** 1555 * @return {@link #url} (An absolute URI that is used to identify this activity definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this activity definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the activity definition is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 1556 */ 1557 public UriType getUrlElement() { 1558 if (this.url == null) 1559 if (Configuration.errorOnAutoCreate()) 1560 throw new Error("Attempt to auto-create ActivityDefinition.url"); 1561 else if (Configuration.doAutoCreate()) 1562 this.url = new UriType(); // bb 1563 return this.url; 1564 } 1565 1566 public boolean hasUrlElement() { 1567 return this.url != null && !this.url.isEmpty(); 1568 } 1569 1570 public boolean hasUrl() { 1571 return this.url != null && !this.url.isEmpty(); 1572 } 1573 1574 /** 1575 * @param value {@link #url} (An absolute URI that is used to identify this activity definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this activity definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the activity definition is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 1576 */ 1577 public ActivityDefinition setUrlElement(UriType value) { 1578 this.url = value; 1579 return this; 1580 } 1581 1582 /** 1583 * @return An absolute URI that is used to identify this activity definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this activity definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the activity definition is stored on different servers. 1584 */ 1585 public String getUrl() { 1586 return this.url == null ? null : this.url.getValue(); 1587 } 1588 1589 /** 1590 * @param value An absolute URI that is used to identify this activity definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this activity definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the activity definition is stored on different servers. 1591 */ 1592 public ActivityDefinition setUrl(String value) { 1593 if (Utilities.noString(value)) 1594 this.url = null; 1595 else { 1596 if (this.url == null) 1597 this.url = new UriType(); 1598 this.url.setValue(value); 1599 } 1600 return this; 1601 } 1602 1603 /** 1604 * @return {@link #identifier} (A formal identifier that is used to identify this activity definition when it is represented in other formats, or referenced in a specification, model, design or an instance.) 1605 */ 1606 public List<Identifier> getIdentifier() { 1607 if (this.identifier == null) 1608 this.identifier = new ArrayList<Identifier>(); 1609 return this.identifier; 1610 } 1611 1612 /** 1613 * @return Returns a reference to <code>this</code> for easy method chaining 1614 */ 1615 public ActivityDefinition setIdentifier(List<Identifier> theIdentifier) { 1616 this.identifier = theIdentifier; 1617 return this; 1618 } 1619 1620 public boolean hasIdentifier() { 1621 if (this.identifier == null) 1622 return false; 1623 for (Identifier item : this.identifier) 1624 if (!item.isEmpty()) 1625 return true; 1626 return false; 1627 } 1628 1629 public Identifier addIdentifier() { //3 1630 Identifier t = new Identifier(); 1631 if (this.identifier == null) 1632 this.identifier = new ArrayList<Identifier>(); 1633 this.identifier.add(t); 1634 return t; 1635 } 1636 1637 public ActivityDefinition addIdentifier(Identifier t) { //3 1638 if (t == null) 1639 return this; 1640 if (this.identifier == null) 1641 this.identifier = new ArrayList<Identifier>(); 1642 this.identifier.add(t); 1643 return this; 1644 } 1645 1646 /** 1647 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist 1648 */ 1649 public Identifier getIdentifierFirstRep() { 1650 if (getIdentifier().isEmpty()) { 1651 addIdentifier(); 1652 } 1653 return getIdentifier().get(0); 1654 } 1655 1656 /** 1657 * @return {@link #version} (The identifier that is used to identify this version of the activity definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the activity definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value 1658 */ 1659 public StringType getVersionElement() { 1660 if (this.version == null) 1661 if (Configuration.errorOnAutoCreate()) 1662 throw new Error("Attempt to auto-create ActivityDefinition.version"); 1663 else if (Configuration.doAutoCreate()) 1664 this.version = new StringType(); // bb 1665 return this.version; 1666 } 1667 1668 public boolean hasVersionElement() { 1669 return this.version != null && !this.version.isEmpty(); 1670 } 1671 1672 public boolean hasVersion() { 1673 return this.version != null && !this.version.isEmpty(); 1674 } 1675 1676 /** 1677 * @param value {@link #version} (The identifier that is used to identify this version of the activity definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the activity definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value 1678 */ 1679 public ActivityDefinition setVersionElement(StringType value) { 1680 this.version = value; 1681 return this; 1682 } 1683 1684 /** 1685 * @return The identifier that is used to identify this version of the activity definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the activity definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets. 1686 */ 1687 public String getVersion() { 1688 return this.version == null ? null : this.version.getValue(); 1689 } 1690 1691 /** 1692 * @param value The identifier that is used to identify this version of the activity definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the activity definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets. 1693 */ 1694 public ActivityDefinition setVersion(String value) { 1695 if (Utilities.noString(value)) 1696 this.version = null; 1697 else { 1698 if (this.version == null) 1699 this.version = new StringType(); 1700 this.version.setValue(value); 1701 } 1702 return this; 1703 } 1704 1705 /** 1706 * @return {@link #name} (A natural language name identifying the activity definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 1707 */ 1708 public StringType getNameElement() { 1709 if (this.name == null) 1710 if (Configuration.errorOnAutoCreate()) 1711 throw new Error("Attempt to auto-create ActivityDefinition.name"); 1712 else if (Configuration.doAutoCreate()) 1713 this.name = new StringType(); // bb 1714 return this.name; 1715 } 1716 1717 public boolean hasNameElement() { 1718 return this.name != null && !this.name.isEmpty(); 1719 } 1720 1721 public boolean hasName() { 1722 return this.name != null && !this.name.isEmpty(); 1723 } 1724 1725 /** 1726 * @param value {@link #name} (A natural language name identifying the activity definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 1727 */ 1728 public ActivityDefinition setNameElement(StringType value) { 1729 this.name = value; 1730 return this; 1731 } 1732 1733 /** 1734 * @return A natural language name identifying the activity definition. This name should be usable as an identifier for the module by machine processing applications such as code generation. 1735 */ 1736 public String getName() { 1737 return this.name == null ? null : this.name.getValue(); 1738 } 1739 1740 /** 1741 * @param value A natural language name identifying the activity definition. This name should be usable as an identifier for the module by machine processing applications such as code generation. 1742 */ 1743 public ActivityDefinition setName(String value) { 1744 if (Utilities.noString(value)) 1745 this.name = null; 1746 else { 1747 if (this.name == null) 1748 this.name = new StringType(); 1749 this.name.setValue(value); 1750 } 1751 return this; 1752 } 1753 1754 /** 1755 * @return {@link #title} (A short, descriptive, user-friendly title for the activity definition.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 1756 */ 1757 public StringType getTitleElement() { 1758 if (this.title == null) 1759 if (Configuration.errorOnAutoCreate()) 1760 throw new Error("Attempt to auto-create ActivityDefinition.title"); 1761 else if (Configuration.doAutoCreate()) 1762 this.title = new StringType(); // bb 1763 return this.title; 1764 } 1765 1766 public boolean hasTitleElement() { 1767 return this.title != null && !this.title.isEmpty(); 1768 } 1769 1770 public boolean hasTitle() { 1771 return this.title != null && !this.title.isEmpty(); 1772 } 1773 1774 /** 1775 * @param value {@link #title} (A short, descriptive, user-friendly title for the activity definition.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 1776 */ 1777 public ActivityDefinition setTitleElement(StringType value) { 1778 this.title = value; 1779 return this; 1780 } 1781 1782 /** 1783 * @return A short, descriptive, user-friendly title for the activity definition. 1784 */ 1785 public String getTitle() { 1786 return this.title == null ? null : this.title.getValue(); 1787 } 1788 1789 /** 1790 * @param value A short, descriptive, user-friendly title for the activity definition. 1791 */ 1792 public ActivityDefinition setTitle(String value) { 1793 if (Utilities.noString(value)) 1794 this.title = null; 1795 else { 1796 if (this.title == null) 1797 this.title = new StringType(); 1798 this.title.setValue(value); 1799 } 1800 return this; 1801 } 1802 1803 /** 1804 * @return {@link #subtitle} (An explanatory or alternate title for the activity definition giving additional information about its content.). This is the underlying object with id, value and extensions. The accessor "getSubtitle" gives direct access to the value 1805 */ 1806 public StringType getSubtitleElement() { 1807 if (this.subtitle == null) 1808 if (Configuration.errorOnAutoCreate()) 1809 throw new Error("Attempt to auto-create ActivityDefinition.subtitle"); 1810 else if (Configuration.doAutoCreate()) 1811 this.subtitle = new StringType(); // bb 1812 return this.subtitle; 1813 } 1814 1815 public boolean hasSubtitleElement() { 1816 return this.subtitle != null && !this.subtitle.isEmpty(); 1817 } 1818 1819 public boolean hasSubtitle() { 1820 return this.subtitle != null && !this.subtitle.isEmpty(); 1821 } 1822 1823 /** 1824 * @param value {@link #subtitle} (An explanatory or alternate title for the activity definition giving additional information about its content.). This is the underlying object with id, value and extensions. The accessor "getSubtitle" gives direct access to the value 1825 */ 1826 public ActivityDefinition setSubtitleElement(StringType value) { 1827 this.subtitle = value; 1828 return this; 1829 } 1830 1831 /** 1832 * @return An explanatory or alternate title for the activity definition giving additional information about its content. 1833 */ 1834 public String getSubtitle() { 1835 return this.subtitle == null ? null : this.subtitle.getValue(); 1836 } 1837 1838 /** 1839 * @param value An explanatory or alternate title for the activity definition giving additional information about its content. 1840 */ 1841 public ActivityDefinition setSubtitle(String value) { 1842 if (Utilities.noString(value)) 1843 this.subtitle = null; 1844 else { 1845 if (this.subtitle == null) 1846 this.subtitle = new StringType(); 1847 this.subtitle.setValue(value); 1848 } 1849 return this; 1850 } 1851 1852 /** 1853 * @return {@link #status} (The status of this activity definition. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 1854 */ 1855 public Enumeration<PublicationStatus> getStatusElement() { 1856 if (this.status == null) 1857 if (Configuration.errorOnAutoCreate()) 1858 throw new Error("Attempt to auto-create ActivityDefinition.status"); 1859 else if (Configuration.doAutoCreate()) 1860 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb 1861 return this.status; 1862 } 1863 1864 public boolean hasStatusElement() { 1865 return this.status != null && !this.status.isEmpty(); 1866 } 1867 1868 public boolean hasStatus() { 1869 return this.status != null && !this.status.isEmpty(); 1870 } 1871 1872 /** 1873 * @param value {@link #status} (The status of this activity definition. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 1874 */ 1875 public ActivityDefinition setStatusElement(Enumeration<PublicationStatus> value) { 1876 this.status = value; 1877 return this; 1878 } 1879 1880 /** 1881 * @return The status of this activity definition. Enables tracking the life-cycle of the content. 1882 */ 1883 public PublicationStatus getStatus() { 1884 return this.status == null ? null : this.status.getValue(); 1885 } 1886 1887 /** 1888 * @param value The status of this activity definition. Enables tracking the life-cycle of the content. 1889 */ 1890 public ActivityDefinition setStatus(PublicationStatus value) { 1891 if (this.status == null) 1892 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); 1893 this.status.setValue(value); 1894 return this; 1895 } 1896 1897 /** 1898 * @return {@link #experimental} (A Boolean value to indicate that this activity definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value 1899 */ 1900 public BooleanType getExperimentalElement() { 1901 if (this.experimental == null) 1902 if (Configuration.errorOnAutoCreate()) 1903 throw new Error("Attempt to auto-create ActivityDefinition.experimental"); 1904 else if (Configuration.doAutoCreate()) 1905 this.experimental = new BooleanType(); // bb 1906 return this.experimental; 1907 } 1908 1909 public boolean hasExperimentalElement() { 1910 return this.experimental != null && !this.experimental.isEmpty(); 1911 } 1912 1913 public boolean hasExperimental() { 1914 return this.experimental != null && !this.experimental.isEmpty(); 1915 } 1916 1917 /** 1918 * @param value {@link #experimental} (A Boolean value to indicate that this activity definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value 1919 */ 1920 public ActivityDefinition setExperimentalElement(BooleanType value) { 1921 this.experimental = value; 1922 return this; 1923 } 1924 1925 /** 1926 * @return A Boolean value to indicate that this activity definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. 1927 */ 1928 public boolean getExperimental() { 1929 return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue(); 1930 } 1931 1932 /** 1933 * @param value A Boolean value to indicate that this activity definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. 1934 */ 1935 public ActivityDefinition setExperimental(boolean value) { 1936 if (this.experimental == null) 1937 this.experimental = new BooleanType(); 1938 this.experimental.setValue(value); 1939 return this; 1940 } 1941 1942 /** 1943 * @return {@link #subject} (A code or group definition that describes the intended subject of the activity being defined.) 1944 */ 1945 public Type getSubject() { 1946 return this.subject; 1947 } 1948 1949 /** 1950 * @return {@link #subject} (A code or group definition that describes the intended subject of the activity being defined.) 1951 */ 1952 public CodeableConcept getSubjectCodeableConcept() throws FHIRException { 1953 if (this.subject == null) 1954 this.subject = new CodeableConcept(); 1955 if (!(this.subject instanceof CodeableConcept)) 1956 throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.subject.getClass().getName()+" was encountered"); 1957 return (CodeableConcept) this.subject; 1958 } 1959 1960 public boolean hasSubjectCodeableConcept() { 1961 return this != null && this.subject instanceof CodeableConcept; 1962 } 1963 1964 /** 1965 * @return {@link #subject} (A code or group definition that describes the intended subject of the activity being defined.) 1966 */ 1967 public Reference getSubjectReference() throws FHIRException { 1968 if (this.subject == null) 1969 this.subject = new Reference(); 1970 if (!(this.subject instanceof Reference)) 1971 throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.subject.getClass().getName()+" was encountered"); 1972 return (Reference) this.subject; 1973 } 1974 1975 public boolean hasSubjectReference() { 1976 return this != null && this.subject instanceof Reference; 1977 } 1978 1979 public boolean hasSubject() { 1980 return this.subject != null && !this.subject.isEmpty(); 1981 } 1982 1983 /** 1984 * @param value {@link #subject} (A code or group definition that describes the intended subject of the activity being defined.) 1985 */ 1986 public ActivityDefinition setSubject(Type value) { 1987 if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) 1988 throw new Error("Not the right type for ActivityDefinition.subject[x]: "+value.fhirType()); 1989 this.subject = value; 1990 return this; 1991 } 1992 1993 /** 1994 * @return {@link #date} (The date (and optionally time) when the activity definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the activity definition changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 1995 */ 1996 public DateTimeType getDateElement() { 1997 if (this.date == null) 1998 if (Configuration.errorOnAutoCreate()) 1999 throw new Error("Attempt to auto-create ActivityDefinition.date"); 2000 else if (Configuration.doAutoCreate()) 2001 this.date = new DateTimeType(); // bb 2002 return this.date; 2003 } 2004 2005 public boolean hasDateElement() { 2006 return this.date != null && !this.date.isEmpty(); 2007 } 2008 2009 public boolean hasDate() { 2010 return this.date != null && !this.date.isEmpty(); 2011 } 2012 2013 /** 2014 * @param value {@link #date} (The date (and optionally time) when the activity definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the activity definition changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 2015 */ 2016 public ActivityDefinition setDateElement(DateTimeType value) { 2017 this.date = value; 2018 return this; 2019 } 2020 2021 /** 2022 * @return The date (and optionally time) when the activity definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the activity definition changes. 2023 */ 2024 public Date getDate() { 2025 return this.date == null ? null : this.date.getValue(); 2026 } 2027 2028 /** 2029 * @param value The date (and optionally time) when the activity definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the activity definition changes. 2030 */ 2031 public ActivityDefinition setDate(Date value) { 2032 if (value == null) 2033 this.date = null; 2034 else { 2035 if (this.date == null) 2036 this.date = new DateTimeType(); 2037 this.date.setValue(value); 2038 } 2039 return this; 2040 } 2041 2042 /** 2043 * @return {@link #publisher} (The name of the organization or individual that published the activity definition.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 2044 */ 2045 public StringType getPublisherElement() { 2046 if (this.publisher == null) 2047 if (Configuration.errorOnAutoCreate()) 2048 throw new Error("Attempt to auto-create ActivityDefinition.publisher"); 2049 else if (Configuration.doAutoCreate()) 2050 this.publisher = new StringType(); // bb 2051 return this.publisher; 2052 } 2053 2054 public boolean hasPublisherElement() { 2055 return this.publisher != null && !this.publisher.isEmpty(); 2056 } 2057 2058 public boolean hasPublisher() { 2059 return this.publisher != null && !this.publisher.isEmpty(); 2060 } 2061 2062 /** 2063 * @param value {@link #publisher} (The name of the organization or individual that published the activity definition.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 2064 */ 2065 public ActivityDefinition setPublisherElement(StringType value) { 2066 this.publisher = value; 2067 return this; 2068 } 2069 2070 /** 2071 * @return The name of the organization or individual that published the activity definition. 2072 */ 2073 public String getPublisher() { 2074 return this.publisher == null ? null : this.publisher.getValue(); 2075 } 2076 2077 /** 2078 * @param value The name of the organization or individual that published the activity definition. 2079 */ 2080 public ActivityDefinition setPublisher(String value) { 2081 if (Utilities.noString(value)) 2082 this.publisher = null; 2083 else { 2084 if (this.publisher == null) 2085 this.publisher = new StringType(); 2086 this.publisher.setValue(value); 2087 } 2088 return this; 2089 } 2090 2091 /** 2092 * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.) 2093 */ 2094 public List<ContactDetail> getContact() { 2095 if (this.contact == null) 2096 this.contact = new ArrayList<ContactDetail>(); 2097 return this.contact; 2098 } 2099 2100 /** 2101 * @return Returns a reference to <code>this</code> for easy method chaining 2102 */ 2103 public ActivityDefinition setContact(List<ContactDetail> theContact) { 2104 this.contact = theContact; 2105 return this; 2106 } 2107 2108 public boolean hasContact() { 2109 if (this.contact == null) 2110 return false; 2111 for (ContactDetail item : this.contact) 2112 if (!item.isEmpty()) 2113 return true; 2114 return false; 2115 } 2116 2117 public ContactDetail addContact() { //3 2118 ContactDetail t = new ContactDetail(); 2119 if (this.contact == null) 2120 this.contact = new ArrayList<ContactDetail>(); 2121 this.contact.add(t); 2122 return t; 2123 } 2124 2125 public ActivityDefinition addContact(ContactDetail t) { //3 2126 if (t == null) 2127 return this; 2128 if (this.contact == null) 2129 this.contact = new ArrayList<ContactDetail>(); 2130 this.contact.add(t); 2131 return this; 2132 } 2133 2134 /** 2135 * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist 2136 */ 2137 public ContactDetail getContactFirstRep() { 2138 if (getContact().isEmpty()) { 2139 addContact(); 2140 } 2141 return getContact().get(0); 2142 } 2143 2144 /** 2145 * @return {@link #description} (A free text natural language description of the activity definition from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 2146 */ 2147 public MarkdownType getDescriptionElement() { 2148 if (this.description == null) 2149 if (Configuration.errorOnAutoCreate()) 2150 throw new Error("Attempt to auto-create ActivityDefinition.description"); 2151 else if (Configuration.doAutoCreate()) 2152 this.description = new MarkdownType(); // bb 2153 return this.description; 2154 } 2155 2156 public boolean hasDescriptionElement() { 2157 return this.description != null && !this.description.isEmpty(); 2158 } 2159 2160 public boolean hasDescription() { 2161 return this.description != null && !this.description.isEmpty(); 2162 } 2163 2164 /** 2165 * @param value {@link #description} (A free text natural language description of the activity definition from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 2166 */ 2167 public ActivityDefinition setDescriptionElement(MarkdownType value) { 2168 this.description = value; 2169 return this; 2170 } 2171 2172 /** 2173 * @return A free text natural language description of the activity definition from a consumer's perspective. 2174 */ 2175 public String getDescription() { 2176 return this.description == null ? null : this.description.getValue(); 2177 } 2178 2179 /** 2180 * @param value A free text natural language description of the activity definition from a consumer's perspective. 2181 */ 2182 public ActivityDefinition setDescription(String value) { 2183 if (value == null) 2184 this.description = null; 2185 else { 2186 if (this.description == null) 2187 this.description = new MarkdownType(); 2188 this.description.setValue(value); 2189 } 2190 return this; 2191 } 2192 2193 /** 2194 * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate activity definition instances.) 2195 */ 2196 public List<UsageContext> getUseContext() { 2197 if (this.useContext == null) 2198 this.useContext = new ArrayList<UsageContext>(); 2199 return this.useContext; 2200 } 2201 2202 /** 2203 * @return Returns a reference to <code>this</code> for easy method chaining 2204 */ 2205 public ActivityDefinition setUseContext(List<UsageContext> theUseContext) { 2206 this.useContext = theUseContext; 2207 return this; 2208 } 2209 2210 public boolean hasUseContext() { 2211 if (this.useContext == null) 2212 return false; 2213 for (UsageContext item : this.useContext) 2214 if (!item.isEmpty()) 2215 return true; 2216 return false; 2217 } 2218 2219 public UsageContext addUseContext() { //3 2220 UsageContext t = new UsageContext(); 2221 if (this.useContext == null) 2222 this.useContext = new ArrayList<UsageContext>(); 2223 this.useContext.add(t); 2224 return t; 2225 } 2226 2227 public ActivityDefinition addUseContext(UsageContext t) { //3 2228 if (t == null) 2229 return this; 2230 if (this.useContext == null) 2231 this.useContext = new ArrayList<UsageContext>(); 2232 this.useContext.add(t); 2233 return this; 2234 } 2235 2236 /** 2237 * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist 2238 */ 2239 public UsageContext getUseContextFirstRep() { 2240 if (getUseContext().isEmpty()) { 2241 addUseContext(); 2242 } 2243 return getUseContext().get(0); 2244 } 2245 2246 /** 2247 * @return {@link #jurisdiction} (A legal or geographic region in which the activity definition is intended to be used.) 2248 */ 2249 public List<CodeableConcept> getJurisdiction() { 2250 if (this.jurisdiction == null) 2251 this.jurisdiction = new ArrayList<CodeableConcept>(); 2252 return this.jurisdiction; 2253 } 2254 2255 /** 2256 * @return Returns a reference to <code>this</code> for easy method chaining 2257 */ 2258 public ActivityDefinition setJurisdiction(List<CodeableConcept> theJurisdiction) { 2259 this.jurisdiction = theJurisdiction; 2260 return this; 2261 } 2262 2263 public boolean hasJurisdiction() { 2264 if (this.jurisdiction == null) 2265 return false; 2266 for (CodeableConcept item : this.jurisdiction) 2267 if (!item.isEmpty()) 2268 return true; 2269 return false; 2270 } 2271 2272 public CodeableConcept addJurisdiction() { //3 2273 CodeableConcept t = new CodeableConcept(); 2274 if (this.jurisdiction == null) 2275 this.jurisdiction = new ArrayList<CodeableConcept>(); 2276 this.jurisdiction.add(t); 2277 return t; 2278 } 2279 2280 public ActivityDefinition addJurisdiction(CodeableConcept t) { //3 2281 if (t == null) 2282 return this; 2283 if (this.jurisdiction == null) 2284 this.jurisdiction = new ArrayList<CodeableConcept>(); 2285 this.jurisdiction.add(t); 2286 return this; 2287 } 2288 2289 /** 2290 * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist 2291 */ 2292 public CodeableConcept getJurisdictionFirstRep() { 2293 if (getJurisdiction().isEmpty()) { 2294 addJurisdiction(); 2295 } 2296 return getJurisdiction().get(0); 2297 } 2298 2299 /** 2300 * @return {@link #purpose} (Explanation of why this activity definition is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value 2301 */ 2302 public MarkdownType getPurposeElement() { 2303 if (this.purpose == null) 2304 if (Configuration.errorOnAutoCreate()) 2305 throw new Error("Attempt to auto-create ActivityDefinition.purpose"); 2306 else if (Configuration.doAutoCreate()) 2307 this.purpose = new MarkdownType(); // bb 2308 return this.purpose; 2309 } 2310 2311 public boolean hasPurposeElement() { 2312 return this.purpose != null && !this.purpose.isEmpty(); 2313 } 2314 2315 public boolean hasPurpose() { 2316 return this.purpose != null && !this.purpose.isEmpty(); 2317 } 2318 2319 /** 2320 * @param value {@link #purpose} (Explanation of why this activity definition is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value 2321 */ 2322 public ActivityDefinition setPurposeElement(MarkdownType value) { 2323 this.purpose = value; 2324 return this; 2325 } 2326 2327 /** 2328 * @return Explanation of why this activity definition is needed and why it has been designed as it has. 2329 */ 2330 public String getPurpose() { 2331 return this.purpose == null ? null : this.purpose.getValue(); 2332 } 2333 2334 /** 2335 * @param value Explanation of why this activity definition is needed and why it has been designed as it has. 2336 */ 2337 public ActivityDefinition setPurpose(String value) { 2338 if (value == null) 2339 this.purpose = null; 2340 else { 2341 if (this.purpose == null) 2342 this.purpose = new MarkdownType(); 2343 this.purpose.setValue(value); 2344 } 2345 return this; 2346 } 2347 2348 /** 2349 * @return {@link #usage} (A detailed description of how the activity definition is used from a clinical perspective.). This is the underlying object with id, value and extensions. The accessor "getUsage" gives direct access to the value 2350 */ 2351 public StringType getUsageElement() { 2352 if (this.usage == null) 2353 if (Configuration.errorOnAutoCreate()) 2354 throw new Error("Attempt to auto-create ActivityDefinition.usage"); 2355 else if (Configuration.doAutoCreate()) 2356 this.usage = new StringType(); // bb 2357 return this.usage; 2358 } 2359 2360 public boolean hasUsageElement() { 2361 return this.usage != null && !this.usage.isEmpty(); 2362 } 2363 2364 public boolean hasUsage() { 2365 return this.usage != null && !this.usage.isEmpty(); 2366 } 2367 2368 /** 2369 * @param value {@link #usage} (A detailed description of how the activity definition is used from a clinical perspective.). This is the underlying object with id, value and extensions. The accessor "getUsage" gives direct access to the value 2370 */ 2371 public ActivityDefinition setUsageElement(StringType value) { 2372 this.usage = value; 2373 return this; 2374 } 2375 2376 /** 2377 * @return A detailed description of how the activity definition is used from a clinical perspective. 2378 */ 2379 public String getUsage() { 2380 return this.usage == null ? null : this.usage.getValue(); 2381 } 2382 2383 /** 2384 * @param value A detailed description of how the activity definition is used from a clinical perspective. 2385 */ 2386 public ActivityDefinition setUsage(String value) { 2387 if (Utilities.noString(value)) 2388 this.usage = null; 2389 else { 2390 if (this.usage == null) 2391 this.usage = new StringType(); 2392 this.usage.setValue(value); 2393 } 2394 return this; 2395 } 2396 2397 /** 2398 * @return {@link #copyright} (A copyright statement relating to the activity definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the activity definition.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value 2399 */ 2400 public MarkdownType getCopyrightElement() { 2401 if (this.copyright == null) 2402 if (Configuration.errorOnAutoCreate()) 2403 throw new Error("Attempt to auto-create ActivityDefinition.copyright"); 2404 else if (Configuration.doAutoCreate()) 2405 this.copyright = new MarkdownType(); // bb 2406 return this.copyright; 2407 } 2408 2409 public boolean hasCopyrightElement() { 2410 return this.copyright != null && !this.copyright.isEmpty(); 2411 } 2412 2413 public boolean hasCopyright() { 2414 return this.copyright != null && !this.copyright.isEmpty(); 2415 } 2416 2417 /** 2418 * @param value {@link #copyright} (A copyright statement relating to the activity definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the activity definition.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value 2419 */ 2420 public ActivityDefinition setCopyrightElement(MarkdownType value) { 2421 this.copyright = value; 2422 return this; 2423 } 2424 2425 /** 2426 * @return A copyright statement relating to the activity definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the activity definition. 2427 */ 2428 public String getCopyright() { 2429 return this.copyright == null ? null : this.copyright.getValue(); 2430 } 2431 2432 /** 2433 * @param value A copyright statement relating to the activity definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the activity definition. 2434 */ 2435 public ActivityDefinition setCopyright(String value) { 2436 if (value == null) 2437 this.copyright = null; 2438 else { 2439 if (this.copyright == null) 2440 this.copyright = new MarkdownType(); 2441 this.copyright.setValue(value); 2442 } 2443 return this; 2444 } 2445 2446 /** 2447 * @return {@link #approvalDate} (The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.). This is the underlying object with id, value and extensions. The accessor "getApprovalDate" gives direct access to the value 2448 */ 2449 public DateType getApprovalDateElement() { 2450 if (this.approvalDate == null) 2451 if (Configuration.errorOnAutoCreate()) 2452 throw new Error("Attempt to auto-create ActivityDefinition.approvalDate"); 2453 else if (Configuration.doAutoCreate()) 2454 this.approvalDate = new DateType(); // bb 2455 return this.approvalDate; 2456 } 2457 2458 public boolean hasApprovalDateElement() { 2459 return this.approvalDate != null && !this.approvalDate.isEmpty(); 2460 } 2461 2462 public boolean hasApprovalDate() { 2463 return this.approvalDate != null && !this.approvalDate.isEmpty(); 2464 } 2465 2466 /** 2467 * @param value {@link #approvalDate} (The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.). This is the underlying object with id, value and extensions. The accessor "getApprovalDate" gives direct access to the value 2468 */ 2469 public ActivityDefinition setApprovalDateElement(DateType value) { 2470 this.approvalDate = value; 2471 return this; 2472 } 2473 2474 /** 2475 * @return The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. 2476 */ 2477 public Date getApprovalDate() { 2478 return this.approvalDate == null ? null : this.approvalDate.getValue(); 2479 } 2480 2481 /** 2482 * @param value The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. 2483 */ 2484 public ActivityDefinition setApprovalDate(Date value) { 2485 if (value == null) 2486 this.approvalDate = null; 2487 else { 2488 if (this.approvalDate == null) 2489 this.approvalDate = new DateType(); 2490 this.approvalDate.setValue(value); 2491 } 2492 return this; 2493 } 2494 2495 /** 2496 * @return {@link #lastReviewDate} (The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value 2497 */ 2498 public DateType getLastReviewDateElement() { 2499 if (this.lastReviewDate == null) 2500 if (Configuration.errorOnAutoCreate()) 2501 throw new Error("Attempt to auto-create ActivityDefinition.lastReviewDate"); 2502 else if (Configuration.doAutoCreate()) 2503 this.lastReviewDate = new DateType(); // bb 2504 return this.lastReviewDate; 2505 } 2506 2507 public boolean hasLastReviewDateElement() { 2508 return this.lastReviewDate != null && !this.lastReviewDate.isEmpty(); 2509 } 2510 2511 public boolean hasLastReviewDate() { 2512 return this.lastReviewDate != null && !this.lastReviewDate.isEmpty(); 2513 } 2514 2515 /** 2516 * @param value {@link #lastReviewDate} (The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value 2517 */ 2518 public ActivityDefinition setLastReviewDateElement(DateType value) { 2519 this.lastReviewDate = value; 2520 return this; 2521 } 2522 2523 /** 2524 * @return The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date. 2525 */ 2526 public Date getLastReviewDate() { 2527 return this.lastReviewDate == null ? null : this.lastReviewDate.getValue(); 2528 } 2529 2530 /** 2531 * @param value The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date. 2532 */ 2533 public ActivityDefinition setLastReviewDate(Date value) { 2534 if (value == null) 2535 this.lastReviewDate = null; 2536 else { 2537 if (this.lastReviewDate == null) 2538 this.lastReviewDate = new DateType(); 2539 this.lastReviewDate.setValue(value); 2540 } 2541 return this; 2542 } 2543 2544 /** 2545 * @return {@link #effectivePeriod} (The period during which the activity definition content was or is planned to be in active use.) 2546 */ 2547 public Period getEffectivePeriod() { 2548 if (this.effectivePeriod == null) 2549 if (Configuration.errorOnAutoCreate()) 2550 throw new Error("Attempt to auto-create ActivityDefinition.effectivePeriod"); 2551 else if (Configuration.doAutoCreate()) 2552 this.effectivePeriod = new Period(); // cc 2553 return this.effectivePeriod; 2554 } 2555 2556 public boolean hasEffectivePeriod() { 2557 return this.effectivePeriod != null && !this.effectivePeriod.isEmpty(); 2558 } 2559 2560 /** 2561 * @param value {@link #effectivePeriod} (The period during which the activity definition content was or is planned to be in active use.) 2562 */ 2563 public ActivityDefinition setEffectivePeriod(Period value) { 2564 this.effectivePeriod = value; 2565 return this; 2566 } 2567 2568 /** 2569 * @return {@link #topic} (Descriptive topics related to the content of the activity. Topics provide a high-level categorization of the activity that can be useful for filtering and searching.) 2570 */ 2571 public List<CodeableConcept> getTopic() { 2572 if (this.topic == null) 2573 this.topic = new ArrayList<CodeableConcept>(); 2574 return this.topic; 2575 } 2576 2577 /** 2578 * @return Returns a reference to <code>this</code> for easy method chaining 2579 */ 2580 public ActivityDefinition setTopic(List<CodeableConcept> theTopic) { 2581 this.topic = theTopic; 2582 return this; 2583 } 2584 2585 public boolean hasTopic() { 2586 if (this.topic == null) 2587 return false; 2588 for (CodeableConcept item : this.topic) 2589 if (!item.isEmpty()) 2590 return true; 2591 return false; 2592 } 2593 2594 public CodeableConcept addTopic() { //3 2595 CodeableConcept t = new CodeableConcept(); 2596 if (this.topic == null) 2597 this.topic = new ArrayList<CodeableConcept>(); 2598 this.topic.add(t); 2599 return t; 2600 } 2601 2602 public ActivityDefinition addTopic(CodeableConcept t) { //3 2603 if (t == null) 2604 return this; 2605 if (this.topic == null) 2606 this.topic = new ArrayList<CodeableConcept>(); 2607 this.topic.add(t); 2608 return this; 2609 } 2610 2611 /** 2612 * @return The first repetition of repeating field {@link #topic}, creating it if it does not already exist 2613 */ 2614 public CodeableConcept getTopicFirstRep() { 2615 if (getTopic().isEmpty()) { 2616 addTopic(); 2617 } 2618 return getTopic().get(0); 2619 } 2620 2621 /** 2622 * @return {@link #author} (An individiual or organization primarily involved in the creation and maintenance of the content.) 2623 */ 2624 public List<ContactDetail> getAuthor() { 2625 if (this.author == null) 2626 this.author = new ArrayList<ContactDetail>(); 2627 return this.author; 2628 } 2629 2630 /** 2631 * @return Returns a reference to <code>this</code> for easy method chaining 2632 */ 2633 public ActivityDefinition setAuthor(List<ContactDetail> theAuthor) { 2634 this.author = theAuthor; 2635 return this; 2636 } 2637 2638 public boolean hasAuthor() { 2639 if (this.author == null) 2640 return false; 2641 for (ContactDetail item : this.author) 2642 if (!item.isEmpty()) 2643 return true; 2644 return false; 2645 } 2646 2647 public ContactDetail addAuthor() { //3 2648 ContactDetail t = new ContactDetail(); 2649 if (this.author == null) 2650 this.author = new ArrayList<ContactDetail>(); 2651 this.author.add(t); 2652 return t; 2653 } 2654 2655 public ActivityDefinition addAuthor(ContactDetail t) { //3 2656 if (t == null) 2657 return this; 2658 if (this.author == null) 2659 this.author = new ArrayList<ContactDetail>(); 2660 this.author.add(t); 2661 return this; 2662 } 2663 2664 /** 2665 * @return The first repetition of repeating field {@link #author}, creating it if it does not already exist 2666 */ 2667 public ContactDetail getAuthorFirstRep() { 2668 if (getAuthor().isEmpty()) { 2669 addAuthor(); 2670 } 2671 return getAuthor().get(0); 2672 } 2673 2674 /** 2675 * @return {@link #editor} (An individual or organization primarily responsible for internal coherence of the content.) 2676 */ 2677 public List<ContactDetail> getEditor() { 2678 if (this.editor == null) 2679 this.editor = new ArrayList<ContactDetail>(); 2680 return this.editor; 2681 } 2682 2683 /** 2684 * @return Returns a reference to <code>this</code> for easy method chaining 2685 */ 2686 public ActivityDefinition setEditor(List<ContactDetail> theEditor) { 2687 this.editor = theEditor; 2688 return this; 2689 } 2690 2691 public boolean hasEditor() { 2692 if (this.editor == null) 2693 return false; 2694 for (ContactDetail item : this.editor) 2695 if (!item.isEmpty()) 2696 return true; 2697 return false; 2698 } 2699 2700 public ContactDetail addEditor() { //3 2701 ContactDetail t = new ContactDetail(); 2702 if (this.editor == null) 2703 this.editor = new ArrayList<ContactDetail>(); 2704 this.editor.add(t); 2705 return t; 2706 } 2707 2708 public ActivityDefinition addEditor(ContactDetail t) { //3 2709 if (t == null) 2710 return this; 2711 if (this.editor == null) 2712 this.editor = new ArrayList<ContactDetail>(); 2713 this.editor.add(t); 2714 return this; 2715 } 2716 2717 /** 2718 * @return The first repetition of repeating field {@link #editor}, creating it if it does not already exist 2719 */ 2720 public ContactDetail getEditorFirstRep() { 2721 if (getEditor().isEmpty()) { 2722 addEditor(); 2723 } 2724 return getEditor().get(0); 2725 } 2726 2727 /** 2728 * @return {@link #reviewer} (An individual or organization primarily responsible for review of some aspect of the content.) 2729 */ 2730 public List<ContactDetail> getReviewer() { 2731 if (this.reviewer == null) 2732 this.reviewer = new ArrayList<ContactDetail>(); 2733 return this.reviewer; 2734 } 2735 2736 /** 2737 * @return Returns a reference to <code>this</code> for easy method chaining 2738 */ 2739 public ActivityDefinition setReviewer(List<ContactDetail> theReviewer) { 2740 this.reviewer = theReviewer; 2741 return this; 2742 } 2743 2744 public boolean hasReviewer() { 2745 if (this.reviewer == null) 2746 return false; 2747 for (ContactDetail item : this.reviewer) 2748 if (!item.isEmpty()) 2749 return true; 2750 return false; 2751 } 2752 2753 public ContactDetail addReviewer() { //3 2754 ContactDetail t = new ContactDetail(); 2755 if (this.reviewer == null) 2756 this.reviewer = new ArrayList<ContactDetail>(); 2757 this.reviewer.add(t); 2758 return t; 2759 } 2760 2761 public ActivityDefinition addReviewer(ContactDetail t) { //3 2762 if (t == null) 2763 return this; 2764 if (this.reviewer == null) 2765 this.reviewer = new ArrayList<ContactDetail>(); 2766 this.reviewer.add(t); 2767 return this; 2768 } 2769 2770 /** 2771 * @return The first repetition of repeating field {@link #reviewer}, creating it if it does not already exist 2772 */ 2773 public ContactDetail getReviewerFirstRep() { 2774 if (getReviewer().isEmpty()) { 2775 addReviewer(); 2776 } 2777 return getReviewer().get(0); 2778 } 2779 2780 /** 2781 * @return {@link #endorser} (An individual or organization responsible for officially endorsing the content for use in some setting.) 2782 */ 2783 public List<ContactDetail> getEndorser() { 2784 if (this.endorser == null) 2785 this.endorser = new ArrayList<ContactDetail>(); 2786 return this.endorser; 2787 } 2788 2789 /** 2790 * @return Returns a reference to <code>this</code> for easy method chaining 2791 */ 2792 public ActivityDefinition setEndorser(List<ContactDetail> theEndorser) { 2793 this.endorser = theEndorser; 2794 return this; 2795 } 2796 2797 public boolean hasEndorser() { 2798 if (this.endorser == null) 2799 return false; 2800 for (ContactDetail item : this.endorser) 2801 if (!item.isEmpty()) 2802 return true; 2803 return false; 2804 } 2805 2806 public ContactDetail addEndorser() { //3 2807 ContactDetail t = new ContactDetail(); 2808 if (this.endorser == null) 2809 this.endorser = new ArrayList<ContactDetail>(); 2810 this.endorser.add(t); 2811 return t; 2812 } 2813 2814 public ActivityDefinition addEndorser(ContactDetail t) { //3 2815 if (t == null) 2816 return this; 2817 if (this.endorser == null) 2818 this.endorser = new ArrayList<ContactDetail>(); 2819 this.endorser.add(t); 2820 return this; 2821 } 2822 2823 /** 2824 * @return The first repetition of repeating field {@link #endorser}, creating it if it does not already exist 2825 */ 2826 public ContactDetail getEndorserFirstRep() { 2827 if (getEndorser().isEmpty()) { 2828 addEndorser(); 2829 } 2830 return getEndorser().get(0); 2831 } 2832 2833 /** 2834 * @return {@link #relatedArtifact} (Related artifacts such as additional documentation, justification, or bibliographic references.) 2835 */ 2836 public List<RelatedArtifact> getRelatedArtifact() { 2837 if (this.relatedArtifact == null) 2838 this.relatedArtifact = new ArrayList<RelatedArtifact>(); 2839 return this.relatedArtifact; 2840 } 2841 2842 /** 2843 * @return Returns a reference to <code>this</code> for easy method chaining 2844 */ 2845 public ActivityDefinition setRelatedArtifact(List<RelatedArtifact> theRelatedArtifact) { 2846 this.relatedArtifact = theRelatedArtifact; 2847 return this; 2848 } 2849 2850 public boolean hasRelatedArtifact() { 2851 if (this.relatedArtifact == null) 2852 return false; 2853 for (RelatedArtifact item : this.relatedArtifact) 2854 if (!item.isEmpty()) 2855 return true; 2856 return false; 2857 } 2858 2859 public RelatedArtifact addRelatedArtifact() { //3 2860 RelatedArtifact t = new RelatedArtifact(); 2861 if (this.relatedArtifact == null) 2862 this.relatedArtifact = new ArrayList<RelatedArtifact>(); 2863 this.relatedArtifact.add(t); 2864 return t; 2865 } 2866 2867 public ActivityDefinition addRelatedArtifact(RelatedArtifact t) { //3 2868 if (t == null) 2869 return this; 2870 if (this.relatedArtifact == null) 2871 this.relatedArtifact = new ArrayList<RelatedArtifact>(); 2872 this.relatedArtifact.add(t); 2873 return this; 2874 } 2875 2876 /** 2877 * @return The first repetition of repeating field {@link #relatedArtifact}, creating it if it does not already exist 2878 */ 2879 public RelatedArtifact getRelatedArtifactFirstRep() { 2880 if (getRelatedArtifact().isEmpty()) { 2881 addRelatedArtifact(); 2882 } 2883 return getRelatedArtifact().get(0); 2884 } 2885 2886 /** 2887 * @return {@link #library} (A reference to a Library resource containing any formal logic used by the activity definition.) 2888 */ 2889 public List<CanonicalType> getLibrary() { 2890 if (this.library == null) 2891 this.library = new ArrayList<CanonicalType>(); 2892 return this.library; 2893 } 2894 2895 /** 2896 * @return Returns a reference to <code>this</code> for easy method chaining 2897 */ 2898 public ActivityDefinition setLibrary(List<CanonicalType> theLibrary) { 2899 this.library = theLibrary; 2900 return this; 2901 } 2902 2903 public boolean hasLibrary() { 2904 if (this.library == null) 2905 return false; 2906 for (CanonicalType item : this.library) 2907 if (!item.isEmpty()) 2908 return true; 2909 return false; 2910 } 2911 2912 /** 2913 * @return {@link #library} (A reference to a Library resource containing any formal logic used by the activity definition.) 2914 */ 2915 public CanonicalType addLibraryElement() {//2 2916 CanonicalType t = new CanonicalType(); 2917 if (this.library == null) 2918 this.library = new ArrayList<CanonicalType>(); 2919 this.library.add(t); 2920 return t; 2921 } 2922 2923 /** 2924 * @param value {@link #library} (A reference to a Library resource containing any formal logic used by the activity definition.) 2925 */ 2926 public ActivityDefinition addLibrary(String value) { //1 2927 CanonicalType t = new CanonicalType(); 2928 t.setValue(value); 2929 if (this.library == null) 2930 this.library = new ArrayList<CanonicalType>(); 2931 this.library.add(t); 2932 return this; 2933 } 2934 2935 /** 2936 * @param value {@link #library} (A reference to a Library resource containing any formal logic used by the activity definition.) 2937 */ 2938 public boolean hasLibrary(String value) { 2939 if (this.library == null) 2940 return false; 2941 for (CanonicalType v : this.library) 2942 if (v.getValue().equals(value)) // canonical(Library) 2943 return true; 2944 return false; 2945 } 2946 2947 /** 2948 * @return {@link #kind} (A description of the kind of resource the activity definition is representing. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest. Typically, but not always, this is a Request resource.). This is the underlying object with id, value and extensions. The accessor "getKind" gives direct access to the value 2949 */ 2950 public Enumeration<ActivityDefinitionKind> getKindElement() { 2951 if (this.kind == null) 2952 if (Configuration.errorOnAutoCreate()) 2953 throw new Error("Attempt to auto-create ActivityDefinition.kind"); 2954 else if (Configuration.doAutoCreate()) 2955 this.kind = new Enumeration<ActivityDefinitionKind>(new ActivityDefinitionKindEnumFactory()); // bb 2956 return this.kind; 2957 } 2958 2959 public boolean hasKindElement() { 2960 return this.kind != null && !this.kind.isEmpty(); 2961 } 2962 2963 public boolean hasKind() { 2964 return this.kind != null && !this.kind.isEmpty(); 2965 } 2966 2967 /** 2968 * @param value {@link #kind} (A description of the kind of resource the activity definition is representing. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest. Typically, but not always, this is a Request resource.). This is the underlying object with id, value and extensions. The accessor "getKind" gives direct access to the value 2969 */ 2970 public ActivityDefinition setKindElement(Enumeration<ActivityDefinitionKind> value) { 2971 this.kind = value; 2972 return this; 2973 } 2974 2975 /** 2976 * @return A description of the kind of resource the activity definition is representing. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest. Typically, but not always, this is a Request resource. 2977 */ 2978 public ActivityDefinitionKind getKind() { 2979 return this.kind == null ? null : this.kind.getValue(); 2980 } 2981 2982 /** 2983 * @param value A description of the kind of resource the activity definition is representing. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest. Typically, but not always, this is a Request resource. 2984 */ 2985 public ActivityDefinition setKind(ActivityDefinitionKind value) { 2986 if (value == null) 2987 this.kind = null; 2988 else { 2989 if (this.kind == null) 2990 this.kind = new Enumeration<ActivityDefinitionKind>(new ActivityDefinitionKindEnumFactory()); 2991 this.kind.setValue(value); 2992 } 2993 return this; 2994 } 2995 2996 /** 2997 * @return {@link #profile} (A profile to which the target of the activity definition is expected to conform.). This is the underlying object with id, value and extensions. The accessor "getProfile" gives direct access to the value 2998 */ 2999 public CanonicalType getProfileElement() { 3000 if (this.profile == null) 3001 if (Configuration.errorOnAutoCreate()) 3002 throw new Error("Attempt to auto-create ActivityDefinition.profile"); 3003 else if (Configuration.doAutoCreate()) 3004 this.profile = new CanonicalType(); // bb 3005 return this.profile; 3006 } 3007 3008 public boolean hasProfileElement() { 3009 return this.profile != null && !this.profile.isEmpty(); 3010 } 3011 3012 public boolean hasProfile() { 3013 return this.profile != null && !this.profile.isEmpty(); 3014 } 3015 3016 /** 3017 * @param value {@link #profile} (A profile to which the target of the activity definition is expected to conform.). This is the underlying object with id, value and extensions. The accessor "getProfile" gives direct access to the value 3018 */ 3019 public ActivityDefinition setProfileElement(CanonicalType value) { 3020 this.profile = value; 3021 return this; 3022 } 3023 3024 /** 3025 * @return A profile to which the target of the activity definition is expected to conform. 3026 */ 3027 public String getProfile() { 3028 return this.profile == null ? null : this.profile.getValue(); 3029 } 3030 3031 /** 3032 * @param value A profile to which the target of the activity definition is expected to conform. 3033 */ 3034 public ActivityDefinition setProfile(String value) { 3035 if (Utilities.noString(value)) 3036 this.profile = null; 3037 else { 3038 if (this.profile == null) 3039 this.profile = new CanonicalType(); 3040 this.profile.setValue(value); 3041 } 3042 return this; 3043 } 3044 3045 /** 3046 * @return {@link #code} (Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter.) 3047 */ 3048 public CodeableConcept getCode() { 3049 if (this.code == null) 3050 if (Configuration.errorOnAutoCreate()) 3051 throw new Error("Attempt to auto-create ActivityDefinition.code"); 3052 else if (Configuration.doAutoCreate()) 3053 this.code = new CodeableConcept(); // cc 3054 return this.code; 3055 } 3056 3057 public boolean hasCode() { 3058 return this.code != null && !this.code.isEmpty(); 3059 } 3060 3061 /** 3062 * @param value {@link #code} (Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter.) 3063 */ 3064 public ActivityDefinition setCode(CodeableConcept value) { 3065 this.code = value; 3066 return this; 3067 } 3068 3069 /** 3070 * @return {@link #intent} (Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain.). This is the underlying object with id, value and extensions. The accessor "getIntent" gives direct access to the value 3071 */ 3072 public Enumeration<RequestIntent> getIntentElement() { 3073 if (this.intent == null) 3074 if (Configuration.errorOnAutoCreate()) 3075 throw new Error("Attempt to auto-create ActivityDefinition.intent"); 3076 else if (Configuration.doAutoCreate()) 3077 this.intent = new Enumeration<RequestIntent>(new RequestIntentEnumFactory()); // bb 3078 return this.intent; 3079 } 3080 3081 public boolean hasIntentElement() { 3082 return this.intent != null && !this.intent.isEmpty(); 3083 } 3084 3085 public boolean hasIntent() { 3086 return this.intent != null && !this.intent.isEmpty(); 3087 } 3088 3089 /** 3090 * @param value {@link #intent} (Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain.). This is the underlying object with id, value and extensions. The accessor "getIntent" gives direct access to the value 3091 */ 3092 public ActivityDefinition setIntentElement(Enumeration<RequestIntent> value) { 3093 this.intent = value; 3094 return this; 3095 } 3096 3097 /** 3098 * @return Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain. 3099 */ 3100 public RequestIntent getIntent() { 3101 return this.intent == null ? null : this.intent.getValue(); 3102 } 3103 3104 /** 3105 * @param value Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain. 3106 */ 3107 public ActivityDefinition setIntent(RequestIntent value) { 3108 if (value == null) 3109 this.intent = null; 3110 else { 3111 if (this.intent == null) 3112 this.intent = new Enumeration<RequestIntent>(new RequestIntentEnumFactory()); 3113 this.intent.setValue(value); 3114 } 3115 return this; 3116 } 3117 3118 /** 3119 * @return {@link #priority} (Indicates how quickly the activity should be addressed with respect to other requests.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value 3120 */ 3121 public Enumeration<RequestPriority> getPriorityElement() { 3122 if (this.priority == null) 3123 if (Configuration.errorOnAutoCreate()) 3124 throw new Error("Attempt to auto-create ActivityDefinition.priority"); 3125 else if (Configuration.doAutoCreate()) 3126 this.priority = new Enumeration<RequestPriority>(new RequestPriorityEnumFactory()); // bb 3127 return this.priority; 3128 } 3129 3130 public boolean hasPriorityElement() { 3131 return this.priority != null && !this.priority.isEmpty(); 3132 } 3133 3134 public boolean hasPriority() { 3135 return this.priority != null && !this.priority.isEmpty(); 3136 } 3137 3138 /** 3139 * @param value {@link #priority} (Indicates how quickly the activity should be addressed with respect to other requests.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value 3140 */ 3141 public ActivityDefinition setPriorityElement(Enumeration<RequestPriority> value) { 3142 this.priority = value; 3143 return this; 3144 } 3145 3146 /** 3147 * @return Indicates how quickly the activity should be addressed with respect to other requests. 3148 */ 3149 public RequestPriority getPriority() { 3150 return this.priority == null ? null : this.priority.getValue(); 3151 } 3152 3153 /** 3154 * @param value Indicates how quickly the activity should be addressed with respect to other requests. 3155 */ 3156 public ActivityDefinition setPriority(RequestPriority value) { 3157 if (value == null) 3158 this.priority = null; 3159 else { 3160 if (this.priority == null) 3161 this.priority = new Enumeration<RequestPriority>(new RequestPriorityEnumFactory()); 3162 this.priority.setValue(value); 3163 } 3164 return this; 3165 } 3166 3167 /** 3168 * @return {@link #doNotPerform} (Set this to true if the definition is to indicate that a particular activity should NOT be performed. If true, this element should be interpreted to reinforce a negative coding. For example NPO as a code with a doNotPerform of true would still indicate to NOT perform the action.). This is the underlying object with id, value and extensions. The accessor "getDoNotPerform" gives direct access to the value 3169 */ 3170 public BooleanType getDoNotPerformElement() { 3171 if (this.doNotPerform == null) 3172 if (Configuration.errorOnAutoCreate()) 3173 throw new Error("Attempt to auto-create ActivityDefinition.doNotPerform"); 3174 else if (Configuration.doAutoCreate()) 3175 this.doNotPerform = new BooleanType(); // bb 3176 return this.doNotPerform; 3177 } 3178 3179 public boolean hasDoNotPerformElement() { 3180 return this.doNotPerform != null && !this.doNotPerform.isEmpty(); 3181 } 3182 3183 public boolean hasDoNotPerform() { 3184 return this.doNotPerform != null && !this.doNotPerform.isEmpty(); 3185 } 3186 3187 /** 3188 * @param value {@link #doNotPerform} (Set this to true if the definition is to indicate that a particular activity should NOT be performed. If true, this element should be interpreted to reinforce a negative coding. For example NPO as a code with a doNotPerform of true would still indicate to NOT perform the action.). This is the underlying object with id, value and extensions. The accessor "getDoNotPerform" gives direct access to the value 3189 */ 3190 public ActivityDefinition setDoNotPerformElement(BooleanType value) { 3191 this.doNotPerform = value; 3192 return this; 3193 } 3194 3195 /** 3196 * @return Set this to true if the definition is to indicate that a particular activity should NOT be performed. If true, this element should be interpreted to reinforce a negative coding. For example NPO as a code with a doNotPerform of true would still indicate to NOT perform the action. 3197 */ 3198 public boolean getDoNotPerform() { 3199 return this.doNotPerform == null || this.doNotPerform.isEmpty() ? false : this.doNotPerform.getValue(); 3200 } 3201 3202 /** 3203 * @param value Set this to true if the definition is to indicate that a particular activity should NOT be performed. If true, this element should be interpreted to reinforce a negative coding. For example NPO as a code with a doNotPerform of true would still indicate to NOT perform the action. 3204 */ 3205 public ActivityDefinition setDoNotPerform(boolean value) { 3206 if (this.doNotPerform == null) 3207 this.doNotPerform = new BooleanType(); 3208 this.doNotPerform.setValue(value); 3209 return this; 3210 } 3211 3212 /** 3213 * @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.) 3214 */ 3215 public Type getTiming() { 3216 return this.timing; 3217 } 3218 3219 /** 3220 * @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.) 3221 */ 3222 public Timing getTimingTiming() throws FHIRException { 3223 if (this.timing == null) 3224 this.timing = new Timing(); 3225 if (!(this.timing instanceof Timing)) 3226 throw new FHIRException("Type mismatch: the type Timing was expected, but "+this.timing.getClass().getName()+" was encountered"); 3227 return (Timing) this.timing; 3228 } 3229 3230 public boolean hasTimingTiming() { 3231 return this != null && this.timing instanceof Timing; 3232 } 3233 3234 /** 3235 * @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.) 3236 */ 3237 public DateTimeType getTimingDateTimeType() throws FHIRException { 3238 if (this.timing == null) 3239 this.timing = new DateTimeType(); 3240 if (!(this.timing instanceof DateTimeType)) 3241 throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.timing.getClass().getName()+" was encountered"); 3242 return (DateTimeType) this.timing; 3243 } 3244 3245 public boolean hasTimingDateTimeType() { 3246 return this != null && this.timing instanceof DateTimeType; 3247 } 3248 3249 /** 3250 * @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.) 3251 */ 3252 public Age getTimingAge() throws FHIRException { 3253 if (this.timing == null) 3254 this.timing = new Age(); 3255 if (!(this.timing instanceof Age)) 3256 throw new FHIRException("Type mismatch: the type Age was expected, but "+this.timing.getClass().getName()+" was encountered"); 3257 return (Age) this.timing; 3258 } 3259 3260 public boolean hasTimingAge() { 3261 return this != null && this.timing instanceof Age; 3262 } 3263 3264 /** 3265 * @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.) 3266 */ 3267 public Period getTimingPeriod() throws FHIRException { 3268 if (this.timing == null) 3269 this.timing = new Period(); 3270 if (!(this.timing instanceof Period)) 3271 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.timing.getClass().getName()+" was encountered"); 3272 return (Period) this.timing; 3273 } 3274 3275 public boolean hasTimingPeriod() { 3276 return this != null && this.timing instanceof Period; 3277 } 3278 3279 /** 3280 * @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.) 3281 */ 3282 public Range getTimingRange() throws FHIRException { 3283 if (this.timing == null) 3284 this.timing = new Range(); 3285 if (!(this.timing instanceof Range)) 3286 throw new FHIRException("Type mismatch: the type Range was expected, but "+this.timing.getClass().getName()+" was encountered"); 3287 return (Range) this.timing; 3288 } 3289 3290 public boolean hasTimingRange() { 3291 return this != null && this.timing instanceof Range; 3292 } 3293 3294 /** 3295 * @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.) 3296 */ 3297 public Duration getTimingDuration() throws FHIRException { 3298 if (this.timing == null) 3299 this.timing = new Duration(); 3300 if (!(this.timing instanceof Duration)) 3301 throw new FHIRException("Type mismatch: the type Duration was expected, but "+this.timing.getClass().getName()+" was encountered"); 3302 return (Duration) this.timing; 3303 } 3304 3305 public boolean hasTimingDuration() { 3306 return this != null && this.timing instanceof Duration; 3307 } 3308 3309 public boolean hasTiming() { 3310 return this.timing != null && !this.timing.isEmpty(); 3311 } 3312 3313 /** 3314 * @param value {@link #timing} (The period, timing or frequency upon which the described activity is to occur.) 3315 */ 3316 public ActivityDefinition setTiming(Type value) { 3317 if (value != null && !(value instanceof Timing || value instanceof DateTimeType || value instanceof Age || value instanceof Period || value instanceof Range || value instanceof Duration)) 3318 throw new Error("Not the right type for ActivityDefinition.timing[x]: "+value.fhirType()); 3319 this.timing = value; 3320 return this; 3321 } 3322 3323 /** 3324 * @return {@link #location} (Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.) 3325 */ 3326 public Reference getLocation() { 3327 if (this.location == null) 3328 if (Configuration.errorOnAutoCreate()) 3329 throw new Error("Attempt to auto-create ActivityDefinition.location"); 3330 else if (Configuration.doAutoCreate()) 3331 this.location = new Reference(); // cc 3332 return this.location; 3333 } 3334 3335 public boolean hasLocation() { 3336 return this.location != null && !this.location.isEmpty(); 3337 } 3338 3339 /** 3340 * @param value {@link #location} (Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.) 3341 */ 3342 public ActivityDefinition setLocation(Reference value) { 3343 this.location = value; 3344 return this; 3345 } 3346 3347 /** 3348 * @return {@link #participant} (Indicates who should participate in performing the action described.) 3349 */ 3350 public List<ActivityDefinitionParticipantComponent> getParticipant() { 3351 if (this.participant == null) 3352 this.participant = new ArrayList<ActivityDefinitionParticipantComponent>(); 3353 return this.participant; 3354 } 3355 3356 /** 3357 * @return Returns a reference to <code>this</code> for easy method chaining 3358 */ 3359 public ActivityDefinition setParticipant(List<ActivityDefinitionParticipantComponent> theParticipant) { 3360 this.participant = theParticipant; 3361 return this; 3362 } 3363 3364 public boolean hasParticipant() { 3365 if (this.participant == null) 3366 return false; 3367 for (ActivityDefinitionParticipantComponent item : this.participant) 3368 if (!item.isEmpty()) 3369 return true; 3370 return false; 3371 } 3372 3373 public ActivityDefinitionParticipantComponent addParticipant() { //3 3374 ActivityDefinitionParticipantComponent t = new ActivityDefinitionParticipantComponent(); 3375 if (this.participant == null) 3376 this.participant = new ArrayList<ActivityDefinitionParticipantComponent>(); 3377 this.participant.add(t); 3378 return t; 3379 } 3380 3381 public ActivityDefinition addParticipant(ActivityDefinitionParticipantComponent t) { //3 3382 if (t == null) 3383 return this; 3384 if (this.participant == null) 3385 this.participant = new ArrayList<ActivityDefinitionParticipantComponent>(); 3386 this.participant.add(t); 3387 return this; 3388 } 3389 3390 /** 3391 * @return The first repetition of repeating field {@link #participant}, creating it if it does not already exist 3392 */ 3393 public ActivityDefinitionParticipantComponent getParticipantFirstRep() { 3394 if (getParticipant().isEmpty()) { 3395 addParticipant(); 3396 } 3397 return getParticipant().get(0); 3398 } 3399 3400 /** 3401 * @return {@link #product} (Identifies the food, drug or other product being consumed or supplied in the activity.) 3402 */ 3403 public Type getProduct() { 3404 return this.product; 3405 } 3406 3407 /** 3408 * @return {@link #product} (Identifies the food, drug or other product being consumed or supplied in the activity.) 3409 */ 3410 public Reference getProductReference() throws FHIRException { 3411 if (this.product == null) 3412 this.product = new Reference(); 3413 if (!(this.product instanceof Reference)) 3414 throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.product.getClass().getName()+" was encountered"); 3415 return (Reference) this.product; 3416 } 3417 3418 public boolean hasProductReference() { 3419 return this != null && this.product instanceof Reference; 3420 } 3421 3422 /** 3423 * @return {@link #product} (Identifies the food, drug or other product being consumed or supplied in the activity.) 3424 */ 3425 public CodeableConcept getProductCodeableConcept() throws FHIRException { 3426 if (this.product == null) 3427 this.product = new CodeableConcept(); 3428 if (!(this.product instanceof CodeableConcept)) 3429 throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.product.getClass().getName()+" was encountered"); 3430 return (CodeableConcept) this.product; 3431 } 3432 3433 public boolean hasProductCodeableConcept() { 3434 return this != null && this.product instanceof CodeableConcept; 3435 } 3436 3437 public boolean hasProduct() { 3438 return this.product != null && !this.product.isEmpty(); 3439 } 3440 3441 /** 3442 * @param value {@link #product} (Identifies the food, drug or other product being consumed or supplied in the activity.) 3443 */ 3444 public ActivityDefinition setProduct(Type value) { 3445 if (value != null && !(value instanceof Reference || value instanceof CodeableConcept)) 3446 throw new Error("Not the right type for ActivityDefinition.product[x]: "+value.fhirType()); 3447 this.product = value; 3448 return this; 3449 } 3450 3451 /** 3452 * @return {@link #quantity} (Identifies the quantity expected to be consumed at once (per dose, per meal, etc.).) 3453 */ 3454 public Quantity getQuantity() { 3455 if (this.quantity == null) 3456 if (Configuration.errorOnAutoCreate()) 3457 throw new Error("Attempt to auto-create ActivityDefinition.quantity"); 3458 else if (Configuration.doAutoCreate()) 3459 this.quantity = new Quantity(); // cc 3460 return this.quantity; 3461 } 3462 3463 public boolean hasQuantity() { 3464 return this.quantity != null && !this.quantity.isEmpty(); 3465 } 3466 3467 /** 3468 * @param value {@link #quantity} (Identifies the quantity expected to be consumed at once (per dose, per meal, etc.).) 3469 */ 3470 public ActivityDefinition setQuantity(Quantity value) { 3471 this.quantity = value; 3472 return this; 3473 } 3474 3475 /** 3476 * @return {@link #dosage} (Provides detailed dosage instructions in the same way that they are described for MedicationRequest resources.) 3477 */ 3478 public List<Dosage> getDosage() { 3479 if (this.dosage == null) 3480 this.dosage = new ArrayList<Dosage>(); 3481 return this.dosage; 3482 } 3483 3484 /** 3485 * @return Returns a reference to <code>this</code> for easy method chaining 3486 */ 3487 public ActivityDefinition setDosage(List<Dosage> theDosage) { 3488 this.dosage = theDosage; 3489 return this; 3490 } 3491 3492 public boolean hasDosage() { 3493 if (this.dosage == null) 3494 return false; 3495 for (Dosage item : this.dosage) 3496 if (!item.isEmpty()) 3497 return true; 3498 return false; 3499 } 3500 3501 public Dosage addDosage() { //3 3502 Dosage t = new Dosage(); 3503 if (this.dosage == null) 3504 this.dosage = new ArrayList<Dosage>(); 3505 this.dosage.add(t); 3506 return t; 3507 } 3508 3509 public ActivityDefinition addDosage(Dosage t) { //3 3510 if (t == null) 3511 return this; 3512 if (this.dosage == null) 3513 this.dosage = new ArrayList<Dosage>(); 3514 this.dosage.add(t); 3515 return this; 3516 } 3517 3518 /** 3519 * @return The first repetition of repeating field {@link #dosage}, creating it if it does not already exist 3520 */ 3521 public Dosage getDosageFirstRep() { 3522 if (getDosage().isEmpty()) { 3523 addDosage(); 3524 } 3525 return getDosage().get(0); 3526 } 3527 3528 /** 3529 * @return {@link #bodySite} (Indicates the sites on the subject's body where the procedure should be performed (I.e. the target sites).) 3530 */ 3531 public List<CodeableConcept> getBodySite() { 3532 if (this.bodySite == null) 3533 this.bodySite = new ArrayList<CodeableConcept>(); 3534 return this.bodySite; 3535 } 3536 3537 /** 3538 * @return Returns a reference to <code>this</code> for easy method chaining 3539 */ 3540 public ActivityDefinition setBodySite(List<CodeableConcept> theBodySite) { 3541 this.bodySite = theBodySite; 3542 return this; 3543 } 3544 3545 public boolean hasBodySite() { 3546 if (this.bodySite == null) 3547 return false; 3548 for (CodeableConcept item : this.bodySite) 3549 if (!item.isEmpty()) 3550 return true; 3551 return false; 3552 } 3553 3554 public CodeableConcept addBodySite() { //3 3555 CodeableConcept t = new CodeableConcept(); 3556 if (this.bodySite == null) 3557 this.bodySite = new ArrayList<CodeableConcept>(); 3558 this.bodySite.add(t); 3559 return t; 3560 } 3561 3562 public ActivityDefinition addBodySite(CodeableConcept t) { //3 3563 if (t == null) 3564 return this; 3565 if (this.bodySite == null) 3566 this.bodySite = new ArrayList<CodeableConcept>(); 3567 this.bodySite.add(t); 3568 return this; 3569 } 3570 3571 /** 3572 * @return The first repetition of repeating field {@link #bodySite}, creating it if it does not already exist 3573 */ 3574 public CodeableConcept getBodySiteFirstRep() { 3575 if (getBodySite().isEmpty()) { 3576 addBodySite(); 3577 } 3578 return getBodySite().get(0); 3579 } 3580 3581 /** 3582 * @return {@link #specimenRequirement} (Defines specimen requirements for the action to be performed, such as required specimens for a lab test.) 3583 */ 3584 public List<Reference> getSpecimenRequirement() { 3585 if (this.specimenRequirement == null) 3586 this.specimenRequirement = new ArrayList<Reference>(); 3587 return this.specimenRequirement; 3588 } 3589 3590 /** 3591 * @return Returns a reference to <code>this</code> for easy method chaining 3592 */ 3593 public ActivityDefinition setSpecimenRequirement(List<Reference> theSpecimenRequirement) { 3594 this.specimenRequirement = theSpecimenRequirement; 3595 return this; 3596 } 3597 3598 public boolean hasSpecimenRequirement() { 3599 if (this.specimenRequirement == null) 3600 return false; 3601 for (Reference item : this.specimenRequirement) 3602 if (!item.isEmpty()) 3603 return true; 3604 return false; 3605 } 3606 3607 public Reference addSpecimenRequirement() { //3 3608 Reference t = new Reference(); 3609 if (this.specimenRequirement == null) 3610 this.specimenRequirement = new ArrayList<Reference>(); 3611 this.specimenRequirement.add(t); 3612 return t; 3613 } 3614 3615 public ActivityDefinition addSpecimenRequirement(Reference t) { //3 3616 if (t == null) 3617 return this; 3618 if (this.specimenRequirement == null) 3619 this.specimenRequirement = new ArrayList<Reference>(); 3620 this.specimenRequirement.add(t); 3621 return this; 3622 } 3623 3624 /** 3625 * @return The first repetition of repeating field {@link #specimenRequirement}, creating it if it does not already exist 3626 */ 3627 public Reference getSpecimenRequirementFirstRep() { 3628 if (getSpecimenRequirement().isEmpty()) { 3629 addSpecimenRequirement(); 3630 } 3631 return getSpecimenRequirement().get(0); 3632 } 3633 3634 /** 3635 * @return {@link #observationRequirement} (Defines observation requirements for the action to be performed, such as body weight or surface area.) 3636 */ 3637 public List<Reference> getObservationRequirement() { 3638 if (this.observationRequirement == null) 3639 this.observationRequirement = new ArrayList<Reference>(); 3640 return this.observationRequirement; 3641 } 3642 3643 /** 3644 * @return Returns a reference to <code>this</code> for easy method chaining 3645 */ 3646 public ActivityDefinition setObservationRequirement(List<Reference> theObservationRequirement) { 3647 this.observationRequirement = theObservationRequirement; 3648 return this; 3649 } 3650 3651 public boolean hasObservationRequirement() { 3652 if (this.observationRequirement == null) 3653 return false; 3654 for (Reference item : this.observationRequirement) 3655 if (!item.isEmpty()) 3656 return true; 3657 return false; 3658 } 3659 3660 public Reference addObservationRequirement() { //3 3661 Reference t = new Reference(); 3662 if (this.observationRequirement == null) 3663 this.observationRequirement = new ArrayList<Reference>(); 3664 this.observationRequirement.add(t); 3665 return t; 3666 } 3667 3668 public ActivityDefinition addObservationRequirement(Reference t) { //3 3669 if (t == null) 3670 return this; 3671 if (this.observationRequirement == null) 3672 this.observationRequirement = new ArrayList<Reference>(); 3673 this.observationRequirement.add(t); 3674 return this; 3675 } 3676 3677 /** 3678 * @return The first repetition of repeating field {@link #observationRequirement}, creating it if it does not already exist 3679 */ 3680 public Reference getObservationRequirementFirstRep() { 3681 if (getObservationRequirement().isEmpty()) { 3682 addObservationRequirement(); 3683 } 3684 return getObservationRequirement().get(0); 3685 } 3686 3687 /** 3688 * @return {@link #observationResultRequirement} (Defines the observations that are expected to be produced by the action.) 3689 */ 3690 public List<Reference> getObservationResultRequirement() { 3691 if (this.observationResultRequirement == null) 3692 this.observationResultRequirement = new ArrayList<Reference>(); 3693 return this.observationResultRequirement; 3694 } 3695 3696 /** 3697 * @return Returns a reference to <code>this</code> for easy method chaining 3698 */ 3699 public ActivityDefinition setObservationResultRequirement(List<Reference> theObservationResultRequirement) { 3700 this.observationResultRequirement = theObservationResultRequirement; 3701 return this; 3702 } 3703 3704 public boolean hasObservationResultRequirement() { 3705 if (this.observationResultRequirement == null) 3706 return false; 3707 for (Reference item : this.observationResultRequirement) 3708 if (!item.isEmpty()) 3709 return true; 3710 return false; 3711 } 3712 3713 public Reference addObservationResultRequirement() { //3 3714 Reference t = new Reference(); 3715 if (this.observationResultRequirement == null) 3716 this.observationResultRequirement = new ArrayList<Reference>(); 3717 this.observationResultRequirement.add(t); 3718 return t; 3719 } 3720 3721 public ActivityDefinition addObservationResultRequirement(Reference t) { //3 3722 if (t == null) 3723 return this; 3724 if (this.observationResultRequirement == null) 3725 this.observationResultRequirement = new ArrayList<Reference>(); 3726 this.observationResultRequirement.add(t); 3727 return this; 3728 } 3729 3730 /** 3731 * @return The first repetition of repeating field {@link #observationResultRequirement}, creating it if it does not already exist 3732 */ 3733 public Reference getObservationResultRequirementFirstRep() { 3734 if (getObservationResultRequirement().isEmpty()) { 3735 addObservationResultRequirement(); 3736 } 3737 return getObservationResultRequirement().get(0); 3738 } 3739 3740 /** 3741 * @return {@link #transform} (A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input.). This is the underlying object with id, value and extensions. The accessor "getTransform" gives direct access to the value 3742 */ 3743 public CanonicalType getTransformElement() { 3744 if (this.transform == null) 3745 if (Configuration.errorOnAutoCreate()) 3746 throw new Error("Attempt to auto-create ActivityDefinition.transform"); 3747 else if (Configuration.doAutoCreate()) 3748 this.transform = new CanonicalType(); // bb 3749 return this.transform; 3750 } 3751 3752 public boolean hasTransformElement() { 3753 return this.transform != null && !this.transform.isEmpty(); 3754 } 3755 3756 public boolean hasTransform() { 3757 return this.transform != null && !this.transform.isEmpty(); 3758 } 3759 3760 /** 3761 * @param value {@link #transform} (A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input.). This is the underlying object with id, value and extensions. The accessor "getTransform" gives direct access to the value 3762 */ 3763 public ActivityDefinition setTransformElement(CanonicalType value) { 3764 this.transform = value; 3765 return this; 3766 } 3767 3768 /** 3769 * @return A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input. 3770 */ 3771 public String getTransform() { 3772 return this.transform == null ? null : this.transform.getValue(); 3773 } 3774 3775 /** 3776 * @param value A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input. 3777 */ 3778 public ActivityDefinition setTransform(String value) { 3779 if (Utilities.noString(value)) 3780 this.transform = null; 3781 else { 3782 if (this.transform == null) 3783 this.transform = new CanonicalType(); 3784 this.transform.setValue(value); 3785 } 3786 return this; 3787 } 3788 3789 /** 3790 * @return {@link #dynamicValue} (Dynamic values that will be evaluated to produce values for elements of the resulting resource. For example, if the dosage of a medication must be computed based on the patient's weight, a dynamic value would be used to specify an expression that calculated the weight, and the path on the request resource that would contain the result.) 3791 */ 3792 public List<ActivityDefinitionDynamicValueComponent> getDynamicValue() { 3793 if (this.dynamicValue == null) 3794 this.dynamicValue = new ArrayList<ActivityDefinitionDynamicValueComponent>(); 3795 return this.dynamicValue; 3796 } 3797 3798 /** 3799 * @return Returns a reference to <code>this</code> for easy method chaining 3800 */ 3801 public ActivityDefinition setDynamicValue(List<ActivityDefinitionDynamicValueComponent> theDynamicValue) { 3802 this.dynamicValue = theDynamicValue; 3803 return this; 3804 } 3805 3806 public boolean hasDynamicValue() { 3807 if (this.dynamicValue == null) 3808 return false; 3809 for (ActivityDefinitionDynamicValueComponent item : this.dynamicValue) 3810 if (!item.isEmpty()) 3811 return true; 3812 return false; 3813 } 3814 3815 public ActivityDefinitionDynamicValueComponent addDynamicValue() { //3 3816 ActivityDefinitionDynamicValueComponent t = new ActivityDefinitionDynamicValueComponent(); 3817 if (this.dynamicValue == null) 3818 this.dynamicValue = new ArrayList<ActivityDefinitionDynamicValueComponent>(); 3819 this.dynamicValue.add(t); 3820 return t; 3821 } 3822 3823 public ActivityDefinition addDynamicValue(ActivityDefinitionDynamicValueComponent t) { //3 3824 if (t == null) 3825 return this; 3826 if (this.dynamicValue == null) 3827 this.dynamicValue = new ArrayList<ActivityDefinitionDynamicValueComponent>(); 3828 this.dynamicValue.add(t); 3829 return this; 3830 } 3831 3832 /** 3833 * @return The first repetition of repeating field {@link #dynamicValue}, creating it if it does not already exist 3834 */ 3835 public ActivityDefinitionDynamicValueComponent getDynamicValueFirstRep() { 3836 if (getDynamicValue().isEmpty()) { 3837 addDynamicValue(); 3838 } 3839 return getDynamicValue().get(0); 3840 } 3841 3842 protected void listChildren(List<Property> children) { 3843 super.listChildren(children); 3844 children.add(new Property("url", "uri", "An absolute URI that is used to identify this activity definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this activity definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the activity definition is stored on different servers.", 0, 1, url)); 3845 children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this activity definition when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier)); 3846 children.add(new Property("version", "string", "The identifier that is used to identify this version of the activity definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the activity definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets.", 0, 1, version)); 3847 children.add(new Property("name", "string", "A natural language name identifying the activity definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); 3848 children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the activity definition.", 0, 1, title)); 3849 children.add(new Property("subtitle", "string", "An explanatory or alternate title for the activity definition giving additional information about its content.", 0, 1, subtitle)); 3850 children.add(new Property("status", "code", "The status of this activity definition. Enables tracking the life-cycle of the content.", 0, 1, status)); 3851 children.add(new Property("experimental", "boolean", "A Boolean value to indicate that this activity definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental)); 3852 children.add(new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the activity being defined.", 0, 1, subject)); 3853 children.add(new Property("date", "dateTime", "The date (and optionally time) when the activity definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the activity definition changes.", 0, 1, date)); 3854 children.add(new Property("publisher", "string", "The name of the organization or individual that published the activity definition.", 0, 1, publisher)); 3855 children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact)); 3856 children.add(new Property("description", "markdown", "A free text natural language description of the activity definition from a consumer's perspective.", 0, 1, description)); 3857 children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate activity definition instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); 3858 children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the activity definition is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction)); 3859 children.add(new Property("purpose", "markdown", "Explanation of why this activity definition is needed and why it has been designed as it has.", 0, 1, purpose)); 3860 children.add(new Property("usage", "string", "A detailed description of how the activity definition is used from a clinical perspective.", 0, 1, usage)); 3861 children.add(new Property("copyright", "markdown", "A copyright statement relating to the activity definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the activity definition.", 0, 1, copyright)); 3862 children.add(new Property("approvalDate", "date", "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.", 0, 1, approvalDate)); 3863 children.add(new Property("lastReviewDate", "date", "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.", 0, 1, lastReviewDate)); 3864 children.add(new Property("effectivePeriod", "Period", "The period during which the activity definition content was or is planned to be in active use.", 0, 1, effectivePeriod)); 3865 children.add(new Property("topic", "CodeableConcept", "Descriptive topics related to the content of the activity. Topics provide a high-level categorization of the activity that can be useful for filtering and searching.", 0, java.lang.Integer.MAX_VALUE, topic)); 3866 children.add(new Property("author", "ContactDetail", "An individiual or organization primarily involved in the creation and maintenance of the content.", 0, java.lang.Integer.MAX_VALUE, author)); 3867 children.add(new Property("editor", "ContactDetail", "An individual or organization primarily responsible for internal coherence of the content.", 0, java.lang.Integer.MAX_VALUE, editor)); 3868 children.add(new Property("reviewer", "ContactDetail", "An individual or organization primarily responsible for review of some aspect of the content.", 0, java.lang.Integer.MAX_VALUE, reviewer)); 3869 children.add(new Property("endorser", "ContactDetail", "An individual or organization responsible for officially endorsing the content for use in some setting.", 0, java.lang.Integer.MAX_VALUE, endorser)); 3870 children.add(new Property("relatedArtifact", "RelatedArtifact", "Related artifacts such as additional documentation, justification, or bibliographic references.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact)); 3871 children.add(new Property("library", "canonical(Library)", "A reference to a Library resource containing any formal logic used by the activity definition.", 0, java.lang.Integer.MAX_VALUE, library)); 3872 children.add(new Property("kind", "code", "A description of the kind of resource the activity definition is representing. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest. Typically, but not always, this is a Request resource.", 0, 1, kind)); 3873 children.add(new Property("profile", "canonical(StructureDefinition)", "A profile to which the target of the activity definition is expected to conform.", 0, 1, profile)); 3874 children.add(new Property("code", "CodeableConcept", "Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter.", 0, 1, code)); 3875 children.add(new Property("intent", "code", "Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain.", 0, 1, intent)); 3876 children.add(new Property("priority", "code", "Indicates how quickly the activity should be addressed with respect to other requests.", 0, 1, priority)); 3877 children.add(new Property("doNotPerform", "boolean", "Set this to true if the definition is to indicate that a particular activity should NOT be performed. If true, this element should be interpreted to reinforce a negative coding. For example NPO as a code with a doNotPerform of true would still indicate to NOT perform the action.", 0, 1, doNotPerform)); 3878 children.add(new Property("timing[x]", "Timing|dateTime|Age|Period|Range|Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing)); 3879 children.add(new Property("location", "Reference(Location)", "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.", 0, 1, location)); 3880 children.add(new Property("participant", "", "Indicates who should participate in performing the action described.", 0, java.lang.Integer.MAX_VALUE, participant)); 3881 children.add(new Property("product[x]", "Reference(Medication|Substance)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product)); 3882 children.add(new Property("quantity", "SimpleQuantity", "Identifies the quantity expected to be consumed at once (per dose, per meal, etc.).", 0, 1, quantity)); 3883 children.add(new Property("dosage", "Dosage", "Provides detailed dosage instructions in the same way that they are described for MedicationRequest resources.", 0, java.lang.Integer.MAX_VALUE, dosage)); 3884 children.add(new Property("bodySite", "CodeableConcept", "Indicates the sites on the subject's body where the procedure should be performed (I.e. the target sites).", 0, java.lang.Integer.MAX_VALUE, bodySite)); 3885 children.add(new Property("specimenRequirement", "Reference(SpecimenDefinition)", "Defines specimen requirements for the action to be performed, such as required specimens for a lab test.", 0, java.lang.Integer.MAX_VALUE, specimenRequirement)); 3886 children.add(new Property("observationRequirement", "Reference(ObservationDefinition)", "Defines observation requirements for the action to be performed, such as body weight or surface area.", 0, java.lang.Integer.MAX_VALUE, observationRequirement)); 3887 children.add(new Property("observationResultRequirement", "Reference(ObservationDefinition)", "Defines the observations that are expected to be produced by the action.", 0, java.lang.Integer.MAX_VALUE, observationResultRequirement)); 3888 children.add(new Property("transform", "canonical(StructureMap)", "A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input.", 0, 1, transform)); 3889 children.add(new Property("dynamicValue", "", "Dynamic values that will be evaluated to produce values for elements of the resulting resource. For example, if the dosage of a medication must be computed based on the patient's weight, a dynamic value would be used to specify an expression that calculated the weight, and the path on the request resource that would contain the result.", 0, java.lang.Integer.MAX_VALUE, dynamicValue)); 3890 } 3891 3892 @Override 3893 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 3894 switch (_hash) { 3895 case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this activity definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this activity definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the activity definition is stored on different servers.", 0, 1, url); 3896 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this activity definition when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier); 3897 case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the activity definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the activity definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets.", 0, 1, version); 3898 case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the activity definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); 3899 case 110371416: /*title*/ return new Property("title", "string", "A short, descriptive, user-friendly title for the activity definition.", 0, 1, title); 3900 case -2060497896: /*subtitle*/ return new Property("subtitle", "string", "An explanatory or alternate title for the activity definition giving additional information about its content.", 0, 1, subtitle); 3901 case -892481550: /*status*/ return new Property("status", "code", "The status of this activity definition. Enables tracking the life-cycle of the content.", 0, 1, status); 3902 case -404562712: /*experimental*/ return new Property("experimental", "boolean", "A Boolean value to indicate that this activity definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental); 3903 case -573640748: /*subject[x]*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the activity being defined.", 0, 1, subject); 3904 case -1867885268: /*subject*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the activity being defined.", 0, 1, subject); 3905 case -1257122603: /*subjectCodeableConcept*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the activity being defined.", 0, 1, subject); 3906 case 772938623: /*subjectReference*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the activity being defined.", 0, 1, subject); 3907 case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the activity definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the activity definition changes.", 0, 1, date); 3908 case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the organization or individual that published the activity definition.", 0, 1, publisher); 3909 case 951526432: /*contact*/ return new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact); 3910 case -1724546052: /*description*/ return new Property("description", "markdown", "A free text natural language description of the activity definition from a consumer's perspective.", 0, 1, description); 3911 case -669707736: /*useContext*/ return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate activity definition instances.", 0, java.lang.Integer.MAX_VALUE, useContext); 3912 case -507075711: /*jurisdiction*/ return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the activity definition is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction); 3913 case -220463842: /*purpose*/ return new Property("purpose", "markdown", "Explanation of why this activity definition is needed and why it has been designed as it has.", 0, 1, purpose); 3914 case 111574433: /*usage*/ return new Property("usage", "string", "A detailed description of how the activity definition is used from a clinical perspective.", 0, 1, usage); 3915 case 1522889671: /*copyright*/ return new Property("copyright", "markdown", "A copyright statement relating to the activity definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the activity definition.", 0, 1, copyright); 3916 case 223539345: /*approvalDate*/ return new Property("approvalDate", "date", "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.", 0, 1, approvalDate); 3917 case -1687512484: /*lastReviewDate*/ return new Property("lastReviewDate", "date", "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.", 0, 1, lastReviewDate); 3918 case -403934648: /*effectivePeriod*/ return new Property("effectivePeriod", "Period", "The period during which the activity definition content was or is planned to be in active use.", 0, 1, effectivePeriod); 3919 case 110546223: /*topic*/ return new Property("topic", "CodeableConcept", "Descriptive topics related to the content of the activity. Topics provide a high-level categorization of the activity that can be useful for filtering and searching.", 0, java.lang.Integer.MAX_VALUE, topic); 3920 case -1406328437: /*author*/ return new Property("author", "ContactDetail", "An individiual or organization primarily involved in the creation and maintenance of the content.", 0, java.lang.Integer.MAX_VALUE, author); 3921 case -1307827859: /*editor*/ return new Property("editor", "ContactDetail", "An individual or organization primarily responsible for internal coherence of the content.", 0, java.lang.Integer.MAX_VALUE, editor); 3922 case -261190139: /*reviewer*/ return new Property("reviewer", "ContactDetail", "An individual or organization primarily responsible for review of some aspect of the content.", 0, java.lang.Integer.MAX_VALUE, reviewer); 3923 case 1740277666: /*endorser*/ return new Property("endorser", "ContactDetail", "An individual or organization responsible for officially endorsing the content for use in some setting.", 0, java.lang.Integer.MAX_VALUE, endorser); 3924 case 666807069: /*relatedArtifact*/ return new Property("relatedArtifact", "RelatedArtifact", "Related artifacts such as additional documentation, justification, or bibliographic references.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact); 3925 case 166208699: /*library*/ return new Property("library", "canonical(Library)", "A reference to a Library resource containing any formal logic used by the activity definition.", 0, java.lang.Integer.MAX_VALUE, library); 3926 case 3292052: /*kind*/ return new Property("kind", "code", "A description of the kind of resource the activity definition is representing. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest. Typically, but not always, this is a Request resource.", 0, 1, kind); 3927 case -309425751: /*profile*/ return new Property("profile", "canonical(StructureDefinition)", "A profile to which the target of the activity definition is expected to conform.", 0, 1, profile); 3928 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter.", 0, 1, code); 3929 case -1183762788: /*intent*/ return new Property("intent", "code", "Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain.", 0, 1, intent); 3930 case -1165461084: /*priority*/ return new Property("priority", "code", "Indicates how quickly the activity should be addressed with respect to other requests.", 0, 1, priority); 3931 case -1788508167: /*doNotPerform*/ return new Property("doNotPerform", "boolean", "Set this to true if the definition is to indicate that a particular activity should NOT be performed. If true, this element should be interpreted to reinforce a negative coding. For example NPO as a code with a doNotPerform of true would still indicate to NOT perform the action.", 0, 1, doNotPerform); 3932 case 164632566: /*timing[x]*/ return new Property("timing[x]", "Timing|dateTime|Age|Period|Range|Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing); 3933 case -873664438: /*timing*/ return new Property("timing[x]", "Timing|dateTime|Age|Period|Range|Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing); 3934 case -497554124: /*timingTiming*/ return new Property("timing[x]", "Timing|dateTime|Age|Period|Range|Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing); 3935 case -1837458939: /*timingDateTime*/ return new Property("timing[x]", "Timing|dateTime|Age|Period|Range|Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing); 3936 case 164607061: /*timingAge*/ return new Property("timing[x]", "Timing|dateTime|Age|Period|Range|Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing); 3937 case -615615829: /*timingPeriod*/ return new Property("timing[x]", "Timing|dateTime|Age|Period|Range|Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing); 3938 case -710871277: /*timingRange*/ return new Property("timing[x]", "Timing|dateTime|Age|Period|Range|Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing); 3939 case -1327253506: /*timingDuration*/ return new Property("timing[x]", "Timing|dateTime|Age|Period|Range|Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing); 3940 case 1901043637: /*location*/ return new Property("location", "Reference(Location)", "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.", 0, 1, location); 3941 case 767422259: /*participant*/ return new Property("participant", "", "Indicates who should participate in performing the action described.", 0, java.lang.Integer.MAX_VALUE, participant); 3942 case 1753005361: /*product[x]*/ return new Property("product[x]", "Reference(Medication|Substance)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product); 3943 case -309474065: /*product*/ return new Property("product[x]", "Reference(Medication|Substance)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product); 3944 case -669667556: /*productReference*/ return new Property("product[x]", "Reference(Medication|Substance)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product); 3945 case 906854066: /*productCodeableConcept*/ return new Property("product[x]", "Reference(Medication|Substance)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product); 3946 case -1285004149: /*quantity*/ return new Property("quantity", "SimpleQuantity", "Identifies the quantity expected to be consumed at once (per dose, per meal, etc.).", 0, 1, quantity); 3947 case -1326018889: /*dosage*/ return new Property("dosage", "Dosage", "Provides detailed dosage instructions in the same way that they are described for MedicationRequest resources.", 0, java.lang.Integer.MAX_VALUE, dosage); 3948 case 1702620169: /*bodySite*/ return new Property("bodySite", "CodeableConcept", "Indicates the sites on the subject's body where the procedure should be performed (I.e. the target sites).", 0, java.lang.Integer.MAX_VALUE, bodySite); 3949 case 1498467355: /*specimenRequirement*/ return new Property("specimenRequirement", "Reference(SpecimenDefinition)", "Defines specimen requirements for the action to be performed, such as required specimens for a lab test.", 0, java.lang.Integer.MAX_VALUE, specimenRequirement); 3950 case 362354807: /*observationRequirement*/ return new Property("observationRequirement", "Reference(ObservationDefinition)", "Defines observation requirements for the action to be performed, such as body weight or surface area.", 0, java.lang.Integer.MAX_VALUE, observationRequirement); 3951 case 395230490: /*observationResultRequirement*/ return new Property("observationResultRequirement", "Reference(ObservationDefinition)", "Defines the observations that are expected to be produced by the action.", 0, java.lang.Integer.MAX_VALUE, observationResultRequirement); 3952 case 1052666732: /*transform*/ return new Property("transform", "canonical(StructureMap)", "A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input.", 0, 1, transform); 3953 case 572625010: /*dynamicValue*/ return new Property("dynamicValue", "", "Dynamic values that will be evaluated to produce values for elements of the resulting resource. For example, if the dosage of a medication must be computed based on the patient's weight, a dynamic value would be used to specify an expression that calculated the weight, and the path on the request resource that would contain the result.", 0, java.lang.Integer.MAX_VALUE, dynamicValue); 3954 default: return super.getNamedProperty(_hash, _name, _checkValid); 3955 } 3956 3957 } 3958 3959 @Override 3960 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 3961 switch (hash) { 3962 case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType 3963 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 3964 case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType 3965 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 3966 case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType 3967 case -2060497896: /*subtitle*/ return this.subtitle == null ? new Base[0] : new Base[] {this.subtitle}; // StringType 3968 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus> 3969 case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType 3970 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Type 3971 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 3972 case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType 3973 case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail 3974 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType 3975 case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext 3976 case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept 3977 case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // MarkdownType 3978 case 111574433: /*usage*/ return this.usage == null ? new Base[0] : new Base[] {this.usage}; // StringType 3979 case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType 3980 case 223539345: /*approvalDate*/ return this.approvalDate == null ? new Base[0] : new Base[] {this.approvalDate}; // DateType 3981 case -1687512484: /*lastReviewDate*/ return this.lastReviewDate == null ? new Base[0] : new Base[] {this.lastReviewDate}; // DateType 3982 case -403934648: /*effectivePeriod*/ return this.effectivePeriod == null ? new Base[0] : new Base[] {this.effectivePeriod}; // Period 3983 case 110546223: /*topic*/ return this.topic == null ? new Base[0] : this.topic.toArray(new Base[this.topic.size()]); // CodeableConcept 3984 case -1406328437: /*author*/ return this.author == null ? new Base[0] : this.author.toArray(new Base[this.author.size()]); // ContactDetail 3985 case -1307827859: /*editor*/ return this.editor == null ? new Base[0] : this.editor.toArray(new Base[this.editor.size()]); // ContactDetail 3986 case -261190139: /*reviewer*/ return this.reviewer == null ? new Base[0] : this.reviewer.toArray(new Base[this.reviewer.size()]); // ContactDetail 3987 case 1740277666: /*endorser*/ return this.endorser == null ? new Base[0] : this.endorser.toArray(new Base[this.endorser.size()]); // ContactDetail 3988 case 666807069: /*relatedArtifact*/ return this.relatedArtifact == null ? new Base[0] : this.relatedArtifact.toArray(new Base[this.relatedArtifact.size()]); // RelatedArtifact 3989 case 166208699: /*library*/ return this.library == null ? new Base[0] : this.library.toArray(new Base[this.library.size()]); // CanonicalType 3990 case 3292052: /*kind*/ return this.kind == null ? new Base[0] : new Base[] {this.kind}; // Enumeration<ActivityDefinitionKind> 3991 case -309425751: /*profile*/ return this.profile == null ? new Base[0] : new Base[] {this.profile}; // CanonicalType 3992 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 3993 case -1183762788: /*intent*/ return this.intent == null ? new Base[0] : new Base[] {this.intent}; // Enumeration<RequestIntent> 3994 case -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // Enumeration<RequestPriority> 3995 case -1788508167: /*doNotPerform*/ return this.doNotPerform == null ? new Base[0] : new Base[] {this.doNotPerform}; // BooleanType 3996 case -873664438: /*timing*/ return this.timing == null ? new Base[0] : new Base[] {this.timing}; // Type 3997 case 1901043637: /*location*/ return this.location == null ? new Base[0] : new Base[] {this.location}; // Reference 3998 case 767422259: /*participant*/ return this.participant == null ? new Base[0] : this.participant.toArray(new Base[this.participant.size()]); // ActivityDefinitionParticipantComponent 3999 case -309474065: /*product*/ return this.product == null ? new Base[0] : new Base[] {this.product}; // Type 4000 case -1285004149: /*quantity*/ return this.quantity == null ? new Base[0] : new Base[] {this.quantity}; // Quantity 4001 case -1326018889: /*dosage*/ return this.dosage == null ? new Base[0] : this.dosage.toArray(new Base[this.dosage.size()]); // Dosage 4002 case 1702620169: /*bodySite*/ return this.bodySite == null ? new Base[0] : this.bodySite.toArray(new Base[this.bodySite.size()]); // CodeableConcept 4003 case 1498467355: /*specimenRequirement*/ return this.specimenRequirement == null ? new Base[0] : this.specimenRequirement.toArray(new Base[this.specimenRequirement.size()]); // Reference 4004 case 362354807: /*observationRequirement*/ return this.observationRequirement == null ? new Base[0] : this.observationRequirement.toArray(new Base[this.observationRequirement.size()]); // Reference 4005 case 395230490: /*observationResultRequirement*/ return this.observationResultRequirement == null ? new Base[0] : this.observationResultRequirement.toArray(new Base[this.observationResultRequirement.size()]); // Reference 4006 case 1052666732: /*transform*/ return this.transform == null ? new Base[0] : new Base[] {this.transform}; // CanonicalType 4007 case 572625010: /*dynamicValue*/ return this.dynamicValue == null ? new Base[0] : this.dynamicValue.toArray(new Base[this.dynamicValue.size()]); // ActivityDefinitionDynamicValueComponent 4008 default: return super.getProperty(hash, name, checkValid); 4009 } 4010 4011 } 4012 4013 @Override 4014 public Base setProperty(int hash, String name, Base value) throws FHIRException { 4015 switch (hash) { 4016 case 116079: // url 4017 this.url = castToUri(value); // UriType 4018 return value; 4019 case -1618432855: // identifier 4020 this.getIdentifier().add(castToIdentifier(value)); // Identifier 4021 return value; 4022 case 351608024: // version 4023 this.version = castToString(value); // StringType 4024 return value; 4025 case 3373707: // name 4026 this.name = castToString(value); // StringType 4027 return value; 4028 case 110371416: // title 4029 this.title = castToString(value); // StringType 4030 return value; 4031 case -2060497896: // subtitle 4032 this.subtitle = castToString(value); // StringType 4033 return value; 4034 case -892481550: // status 4035 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 4036 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 4037 return value; 4038 case -404562712: // experimental 4039 this.experimental = castToBoolean(value); // BooleanType 4040 return value; 4041 case -1867885268: // subject 4042 this.subject = castToType(value); // Type 4043 return value; 4044 case 3076014: // date 4045 this.date = castToDateTime(value); // DateTimeType 4046 return value; 4047 case 1447404028: // publisher 4048 this.publisher = castToString(value); // StringType 4049 return value; 4050 case 951526432: // contact 4051 this.getContact().add(castToContactDetail(value)); // ContactDetail 4052 return value; 4053 case -1724546052: // description 4054 this.description = castToMarkdown(value); // MarkdownType 4055 return value; 4056 case -669707736: // useContext 4057 this.getUseContext().add(castToUsageContext(value)); // UsageContext 4058 return value; 4059 case -507075711: // jurisdiction 4060 this.getJurisdiction().add(castToCodeableConcept(value)); // CodeableConcept 4061 return value; 4062 case -220463842: // purpose 4063 this.purpose = castToMarkdown(value); // MarkdownType 4064 return value; 4065 case 111574433: // usage 4066 this.usage = castToString(value); // StringType 4067 return value; 4068 case 1522889671: // copyright 4069 this.copyright = castToMarkdown(value); // MarkdownType 4070 return value; 4071 case 223539345: // approvalDate 4072 this.approvalDate = castToDate(value); // DateType 4073 return value; 4074 case -1687512484: // lastReviewDate 4075 this.lastReviewDate = castToDate(value); // DateType 4076 return value; 4077 case -403934648: // effectivePeriod 4078 this.effectivePeriod = castToPeriod(value); // Period 4079 return value; 4080 case 110546223: // topic 4081 this.getTopic().add(castToCodeableConcept(value)); // CodeableConcept 4082 return value; 4083 case -1406328437: // author 4084 this.getAuthor().add(castToContactDetail(value)); // ContactDetail 4085 return value; 4086 case -1307827859: // editor 4087 this.getEditor().add(castToContactDetail(value)); // ContactDetail 4088 return value; 4089 case -261190139: // reviewer 4090 this.getReviewer().add(castToContactDetail(value)); // ContactDetail 4091 return value; 4092 case 1740277666: // endorser 4093 this.getEndorser().add(castToContactDetail(value)); // ContactDetail 4094 return value; 4095 case 666807069: // relatedArtifact 4096 this.getRelatedArtifact().add(castToRelatedArtifact(value)); // RelatedArtifact 4097 return value; 4098 case 166208699: // library 4099 this.getLibrary().add(castToCanonical(value)); // CanonicalType 4100 return value; 4101 case 3292052: // kind 4102 value = new ActivityDefinitionKindEnumFactory().fromType(castToCode(value)); 4103 this.kind = (Enumeration) value; // Enumeration<ActivityDefinitionKind> 4104 return value; 4105 case -309425751: // profile 4106 this.profile = castToCanonical(value); // CanonicalType 4107 return value; 4108 case 3059181: // code 4109 this.code = castToCodeableConcept(value); // CodeableConcept 4110 return value; 4111 case -1183762788: // intent 4112 value = new RequestIntentEnumFactory().fromType(castToCode(value)); 4113 this.intent = (Enumeration) value; // Enumeration<RequestIntent> 4114 return value; 4115 case -1165461084: // priority 4116 value = new RequestPriorityEnumFactory().fromType(castToCode(value)); 4117 this.priority = (Enumeration) value; // Enumeration<RequestPriority> 4118 return value; 4119 case -1788508167: // doNotPerform 4120 this.doNotPerform = castToBoolean(value); // BooleanType 4121 return value; 4122 case -873664438: // timing 4123 this.timing = castToType(value); // Type 4124 return value; 4125 case 1901043637: // location 4126 this.location = castToReference(value); // Reference 4127 return value; 4128 case 767422259: // participant 4129 this.getParticipant().add((ActivityDefinitionParticipantComponent) value); // ActivityDefinitionParticipantComponent 4130 return value; 4131 case -309474065: // product 4132 this.product = castToType(value); // Type 4133 return value; 4134 case -1285004149: // quantity 4135 this.quantity = castToQuantity(value); // Quantity 4136 return value; 4137 case -1326018889: // dosage 4138 this.getDosage().add(castToDosage(value)); // Dosage 4139 return value; 4140 case 1702620169: // bodySite 4141 this.getBodySite().add(castToCodeableConcept(value)); // CodeableConcept 4142 return value; 4143 case 1498467355: // specimenRequirement 4144 this.getSpecimenRequirement().add(castToReference(value)); // Reference 4145 return value; 4146 case 362354807: // observationRequirement 4147 this.getObservationRequirement().add(castToReference(value)); // Reference 4148 return value; 4149 case 395230490: // observationResultRequirement 4150 this.getObservationResultRequirement().add(castToReference(value)); // Reference 4151 return value; 4152 case 1052666732: // transform 4153 this.transform = castToCanonical(value); // CanonicalType 4154 return value; 4155 case 572625010: // dynamicValue 4156 this.getDynamicValue().add((ActivityDefinitionDynamicValueComponent) value); // ActivityDefinitionDynamicValueComponent 4157 return value; 4158 default: return super.setProperty(hash, name, value); 4159 } 4160 4161 } 4162 4163 @Override 4164 public Base setProperty(String name, Base value) throws FHIRException { 4165 if (name.equals("url")) { 4166 this.url = castToUri(value); // UriType 4167 } else if (name.equals("identifier")) { 4168 this.getIdentifier().add(castToIdentifier(value)); 4169 } else if (name.equals("version")) { 4170 this.version = castToString(value); // StringType 4171 } else if (name.equals("name")) { 4172 this.name = castToString(value); // StringType 4173 } else if (name.equals("title")) { 4174 this.title = castToString(value); // StringType 4175 } else if (name.equals("subtitle")) { 4176 this.subtitle = castToString(value); // StringType 4177 } else if (name.equals("status")) { 4178 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 4179 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 4180 } else if (name.equals("experimental")) { 4181 this.experimental = castToBoolean(value); // BooleanType 4182 } else if (name.equals("subject[x]")) { 4183 this.subject = castToType(value); // Type 4184 } else if (name.equals("date")) { 4185 this.date = castToDateTime(value); // DateTimeType 4186 } else if (name.equals("publisher")) { 4187 this.publisher = castToString(value); // StringType 4188 } else if (name.equals("contact")) { 4189 this.getContact().add(castToContactDetail(value)); 4190 } else if (name.equals("description")) { 4191 this.description = castToMarkdown(value); // MarkdownType 4192 } else if (name.equals("useContext")) { 4193 this.getUseContext().add(castToUsageContext(value)); 4194 } else if (name.equals("jurisdiction")) { 4195 this.getJurisdiction().add(castToCodeableConcept(value)); 4196 } else if (name.equals("purpose")) { 4197 this.purpose = castToMarkdown(value); // MarkdownType 4198 } else if (name.equals("usage")) { 4199 this.usage = castToString(value); // StringType 4200 } else if (name.equals("copyright")) { 4201 this.copyright = castToMarkdown(value); // MarkdownType 4202 } else if (name.equals("approvalDate")) { 4203 this.approvalDate = castToDate(value); // DateType 4204 } else if (name.equals("lastReviewDate")) { 4205 this.lastReviewDate = castToDate(value); // DateType 4206 } else if (name.equals("effectivePeriod")) { 4207 this.effectivePeriod = castToPeriod(value); // Period 4208 } else if (name.equals("topic")) { 4209 this.getTopic().add(castToCodeableConcept(value)); 4210 } else if (name.equals("author")) { 4211 this.getAuthor().add(castToContactDetail(value)); 4212 } else if (name.equals("editor")) { 4213 this.getEditor().add(castToContactDetail(value)); 4214 } else if (name.equals("reviewer")) { 4215 this.getReviewer().add(castToContactDetail(value)); 4216 } else if (name.equals("endorser")) { 4217 this.getEndorser().add(castToContactDetail(value)); 4218 } else if (name.equals("relatedArtifact")) { 4219 this.getRelatedArtifact().add(castToRelatedArtifact(value)); 4220 } else if (name.equals("library")) { 4221 this.getLibrary().add(castToCanonical(value)); 4222 } else if (name.equals("kind")) { 4223 value = new ActivityDefinitionKindEnumFactory().fromType(castToCode(value)); 4224 this.kind = (Enumeration) value; // Enumeration<ActivityDefinitionKind> 4225 } else if (name.equals("profile")) { 4226 this.profile = castToCanonical(value); // CanonicalType 4227 } else if (name.equals("code")) { 4228 this.code = castToCodeableConcept(value); // CodeableConcept 4229 } else if (name.equals("intent")) { 4230 value = new RequestIntentEnumFactory().fromType(castToCode(value)); 4231 this.intent = (Enumeration) value; // Enumeration<RequestIntent> 4232 } else if (name.equals("priority")) { 4233 value = new RequestPriorityEnumFactory().fromType(castToCode(value)); 4234 this.priority = (Enumeration) value; // Enumeration<RequestPriority> 4235 } else if (name.equals("doNotPerform")) { 4236 this.doNotPerform = castToBoolean(value); // BooleanType 4237 } else if (name.equals("timing[x]")) { 4238 this.timing = castToType(value); // Type 4239 } else if (name.equals("location")) { 4240 this.location = castToReference(value); // Reference 4241 } else if (name.equals("participant")) { 4242 this.getParticipant().add((ActivityDefinitionParticipantComponent) value); 4243 } else if (name.equals("product[x]")) { 4244 this.product = castToType(value); // Type 4245 } else if (name.equals("quantity")) { 4246 this.quantity = castToQuantity(value); // Quantity 4247 } else if (name.equals("dosage")) { 4248 this.getDosage().add(castToDosage(value)); 4249 } else if (name.equals("bodySite")) { 4250 this.getBodySite().add(castToCodeableConcept(value)); 4251 } else if (name.equals("specimenRequirement")) { 4252 this.getSpecimenRequirement().add(castToReference(value)); 4253 } else if (name.equals("observationRequirement")) { 4254 this.getObservationRequirement().add(castToReference(value)); 4255 } else if (name.equals("observationResultRequirement")) { 4256 this.getObservationResultRequirement().add(castToReference(value)); 4257 } else if (name.equals("transform")) { 4258 this.transform = castToCanonical(value); // CanonicalType 4259 } else if (name.equals("dynamicValue")) { 4260 this.getDynamicValue().add((ActivityDefinitionDynamicValueComponent) value); 4261 } else 4262 return super.setProperty(name, value); 4263 return value; 4264 } 4265 4266 @Override 4267 public Base makeProperty(int hash, String name) throws FHIRException { 4268 switch (hash) { 4269 case 116079: return getUrlElement(); 4270 case -1618432855: return addIdentifier(); 4271 case 351608024: return getVersionElement(); 4272 case 3373707: return getNameElement(); 4273 case 110371416: return getTitleElement(); 4274 case -2060497896: return getSubtitleElement(); 4275 case -892481550: return getStatusElement(); 4276 case -404562712: return getExperimentalElement(); 4277 case -573640748: return getSubject(); 4278 case -1867885268: return getSubject(); 4279 case 3076014: return getDateElement(); 4280 case 1447404028: return getPublisherElement(); 4281 case 951526432: return addContact(); 4282 case -1724546052: return getDescriptionElement(); 4283 case -669707736: return addUseContext(); 4284 case -507075711: return addJurisdiction(); 4285 case -220463842: return getPurposeElement(); 4286 case 111574433: return getUsageElement(); 4287 case 1522889671: return getCopyrightElement(); 4288 case 223539345: return getApprovalDateElement(); 4289 case -1687512484: return getLastReviewDateElement(); 4290 case -403934648: return getEffectivePeriod(); 4291 case 110546223: return addTopic(); 4292 case -1406328437: return addAuthor(); 4293 case -1307827859: return addEditor(); 4294 case -261190139: return addReviewer(); 4295 case 1740277666: return addEndorser(); 4296 case 666807069: return addRelatedArtifact(); 4297 case 166208699: return addLibraryElement(); 4298 case 3292052: return getKindElement(); 4299 case -309425751: return getProfileElement(); 4300 case 3059181: return getCode(); 4301 case -1183762788: return getIntentElement(); 4302 case -1165461084: return getPriorityElement(); 4303 case -1788508167: return getDoNotPerformElement(); 4304 case 164632566: return getTiming(); 4305 case -873664438: return getTiming(); 4306 case 1901043637: return getLocation(); 4307 case 767422259: return addParticipant(); 4308 case 1753005361: return getProduct(); 4309 case -309474065: return getProduct(); 4310 case -1285004149: return getQuantity(); 4311 case -1326018889: return addDosage(); 4312 case 1702620169: return addBodySite(); 4313 case 1498467355: return addSpecimenRequirement(); 4314 case 362354807: return addObservationRequirement(); 4315 case 395230490: return addObservationResultRequirement(); 4316 case 1052666732: return getTransformElement(); 4317 case 572625010: return addDynamicValue(); 4318 default: return super.makeProperty(hash, name); 4319 } 4320 4321 } 4322 4323 @Override 4324 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 4325 switch (hash) { 4326 case 116079: /*url*/ return new String[] {"uri"}; 4327 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 4328 case 351608024: /*version*/ return new String[] {"string"}; 4329 case 3373707: /*name*/ return new String[] {"string"}; 4330 case 110371416: /*title*/ return new String[] {"string"}; 4331 case -2060497896: /*subtitle*/ return new String[] {"string"}; 4332 case -892481550: /*status*/ return new String[] {"code"}; 4333 case -404562712: /*experimental*/ return new String[] {"boolean"}; 4334 case -1867885268: /*subject*/ return new String[] {"CodeableConcept", "Reference"}; 4335 case 3076014: /*date*/ return new String[] {"dateTime"}; 4336 case 1447404028: /*publisher*/ return new String[] {"string"}; 4337 case 951526432: /*contact*/ return new String[] {"ContactDetail"}; 4338 case -1724546052: /*description*/ return new String[] {"markdown"}; 4339 case -669707736: /*useContext*/ return new String[] {"UsageContext"}; 4340 case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"}; 4341 case -220463842: /*purpose*/ return new String[] {"markdown"}; 4342 case 111574433: /*usage*/ return new String[] {"string"}; 4343 case 1522889671: /*copyright*/ return new String[] {"markdown"}; 4344 case 223539345: /*approvalDate*/ return new String[] {"date"}; 4345 case -1687512484: /*lastReviewDate*/ return new String[] {"date"}; 4346 case -403934648: /*effectivePeriod*/ return new String[] {"Period"}; 4347 case 110546223: /*topic*/ return new String[] {"CodeableConcept"}; 4348 case -1406328437: /*author*/ return new String[] {"ContactDetail"}; 4349 case -1307827859: /*editor*/ return new String[] {"ContactDetail"}; 4350 case -261190139: /*reviewer*/ return new String[] {"ContactDetail"}; 4351 case 1740277666: /*endorser*/ return new String[] {"ContactDetail"}; 4352 case 666807069: /*relatedArtifact*/ return new String[] {"RelatedArtifact"}; 4353 case 166208699: /*library*/ return new String[] {"canonical"}; 4354 case 3292052: /*kind*/ return new String[] {"code"}; 4355 case -309425751: /*profile*/ return new String[] {"canonical"}; 4356 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 4357 case -1183762788: /*intent*/ return new String[] {"code"}; 4358 case -1165461084: /*priority*/ return new String[] {"code"}; 4359 case -1788508167: /*doNotPerform*/ return new String[] {"boolean"}; 4360 case -873664438: /*timing*/ return new String[] {"Timing", "dateTime", "Age", "Period", "Range", "Duration"}; 4361 case 1901043637: /*location*/ return new String[] {"Reference"}; 4362 case 767422259: /*participant*/ return new String[] {}; 4363 case -309474065: /*product*/ return new String[] {"Reference", "CodeableConcept"}; 4364 case -1285004149: /*quantity*/ return new String[] {"SimpleQuantity"}; 4365 case -1326018889: /*dosage*/ return new String[] {"Dosage"}; 4366 case 1702620169: /*bodySite*/ return new String[] {"CodeableConcept"}; 4367 case 1498467355: /*specimenRequirement*/ return new String[] {"Reference"}; 4368 case 362354807: /*observationRequirement*/ return new String[] {"Reference"}; 4369 case 395230490: /*observationResultRequirement*/ return new String[] {"Reference"}; 4370 case 1052666732: /*transform*/ return new String[] {"canonical"}; 4371 case 572625010: /*dynamicValue*/ return new String[] {}; 4372 default: return super.getTypesForProperty(hash, name); 4373 } 4374 4375 } 4376 4377 @Override 4378 public Base addChild(String name) throws FHIRException { 4379 if (name.equals("url")) { 4380 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.url"); 4381 } 4382 else if (name.equals("identifier")) { 4383 return addIdentifier(); 4384 } 4385 else if (name.equals("version")) { 4386 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.version"); 4387 } 4388 else if (name.equals("name")) { 4389 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.name"); 4390 } 4391 else if (name.equals("title")) { 4392 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.title"); 4393 } 4394 else if (name.equals("subtitle")) { 4395 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.subtitle"); 4396 } 4397 else if (name.equals("status")) { 4398 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.status"); 4399 } 4400 else if (name.equals("experimental")) { 4401 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.experimental"); 4402 } 4403 else if (name.equals("subjectCodeableConcept")) { 4404 this.subject = new CodeableConcept(); 4405 return this.subject; 4406 } 4407 else if (name.equals("subjectReference")) { 4408 this.subject = new Reference(); 4409 return this.subject; 4410 } 4411 else if (name.equals("date")) { 4412 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.date"); 4413 } 4414 else if (name.equals("publisher")) { 4415 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.publisher"); 4416 } 4417 else if (name.equals("contact")) { 4418 return addContact(); 4419 } 4420 else if (name.equals("description")) { 4421 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.description"); 4422 } 4423 else if (name.equals("useContext")) { 4424 return addUseContext(); 4425 } 4426 else if (name.equals("jurisdiction")) { 4427 return addJurisdiction(); 4428 } 4429 else if (name.equals("purpose")) { 4430 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.purpose"); 4431 } 4432 else if (name.equals("usage")) { 4433 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.usage"); 4434 } 4435 else if (name.equals("copyright")) { 4436 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.copyright"); 4437 } 4438 else if (name.equals("approvalDate")) { 4439 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.approvalDate"); 4440 } 4441 else if (name.equals("lastReviewDate")) { 4442 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.lastReviewDate"); 4443 } 4444 else if (name.equals("effectivePeriod")) { 4445 this.effectivePeriod = new Period(); 4446 return this.effectivePeriod; 4447 } 4448 else if (name.equals("topic")) { 4449 return addTopic(); 4450 } 4451 else if (name.equals("author")) { 4452 return addAuthor(); 4453 } 4454 else if (name.equals("editor")) { 4455 return addEditor(); 4456 } 4457 else if (name.equals("reviewer")) { 4458 return addReviewer(); 4459 } 4460 else if (name.equals("endorser")) { 4461 return addEndorser(); 4462 } 4463 else if (name.equals("relatedArtifact")) { 4464 return addRelatedArtifact(); 4465 } 4466 else if (name.equals("library")) { 4467 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.library"); 4468 } 4469 else if (name.equals("kind")) { 4470 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.kind"); 4471 } 4472 else if (name.equals("profile")) { 4473 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.profile"); 4474 } 4475 else if (name.equals("code")) { 4476 this.code = new CodeableConcept(); 4477 return this.code; 4478 } 4479 else if (name.equals("intent")) { 4480 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.intent"); 4481 } 4482 else if (name.equals("priority")) { 4483 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.priority"); 4484 } 4485 else if (name.equals("doNotPerform")) { 4486 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.doNotPerform"); 4487 } 4488 else if (name.equals("timingTiming")) { 4489 this.timing = new Timing(); 4490 return this.timing; 4491 } 4492 else if (name.equals("timingDateTime")) { 4493 this.timing = new DateTimeType(); 4494 return this.timing; 4495 } 4496 else if (name.equals("timingAge")) { 4497 this.timing = new Age(); 4498 return this.timing; 4499 } 4500 else if (name.equals("timingPeriod")) { 4501 this.timing = new Period(); 4502 return this.timing; 4503 } 4504 else if (name.equals("timingRange")) { 4505 this.timing = new Range(); 4506 return this.timing; 4507 } 4508 else if (name.equals("timingDuration")) { 4509 this.timing = new Duration(); 4510 return this.timing; 4511 } 4512 else if (name.equals("location")) { 4513 this.location = new Reference(); 4514 return this.location; 4515 } 4516 else if (name.equals("participant")) { 4517 return addParticipant(); 4518 } 4519 else if (name.equals("productReference")) { 4520 this.product = new Reference(); 4521 return this.product; 4522 } 4523 else if (name.equals("productCodeableConcept")) { 4524 this.product = new CodeableConcept(); 4525 return this.product; 4526 } 4527 else if (name.equals("quantity")) { 4528 this.quantity = new Quantity(); 4529 return this.quantity; 4530 } 4531 else if (name.equals("dosage")) { 4532 return addDosage(); 4533 } 4534 else if (name.equals("bodySite")) { 4535 return addBodySite(); 4536 } 4537 else if (name.equals("specimenRequirement")) { 4538 return addSpecimenRequirement(); 4539 } 4540 else if (name.equals("observationRequirement")) { 4541 return addObservationRequirement(); 4542 } 4543 else if (name.equals("observationResultRequirement")) { 4544 return addObservationResultRequirement(); 4545 } 4546 else if (name.equals("transform")) { 4547 throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.transform"); 4548 } 4549 else if (name.equals("dynamicValue")) { 4550 return addDynamicValue(); 4551 } 4552 else 4553 return super.addChild(name); 4554 } 4555 4556 public String fhirType() { 4557 return "ActivityDefinition"; 4558 4559 } 4560 4561 public ActivityDefinition copy() { 4562 ActivityDefinition dst = new ActivityDefinition(); 4563 copyValues(dst); 4564 return dst; 4565 } 4566 4567 public void copyValues(ActivityDefinition dst) { 4568 super.copyValues(dst); 4569 dst.url = url == null ? null : url.copy(); 4570 if (identifier != null) { 4571 dst.identifier = new ArrayList<Identifier>(); 4572 for (Identifier i : identifier) 4573 dst.identifier.add(i.copy()); 4574 }; 4575 dst.version = version == null ? null : version.copy(); 4576 dst.name = name == null ? null : name.copy(); 4577 dst.title = title == null ? null : title.copy(); 4578 dst.subtitle = subtitle == null ? null : subtitle.copy(); 4579 dst.status = status == null ? null : status.copy(); 4580 dst.experimental = experimental == null ? null : experimental.copy(); 4581 dst.subject = subject == null ? null : subject.copy(); 4582 dst.date = date == null ? null : date.copy(); 4583 dst.publisher = publisher == null ? null : publisher.copy(); 4584 if (contact != null) { 4585 dst.contact = new ArrayList<ContactDetail>(); 4586 for (ContactDetail i : contact) 4587 dst.contact.add(i.copy()); 4588 }; 4589 dst.description = description == null ? null : description.copy(); 4590 if (useContext != null) { 4591 dst.useContext = new ArrayList<UsageContext>(); 4592 for (UsageContext i : useContext) 4593 dst.useContext.add(i.copy()); 4594 }; 4595 if (jurisdiction != null) { 4596 dst.jurisdiction = new ArrayList<CodeableConcept>(); 4597 for (CodeableConcept i : jurisdiction) 4598 dst.jurisdiction.add(i.copy()); 4599 }; 4600 dst.purpose = purpose == null ? null : purpose.copy(); 4601 dst.usage = usage == null ? null : usage.copy(); 4602 dst.copyright = copyright == null ? null : copyright.copy(); 4603 dst.approvalDate = approvalDate == null ? null : approvalDate.copy(); 4604 dst.lastReviewDate = lastReviewDate == null ? null : lastReviewDate.copy(); 4605 dst.effectivePeriod = effectivePeriod == null ? null : effectivePeriod.copy(); 4606 if (topic != null) { 4607 dst.topic = new ArrayList<CodeableConcept>(); 4608 for (CodeableConcept i : topic) 4609 dst.topic.add(i.copy()); 4610 }; 4611 if (author != null) { 4612 dst.author = new ArrayList<ContactDetail>(); 4613 for (ContactDetail i : author) 4614 dst.author.add(i.copy()); 4615 }; 4616 if (editor != null) { 4617 dst.editor = new ArrayList<ContactDetail>(); 4618 for (ContactDetail i : editor) 4619 dst.editor.add(i.copy()); 4620 }; 4621 if (reviewer != null) { 4622 dst.reviewer = new ArrayList<ContactDetail>(); 4623 for (ContactDetail i : reviewer) 4624 dst.reviewer.add(i.copy()); 4625 }; 4626 if (endorser != null) { 4627 dst.endorser = new ArrayList<ContactDetail>(); 4628 for (ContactDetail i : endorser) 4629 dst.endorser.add(i.copy()); 4630 }; 4631 if (relatedArtifact != null) { 4632 dst.relatedArtifact = new ArrayList<RelatedArtifact>(); 4633 for (RelatedArtifact i : relatedArtifact) 4634 dst.relatedArtifact.add(i.copy()); 4635 }; 4636 if (library != null) { 4637 dst.library = new ArrayList<CanonicalType>(); 4638 for (CanonicalType i : library) 4639 dst.library.add(i.copy()); 4640 }; 4641 dst.kind = kind == null ? null : kind.copy(); 4642 dst.profile = profile == null ? null : profile.copy(); 4643 dst.code = code == null ? null : code.copy(); 4644 dst.intent = intent == null ? null : intent.copy(); 4645 dst.priority = priority == null ? null : priority.copy(); 4646 dst.doNotPerform = doNotPerform == null ? null : doNotPerform.copy(); 4647 dst.timing = timing == null ? null : timing.copy(); 4648 dst.location = location == null ? null : location.copy(); 4649 if (participant != null) { 4650 dst.participant = new ArrayList<ActivityDefinitionParticipantComponent>(); 4651 for (ActivityDefinitionParticipantComponent i : participant) 4652 dst.participant.add(i.copy()); 4653 }; 4654 dst.product = product == null ? null : product.copy(); 4655 dst.quantity = quantity == null ? null : quantity.copy(); 4656 if (dosage != null) { 4657 dst.dosage = new ArrayList<Dosage>(); 4658 for (Dosage i : dosage) 4659 dst.dosage.add(i.copy()); 4660 }; 4661 if (bodySite != null) { 4662 dst.bodySite = new ArrayList<CodeableConcept>(); 4663 for (CodeableConcept i : bodySite) 4664 dst.bodySite.add(i.copy()); 4665 }; 4666 if (specimenRequirement != null) { 4667 dst.specimenRequirement = new ArrayList<Reference>(); 4668 for (Reference i : specimenRequirement) 4669 dst.specimenRequirement.add(i.copy()); 4670 }; 4671 if (observationRequirement != null) { 4672 dst.observationRequirement = new ArrayList<Reference>(); 4673 for (Reference i : observationRequirement) 4674 dst.observationRequirement.add(i.copy()); 4675 }; 4676 if (observationResultRequirement != null) { 4677 dst.observationResultRequirement = new ArrayList<Reference>(); 4678 for (Reference i : observationResultRequirement) 4679 dst.observationResultRequirement.add(i.copy()); 4680 }; 4681 dst.transform = transform == null ? null : transform.copy(); 4682 if (dynamicValue != null) { 4683 dst.dynamicValue = new ArrayList<ActivityDefinitionDynamicValueComponent>(); 4684 for (ActivityDefinitionDynamicValueComponent i : dynamicValue) 4685 dst.dynamicValue.add(i.copy()); 4686 }; 4687 } 4688 4689 protected ActivityDefinition typedCopy() { 4690 return copy(); 4691 } 4692 4693 @Override 4694 public boolean equalsDeep(Base other_) { 4695 if (!super.equalsDeep(other_)) 4696 return false; 4697 if (!(other_ instanceof ActivityDefinition)) 4698 return false; 4699 ActivityDefinition o = (ActivityDefinition) other_; 4700 return compareDeep(identifier, o.identifier, true) && compareDeep(subtitle, o.subtitle, true) && compareDeep(subject, o.subject, true) 4701 && compareDeep(purpose, o.purpose, true) && compareDeep(usage, o.usage, true) && compareDeep(copyright, o.copyright, true) 4702 && compareDeep(approvalDate, o.approvalDate, true) && compareDeep(lastReviewDate, o.lastReviewDate, true) 4703 && compareDeep(effectivePeriod, o.effectivePeriod, true) && compareDeep(topic, o.topic, true) && compareDeep(author, o.author, true) 4704 && compareDeep(editor, o.editor, true) && compareDeep(reviewer, o.reviewer, true) && compareDeep(endorser, o.endorser, true) 4705 && compareDeep(relatedArtifact, o.relatedArtifact, true) && compareDeep(library, o.library, true) 4706 && compareDeep(kind, o.kind, true) && compareDeep(profile, o.profile, true) && compareDeep(code, o.code, true) 4707 && compareDeep(intent, o.intent, true) && compareDeep(priority, o.priority, true) && compareDeep(doNotPerform, o.doNotPerform, true) 4708 && compareDeep(timing, o.timing, true) && compareDeep(location, o.location, true) && compareDeep(participant, o.participant, true) 4709 && compareDeep(product, o.product, true) && compareDeep(quantity, o.quantity, true) && compareDeep(dosage, o.dosage, true) 4710 && compareDeep(bodySite, o.bodySite, true) && compareDeep(specimenRequirement, o.specimenRequirement, true) 4711 && compareDeep(observationRequirement, o.observationRequirement, true) && compareDeep(observationResultRequirement, o.observationResultRequirement, true) 4712 && compareDeep(transform, o.transform, true) && compareDeep(dynamicValue, o.dynamicValue, true) 4713 ; 4714 } 4715 4716 @Override 4717 public boolean equalsShallow(Base other_) { 4718 if (!super.equalsShallow(other_)) 4719 return false; 4720 if (!(other_ instanceof ActivityDefinition)) 4721 return false; 4722 ActivityDefinition o = (ActivityDefinition) other_; 4723 return compareValues(subtitle, o.subtitle, true) && compareValues(purpose, o.purpose, true) && compareValues(usage, o.usage, true) 4724 && compareValues(copyright, o.copyright, true) && compareValues(approvalDate, o.approvalDate, true) 4725 && compareValues(lastReviewDate, o.lastReviewDate, true) && compareValues(kind, o.kind, true) && compareValues(intent, o.intent, true) 4726 && compareValues(priority, o.priority, true) && compareValues(doNotPerform, o.doNotPerform, true); 4727 } 4728 4729 public boolean isEmpty() { 4730 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, subtitle, subject 4731 , purpose, usage, copyright, approvalDate, lastReviewDate, effectivePeriod, topic 4732 , author, editor, reviewer, endorser, relatedArtifact, library, kind, profile 4733 , code, intent, priority, doNotPerform, timing, location, participant, product 4734 , quantity, dosage, bodySite, specimenRequirement, observationRequirement, observationResultRequirement 4735 , transform, dynamicValue); 4736 } 4737 4738 @Override 4739 public ResourceType getResourceType() { 4740 return ResourceType.ActivityDefinition; 4741 } 4742 4743 /** 4744 * Search parameter: <b>date</b> 4745 * <p> 4746 * Description: <b>The activity definition publication date</b><br> 4747 * Type: <b>date</b><br> 4748 * Path: <b>ActivityDefinition.date</b><br> 4749 * </p> 4750 */ 4751 @SearchParamDefinition(name="date", path="ActivityDefinition.date", description="The activity definition publication date", type="date" ) 4752 public static final String SP_DATE = "date"; 4753 /** 4754 * <b>Fluent Client</b> search parameter constant for <b>date</b> 4755 * <p> 4756 * Description: <b>The activity definition publication date</b><br> 4757 * Type: <b>date</b><br> 4758 * Path: <b>ActivityDefinition.date</b><br> 4759 * </p> 4760 */ 4761 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 4762 4763 /** 4764 * Search parameter: <b>identifier</b> 4765 * <p> 4766 * Description: <b>External identifier for the activity definition</b><br> 4767 * Type: <b>token</b><br> 4768 * Path: <b>ActivityDefinition.identifier</b><br> 4769 * </p> 4770 */ 4771 @SearchParamDefinition(name="identifier", path="ActivityDefinition.identifier", description="External identifier for the activity definition", type="token" ) 4772 public static final String SP_IDENTIFIER = "identifier"; 4773 /** 4774 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 4775 * <p> 4776 * Description: <b>External identifier for the activity definition</b><br> 4777 * Type: <b>token</b><br> 4778 * Path: <b>ActivityDefinition.identifier</b><br> 4779 * </p> 4780 */ 4781 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 4782 4783 /** 4784 * Search parameter: <b>successor</b> 4785 * <p> 4786 * Description: <b>What resource is being referenced</b><br> 4787 * Type: <b>reference</b><br> 4788 * Path: <b>ActivityDefinition.relatedArtifact.resource</b><br> 4789 * </p> 4790 */ 4791 @SearchParamDefinition(name="successor", path="ActivityDefinition.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference" ) 4792 public static final String SP_SUCCESSOR = "successor"; 4793 /** 4794 * <b>Fluent Client</b> search parameter constant for <b>successor</b> 4795 * <p> 4796 * Description: <b>What resource is being referenced</b><br> 4797 * Type: <b>reference</b><br> 4798 * Path: <b>ActivityDefinition.relatedArtifact.resource</b><br> 4799 * </p> 4800 */ 4801 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUCCESSOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUCCESSOR); 4802 4803/** 4804 * Constant for fluent queries to be used to add include statements. Specifies 4805 * the path value of "<b>ActivityDefinition:successor</b>". 4806 */ 4807 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUCCESSOR = new ca.uhn.fhir.model.api.Include("ActivityDefinition:successor").toLocked(); 4808 4809 /** 4810 * Search parameter: <b>context-type-value</b> 4811 * <p> 4812 * Description: <b>A use context type and value assigned to the activity definition</b><br> 4813 * Type: <b>composite</b><br> 4814 * Path: <b></b><br> 4815 * </p> 4816 */ 4817 @SearchParamDefinition(name="context-type-value", path="ActivityDefinition.useContext", description="A use context type and value assigned to the activity definition", type="composite", compositeOf={"context-type", "context"} ) 4818 public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; 4819 /** 4820 * <b>Fluent Client</b> search parameter constant for <b>context-type-value</b> 4821 * <p> 4822 * Description: <b>A use context type and value assigned to the activity definition</b><br> 4823 * Type: <b>composite</b><br> 4824 * Path: <b></b><br> 4825 * </p> 4826 */ 4827 public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam> CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam>(SP_CONTEXT_TYPE_VALUE); 4828 4829 /** 4830 * Search parameter: <b>jurisdiction</b> 4831 * <p> 4832 * Description: <b>Intended jurisdiction for the activity definition</b><br> 4833 * Type: <b>token</b><br> 4834 * Path: <b>ActivityDefinition.jurisdiction</b><br> 4835 * </p> 4836 */ 4837 @SearchParamDefinition(name="jurisdiction", path="ActivityDefinition.jurisdiction", description="Intended jurisdiction for the activity definition", type="token" ) 4838 public static final String SP_JURISDICTION = "jurisdiction"; 4839 /** 4840 * <b>Fluent Client</b> search parameter constant for <b>jurisdiction</b> 4841 * <p> 4842 * Description: <b>Intended jurisdiction for the activity definition</b><br> 4843 * Type: <b>token</b><br> 4844 * Path: <b>ActivityDefinition.jurisdiction</b><br> 4845 * </p> 4846 */ 4847 public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION); 4848 4849 /** 4850 * Search parameter: <b>description</b> 4851 * <p> 4852 * Description: <b>The description of the activity definition</b><br> 4853 * Type: <b>string</b><br> 4854 * Path: <b>ActivityDefinition.description</b><br> 4855 * </p> 4856 */ 4857 @SearchParamDefinition(name="description", path="ActivityDefinition.description", description="The description of the activity definition", type="string" ) 4858 public static final String SP_DESCRIPTION = "description"; 4859 /** 4860 * <b>Fluent Client</b> search parameter constant for <b>description</b> 4861 * <p> 4862 * Description: <b>The description of the activity definition</b><br> 4863 * Type: <b>string</b><br> 4864 * Path: <b>ActivityDefinition.description</b><br> 4865 * </p> 4866 */ 4867 public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); 4868 4869 /** 4870 * Search parameter: <b>derived-from</b> 4871 * <p> 4872 * Description: <b>What resource is being referenced</b><br> 4873 * Type: <b>reference</b><br> 4874 * Path: <b>ActivityDefinition.relatedArtifact.resource</b><br> 4875 * </p> 4876 */ 4877 @SearchParamDefinition(name="derived-from", path="ActivityDefinition.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference" ) 4878 public static final String SP_DERIVED_FROM = "derived-from"; 4879 /** 4880 * <b>Fluent Client</b> search parameter constant for <b>derived-from</b> 4881 * <p> 4882 * Description: <b>What resource is being referenced</b><br> 4883 * Type: <b>reference</b><br> 4884 * Path: <b>ActivityDefinition.relatedArtifact.resource</b><br> 4885 * </p> 4886 */ 4887 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DERIVED_FROM = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DERIVED_FROM); 4888 4889/** 4890 * Constant for fluent queries to be used to add include statements. Specifies 4891 * the path value of "<b>ActivityDefinition:derived-from</b>". 4892 */ 4893 public static final ca.uhn.fhir.model.api.Include INCLUDE_DERIVED_FROM = new ca.uhn.fhir.model.api.Include("ActivityDefinition:derived-from").toLocked(); 4894 4895 /** 4896 * Search parameter: <b>context-type</b> 4897 * <p> 4898 * Description: <b>A type of use context assigned to the activity definition</b><br> 4899 * Type: <b>token</b><br> 4900 * Path: <b>ActivityDefinition.useContext.code</b><br> 4901 * </p> 4902 */ 4903 @SearchParamDefinition(name="context-type", path="ActivityDefinition.useContext.code", description="A type of use context assigned to the activity definition", type="token" ) 4904 public static final String SP_CONTEXT_TYPE = "context-type"; 4905 /** 4906 * <b>Fluent Client</b> search parameter constant for <b>context-type</b> 4907 * <p> 4908 * Description: <b>A type of use context assigned to the activity definition</b><br> 4909 * Type: <b>token</b><br> 4910 * Path: <b>ActivityDefinition.useContext.code</b><br> 4911 * </p> 4912 */ 4913 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); 4914 4915 /** 4916 * Search parameter: <b>predecessor</b> 4917 * <p> 4918 * Description: <b>What resource is being referenced</b><br> 4919 * Type: <b>reference</b><br> 4920 * Path: <b>ActivityDefinition.relatedArtifact.resource</b><br> 4921 * </p> 4922 */ 4923 @SearchParamDefinition(name="predecessor", path="ActivityDefinition.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference" ) 4924 public static final String SP_PREDECESSOR = "predecessor"; 4925 /** 4926 * <b>Fluent Client</b> search parameter constant for <b>predecessor</b> 4927 * <p> 4928 * Description: <b>What resource is being referenced</b><br> 4929 * Type: <b>reference</b><br> 4930 * Path: <b>ActivityDefinition.relatedArtifact.resource</b><br> 4931 * </p> 4932 */ 4933 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PREDECESSOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PREDECESSOR); 4934 4935/** 4936 * Constant for fluent queries to be used to add include statements. Specifies 4937 * the path value of "<b>ActivityDefinition:predecessor</b>". 4938 */ 4939 public static final ca.uhn.fhir.model.api.Include INCLUDE_PREDECESSOR = new ca.uhn.fhir.model.api.Include("ActivityDefinition:predecessor").toLocked(); 4940 4941 /** 4942 * Search parameter: <b>title</b> 4943 * <p> 4944 * Description: <b>The human-friendly name of the activity definition</b><br> 4945 * Type: <b>string</b><br> 4946 * Path: <b>ActivityDefinition.title</b><br> 4947 * </p> 4948 */ 4949 @SearchParamDefinition(name="title", path="ActivityDefinition.title", description="The human-friendly name of the activity definition", type="string" ) 4950 public static final String SP_TITLE = "title"; 4951 /** 4952 * <b>Fluent Client</b> search parameter constant for <b>title</b> 4953 * <p> 4954 * Description: <b>The human-friendly name of the activity definition</b><br> 4955 * Type: <b>string</b><br> 4956 * Path: <b>ActivityDefinition.title</b><br> 4957 * </p> 4958 */ 4959 public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE); 4960 4961 /** 4962 * Search parameter: <b>composed-of</b> 4963 * <p> 4964 * Description: <b>What resource is being referenced</b><br> 4965 * Type: <b>reference</b><br> 4966 * Path: <b>ActivityDefinition.relatedArtifact.resource</b><br> 4967 * </p> 4968 */ 4969 @SearchParamDefinition(name="composed-of", path="ActivityDefinition.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference" ) 4970 public static final String SP_COMPOSED_OF = "composed-of"; 4971 /** 4972 * <b>Fluent Client</b> search parameter constant for <b>composed-of</b> 4973 * <p> 4974 * Description: <b>What resource is being referenced</b><br> 4975 * Type: <b>reference</b><br> 4976 * Path: <b>ActivityDefinition.relatedArtifact.resource</b><br> 4977 * </p> 4978 */ 4979 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam COMPOSED_OF = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_COMPOSED_OF); 4980 4981/** 4982 * Constant for fluent queries to be used to add include statements. Specifies 4983 * the path value of "<b>ActivityDefinition:composed-of</b>". 4984 */ 4985 public static final ca.uhn.fhir.model.api.Include INCLUDE_COMPOSED_OF = new ca.uhn.fhir.model.api.Include("ActivityDefinition:composed-of").toLocked(); 4986 4987 /** 4988 * Search parameter: <b>version</b> 4989 * <p> 4990 * Description: <b>The business version of the activity definition</b><br> 4991 * Type: <b>token</b><br> 4992 * Path: <b>ActivityDefinition.version</b><br> 4993 * </p> 4994 */ 4995 @SearchParamDefinition(name="version", path="ActivityDefinition.version", description="The business version of the activity definition", type="token" ) 4996 public static final String SP_VERSION = "version"; 4997 /** 4998 * <b>Fluent Client</b> search parameter constant for <b>version</b> 4999 * <p> 5000 * Description: <b>The business version of the activity definition</b><br> 5001 * Type: <b>token</b><br> 5002 * Path: <b>ActivityDefinition.version</b><br> 5003 * </p> 5004 */ 5005 public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); 5006 5007 /** 5008 * Search parameter: <b>url</b> 5009 * <p> 5010 * Description: <b>The uri that identifies the activity definition</b><br> 5011 * Type: <b>uri</b><br> 5012 * Path: <b>ActivityDefinition.url</b><br> 5013 * </p> 5014 */ 5015 @SearchParamDefinition(name="url", path="ActivityDefinition.url", description="The uri that identifies the activity definition", type="uri" ) 5016 public static final String SP_URL = "url"; 5017 /** 5018 * <b>Fluent Client</b> search parameter constant for <b>url</b> 5019 * <p> 5020 * Description: <b>The uri that identifies the activity definition</b><br> 5021 * Type: <b>uri</b><br> 5022 * Path: <b>ActivityDefinition.url</b><br> 5023 * </p> 5024 */ 5025 public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL); 5026 5027 /** 5028 * Search parameter: <b>context-quantity</b> 5029 * <p> 5030 * Description: <b>A quantity- or range-valued use context assigned to the activity definition</b><br> 5031 * Type: <b>quantity</b><br> 5032 * Path: <b>ActivityDefinition.useContext.valueQuantity, ActivityDefinition.useContext.valueRange</b><br> 5033 * </p> 5034 */ 5035 @SearchParamDefinition(name="context-quantity", path="(ActivityDefinition.useContext.value as Quantity) | (ActivityDefinition.useContext.value as Range)", description="A quantity- or range-valued use context assigned to the activity definition", type="quantity" ) 5036 public static final String SP_CONTEXT_QUANTITY = "context-quantity"; 5037 /** 5038 * <b>Fluent Client</b> search parameter constant for <b>context-quantity</b> 5039 * <p> 5040 * Description: <b>A quantity- or range-valued use context assigned to the activity definition</b><br> 5041 * Type: <b>quantity</b><br> 5042 * Path: <b>ActivityDefinition.useContext.valueQuantity, ActivityDefinition.useContext.valueRange</b><br> 5043 * </p> 5044 */ 5045 public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); 5046 5047 /** 5048 * Search parameter: <b>effective</b> 5049 * <p> 5050 * Description: <b>The time during which the activity definition is intended to be in use</b><br> 5051 * Type: <b>date</b><br> 5052 * Path: <b>ActivityDefinition.effectivePeriod</b><br> 5053 * </p> 5054 */ 5055 @SearchParamDefinition(name="effective", path="ActivityDefinition.effectivePeriod", description="The time during which the activity definition is intended to be in use", type="date" ) 5056 public static final String SP_EFFECTIVE = "effective"; 5057 /** 5058 * <b>Fluent Client</b> search parameter constant for <b>effective</b> 5059 * <p> 5060 * Description: <b>The time during which the activity definition is intended to be in use</b><br> 5061 * Type: <b>date</b><br> 5062 * Path: <b>ActivityDefinition.effectivePeriod</b><br> 5063 * </p> 5064 */ 5065 public static final ca.uhn.fhir.rest.gclient.DateClientParam EFFECTIVE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_EFFECTIVE); 5066 5067 /** 5068 * Search parameter: <b>depends-on</b> 5069 * <p> 5070 * Description: <b>What resource is being referenced</b><br> 5071 * Type: <b>reference</b><br> 5072 * Path: <b>ActivityDefinition.relatedArtifact.resource, ActivityDefinition.library</b><br> 5073 * </p> 5074 */ 5075 @SearchParamDefinition(name="depends-on", path="ActivityDefinition.relatedArtifact.where(type='depends-on').resource | ActivityDefinition.library", description="What resource is being referenced", type="reference" ) 5076 public static final String SP_DEPENDS_ON = "depends-on"; 5077 /** 5078 * <b>Fluent Client</b> search parameter constant for <b>depends-on</b> 5079 * <p> 5080 * Description: <b>What resource is being referenced</b><br> 5081 * Type: <b>reference</b><br> 5082 * Path: <b>ActivityDefinition.relatedArtifact.resource, ActivityDefinition.library</b><br> 5083 * </p> 5084 */ 5085 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DEPENDS_ON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DEPENDS_ON); 5086 5087/** 5088 * Constant for fluent queries to be used to add include statements. Specifies 5089 * the path value of "<b>ActivityDefinition:depends-on</b>". 5090 */ 5091 public static final ca.uhn.fhir.model.api.Include INCLUDE_DEPENDS_ON = new ca.uhn.fhir.model.api.Include("ActivityDefinition:depends-on").toLocked(); 5092 5093 /** 5094 * Search parameter: <b>name</b> 5095 * <p> 5096 * Description: <b>Computationally friendly name of the activity definition</b><br> 5097 * Type: <b>string</b><br> 5098 * Path: <b>ActivityDefinition.name</b><br> 5099 * </p> 5100 */ 5101 @SearchParamDefinition(name="name", path="ActivityDefinition.name", description="Computationally friendly name of the activity definition", type="string" ) 5102 public static final String SP_NAME = "name"; 5103 /** 5104 * <b>Fluent Client</b> search parameter constant for <b>name</b> 5105 * <p> 5106 * Description: <b>Computationally friendly name of the activity definition</b><br> 5107 * Type: <b>string</b><br> 5108 * Path: <b>ActivityDefinition.name</b><br> 5109 * </p> 5110 */ 5111 public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); 5112 5113 /** 5114 * Search parameter: <b>context</b> 5115 * <p> 5116 * Description: <b>A use context assigned to the activity definition</b><br> 5117 * Type: <b>token</b><br> 5118 * Path: <b>ActivityDefinition.useContext.valueCodeableConcept</b><br> 5119 * </p> 5120 */ 5121 @SearchParamDefinition(name="context", path="(ActivityDefinition.useContext.value as CodeableConcept)", description="A use context assigned to the activity definition", type="token" ) 5122 public static final String SP_CONTEXT = "context"; 5123 /** 5124 * <b>Fluent Client</b> search parameter constant for <b>context</b> 5125 * <p> 5126 * Description: <b>A use context assigned to the activity definition</b><br> 5127 * Type: <b>token</b><br> 5128 * Path: <b>ActivityDefinition.useContext.valueCodeableConcept</b><br> 5129 * </p> 5130 */ 5131 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); 5132 5133 /** 5134 * Search parameter: <b>publisher</b> 5135 * <p> 5136 * Description: <b>Name of the publisher of the activity definition</b><br> 5137 * Type: <b>string</b><br> 5138 * Path: <b>ActivityDefinition.publisher</b><br> 5139 * </p> 5140 */ 5141 @SearchParamDefinition(name="publisher", path="ActivityDefinition.publisher", description="Name of the publisher of the activity definition", type="string" ) 5142 public static final String SP_PUBLISHER = "publisher"; 5143 /** 5144 * <b>Fluent Client</b> search parameter constant for <b>publisher</b> 5145 * <p> 5146 * Description: <b>Name of the publisher of the activity definition</b><br> 5147 * Type: <b>string</b><br> 5148 * Path: <b>ActivityDefinition.publisher</b><br> 5149 * </p> 5150 */ 5151 public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); 5152 5153 /** 5154 * Search parameter: <b>topic</b> 5155 * <p> 5156 * Description: <b>Topics associated with the module</b><br> 5157 * Type: <b>token</b><br> 5158 * Path: <b>ActivityDefinition.topic</b><br> 5159 * </p> 5160 */ 5161 @SearchParamDefinition(name="topic", path="ActivityDefinition.topic", description="Topics associated with the module", type="token" ) 5162 public static final String SP_TOPIC = "topic"; 5163 /** 5164 * <b>Fluent Client</b> search parameter constant for <b>topic</b> 5165 * <p> 5166 * Description: <b>Topics associated with the module</b><br> 5167 * Type: <b>token</b><br> 5168 * Path: <b>ActivityDefinition.topic</b><br> 5169 * </p> 5170 */ 5171 public static final ca.uhn.fhir.rest.gclient.TokenClientParam TOPIC = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TOPIC); 5172 5173 /** 5174 * Search parameter: <b>context-type-quantity</b> 5175 * <p> 5176 * Description: <b>A use context type and quantity- or range-based value assigned to the activity definition</b><br> 5177 * Type: <b>composite</b><br> 5178 * Path: <b></b><br> 5179 * </p> 5180 */ 5181 @SearchParamDefinition(name="context-type-quantity", path="ActivityDefinition.useContext", description="A use context type and quantity- or range-based value assigned to the activity definition", type="composite", compositeOf={"context-type", "context-quantity"} ) 5182 public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; 5183 /** 5184 * <b>Fluent Client</b> search parameter constant for <b>context-type-quantity</b> 5185 * <p> 5186 * Description: <b>A use context type and quantity- or range-based value assigned to the activity definition</b><br> 5187 * Type: <b>composite</b><br> 5188 * Path: <b></b><br> 5189 * </p> 5190 */ 5191 public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam> CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam>(SP_CONTEXT_TYPE_QUANTITY); 5192 5193 /** 5194 * Search parameter: <b>status</b> 5195 * <p> 5196 * Description: <b>The current status of the activity definition</b><br> 5197 * Type: <b>token</b><br> 5198 * Path: <b>ActivityDefinition.status</b><br> 5199 * </p> 5200 */ 5201 @SearchParamDefinition(name="status", path="ActivityDefinition.status", description="The current status of the activity definition", type="token" ) 5202 public static final String SP_STATUS = "status"; 5203 /** 5204 * <b>Fluent Client</b> search parameter constant for <b>status</b> 5205 * <p> 5206 * Description: <b>The current status of the activity definition</b><br> 5207 * Type: <b>token</b><br> 5208 * Path: <b>ActivityDefinition.status</b><br> 5209 * </p> 5210 */ 5211 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 5212 5213 5214} 5215