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