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 * A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification. 072 */ 073@ResourceDef(name="TestScript", profile="http://hl7.org/fhir/StructureDefinition/TestScript") 074public class TestScript extends CanonicalResource { 075 076 public enum AssertionDirectionType { 077 /** 078 * The assertion is evaluated on the response. This is the default value. 079 */ 080 RESPONSE, 081 /** 082 * The assertion is evaluated on the request. 083 */ 084 REQUEST, 085 /** 086 * added to help the parsers with the generic types 087 */ 088 NULL; 089 public static AssertionDirectionType fromCode(String codeString) throws FHIRException { 090 if (codeString == null || "".equals(codeString)) 091 return null; 092 if ("response".equals(codeString)) 093 return RESPONSE; 094 if ("request".equals(codeString)) 095 return REQUEST; 096 if (Configuration.isAcceptInvalidEnums()) 097 return null; 098 else 099 throw new FHIRException("Unknown AssertionDirectionType code '"+codeString+"'"); 100 } 101 public String toCode() { 102 switch (this) { 103 case RESPONSE: return "response"; 104 case REQUEST: return "request"; 105 default: return "?"; 106 } 107 } 108 public String getSystem() { 109 switch (this) { 110 case RESPONSE: return "http://hl7.org/fhir/assert-direction-codes"; 111 case REQUEST: return "http://hl7.org/fhir/assert-direction-codes"; 112 default: return "?"; 113 } 114 } 115 public String getDefinition() { 116 switch (this) { 117 case RESPONSE: return "The assertion is evaluated on the response. This is the default value."; 118 case REQUEST: return "The assertion is evaluated on the request."; 119 default: return "?"; 120 } 121 } 122 public String getDisplay() { 123 switch (this) { 124 case RESPONSE: return "response"; 125 case REQUEST: return "request"; 126 default: return "?"; 127 } 128 } 129 } 130 131 public static class AssertionDirectionTypeEnumFactory implements EnumFactory<AssertionDirectionType> { 132 public AssertionDirectionType fromCode(String codeString) throws IllegalArgumentException { 133 if (codeString == null || "".equals(codeString)) 134 if (codeString == null || "".equals(codeString)) 135 return null; 136 if ("response".equals(codeString)) 137 return AssertionDirectionType.RESPONSE; 138 if ("request".equals(codeString)) 139 return AssertionDirectionType.REQUEST; 140 throw new IllegalArgumentException("Unknown AssertionDirectionType code '"+codeString+"'"); 141 } 142 public Enumeration<AssertionDirectionType> fromType(Base code) throws FHIRException { 143 if (code == null) 144 return null; 145 if (code.isEmpty()) 146 return new Enumeration<AssertionDirectionType>(this); 147 String codeString = ((PrimitiveType) code).asStringValue(); 148 if (codeString == null || "".equals(codeString)) 149 return null; 150 if ("response".equals(codeString)) 151 return new Enumeration<AssertionDirectionType>(this, AssertionDirectionType.RESPONSE); 152 if ("request".equals(codeString)) 153 return new Enumeration<AssertionDirectionType>(this, AssertionDirectionType.REQUEST); 154 throw new FHIRException("Unknown AssertionDirectionType code '"+codeString+"'"); 155 } 156 public String toCode(AssertionDirectionType code) { 157 if (code == AssertionDirectionType.RESPONSE) 158 return "response"; 159 if (code == AssertionDirectionType.REQUEST) 160 return "request"; 161 return "?"; 162 } 163 public String toSystem(AssertionDirectionType code) { 164 return code.getSystem(); 165 } 166 } 167 168 public enum AssertionOperatorType { 169 /** 170 * Default value. Equals comparison. 171 */ 172 EQUALS, 173 /** 174 * Not equals comparison. 175 */ 176 NOTEQUALS, 177 /** 178 * Compare value within a known set of values. 179 */ 180 IN, 181 /** 182 * Compare value not within a known set of values. 183 */ 184 NOTIN, 185 /** 186 * Compare value to be greater than a known value. 187 */ 188 GREATERTHAN, 189 /** 190 * Compare value to be less than a known value. 191 */ 192 LESSTHAN, 193 /** 194 * Compare value is empty. 195 */ 196 EMPTY, 197 /** 198 * Compare value is not empty. 199 */ 200 NOTEMPTY, 201 /** 202 * Compare value string contains a known value. 203 */ 204 CONTAINS, 205 /** 206 * Compare value string does not contain a known value. 207 */ 208 NOTCONTAINS, 209 /** 210 * Evaluate the FHIRPath expression as a boolean condition. 211 */ 212 EVAL, 213 /** 214 * added to help the parsers with the generic types 215 */ 216 NULL; 217 public static AssertionOperatorType fromCode(String codeString) throws FHIRException { 218 if (codeString == null || "".equals(codeString)) 219 return null; 220 if ("equals".equals(codeString)) 221 return EQUALS; 222 if ("notEquals".equals(codeString)) 223 return NOTEQUALS; 224 if ("in".equals(codeString)) 225 return IN; 226 if ("notIn".equals(codeString)) 227 return NOTIN; 228 if ("greaterThan".equals(codeString)) 229 return GREATERTHAN; 230 if ("lessThan".equals(codeString)) 231 return LESSTHAN; 232 if ("empty".equals(codeString)) 233 return EMPTY; 234 if ("notEmpty".equals(codeString)) 235 return NOTEMPTY; 236 if ("contains".equals(codeString)) 237 return CONTAINS; 238 if ("notContains".equals(codeString)) 239 return NOTCONTAINS; 240 if ("eval".equals(codeString)) 241 return EVAL; 242 if (Configuration.isAcceptInvalidEnums()) 243 return null; 244 else 245 throw new FHIRException("Unknown AssertionOperatorType code '"+codeString+"'"); 246 } 247 public String toCode() { 248 switch (this) { 249 case EQUALS: return "equals"; 250 case NOTEQUALS: return "notEquals"; 251 case IN: return "in"; 252 case NOTIN: return "notIn"; 253 case GREATERTHAN: return "greaterThan"; 254 case LESSTHAN: return "lessThan"; 255 case EMPTY: return "empty"; 256 case NOTEMPTY: return "notEmpty"; 257 case CONTAINS: return "contains"; 258 case NOTCONTAINS: return "notContains"; 259 case EVAL: return "eval"; 260 default: return "?"; 261 } 262 } 263 public String getSystem() { 264 switch (this) { 265 case EQUALS: return "http://hl7.org/fhir/assert-operator-codes"; 266 case NOTEQUALS: return "http://hl7.org/fhir/assert-operator-codes"; 267 case IN: return "http://hl7.org/fhir/assert-operator-codes"; 268 case NOTIN: return "http://hl7.org/fhir/assert-operator-codes"; 269 case GREATERTHAN: return "http://hl7.org/fhir/assert-operator-codes"; 270 case LESSTHAN: return "http://hl7.org/fhir/assert-operator-codes"; 271 case EMPTY: return "http://hl7.org/fhir/assert-operator-codes"; 272 case NOTEMPTY: return "http://hl7.org/fhir/assert-operator-codes"; 273 case CONTAINS: return "http://hl7.org/fhir/assert-operator-codes"; 274 case NOTCONTAINS: return "http://hl7.org/fhir/assert-operator-codes"; 275 case EVAL: return "http://hl7.org/fhir/assert-operator-codes"; 276 default: return "?"; 277 } 278 } 279 public String getDefinition() { 280 switch (this) { 281 case EQUALS: return "Default value. Equals comparison."; 282 case NOTEQUALS: return "Not equals comparison."; 283 case IN: return "Compare value within a known set of values."; 284 case NOTIN: return "Compare value not within a known set of values."; 285 case GREATERTHAN: return "Compare value to be greater than a known value."; 286 case LESSTHAN: return "Compare value to be less than a known value."; 287 case EMPTY: return "Compare value is empty."; 288 case NOTEMPTY: return "Compare value is not empty."; 289 case CONTAINS: return "Compare value string contains a known value."; 290 case NOTCONTAINS: return "Compare value string does not contain a known value."; 291 case EVAL: return "Evaluate the FHIRPath expression as a boolean condition."; 292 default: return "?"; 293 } 294 } 295 public String getDisplay() { 296 switch (this) { 297 case EQUALS: return "equals"; 298 case NOTEQUALS: return "notEquals"; 299 case IN: return "in"; 300 case NOTIN: return "notIn"; 301 case GREATERTHAN: return "greaterThan"; 302 case LESSTHAN: return "lessThan"; 303 case EMPTY: return "empty"; 304 case NOTEMPTY: return "notEmpty"; 305 case CONTAINS: return "contains"; 306 case NOTCONTAINS: return "notContains"; 307 case EVAL: return "evaluate"; 308 default: return "?"; 309 } 310 } 311 } 312 313 public static class AssertionOperatorTypeEnumFactory implements EnumFactory<AssertionOperatorType> { 314 public AssertionOperatorType fromCode(String codeString) throws IllegalArgumentException { 315 if (codeString == null || "".equals(codeString)) 316 if (codeString == null || "".equals(codeString)) 317 return null; 318 if ("equals".equals(codeString)) 319 return AssertionOperatorType.EQUALS; 320 if ("notEquals".equals(codeString)) 321 return AssertionOperatorType.NOTEQUALS; 322 if ("in".equals(codeString)) 323 return AssertionOperatorType.IN; 324 if ("notIn".equals(codeString)) 325 return AssertionOperatorType.NOTIN; 326 if ("greaterThan".equals(codeString)) 327 return AssertionOperatorType.GREATERTHAN; 328 if ("lessThan".equals(codeString)) 329 return AssertionOperatorType.LESSTHAN; 330 if ("empty".equals(codeString)) 331 return AssertionOperatorType.EMPTY; 332 if ("notEmpty".equals(codeString)) 333 return AssertionOperatorType.NOTEMPTY; 334 if ("contains".equals(codeString)) 335 return AssertionOperatorType.CONTAINS; 336 if ("notContains".equals(codeString)) 337 return AssertionOperatorType.NOTCONTAINS; 338 if ("eval".equals(codeString)) 339 return AssertionOperatorType.EVAL; 340 throw new IllegalArgumentException("Unknown AssertionOperatorType code '"+codeString+"'"); 341 } 342 public Enumeration<AssertionOperatorType> fromType(Base code) throws FHIRException { 343 if (code == null) 344 return null; 345 if (code.isEmpty()) 346 return new Enumeration<AssertionOperatorType>(this); 347 String codeString = ((PrimitiveType) code).asStringValue(); 348 if (codeString == null || "".equals(codeString)) 349 return null; 350 if ("equals".equals(codeString)) 351 return new Enumeration<AssertionOperatorType>(this, AssertionOperatorType.EQUALS); 352 if ("notEquals".equals(codeString)) 353 return new Enumeration<AssertionOperatorType>(this, AssertionOperatorType.NOTEQUALS); 354 if ("in".equals(codeString)) 355 return new Enumeration<AssertionOperatorType>(this, AssertionOperatorType.IN); 356 if ("notIn".equals(codeString)) 357 return new Enumeration<AssertionOperatorType>(this, AssertionOperatorType.NOTIN); 358 if ("greaterThan".equals(codeString)) 359 return new Enumeration<AssertionOperatorType>(this, AssertionOperatorType.GREATERTHAN); 360 if ("lessThan".equals(codeString)) 361 return new Enumeration<AssertionOperatorType>(this, AssertionOperatorType.LESSTHAN); 362 if ("empty".equals(codeString)) 363 return new Enumeration<AssertionOperatorType>(this, AssertionOperatorType.EMPTY); 364 if ("notEmpty".equals(codeString)) 365 return new Enumeration<AssertionOperatorType>(this, AssertionOperatorType.NOTEMPTY); 366 if ("contains".equals(codeString)) 367 return new Enumeration<AssertionOperatorType>(this, AssertionOperatorType.CONTAINS); 368 if ("notContains".equals(codeString)) 369 return new Enumeration<AssertionOperatorType>(this, AssertionOperatorType.NOTCONTAINS); 370 if ("eval".equals(codeString)) 371 return new Enumeration<AssertionOperatorType>(this, AssertionOperatorType.EVAL); 372 throw new FHIRException("Unknown AssertionOperatorType code '"+codeString+"'"); 373 } 374 public String toCode(AssertionOperatorType code) { 375 if (code == AssertionOperatorType.EQUALS) 376 return "equals"; 377 if (code == AssertionOperatorType.NOTEQUALS) 378 return "notEquals"; 379 if (code == AssertionOperatorType.IN) 380 return "in"; 381 if (code == AssertionOperatorType.NOTIN) 382 return "notIn"; 383 if (code == AssertionOperatorType.GREATERTHAN) 384 return "greaterThan"; 385 if (code == AssertionOperatorType.LESSTHAN) 386 return "lessThan"; 387 if (code == AssertionOperatorType.EMPTY) 388 return "empty"; 389 if (code == AssertionOperatorType.NOTEMPTY) 390 return "notEmpty"; 391 if (code == AssertionOperatorType.CONTAINS) 392 return "contains"; 393 if (code == AssertionOperatorType.NOTCONTAINS) 394 return "notContains"; 395 if (code == AssertionOperatorType.EVAL) 396 return "eval"; 397 return "?"; 398 } 399 public String toSystem(AssertionOperatorType code) { 400 return code.getSystem(); 401 } 402 } 403 404 public enum AssertionResponseTypes { 405 /** 406 * Response code is 200. 407 */ 408 OKAY, 409 /** 410 * Response code is 201. 411 */ 412 CREATED, 413 /** 414 * Response code is 204. 415 */ 416 NOCONTENT, 417 /** 418 * Response code is 304. 419 */ 420 NOTMODIFIED, 421 /** 422 * Response code is 400. 423 */ 424 BAD, 425 /** 426 * Response code is 403. 427 */ 428 FORBIDDEN, 429 /** 430 * Response code is 404. 431 */ 432 NOTFOUND, 433 /** 434 * Response code is 405. 435 */ 436 METHODNOTALLOWED, 437 /** 438 * Response code is 409. 439 */ 440 CONFLICT, 441 /** 442 * Response code is 410. 443 */ 444 GONE, 445 /** 446 * Response code is 412. 447 */ 448 PRECONDITIONFAILED, 449 /** 450 * Response code is 422. 451 */ 452 UNPROCESSABLE, 453 /** 454 * added to help the parsers with the generic types 455 */ 456 NULL; 457 public static AssertionResponseTypes fromCode(String codeString) throws FHIRException { 458 if (codeString == null || "".equals(codeString)) 459 return null; 460 if ("okay".equals(codeString)) 461 return OKAY; 462 if ("created".equals(codeString)) 463 return CREATED; 464 if ("noContent".equals(codeString)) 465 return NOCONTENT; 466 if ("notModified".equals(codeString)) 467 return NOTMODIFIED; 468 if ("bad".equals(codeString)) 469 return BAD; 470 if ("forbidden".equals(codeString)) 471 return FORBIDDEN; 472 if ("notFound".equals(codeString)) 473 return NOTFOUND; 474 if ("methodNotAllowed".equals(codeString)) 475 return METHODNOTALLOWED; 476 if ("conflict".equals(codeString)) 477 return CONFLICT; 478 if ("gone".equals(codeString)) 479 return GONE; 480 if ("preconditionFailed".equals(codeString)) 481 return PRECONDITIONFAILED; 482 if ("unprocessable".equals(codeString)) 483 return UNPROCESSABLE; 484 if (Configuration.isAcceptInvalidEnums()) 485 return null; 486 else 487 throw new FHIRException("Unknown AssertionResponseTypes code '"+codeString+"'"); 488 } 489 public String toCode() { 490 switch (this) { 491 case OKAY: return "okay"; 492 case CREATED: return "created"; 493 case NOCONTENT: return "noContent"; 494 case NOTMODIFIED: return "notModified"; 495 case BAD: return "bad"; 496 case FORBIDDEN: return "forbidden"; 497 case NOTFOUND: return "notFound"; 498 case METHODNOTALLOWED: return "methodNotAllowed"; 499 case CONFLICT: return "conflict"; 500 case GONE: return "gone"; 501 case PRECONDITIONFAILED: return "preconditionFailed"; 502 case UNPROCESSABLE: return "unprocessable"; 503 default: return "?"; 504 } 505 } 506 public String getSystem() { 507 switch (this) { 508 case OKAY: return "http://hl7.org/fhir/assert-response-code-types"; 509 case CREATED: return "http://hl7.org/fhir/assert-response-code-types"; 510 case NOCONTENT: return "http://hl7.org/fhir/assert-response-code-types"; 511 case NOTMODIFIED: return "http://hl7.org/fhir/assert-response-code-types"; 512 case BAD: return "http://hl7.org/fhir/assert-response-code-types"; 513 case FORBIDDEN: return "http://hl7.org/fhir/assert-response-code-types"; 514 case NOTFOUND: return "http://hl7.org/fhir/assert-response-code-types"; 515 case METHODNOTALLOWED: return "http://hl7.org/fhir/assert-response-code-types"; 516 case CONFLICT: return "http://hl7.org/fhir/assert-response-code-types"; 517 case GONE: return "http://hl7.org/fhir/assert-response-code-types"; 518 case PRECONDITIONFAILED: return "http://hl7.org/fhir/assert-response-code-types"; 519 case UNPROCESSABLE: return "http://hl7.org/fhir/assert-response-code-types"; 520 default: return "?"; 521 } 522 } 523 public String getDefinition() { 524 switch (this) { 525 case OKAY: return "Response code is 200."; 526 case CREATED: return "Response code is 201."; 527 case NOCONTENT: return "Response code is 204."; 528 case NOTMODIFIED: return "Response code is 304."; 529 case BAD: return "Response code is 400."; 530 case FORBIDDEN: return "Response code is 403."; 531 case NOTFOUND: return "Response code is 404."; 532 case METHODNOTALLOWED: return "Response code is 405."; 533 case CONFLICT: return "Response code is 409."; 534 case GONE: return "Response code is 410."; 535 case PRECONDITIONFAILED: return "Response code is 412."; 536 case UNPROCESSABLE: return "Response code is 422."; 537 default: return "?"; 538 } 539 } 540 public String getDisplay() { 541 switch (this) { 542 case OKAY: return "okay"; 543 case CREATED: return "created"; 544 case NOCONTENT: return "noContent"; 545 case NOTMODIFIED: return "notModified"; 546 case BAD: return "bad"; 547 case FORBIDDEN: return "forbidden"; 548 case NOTFOUND: return "notFound"; 549 case METHODNOTALLOWED: return "methodNotAllowed"; 550 case CONFLICT: return "conflict"; 551 case GONE: return "gone"; 552 case PRECONDITIONFAILED: return "preconditionFailed"; 553 case UNPROCESSABLE: return "unprocessable"; 554 default: return "?"; 555 } 556 } 557 } 558 559 public static class AssertionResponseTypesEnumFactory implements EnumFactory<AssertionResponseTypes> { 560 public AssertionResponseTypes fromCode(String codeString) throws IllegalArgumentException { 561 if (codeString == null || "".equals(codeString)) 562 if (codeString == null || "".equals(codeString)) 563 return null; 564 if ("okay".equals(codeString)) 565 return AssertionResponseTypes.OKAY; 566 if ("created".equals(codeString)) 567 return AssertionResponseTypes.CREATED; 568 if ("noContent".equals(codeString)) 569 return AssertionResponseTypes.NOCONTENT; 570 if ("notModified".equals(codeString)) 571 return AssertionResponseTypes.NOTMODIFIED; 572 if ("bad".equals(codeString)) 573 return AssertionResponseTypes.BAD; 574 if ("forbidden".equals(codeString)) 575 return AssertionResponseTypes.FORBIDDEN; 576 if ("notFound".equals(codeString)) 577 return AssertionResponseTypes.NOTFOUND; 578 if ("methodNotAllowed".equals(codeString)) 579 return AssertionResponseTypes.METHODNOTALLOWED; 580 if ("conflict".equals(codeString)) 581 return AssertionResponseTypes.CONFLICT; 582 if ("gone".equals(codeString)) 583 return AssertionResponseTypes.GONE; 584 if ("preconditionFailed".equals(codeString)) 585 return AssertionResponseTypes.PRECONDITIONFAILED; 586 if ("unprocessable".equals(codeString)) 587 return AssertionResponseTypes.UNPROCESSABLE; 588 throw new IllegalArgumentException("Unknown AssertionResponseTypes code '"+codeString+"'"); 589 } 590 public Enumeration<AssertionResponseTypes> fromType(Base code) throws FHIRException { 591 if (code == null) 592 return null; 593 if (code.isEmpty()) 594 return new Enumeration<AssertionResponseTypes>(this); 595 String codeString = ((PrimitiveType) code).asStringValue(); 596 if (codeString == null || "".equals(codeString)) 597 return null; 598 if ("okay".equals(codeString)) 599 return new Enumeration<AssertionResponseTypes>(this, AssertionResponseTypes.OKAY); 600 if ("created".equals(codeString)) 601 return new Enumeration<AssertionResponseTypes>(this, AssertionResponseTypes.CREATED); 602 if ("noContent".equals(codeString)) 603 return new Enumeration<AssertionResponseTypes>(this, AssertionResponseTypes.NOCONTENT); 604 if ("notModified".equals(codeString)) 605 return new Enumeration<AssertionResponseTypes>(this, AssertionResponseTypes.NOTMODIFIED); 606 if ("bad".equals(codeString)) 607 return new Enumeration<AssertionResponseTypes>(this, AssertionResponseTypes.BAD); 608 if ("forbidden".equals(codeString)) 609 return new Enumeration<AssertionResponseTypes>(this, AssertionResponseTypes.FORBIDDEN); 610 if ("notFound".equals(codeString)) 611 return new Enumeration<AssertionResponseTypes>(this, AssertionResponseTypes.NOTFOUND); 612 if ("methodNotAllowed".equals(codeString)) 613 return new Enumeration<AssertionResponseTypes>(this, AssertionResponseTypes.METHODNOTALLOWED); 614 if ("conflict".equals(codeString)) 615 return new Enumeration<AssertionResponseTypes>(this, AssertionResponseTypes.CONFLICT); 616 if ("gone".equals(codeString)) 617 return new Enumeration<AssertionResponseTypes>(this, AssertionResponseTypes.GONE); 618 if ("preconditionFailed".equals(codeString)) 619 return new Enumeration<AssertionResponseTypes>(this, AssertionResponseTypes.PRECONDITIONFAILED); 620 if ("unprocessable".equals(codeString)) 621 return new Enumeration<AssertionResponseTypes>(this, AssertionResponseTypes.UNPROCESSABLE); 622 throw new FHIRException("Unknown AssertionResponseTypes code '"+codeString+"'"); 623 } 624 public String toCode(AssertionResponseTypes code) { 625 if (code == AssertionResponseTypes.OKAY) 626 return "okay"; 627 if (code == AssertionResponseTypes.CREATED) 628 return "created"; 629 if (code == AssertionResponseTypes.NOCONTENT) 630 return "noContent"; 631 if (code == AssertionResponseTypes.NOTMODIFIED) 632 return "notModified"; 633 if (code == AssertionResponseTypes.BAD) 634 return "bad"; 635 if (code == AssertionResponseTypes.FORBIDDEN) 636 return "forbidden"; 637 if (code == AssertionResponseTypes.NOTFOUND) 638 return "notFound"; 639 if (code == AssertionResponseTypes.METHODNOTALLOWED) 640 return "methodNotAllowed"; 641 if (code == AssertionResponseTypes.CONFLICT) 642 return "conflict"; 643 if (code == AssertionResponseTypes.GONE) 644 return "gone"; 645 if (code == AssertionResponseTypes.PRECONDITIONFAILED) 646 return "preconditionFailed"; 647 if (code == AssertionResponseTypes.UNPROCESSABLE) 648 return "unprocessable"; 649 return "?"; 650 } 651 public String toSystem(AssertionResponseTypes code) { 652 return code.getSystem(); 653 } 654 } 655 656 public enum FHIRDefinedType { 657 /** 658 * An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world. 659 */ 660 ADDRESS, 661 /** 662 * A duration of time during which an organism (or a process) has existed. 663 */ 664 AGE, 665 /** 666 * A text note which also contains information about who made the statement and when. 667 */ 668 ANNOTATION, 669 /** 670 * For referring to data content defined in other formats. 671 */ 672 ATTACHMENT, 673 /** 674 * Base definition for all elements that are defined inside a resource - but not those in a data type. 675 */ 676 BACKBONEELEMENT, 677 /** 678 * Base definition for the few data types that are allowed to carry modifier extensions. 679 */ 680 BACKBONETYPE, 681 /** 682 * Base definition for all types defined in FHIR type system. 683 */ 684 BASE, 685 /** 686 * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text. 687 */ 688 CODEABLECONCEPT, 689 /** 690 * A reference to a resource (by instance), or instead, a reference to a cencept defined in a terminology or ontology (by class). 691 */ 692 CODEABLEREFERENCE, 693 /** 694 * A reference to a code defined by a terminology system. 695 */ 696 CODING, 697 /** 698 * Specifies contact information for a person or organization. 699 */ 700 CONTACTDETAIL, 701 /** 702 * Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc. 703 */ 704 CONTACTPOINT, 705 /** 706 * A contributor to the content of a knowledge asset, including authors, editors, reviewers, and endorsers. 707 */ 708 CONTRIBUTOR, 709 /** 710 * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies. 711 */ 712 COUNT, 713 /** 714 * Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data. 715 */ 716 DATAREQUIREMENT, 717 /** 718 * The base class for all re-useable types defined as part of the FHIR Specification. 719 */ 720 DATATYPE, 721 /** 722 * A length - a value with a unit that is a physical distance. 723 */ 724 DISTANCE, 725 /** 726 * Indicates how the medication is/was taken or should be taken by the patient. 727 */ 728 DOSAGE, 729 /** 730 * A length of time. 731 */ 732 DURATION, 733 /** 734 * Base definition for all elements in a resource. 735 */ 736 ELEMENT, 737 /** 738 * Captures constraints on each element within the resource, profile, or extension. 739 */ 740 ELEMENTDEFINITION, 741 /** 742 * A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used. 743 */ 744 EXPRESSION, 745 /** 746 * Optional Extension Element - found in all resources. 747 */ 748 EXTENSION, 749 /** 750 * A human's name with the ability to identify parts and usage. 751 */ 752 HUMANNAME, 753 /** 754 * An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers. 755 */ 756 IDENTIFIER, 757 /** 758 * The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available. 759 */ 760 MARKETINGSTATUS, 761 /** 762 * The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource. 763 */ 764 META, 765 /** 766 * An amount of economic utility in some recognized currency. 767 */ 768 MONEY, 769 /** 770 * 771 */ 772 MONEYQUANTITY, 773 /** 774 * A human-readable summary of the resource conveying the essential clinical and business information for the resource. 775 */ 776 NARRATIVE, 777 /** 778 * An ordered list (distribution) of statistics. 779 */ 780 ORDEREDDISTRIBUTION, 781 /** 782 * The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse. 783 */ 784 PARAMETERDEFINITION, 785 /** 786 * A time period defined by a start and end date and optionally time. 787 */ 788 PERIOD, 789 /** 790 * A populatioof people with some set of grouping criteria. 791 */ 792 POPULATION, 793 /** 794 * The base type for all re-useable types defined that have a simple property. 795 */ 796 PRIMITIVETYPE, 797 /** 798 * The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available. 799 */ 800 PRODCHARACTERISTIC, 801 /** 802 * The shelf-life and storage information for a medicinal product item or container can be described using this class. 803 */ 804 PRODUCTSHELFLIFE, 805 /** 806 * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies. 807 */ 808 QUANTITY, 809 /** 810 * A set of ordered Quantities defined by a low and high limit. 811 */ 812 RANGE, 813 /** 814 * A relationship of two Quantity values - expressed as a numerator and a denominator. 815 */ 816 RATIO, 817 /** 818 * A reference from one resource to another. 819 */ 820 REFERENCE, 821 /** 822 * Related artifacts such as additional documentation, justification, or bibliographic references. 823 */ 824 RELATEDARTIFACT, 825 /** 826 * A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data. 827 */ 828 SAMPLEDDATA, 829 /** 830 * A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities. 831 */ 832 SIGNATURE, 833 /** 834 * 835 */ 836 SIMPLEQUANTITY, 837 /** 838 * A fact or piece of data from a study of a large quantity of numerical data. A mathematical or quantified characteristic of a group of observations. 839 */ 840 STATISTIC, 841 /** 842 * Chemical substances are a single substance type whose primary defining element is the molecular structure. Chemical substances shall be defined on the basis of their complete covalent molecular structure; the presence of a salt (counter-ion) and/or solvates (water, alcohols) is also captured. Purity, grade, physical form or particle size are not taken into account in the definition of a chemical substance or in the assignment of a Substance ID. 843 */ 844 SUBSTANCEAMOUNT, 845 /** 846 * Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out. 847 */ 848 TIMING, 849 /** 850 * A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element. 851 */ 852 TRIGGERDEFINITION, 853 /** 854 * Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care). 855 */ 856 USAGECONTEXT, 857 /** 858 * A stream of bytes 859 */ 860 BASE64BINARY, 861 /** 862 * Value of \"true\" or \"false\" 863 */ 864 BOOLEAN, 865 /** 866 * A URI that is a reference to a canonical URL on a FHIR resource 867 */ 868 CANONICAL, 869 /** 870 * A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents 871 */ 872 CODE, 873 /** 874 * A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates. 875 */ 876 DATE, 877 /** 878 * A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates. 879 */ 880 DATETIME, 881 /** 882 * A rational number with implicit precision 883 */ 884 DECIMAL, 885 /** 886 * Any combination of letters, numerals, \"-\" and \".\", with a length limit of 64 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Ids are case-insensitive. 887 */ 888 ID, 889 /** 890 * An instant in time - known at least to the second 891 */ 892 INSTANT, 893 /** 894 * A whole number 895 */ 896 INTEGER, 897 /** 898 * A very large whole number 899 */ 900 INTEGER64, 901 /** 902 * A string that may contain Github Flavored Markdown syntax for optional processing by a mark down presentation engine 903 */ 904 MARKDOWN, 905 /** 906 * An OID represented as a URI 907 */ 908 OID, 909 /** 910 * An integer with a value that is positive (e.g. >0) 911 */ 912 POSITIVEINT, 913 /** 914 * A sequence of Unicode characters 915 */ 916 STRING, 917 /** 918 * A time during the day, with no date specified 919 */ 920 TIME, 921 /** 922 * An integer with a value that is not negative (e.g. >= 0) 923 */ 924 UNSIGNEDINT, 925 /** 926 * String of characters used to identify a name or a resource 927 */ 928 URI, 929 /** 930 * A URI that is a literal reference 931 */ 932 URL, 933 /** 934 * A UUID, represented as a URI 935 */ 936 UUID, 937 /** 938 * XHTML format, as defined by W3C, but restricted usage (mainly, no active content) 939 */ 940 XHTML, 941 /** 942 * A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centers, etc. 943 */ 944 ACCOUNT, 945 /** 946 * This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context. 947 */ 948 ACTIVITYDEFINITION, 949 /** 950 * A pharmaceutical product described in terms of its composition and dose form. 951 */ 952 ADMINISTRABLEPRODUCTDEFINITION, 953 /** 954 * An event (i.e. any change to current patient status) that may be related to unintended effects on a patient or research subject. The unintended effects may require additional monitoring, treatment or hospitalization or may result in death. The AdverseEvent resource also extends to potential or avoided events that could have had such effects. 955 */ 956 ADVERSEEVENT, 957 /** 958 * Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance. 959 */ 960 ALLERGYINTOLERANCE, 961 /** 962 * 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). 963 */ 964 APPOINTMENT, 965 /** 966 * A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection. 967 */ 968 APPOINTMENTRESPONSE, 969 /** 970 * A record of an event relevant for purposes such as operations, privacy, security, maintenance, and performance analysis. 971 */ 972 AUDITEVENT, 973 /** 974 * Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification. 975 */ 976 BASIC, 977 /** 978 * A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc. 979 */ 980 BINARY, 981 /** 982 * A material substance originating from a biological entity intended to be transplanted or infused\ninto another (possibly the same) biological entity. 983 */ 984 BIOLOGICALLYDERIVEDPRODUCT, 985 /** 986 * Record details about an anatomical structure. This resource may be used when a coded concept does not provide the necessary detail needed for the use case. 987 */ 988 BODYSTRUCTURE, 989 /** 990 * A container for a collection of resources. 991 */ 992 BUNDLE, 993 /** 994 * A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation. 995 */ 996 CAPABILITYSTATEMENT, 997 /** 998 * A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation. 999 */ 1000 CAPABILITYSTATEMENT2, 1001 /** 1002 * Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions. 1003 */ 1004 CAREPLAN, 1005 /** 1006 * The Care Team includes all the people and organizations who plan to participate in the coordination and delivery of care. 1007 */ 1008 CARETEAM, 1009 /** 1010 * Catalog entries are wrappers that contextualize items included in a catalog. 1011 */ 1012 CATALOGENTRY, 1013 /** 1014 * The resource ChargeItem describes the provision of healthcare provider products for a certain patient, therefore referring not only to the product, but containing in addition details of the provision, like date, time, amounts and participating organizations and persons. Main Usage of the ChargeItem is to enable the billing process and internal cost allocation. 1015 */ 1016 CHARGEITEM, 1017 /** 1018 * The ChargeItemDefinition resource provides the properties that apply to the (billing) codes necessary to calculate costs and prices. The properties may differ largely depending on type and realm, therefore this resource gives only a rough structure and requires profiling for each type of billing code system. 1019 */ 1020 CHARGEITEMDEFINITION, 1021 /** 1022 * A provider issued list of professional services and products which have been provided, or are to be provided, to a patient which is sent to an insurer for reimbursement. 1023 */ 1024 CLAIM, 1025 /** 1026 * This resource provides the adjudication details from the processing of a Claim resource. 1027 */ 1028 CLAIMRESPONSE, 1029 /** 1030 * A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. This resource is called \"ClinicalImpression\" rather than \"ClinicalAssessment\" to avoid confusion with the recording of assessment tools such as Apgar score. 1031 */ 1032 CLINICALIMPRESSION, 1033 /** 1034 * A single usage issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure. 1035 */ 1036 CLINICALUSEISSUE, 1037 /** 1038 * The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content. 1039 */ 1040 CODESYSTEM, 1041 /** 1042 * An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency communication to a provider/reporter in response to a case report for a reportable condition. 1043 */ 1044 COMMUNICATION, 1045 /** 1046 * A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition. 1047 */ 1048 COMMUNICATIONREQUEST, 1049 /** 1050 * A compartment definition that defines how resources are accessed on a server. 1051 */ 1052 COMPARTMENTDEFINITION, 1053 /** 1054 * A set of healthcare-related information that is assembled together into a single logical package that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.). 1055 */ 1056 COMPOSITION, 1057 /** 1058 * A statement of relationships from one set of concepts to one or more other concepts - either concepts in code systems, or data element/data element concepts, or classes in class models. 1059 */ 1060 CONCEPTMAP, 1061 /** 1062 * A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern. 1063 */ 1064 CONDITION, 1065 /** 1066 * A definition of a condition and information relevant to managing it. 1067 */ 1068 CONDITIONDEFINITION, 1069 /** 1070 * A record of a healthcare consumer’s choices or choices made on their behalf by a third party, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time. 1071 */ 1072 CONSENT, 1073 /** 1074 * Legally enforceable, formally recorded unilateral or bilateral directive i.e., a policy or agreement. 1075 */ 1076 CONTRACT, 1077 /** 1078 * Financial instrument which may be used to reimburse or pay for health care products and services. Includes both insurance and self-payment. 1079 */ 1080 COVERAGE, 1081 /** 1082 * The CoverageEligibilityRequest provides patient and insurance coverage information to an insurer for them to respond, in the form of an CoverageEligibilityResponse, with information regarding whether the stated coverage is valid and in-force and optionally to provide the insurance details of the policy. 1083 */ 1084 COVERAGEELIGIBILITYREQUEST, 1085 /** 1086 * This resource provides eligibility and plan details from the processing of an CoverageEligibilityRequest resource. 1087 */ 1088 COVERAGEELIGIBILITYRESPONSE, 1089 /** 1090 * Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc. 1091 */ 1092 DETECTEDISSUE, 1093 /** 1094 * A type of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device. 1095 */ 1096 DEVICE, 1097 /** 1098 * The characteristics, operational status and capabilities of a medical-related component of a medical device. 1099 */ 1100 DEVICEDEFINITION, 1101 /** 1102 * Describes a measurement, calculation or setting capability of a medical device. 1103 */ 1104 DEVICEMETRIC, 1105 /** 1106 * Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker. 1107 */ 1108 DEVICEREQUEST, 1109 /** 1110 * A record of a device being used by a patient where the record is the result of a report from the patient or another clinician. 1111 */ 1112 DEVICEUSESTATEMENT, 1113 /** 1114 * The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. 1115 */ 1116 DIAGNOSTICREPORT, 1117 /** 1118 * A collection of documents compiled for a purpose together with metadata that applies to the collection. 1119 */ 1120 DOCUMENTMANIFEST, 1121 /** 1122 * A reference to a document of any kind for any purpose. While the term “document” implies a more narrow focus, for this resource this \"document\" encompasses *any* serialized object with a mime-type, it includes formal patient-centric documents (CDA), clinical notes, scanned paper, non-patient specific documents like policy text, as well as a photo, video, or audio recording acquired or used in healthcare. The DocumentReference resource provides metadata about the document so that the document can be discovered and managed. The actual content may be inline base64 encoded data or provided by direct reference. 1123 */ 1124 DOCUMENTREFERENCE, 1125 /** 1126 * A resource that includes narrative, extensions, and contained resources. 1127 */ 1128 DOMAINRESOURCE, 1129 /** 1130 * An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient. 1131 */ 1132 ENCOUNTER, 1133 /** 1134 * The technical details of an endpoint that can be used for electronic services, such as for web services providing XDS.b or a REST endpoint for another FHIR server. This may include any security context information. 1135 */ 1136 ENDPOINT, 1137 /** 1138 * This resource provides the insurance enrollment details to the insurer regarding a specified coverage. 1139 */ 1140 ENROLLMENTREQUEST, 1141 /** 1142 * This resource provides enrollment and plan details from the processing of an EnrollmentRequest resource. 1143 */ 1144 ENROLLMENTRESPONSE, 1145 /** 1146 * An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time. 1147 */ 1148 EPISODEOFCARE, 1149 /** 1150 * The EventDefinition resource provides a reusable description of when a particular event can occur. 1151 */ 1152 EVENTDEFINITION, 1153 /** 1154 * This represents statistics, certainty, both the intended and actual population, and evidence variables. 1155 */ 1156 EVIDENCE, 1157 /** 1158 * The EvidenceVariable resource describes a \"PICO\" element that knowledge (evidence, assertion, recommendation) is about. 1159 */ 1160 EVIDENCEVARIABLE, 1161 /** 1162 * Example of workflow instance. 1163 */ 1164 EXAMPLESCENARIO, 1165 /** 1166 * This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided. 1167 */ 1168 EXPLANATIONOFBENEFIT, 1169 /** 1170 * Significant health conditions for a person related to the patient relevant in the context of care for the patient. 1171 */ 1172 FAMILYMEMBERHISTORY, 1173 /** 1174 * Prospective warnings of potential issues when providing care to the patient. 1175 */ 1176 FLAG, 1177 /** 1178 * Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc. 1179 */ 1180 GOAL, 1181 /** 1182 * A formal computable definition of a graph of resources - that is, a coherent set of resources that form a graph by following references. The Graph Definition resource defines a set and makes rules about the set. 1183 */ 1184 GRAPHDEFINITION, 1185 /** 1186 * Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively, and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization. 1187 */ 1188 GROUP, 1189 /** 1190 * A guidance response is the formal response to a guidance request, including any output parameters returned by the evaluation, as well as the description of any proposed actions to be taken. 1191 */ 1192 GUIDANCERESPONSE, 1193 /** 1194 * The details of a healthcare service available at a location. 1195 */ 1196 HEALTHCARESERVICE, 1197 /** 1198 * Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities. 1199 */ 1200 IMAGINGSTUDY, 1201 /** 1202 * Describes the event of a patient being administered a vaccine or a record of an immunization as reported by a patient, a clinician or another party. 1203 */ 1204 IMMUNIZATION, 1205 /** 1206 * Describes a comparison of an immunization event against published recommendations to determine if the administration is \"valid\" in relation to those recommendations. 1207 */ 1208 IMMUNIZATIONEVALUATION, 1209 /** 1210 * A patient's point-in-time set of recommendations (i.e. forecasting) according to a published schedule with optional supporting justification. 1211 */ 1212 IMMUNIZATIONRECOMMENDATION, 1213 /** 1214 * A set of rules of how a particular interoperability or standards problem is solved - typically through the use of FHIR resources. This resource is used to gather all the parts of an implementation guide into a logical whole and to publish a computable definition of all the parts. 1215 */ 1216 IMPLEMENTATIONGUIDE, 1217 /** 1218 * An ingredient of a manufactured item or pharmaceutical product. 1219 */ 1220 INGREDIENT, 1221 /** 1222 * Details of a Health Insurance product/plan provided by an organization. 1223 */ 1224 INSURANCEPLAN, 1225 /** 1226 * Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose. 1227 */ 1228 INVOICE, 1229 /** 1230 * The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets. 1231 */ 1232 LIBRARY, 1233 /** 1234 * Identifies two or more records (resource instances) that refer to the same real-world \"occurrence\". 1235 */ 1236 LINKAGE, 1237 /** 1238 * A list is a curated collection of resources. 1239 */ 1240 LIST, 1241 /** 1242 * Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated. 1243 */ 1244 LOCATION, 1245 /** 1246 * The definition and characteristics of a medicinal manufactured item, such as a tablet or capsule, as contained in a packaged medicinal product. 1247 */ 1248 MANUFACTUREDITEMDEFINITION, 1249 /** 1250 * The Measure resource provides the definition of a quality measure. 1251 */ 1252 MEASURE, 1253 /** 1254 * The MeasureReport resource contains the results of the calculation of a measure; and optionally a reference to the resources involved in that calculation. 1255 */ 1256 MEASUREREPORT, 1257 /** 1258 * This resource is primarily used for the identification and definition of a medication for the purposes of prescribing, dispensing, and administering a medication as well as for making statements about medication use. 1259 */ 1260 MEDICATION, 1261 /** 1262 * Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner. 1263 */ 1264 MEDICATIONADMINISTRATION, 1265 /** 1266 * Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order. 1267 */ 1268 MEDICATIONDISPENSE, 1269 /** 1270 * Information about a medication that is used to support knowledge. 1271 */ 1272 MEDICATIONKNOWLEDGE, 1273 /** 1274 * An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns. 1275 */ 1276 MEDICATIONREQUEST, 1277 /** 1278 * A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. \n\nThe primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information. 1279 */ 1280 MEDICATIONUSAGE, 1281 /** 1282 * Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use). 1283 */ 1284 MEDICINALPRODUCTDEFINITION, 1285 /** 1286 * Defines the characteristics of a message that can be shared between systems, including the type of event that initiates the message, the content to be transmitted and what response(s), if any, are permitted. 1287 */ 1288 MESSAGEDEFINITION, 1289 /** 1290 * The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle. 1291 */ 1292 MESSAGEHEADER, 1293 /** 1294 * Raw data describing a biological sequence. 1295 */ 1296 MOLECULARSEQUENCE, 1297 /** 1298 * A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a \"System\" used within the Identifier and Coding data types. 1299 */ 1300 NAMINGSYSTEM, 1301 /** 1302 * A record of food or fluid that is being consumed by a patient. A NutritionIntake may indicate that the patient may be consuming the food or fluid now or has consumed the food or fluid in the past. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay or through an app that tracks food or fluids consumed. The consumption information may come from sources such as the patient's memory, from a nutrition label, or from a clinician documenting observed intake. 1303 */ 1304 NUTRITIONINTAKE, 1305 /** 1306 * A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident. 1307 */ 1308 NUTRITIONORDER, 1309 /** 1310 * Measurements and simple assertions made about a patient, device or other subject. 1311 */ 1312 OBSERVATION, 1313 /** 1314 * Set of definitional characteristics for a kind of observation or measurement produced or consumed by an orderable health care service. 1315 */ 1316 OBSERVATIONDEFINITION, 1317 /** 1318 * A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction). 1319 */ 1320 OPERATIONDEFINITION, 1321 /** 1322 * A collection of error, warning, or information messages that result from a system action. 1323 */ 1324 OPERATIONOUTCOME, 1325 /** 1326 * A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, payer/insurer, etc. 1327 */ 1328 ORGANIZATION, 1329 /** 1330 * Defines an affiliation/assotiation/relationship between 2 distinct oganizations, that is not a part-of relationship/sub-division relationship. 1331 */ 1332 ORGANIZATIONAFFILIATION, 1333 /** 1334 * A medicinal product in a container or package. 1335 */ 1336 PACKAGEDPRODUCTDEFINITION, 1337 /** 1338 * This resource is a non-persisted resource used to pass information into and back from an [operation](operations.html). It has no other use, and there is no RESTful endpoint associated with it. 1339 */ 1340 PARAMETERS, 1341 /** 1342 * Demographics and other administrative information about an individual or animal receiving care or other health-related services. 1343 */ 1344 PATIENT, 1345 /** 1346 * This resource provides the status of the payment for goods and services rendered, and the request and response resource references. 1347 */ 1348 PAYMENTNOTICE, 1349 /** 1350 * This resource provides the details including amount of a payment and allocates the payment items being paid. 1351 */ 1352 PAYMENTRECONCILIATION, 1353 /** 1354 * Demographics and administrative information about a person independent of a specific health-related context. 1355 */ 1356 PERSON, 1357 /** 1358 * This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols. 1359 */ 1360 PLANDEFINITION, 1361 /** 1362 * A person who is directly or indirectly involved in the provisioning of healthcare. 1363 */ 1364 PRACTITIONER, 1365 /** 1366 * A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time. 1367 */ 1368 PRACTITIONERROLE, 1369 /** 1370 * An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy. 1371 */ 1372 PROCEDURE, 1373 /** 1374 * Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies. 1375 */ 1376 PROVENANCE, 1377 /** 1378 * A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection. 1379 */ 1380 QUESTIONNAIRE, 1381 /** 1382 * A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to. 1383 */ 1384 QUESTIONNAIRERESPONSE, 1385 /** 1386 * The regulatory authorization of a medicinal product. 1387 */ 1388 REGULATEDAUTHORIZATION, 1389 /** 1390 * Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process. 1391 */ 1392 RELATEDPERSON, 1393 /** 1394 * A group of related requests that can be used to capture intended activities that have inter-dependencies such as \"give this medication after that one\". 1395 */ 1396 REQUESTGROUP, 1397 /** 1398 * A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects. 1399 */ 1400 RESEARCHSTUDY, 1401 /** 1402 * A physical entity which is the primary unit of operational and/or administrative interest in a study. 1403 */ 1404 RESEARCHSUBJECT, 1405 /** 1406 * This is the base resource type for everything. 1407 */ 1408 RESOURCE, 1409 /** 1410 * An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome. 1411 */ 1412 RISKASSESSMENT, 1413 /** 1414 * A container for slots of time that may be available for booking appointments. 1415 */ 1416 SCHEDULE, 1417 /** 1418 * A search parameter that defines a named search item that can be used to search/filter on a resource. 1419 */ 1420 SEARCHPARAMETER, 1421 /** 1422 * A record of a request for service such as diagnostic investigations, treatments, or operations to be performed. 1423 */ 1424 SERVICEREQUEST, 1425 /** 1426 * A slot of time on a schedule that may be available for booking appointments. 1427 */ 1428 SLOT, 1429 /** 1430 * A sample to be used for analysis. 1431 */ 1432 SPECIMEN, 1433 /** 1434 * A kind of specimen with associated set of requirements. 1435 */ 1436 SPECIMENDEFINITION, 1437 /** 1438 * A definition of a FHIR structure. This resource is used to describe the underlying resources, data types defined in FHIR, and also for describing extensions and constraints on resources and data types. 1439 */ 1440 STRUCTUREDEFINITION, 1441 /** 1442 * A Map of relationships between 2 structures that can be used to transform data. 1443 */ 1444 STRUCTUREMAP, 1445 /** 1446 * The subscription resource describes a particular client's request to be notified about a Topic. 1447 */ 1448 SUBSCRIPTION, 1449 /** 1450 * A homogeneous material with a definite composition. 1451 */ 1452 SUBSTANCE, 1453 /** 1454 * The detailed description of a substance, typically at a level beyond what is used for prescribing. 1455 */ 1456 SUBSTANCEDEFINITION, 1457 /** 1458 * Nucleic acids are defined by three distinct elements: the base, sugar and linkage. Individual substance/moiety IDs will be created for each of these elements. The nucleotide sequence will be always entered in the 5’-3’ direction. 1459 */ 1460 SUBSTANCENUCLEICACID, 1461 /** 1462 * Todo. 1463 */ 1464 SUBSTANCEPOLYMER, 1465 /** 1466 * A SubstanceProtein is defined as a single unit of a linear amino acid sequence, or a combination of subunits that are either covalently linked or have a defined invariant stoichiometric relationship. This includes all synthetic, recombinant and purified SubstanceProteins of defined sequence, whether the use is therapeutic or prophylactic. This set of elements will be used to describe albumins, coagulation factors, cytokines, growth factors, peptide/SubstanceProtein hormones, enzymes, toxins, toxoids, recombinant vaccines, and immunomodulators. 1467 */ 1468 SUBSTANCEPROTEIN, 1469 /** 1470 * Todo. 1471 */ 1472 SUBSTANCEREFERENCEINFORMATION, 1473 /** 1474 * Source material shall capture information on the taxonomic and anatomical origins as well as the fraction of a material that can result in or can be modified to form a substance. This set of data elements shall be used to define polymer substances isolated from biological matrices. Taxonomic and anatomical origins shall be described using a controlled vocabulary as required. This information is captured for naturally derived polymers ( . starch) and structurally diverse substances. For Organisms belonging to the Kingdom Plantae the Substance level defines the fresh material of a single species or infraspecies, the Herbal Drug and the Herbal preparation. For Herbal preparations, the fraction information will be captured at the Substance information level and additional information for herbal extracts will be captured at the Specified Substance Group 1 information level. See for further explanation the Substance Class: Structurally Diverse and the herbal annex. 1475 */ 1476 SUBSTANCESOURCEMATERIAL, 1477 /** 1478 * Record of delivery of what is supplied. 1479 */ 1480 SUPPLYDELIVERY, 1481 /** 1482 * A record of a request for a medication, substance or device used in the healthcare setting. 1483 */ 1484 SUPPLYREQUEST, 1485 /** 1486 * A task to be performed. 1487 */ 1488 TASK, 1489 /** 1490 * A TerminologyCapabilities resource documents a set of capabilities (behaviors) of a FHIR Terminology Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation. 1491 */ 1492 TERMINOLOGYCAPABILITIES, 1493 /** 1494 * A summary of information based on the results of executing a TestScript. 1495 */ 1496 TESTREPORT, 1497 /** 1498 * A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification. 1499 */ 1500 TESTSCRIPT, 1501 /** 1502 * Describes a stream of resource state changes identified by trigger criteria and annotated with labels useful to filter projections from this topic. 1503 */ 1504 TOPIC, 1505 /** 1506 * A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded elements](terminologies.html). 1507 */ 1508 VALUESET, 1509 /** 1510 * Describes validation requirements, source(s), status and dates for one or more elements. 1511 */ 1512 VERIFICATIONRESULT, 1513 /** 1514 * An authorization for the provision of glasses and/or contact lenses to a patient. 1515 */ 1516 VISIONPRESCRIPTION, 1517 /** 1518 * added to help the parsers with the generic types 1519 */ 1520 NULL; 1521 public static FHIRDefinedType fromCode(String codeString) throws FHIRException { 1522 if (codeString == null || "".equals(codeString)) 1523 return null; 1524 if ("Address".equals(codeString)) 1525 return ADDRESS; 1526 if ("Age".equals(codeString)) 1527 return AGE; 1528 if ("Annotation".equals(codeString)) 1529 return ANNOTATION; 1530 if ("Attachment".equals(codeString)) 1531 return ATTACHMENT; 1532 if ("BackboneElement".equals(codeString)) 1533 return BACKBONEELEMENT; 1534 if ("BackboneType".equals(codeString)) 1535 return BACKBONETYPE; 1536 if ("Base".equals(codeString)) 1537 return BASE; 1538 if ("CodeableConcept".equals(codeString)) 1539 return CODEABLECONCEPT; 1540 if ("CodeableReference".equals(codeString)) 1541 return CODEABLEREFERENCE; 1542 if ("Coding".equals(codeString)) 1543 return CODING; 1544 if ("ContactDetail".equals(codeString)) 1545 return CONTACTDETAIL; 1546 if ("ContactPoint".equals(codeString)) 1547 return CONTACTPOINT; 1548 if ("Contributor".equals(codeString)) 1549 return CONTRIBUTOR; 1550 if ("Count".equals(codeString)) 1551 return COUNT; 1552 if ("DataRequirement".equals(codeString)) 1553 return DATAREQUIREMENT; 1554 if ("DataType".equals(codeString)) 1555 return DATATYPE; 1556 if ("Distance".equals(codeString)) 1557 return DISTANCE; 1558 if ("Dosage".equals(codeString)) 1559 return DOSAGE; 1560 if ("Duration".equals(codeString)) 1561 return DURATION; 1562 if ("Element".equals(codeString)) 1563 return ELEMENT; 1564 if ("ElementDefinition".equals(codeString)) 1565 return ELEMENTDEFINITION; 1566 if ("Expression".equals(codeString)) 1567 return EXPRESSION; 1568 if ("Extension".equals(codeString)) 1569 return EXTENSION; 1570 if ("HumanName".equals(codeString)) 1571 return HUMANNAME; 1572 if ("Identifier".equals(codeString)) 1573 return IDENTIFIER; 1574 if ("MarketingStatus".equals(codeString)) 1575 return MARKETINGSTATUS; 1576 if ("Meta".equals(codeString)) 1577 return META; 1578 if ("Money".equals(codeString)) 1579 return MONEY; 1580 if ("MoneyQuantity".equals(codeString)) 1581 return MONEYQUANTITY; 1582 if ("Narrative".equals(codeString)) 1583 return NARRATIVE; 1584 if ("OrderedDistribution".equals(codeString)) 1585 return ORDEREDDISTRIBUTION; 1586 if ("ParameterDefinition".equals(codeString)) 1587 return PARAMETERDEFINITION; 1588 if ("Period".equals(codeString)) 1589 return PERIOD; 1590 if ("Population".equals(codeString)) 1591 return POPULATION; 1592 if ("PrimitiveType".equals(codeString)) 1593 return PRIMITIVETYPE; 1594 if ("ProdCharacteristic".equals(codeString)) 1595 return PRODCHARACTERISTIC; 1596 if ("ProductShelfLife".equals(codeString)) 1597 return PRODUCTSHELFLIFE; 1598 if ("Quantity".equals(codeString)) 1599 return QUANTITY; 1600 if ("Range".equals(codeString)) 1601 return RANGE; 1602 if ("Ratio".equals(codeString)) 1603 return RATIO; 1604 if ("Reference".equals(codeString)) 1605 return REFERENCE; 1606 if ("RelatedArtifact".equals(codeString)) 1607 return RELATEDARTIFACT; 1608 if ("SampledData".equals(codeString)) 1609 return SAMPLEDDATA; 1610 if ("Signature".equals(codeString)) 1611 return SIGNATURE; 1612 if ("SimpleQuantity".equals(codeString)) 1613 return SIMPLEQUANTITY; 1614 if ("Statistic".equals(codeString)) 1615 return STATISTIC; 1616 if ("SubstanceAmount".equals(codeString)) 1617 return SUBSTANCEAMOUNT; 1618 if ("Timing".equals(codeString)) 1619 return TIMING; 1620 if ("TriggerDefinition".equals(codeString)) 1621 return TRIGGERDEFINITION; 1622 if ("UsageContext".equals(codeString)) 1623 return USAGECONTEXT; 1624 if ("base64Binary".equals(codeString)) 1625 return BASE64BINARY; 1626 if ("boolean".equals(codeString)) 1627 return BOOLEAN; 1628 if ("canonical".equals(codeString)) 1629 return CANONICAL; 1630 if ("code".equals(codeString)) 1631 return CODE; 1632 if ("date".equals(codeString)) 1633 return DATE; 1634 if ("dateTime".equals(codeString)) 1635 return DATETIME; 1636 if ("decimal".equals(codeString)) 1637 return DECIMAL; 1638 if ("id".equals(codeString)) 1639 return ID; 1640 if ("instant".equals(codeString)) 1641 return INSTANT; 1642 if ("integer".equals(codeString)) 1643 return INTEGER; 1644 if ("integer64".equals(codeString)) 1645 return INTEGER64; 1646 if ("markdown".equals(codeString)) 1647 return MARKDOWN; 1648 if ("oid".equals(codeString)) 1649 return OID; 1650 if ("positiveInt".equals(codeString)) 1651 return POSITIVEINT; 1652 if ("string".equals(codeString)) 1653 return STRING; 1654 if ("time".equals(codeString)) 1655 return TIME; 1656 if ("unsignedInt".equals(codeString)) 1657 return UNSIGNEDINT; 1658 if ("uri".equals(codeString)) 1659 return URI; 1660 if ("url".equals(codeString)) 1661 return URL; 1662 if ("uuid".equals(codeString)) 1663 return UUID; 1664 if ("xhtml".equals(codeString)) 1665 return XHTML; 1666 if ("Account".equals(codeString)) 1667 return ACCOUNT; 1668 if ("ActivityDefinition".equals(codeString)) 1669 return ACTIVITYDEFINITION; 1670 if ("AdministrableProductDefinition".equals(codeString)) 1671 return ADMINISTRABLEPRODUCTDEFINITION; 1672 if ("AdverseEvent".equals(codeString)) 1673 return ADVERSEEVENT; 1674 if ("AllergyIntolerance".equals(codeString)) 1675 return ALLERGYINTOLERANCE; 1676 if ("Appointment".equals(codeString)) 1677 return APPOINTMENT; 1678 if ("AppointmentResponse".equals(codeString)) 1679 return APPOINTMENTRESPONSE; 1680 if ("AuditEvent".equals(codeString)) 1681 return AUDITEVENT; 1682 if ("Basic".equals(codeString)) 1683 return BASIC; 1684 if ("Binary".equals(codeString)) 1685 return BINARY; 1686 if ("BiologicallyDerivedProduct".equals(codeString)) 1687 return BIOLOGICALLYDERIVEDPRODUCT; 1688 if ("BodyStructure".equals(codeString)) 1689 return BODYSTRUCTURE; 1690 if ("Bundle".equals(codeString)) 1691 return BUNDLE; 1692 if ("CapabilityStatement".equals(codeString)) 1693 return CAPABILITYSTATEMENT; 1694 if ("CapabilityStatement2".equals(codeString)) 1695 return CAPABILITYSTATEMENT2; 1696 if ("CarePlan".equals(codeString)) 1697 return CAREPLAN; 1698 if ("CareTeam".equals(codeString)) 1699 return CARETEAM; 1700 if ("CatalogEntry".equals(codeString)) 1701 return CATALOGENTRY; 1702 if ("ChargeItem".equals(codeString)) 1703 return CHARGEITEM; 1704 if ("ChargeItemDefinition".equals(codeString)) 1705 return CHARGEITEMDEFINITION; 1706 if ("Claim".equals(codeString)) 1707 return CLAIM; 1708 if ("ClaimResponse".equals(codeString)) 1709 return CLAIMRESPONSE; 1710 if ("ClinicalImpression".equals(codeString)) 1711 return CLINICALIMPRESSION; 1712 if ("ClinicalUseIssue".equals(codeString)) 1713 return CLINICALUSEISSUE; 1714 if ("CodeSystem".equals(codeString)) 1715 return CODESYSTEM; 1716 if ("Communication".equals(codeString)) 1717 return COMMUNICATION; 1718 if ("CommunicationRequest".equals(codeString)) 1719 return COMMUNICATIONREQUEST; 1720 if ("CompartmentDefinition".equals(codeString)) 1721 return COMPARTMENTDEFINITION; 1722 if ("Composition".equals(codeString)) 1723 return COMPOSITION; 1724 if ("ConceptMap".equals(codeString)) 1725 return CONCEPTMAP; 1726 if ("Condition".equals(codeString)) 1727 return CONDITION; 1728 if ("ConditionDefinition".equals(codeString)) 1729 return CONDITIONDEFINITION; 1730 if ("Consent".equals(codeString)) 1731 return CONSENT; 1732 if ("Contract".equals(codeString)) 1733 return CONTRACT; 1734 if ("Coverage".equals(codeString)) 1735 return COVERAGE; 1736 if ("CoverageEligibilityRequest".equals(codeString)) 1737 return COVERAGEELIGIBILITYREQUEST; 1738 if ("CoverageEligibilityResponse".equals(codeString)) 1739 return COVERAGEELIGIBILITYRESPONSE; 1740 if ("DetectedIssue".equals(codeString)) 1741 return DETECTEDISSUE; 1742 if ("Device".equals(codeString)) 1743 return DEVICE; 1744 if ("DeviceDefinition".equals(codeString)) 1745 return DEVICEDEFINITION; 1746 if ("DeviceMetric".equals(codeString)) 1747 return DEVICEMETRIC; 1748 if ("DeviceRequest".equals(codeString)) 1749 return DEVICEREQUEST; 1750 if ("DeviceUseStatement".equals(codeString)) 1751 return DEVICEUSESTATEMENT; 1752 if ("DiagnosticReport".equals(codeString)) 1753 return DIAGNOSTICREPORT; 1754 if ("DocumentManifest".equals(codeString)) 1755 return DOCUMENTMANIFEST; 1756 if ("DocumentReference".equals(codeString)) 1757 return DOCUMENTREFERENCE; 1758 if ("DomainResource".equals(codeString)) 1759 return DOMAINRESOURCE; 1760 if ("Encounter".equals(codeString)) 1761 return ENCOUNTER; 1762 if ("Endpoint".equals(codeString)) 1763 return ENDPOINT; 1764 if ("EnrollmentRequest".equals(codeString)) 1765 return ENROLLMENTREQUEST; 1766 if ("EnrollmentResponse".equals(codeString)) 1767 return ENROLLMENTRESPONSE; 1768 if ("EpisodeOfCare".equals(codeString)) 1769 return EPISODEOFCARE; 1770 if ("EventDefinition".equals(codeString)) 1771 return EVENTDEFINITION; 1772 if ("Evidence".equals(codeString)) 1773 return EVIDENCE; 1774 if ("EvidenceVariable".equals(codeString)) 1775 return EVIDENCEVARIABLE; 1776 if ("ExampleScenario".equals(codeString)) 1777 return EXAMPLESCENARIO; 1778 if ("ExplanationOfBenefit".equals(codeString)) 1779 return EXPLANATIONOFBENEFIT; 1780 if ("FamilyMemberHistory".equals(codeString)) 1781 return FAMILYMEMBERHISTORY; 1782 if ("Flag".equals(codeString)) 1783 return FLAG; 1784 if ("Goal".equals(codeString)) 1785 return GOAL; 1786 if ("GraphDefinition".equals(codeString)) 1787 return GRAPHDEFINITION; 1788 if ("Group".equals(codeString)) 1789 return GROUP; 1790 if ("GuidanceResponse".equals(codeString)) 1791 return GUIDANCERESPONSE; 1792 if ("HealthcareService".equals(codeString)) 1793 return HEALTHCARESERVICE; 1794 if ("ImagingStudy".equals(codeString)) 1795 return IMAGINGSTUDY; 1796 if ("Immunization".equals(codeString)) 1797 return IMMUNIZATION; 1798 if ("ImmunizationEvaluation".equals(codeString)) 1799 return IMMUNIZATIONEVALUATION; 1800 if ("ImmunizationRecommendation".equals(codeString)) 1801 return IMMUNIZATIONRECOMMENDATION; 1802 if ("ImplementationGuide".equals(codeString)) 1803 return IMPLEMENTATIONGUIDE; 1804 if ("Ingredient".equals(codeString)) 1805 return INGREDIENT; 1806 if ("InsurancePlan".equals(codeString)) 1807 return INSURANCEPLAN; 1808 if ("Invoice".equals(codeString)) 1809 return INVOICE; 1810 if ("Library".equals(codeString)) 1811 return LIBRARY; 1812 if ("Linkage".equals(codeString)) 1813 return LINKAGE; 1814 if ("List".equals(codeString)) 1815 return LIST; 1816 if ("Location".equals(codeString)) 1817 return LOCATION; 1818 if ("ManufacturedItemDefinition".equals(codeString)) 1819 return MANUFACTUREDITEMDEFINITION; 1820 if ("Measure".equals(codeString)) 1821 return MEASURE; 1822 if ("MeasureReport".equals(codeString)) 1823 return MEASUREREPORT; 1824 if ("Medication".equals(codeString)) 1825 return MEDICATION; 1826 if ("MedicationAdministration".equals(codeString)) 1827 return MEDICATIONADMINISTRATION; 1828 if ("MedicationDispense".equals(codeString)) 1829 return MEDICATIONDISPENSE; 1830 if ("MedicationKnowledge".equals(codeString)) 1831 return MEDICATIONKNOWLEDGE; 1832 if ("MedicationRequest".equals(codeString)) 1833 return MEDICATIONREQUEST; 1834 if ("MedicationUsage".equals(codeString)) 1835 return MEDICATIONUSAGE; 1836 if ("MedicinalProductDefinition".equals(codeString)) 1837 return MEDICINALPRODUCTDEFINITION; 1838 if ("MessageDefinition".equals(codeString)) 1839 return MESSAGEDEFINITION; 1840 if ("MessageHeader".equals(codeString)) 1841 return MESSAGEHEADER; 1842 if ("MolecularSequence".equals(codeString)) 1843 return MOLECULARSEQUENCE; 1844 if ("NamingSystem".equals(codeString)) 1845 return NAMINGSYSTEM; 1846 if ("NutritionIntake".equals(codeString)) 1847 return NUTRITIONINTAKE; 1848 if ("NutritionOrder".equals(codeString)) 1849 return NUTRITIONORDER; 1850 if ("Observation".equals(codeString)) 1851 return OBSERVATION; 1852 if ("ObservationDefinition".equals(codeString)) 1853 return OBSERVATIONDEFINITION; 1854 if ("OperationDefinition".equals(codeString)) 1855 return OPERATIONDEFINITION; 1856 if ("OperationOutcome".equals(codeString)) 1857 return OPERATIONOUTCOME; 1858 if ("Organization".equals(codeString)) 1859 return ORGANIZATION; 1860 if ("OrganizationAffiliation".equals(codeString)) 1861 return ORGANIZATIONAFFILIATION; 1862 if ("PackagedProductDefinition".equals(codeString)) 1863 return PACKAGEDPRODUCTDEFINITION; 1864 if ("Parameters".equals(codeString)) 1865 return PARAMETERS; 1866 if ("Patient".equals(codeString)) 1867 return PATIENT; 1868 if ("PaymentNotice".equals(codeString)) 1869 return PAYMENTNOTICE; 1870 if ("PaymentReconciliation".equals(codeString)) 1871 return PAYMENTRECONCILIATION; 1872 if ("Person".equals(codeString)) 1873 return PERSON; 1874 if ("PlanDefinition".equals(codeString)) 1875 return PLANDEFINITION; 1876 if ("Practitioner".equals(codeString)) 1877 return PRACTITIONER; 1878 if ("PractitionerRole".equals(codeString)) 1879 return PRACTITIONERROLE; 1880 if ("Procedure".equals(codeString)) 1881 return PROCEDURE; 1882 if ("Provenance".equals(codeString)) 1883 return PROVENANCE; 1884 if ("Questionnaire".equals(codeString)) 1885 return QUESTIONNAIRE; 1886 if ("QuestionnaireResponse".equals(codeString)) 1887 return QUESTIONNAIRERESPONSE; 1888 if ("RegulatedAuthorization".equals(codeString)) 1889 return REGULATEDAUTHORIZATION; 1890 if ("RelatedPerson".equals(codeString)) 1891 return RELATEDPERSON; 1892 if ("RequestGroup".equals(codeString)) 1893 return REQUESTGROUP; 1894 if ("ResearchStudy".equals(codeString)) 1895 return RESEARCHSTUDY; 1896 if ("ResearchSubject".equals(codeString)) 1897 return RESEARCHSUBJECT; 1898 if ("Resource".equals(codeString)) 1899 return RESOURCE; 1900 if ("RiskAssessment".equals(codeString)) 1901 return RISKASSESSMENT; 1902 if ("Schedule".equals(codeString)) 1903 return SCHEDULE; 1904 if ("SearchParameter".equals(codeString)) 1905 return SEARCHPARAMETER; 1906 if ("ServiceRequest".equals(codeString)) 1907 return SERVICEREQUEST; 1908 if ("Slot".equals(codeString)) 1909 return SLOT; 1910 if ("Specimen".equals(codeString)) 1911 return SPECIMEN; 1912 if ("SpecimenDefinition".equals(codeString)) 1913 return SPECIMENDEFINITION; 1914 if ("StructureDefinition".equals(codeString)) 1915 return STRUCTUREDEFINITION; 1916 if ("StructureMap".equals(codeString)) 1917 return STRUCTUREMAP; 1918 if ("Subscription".equals(codeString)) 1919 return SUBSCRIPTION; 1920 if ("Substance".equals(codeString)) 1921 return SUBSTANCE; 1922 if ("SubstanceDefinition".equals(codeString)) 1923 return SUBSTANCEDEFINITION; 1924 if ("SubstanceNucleicAcid".equals(codeString)) 1925 return SUBSTANCENUCLEICACID; 1926 if ("SubstancePolymer".equals(codeString)) 1927 return SUBSTANCEPOLYMER; 1928 if ("SubstanceProtein".equals(codeString)) 1929 return SUBSTANCEPROTEIN; 1930 if ("SubstanceReferenceInformation".equals(codeString)) 1931 return SUBSTANCEREFERENCEINFORMATION; 1932 if ("SubstanceSourceMaterial".equals(codeString)) 1933 return SUBSTANCESOURCEMATERIAL; 1934 if ("SupplyDelivery".equals(codeString)) 1935 return SUPPLYDELIVERY; 1936 if ("SupplyRequest".equals(codeString)) 1937 return SUPPLYREQUEST; 1938 if ("Task".equals(codeString)) 1939 return TASK; 1940 if ("TerminologyCapabilities".equals(codeString)) 1941 return TERMINOLOGYCAPABILITIES; 1942 if ("TestReport".equals(codeString)) 1943 return TESTREPORT; 1944 if ("TestScript".equals(codeString)) 1945 return TESTSCRIPT; 1946 if ("Topic".equals(codeString)) 1947 return TOPIC; 1948 if ("ValueSet".equals(codeString)) 1949 return VALUESET; 1950 if ("VerificationResult".equals(codeString)) 1951 return VERIFICATIONRESULT; 1952 if ("VisionPrescription".equals(codeString)) 1953 return VISIONPRESCRIPTION; 1954 if (Configuration.isAcceptInvalidEnums()) 1955 return null; 1956 else 1957 throw new FHIRException("Unknown FHIRDefinedType code '"+codeString+"'"); 1958 } 1959 public String toCode() { 1960 switch (this) { 1961 case ADDRESS: return "Address"; 1962 case AGE: return "Age"; 1963 case ANNOTATION: return "Annotation"; 1964 case ATTACHMENT: return "Attachment"; 1965 case BACKBONEELEMENT: return "BackboneElement"; 1966 case BACKBONETYPE: return "BackboneType"; 1967 case BASE: return "Base"; 1968 case CODEABLECONCEPT: return "CodeableConcept"; 1969 case CODEABLEREFERENCE: return "CodeableReference"; 1970 case CODING: return "Coding"; 1971 case CONTACTDETAIL: return "ContactDetail"; 1972 case CONTACTPOINT: return "ContactPoint"; 1973 case CONTRIBUTOR: return "Contributor"; 1974 case COUNT: return "Count"; 1975 case DATAREQUIREMENT: return "DataRequirement"; 1976 case DATATYPE: return "DataType"; 1977 case DISTANCE: return "Distance"; 1978 case DOSAGE: return "Dosage"; 1979 case DURATION: return "Duration"; 1980 case ELEMENT: return "Element"; 1981 case ELEMENTDEFINITION: return "ElementDefinition"; 1982 case EXPRESSION: return "Expression"; 1983 case EXTENSION: return "Extension"; 1984 case HUMANNAME: return "HumanName"; 1985 case IDENTIFIER: return "Identifier"; 1986 case MARKETINGSTATUS: return "MarketingStatus"; 1987 case META: return "Meta"; 1988 case MONEY: return "Money"; 1989 case MONEYQUANTITY: return "MoneyQuantity"; 1990 case NARRATIVE: return "Narrative"; 1991 case ORDEREDDISTRIBUTION: return "OrderedDistribution"; 1992 case PARAMETERDEFINITION: return "ParameterDefinition"; 1993 case PERIOD: return "Period"; 1994 case POPULATION: return "Population"; 1995 case PRIMITIVETYPE: return "PrimitiveType"; 1996 case PRODCHARACTERISTIC: return "ProdCharacteristic"; 1997 case PRODUCTSHELFLIFE: return "ProductShelfLife"; 1998 case QUANTITY: return "Quantity"; 1999 case RANGE: return "Range"; 2000 case RATIO: return "Ratio"; 2001 case REFERENCE: return "Reference"; 2002 case RELATEDARTIFACT: return "RelatedArtifact"; 2003 case SAMPLEDDATA: return "SampledData"; 2004 case SIGNATURE: return "Signature"; 2005 case SIMPLEQUANTITY: return "SimpleQuantity"; 2006 case STATISTIC: return "Statistic"; 2007 case SUBSTANCEAMOUNT: return "SubstanceAmount"; 2008 case TIMING: return "Timing"; 2009 case TRIGGERDEFINITION: return "TriggerDefinition"; 2010 case USAGECONTEXT: return "UsageContext"; 2011 case BASE64BINARY: return "base64Binary"; 2012 case BOOLEAN: return "boolean"; 2013 case CANONICAL: return "canonical"; 2014 case CODE: return "code"; 2015 case DATE: return "date"; 2016 case DATETIME: return "dateTime"; 2017 case DECIMAL: return "decimal"; 2018 case ID: return "id"; 2019 case INSTANT: return "instant"; 2020 case INTEGER: return "integer"; 2021 case INTEGER64: return "integer64"; 2022 case MARKDOWN: return "markdown"; 2023 case OID: return "oid"; 2024 case POSITIVEINT: return "positiveInt"; 2025 case STRING: return "string"; 2026 case TIME: return "time"; 2027 case UNSIGNEDINT: return "unsignedInt"; 2028 case URI: return "uri"; 2029 case URL: return "url"; 2030 case UUID: return "uuid"; 2031 case XHTML: return "xhtml"; 2032 case ACCOUNT: return "Account"; 2033 case ACTIVITYDEFINITION: return "ActivityDefinition"; 2034 case ADMINISTRABLEPRODUCTDEFINITION: return "AdministrableProductDefinition"; 2035 case ADVERSEEVENT: return "AdverseEvent"; 2036 case ALLERGYINTOLERANCE: return "AllergyIntolerance"; 2037 case APPOINTMENT: return "Appointment"; 2038 case APPOINTMENTRESPONSE: return "AppointmentResponse"; 2039 case AUDITEVENT: return "AuditEvent"; 2040 case BASIC: return "Basic"; 2041 case BINARY: return "Binary"; 2042 case BIOLOGICALLYDERIVEDPRODUCT: return "BiologicallyDerivedProduct"; 2043 case BODYSTRUCTURE: return "BodyStructure"; 2044 case BUNDLE: return "Bundle"; 2045 case CAPABILITYSTATEMENT: return "CapabilityStatement"; 2046 case CAPABILITYSTATEMENT2: return "CapabilityStatement2"; 2047 case CAREPLAN: return "CarePlan"; 2048 case CARETEAM: return "CareTeam"; 2049 case CATALOGENTRY: return "CatalogEntry"; 2050 case CHARGEITEM: return "ChargeItem"; 2051 case CHARGEITEMDEFINITION: return "ChargeItemDefinition"; 2052 case CLAIM: return "Claim"; 2053 case CLAIMRESPONSE: return "ClaimResponse"; 2054 case CLINICALIMPRESSION: return "ClinicalImpression"; 2055 case CLINICALUSEISSUE: return "ClinicalUseIssue"; 2056 case CODESYSTEM: return "CodeSystem"; 2057 case COMMUNICATION: return "Communication"; 2058 case COMMUNICATIONREQUEST: return "CommunicationRequest"; 2059 case COMPARTMENTDEFINITION: return "CompartmentDefinition"; 2060 case COMPOSITION: return "Composition"; 2061 case CONCEPTMAP: return "ConceptMap"; 2062 case CONDITION: return "Condition"; 2063 case CONDITIONDEFINITION: return "ConditionDefinition"; 2064 case CONSENT: return "Consent"; 2065 case CONTRACT: return "Contract"; 2066 case COVERAGE: return "Coverage"; 2067 case COVERAGEELIGIBILITYREQUEST: return "CoverageEligibilityRequest"; 2068 case COVERAGEELIGIBILITYRESPONSE: return "CoverageEligibilityResponse"; 2069 case DETECTEDISSUE: return "DetectedIssue"; 2070 case DEVICE: return "Device"; 2071 case DEVICEDEFINITION: return "DeviceDefinition"; 2072 case DEVICEMETRIC: return "DeviceMetric"; 2073 case DEVICEREQUEST: return "DeviceRequest"; 2074 case DEVICEUSESTATEMENT: return "DeviceUseStatement"; 2075 case DIAGNOSTICREPORT: return "DiagnosticReport"; 2076 case DOCUMENTMANIFEST: return "DocumentManifest"; 2077 case DOCUMENTREFERENCE: return "DocumentReference"; 2078 case DOMAINRESOURCE: return "DomainResource"; 2079 case ENCOUNTER: return "Encounter"; 2080 case ENDPOINT: return "Endpoint"; 2081 case ENROLLMENTREQUEST: return "EnrollmentRequest"; 2082 case ENROLLMENTRESPONSE: return "EnrollmentResponse"; 2083 case EPISODEOFCARE: return "EpisodeOfCare"; 2084 case EVENTDEFINITION: return "EventDefinition"; 2085 case EVIDENCE: return "Evidence"; 2086 case EVIDENCEVARIABLE: return "EvidenceVariable"; 2087 case EXAMPLESCENARIO: return "ExampleScenario"; 2088 case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit"; 2089 case FAMILYMEMBERHISTORY: return "FamilyMemberHistory"; 2090 case FLAG: return "Flag"; 2091 case GOAL: return "Goal"; 2092 case GRAPHDEFINITION: return "GraphDefinition"; 2093 case GROUP: return "Group"; 2094 case GUIDANCERESPONSE: return "GuidanceResponse"; 2095 case HEALTHCARESERVICE: return "HealthcareService"; 2096 case IMAGINGSTUDY: return "ImagingStudy"; 2097 case IMMUNIZATION: return "Immunization"; 2098 case IMMUNIZATIONEVALUATION: return "ImmunizationEvaluation"; 2099 case IMMUNIZATIONRECOMMENDATION: return "ImmunizationRecommendation"; 2100 case IMPLEMENTATIONGUIDE: return "ImplementationGuide"; 2101 case INGREDIENT: return "Ingredient"; 2102 case INSURANCEPLAN: return "InsurancePlan"; 2103 case INVOICE: return "Invoice"; 2104 case LIBRARY: return "Library"; 2105 case LINKAGE: return "Linkage"; 2106 case LIST: return "List"; 2107 case LOCATION: return "Location"; 2108 case MANUFACTUREDITEMDEFINITION: return "ManufacturedItemDefinition"; 2109 case MEASURE: return "Measure"; 2110 case MEASUREREPORT: return "MeasureReport"; 2111 case MEDICATION: return "Medication"; 2112 case MEDICATIONADMINISTRATION: return "MedicationAdministration"; 2113 case MEDICATIONDISPENSE: return "MedicationDispense"; 2114 case MEDICATIONKNOWLEDGE: return "MedicationKnowledge"; 2115 case MEDICATIONREQUEST: return "MedicationRequest"; 2116 case MEDICATIONUSAGE: return "MedicationUsage"; 2117 case MEDICINALPRODUCTDEFINITION: return "MedicinalProductDefinition"; 2118 case MESSAGEDEFINITION: return "MessageDefinition"; 2119 case MESSAGEHEADER: return "MessageHeader"; 2120 case MOLECULARSEQUENCE: return "MolecularSequence"; 2121 case NAMINGSYSTEM: return "NamingSystem"; 2122 case NUTRITIONINTAKE: return "NutritionIntake"; 2123 case NUTRITIONORDER: return "NutritionOrder"; 2124 case OBSERVATION: return "Observation"; 2125 case OBSERVATIONDEFINITION: return "ObservationDefinition"; 2126 case OPERATIONDEFINITION: return "OperationDefinition"; 2127 case OPERATIONOUTCOME: return "OperationOutcome"; 2128 case ORGANIZATION: return "Organization"; 2129 case ORGANIZATIONAFFILIATION: return "OrganizationAffiliation"; 2130 case PACKAGEDPRODUCTDEFINITION: return "PackagedProductDefinition"; 2131 case PARAMETERS: return "Parameters"; 2132 case PATIENT: return "Patient"; 2133 case PAYMENTNOTICE: return "PaymentNotice"; 2134 case PAYMENTRECONCILIATION: return "PaymentReconciliation"; 2135 case PERSON: return "Person"; 2136 case PLANDEFINITION: return "PlanDefinition"; 2137 case PRACTITIONER: return "Practitioner"; 2138 case PRACTITIONERROLE: return "PractitionerRole"; 2139 case PROCEDURE: return "Procedure"; 2140 case PROVENANCE: return "Provenance"; 2141 case QUESTIONNAIRE: return "Questionnaire"; 2142 case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse"; 2143 case REGULATEDAUTHORIZATION: return "RegulatedAuthorization"; 2144 case RELATEDPERSON: return "RelatedPerson"; 2145 case REQUESTGROUP: return "RequestGroup"; 2146 case RESEARCHSTUDY: return "ResearchStudy"; 2147 case RESEARCHSUBJECT: return "ResearchSubject"; 2148 case RESOURCE: return "Resource"; 2149 case RISKASSESSMENT: return "RiskAssessment"; 2150 case SCHEDULE: return "Schedule"; 2151 case SEARCHPARAMETER: return "SearchParameter"; 2152 case SERVICEREQUEST: return "ServiceRequest"; 2153 case SLOT: return "Slot"; 2154 case SPECIMEN: return "Specimen"; 2155 case SPECIMENDEFINITION: return "SpecimenDefinition"; 2156 case STRUCTUREDEFINITION: return "StructureDefinition"; 2157 case STRUCTUREMAP: return "StructureMap"; 2158 case SUBSCRIPTION: return "Subscription"; 2159 case SUBSTANCE: return "Substance"; 2160 case SUBSTANCEDEFINITION: return "SubstanceDefinition"; 2161 case SUBSTANCENUCLEICACID: return "SubstanceNucleicAcid"; 2162 case SUBSTANCEPOLYMER: return "SubstancePolymer"; 2163 case SUBSTANCEPROTEIN: return "SubstanceProtein"; 2164 case SUBSTANCEREFERENCEINFORMATION: return "SubstanceReferenceInformation"; 2165 case SUBSTANCESOURCEMATERIAL: return "SubstanceSourceMaterial"; 2166 case SUPPLYDELIVERY: return "SupplyDelivery"; 2167 case SUPPLYREQUEST: return "SupplyRequest"; 2168 case TASK: return "Task"; 2169 case TERMINOLOGYCAPABILITIES: return "TerminologyCapabilities"; 2170 case TESTREPORT: return "TestReport"; 2171 case TESTSCRIPT: return "TestScript"; 2172 case TOPIC: return "Topic"; 2173 case VALUESET: return "ValueSet"; 2174 case VERIFICATIONRESULT: return "VerificationResult"; 2175 case VISIONPRESCRIPTION: return "VisionPrescription"; 2176 default: return "?"; 2177 } 2178 } 2179 public String getSystem() { 2180 switch (this) { 2181 case ADDRESS: return "http://hl7.org/fhir/data-types"; 2182 case AGE: return "http://hl7.org/fhir/data-types"; 2183 case ANNOTATION: return "http://hl7.org/fhir/data-types"; 2184 case ATTACHMENT: return "http://hl7.org/fhir/data-types"; 2185 case BACKBONEELEMENT: return "http://hl7.org/fhir/data-types"; 2186 case BACKBONETYPE: return "http://hl7.org/fhir/data-types"; 2187 case BASE: return "http://hl7.org/fhir/data-types"; 2188 case CODEABLECONCEPT: return "http://hl7.org/fhir/data-types"; 2189 case CODEABLEREFERENCE: return "http://hl7.org/fhir/data-types"; 2190 case CODING: return "http://hl7.org/fhir/data-types"; 2191 case CONTACTDETAIL: return "http://hl7.org/fhir/data-types"; 2192 case CONTACTPOINT: return "http://hl7.org/fhir/data-types"; 2193 case CONTRIBUTOR: return "http://hl7.org/fhir/data-types"; 2194 case COUNT: return "http://hl7.org/fhir/data-types"; 2195 case DATAREQUIREMENT: return "http://hl7.org/fhir/data-types"; 2196 case DATATYPE: return "http://hl7.org/fhir/data-types"; 2197 case DISTANCE: return "http://hl7.org/fhir/data-types"; 2198 case DOSAGE: return "http://hl7.org/fhir/data-types"; 2199 case DURATION: return "http://hl7.org/fhir/data-types"; 2200 case ELEMENT: return "http://hl7.org/fhir/data-types"; 2201 case ELEMENTDEFINITION: return "http://hl7.org/fhir/data-types"; 2202 case EXPRESSION: return "http://hl7.org/fhir/data-types"; 2203 case EXTENSION: return "http://hl7.org/fhir/data-types"; 2204 case HUMANNAME: return "http://hl7.org/fhir/data-types"; 2205 case IDENTIFIER: return "http://hl7.org/fhir/data-types"; 2206 case MARKETINGSTATUS: return "http://hl7.org/fhir/data-types"; 2207 case META: return "http://hl7.org/fhir/data-types"; 2208 case MONEY: return "http://hl7.org/fhir/data-types"; 2209 case MONEYQUANTITY: return "http://hl7.org/fhir/data-types"; 2210 case NARRATIVE: return "http://hl7.org/fhir/data-types"; 2211 case ORDEREDDISTRIBUTION: return "http://hl7.org/fhir/data-types"; 2212 case PARAMETERDEFINITION: return "http://hl7.org/fhir/data-types"; 2213 case PERIOD: return "http://hl7.org/fhir/data-types"; 2214 case POPULATION: return "http://hl7.org/fhir/data-types"; 2215 case PRIMITIVETYPE: return "http://hl7.org/fhir/data-types"; 2216 case PRODCHARACTERISTIC: return "http://hl7.org/fhir/data-types"; 2217 case PRODUCTSHELFLIFE: return "http://hl7.org/fhir/data-types"; 2218 case QUANTITY: return "http://hl7.org/fhir/data-types"; 2219 case RANGE: return "http://hl7.org/fhir/data-types"; 2220 case RATIO: return "http://hl7.org/fhir/data-types"; 2221 case REFERENCE: return "http://hl7.org/fhir/data-types"; 2222 case RELATEDARTIFACT: return "http://hl7.org/fhir/data-types"; 2223 case SAMPLEDDATA: return "http://hl7.org/fhir/data-types"; 2224 case SIGNATURE: return "http://hl7.org/fhir/data-types"; 2225 case SIMPLEQUANTITY: return "http://hl7.org/fhir/data-types"; 2226 case STATISTIC: return "http://hl7.org/fhir/data-types"; 2227 case SUBSTANCEAMOUNT: return "http://hl7.org/fhir/data-types"; 2228 case TIMING: return "http://hl7.org/fhir/data-types"; 2229 case TRIGGERDEFINITION: return "http://hl7.org/fhir/data-types"; 2230 case USAGECONTEXT: return "http://hl7.org/fhir/data-types"; 2231 case BASE64BINARY: return "http://hl7.org/fhir/data-types"; 2232 case BOOLEAN: return "http://hl7.org/fhir/data-types"; 2233 case CANONICAL: return "http://hl7.org/fhir/data-types"; 2234 case CODE: return "http://hl7.org/fhir/data-types"; 2235 case DATE: return "http://hl7.org/fhir/data-types"; 2236 case DATETIME: return "http://hl7.org/fhir/data-types"; 2237 case DECIMAL: return "http://hl7.org/fhir/data-types"; 2238 case ID: return "http://hl7.org/fhir/data-types"; 2239 case INSTANT: return "http://hl7.org/fhir/data-types"; 2240 case INTEGER: return "http://hl7.org/fhir/data-types"; 2241 case INTEGER64: return "http://hl7.org/fhir/data-types"; 2242 case MARKDOWN: return "http://hl7.org/fhir/data-types"; 2243 case OID: return "http://hl7.org/fhir/data-types"; 2244 case POSITIVEINT: return "http://hl7.org/fhir/data-types"; 2245 case STRING: return "http://hl7.org/fhir/data-types"; 2246 case TIME: return "http://hl7.org/fhir/data-types"; 2247 case UNSIGNEDINT: return "http://hl7.org/fhir/data-types"; 2248 case URI: return "http://hl7.org/fhir/data-types"; 2249 case URL: return "http://hl7.org/fhir/data-types"; 2250 case UUID: return "http://hl7.org/fhir/data-types"; 2251 case XHTML: return "http://hl7.org/fhir/data-types"; 2252 case ACCOUNT: return "http://hl7.org/fhir/resource-types"; 2253 case ACTIVITYDEFINITION: return "http://hl7.org/fhir/resource-types"; 2254 case ADMINISTRABLEPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types"; 2255 case ADVERSEEVENT: return "http://hl7.org/fhir/resource-types"; 2256 case ALLERGYINTOLERANCE: return "http://hl7.org/fhir/resource-types"; 2257 case APPOINTMENT: return "http://hl7.org/fhir/resource-types"; 2258 case APPOINTMENTRESPONSE: return "http://hl7.org/fhir/resource-types"; 2259 case AUDITEVENT: return "http://hl7.org/fhir/resource-types"; 2260 case BASIC: return "http://hl7.org/fhir/resource-types"; 2261 case BINARY: return "http://hl7.org/fhir/resource-types"; 2262 case BIOLOGICALLYDERIVEDPRODUCT: return "http://hl7.org/fhir/resource-types"; 2263 case BODYSTRUCTURE: return "http://hl7.org/fhir/resource-types"; 2264 case BUNDLE: return "http://hl7.org/fhir/resource-types"; 2265 case CAPABILITYSTATEMENT: return "http://hl7.org/fhir/resource-types"; 2266 case CAPABILITYSTATEMENT2: return "http://hl7.org/fhir/resource-types"; 2267 case CAREPLAN: return "http://hl7.org/fhir/resource-types"; 2268 case CARETEAM: return "http://hl7.org/fhir/resource-types"; 2269 case CATALOGENTRY: return "http://hl7.org/fhir/resource-types"; 2270 case CHARGEITEM: return "http://hl7.org/fhir/resource-types"; 2271 case CHARGEITEMDEFINITION: return "http://hl7.org/fhir/resource-types"; 2272 case CLAIM: return "http://hl7.org/fhir/resource-types"; 2273 case CLAIMRESPONSE: return "http://hl7.org/fhir/resource-types"; 2274 case CLINICALIMPRESSION: return "http://hl7.org/fhir/resource-types"; 2275 case CLINICALUSEISSUE: return "http://hl7.org/fhir/resource-types"; 2276 case CODESYSTEM: return "http://hl7.org/fhir/resource-types"; 2277 case COMMUNICATION: return "http://hl7.org/fhir/resource-types"; 2278 case COMMUNICATIONREQUEST: return "http://hl7.org/fhir/resource-types"; 2279 case COMPARTMENTDEFINITION: return "http://hl7.org/fhir/resource-types"; 2280 case COMPOSITION: return "http://hl7.org/fhir/resource-types"; 2281 case CONCEPTMAP: return "http://hl7.org/fhir/resource-types"; 2282 case CONDITION: return "http://hl7.org/fhir/resource-types"; 2283 case CONDITIONDEFINITION: return "http://hl7.org/fhir/resource-types"; 2284 case CONSENT: return "http://hl7.org/fhir/resource-types"; 2285 case CONTRACT: return "http://hl7.org/fhir/resource-types"; 2286 case COVERAGE: return "http://hl7.org/fhir/resource-types"; 2287 case COVERAGEELIGIBILITYREQUEST: return "http://hl7.org/fhir/resource-types"; 2288 case COVERAGEELIGIBILITYRESPONSE: return "http://hl7.org/fhir/resource-types"; 2289 case DETECTEDISSUE: return "http://hl7.org/fhir/resource-types"; 2290 case DEVICE: return "http://hl7.org/fhir/resource-types"; 2291 case DEVICEDEFINITION: return "http://hl7.org/fhir/resource-types"; 2292 case DEVICEMETRIC: return "http://hl7.org/fhir/resource-types"; 2293 case DEVICEREQUEST: return "http://hl7.org/fhir/resource-types"; 2294 case DEVICEUSESTATEMENT: return "http://hl7.org/fhir/resource-types"; 2295 case DIAGNOSTICREPORT: return "http://hl7.org/fhir/resource-types"; 2296 case DOCUMENTMANIFEST: return "http://hl7.org/fhir/resource-types"; 2297 case DOCUMENTREFERENCE: return "http://hl7.org/fhir/resource-types"; 2298 case DOMAINRESOURCE: return "http://hl7.org/fhir/resource-types"; 2299 case ENCOUNTER: return "http://hl7.org/fhir/resource-types"; 2300 case ENDPOINT: return "http://hl7.org/fhir/resource-types"; 2301 case ENROLLMENTREQUEST: return "http://hl7.org/fhir/resource-types"; 2302 case ENROLLMENTRESPONSE: return "http://hl7.org/fhir/resource-types"; 2303 case EPISODEOFCARE: return "http://hl7.org/fhir/resource-types"; 2304 case EVENTDEFINITION: return "http://hl7.org/fhir/resource-types"; 2305 case EVIDENCE: return "http://hl7.org/fhir/resource-types"; 2306 case EVIDENCEVARIABLE: return "http://hl7.org/fhir/resource-types"; 2307 case EXAMPLESCENARIO: return "http://hl7.org/fhir/resource-types"; 2308 case EXPLANATIONOFBENEFIT: return "http://hl7.org/fhir/resource-types"; 2309 case FAMILYMEMBERHISTORY: return "http://hl7.org/fhir/resource-types"; 2310 case FLAG: return "http://hl7.org/fhir/resource-types"; 2311 case GOAL: return "http://hl7.org/fhir/resource-types"; 2312 case GRAPHDEFINITION: return "http://hl7.org/fhir/resource-types"; 2313 case GROUP: return "http://hl7.org/fhir/resource-types"; 2314 case GUIDANCERESPONSE: return "http://hl7.org/fhir/resource-types"; 2315 case HEALTHCARESERVICE: return "http://hl7.org/fhir/resource-types"; 2316 case IMAGINGSTUDY: return "http://hl7.org/fhir/resource-types"; 2317 case IMMUNIZATION: return "http://hl7.org/fhir/resource-types"; 2318 case IMMUNIZATIONEVALUATION: return "http://hl7.org/fhir/resource-types"; 2319 case IMMUNIZATIONRECOMMENDATION: return "http://hl7.org/fhir/resource-types"; 2320 case IMPLEMENTATIONGUIDE: return "http://hl7.org/fhir/resource-types"; 2321 case INGREDIENT: return "http://hl7.org/fhir/resource-types"; 2322 case INSURANCEPLAN: return "http://hl7.org/fhir/resource-types"; 2323 case INVOICE: return "http://hl7.org/fhir/resource-types"; 2324 case LIBRARY: return "http://hl7.org/fhir/resource-types"; 2325 case LINKAGE: return "http://hl7.org/fhir/resource-types"; 2326 case LIST: return "http://hl7.org/fhir/resource-types"; 2327 case LOCATION: return "http://hl7.org/fhir/resource-types"; 2328 case MANUFACTUREDITEMDEFINITION: return "http://hl7.org/fhir/resource-types"; 2329 case MEASURE: return "http://hl7.org/fhir/resource-types"; 2330 case MEASUREREPORT: return "http://hl7.org/fhir/resource-types"; 2331 case MEDICATION: return "http://hl7.org/fhir/resource-types"; 2332 case MEDICATIONADMINISTRATION: return "http://hl7.org/fhir/resource-types"; 2333 case MEDICATIONDISPENSE: return "http://hl7.org/fhir/resource-types"; 2334 case MEDICATIONKNOWLEDGE: return "http://hl7.org/fhir/resource-types"; 2335 case MEDICATIONREQUEST: return "http://hl7.org/fhir/resource-types"; 2336 case MEDICATIONUSAGE: return "http://hl7.org/fhir/resource-types"; 2337 case MEDICINALPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types"; 2338 case MESSAGEDEFINITION: return "http://hl7.org/fhir/resource-types"; 2339 case MESSAGEHEADER: return "http://hl7.org/fhir/resource-types"; 2340 case MOLECULARSEQUENCE: return "http://hl7.org/fhir/resource-types"; 2341 case NAMINGSYSTEM: return "http://hl7.org/fhir/resource-types"; 2342 case NUTRITIONINTAKE: return "http://hl7.org/fhir/resource-types"; 2343 case NUTRITIONORDER: return "http://hl7.org/fhir/resource-types"; 2344 case OBSERVATION: return "http://hl7.org/fhir/resource-types"; 2345 case OBSERVATIONDEFINITION: return "http://hl7.org/fhir/resource-types"; 2346 case OPERATIONDEFINITION: return "http://hl7.org/fhir/resource-types"; 2347 case OPERATIONOUTCOME: return "http://hl7.org/fhir/resource-types"; 2348 case ORGANIZATION: return "http://hl7.org/fhir/resource-types"; 2349 case ORGANIZATIONAFFILIATION: return "http://hl7.org/fhir/resource-types"; 2350 case PACKAGEDPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types"; 2351 case PARAMETERS: return "http://hl7.org/fhir/resource-types"; 2352 case PATIENT: return "http://hl7.org/fhir/resource-types"; 2353 case PAYMENTNOTICE: return "http://hl7.org/fhir/resource-types"; 2354 case PAYMENTRECONCILIATION: return "http://hl7.org/fhir/resource-types"; 2355 case PERSON: return "http://hl7.org/fhir/resource-types"; 2356 case PLANDEFINITION: return "http://hl7.org/fhir/resource-types"; 2357 case PRACTITIONER: return "http://hl7.org/fhir/resource-types"; 2358 case PRACTITIONERROLE: return "http://hl7.org/fhir/resource-types"; 2359 case PROCEDURE: return "http://hl7.org/fhir/resource-types"; 2360 case PROVENANCE: return "http://hl7.org/fhir/resource-types"; 2361 case QUESTIONNAIRE: return "http://hl7.org/fhir/resource-types"; 2362 case QUESTIONNAIRERESPONSE: return "http://hl7.org/fhir/resource-types"; 2363 case REGULATEDAUTHORIZATION: return "http://hl7.org/fhir/resource-types"; 2364 case RELATEDPERSON: return "http://hl7.org/fhir/resource-types"; 2365 case REQUESTGROUP: return "http://hl7.org/fhir/resource-types"; 2366 case RESEARCHSTUDY: return "http://hl7.org/fhir/resource-types"; 2367 case RESEARCHSUBJECT: return "http://hl7.org/fhir/resource-types"; 2368 case RESOURCE: return "http://hl7.org/fhir/resource-types"; 2369 case RISKASSESSMENT: return "http://hl7.org/fhir/resource-types"; 2370 case SCHEDULE: return "http://hl7.org/fhir/resource-types"; 2371 case SEARCHPARAMETER: return "http://hl7.org/fhir/resource-types"; 2372 case SERVICEREQUEST: return "http://hl7.org/fhir/resource-types"; 2373 case SLOT: return "http://hl7.org/fhir/resource-types"; 2374 case SPECIMEN: return "http://hl7.org/fhir/resource-types"; 2375 case SPECIMENDEFINITION: return "http://hl7.org/fhir/resource-types"; 2376 case STRUCTUREDEFINITION: return "http://hl7.org/fhir/resource-types"; 2377 case STRUCTUREMAP: return "http://hl7.org/fhir/resource-types"; 2378 case SUBSCRIPTION: return "http://hl7.org/fhir/resource-types"; 2379 case SUBSTANCE: return "http://hl7.org/fhir/resource-types"; 2380 case SUBSTANCEDEFINITION: return "http://hl7.org/fhir/resource-types"; 2381 case SUBSTANCENUCLEICACID: return "http://hl7.org/fhir/resource-types"; 2382 case SUBSTANCEPOLYMER: return "http://hl7.org/fhir/resource-types"; 2383 case SUBSTANCEPROTEIN: return "http://hl7.org/fhir/resource-types"; 2384 case SUBSTANCEREFERENCEINFORMATION: return "http://hl7.org/fhir/resource-types"; 2385 case SUBSTANCESOURCEMATERIAL: return "http://hl7.org/fhir/resource-types"; 2386 case SUPPLYDELIVERY: return "http://hl7.org/fhir/resource-types"; 2387 case SUPPLYREQUEST: return "http://hl7.org/fhir/resource-types"; 2388 case TASK: return "http://hl7.org/fhir/resource-types"; 2389 case TERMINOLOGYCAPABILITIES: return "http://hl7.org/fhir/resource-types"; 2390 case TESTREPORT: return "http://hl7.org/fhir/resource-types"; 2391 case TESTSCRIPT: return "http://hl7.org/fhir/resource-types"; 2392 case TOPIC: return "http://hl7.org/fhir/resource-types"; 2393 case VALUESET: return "http://hl7.org/fhir/resource-types"; 2394 case VERIFICATIONRESULT: return "http://hl7.org/fhir/resource-types"; 2395 case VISIONPRESCRIPTION: return "http://hl7.org/fhir/resource-types"; 2396 default: return "?"; 2397 } 2398 } 2399 public String getDefinition() { 2400 switch (this) { 2401 case ADDRESS: return "An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world."; 2402 case AGE: return "A duration of time during which an organism (or a process) has existed."; 2403 case ANNOTATION: return "A text note which also contains information about who made the statement and when."; 2404 case ATTACHMENT: return "For referring to data content defined in other formats."; 2405 case BACKBONEELEMENT: return "Base definition for all elements that are defined inside a resource - but not those in a data type."; 2406 case BACKBONETYPE: return "Base definition for the few data types that are allowed to carry modifier extensions."; 2407 case BASE: return "Base definition for all types defined in FHIR type system."; 2408 case CODEABLECONCEPT: return "A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text."; 2409 case CODEABLEREFERENCE: return "A reference to a resource (by instance), or instead, a reference to a cencept defined in a terminology or ontology (by class)."; 2410 case CODING: return "A reference to a code defined by a terminology system."; 2411 case CONTACTDETAIL: return "Specifies contact information for a person or organization."; 2412 case CONTACTPOINT: return "Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc."; 2413 case CONTRIBUTOR: return "A contributor to the content of a knowledge asset, including authors, editors, reviewers, and endorsers."; 2414 case COUNT: return "A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies."; 2415 case DATAREQUIREMENT: return "Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data."; 2416 case DATATYPE: return "The base class for all re-useable types defined as part of the FHIR Specification."; 2417 case DISTANCE: return "A length - a value with a unit that is a physical distance."; 2418 case DOSAGE: return "Indicates how the medication is/was taken or should be taken by the patient."; 2419 case DURATION: return "A length of time."; 2420 case ELEMENT: return "Base definition for all elements in a resource."; 2421 case ELEMENTDEFINITION: return "Captures constraints on each element within the resource, profile, or extension."; 2422 case EXPRESSION: return "A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used."; 2423 case EXTENSION: return "Optional Extension Element - found in all resources."; 2424 case HUMANNAME: return "A human's name with the ability to identify parts and usage."; 2425 case IDENTIFIER: return "An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."; 2426 case MARKETINGSTATUS: return "The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available."; 2427 case META: return "The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource."; 2428 case MONEY: return "An amount of economic utility in some recognized currency."; 2429 case MONEYQUANTITY: return ""; 2430 case NARRATIVE: return "A human-readable summary of the resource conveying the essential clinical and business information for the resource."; 2431 case ORDEREDDISTRIBUTION: return "An ordered list (distribution) of statistics."; 2432 case PARAMETERDEFINITION: return "The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse."; 2433 case PERIOD: return "A time period defined by a start and end date and optionally time."; 2434 case POPULATION: return "A populatioof people with some set of grouping criteria."; 2435 case PRIMITIVETYPE: return "The base type for all re-useable types defined that have a simple property."; 2436 case PRODCHARACTERISTIC: return "The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available."; 2437 case PRODUCTSHELFLIFE: return "The shelf-life and storage information for a medicinal product item or container can be described using this class."; 2438 case QUANTITY: return "A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies."; 2439 case RANGE: return "A set of ordered Quantities defined by a low and high limit."; 2440 case RATIO: return "A relationship of two Quantity values - expressed as a numerator and a denominator."; 2441 case REFERENCE: return "A reference from one resource to another."; 2442 case RELATEDARTIFACT: return "Related artifacts such as additional documentation, justification, or bibliographic references."; 2443 case SAMPLEDDATA: return "A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data."; 2444 case SIGNATURE: return "A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities."; 2445 case SIMPLEQUANTITY: return ""; 2446 case STATISTIC: return "A fact or piece of data from a study of a large quantity of numerical data. A mathematical or quantified characteristic of a group of observations."; 2447 case SUBSTANCEAMOUNT: return "Chemical substances are a single substance type whose primary defining element is the molecular structure. Chemical substances shall be defined on the basis of their complete covalent molecular structure; the presence of a salt (counter-ion) and/or solvates (water, alcohols) is also captured. Purity, grade, physical form or particle size are not taken into account in the definition of a chemical substance or in the assignment of a Substance ID."; 2448 case TIMING: return "Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out."; 2449 case TRIGGERDEFINITION: return "A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element."; 2450 case USAGECONTEXT: return "Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care)."; 2451 case BASE64BINARY: return "A stream of bytes"; 2452 case BOOLEAN: return "Value of \"true\" or \"false\""; 2453 case CANONICAL: return "A URI that is a reference to a canonical URL on a FHIR resource"; 2454 case CODE: return "A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents"; 2455 case DATE: return "A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates."; 2456 case DATETIME: return "A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates."; 2457 case DECIMAL: return "A rational number with implicit precision"; 2458 case ID: return "Any combination of letters, numerals, \"-\" and \".\", with a length limit of 64 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Ids are case-insensitive."; 2459 case INSTANT: return "An instant in time - known at least to the second"; 2460 case INTEGER: return "A whole number"; 2461 case INTEGER64: return "A very large whole number"; 2462 case MARKDOWN: return "A string that may contain Github Flavored Markdown syntax for optional processing by a mark down presentation engine"; 2463 case OID: return "An OID represented as a URI"; 2464 case POSITIVEINT: return "An integer with a value that is positive (e.g. >0)"; 2465 case STRING: return "A sequence of Unicode characters"; 2466 case TIME: return "A time during the day, with no date specified"; 2467 case UNSIGNEDINT: return "An integer with a value that is not negative (e.g. >= 0)"; 2468 case URI: return "String of characters used to identify a name or a resource"; 2469 case URL: return "A URI that is a literal reference"; 2470 case UUID: return "A UUID, represented as a URI"; 2471 case XHTML: return "XHTML format, as defined by W3C, but restricted usage (mainly, no active content)"; 2472 case ACCOUNT: return "A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centers, etc."; 2473 case ACTIVITYDEFINITION: return "This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context."; 2474 case ADMINISTRABLEPRODUCTDEFINITION: return "A pharmaceutical product described in terms of its composition and dose form."; 2475 case ADVERSEEVENT: return "An event (i.e. any change to current patient status) that may be related to unintended effects on a patient or research subject. The unintended effects may require additional monitoring, treatment or hospitalization or may result in death. The AdverseEvent resource also extends to potential or avoided events that could have had such effects."; 2476 case ALLERGYINTOLERANCE: return "Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance."; 2477 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)."; 2478 case APPOINTMENTRESPONSE: return "A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection."; 2479 case AUDITEVENT: return "A record of an event relevant for purposes such as operations, privacy, security, maintenance, and performance analysis."; 2480 case BASIC: return "Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification."; 2481 case BINARY: return "A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc."; 2482 case BIOLOGICALLYDERIVEDPRODUCT: return "A material substance originating from a biological entity intended to be transplanted or infused\ninto another (possibly the same) biological entity."; 2483 case BODYSTRUCTURE: return "Record details about an anatomical structure. This resource may be used when a coded concept does not provide the necessary detail needed for the use case."; 2484 case BUNDLE: return "A container for a collection of resources."; 2485 case CAPABILITYSTATEMENT: return "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; 2486 case CAPABILITYSTATEMENT2: return "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; 2487 case CAREPLAN: return "Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions."; 2488 case CARETEAM: return "The Care Team includes all the people and organizations who plan to participate in the coordination and delivery of care."; 2489 case CATALOGENTRY: return "Catalog entries are wrappers that contextualize items included in a catalog."; 2490 case CHARGEITEM: return "The resource ChargeItem describes the provision of healthcare provider products for a certain patient, therefore referring not only to the product, but containing in addition details of the provision, like date, time, amounts and participating organizations and persons. Main Usage of the ChargeItem is to enable the billing process and internal cost allocation."; 2491 case CHARGEITEMDEFINITION: return "The ChargeItemDefinition resource provides the properties that apply to the (billing) codes necessary to calculate costs and prices. The properties may differ largely depending on type and realm, therefore this resource gives only a rough structure and requires profiling for each type of billing code system."; 2492 case CLAIM: return "A provider issued list of professional services and products which have been provided, or are to be provided, to a patient which is sent to an insurer for reimbursement."; 2493 case CLAIMRESPONSE: return "This resource provides the adjudication details from the processing of a Claim resource."; 2494 case CLINICALIMPRESSION: return "A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. This resource is called \"ClinicalImpression\" rather than \"ClinicalAssessment\" to avoid confusion with the recording of assessment tools such as Apgar score."; 2495 case CLINICALUSEISSUE: return "A single usage issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure."; 2496 case CODESYSTEM: return "The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content."; 2497 case COMMUNICATION: return "An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency communication to a provider/reporter in response to a case report for a reportable condition."; 2498 case COMMUNICATIONREQUEST: return "A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition."; 2499 case COMPARTMENTDEFINITION: return "A compartment definition that defines how resources are accessed on a server."; 2500 case COMPOSITION: return "A set of healthcare-related information that is assembled together into a single logical package that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.)."; 2501 case CONCEPTMAP: return "A statement of relationships from one set of concepts to one or more other concepts - either concepts in code systems, or data element/data element concepts, or classes in class models."; 2502 case CONDITION: return "A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern."; 2503 case CONDITIONDEFINITION: return "A definition of a condition and information relevant to managing it."; 2504 case CONSENT: return "A record of a healthcare consumer’s choices or choices made on their behalf by a third party, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time."; 2505 case CONTRACT: return "Legally enforceable, formally recorded unilateral or bilateral directive i.e., a policy or agreement."; 2506 case COVERAGE: return "Financial instrument which may be used to reimburse or pay for health care products and services. Includes both insurance and self-payment."; 2507 case COVERAGEELIGIBILITYREQUEST: return "The CoverageEligibilityRequest provides patient and insurance coverage information to an insurer for them to respond, in the form of an CoverageEligibilityResponse, with information regarding whether the stated coverage is valid and in-force and optionally to provide the insurance details of the policy."; 2508 case COVERAGEELIGIBILITYRESPONSE: return "This resource provides eligibility and plan details from the processing of an CoverageEligibilityRequest resource."; 2509 case DETECTEDISSUE: return "Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc."; 2510 case DEVICE: return "A type of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device."; 2511 case DEVICEDEFINITION: return "The characteristics, operational status and capabilities of a medical-related component of a medical device."; 2512 case DEVICEMETRIC: return "Describes a measurement, calculation or setting capability of a medical device."; 2513 case DEVICEREQUEST: return "Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker."; 2514 case DEVICEUSESTATEMENT: return "A record of a device being used by a patient where the record is the result of a report from the patient or another clinician."; 2515 case DIAGNOSTICREPORT: return "The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports."; 2516 case DOCUMENTMANIFEST: return "A collection of documents compiled for a purpose together with metadata that applies to the collection."; 2517 case DOCUMENTREFERENCE: return "A reference to a document of any kind for any purpose. While the term “document” implies a more narrow focus, for this resource this \"document\" encompasses *any* serialized object with a mime-type, it includes formal patient-centric documents (CDA), clinical notes, scanned paper, non-patient specific documents like policy text, as well as a photo, video, or audio recording acquired or used in healthcare. The DocumentReference resource provides metadata about the document so that the document can be discovered and managed. The actual content may be inline base64 encoded data or provided by direct reference."; 2518 case DOMAINRESOURCE: return "A resource that includes narrative, extensions, and contained resources."; 2519 case ENCOUNTER: return "An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient."; 2520 case ENDPOINT: return "The technical details of an endpoint that can be used for electronic services, such as for web services providing XDS.b or a REST endpoint for another FHIR server. This may include any security context information."; 2521 case ENROLLMENTREQUEST: return "This resource provides the insurance enrollment details to the insurer regarding a specified coverage."; 2522 case ENROLLMENTRESPONSE: return "This resource provides enrollment and plan details from the processing of an EnrollmentRequest resource."; 2523 case EPISODEOFCARE: return "An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time."; 2524 case EVENTDEFINITION: return "The EventDefinition resource provides a reusable description of when a particular event can occur."; 2525 case EVIDENCE: return "This represents statistics, certainty, both the intended and actual population, and evidence variables."; 2526 case EVIDENCEVARIABLE: return "The EvidenceVariable resource describes a \"PICO\" element that knowledge (evidence, assertion, recommendation) is about."; 2527 case EXAMPLESCENARIO: return "Example of workflow instance."; 2528 case EXPLANATIONOFBENEFIT: return "This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided."; 2529 case FAMILYMEMBERHISTORY: return "Significant health conditions for a person related to the patient relevant in the context of care for the patient."; 2530 case FLAG: return "Prospective warnings of potential issues when providing care to the patient."; 2531 case GOAL: return "Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc."; 2532 case GRAPHDEFINITION: return "A formal computable definition of a graph of resources - that is, a coherent set of resources that form a graph by following references. The Graph Definition resource defines a set and makes rules about the set."; 2533 case GROUP: return "Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively, and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization."; 2534 case GUIDANCERESPONSE: return "A guidance response is the formal response to a guidance request, including any output parameters returned by the evaluation, as well as the description of any proposed actions to be taken."; 2535 case HEALTHCARESERVICE: return "The details of a healthcare service available at a location."; 2536 case IMAGINGSTUDY: return "Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities."; 2537 case IMMUNIZATION: return "Describes the event of a patient being administered a vaccine or a record of an immunization as reported by a patient, a clinician or another party."; 2538 case IMMUNIZATIONEVALUATION: return "Describes a comparison of an immunization event against published recommendations to determine if the administration is \"valid\" in relation to those recommendations."; 2539 case IMMUNIZATIONRECOMMENDATION: return "A patient's point-in-time set of recommendations (i.e. forecasting) according to a published schedule with optional supporting justification."; 2540 case IMPLEMENTATIONGUIDE: return "A set of rules of how a particular interoperability or standards problem is solved - typically through the use of FHIR resources. This resource is used to gather all the parts of an implementation guide into a logical whole and to publish a computable definition of all the parts."; 2541 case INGREDIENT: return "An ingredient of a manufactured item or pharmaceutical product."; 2542 case INSURANCEPLAN: return "Details of a Health Insurance product/plan provided by an organization."; 2543 case INVOICE: return "Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose."; 2544 case LIBRARY: return "The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets."; 2545 case LINKAGE: return "Identifies two or more records (resource instances) that refer to the same real-world \"occurrence\"."; 2546 case LIST: return "A list is a curated collection of resources."; 2547 case LOCATION: return "Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated."; 2548 case MANUFACTUREDITEMDEFINITION: return "The definition and characteristics of a medicinal manufactured item, such as a tablet or capsule, as contained in a packaged medicinal product."; 2549 case MEASURE: return "The Measure resource provides the definition of a quality measure."; 2550 case MEASUREREPORT: return "The MeasureReport resource contains the results of the calculation of a measure; and optionally a reference to the resources involved in that calculation."; 2551 case MEDICATION: return "This resource is primarily used for the identification and definition of a medication for the purposes of prescribing, dispensing, and administering a medication as well as for making statements about medication use."; 2552 case MEDICATIONADMINISTRATION: return "Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner."; 2553 case MEDICATIONDISPENSE: return "Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order."; 2554 case MEDICATIONKNOWLEDGE: return "Information about a medication that is used to support knowledge."; 2555 case MEDICATIONREQUEST: return "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns."; 2556 case MEDICATIONUSAGE: return "A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. \n\nThe primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information."; 2557 case MEDICINALPRODUCTDEFINITION: return "Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use)."; 2558 case MESSAGEDEFINITION: return "Defines the characteristics of a message that can be shared between systems, including the type of event that initiates the message, the content to be transmitted and what response(s), if any, are permitted."; 2559 case MESSAGEHEADER: return "The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle."; 2560 case MOLECULARSEQUENCE: return "Raw data describing a biological sequence."; 2561 case NAMINGSYSTEM: return "A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a \"System\" used within the Identifier and Coding data types."; 2562 case NUTRITIONINTAKE: return "A record of food or fluid that is being consumed by a patient. A NutritionIntake may indicate that the patient may be consuming the food or fluid now or has consumed the food or fluid in the past. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay or through an app that tracks food or fluids consumed. The consumption information may come from sources such as the patient's memory, from a nutrition label, or from a clinician documenting observed intake."; 2563 case NUTRITIONORDER: return "A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident."; 2564 case OBSERVATION: return "Measurements and simple assertions made about a patient, device or other subject."; 2565 case OBSERVATIONDEFINITION: return "Set of definitional characteristics for a kind of observation or measurement produced or consumed by an orderable health care service."; 2566 case OPERATIONDEFINITION: return "A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction)."; 2567 case OPERATIONOUTCOME: return "A collection of error, warning, or information messages that result from a system action."; 2568 case ORGANIZATION: return "A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, payer/insurer, etc."; 2569 case ORGANIZATIONAFFILIATION: return "Defines an affiliation/assotiation/relationship between 2 distinct oganizations, that is not a part-of relationship/sub-division relationship."; 2570 case PACKAGEDPRODUCTDEFINITION: return "A medicinal product in a container or package."; 2571 case PARAMETERS: return "This resource is a non-persisted resource used to pass information into and back from an [operation](operations.html). It has no other use, and there is no RESTful endpoint associated with it."; 2572 case PATIENT: return "Demographics and other administrative information about an individual or animal receiving care or other health-related services."; 2573 case PAYMENTNOTICE: return "This resource provides the status of the payment for goods and services rendered, and the request and response resource references."; 2574 case PAYMENTRECONCILIATION: return "This resource provides the details including amount of a payment and allocates the payment items being paid."; 2575 case PERSON: return "Demographics and administrative information about a person independent of a specific health-related context."; 2576 case PLANDEFINITION: return "This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols."; 2577 case PRACTITIONER: return "A person who is directly or indirectly involved in the provisioning of healthcare."; 2578 case PRACTITIONERROLE: return "A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time."; 2579 case PROCEDURE: return "An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy."; 2580 case PROVENANCE: return "Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies."; 2581 case QUESTIONNAIRE: return "A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection."; 2582 case QUESTIONNAIRERESPONSE: return "A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to."; 2583 case REGULATEDAUTHORIZATION: return "The regulatory authorization of a medicinal product."; 2584 case RELATEDPERSON: return "Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process."; 2585 case REQUESTGROUP: return "A group of related requests that can be used to capture intended activities that have inter-dependencies such as \"give this medication after that one\"."; 2586 case RESEARCHSTUDY: return "A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects."; 2587 case RESEARCHSUBJECT: return "A physical entity which is the primary unit of operational and/or administrative interest in a study."; 2588 case RESOURCE: return "This is the base resource type for everything."; 2589 case RISKASSESSMENT: return "An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome."; 2590 case SCHEDULE: return "A container for slots of time that may be available for booking appointments."; 2591 case SEARCHPARAMETER: return "A search parameter that defines a named search item that can be used to search/filter on a resource."; 2592 case SERVICEREQUEST: return "A record of a request for service such as diagnostic investigations, treatments, or operations to be performed."; 2593 case SLOT: return "A slot of time on a schedule that may be available for booking appointments."; 2594 case SPECIMEN: return "A sample to be used for analysis."; 2595 case SPECIMENDEFINITION: return "A kind of specimen with associated set of requirements."; 2596 case STRUCTUREDEFINITION: return "A definition of a FHIR structure. This resource is used to describe the underlying resources, data types defined in FHIR, and also for describing extensions and constraints on resources and data types."; 2597 case STRUCTUREMAP: return "A Map of relationships between 2 structures that can be used to transform data."; 2598 case SUBSCRIPTION: return "The subscription resource describes a particular client's request to be notified about a Topic."; 2599 case SUBSTANCE: return "A homogeneous material with a definite composition."; 2600 case SUBSTANCEDEFINITION: return "The detailed description of a substance, typically at a level beyond what is used for prescribing."; 2601 case SUBSTANCENUCLEICACID: return "Nucleic acids are defined by three distinct elements: the base, sugar and linkage. Individual substance/moiety IDs will be created for each of these elements. The nucleotide sequence will be always entered in the 5’-3’ direction."; 2602 case SUBSTANCEPOLYMER: return "Todo."; 2603 case SUBSTANCEPROTEIN: return "A SubstanceProtein is defined as a single unit of a linear amino acid sequence, or a combination of subunits that are either covalently linked or have a defined invariant stoichiometric relationship. This includes all synthetic, recombinant and purified SubstanceProteins of defined sequence, whether the use is therapeutic or prophylactic. This set of elements will be used to describe albumins, coagulation factors, cytokines, growth factors, peptide/SubstanceProtein hormones, enzymes, toxins, toxoids, recombinant vaccines, and immunomodulators."; 2604 case SUBSTANCEREFERENCEINFORMATION: return "Todo."; 2605 case SUBSTANCESOURCEMATERIAL: return "Source material shall capture information on the taxonomic and anatomical origins as well as the fraction of a material that can result in or can be modified to form a substance. This set of data elements shall be used to define polymer substances isolated from biological matrices. Taxonomic and anatomical origins shall be described using a controlled vocabulary as required. This information is captured for naturally derived polymers ( . starch) and structurally diverse substances. For Organisms belonging to the Kingdom Plantae the Substance level defines the fresh material of a single species or infraspecies, the Herbal Drug and the Herbal preparation. For Herbal preparations, the fraction information will be captured at the Substance information level and additional information for herbal extracts will be captured at the Specified Substance Group 1 information level. See for further explanation the Substance Class: Structurally Diverse and the herbal annex."; 2606 case SUPPLYDELIVERY: return "Record of delivery of what is supplied."; 2607 case SUPPLYREQUEST: return "A record of a request for a medication, substance or device used in the healthcare setting."; 2608 case TASK: return "A task to be performed."; 2609 case TERMINOLOGYCAPABILITIES: return "A TerminologyCapabilities resource documents a set of capabilities (behaviors) of a FHIR Terminology Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; 2610 case TESTREPORT: return "A summary of information based on the results of executing a TestScript."; 2611 case TESTSCRIPT: return "A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification."; 2612 case TOPIC: return "Describes a stream of resource state changes identified by trigger criteria and annotated with labels useful to filter projections from this topic."; 2613 case VALUESET: return "A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded elements](terminologies.html)."; 2614 case VERIFICATIONRESULT: return "Describes validation requirements, source(s), status and dates for one or more elements."; 2615 case VISIONPRESCRIPTION: return "An authorization for the provision of glasses and/or contact lenses to a patient."; 2616 default: return "?"; 2617 } 2618 } 2619 public String getDisplay() { 2620 switch (this) { 2621 case ADDRESS: return "Address"; 2622 case AGE: return "Age"; 2623 case ANNOTATION: return "Annotation"; 2624 case ATTACHMENT: return "Attachment"; 2625 case BACKBONEELEMENT: return "BackboneElement"; 2626 case BACKBONETYPE: return "BackboneType"; 2627 case BASE: return "Base"; 2628 case CODEABLECONCEPT: return "CodeableConcept"; 2629 case CODEABLEREFERENCE: return "CodeableReference"; 2630 case CODING: return "Coding"; 2631 case CONTACTDETAIL: return "ContactDetail"; 2632 case CONTACTPOINT: return "ContactPoint"; 2633 case CONTRIBUTOR: return "Contributor"; 2634 case COUNT: return "Count"; 2635 case DATAREQUIREMENT: return "DataRequirement"; 2636 case DATATYPE: return "DataType"; 2637 case DISTANCE: return "Distance"; 2638 case DOSAGE: return "Dosage"; 2639 case DURATION: return "Duration"; 2640 case ELEMENT: return "Element"; 2641 case ELEMENTDEFINITION: return "ElementDefinition"; 2642 case EXPRESSION: return "Expression"; 2643 case EXTENSION: return "Extension"; 2644 case HUMANNAME: return "HumanName"; 2645 case IDENTIFIER: return "Identifier"; 2646 case MARKETINGSTATUS: return "MarketingStatus"; 2647 case META: return "Meta"; 2648 case MONEY: return "Money"; 2649 case MONEYQUANTITY: return "MoneyQuantity"; 2650 case NARRATIVE: return "Narrative"; 2651 case ORDEREDDISTRIBUTION: return "OrderedDistribution"; 2652 case PARAMETERDEFINITION: return "ParameterDefinition"; 2653 case PERIOD: return "Period"; 2654 case POPULATION: return "Population"; 2655 case PRIMITIVETYPE: return "PrimitiveType"; 2656 case PRODCHARACTERISTIC: return "ProdCharacteristic"; 2657 case PRODUCTSHELFLIFE: return "ProductShelfLife"; 2658 case QUANTITY: return "Quantity"; 2659 case RANGE: return "Range"; 2660 case RATIO: return "Ratio"; 2661 case REFERENCE: return "Reference"; 2662 case RELATEDARTIFACT: return "RelatedArtifact"; 2663 case SAMPLEDDATA: return "SampledData"; 2664 case SIGNATURE: return "Signature"; 2665 case SIMPLEQUANTITY: return "SimpleQuantity"; 2666 case STATISTIC: return "Statistic"; 2667 case SUBSTANCEAMOUNT: return "SubstanceAmount"; 2668 case TIMING: return "Timing"; 2669 case TRIGGERDEFINITION: return "TriggerDefinition"; 2670 case USAGECONTEXT: return "UsageContext"; 2671 case BASE64BINARY: return "base64Binary"; 2672 case BOOLEAN: return "boolean"; 2673 case CANONICAL: return "canonical"; 2674 case CODE: return "code"; 2675 case DATE: return "date"; 2676 case DATETIME: return "dateTime"; 2677 case DECIMAL: return "decimal"; 2678 case ID: return "id"; 2679 case INSTANT: return "instant"; 2680 case INTEGER: return "integer"; 2681 case INTEGER64: return "integer64"; 2682 case MARKDOWN: return "markdown"; 2683 case OID: return "oid"; 2684 case POSITIVEINT: return "positiveInt"; 2685 case STRING: return "string"; 2686 case TIME: return "time"; 2687 case UNSIGNEDINT: return "unsignedInt"; 2688 case URI: return "uri"; 2689 case URL: return "url"; 2690 case UUID: return "uuid"; 2691 case XHTML: return "XHTML"; 2692 case ACCOUNT: return "Account"; 2693 case ACTIVITYDEFINITION: return "ActivityDefinition"; 2694 case ADMINISTRABLEPRODUCTDEFINITION: return "AdministrableProductDefinition"; 2695 case ADVERSEEVENT: return "AdverseEvent"; 2696 case ALLERGYINTOLERANCE: return "AllergyIntolerance"; 2697 case APPOINTMENT: return "Appointment"; 2698 case APPOINTMENTRESPONSE: return "AppointmentResponse"; 2699 case AUDITEVENT: return "AuditEvent"; 2700 case BASIC: return "Basic"; 2701 case BINARY: return "Binary"; 2702 case BIOLOGICALLYDERIVEDPRODUCT: return "BiologicallyDerivedProduct"; 2703 case BODYSTRUCTURE: return "BodyStructure"; 2704 case BUNDLE: return "Bundle"; 2705 case CAPABILITYSTATEMENT: return "CapabilityStatement"; 2706 case CAPABILITYSTATEMENT2: return "CapabilityStatement2"; 2707 case CAREPLAN: return "CarePlan"; 2708 case CARETEAM: return "CareTeam"; 2709 case CATALOGENTRY: return "CatalogEntry"; 2710 case CHARGEITEM: return "ChargeItem"; 2711 case CHARGEITEMDEFINITION: return "ChargeItemDefinition"; 2712 case CLAIM: return "Claim"; 2713 case CLAIMRESPONSE: return "ClaimResponse"; 2714 case CLINICALIMPRESSION: return "ClinicalImpression"; 2715 case CLINICALUSEISSUE: return "ClinicalUseIssue"; 2716 case CODESYSTEM: return "CodeSystem"; 2717 case COMMUNICATION: return "Communication"; 2718 case COMMUNICATIONREQUEST: return "CommunicationRequest"; 2719 case COMPARTMENTDEFINITION: return "CompartmentDefinition"; 2720 case COMPOSITION: return "Composition"; 2721 case CONCEPTMAP: return "ConceptMap"; 2722 case CONDITION: return "Condition"; 2723 case CONDITIONDEFINITION: return "ConditionDefinition"; 2724 case CONSENT: return "Consent"; 2725 case CONTRACT: return "Contract"; 2726 case COVERAGE: return "Coverage"; 2727 case COVERAGEELIGIBILITYREQUEST: return "CoverageEligibilityRequest"; 2728 case COVERAGEELIGIBILITYRESPONSE: return "CoverageEligibilityResponse"; 2729 case DETECTEDISSUE: return "DetectedIssue"; 2730 case DEVICE: return "Device"; 2731 case DEVICEDEFINITION: return "DeviceDefinition"; 2732 case DEVICEMETRIC: return "DeviceMetric"; 2733 case DEVICEREQUEST: return "DeviceRequest"; 2734 case DEVICEUSESTATEMENT: return "DeviceUseStatement"; 2735 case DIAGNOSTICREPORT: return "DiagnosticReport"; 2736 case DOCUMENTMANIFEST: return "DocumentManifest"; 2737 case DOCUMENTREFERENCE: return "DocumentReference"; 2738 case DOMAINRESOURCE: return "DomainResource"; 2739 case ENCOUNTER: return "Encounter"; 2740 case ENDPOINT: return "Endpoint"; 2741 case ENROLLMENTREQUEST: return "EnrollmentRequest"; 2742 case ENROLLMENTRESPONSE: return "EnrollmentResponse"; 2743 case EPISODEOFCARE: return "EpisodeOfCare"; 2744 case EVENTDEFINITION: return "EventDefinition"; 2745 case EVIDENCE: return "Evidence"; 2746 case EVIDENCEVARIABLE: return "EvidenceVariable"; 2747 case EXAMPLESCENARIO: return "ExampleScenario"; 2748 case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit"; 2749 case FAMILYMEMBERHISTORY: return "FamilyMemberHistory"; 2750 case FLAG: return "Flag"; 2751 case GOAL: return "Goal"; 2752 case GRAPHDEFINITION: return "GraphDefinition"; 2753 case GROUP: return "Group"; 2754 case GUIDANCERESPONSE: return "GuidanceResponse"; 2755 case HEALTHCARESERVICE: return "HealthcareService"; 2756 case IMAGINGSTUDY: return "ImagingStudy"; 2757 case IMMUNIZATION: return "Immunization"; 2758 case IMMUNIZATIONEVALUATION: return "ImmunizationEvaluation"; 2759 case IMMUNIZATIONRECOMMENDATION: return "ImmunizationRecommendation"; 2760 case IMPLEMENTATIONGUIDE: return "ImplementationGuide"; 2761 case INGREDIENT: return "Ingredient"; 2762 case INSURANCEPLAN: return "InsurancePlan"; 2763 case INVOICE: return "Invoice"; 2764 case LIBRARY: return "Library"; 2765 case LINKAGE: return "Linkage"; 2766 case LIST: return "List"; 2767 case LOCATION: return "Location"; 2768 case MANUFACTUREDITEMDEFINITION: return "ManufacturedItemDefinition"; 2769 case MEASURE: return "Measure"; 2770 case MEASUREREPORT: return "MeasureReport"; 2771 case MEDICATION: return "Medication"; 2772 case MEDICATIONADMINISTRATION: return "MedicationAdministration"; 2773 case MEDICATIONDISPENSE: return "MedicationDispense"; 2774 case MEDICATIONKNOWLEDGE: return "MedicationKnowledge"; 2775 case MEDICATIONREQUEST: return "MedicationRequest"; 2776 case MEDICATIONUSAGE: return "MedicationUsage"; 2777 case MEDICINALPRODUCTDEFINITION: return "MedicinalProductDefinition"; 2778 case MESSAGEDEFINITION: return "MessageDefinition"; 2779 case MESSAGEHEADER: return "MessageHeader"; 2780 case MOLECULARSEQUENCE: return "MolecularSequence"; 2781 case NAMINGSYSTEM: return "NamingSystem"; 2782 case NUTRITIONINTAKE: return "NutritionIntake"; 2783 case NUTRITIONORDER: return "NutritionOrder"; 2784 case OBSERVATION: return "Observation"; 2785 case OBSERVATIONDEFINITION: return "ObservationDefinition"; 2786 case OPERATIONDEFINITION: return "OperationDefinition"; 2787 case OPERATIONOUTCOME: return "OperationOutcome"; 2788 case ORGANIZATION: return "Organization"; 2789 case ORGANIZATIONAFFILIATION: return "OrganizationAffiliation"; 2790 case PACKAGEDPRODUCTDEFINITION: return "PackagedProductDefinition"; 2791 case PARAMETERS: return "Parameters"; 2792 case PATIENT: return "Patient"; 2793 case PAYMENTNOTICE: return "PaymentNotice"; 2794 case PAYMENTRECONCILIATION: return "PaymentReconciliation"; 2795 case PERSON: return "Person"; 2796 case PLANDEFINITION: return "PlanDefinition"; 2797 case PRACTITIONER: return "Practitioner"; 2798 case PRACTITIONERROLE: return "PractitionerRole"; 2799 case PROCEDURE: return "Procedure"; 2800 case PROVENANCE: return "Provenance"; 2801 case QUESTIONNAIRE: return "Questionnaire"; 2802 case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse"; 2803 case REGULATEDAUTHORIZATION: return "RegulatedAuthorization"; 2804 case RELATEDPERSON: return "RelatedPerson"; 2805 case REQUESTGROUP: return "RequestGroup"; 2806 case RESEARCHSTUDY: return "ResearchStudy"; 2807 case RESEARCHSUBJECT: return "ResearchSubject"; 2808 case RESOURCE: return "Resource"; 2809 case RISKASSESSMENT: return "RiskAssessment"; 2810 case SCHEDULE: return "Schedule"; 2811 case SEARCHPARAMETER: return "SearchParameter"; 2812 case SERVICEREQUEST: return "ServiceRequest"; 2813 case SLOT: return "Slot"; 2814 case SPECIMEN: return "Specimen"; 2815 case SPECIMENDEFINITION: return "SpecimenDefinition"; 2816 case STRUCTUREDEFINITION: return "StructureDefinition"; 2817 case STRUCTUREMAP: return "StructureMap"; 2818 case SUBSCRIPTION: return "Subscription"; 2819 case SUBSTANCE: return "Substance"; 2820 case SUBSTANCEDEFINITION: return "SubstanceDefinition"; 2821 case SUBSTANCENUCLEICACID: return "SubstanceNucleicAcid"; 2822 case SUBSTANCEPOLYMER: return "SubstancePolymer"; 2823 case SUBSTANCEPROTEIN: return "SubstanceProtein"; 2824 case SUBSTANCEREFERENCEINFORMATION: return "SubstanceReferenceInformation"; 2825 case SUBSTANCESOURCEMATERIAL: return "SubstanceSourceMaterial"; 2826 case SUPPLYDELIVERY: return "SupplyDelivery"; 2827 case SUPPLYREQUEST: return "SupplyRequest"; 2828 case TASK: return "Task"; 2829 case TERMINOLOGYCAPABILITIES: return "TerminologyCapabilities"; 2830 case TESTREPORT: return "TestReport"; 2831 case TESTSCRIPT: return "TestScript"; 2832 case TOPIC: return "Topic"; 2833 case VALUESET: return "ValueSet"; 2834 case VERIFICATIONRESULT: return "VerificationResult"; 2835 case VISIONPRESCRIPTION: return "VisionPrescription"; 2836 default: return "?"; 2837 } 2838 } 2839 } 2840 2841 public static class FHIRDefinedTypeEnumFactory implements EnumFactory<FHIRDefinedType> { 2842 public FHIRDefinedType fromCode(String codeString) throws IllegalArgumentException { 2843 if (codeString == null || "".equals(codeString)) 2844 if (codeString == null || "".equals(codeString)) 2845 return null; 2846 if ("Address".equals(codeString)) 2847 return FHIRDefinedType.ADDRESS; 2848 if ("Age".equals(codeString)) 2849 return FHIRDefinedType.AGE; 2850 if ("Annotation".equals(codeString)) 2851 return FHIRDefinedType.ANNOTATION; 2852 if ("Attachment".equals(codeString)) 2853 return FHIRDefinedType.ATTACHMENT; 2854 if ("BackboneElement".equals(codeString)) 2855 return FHIRDefinedType.BACKBONEELEMENT; 2856 if ("BackboneType".equals(codeString)) 2857 return FHIRDefinedType.BACKBONETYPE; 2858 if ("Base".equals(codeString)) 2859 return FHIRDefinedType.BASE; 2860 if ("CodeableConcept".equals(codeString)) 2861 return FHIRDefinedType.CODEABLECONCEPT; 2862 if ("CodeableReference".equals(codeString)) 2863 return FHIRDefinedType.CODEABLEREFERENCE; 2864 if ("Coding".equals(codeString)) 2865 return FHIRDefinedType.CODING; 2866 if ("ContactDetail".equals(codeString)) 2867 return FHIRDefinedType.CONTACTDETAIL; 2868 if ("ContactPoint".equals(codeString)) 2869 return FHIRDefinedType.CONTACTPOINT; 2870 if ("Contributor".equals(codeString)) 2871 return FHIRDefinedType.CONTRIBUTOR; 2872 if ("Count".equals(codeString)) 2873 return FHIRDefinedType.COUNT; 2874 if ("DataRequirement".equals(codeString)) 2875 return FHIRDefinedType.DATAREQUIREMENT; 2876 if ("DataType".equals(codeString)) 2877 return FHIRDefinedType.DATATYPE; 2878 if ("Distance".equals(codeString)) 2879 return FHIRDefinedType.DISTANCE; 2880 if ("Dosage".equals(codeString)) 2881 return FHIRDefinedType.DOSAGE; 2882 if ("Duration".equals(codeString)) 2883 return FHIRDefinedType.DURATION; 2884 if ("Element".equals(codeString)) 2885 return FHIRDefinedType.ELEMENT; 2886 if ("ElementDefinition".equals(codeString)) 2887 return FHIRDefinedType.ELEMENTDEFINITION; 2888 if ("Expression".equals(codeString)) 2889 return FHIRDefinedType.EXPRESSION; 2890 if ("Extension".equals(codeString)) 2891 return FHIRDefinedType.EXTENSION; 2892 if ("HumanName".equals(codeString)) 2893 return FHIRDefinedType.HUMANNAME; 2894 if ("Identifier".equals(codeString)) 2895 return FHIRDefinedType.IDENTIFIER; 2896 if ("MarketingStatus".equals(codeString)) 2897 return FHIRDefinedType.MARKETINGSTATUS; 2898 if ("Meta".equals(codeString)) 2899 return FHIRDefinedType.META; 2900 if ("Money".equals(codeString)) 2901 return FHIRDefinedType.MONEY; 2902 if ("MoneyQuantity".equals(codeString)) 2903 return FHIRDefinedType.MONEYQUANTITY; 2904 if ("Narrative".equals(codeString)) 2905 return FHIRDefinedType.NARRATIVE; 2906 if ("OrderedDistribution".equals(codeString)) 2907 return FHIRDefinedType.ORDEREDDISTRIBUTION; 2908 if ("ParameterDefinition".equals(codeString)) 2909 return FHIRDefinedType.PARAMETERDEFINITION; 2910 if ("Period".equals(codeString)) 2911 return FHIRDefinedType.PERIOD; 2912 if ("Population".equals(codeString)) 2913 return FHIRDefinedType.POPULATION; 2914 if ("PrimitiveType".equals(codeString)) 2915 return FHIRDefinedType.PRIMITIVETYPE; 2916 if ("ProdCharacteristic".equals(codeString)) 2917 return FHIRDefinedType.PRODCHARACTERISTIC; 2918 if ("ProductShelfLife".equals(codeString)) 2919 return FHIRDefinedType.PRODUCTSHELFLIFE; 2920 if ("Quantity".equals(codeString)) 2921 return FHIRDefinedType.QUANTITY; 2922 if ("Range".equals(codeString)) 2923 return FHIRDefinedType.RANGE; 2924 if ("Ratio".equals(codeString)) 2925 return FHIRDefinedType.RATIO; 2926 if ("Reference".equals(codeString)) 2927 return FHIRDefinedType.REFERENCE; 2928 if ("RelatedArtifact".equals(codeString)) 2929 return FHIRDefinedType.RELATEDARTIFACT; 2930 if ("SampledData".equals(codeString)) 2931 return FHIRDefinedType.SAMPLEDDATA; 2932 if ("Signature".equals(codeString)) 2933 return FHIRDefinedType.SIGNATURE; 2934 if ("SimpleQuantity".equals(codeString)) 2935 return FHIRDefinedType.SIMPLEQUANTITY; 2936 if ("Statistic".equals(codeString)) 2937 return FHIRDefinedType.STATISTIC; 2938 if ("SubstanceAmount".equals(codeString)) 2939 return FHIRDefinedType.SUBSTANCEAMOUNT; 2940 if ("Timing".equals(codeString)) 2941 return FHIRDefinedType.TIMING; 2942 if ("TriggerDefinition".equals(codeString)) 2943 return FHIRDefinedType.TRIGGERDEFINITION; 2944 if ("UsageContext".equals(codeString)) 2945 return FHIRDefinedType.USAGECONTEXT; 2946 if ("base64Binary".equals(codeString)) 2947 return FHIRDefinedType.BASE64BINARY; 2948 if ("boolean".equals(codeString)) 2949 return FHIRDefinedType.BOOLEAN; 2950 if ("canonical".equals(codeString)) 2951 return FHIRDefinedType.CANONICAL; 2952 if ("code".equals(codeString)) 2953 return FHIRDefinedType.CODE; 2954 if ("date".equals(codeString)) 2955 return FHIRDefinedType.DATE; 2956 if ("dateTime".equals(codeString)) 2957 return FHIRDefinedType.DATETIME; 2958 if ("decimal".equals(codeString)) 2959 return FHIRDefinedType.DECIMAL; 2960 if ("id".equals(codeString)) 2961 return FHIRDefinedType.ID; 2962 if ("instant".equals(codeString)) 2963 return FHIRDefinedType.INSTANT; 2964 if ("integer".equals(codeString)) 2965 return FHIRDefinedType.INTEGER; 2966 if ("integer64".equals(codeString)) 2967 return FHIRDefinedType.INTEGER64; 2968 if ("markdown".equals(codeString)) 2969 return FHIRDefinedType.MARKDOWN; 2970 if ("oid".equals(codeString)) 2971 return FHIRDefinedType.OID; 2972 if ("positiveInt".equals(codeString)) 2973 return FHIRDefinedType.POSITIVEINT; 2974 if ("string".equals(codeString)) 2975 return FHIRDefinedType.STRING; 2976 if ("time".equals(codeString)) 2977 return FHIRDefinedType.TIME; 2978 if ("unsignedInt".equals(codeString)) 2979 return FHIRDefinedType.UNSIGNEDINT; 2980 if ("uri".equals(codeString)) 2981 return FHIRDefinedType.URI; 2982 if ("url".equals(codeString)) 2983 return FHIRDefinedType.URL; 2984 if ("uuid".equals(codeString)) 2985 return FHIRDefinedType.UUID; 2986 if ("xhtml".equals(codeString)) 2987 return FHIRDefinedType.XHTML; 2988 if ("Account".equals(codeString)) 2989 return FHIRDefinedType.ACCOUNT; 2990 if ("ActivityDefinition".equals(codeString)) 2991 return FHIRDefinedType.ACTIVITYDEFINITION; 2992 if ("AdministrableProductDefinition".equals(codeString)) 2993 return FHIRDefinedType.ADMINISTRABLEPRODUCTDEFINITION; 2994 if ("AdverseEvent".equals(codeString)) 2995 return FHIRDefinedType.ADVERSEEVENT; 2996 if ("AllergyIntolerance".equals(codeString)) 2997 return FHIRDefinedType.ALLERGYINTOLERANCE; 2998 if ("Appointment".equals(codeString)) 2999 return FHIRDefinedType.APPOINTMENT; 3000 if ("AppointmentResponse".equals(codeString)) 3001 return FHIRDefinedType.APPOINTMENTRESPONSE; 3002 if ("AuditEvent".equals(codeString)) 3003 return FHIRDefinedType.AUDITEVENT; 3004 if ("Basic".equals(codeString)) 3005 return FHIRDefinedType.BASIC; 3006 if ("Binary".equals(codeString)) 3007 return FHIRDefinedType.BINARY; 3008 if ("BiologicallyDerivedProduct".equals(codeString)) 3009 return FHIRDefinedType.BIOLOGICALLYDERIVEDPRODUCT; 3010 if ("BodyStructure".equals(codeString)) 3011 return FHIRDefinedType.BODYSTRUCTURE; 3012 if ("Bundle".equals(codeString)) 3013 return FHIRDefinedType.BUNDLE; 3014 if ("CapabilityStatement".equals(codeString)) 3015 return FHIRDefinedType.CAPABILITYSTATEMENT; 3016 if ("CapabilityStatement2".equals(codeString)) 3017 return FHIRDefinedType.CAPABILITYSTATEMENT2; 3018 if ("CarePlan".equals(codeString)) 3019 return FHIRDefinedType.CAREPLAN; 3020 if ("CareTeam".equals(codeString)) 3021 return FHIRDefinedType.CARETEAM; 3022 if ("CatalogEntry".equals(codeString)) 3023 return FHIRDefinedType.CATALOGENTRY; 3024 if ("ChargeItem".equals(codeString)) 3025 return FHIRDefinedType.CHARGEITEM; 3026 if ("ChargeItemDefinition".equals(codeString)) 3027 return FHIRDefinedType.CHARGEITEMDEFINITION; 3028 if ("Claim".equals(codeString)) 3029 return FHIRDefinedType.CLAIM; 3030 if ("ClaimResponse".equals(codeString)) 3031 return FHIRDefinedType.CLAIMRESPONSE; 3032 if ("ClinicalImpression".equals(codeString)) 3033 return FHIRDefinedType.CLINICALIMPRESSION; 3034 if ("ClinicalUseIssue".equals(codeString)) 3035 return FHIRDefinedType.CLINICALUSEISSUE; 3036 if ("CodeSystem".equals(codeString)) 3037 return FHIRDefinedType.CODESYSTEM; 3038 if ("Communication".equals(codeString)) 3039 return FHIRDefinedType.COMMUNICATION; 3040 if ("CommunicationRequest".equals(codeString)) 3041 return FHIRDefinedType.COMMUNICATIONREQUEST; 3042 if ("CompartmentDefinition".equals(codeString)) 3043 return FHIRDefinedType.COMPARTMENTDEFINITION; 3044 if ("Composition".equals(codeString)) 3045 return FHIRDefinedType.COMPOSITION; 3046 if ("ConceptMap".equals(codeString)) 3047 return FHIRDefinedType.CONCEPTMAP; 3048 if ("Condition".equals(codeString)) 3049 return FHIRDefinedType.CONDITION; 3050 if ("ConditionDefinition".equals(codeString)) 3051 return FHIRDefinedType.CONDITIONDEFINITION; 3052 if ("Consent".equals(codeString)) 3053 return FHIRDefinedType.CONSENT; 3054 if ("Contract".equals(codeString)) 3055 return FHIRDefinedType.CONTRACT; 3056 if ("Coverage".equals(codeString)) 3057 return FHIRDefinedType.COVERAGE; 3058 if ("CoverageEligibilityRequest".equals(codeString)) 3059 return FHIRDefinedType.COVERAGEELIGIBILITYREQUEST; 3060 if ("CoverageEligibilityResponse".equals(codeString)) 3061 return FHIRDefinedType.COVERAGEELIGIBILITYRESPONSE; 3062 if ("DetectedIssue".equals(codeString)) 3063 return FHIRDefinedType.DETECTEDISSUE; 3064 if ("Device".equals(codeString)) 3065 return FHIRDefinedType.DEVICE; 3066 if ("DeviceDefinition".equals(codeString)) 3067 return FHIRDefinedType.DEVICEDEFINITION; 3068 if ("DeviceMetric".equals(codeString)) 3069 return FHIRDefinedType.DEVICEMETRIC; 3070 if ("DeviceRequest".equals(codeString)) 3071 return FHIRDefinedType.DEVICEREQUEST; 3072 if ("DeviceUseStatement".equals(codeString)) 3073 return FHIRDefinedType.DEVICEUSESTATEMENT; 3074 if ("DiagnosticReport".equals(codeString)) 3075 return FHIRDefinedType.DIAGNOSTICREPORT; 3076 if ("DocumentManifest".equals(codeString)) 3077 return FHIRDefinedType.DOCUMENTMANIFEST; 3078 if ("DocumentReference".equals(codeString)) 3079 return FHIRDefinedType.DOCUMENTREFERENCE; 3080 if ("DomainResource".equals(codeString)) 3081 return FHIRDefinedType.DOMAINRESOURCE; 3082 if ("Encounter".equals(codeString)) 3083 return FHIRDefinedType.ENCOUNTER; 3084 if ("Endpoint".equals(codeString)) 3085 return FHIRDefinedType.ENDPOINT; 3086 if ("EnrollmentRequest".equals(codeString)) 3087 return FHIRDefinedType.ENROLLMENTREQUEST; 3088 if ("EnrollmentResponse".equals(codeString)) 3089 return FHIRDefinedType.ENROLLMENTRESPONSE; 3090 if ("EpisodeOfCare".equals(codeString)) 3091 return FHIRDefinedType.EPISODEOFCARE; 3092 if ("EventDefinition".equals(codeString)) 3093 return FHIRDefinedType.EVENTDEFINITION; 3094 if ("Evidence".equals(codeString)) 3095 return FHIRDefinedType.EVIDENCE; 3096 if ("EvidenceVariable".equals(codeString)) 3097 return FHIRDefinedType.EVIDENCEVARIABLE; 3098 if ("ExampleScenario".equals(codeString)) 3099 return FHIRDefinedType.EXAMPLESCENARIO; 3100 if ("ExplanationOfBenefit".equals(codeString)) 3101 return FHIRDefinedType.EXPLANATIONOFBENEFIT; 3102 if ("FamilyMemberHistory".equals(codeString)) 3103 return FHIRDefinedType.FAMILYMEMBERHISTORY; 3104 if ("Flag".equals(codeString)) 3105 return FHIRDefinedType.FLAG; 3106 if ("Goal".equals(codeString)) 3107 return FHIRDefinedType.GOAL; 3108 if ("GraphDefinition".equals(codeString)) 3109 return FHIRDefinedType.GRAPHDEFINITION; 3110 if ("Group".equals(codeString)) 3111 return FHIRDefinedType.GROUP; 3112 if ("GuidanceResponse".equals(codeString)) 3113 return FHIRDefinedType.GUIDANCERESPONSE; 3114 if ("HealthcareService".equals(codeString)) 3115 return FHIRDefinedType.HEALTHCARESERVICE; 3116 if ("ImagingStudy".equals(codeString)) 3117 return FHIRDefinedType.IMAGINGSTUDY; 3118 if ("Immunization".equals(codeString)) 3119 return FHIRDefinedType.IMMUNIZATION; 3120 if ("ImmunizationEvaluation".equals(codeString)) 3121 return FHIRDefinedType.IMMUNIZATIONEVALUATION; 3122 if ("ImmunizationRecommendation".equals(codeString)) 3123 return FHIRDefinedType.IMMUNIZATIONRECOMMENDATION; 3124 if ("ImplementationGuide".equals(codeString)) 3125 return FHIRDefinedType.IMPLEMENTATIONGUIDE; 3126 if ("Ingredient".equals(codeString)) 3127 return FHIRDefinedType.INGREDIENT; 3128 if ("InsurancePlan".equals(codeString)) 3129 return FHIRDefinedType.INSURANCEPLAN; 3130 if ("Invoice".equals(codeString)) 3131 return FHIRDefinedType.INVOICE; 3132 if ("Library".equals(codeString)) 3133 return FHIRDefinedType.LIBRARY; 3134 if ("Linkage".equals(codeString)) 3135 return FHIRDefinedType.LINKAGE; 3136 if ("List".equals(codeString)) 3137 return FHIRDefinedType.LIST; 3138 if ("Location".equals(codeString)) 3139 return FHIRDefinedType.LOCATION; 3140 if ("ManufacturedItemDefinition".equals(codeString)) 3141 return FHIRDefinedType.MANUFACTUREDITEMDEFINITION; 3142 if ("Measure".equals(codeString)) 3143 return FHIRDefinedType.MEASURE; 3144 if ("MeasureReport".equals(codeString)) 3145 return FHIRDefinedType.MEASUREREPORT; 3146 if ("Medication".equals(codeString)) 3147 return FHIRDefinedType.MEDICATION; 3148 if ("MedicationAdministration".equals(codeString)) 3149 return FHIRDefinedType.MEDICATIONADMINISTRATION; 3150 if ("MedicationDispense".equals(codeString)) 3151 return FHIRDefinedType.MEDICATIONDISPENSE; 3152 if ("MedicationKnowledge".equals(codeString)) 3153 return FHIRDefinedType.MEDICATIONKNOWLEDGE; 3154 if ("MedicationRequest".equals(codeString)) 3155 return FHIRDefinedType.MEDICATIONREQUEST; 3156 if ("MedicationUsage".equals(codeString)) 3157 return FHIRDefinedType.MEDICATIONUSAGE; 3158 if ("MedicinalProductDefinition".equals(codeString)) 3159 return FHIRDefinedType.MEDICINALPRODUCTDEFINITION; 3160 if ("MessageDefinition".equals(codeString)) 3161 return FHIRDefinedType.MESSAGEDEFINITION; 3162 if ("MessageHeader".equals(codeString)) 3163 return FHIRDefinedType.MESSAGEHEADER; 3164 if ("MolecularSequence".equals(codeString)) 3165 return FHIRDefinedType.MOLECULARSEQUENCE; 3166 if ("NamingSystem".equals(codeString)) 3167 return FHIRDefinedType.NAMINGSYSTEM; 3168 if ("NutritionIntake".equals(codeString)) 3169 return FHIRDefinedType.NUTRITIONINTAKE; 3170 if ("NutritionOrder".equals(codeString)) 3171 return FHIRDefinedType.NUTRITIONORDER; 3172 if ("Observation".equals(codeString)) 3173 return FHIRDefinedType.OBSERVATION; 3174 if ("ObservationDefinition".equals(codeString)) 3175 return FHIRDefinedType.OBSERVATIONDEFINITION; 3176 if ("OperationDefinition".equals(codeString)) 3177 return FHIRDefinedType.OPERATIONDEFINITION; 3178 if ("OperationOutcome".equals(codeString)) 3179 return FHIRDefinedType.OPERATIONOUTCOME; 3180 if ("Organization".equals(codeString)) 3181 return FHIRDefinedType.ORGANIZATION; 3182 if ("OrganizationAffiliation".equals(codeString)) 3183 return FHIRDefinedType.ORGANIZATIONAFFILIATION; 3184 if ("PackagedProductDefinition".equals(codeString)) 3185 return FHIRDefinedType.PACKAGEDPRODUCTDEFINITION; 3186 if ("Parameters".equals(codeString)) 3187 return FHIRDefinedType.PARAMETERS; 3188 if ("Patient".equals(codeString)) 3189 return FHIRDefinedType.PATIENT; 3190 if ("PaymentNotice".equals(codeString)) 3191 return FHIRDefinedType.PAYMENTNOTICE; 3192 if ("PaymentReconciliation".equals(codeString)) 3193 return FHIRDefinedType.PAYMENTRECONCILIATION; 3194 if ("Person".equals(codeString)) 3195 return FHIRDefinedType.PERSON; 3196 if ("PlanDefinition".equals(codeString)) 3197 return FHIRDefinedType.PLANDEFINITION; 3198 if ("Practitioner".equals(codeString)) 3199 return FHIRDefinedType.PRACTITIONER; 3200 if ("PractitionerRole".equals(codeString)) 3201 return FHIRDefinedType.PRACTITIONERROLE; 3202 if ("Procedure".equals(codeString)) 3203 return FHIRDefinedType.PROCEDURE; 3204 if ("Provenance".equals(codeString)) 3205 return FHIRDefinedType.PROVENANCE; 3206 if ("Questionnaire".equals(codeString)) 3207 return FHIRDefinedType.QUESTIONNAIRE; 3208 if ("QuestionnaireResponse".equals(codeString)) 3209 return FHIRDefinedType.QUESTIONNAIRERESPONSE; 3210 if ("RegulatedAuthorization".equals(codeString)) 3211 return FHIRDefinedType.REGULATEDAUTHORIZATION; 3212 if ("RelatedPerson".equals(codeString)) 3213 return FHIRDefinedType.RELATEDPERSON; 3214 if ("RequestGroup".equals(codeString)) 3215 return FHIRDefinedType.REQUESTGROUP; 3216 if ("ResearchStudy".equals(codeString)) 3217 return FHIRDefinedType.RESEARCHSTUDY; 3218 if ("ResearchSubject".equals(codeString)) 3219 return FHIRDefinedType.RESEARCHSUBJECT; 3220 if ("Resource".equals(codeString)) 3221 return FHIRDefinedType.RESOURCE; 3222 if ("RiskAssessment".equals(codeString)) 3223 return FHIRDefinedType.RISKASSESSMENT; 3224 if ("Schedule".equals(codeString)) 3225 return FHIRDefinedType.SCHEDULE; 3226 if ("SearchParameter".equals(codeString)) 3227 return FHIRDefinedType.SEARCHPARAMETER; 3228 if ("ServiceRequest".equals(codeString)) 3229 return FHIRDefinedType.SERVICEREQUEST; 3230 if ("Slot".equals(codeString)) 3231 return FHIRDefinedType.SLOT; 3232 if ("Specimen".equals(codeString)) 3233 return FHIRDefinedType.SPECIMEN; 3234 if ("SpecimenDefinition".equals(codeString)) 3235 return FHIRDefinedType.SPECIMENDEFINITION; 3236 if ("StructureDefinition".equals(codeString)) 3237 return FHIRDefinedType.STRUCTUREDEFINITION; 3238 if ("StructureMap".equals(codeString)) 3239 return FHIRDefinedType.STRUCTUREMAP; 3240 if ("Subscription".equals(codeString)) 3241 return FHIRDefinedType.SUBSCRIPTION; 3242 if ("Substance".equals(codeString)) 3243 return FHIRDefinedType.SUBSTANCE; 3244 if ("SubstanceDefinition".equals(codeString)) 3245 return FHIRDefinedType.SUBSTANCEDEFINITION; 3246 if ("SubstanceNucleicAcid".equals(codeString)) 3247 return FHIRDefinedType.SUBSTANCENUCLEICACID; 3248 if ("SubstancePolymer".equals(codeString)) 3249 return FHIRDefinedType.SUBSTANCEPOLYMER; 3250 if ("SubstanceProtein".equals(codeString)) 3251 return FHIRDefinedType.SUBSTANCEPROTEIN; 3252 if ("SubstanceReferenceInformation".equals(codeString)) 3253 return FHIRDefinedType.SUBSTANCEREFERENCEINFORMATION; 3254 if ("SubstanceSourceMaterial".equals(codeString)) 3255 return FHIRDefinedType.SUBSTANCESOURCEMATERIAL; 3256 if ("SupplyDelivery".equals(codeString)) 3257 return FHIRDefinedType.SUPPLYDELIVERY; 3258 if ("SupplyRequest".equals(codeString)) 3259 return FHIRDefinedType.SUPPLYREQUEST; 3260 if ("Task".equals(codeString)) 3261 return FHIRDefinedType.TASK; 3262 if ("TerminologyCapabilities".equals(codeString)) 3263 return FHIRDefinedType.TERMINOLOGYCAPABILITIES; 3264 if ("TestReport".equals(codeString)) 3265 return FHIRDefinedType.TESTREPORT; 3266 if ("TestScript".equals(codeString)) 3267 return FHIRDefinedType.TESTSCRIPT; 3268 if ("Topic".equals(codeString)) 3269 return FHIRDefinedType.TOPIC; 3270 if ("ValueSet".equals(codeString)) 3271 return FHIRDefinedType.VALUESET; 3272 if ("VerificationResult".equals(codeString)) 3273 return FHIRDefinedType.VERIFICATIONRESULT; 3274 if ("VisionPrescription".equals(codeString)) 3275 return FHIRDefinedType.VISIONPRESCRIPTION; 3276 throw new IllegalArgumentException("Unknown FHIRDefinedType code '"+codeString+"'"); 3277 } 3278 public Enumeration<FHIRDefinedType> fromType(Base code) throws FHIRException { 3279 if (code == null) 3280 return null; 3281 if (code.isEmpty()) 3282 return new Enumeration<FHIRDefinedType>(this); 3283 String codeString = ((PrimitiveType) code).asStringValue(); 3284 if (codeString == null || "".equals(codeString)) 3285 return null; 3286 if ("Address".equals(codeString)) 3287 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ADDRESS); 3288 if ("Age".equals(codeString)) 3289 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.AGE); 3290 if ("Annotation".equals(codeString)) 3291 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ANNOTATION); 3292 if ("Attachment".equals(codeString)) 3293 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ATTACHMENT); 3294 if ("BackboneElement".equals(codeString)) 3295 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BACKBONEELEMENT); 3296 if ("BackboneType".equals(codeString)) 3297 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BACKBONETYPE); 3298 if ("Base".equals(codeString)) 3299 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BASE); 3300 if ("CodeableConcept".equals(codeString)) 3301 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CODEABLECONCEPT); 3302 if ("CodeableReference".equals(codeString)) 3303 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CODEABLEREFERENCE); 3304 if ("Coding".equals(codeString)) 3305 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CODING); 3306 if ("ContactDetail".equals(codeString)) 3307 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CONTACTDETAIL); 3308 if ("ContactPoint".equals(codeString)) 3309 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CONTACTPOINT); 3310 if ("Contributor".equals(codeString)) 3311 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CONTRIBUTOR); 3312 if ("Count".equals(codeString)) 3313 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.COUNT); 3314 if ("DataRequirement".equals(codeString)) 3315 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DATAREQUIREMENT); 3316 if ("DataType".equals(codeString)) 3317 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DATATYPE); 3318 if ("Distance".equals(codeString)) 3319 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DISTANCE); 3320 if ("Dosage".equals(codeString)) 3321 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DOSAGE); 3322 if ("Duration".equals(codeString)) 3323 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DURATION); 3324 if ("Element".equals(codeString)) 3325 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ELEMENT); 3326 if ("ElementDefinition".equals(codeString)) 3327 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ELEMENTDEFINITION); 3328 if ("Expression".equals(codeString)) 3329 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.EXPRESSION); 3330 if ("Extension".equals(codeString)) 3331 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.EXTENSION); 3332 if ("HumanName".equals(codeString)) 3333 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.HUMANNAME); 3334 if ("Identifier".equals(codeString)) 3335 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.IDENTIFIER); 3336 if ("MarketingStatus".equals(codeString)) 3337 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MARKETINGSTATUS); 3338 if ("Meta".equals(codeString)) 3339 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.META); 3340 if ("Money".equals(codeString)) 3341 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MONEY); 3342 if ("MoneyQuantity".equals(codeString)) 3343 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MONEYQUANTITY); 3344 if ("Narrative".equals(codeString)) 3345 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.NARRATIVE); 3346 if ("OrderedDistribution".equals(codeString)) 3347 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ORDEREDDISTRIBUTION); 3348 if ("ParameterDefinition".equals(codeString)) 3349 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PARAMETERDEFINITION); 3350 if ("Period".equals(codeString)) 3351 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PERIOD); 3352 if ("Population".equals(codeString)) 3353 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.POPULATION); 3354 if ("PrimitiveType".equals(codeString)) 3355 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PRIMITIVETYPE); 3356 if ("ProdCharacteristic".equals(codeString)) 3357 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PRODCHARACTERISTIC); 3358 if ("ProductShelfLife".equals(codeString)) 3359 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PRODUCTSHELFLIFE); 3360 if ("Quantity".equals(codeString)) 3361 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.QUANTITY); 3362 if ("Range".equals(codeString)) 3363 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.RANGE); 3364 if ("Ratio".equals(codeString)) 3365 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.RATIO); 3366 if ("Reference".equals(codeString)) 3367 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.REFERENCE); 3368 if ("RelatedArtifact".equals(codeString)) 3369 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.RELATEDARTIFACT); 3370 if ("SampledData".equals(codeString)) 3371 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SAMPLEDDATA); 3372 if ("Signature".equals(codeString)) 3373 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SIGNATURE); 3374 if ("SimpleQuantity".equals(codeString)) 3375 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SIMPLEQUANTITY); 3376 if ("Statistic".equals(codeString)) 3377 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.STATISTIC); 3378 if ("SubstanceAmount".equals(codeString)) 3379 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSTANCEAMOUNT); 3380 if ("Timing".equals(codeString)) 3381 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.TIMING); 3382 if ("TriggerDefinition".equals(codeString)) 3383 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.TRIGGERDEFINITION); 3384 if ("UsageContext".equals(codeString)) 3385 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.USAGECONTEXT); 3386 if ("base64Binary".equals(codeString)) 3387 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BASE64BINARY); 3388 if ("boolean".equals(codeString)) 3389 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BOOLEAN); 3390 if ("canonical".equals(codeString)) 3391 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CANONICAL); 3392 if ("code".equals(codeString)) 3393 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CODE); 3394 if ("date".equals(codeString)) 3395 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DATE); 3396 if ("dateTime".equals(codeString)) 3397 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DATETIME); 3398 if ("decimal".equals(codeString)) 3399 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DECIMAL); 3400 if ("id".equals(codeString)) 3401 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ID); 3402 if ("instant".equals(codeString)) 3403 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.INSTANT); 3404 if ("integer".equals(codeString)) 3405 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.INTEGER); 3406 if ("integer64".equals(codeString)) 3407 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.INTEGER64); 3408 if ("markdown".equals(codeString)) 3409 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MARKDOWN); 3410 if ("oid".equals(codeString)) 3411 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.OID); 3412 if ("positiveInt".equals(codeString)) 3413 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.POSITIVEINT); 3414 if ("string".equals(codeString)) 3415 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.STRING); 3416 if ("time".equals(codeString)) 3417 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.TIME); 3418 if ("unsignedInt".equals(codeString)) 3419 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.UNSIGNEDINT); 3420 if ("uri".equals(codeString)) 3421 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.URI); 3422 if ("url".equals(codeString)) 3423 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.URL); 3424 if ("uuid".equals(codeString)) 3425 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.UUID); 3426 if ("xhtml".equals(codeString)) 3427 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.XHTML); 3428 if ("Account".equals(codeString)) 3429 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ACCOUNT); 3430 if ("ActivityDefinition".equals(codeString)) 3431 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ACTIVITYDEFINITION); 3432 if ("AdministrableProductDefinition".equals(codeString)) 3433 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ADMINISTRABLEPRODUCTDEFINITION); 3434 if ("AdverseEvent".equals(codeString)) 3435 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ADVERSEEVENT); 3436 if ("AllergyIntolerance".equals(codeString)) 3437 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ALLERGYINTOLERANCE); 3438 if ("Appointment".equals(codeString)) 3439 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.APPOINTMENT); 3440 if ("AppointmentResponse".equals(codeString)) 3441 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.APPOINTMENTRESPONSE); 3442 if ("AuditEvent".equals(codeString)) 3443 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.AUDITEVENT); 3444 if ("Basic".equals(codeString)) 3445 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BASIC); 3446 if ("Binary".equals(codeString)) 3447 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BINARY); 3448 if ("BiologicallyDerivedProduct".equals(codeString)) 3449 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BIOLOGICALLYDERIVEDPRODUCT); 3450 if ("BodyStructure".equals(codeString)) 3451 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BODYSTRUCTURE); 3452 if ("Bundle".equals(codeString)) 3453 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BUNDLE); 3454 if ("CapabilityStatement".equals(codeString)) 3455 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CAPABILITYSTATEMENT); 3456 if ("CapabilityStatement2".equals(codeString)) 3457 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CAPABILITYSTATEMENT2); 3458 if ("CarePlan".equals(codeString)) 3459 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CAREPLAN); 3460 if ("CareTeam".equals(codeString)) 3461 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CARETEAM); 3462 if ("CatalogEntry".equals(codeString)) 3463 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CATALOGENTRY); 3464 if ("ChargeItem".equals(codeString)) 3465 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CHARGEITEM); 3466 if ("ChargeItemDefinition".equals(codeString)) 3467 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CHARGEITEMDEFINITION); 3468 if ("Claim".equals(codeString)) 3469 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CLAIM); 3470 if ("ClaimResponse".equals(codeString)) 3471 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CLAIMRESPONSE); 3472 if ("ClinicalImpression".equals(codeString)) 3473 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CLINICALIMPRESSION); 3474 if ("ClinicalUseIssue".equals(codeString)) 3475 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CLINICALUSEISSUE); 3476 if ("CodeSystem".equals(codeString)) 3477 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CODESYSTEM); 3478 if ("Communication".equals(codeString)) 3479 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.COMMUNICATION); 3480 if ("CommunicationRequest".equals(codeString)) 3481 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.COMMUNICATIONREQUEST); 3482 if ("CompartmentDefinition".equals(codeString)) 3483 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.COMPARTMENTDEFINITION); 3484 if ("Composition".equals(codeString)) 3485 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.COMPOSITION); 3486 if ("ConceptMap".equals(codeString)) 3487 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CONCEPTMAP); 3488 if ("Condition".equals(codeString)) 3489 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CONDITION); 3490 if ("ConditionDefinition".equals(codeString)) 3491 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CONDITIONDEFINITION); 3492 if ("Consent".equals(codeString)) 3493 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CONSENT); 3494 if ("Contract".equals(codeString)) 3495 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CONTRACT); 3496 if ("Coverage".equals(codeString)) 3497 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.COVERAGE); 3498 if ("CoverageEligibilityRequest".equals(codeString)) 3499 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.COVERAGEELIGIBILITYREQUEST); 3500 if ("CoverageEligibilityResponse".equals(codeString)) 3501 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.COVERAGEELIGIBILITYRESPONSE); 3502 if ("DetectedIssue".equals(codeString)) 3503 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DETECTEDISSUE); 3504 if ("Device".equals(codeString)) 3505 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DEVICE); 3506 if ("DeviceDefinition".equals(codeString)) 3507 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DEVICEDEFINITION); 3508 if ("DeviceMetric".equals(codeString)) 3509 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DEVICEMETRIC); 3510 if ("DeviceRequest".equals(codeString)) 3511 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DEVICEREQUEST); 3512 if ("DeviceUseStatement".equals(codeString)) 3513 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DEVICEUSESTATEMENT); 3514 if ("DiagnosticReport".equals(codeString)) 3515 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DIAGNOSTICREPORT); 3516 if ("DocumentManifest".equals(codeString)) 3517 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DOCUMENTMANIFEST); 3518 if ("DocumentReference".equals(codeString)) 3519 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DOCUMENTREFERENCE); 3520 if ("DomainResource".equals(codeString)) 3521 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DOMAINRESOURCE); 3522 if ("Encounter".equals(codeString)) 3523 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ENCOUNTER); 3524 if ("Endpoint".equals(codeString)) 3525 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ENDPOINT); 3526 if ("EnrollmentRequest".equals(codeString)) 3527 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ENROLLMENTREQUEST); 3528 if ("EnrollmentResponse".equals(codeString)) 3529 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ENROLLMENTRESPONSE); 3530 if ("EpisodeOfCare".equals(codeString)) 3531 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.EPISODEOFCARE); 3532 if ("EventDefinition".equals(codeString)) 3533 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.EVENTDEFINITION); 3534 if ("Evidence".equals(codeString)) 3535 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.EVIDENCE); 3536 if ("EvidenceVariable".equals(codeString)) 3537 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.EVIDENCEVARIABLE); 3538 if ("ExampleScenario".equals(codeString)) 3539 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.EXAMPLESCENARIO); 3540 if ("ExplanationOfBenefit".equals(codeString)) 3541 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.EXPLANATIONOFBENEFIT); 3542 if ("FamilyMemberHistory".equals(codeString)) 3543 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.FAMILYMEMBERHISTORY); 3544 if ("Flag".equals(codeString)) 3545 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.FLAG); 3546 if ("Goal".equals(codeString)) 3547 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.GOAL); 3548 if ("GraphDefinition".equals(codeString)) 3549 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.GRAPHDEFINITION); 3550 if ("Group".equals(codeString)) 3551 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.GROUP); 3552 if ("GuidanceResponse".equals(codeString)) 3553 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.GUIDANCERESPONSE); 3554 if ("HealthcareService".equals(codeString)) 3555 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.HEALTHCARESERVICE); 3556 if ("ImagingStudy".equals(codeString)) 3557 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.IMAGINGSTUDY); 3558 if ("Immunization".equals(codeString)) 3559 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.IMMUNIZATION); 3560 if ("ImmunizationEvaluation".equals(codeString)) 3561 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.IMMUNIZATIONEVALUATION); 3562 if ("ImmunizationRecommendation".equals(codeString)) 3563 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.IMMUNIZATIONRECOMMENDATION); 3564 if ("ImplementationGuide".equals(codeString)) 3565 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.IMPLEMENTATIONGUIDE); 3566 if ("Ingredient".equals(codeString)) 3567 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.INGREDIENT); 3568 if ("InsurancePlan".equals(codeString)) 3569 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.INSURANCEPLAN); 3570 if ("Invoice".equals(codeString)) 3571 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.INVOICE); 3572 if ("Library".equals(codeString)) 3573 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.LIBRARY); 3574 if ("Linkage".equals(codeString)) 3575 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.LINKAGE); 3576 if ("List".equals(codeString)) 3577 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.LIST); 3578 if ("Location".equals(codeString)) 3579 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.LOCATION); 3580 if ("ManufacturedItemDefinition".equals(codeString)) 3581 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MANUFACTUREDITEMDEFINITION); 3582 if ("Measure".equals(codeString)) 3583 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEASURE); 3584 if ("MeasureReport".equals(codeString)) 3585 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEASUREREPORT); 3586 if ("Medication".equals(codeString)) 3587 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEDICATION); 3588 if ("MedicationAdministration".equals(codeString)) 3589 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEDICATIONADMINISTRATION); 3590 if ("MedicationDispense".equals(codeString)) 3591 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEDICATIONDISPENSE); 3592 if ("MedicationKnowledge".equals(codeString)) 3593 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEDICATIONKNOWLEDGE); 3594 if ("MedicationRequest".equals(codeString)) 3595 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEDICATIONREQUEST); 3596 if ("MedicationUsage".equals(codeString)) 3597 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEDICATIONUSAGE); 3598 if ("MedicinalProductDefinition".equals(codeString)) 3599 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEDICINALPRODUCTDEFINITION); 3600 if ("MessageDefinition".equals(codeString)) 3601 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MESSAGEDEFINITION); 3602 if ("MessageHeader".equals(codeString)) 3603 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MESSAGEHEADER); 3604 if ("MolecularSequence".equals(codeString)) 3605 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MOLECULARSEQUENCE); 3606 if ("NamingSystem".equals(codeString)) 3607 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.NAMINGSYSTEM); 3608 if ("NutritionIntake".equals(codeString)) 3609 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.NUTRITIONINTAKE); 3610 if ("NutritionOrder".equals(codeString)) 3611 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.NUTRITIONORDER); 3612 if ("Observation".equals(codeString)) 3613 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.OBSERVATION); 3614 if ("ObservationDefinition".equals(codeString)) 3615 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.OBSERVATIONDEFINITION); 3616 if ("OperationDefinition".equals(codeString)) 3617 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.OPERATIONDEFINITION); 3618 if ("OperationOutcome".equals(codeString)) 3619 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.OPERATIONOUTCOME); 3620 if ("Organization".equals(codeString)) 3621 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ORGANIZATION); 3622 if ("OrganizationAffiliation".equals(codeString)) 3623 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ORGANIZATIONAFFILIATION); 3624 if ("PackagedProductDefinition".equals(codeString)) 3625 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PACKAGEDPRODUCTDEFINITION); 3626 if ("Parameters".equals(codeString)) 3627 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PARAMETERS); 3628 if ("Patient".equals(codeString)) 3629 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PATIENT); 3630 if ("PaymentNotice".equals(codeString)) 3631 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PAYMENTNOTICE); 3632 if ("PaymentReconciliation".equals(codeString)) 3633 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PAYMENTRECONCILIATION); 3634 if ("Person".equals(codeString)) 3635 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PERSON); 3636 if ("PlanDefinition".equals(codeString)) 3637 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PLANDEFINITION); 3638 if ("Practitioner".equals(codeString)) 3639 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PRACTITIONER); 3640 if ("PractitionerRole".equals(codeString)) 3641 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PRACTITIONERROLE); 3642 if ("Procedure".equals(codeString)) 3643 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PROCEDURE); 3644 if ("Provenance".equals(codeString)) 3645 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PROVENANCE); 3646 if ("Questionnaire".equals(codeString)) 3647 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.QUESTIONNAIRE); 3648 if ("QuestionnaireResponse".equals(codeString)) 3649 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.QUESTIONNAIRERESPONSE); 3650 if ("RegulatedAuthorization".equals(codeString)) 3651 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.REGULATEDAUTHORIZATION); 3652 if ("RelatedPerson".equals(codeString)) 3653 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.RELATEDPERSON); 3654 if ("RequestGroup".equals(codeString)) 3655 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.REQUESTGROUP); 3656 if ("ResearchStudy".equals(codeString)) 3657 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.RESEARCHSTUDY); 3658 if ("ResearchSubject".equals(codeString)) 3659 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.RESEARCHSUBJECT); 3660 if ("Resource".equals(codeString)) 3661 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.RESOURCE); 3662 if ("RiskAssessment".equals(codeString)) 3663 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.RISKASSESSMENT); 3664 if ("Schedule".equals(codeString)) 3665 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SCHEDULE); 3666 if ("SearchParameter".equals(codeString)) 3667 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SEARCHPARAMETER); 3668 if ("ServiceRequest".equals(codeString)) 3669 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SERVICEREQUEST); 3670 if ("Slot".equals(codeString)) 3671 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SLOT); 3672 if ("Specimen".equals(codeString)) 3673 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SPECIMEN); 3674 if ("SpecimenDefinition".equals(codeString)) 3675 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SPECIMENDEFINITION); 3676 if ("StructureDefinition".equals(codeString)) 3677 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.STRUCTUREDEFINITION); 3678 if ("StructureMap".equals(codeString)) 3679 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.STRUCTUREMAP); 3680 if ("Subscription".equals(codeString)) 3681 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSCRIPTION); 3682 if ("Substance".equals(codeString)) 3683 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSTANCE); 3684 if ("SubstanceDefinition".equals(codeString)) 3685 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSTANCEDEFINITION); 3686 if ("SubstanceNucleicAcid".equals(codeString)) 3687 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSTANCENUCLEICACID); 3688 if ("SubstancePolymer".equals(codeString)) 3689 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSTANCEPOLYMER); 3690 if ("SubstanceProtein".equals(codeString)) 3691 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSTANCEPROTEIN); 3692 if ("SubstanceReferenceInformation".equals(codeString)) 3693 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSTANCEREFERENCEINFORMATION); 3694 if ("SubstanceSourceMaterial".equals(codeString)) 3695 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSTANCESOURCEMATERIAL); 3696 if ("SupplyDelivery".equals(codeString)) 3697 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUPPLYDELIVERY); 3698 if ("SupplyRequest".equals(codeString)) 3699 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUPPLYREQUEST); 3700 if ("Task".equals(codeString)) 3701 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.TASK); 3702 if ("TerminologyCapabilities".equals(codeString)) 3703 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.TERMINOLOGYCAPABILITIES); 3704 if ("TestReport".equals(codeString)) 3705 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.TESTREPORT); 3706 if ("TestScript".equals(codeString)) 3707 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.TESTSCRIPT); 3708 if ("Topic".equals(codeString)) 3709 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.TOPIC); 3710 if ("ValueSet".equals(codeString)) 3711 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.VALUESET); 3712 if ("VerificationResult".equals(codeString)) 3713 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.VERIFICATIONRESULT); 3714 if ("VisionPrescription".equals(codeString)) 3715 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.VISIONPRESCRIPTION); 3716 throw new FHIRException("Unknown FHIRDefinedType code '"+codeString+"'"); 3717 } 3718 public String toCode(FHIRDefinedType code) { 3719 if (code == FHIRDefinedType.ADDRESS) 3720 return "Address"; 3721 if (code == FHIRDefinedType.AGE) 3722 return "Age"; 3723 if (code == FHIRDefinedType.ANNOTATION) 3724 return "Annotation"; 3725 if (code == FHIRDefinedType.ATTACHMENT) 3726 return "Attachment"; 3727 if (code == FHIRDefinedType.BACKBONEELEMENT) 3728 return "BackboneElement"; 3729 if (code == FHIRDefinedType.BACKBONETYPE) 3730 return "BackboneType"; 3731 if (code == FHIRDefinedType.BASE) 3732 return "Base"; 3733 if (code == FHIRDefinedType.CODEABLECONCEPT) 3734 return "CodeableConcept"; 3735 if (code == FHIRDefinedType.CODEABLEREFERENCE) 3736 return "CodeableReference"; 3737 if (code == FHIRDefinedType.CODING) 3738 return "Coding"; 3739 if (code == FHIRDefinedType.CONTACTDETAIL) 3740 return "ContactDetail"; 3741 if (code == FHIRDefinedType.CONTACTPOINT) 3742 return "ContactPoint"; 3743 if (code == FHIRDefinedType.CONTRIBUTOR) 3744 return "Contributor"; 3745 if (code == FHIRDefinedType.COUNT) 3746 return "Count"; 3747 if (code == FHIRDefinedType.DATAREQUIREMENT) 3748 return "DataRequirement"; 3749 if (code == FHIRDefinedType.DATATYPE) 3750 return "DataType"; 3751 if (code == FHIRDefinedType.DISTANCE) 3752 return "Distance"; 3753 if (code == FHIRDefinedType.DOSAGE) 3754 return "Dosage"; 3755 if (code == FHIRDefinedType.DURATION) 3756 return "Duration"; 3757 if (code == FHIRDefinedType.ELEMENT) 3758 return "Element"; 3759 if (code == FHIRDefinedType.ELEMENTDEFINITION) 3760 return "ElementDefinition"; 3761 if (code == FHIRDefinedType.EXPRESSION) 3762 return "Expression"; 3763 if (code == FHIRDefinedType.EXTENSION) 3764 return "Extension"; 3765 if (code == FHIRDefinedType.HUMANNAME) 3766 return "HumanName"; 3767 if (code == FHIRDefinedType.IDENTIFIER) 3768 return "Identifier"; 3769 if (code == FHIRDefinedType.MARKETINGSTATUS) 3770 return "MarketingStatus"; 3771 if (code == FHIRDefinedType.META) 3772 return "Meta"; 3773 if (code == FHIRDefinedType.MONEY) 3774 return "Money"; 3775 if (code == FHIRDefinedType.MONEYQUANTITY) 3776 return "MoneyQuantity"; 3777 if (code == FHIRDefinedType.NARRATIVE) 3778 return "Narrative"; 3779 if (code == FHIRDefinedType.ORDEREDDISTRIBUTION) 3780 return "OrderedDistribution"; 3781 if (code == FHIRDefinedType.PARAMETERDEFINITION) 3782 return "ParameterDefinition"; 3783 if (code == FHIRDefinedType.PERIOD) 3784 return "Period"; 3785 if (code == FHIRDefinedType.POPULATION) 3786 return "Population"; 3787 if (code == FHIRDefinedType.PRIMITIVETYPE) 3788 return "PrimitiveType"; 3789 if (code == FHIRDefinedType.PRODCHARACTERISTIC) 3790 return "ProdCharacteristic"; 3791 if (code == FHIRDefinedType.PRODUCTSHELFLIFE) 3792 return "ProductShelfLife"; 3793 if (code == FHIRDefinedType.QUANTITY) 3794 return "Quantity"; 3795 if (code == FHIRDefinedType.RANGE) 3796 return "Range"; 3797 if (code == FHIRDefinedType.RATIO) 3798 return "Ratio"; 3799 if (code == FHIRDefinedType.REFERENCE) 3800 return "Reference"; 3801 if (code == FHIRDefinedType.RELATEDARTIFACT) 3802 return "RelatedArtifact"; 3803 if (code == FHIRDefinedType.SAMPLEDDATA) 3804 return "SampledData"; 3805 if (code == FHIRDefinedType.SIGNATURE) 3806 return "Signature"; 3807 if (code == FHIRDefinedType.SIMPLEQUANTITY) 3808 return "SimpleQuantity"; 3809 if (code == FHIRDefinedType.STATISTIC) 3810 return "Statistic"; 3811 if (code == FHIRDefinedType.SUBSTANCEAMOUNT) 3812 return "SubstanceAmount"; 3813 if (code == FHIRDefinedType.TIMING) 3814 return "Timing"; 3815 if (code == FHIRDefinedType.TRIGGERDEFINITION) 3816 return "TriggerDefinition"; 3817 if (code == FHIRDefinedType.USAGECONTEXT) 3818 return "UsageContext"; 3819 if (code == FHIRDefinedType.BASE64BINARY) 3820 return "base64Binary"; 3821 if (code == FHIRDefinedType.BOOLEAN) 3822 return "boolean"; 3823 if (code == FHIRDefinedType.CANONICAL) 3824 return "canonical"; 3825 if (code == FHIRDefinedType.CODE) 3826 return "code"; 3827 if (code == FHIRDefinedType.DATE) 3828 return "date"; 3829 if (code == FHIRDefinedType.DATETIME) 3830 return "dateTime"; 3831 if (code == FHIRDefinedType.DECIMAL) 3832 return "decimal"; 3833 if (code == FHIRDefinedType.ID) 3834 return "id"; 3835 if (code == FHIRDefinedType.INSTANT) 3836 return "instant"; 3837 if (code == FHIRDefinedType.INTEGER) 3838 return "integer"; 3839 if (code == FHIRDefinedType.INTEGER64) 3840 return "integer64"; 3841 if (code == FHIRDefinedType.MARKDOWN) 3842 return "markdown"; 3843 if (code == FHIRDefinedType.OID) 3844 return "oid"; 3845 if (code == FHIRDefinedType.POSITIVEINT) 3846 return "positiveInt"; 3847 if (code == FHIRDefinedType.STRING) 3848 return "string"; 3849 if (code == FHIRDefinedType.TIME) 3850 return "time"; 3851 if (code == FHIRDefinedType.UNSIGNEDINT) 3852 return "unsignedInt"; 3853 if (code == FHIRDefinedType.URI) 3854 return "uri"; 3855 if (code == FHIRDefinedType.URL) 3856 return "url"; 3857 if (code == FHIRDefinedType.UUID) 3858 return "uuid"; 3859 if (code == FHIRDefinedType.XHTML) 3860 return "xhtml"; 3861 if (code == FHIRDefinedType.ACCOUNT) 3862 return "Account"; 3863 if (code == FHIRDefinedType.ACTIVITYDEFINITION) 3864 return "ActivityDefinition"; 3865 if (code == FHIRDefinedType.ADMINISTRABLEPRODUCTDEFINITION) 3866 return "AdministrableProductDefinition"; 3867 if (code == FHIRDefinedType.ADVERSEEVENT) 3868 return "AdverseEvent"; 3869 if (code == FHIRDefinedType.ALLERGYINTOLERANCE) 3870 return "AllergyIntolerance"; 3871 if (code == FHIRDefinedType.APPOINTMENT) 3872 return "Appointment"; 3873 if (code == FHIRDefinedType.APPOINTMENTRESPONSE) 3874 return "AppointmentResponse"; 3875 if (code == FHIRDefinedType.AUDITEVENT) 3876 return "AuditEvent"; 3877 if (code == FHIRDefinedType.BASIC) 3878 return "Basic"; 3879 if (code == FHIRDefinedType.BINARY) 3880 return "Binary"; 3881 if (code == FHIRDefinedType.BIOLOGICALLYDERIVEDPRODUCT) 3882 return "BiologicallyDerivedProduct"; 3883 if (code == FHIRDefinedType.BODYSTRUCTURE) 3884 return "BodyStructure"; 3885 if (code == FHIRDefinedType.BUNDLE) 3886 return "Bundle"; 3887 if (code == FHIRDefinedType.CAPABILITYSTATEMENT) 3888 return "CapabilityStatement"; 3889 if (code == FHIRDefinedType.CAPABILITYSTATEMENT2) 3890 return "CapabilityStatement2"; 3891 if (code == FHIRDefinedType.CAREPLAN) 3892 return "CarePlan"; 3893 if (code == FHIRDefinedType.CARETEAM) 3894 return "CareTeam"; 3895 if (code == FHIRDefinedType.CATALOGENTRY) 3896 return "CatalogEntry"; 3897 if (code == FHIRDefinedType.CHARGEITEM) 3898 return "ChargeItem"; 3899 if (code == FHIRDefinedType.CHARGEITEMDEFINITION) 3900 return "ChargeItemDefinition"; 3901 if (code == FHIRDefinedType.CLAIM) 3902 return "Claim"; 3903 if (code == FHIRDefinedType.CLAIMRESPONSE) 3904 return "ClaimResponse"; 3905 if (code == FHIRDefinedType.CLINICALIMPRESSION) 3906 return "ClinicalImpression"; 3907 if (code == FHIRDefinedType.CLINICALUSEISSUE) 3908 return "ClinicalUseIssue"; 3909 if (code == FHIRDefinedType.CODESYSTEM) 3910 return "CodeSystem"; 3911 if (code == FHIRDefinedType.COMMUNICATION) 3912 return "Communication"; 3913 if (code == FHIRDefinedType.COMMUNICATIONREQUEST) 3914 return "CommunicationRequest"; 3915 if (code == FHIRDefinedType.COMPARTMENTDEFINITION) 3916 return "CompartmentDefinition"; 3917 if (code == FHIRDefinedType.COMPOSITION) 3918 return "Composition"; 3919 if (code == FHIRDefinedType.CONCEPTMAP) 3920 return "ConceptMap"; 3921 if (code == FHIRDefinedType.CONDITION) 3922 return "Condition"; 3923 if (code == FHIRDefinedType.CONDITIONDEFINITION) 3924 return "ConditionDefinition"; 3925 if (code == FHIRDefinedType.CONSENT) 3926 return "Consent"; 3927 if (code == FHIRDefinedType.CONTRACT) 3928 return "Contract"; 3929 if (code == FHIRDefinedType.COVERAGE) 3930 return "Coverage"; 3931 if (code == FHIRDefinedType.COVERAGEELIGIBILITYREQUEST) 3932 return "CoverageEligibilityRequest"; 3933 if (code == FHIRDefinedType.COVERAGEELIGIBILITYRESPONSE) 3934 return "CoverageEligibilityResponse"; 3935 if (code == FHIRDefinedType.DETECTEDISSUE) 3936 return "DetectedIssue"; 3937 if (code == FHIRDefinedType.DEVICE) 3938 return "Device"; 3939 if (code == FHIRDefinedType.DEVICEDEFINITION) 3940 return "DeviceDefinition"; 3941 if (code == FHIRDefinedType.DEVICEMETRIC) 3942 return "DeviceMetric"; 3943 if (code == FHIRDefinedType.DEVICEREQUEST) 3944 return "DeviceRequest"; 3945 if (code == FHIRDefinedType.DEVICEUSESTATEMENT) 3946 return "DeviceUseStatement"; 3947 if (code == FHIRDefinedType.DIAGNOSTICREPORT) 3948 return "DiagnosticReport"; 3949 if (code == FHIRDefinedType.DOCUMENTMANIFEST) 3950 return "DocumentManifest"; 3951 if (code == FHIRDefinedType.DOCUMENTREFERENCE) 3952 return "DocumentReference"; 3953 if (code == FHIRDefinedType.DOMAINRESOURCE) 3954 return "DomainResource"; 3955 if (code == FHIRDefinedType.ENCOUNTER) 3956 return "Encounter"; 3957 if (code == FHIRDefinedType.ENDPOINT) 3958 return "Endpoint"; 3959 if (code == FHIRDefinedType.ENROLLMENTREQUEST) 3960 return "EnrollmentRequest"; 3961 if (code == FHIRDefinedType.ENROLLMENTRESPONSE) 3962 return "EnrollmentResponse"; 3963 if (code == FHIRDefinedType.EPISODEOFCARE) 3964 return "EpisodeOfCare"; 3965 if (code == FHIRDefinedType.EVENTDEFINITION) 3966 return "EventDefinition"; 3967 if (code == FHIRDefinedType.EVIDENCE) 3968 return "Evidence"; 3969 if (code == FHIRDefinedType.EVIDENCEVARIABLE) 3970 return "EvidenceVariable"; 3971 if (code == FHIRDefinedType.EXAMPLESCENARIO) 3972 return "ExampleScenario"; 3973 if (code == FHIRDefinedType.EXPLANATIONOFBENEFIT) 3974 return "ExplanationOfBenefit"; 3975 if (code == FHIRDefinedType.FAMILYMEMBERHISTORY) 3976 return "FamilyMemberHistory"; 3977 if (code == FHIRDefinedType.FLAG) 3978 return "Flag"; 3979 if (code == FHIRDefinedType.GOAL) 3980 return "Goal"; 3981 if (code == FHIRDefinedType.GRAPHDEFINITION) 3982 return "GraphDefinition"; 3983 if (code == FHIRDefinedType.GROUP) 3984 return "Group"; 3985 if (code == FHIRDefinedType.GUIDANCERESPONSE) 3986 return "GuidanceResponse"; 3987 if (code == FHIRDefinedType.HEALTHCARESERVICE) 3988 return "HealthcareService"; 3989 if (code == FHIRDefinedType.IMAGINGSTUDY) 3990 return "ImagingStudy"; 3991 if (code == FHIRDefinedType.IMMUNIZATION) 3992 return "Immunization"; 3993 if (code == FHIRDefinedType.IMMUNIZATIONEVALUATION) 3994 return "ImmunizationEvaluation"; 3995 if (code == FHIRDefinedType.IMMUNIZATIONRECOMMENDATION) 3996 return "ImmunizationRecommendation"; 3997 if (code == FHIRDefinedType.IMPLEMENTATIONGUIDE) 3998 return "ImplementationGuide"; 3999 if (code == FHIRDefinedType.INGREDIENT) 4000 return "Ingredient"; 4001 if (code == FHIRDefinedType.INSURANCEPLAN) 4002 return "InsurancePlan"; 4003 if (code == FHIRDefinedType.INVOICE) 4004 return "Invoice"; 4005 if (code == FHIRDefinedType.LIBRARY) 4006 return "Library"; 4007 if (code == FHIRDefinedType.LINKAGE) 4008 return "Linkage"; 4009 if (code == FHIRDefinedType.LIST) 4010 return "List"; 4011 if (code == FHIRDefinedType.LOCATION) 4012 return "Location"; 4013 if (code == FHIRDefinedType.MANUFACTUREDITEMDEFINITION) 4014 return "ManufacturedItemDefinition"; 4015 if (code == FHIRDefinedType.MEASURE) 4016 return "Measure"; 4017 if (code == FHIRDefinedType.MEASUREREPORT) 4018 return "MeasureReport"; 4019 if (code == FHIRDefinedType.MEDICATION) 4020 return "Medication"; 4021 if (code == FHIRDefinedType.MEDICATIONADMINISTRATION) 4022 return "MedicationAdministration"; 4023 if (code == FHIRDefinedType.MEDICATIONDISPENSE) 4024 return "MedicationDispense"; 4025 if (code == FHIRDefinedType.MEDICATIONKNOWLEDGE) 4026 return "MedicationKnowledge"; 4027 if (code == FHIRDefinedType.MEDICATIONREQUEST) 4028 return "MedicationRequest"; 4029 if (code == FHIRDefinedType.MEDICATIONUSAGE) 4030 return "MedicationUsage"; 4031 if (code == FHIRDefinedType.MEDICINALPRODUCTDEFINITION) 4032 return "MedicinalProductDefinition"; 4033 if (code == FHIRDefinedType.MESSAGEDEFINITION) 4034 return "MessageDefinition"; 4035 if (code == FHIRDefinedType.MESSAGEHEADER) 4036 return "MessageHeader"; 4037 if (code == FHIRDefinedType.MOLECULARSEQUENCE) 4038 return "MolecularSequence"; 4039 if (code == FHIRDefinedType.NAMINGSYSTEM) 4040 return "NamingSystem"; 4041 if (code == FHIRDefinedType.NUTRITIONINTAKE) 4042 return "NutritionIntake"; 4043 if (code == FHIRDefinedType.NUTRITIONORDER) 4044 return "NutritionOrder"; 4045 if (code == FHIRDefinedType.OBSERVATION) 4046 return "Observation"; 4047 if (code == FHIRDefinedType.OBSERVATIONDEFINITION) 4048 return "ObservationDefinition"; 4049 if (code == FHIRDefinedType.OPERATIONDEFINITION) 4050 return "OperationDefinition"; 4051 if (code == FHIRDefinedType.OPERATIONOUTCOME) 4052 return "OperationOutcome"; 4053 if (code == FHIRDefinedType.ORGANIZATION) 4054 return "Organization"; 4055 if (code == FHIRDefinedType.ORGANIZATIONAFFILIATION) 4056 return "OrganizationAffiliation"; 4057 if (code == FHIRDefinedType.PACKAGEDPRODUCTDEFINITION) 4058 return "PackagedProductDefinition"; 4059 if (code == FHIRDefinedType.PARAMETERS) 4060 return "Parameters"; 4061 if (code == FHIRDefinedType.PATIENT) 4062 return "Patient"; 4063 if (code == FHIRDefinedType.PAYMENTNOTICE) 4064 return "PaymentNotice"; 4065 if (code == FHIRDefinedType.PAYMENTRECONCILIATION) 4066 return "PaymentReconciliation"; 4067 if (code == FHIRDefinedType.PERSON) 4068 return "Person"; 4069 if (code == FHIRDefinedType.PLANDEFINITION) 4070 return "PlanDefinition"; 4071 if (code == FHIRDefinedType.PRACTITIONER) 4072 return "Practitioner"; 4073 if (code == FHIRDefinedType.PRACTITIONERROLE) 4074 return "PractitionerRole"; 4075 if (code == FHIRDefinedType.PROCEDURE) 4076 return "Procedure"; 4077 if (code == FHIRDefinedType.PROVENANCE) 4078 return "Provenance"; 4079 if (code == FHIRDefinedType.QUESTIONNAIRE) 4080 return "Questionnaire"; 4081 if (code == FHIRDefinedType.QUESTIONNAIRERESPONSE) 4082 return "QuestionnaireResponse"; 4083 if (code == FHIRDefinedType.REGULATEDAUTHORIZATION) 4084 return "RegulatedAuthorization"; 4085 if (code == FHIRDefinedType.RELATEDPERSON) 4086 return "RelatedPerson"; 4087 if (code == FHIRDefinedType.REQUESTGROUP) 4088 return "RequestGroup"; 4089 if (code == FHIRDefinedType.RESEARCHSTUDY) 4090 return "ResearchStudy"; 4091 if (code == FHIRDefinedType.RESEARCHSUBJECT) 4092 return "ResearchSubject"; 4093 if (code == FHIRDefinedType.RESOURCE) 4094 return "Resource"; 4095 if (code == FHIRDefinedType.RISKASSESSMENT) 4096 return "RiskAssessment"; 4097 if (code == FHIRDefinedType.SCHEDULE) 4098 return "Schedule"; 4099 if (code == FHIRDefinedType.SEARCHPARAMETER) 4100 return "SearchParameter"; 4101 if (code == FHIRDefinedType.SERVICEREQUEST) 4102 return "ServiceRequest"; 4103 if (code == FHIRDefinedType.SLOT) 4104 return "Slot"; 4105 if (code == FHIRDefinedType.SPECIMEN) 4106 return "Specimen"; 4107 if (code == FHIRDefinedType.SPECIMENDEFINITION) 4108 return "SpecimenDefinition"; 4109 if (code == FHIRDefinedType.STRUCTUREDEFINITION) 4110 return "StructureDefinition"; 4111 if (code == FHIRDefinedType.STRUCTUREMAP) 4112 return "StructureMap"; 4113 if (code == FHIRDefinedType.SUBSCRIPTION) 4114 return "Subscription"; 4115 if (code == FHIRDefinedType.SUBSTANCE) 4116 return "Substance"; 4117 if (code == FHIRDefinedType.SUBSTANCEDEFINITION) 4118 return "SubstanceDefinition"; 4119 if (code == FHIRDefinedType.SUBSTANCENUCLEICACID) 4120 return "SubstanceNucleicAcid"; 4121 if (code == FHIRDefinedType.SUBSTANCEPOLYMER) 4122 return "SubstancePolymer"; 4123 if (code == FHIRDefinedType.SUBSTANCEPROTEIN) 4124 return "SubstanceProtein"; 4125 if (code == FHIRDefinedType.SUBSTANCEREFERENCEINFORMATION) 4126 return "SubstanceReferenceInformation"; 4127 if (code == FHIRDefinedType.SUBSTANCESOURCEMATERIAL) 4128 return "SubstanceSourceMaterial"; 4129 if (code == FHIRDefinedType.SUPPLYDELIVERY) 4130 return "SupplyDelivery"; 4131 if (code == FHIRDefinedType.SUPPLYREQUEST) 4132 return "SupplyRequest"; 4133 if (code == FHIRDefinedType.TASK) 4134 return "Task"; 4135 if (code == FHIRDefinedType.TERMINOLOGYCAPABILITIES) 4136 return "TerminologyCapabilities"; 4137 if (code == FHIRDefinedType.TESTREPORT) 4138 return "TestReport"; 4139 if (code == FHIRDefinedType.TESTSCRIPT) 4140 return "TestScript"; 4141 if (code == FHIRDefinedType.TOPIC) 4142 return "Topic"; 4143 if (code == FHIRDefinedType.VALUESET) 4144 return "ValueSet"; 4145 if (code == FHIRDefinedType.VERIFICATIONRESULT) 4146 return "VerificationResult"; 4147 if (code == FHIRDefinedType.VISIONPRESCRIPTION) 4148 return "VisionPrescription"; 4149 return "?"; 4150 } 4151 public String toSystem(FHIRDefinedType code) { 4152 return code.getSystem(); 4153 } 4154 } 4155 4156 public enum TestScriptRequestMethodCode { 4157 /** 4158 * HTTP DELETE operation. 4159 */ 4160 DELETE, 4161 /** 4162 * HTTP GET operation. 4163 */ 4164 GET, 4165 /** 4166 * HTTP OPTIONS operation. 4167 */ 4168 OPTIONS, 4169 /** 4170 * HTTP PATCH operation. 4171 */ 4172 PATCH, 4173 /** 4174 * HTTP POST operation. 4175 */ 4176 POST, 4177 /** 4178 * HTTP PUT operation. 4179 */ 4180 PUT, 4181 /** 4182 * HTTP HEAD operation. 4183 */ 4184 HEAD, 4185 /** 4186 * added to help the parsers with the generic types 4187 */ 4188 NULL; 4189 public static TestScriptRequestMethodCode fromCode(String codeString) throws FHIRException { 4190 if (codeString == null || "".equals(codeString)) 4191 return null; 4192 if ("delete".equals(codeString)) 4193 return DELETE; 4194 if ("get".equals(codeString)) 4195 return GET; 4196 if ("options".equals(codeString)) 4197 return OPTIONS; 4198 if ("patch".equals(codeString)) 4199 return PATCH; 4200 if ("post".equals(codeString)) 4201 return POST; 4202 if ("put".equals(codeString)) 4203 return PUT; 4204 if ("head".equals(codeString)) 4205 return HEAD; 4206 if (Configuration.isAcceptInvalidEnums()) 4207 return null; 4208 else 4209 throw new FHIRException("Unknown TestScriptRequestMethodCode code '"+codeString+"'"); 4210 } 4211 public String toCode() { 4212 switch (this) { 4213 case DELETE: return "delete"; 4214 case GET: return "get"; 4215 case OPTIONS: return "options"; 4216 case PATCH: return "patch"; 4217 case POST: return "post"; 4218 case PUT: return "put"; 4219 case HEAD: return "head"; 4220 default: return "?"; 4221 } 4222 } 4223 public String getSystem() { 4224 switch (this) { 4225 case DELETE: return "http://hl7.org/fhir/http-operations"; 4226 case GET: return "http://hl7.org/fhir/http-operations"; 4227 case OPTIONS: return "http://hl7.org/fhir/http-operations"; 4228 case PATCH: return "http://hl7.org/fhir/http-operations"; 4229 case POST: return "http://hl7.org/fhir/http-operations"; 4230 case PUT: return "http://hl7.org/fhir/http-operations"; 4231 case HEAD: return "http://hl7.org/fhir/http-operations"; 4232 default: return "?"; 4233 } 4234 } 4235 public String getDefinition() { 4236 switch (this) { 4237 case DELETE: return "HTTP DELETE operation."; 4238 case GET: return "HTTP GET operation."; 4239 case OPTIONS: return "HTTP OPTIONS operation."; 4240 case PATCH: return "HTTP PATCH operation."; 4241 case POST: return "HTTP POST operation."; 4242 case PUT: return "HTTP PUT operation."; 4243 case HEAD: return "HTTP HEAD operation."; 4244 default: return "?"; 4245 } 4246 } 4247 public String getDisplay() { 4248 switch (this) { 4249 case DELETE: return "DELETE"; 4250 case GET: return "GET"; 4251 case OPTIONS: return "OPTIONS"; 4252 case PATCH: return "PATCH"; 4253 case POST: return "POST"; 4254 case PUT: return "PUT"; 4255 case HEAD: return "HEAD"; 4256 default: return "?"; 4257 } 4258 } 4259 } 4260 4261 public static class TestScriptRequestMethodCodeEnumFactory implements EnumFactory<TestScriptRequestMethodCode> { 4262 public TestScriptRequestMethodCode fromCode(String codeString) throws IllegalArgumentException { 4263 if (codeString == null || "".equals(codeString)) 4264 if (codeString == null || "".equals(codeString)) 4265 return null; 4266 if ("delete".equals(codeString)) 4267 return TestScriptRequestMethodCode.DELETE; 4268 if ("get".equals(codeString)) 4269 return TestScriptRequestMethodCode.GET; 4270 if ("options".equals(codeString)) 4271 return TestScriptRequestMethodCode.OPTIONS; 4272 if ("patch".equals(codeString)) 4273 return TestScriptRequestMethodCode.PATCH; 4274 if ("post".equals(codeString)) 4275 return TestScriptRequestMethodCode.POST; 4276 if ("put".equals(codeString)) 4277 return TestScriptRequestMethodCode.PUT; 4278 if ("head".equals(codeString)) 4279 return TestScriptRequestMethodCode.HEAD; 4280 throw new IllegalArgumentException("Unknown TestScriptRequestMethodCode code '"+codeString+"'"); 4281 } 4282 public Enumeration<TestScriptRequestMethodCode> fromType(Base code) throws FHIRException { 4283 if (code == null) 4284 return null; 4285 if (code.isEmpty()) 4286 return new Enumeration<TestScriptRequestMethodCode>(this); 4287 String codeString = ((PrimitiveType) code).asStringValue(); 4288 if (codeString == null || "".equals(codeString)) 4289 return null; 4290 if ("delete".equals(codeString)) 4291 return new Enumeration<TestScriptRequestMethodCode>(this, TestScriptRequestMethodCode.DELETE); 4292 if ("get".equals(codeString)) 4293 return new Enumeration<TestScriptRequestMethodCode>(this, TestScriptRequestMethodCode.GET); 4294 if ("options".equals(codeString)) 4295 return new Enumeration<TestScriptRequestMethodCode>(this, TestScriptRequestMethodCode.OPTIONS); 4296 if ("patch".equals(codeString)) 4297 return new Enumeration<TestScriptRequestMethodCode>(this, TestScriptRequestMethodCode.PATCH); 4298 if ("post".equals(codeString)) 4299 return new Enumeration<TestScriptRequestMethodCode>(this, TestScriptRequestMethodCode.POST); 4300 if ("put".equals(codeString)) 4301 return new Enumeration<TestScriptRequestMethodCode>(this, TestScriptRequestMethodCode.PUT); 4302 if ("head".equals(codeString)) 4303 return new Enumeration<TestScriptRequestMethodCode>(this, TestScriptRequestMethodCode.HEAD); 4304 throw new FHIRException("Unknown TestScriptRequestMethodCode code '"+codeString+"'"); 4305 } 4306 public String toCode(TestScriptRequestMethodCode code) { 4307 if (code == TestScriptRequestMethodCode.DELETE) 4308 return "delete"; 4309 if (code == TestScriptRequestMethodCode.GET) 4310 return "get"; 4311 if (code == TestScriptRequestMethodCode.OPTIONS) 4312 return "options"; 4313 if (code == TestScriptRequestMethodCode.PATCH) 4314 return "patch"; 4315 if (code == TestScriptRequestMethodCode.POST) 4316 return "post"; 4317 if (code == TestScriptRequestMethodCode.PUT) 4318 return "put"; 4319 if (code == TestScriptRequestMethodCode.HEAD) 4320 return "head"; 4321 return "?"; 4322 } 4323 public String toSystem(TestScriptRequestMethodCode code) { 4324 return code.getSystem(); 4325 } 4326 } 4327 4328 @Block() 4329 public static class TestScriptOriginComponent extends BackboneElement implements IBaseBackboneElement { 4330 /** 4331 * Abstract name given to an origin server in this test script. The name is provided as a number starting at 1. 4332 */ 4333 @Child(name = "index", type = {IntegerType.class}, order=1, min=1, max=1, modifier=false, summary=false) 4334 @Description(shortDefinition="The index of the abstract origin server starting at 1", formalDefinition="Abstract name given to an origin server in this test script. The name is provided as a number starting at 1." ) 4335 protected IntegerType index; 4336 4337 /** 4338 * The type of origin profile the test system supports. 4339 */ 4340 @Child(name = "profile", type = {Coding.class}, order=2, min=1, max=1, modifier=false, summary=false) 4341 @Description(shortDefinition="FHIR-Client | FHIR-SDC-FormFiller", formalDefinition="The type of origin profile the test system supports." ) 4342 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/testscript-profile-origin-types") 4343 protected Coding profile; 4344 4345 private static final long serialVersionUID = -1239935149L; 4346 4347 /** 4348 * Constructor 4349 */ 4350 public TestScriptOriginComponent() { 4351 super(); 4352 } 4353 4354 /** 4355 * Constructor 4356 */ 4357 public TestScriptOriginComponent(int index, Coding profile) { 4358 super(); 4359 this.setIndex(index); 4360 this.setProfile(profile); 4361 } 4362 4363 /** 4364 * @return {@link #index} (Abstract name given to an origin server in this test script. The name is provided as a number starting at 1.). This is the underlying object with id, value and extensions. The accessor "getIndex" gives direct access to the value 4365 */ 4366 public IntegerType getIndexElement() { 4367 if (this.index == null) 4368 if (Configuration.errorOnAutoCreate()) 4369 throw new Error("Attempt to auto-create TestScriptOriginComponent.index"); 4370 else if (Configuration.doAutoCreate()) 4371 this.index = new IntegerType(); // bb 4372 return this.index; 4373 } 4374 4375 public boolean hasIndexElement() { 4376 return this.index != null && !this.index.isEmpty(); 4377 } 4378 4379 public boolean hasIndex() { 4380 return this.index != null && !this.index.isEmpty(); 4381 } 4382 4383 /** 4384 * @param value {@link #index} (Abstract name given to an origin server in this test script. The name is provided as a number starting at 1.). This is the underlying object with id, value and extensions. The accessor "getIndex" gives direct access to the value 4385 */ 4386 public TestScriptOriginComponent setIndexElement(IntegerType value) { 4387 this.index = value; 4388 return this; 4389 } 4390 4391 /** 4392 * @return Abstract name given to an origin server in this test script. The name is provided as a number starting at 1. 4393 */ 4394 public int getIndex() { 4395 return this.index == null || this.index.isEmpty() ? 0 : this.index.getValue(); 4396 } 4397 4398 /** 4399 * @param value Abstract name given to an origin server in this test script. The name is provided as a number starting at 1. 4400 */ 4401 public TestScriptOriginComponent setIndex(int value) { 4402 if (this.index == null) 4403 this.index = new IntegerType(); 4404 this.index.setValue(value); 4405 return this; 4406 } 4407 4408 /** 4409 * @return {@link #profile} (The type of origin profile the test system supports.) 4410 */ 4411 public Coding getProfile() { 4412 if (this.profile == null) 4413 if (Configuration.errorOnAutoCreate()) 4414 throw new Error("Attempt to auto-create TestScriptOriginComponent.profile"); 4415 else if (Configuration.doAutoCreate()) 4416 this.profile = new Coding(); // cc 4417 return this.profile; 4418 } 4419 4420 public boolean hasProfile() { 4421 return this.profile != null && !this.profile.isEmpty(); 4422 } 4423 4424 /** 4425 * @param value {@link #profile} (The type of origin profile the test system supports.) 4426 */ 4427 public TestScriptOriginComponent setProfile(Coding value) { 4428 this.profile = value; 4429 return this; 4430 } 4431 4432 protected void listChildren(List<Property> children) { 4433 super.listChildren(children); 4434 children.add(new Property("index", "integer", "Abstract name given to an origin server in this test script. The name is provided as a number starting at 1.", 0, 1, index)); 4435 children.add(new Property("profile", "Coding", "The type of origin profile the test system supports.", 0, 1, profile)); 4436 } 4437 4438 @Override 4439 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 4440 switch (_hash) { 4441 case 100346066: /*index*/ return new Property("index", "integer", "Abstract name given to an origin server in this test script. The name is provided as a number starting at 1.", 0, 1, index); 4442 case -309425751: /*profile*/ return new Property("profile", "Coding", "The type of origin profile the test system supports.", 0, 1, profile); 4443 default: return super.getNamedProperty(_hash, _name, _checkValid); 4444 } 4445 4446 } 4447 4448 @Override 4449 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 4450 switch (hash) { 4451 case 100346066: /*index*/ return this.index == null ? new Base[0] : new Base[] {this.index}; // IntegerType 4452 case -309425751: /*profile*/ return this.profile == null ? new Base[0] : new Base[] {this.profile}; // Coding 4453 default: return super.getProperty(hash, name, checkValid); 4454 } 4455 4456 } 4457 4458 @Override 4459 public Base setProperty(int hash, String name, Base value) throws FHIRException { 4460 switch (hash) { 4461 case 100346066: // index 4462 this.index = TypeConvertor.castToInteger(value); // IntegerType 4463 return value; 4464 case -309425751: // profile 4465 this.profile = TypeConvertor.castToCoding(value); // Coding 4466 return value; 4467 default: return super.setProperty(hash, name, value); 4468 } 4469 4470 } 4471 4472 @Override 4473 public Base setProperty(String name, Base value) throws FHIRException { 4474 if (name.equals("index")) { 4475 this.index = TypeConvertor.castToInteger(value); // IntegerType 4476 } else if (name.equals("profile")) { 4477 this.profile = TypeConvertor.castToCoding(value); // Coding 4478 } else 4479 return super.setProperty(name, value); 4480 return value; 4481 } 4482 4483 @Override 4484 public Base makeProperty(int hash, String name) throws FHIRException { 4485 switch (hash) { 4486 case 100346066: return getIndexElement(); 4487 case -309425751: return getProfile(); 4488 default: return super.makeProperty(hash, name); 4489 } 4490 4491 } 4492 4493 @Override 4494 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 4495 switch (hash) { 4496 case 100346066: /*index*/ return new String[] {"integer"}; 4497 case -309425751: /*profile*/ return new String[] {"Coding"}; 4498 default: return super.getTypesForProperty(hash, name); 4499 } 4500 4501 } 4502 4503 @Override 4504 public Base addChild(String name) throws FHIRException { 4505 if (name.equals("index")) { 4506 throw new FHIRException("Cannot call addChild on a primitive type TestScript.origin.index"); 4507 } 4508 else if (name.equals("profile")) { 4509 this.profile = new Coding(); 4510 return this.profile; 4511 } 4512 else 4513 return super.addChild(name); 4514 } 4515 4516 public TestScriptOriginComponent copy() { 4517 TestScriptOriginComponent dst = new TestScriptOriginComponent(); 4518 copyValues(dst); 4519 return dst; 4520 } 4521 4522 public void copyValues(TestScriptOriginComponent dst) { 4523 super.copyValues(dst); 4524 dst.index = index == null ? null : index.copy(); 4525 dst.profile = profile == null ? null : profile.copy(); 4526 } 4527 4528 @Override 4529 public boolean equalsDeep(Base other_) { 4530 if (!super.equalsDeep(other_)) 4531 return false; 4532 if (!(other_ instanceof TestScriptOriginComponent)) 4533 return false; 4534 TestScriptOriginComponent o = (TestScriptOriginComponent) other_; 4535 return compareDeep(index, o.index, true) && compareDeep(profile, o.profile, true); 4536 } 4537 4538 @Override 4539 public boolean equalsShallow(Base other_) { 4540 if (!super.equalsShallow(other_)) 4541 return false; 4542 if (!(other_ instanceof TestScriptOriginComponent)) 4543 return false; 4544 TestScriptOriginComponent o = (TestScriptOriginComponent) other_; 4545 return compareValues(index, o.index, true); 4546 } 4547 4548 public boolean isEmpty() { 4549 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(index, profile); 4550 } 4551 4552 public String fhirType() { 4553 return "TestScript.origin"; 4554 4555 } 4556 4557 } 4558 4559 @Block() 4560 public static class TestScriptDestinationComponent extends BackboneElement implements IBaseBackboneElement { 4561 /** 4562 * Abstract name given to a destination server in this test script. The name is provided as a number starting at 1. 4563 */ 4564 @Child(name = "index", type = {IntegerType.class}, order=1, min=1, max=1, modifier=false, summary=false) 4565 @Description(shortDefinition="The index of the abstract destination server starting at 1", formalDefinition="Abstract name given to a destination server in this test script. The name is provided as a number starting at 1." ) 4566 protected IntegerType index; 4567 4568 /** 4569 * The type of destination profile the test system supports. 4570 */ 4571 @Child(name = "profile", type = {Coding.class}, order=2, min=1, max=1, modifier=false, summary=false) 4572 @Description(shortDefinition="FHIR-Server | FHIR-SDC-FormManager | FHIR-SDC-FormReceiver | FHIR-SDC-FormProcessor", formalDefinition="The type of destination profile the test system supports." ) 4573 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/testscript-profile-destination-types") 4574 protected Coding profile; 4575 4576 private static final long serialVersionUID = -1239935149L; 4577 4578 /** 4579 * Constructor 4580 */ 4581 public TestScriptDestinationComponent() { 4582 super(); 4583 } 4584 4585 /** 4586 * Constructor 4587 */ 4588 public TestScriptDestinationComponent(int index, Coding profile) { 4589 super(); 4590 this.setIndex(index); 4591 this.setProfile(profile); 4592 } 4593 4594 /** 4595 * @return {@link #index} (Abstract name given to a destination server in this test script. The name is provided as a number starting at 1.). This is the underlying object with id, value and extensions. The accessor "getIndex" gives direct access to the value 4596 */ 4597 public IntegerType getIndexElement() { 4598 if (this.index == null) 4599 if (Configuration.errorOnAutoCreate()) 4600 throw new Error("Attempt to auto-create TestScriptDestinationComponent.index"); 4601 else if (Configuration.doAutoCreate()) 4602 this.index = new IntegerType(); // bb 4603 return this.index; 4604 } 4605 4606 public boolean hasIndexElement() { 4607 return this.index != null && !this.index.isEmpty(); 4608 } 4609 4610 public boolean hasIndex() { 4611 return this.index != null && !this.index.isEmpty(); 4612 } 4613 4614 /** 4615 * @param value {@link #index} (Abstract name given to a destination server in this test script. The name is provided as a number starting at 1.). This is the underlying object with id, value and extensions. The accessor "getIndex" gives direct access to the value 4616 */ 4617 public TestScriptDestinationComponent setIndexElement(IntegerType value) { 4618 this.index = value; 4619 return this; 4620 } 4621 4622 /** 4623 * @return Abstract name given to a destination server in this test script. The name is provided as a number starting at 1. 4624 */ 4625 public int getIndex() { 4626 return this.index == null || this.index.isEmpty() ? 0 : this.index.getValue(); 4627 } 4628 4629 /** 4630 * @param value Abstract name given to a destination server in this test script. The name is provided as a number starting at 1. 4631 */ 4632 public TestScriptDestinationComponent setIndex(int value) { 4633 if (this.index == null) 4634 this.index = new IntegerType(); 4635 this.index.setValue(value); 4636 return this; 4637 } 4638 4639 /** 4640 * @return {@link #profile} (The type of destination profile the test system supports.) 4641 */ 4642 public Coding getProfile() { 4643 if (this.profile == null) 4644 if (Configuration.errorOnAutoCreate()) 4645 throw new Error("Attempt to auto-create TestScriptDestinationComponent.profile"); 4646 else if (Configuration.doAutoCreate()) 4647 this.profile = new Coding(); // cc 4648 return this.profile; 4649 } 4650 4651 public boolean hasProfile() { 4652 return this.profile != null && !this.profile.isEmpty(); 4653 } 4654 4655 /** 4656 * @param value {@link #profile} (The type of destination profile the test system supports.) 4657 */ 4658 public TestScriptDestinationComponent setProfile(Coding value) { 4659 this.profile = value; 4660 return this; 4661 } 4662 4663 protected void listChildren(List<Property> children) { 4664 super.listChildren(children); 4665 children.add(new Property("index", "integer", "Abstract name given to a destination server in this test script. The name is provided as a number starting at 1.", 0, 1, index)); 4666 children.add(new Property("profile", "Coding", "The type of destination profile the test system supports.", 0, 1, profile)); 4667 } 4668 4669 @Override 4670 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 4671 switch (_hash) { 4672 case 100346066: /*index*/ return new Property("index", "integer", "Abstract name given to a destination server in this test script. The name is provided as a number starting at 1.", 0, 1, index); 4673 case -309425751: /*profile*/ return new Property("profile", "Coding", "The type of destination profile the test system supports.", 0, 1, profile); 4674 default: return super.getNamedProperty(_hash, _name, _checkValid); 4675 } 4676 4677 } 4678 4679 @Override 4680 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 4681 switch (hash) { 4682 case 100346066: /*index*/ return this.index == null ? new Base[0] : new Base[] {this.index}; // IntegerType 4683 case -309425751: /*profile*/ return this.profile == null ? new Base[0] : new Base[] {this.profile}; // Coding 4684 default: return super.getProperty(hash, name, checkValid); 4685 } 4686 4687 } 4688 4689 @Override 4690 public Base setProperty(int hash, String name, Base value) throws FHIRException { 4691 switch (hash) { 4692 case 100346066: // index 4693 this.index = TypeConvertor.castToInteger(value); // IntegerType 4694 return value; 4695 case -309425751: // profile 4696 this.profile = TypeConvertor.castToCoding(value); // Coding 4697 return value; 4698 default: return super.setProperty(hash, name, value); 4699 } 4700 4701 } 4702 4703 @Override 4704 public Base setProperty(String name, Base value) throws FHIRException { 4705 if (name.equals("index")) { 4706 this.index = TypeConvertor.castToInteger(value); // IntegerType 4707 } else if (name.equals("profile")) { 4708 this.profile = TypeConvertor.castToCoding(value); // Coding 4709 } else 4710 return super.setProperty(name, value); 4711 return value; 4712 } 4713 4714 @Override 4715 public Base makeProperty(int hash, String name) throws FHIRException { 4716 switch (hash) { 4717 case 100346066: return getIndexElement(); 4718 case -309425751: return getProfile(); 4719 default: return super.makeProperty(hash, name); 4720 } 4721 4722 } 4723 4724 @Override 4725 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 4726 switch (hash) { 4727 case 100346066: /*index*/ return new String[] {"integer"}; 4728 case -309425751: /*profile*/ return new String[] {"Coding"}; 4729 default: return super.getTypesForProperty(hash, name); 4730 } 4731 4732 } 4733 4734 @Override 4735 public Base addChild(String name) throws FHIRException { 4736 if (name.equals("index")) { 4737 throw new FHIRException("Cannot call addChild on a primitive type TestScript.destination.index"); 4738 } 4739 else if (name.equals("profile")) { 4740 this.profile = new Coding(); 4741 return this.profile; 4742 } 4743 else 4744 return super.addChild(name); 4745 } 4746 4747 public TestScriptDestinationComponent copy() { 4748 TestScriptDestinationComponent dst = new TestScriptDestinationComponent(); 4749 copyValues(dst); 4750 return dst; 4751 } 4752 4753 public void copyValues(TestScriptDestinationComponent dst) { 4754 super.copyValues(dst); 4755 dst.index = index == null ? null : index.copy(); 4756 dst.profile = profile == null ? null : profile.copy(); 4757 } 4758 4759 @Override 4760 public boolean equalsDeep(Base other_) { 4761 if (!super.equalsDeep(other_)) 4762 return false; 4763 if (!(other_ instanceof TestScriptDestinationComponent)) 4764 return false; 4765 TestScriptDestinationComponent o = (TestScriptDestinationComponent) other_; 4766 return compareDeep(index, o.index, true) && compareDeep(profile, o.profile, true); 4767 } 4768 4769 @Override 4770 public boolean equalsShallow(Base other_) { 4771 if (!super.equalsShallow(other_)) 4772 return false; 4773 if (!(other_ instanceof TestScriptDestinationComponent)) 4774 return false; 4775 TestScriptDestinationComponent o = (TestScriptDestinationComponent) other_; 4776 return compareValues(index, o.index, true); 4777 } 4778 4779 public boolean isEmpty() { 4780 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(index, profile); 4781 } 4782 4783 public String fhirType() { 4784 return "TestScript.destination"; 4785 4786 } 4787 4788 } 4789 4790 @Block() 4791 public static class TestScriptMetadataComponent extends BackboneElement implements IBaseBackboneElement { 4792 /** 4793 * A link to the FHIR specification that this test is covering. 4794 */ 4795 @Child(name = "link", type = {}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 4796 @Description(shortDefinition="Links to the FHIR specification", formalDefinition="A link to the FHIR specification that this test is covering." ) 4797 protected List<TestScriptMetadataLinkComponent> link; 4798 4799 /** 4800 * Capabilities that must exist and are assumed to function correctly on the FHIR server being tested. 4801 */ 4802 @Child(name = "capability", type = {}, order=2, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 4803 @Description(shortDefinition="Capabilities that are assumed to function correctly on the FHIR server being tested", formalDefinition="Capabilities that must exist and are assumed to function correctly on the FHIR server being tested." ) 4804 protected List<TestScriptMetadataCapabilityComponent> capability; 4805 4806 private static final long serialVersionUID = 745183328L; 4807 4808 /** 4809 * Constructor 4810 */ 4811 public TestScriptMetadataComponent() { 4812 super(); 4813 } 4814 4815 /** 4816 * Constructor 4817 */ 4818 public TestScriptMetadataComponent(TestScriptMetadataCapabilityComponent capability) { 4819 super(); 4820 this.addCapability(capability); 4821 } 4822 4823 /** 4824 * @return {@link #link} (A link to the FHIR specification that this test is covering.) 4825 */ 4826 public List<TestScriptMetadataLinkComponent> getLink() { 4827 if (this.link == null) 4828 this.link = new ArrayList<TestScriptMetadataLinkComponent>(); 4829 return this.link; 4830 } 4831 4832 /** 4833 * @return Returns a reference to <code>this</code> for easy method chaining 4834 */ 4835 public TestScriptMetadataComponent setLink(List<TestScriptMetadataLinkComponent> theLink) { 4836 this.link = theLink; 4837 return this; 4838 } 4839 4840 public boolean hasLink() { 4841 if (this.link == null) 4842 return false; 4843 for (TestScriptMetadataLinkComponent item : this.link) 4844 if (!item.isEmpty()) 4845 return true; 4846 return false; 4847 } 4848 4849 public TestScriptMetadataLinkComponent addLink() { //3 4850 TestScriptMetadataLinkComponent t = new TestScriptMetadataLinkComponent(); 4851 if (this.link == null) 4852 this.link = new ArrayList<TestScriptMetadataLinkComponent>(); 4853 this.link.add(t); 4854 return t; 4855 } 4856 4857 public TestScriptMetadataComponent addLink(TestScriptMetadataLinkComponent t) { //3 4858 if (t == null) 4859 return this; 4860 if (this.link == null) 4861 this.link = new ArrayList<TestScriptMetadataLinkComponent>(); 4862 this.link.add(t); 4863 return this; 4864 } 4865 4866 /** 4867 * @return The first repetition of repeating field {@link #link}, creating it if it does not already exist {3} 4868 */ 4869 public TestScriptMetadataLinkComponent getLinkFirstRep() { 4870 if (getLink().isEmpty()) { 4871 addLink(); 4872 } 4873 return getLink().get(0); 4874 } 4875 4876 /** 4877 * @return {@link #capability} (Capabilities that must exist and are assumed to function correctly on the FHIR server being tested.) 4878 */ 4879 public List<TestScriptMetadataCapabilityComponent> getCapability() { 4880 if (this.capability == null) 4881 this.capability = new ArrayList<TestScriptMetadataCapabilityComponent>(); 4882 return this.capability; 4883 } 4884 4885 /** 4886 * @return Returns a reference to <code>this</code> for easy method chaining 4887 */ 4888 public TestScriptMetadataComponent setCapability(List<TestScriptMetadataCapabilityComponent> theCapability) { 4889 this.capability = theCapability; 4890 return this; 4891 } 4892 4893 public boolean hasCapability() { 4894 if (this.capability == null) 4895 return false; 4896 for (TestScriptMetadataCapabilityComponent item : this.capability) 4897 if (!item.isEmpty()) 4898 return true; 4899 return false; 4900 } 4901 4902 public TestScriptMetadataCapabilityComponent addCapability() { //3 4903 TestScriptMetadataCapabilityComponent t = new TestScriptMetadataCapabilityComponent(); 4904 if (this.capability == null) 4905 this.capability = new ArrayList<TestScriptMetadataCapabilityComponent>(); 4906 this.capability.add(t); 4907 return t; 4908 } 4909 4910 public TestScriptMetadataComponent addCapability(TestScriptMetadataCapabilityComponent t) { //3 4911 if (t == null) 4912 return this; 4913 if (this.capability == null) 4914 this.capability = new ArrayList<TestScriptMetadataCapabilityComponent>(); 4915 this.capability.add(t); 4916 return this; 4917 } 4918 4919 /** 4920 * @return The first repetition of repeating field {@link #capability}, creating it if it does not already exist {3} 4921 */ 4922 public TestScriptMetadataCapabilityComponent getCapabilityFirstRep() { 4923 if (getCapability().isEmpty()) { 4924 addCapability(); 4925 } 4926 return getCapability().get(0); 4927 } 4928 4929 protected void listChildren(List<Property> children) { 4930 super.listChildren(children); 4931 children.add(new Property("link", "", "A link to the FHIR specification that this test is covering.", 0, java.lang.Integer.MAX_VALUE, link)); 4932 children.add(new Property("capability", "", "Capabilities that must exist and are assumed to function correctly on the FHIR server being tested.", 0, java.lang.Integer.MAX_VALUE, capability)); 4933 } 4934 4935 @Override 4936 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 4937 switch (_hash) { 4938 case 3321850: /*link*/ return new Property("link", "", "A link to the FHIR specification that this test is covering.", 0, java.lang.Integer.MAX_VALUE, link); 4939 case -783669992: /*capability*/ return new Property("capability", "", "Capabilities that must exist and are assumed to function correctly on the FHIR server being tested.", 0, java.lang.Integer.MAX_VALUE, capability); 4940 default: return super.getNamedProperty(_hash, _name, _checkValid); 4941 } 4942 4943 } 4944 4945 @Override 4946 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 4947 switch (hash) { 4948 case 3321850: /*link*/ return this.link == null ? new Base[0] : this.link.toArray(new Base[this.link.size()]); // TestScriptMetadataLinkComponent 4949 case -783669992: /*capability*/ return this.capability == null ? new Base[0] : this.capability.toArray(new Base[this.capability.size()]); // TestScriptMetadataCapabilityComponent 4950 default: return super.getProperty(hash, name, checkValid); 4951 } 4952 4953 } 4954 4955 @Override 4956 public Base setProperty(int hash, String name, Base value) throws FHIRException { 4957 switch (hash) { 4958 case 3321850: // link 4959 this.getLink().add((TestScriptMetadataLinkComponent) value); // TestScriptMetadataLinkComponent 4960 return value; 4961 case -783669992: // capability 4962 this.getCapability().add((TestScriptMetadataCapabilityComponent) value); // TestScriptMetadataCapabilityComponent 4963 return value; 4964 default: return super.setProperty(hash, name, value); 4965 } 4966 4967 } 4968 4969 @Override 4970 public Base setProperty(String name, Base value) throws FHIRException { 4971 if (name.equals("link")) { 4972 this.getLink().add((TestScriptMetadataLinkComponent) value); 4973 } else if (name.equals("capability")) { 4974 this.getCapability().add((TestScriptMetadataCapabilityComponent) value); 4975 } else 4976 return super.setProperty(name, value); 4977 return value; 4978 } 4979 4980 @Override 4981 public Base makeProperty(int hash, String name) throws FHIRException { 4982 switch (hash) { 4983 case 3321850: return addLink(); 4984 case -783669992: return addCapability(); 4985 default: return super.makeProperty(hash, name); 4986 } 4987 4988 } 4989 4990 @Override 4991 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 4992 switch (hash) { 4993 case 3321850: /*link*/ return new String[] {}; 4994 case -783669992: /*capability*/ return new String[] {}; 4995 default: return super.getTypesForProperty(hash, name); 4996 } 4997 4998 } 4999 5000 @Override 5001 public Base addChild(String name) throws FHIRException { 5002 if (name.equals("link")) { 5003 return addLink(); 5004 } 5005 else if (name.equals("capability")) { 5006 return addCapability(); 5007 } 5008 else 5009 return super.addChild(name); 5010 } 5011 5012 public TestScriptMetadataComponent copy() { 5013 TestScriptMetadataComponent dst = new TestScriptMetadataComponent(); 5014 copyValues(dst); 5015 return dst; 5016 } 5017 5018 public void copyValues(TestScriptMetadataComponent dst) { 5019 super.copyValues(dst); 5020 if (link != null) { 5021 dst.link = new ArrayList<TestScriptMetadataLinkComponent>(); 5022 for (TestScriptMetadataLinkComponent i : link) 5023 dst.link.add(i.copy()); 5024 }; 5025 if (capability != null) { 5026 dst.capability = new ArrayList<TestScriptMetadataCapabilityComponent>(); 5027 for (TestScriptMetadataCapabilityComponent i : capability) 5028 dst.capability.add(i.copy()); 5029 }; 5030 } 5031 5032 @Override 5033 public boolean equalsDeep(Base other_) { 5034 if (!super.equalsDeep(other_)) 5035 return false; 5036 if (!(other_ instanceof TestScriptMetadataComponent)) 5037 return false; 5038 TestScriptMetadataComponent o = (TestScriptMetadataComponent) other_; 5039 return compareDeep(link, o.link, true) && compareDeep(capability, o.capability, true); 5040 } 5041 5042 @Override 5043 public boolean equalsShallow(Base other_) { 5044 if (!super.equalsShallow(other_)) 5045 return false; 5046 if (!(other_ instanceof TestScriptMetadataComponent)) 5047 return false; 5048 TestScriptMetadataComponent o = (TestScriptMetadataComponent) other_; 5049 return true; 5050 } 5051 5052 public boolean isEmpty() { 5053 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(link, capability); 5054 } 5055 5056 public String fhirType() { 5057 return "TestScript.metadata"; 5058 5059 } 5060 5061 } 5062 5063 @Block() 5064 public static class TestScriptMetadataLinkComponent extends BackboneElement implements IBaseBackboneElement { 5065 /** 5066 * URL to a particular requirement or feature within the FHIR specification. 5067 */ 5068 @Child(name = "url", type = {UriType.class}, order=1, min=1, max=1, modifier=false, summary=false) 5069 @Description(shortDefinition="URL to the specification", formalDefinition="URL to a particular requirement or feature within the FHIR specification." ) 5070 protected UriType url; 5071 5072 /** 5073 * Short description of the link. 5074 */ 5075 @Child(name = "description", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) 5076 @Description(shortDefinition="Short description", formalDefinition="Short description of the link." ) 5077 protected StringType description; 5078 5079 private static final long serialVersionUID = 213372298L; 5080 5081 /** 5082 * Constructor 5083 */ 5084 public TestScriptMetadataLinkComponent() { 5085 super(); 5086 } 5087 5088 /** 5089 * Constructor 5090 */ 5091 public TestScriptMetadataLinkComponent(String url) { 5092 super(); 5093 this.setUrl(url); 5094 } 5095 5096 /** 5097 * @return {@link #url} (URL to a particular requirement or feature within the FHIR specification.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 5098 */ 5099 public UriType getUrlElement() { 5100 if (this.url == null) 5101 if (Configuration.errorOnAutoCreate()) 5102 throw new Error("Attempt to auto-create TestScriptMetadataLinkComponent.url"); 5103 else if (Configuration.doAutoCreate()) 5104 this.url = new UriType(); // bb 5105 return this.url; 5106 } 5107 5108 public boolean hasUrlElement() { 5109 return this.url != null && !this.url.isEmpty(); 5110 } 5111 5112 public boolean hasUrl() { 5113 return this.url != null && !this.url.isEmpty(); 5114 } 5115 5116 /** 5117 * @param value {@link #url} (URL to a particular requirement or feature within the FHIR specification.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 5118 */ 5119 public TestScriptMetadataLinkComponent setUrlElement(UriType value) { 5120 this.url = value; 5121 return this; 5122 } 5123 5124 /** 5125 * @return URL to a particular requirement or feature within the FHIR specification. 5126 */ 5127 public String getUrl() { 5128 return this.url == null ? null : this.url.getValue(); 5129 } 5130 5131 /** 5132 * @param value URL to a particular requirement or feature within the FHIR specification. 5133 */ 5134 public TestScriptMetadataLinkComponent setUrl(String value) { 5135 if (this.url == null) 5136 this.url = new UriType(); 5137 this.url.setValue(value); 5138 return this; 5139 } 5140 5141 /** 5142 * @return {@link #description} (Short description of the link.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 5143 */ 5144 public StringType getDescriptionElement() { 5145 if (this.description == null) 5146 if (Configuration.errorOnAutoCreate()) 5147 throw new Error("Attempt to auto-create TestScriptMetadataLinkComponent.description"); 5148 else if (Configuration.doAutoCreate()) 5149 this.description = new StringType(); // bb 5150 return this.description; 5151 } 5152 5153 public boolean hasDescriptionElement() { 5154 return this.description != null && !this.description.isEmpty(); 5155 } 5156 5157 public boolean hasDescription() { 5158 return this.description != null && !this.description.isEmpty(); 5159 } 5160 5161 /** 5162 * @param value {@link #description} (Short description of the link.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 5163 */ 5164 public TestScriptMetadataLinkComponent setDescriptionElement(StringType value) { 5165 this.description = value; 5166 return this; 5167 } 5168 5169 /** 5170 * @return Short description of the link. 5171 */ 5172 public String getDescription() { 5173 return this.description == null ? null : this.description.getValue(); 5174 } 5175 5176 /** 5177 * @param value Short description of the link. 5178 */ 5179 public TestScriptMetadataLinkComponent setDescription(String value) { 5180 if (Utilities.noString(value)) 5181 this.description = null; 5182 else { 5183 if (this.description == null) 5184 this.description = new StringType(); 5185 this.description.setValue(value); 5186 } 5187 return this; 5188 } 5189 5190 protected void listChildren(List<Property> children) { 5191 super.listChildren(children); 5192 children.add(new Property("url", "uri", "URL to a particular requirement or feature within the FHIR specification.", 0, 1, url)); 5193 children.add(new Property("description", "string", "Short description of the link.", 0, 1, description)); 5194 } 5195 5196 @Override 5197 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 5198 switch (_hash) { 5199 case 116079: /*url*/ return new Property("url", "uri", "URL to a particular requirement or feature within the FHIR specification.", 0, 1, url); 5200 case -1724546052: /*description*/ return new Property("description", "string", "Short description of the link.", 0, 1, description); 5201 default: return super.getNamedProperty(_hash, _name, _checkValid); 5202 } 5203 5204 } 5205 5206 @Override 5207 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 5208 switch (hash) { 5209 case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType 5210 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 5211 default: return super.getProperty(hash, name, checkValid); 5212 } 5213 5214 } 5215 5216 @Override 5217 public Base setProperty(int hash, String name, Base value) throws FHIRException { 5218 switch (hash) { 5219 case 116079: // url 5220 this.url = TypeConvertor.castToUri(value); // UriType 5221 return value; 5222 case -1724546052: // description 5223 this.description = TypeConvertor.castToString(value); // StringType 5224 return value; 5225 default: return super.setProperty(hash, name, value); 5226 } 5227 5228 } 5229 5230 @Override 5231 public Base setProperty(String name, Base value) throws FHIRException { 5232 if (name.equals("url")) { 5233 this.url = TypeConvertor.castToUri(value); // UriType 5234 } else if (name.equals("description")) { 5235 this.description = TypeConvertor.castToString(value); // StringType 5236 } else 5237 return super.setProperty(name, value); 5238 return value; 5239 } 5240 5241 @Override 5242 public Base makeProperty(int hash, String name) throws FHIRException { 5243 switch (hash) { 5244 case 116079: return getUrlElement(); 5245 case -1724546052: return getDescriptionElement(); 5246 default: return super.makeProperty(hash, name); 5247 } 5248 5249 } 5250 5251 @Override 5252 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 5253 switch (hash) { 5254 case 116079: /*url*/ return new String[] {"uri"}; 5255 case -1724546052: /*description*/ return new String[] {"string"}; 5256 default: return super.getTypesForProperty(hash, name); 5257 } 5258 5259 } 5260 5261 @Override 5262 public Base addChild(String name) throws FHIRException { 5263 if (name.equals("url")) { 5264 throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.link.url"); 5265 } 5266 else if (name.equals("description")) { 5267 throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.link.description"); 5268 } 5269 else 5270 return super.addChild(name); 5271 } 5272 5273 public TestScriptMetadataLinkComponent copy() { 5274 TestScriptMetadataLinkComponent dst = new TestScriptMetadataLinkComponent(); 5275 copyValues(dst); 5276 return dst; 5277 } 5278 5279 public void copyValues(TestScriptMetadataLinkComponent dst) { 5280 super.copyValues(dst); 5281 dst.url = url == null ? null : url.copy(); 5282 dst.description = description == null ? null : description.copy(); 5283 } 5284 5285 @Override 5286 public boolean equalsDeep(Base other_) { 5287 if (!super.equalsDeep(other_)) 5288 return false; 5289 if (!(other_ instanceof TestScriptMetadataLinkComponent)) 5290 return false; 5291 TestScriptMetadataLinkComponent o = (TestScriptMetadataLinkComponent) other_; 5292 return compareDeep(url, o.url, true) && compareDeep(description, o.description, true); 5293 } 5294 5295 @Override 5296 public boolean equalsShallow(Base other_) { 5297 if (!super.equalsShallow(other_)) 5298 return false; 5299 if (!(other_ instanceof TestScriptMetadataLinkComponent)) 5300 return false; 5301 TestScriptMetadataLinkComponent o = (TestScriptMetadataLinkComponent) other_; 5302 return compareValues(url, o.url, true) && compareValues(description, o.description, true); 5303 } 5304 5305 public boolean isEmpty() { 5306 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, description); 5307 } 5308 5309 public String fhirType() { 5310 return "TestScript.metadata.link"; 5311 5312 } 5313 5314 } 5315 5316 @Block() 5317 public static class TestScriptMetadataCapabilityComponent extends BackboneElement implements IBaseBackboneElement { 5318 /** 5319 * Whether or not the test execution will require the given capabilities of the server in order for this test script to execute. 5320 */ 5321 @Child(name = "required", type = {BooleanType.class}, order=1, min=1, max=1, modifier=false, summary=false) 5322 @Description(shortDefinition="Are the capabilities required?", formalDefinition="Whether or not the test execution will require the given capabilities of the server in order for this test script to execute." ) 5323 protected BooleanType required; 5324 5325 /** 5326 * Whether or not the test execution will validate the given capabilities of the server in order for this test script to execute. 5327 */ 5328 @Child(name = "validated", type = {BooleanType.class}, order=2, min=1, max=1, modifier=false, summary=false) 5329 @Description(shortDefinition="Are the capabilities validated?", formalDefinition="Whether or not the test execution will validate the given capabilities of the server in order for this test script to execute." ) 5330 protected BooleanType validated; 5331 5332 /** 5333 * Description of the capabilities that this test script is requiring the server to support. 5334 */ 5335 @Child(name = "description", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) 5336 @Description(shortDefinition="The expected capabilities of the server", formalDefinition="Description of the capabilities that this test script is requiring the server to support." ) 5337 protected StringType description; 5338 5339 /** 5340 * Which origin server these requirements apply to. 5341 */ 5342 @Child(name = "origin", type = {IntegerType.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 5343 @Description(shortDefinition="Which origin server these requirements apply to", formalDefinition="Which origin server these requirements apply to." ) 5344 protected List<IntegerType> origin; 5345 5346 /** 5347 * Which server these requirements apply to. 5348 */ 5349 @Child(name = "destination", type = {IntegerType.class}, order=5, min=0, max=1, modifier=false, summary=false) 5350 @Description(shortDefinition="Which server these requirements apply to", formalDefinition="Which server these requirements apply to." ) 5351 protected IntegerType destination; 5352 5353 /** 5354 * Links to the FHIR specification that describes this interaction and the resources involved in more detail. 5355 */ 5356 @Child(name = "link", type = {UriType.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 5357 @Description(shortDefinition="Links to the FHIR specification", formalDefinition="Links to the FHIR specification that describes this interaction and the resources involved in more detail." ) 5358 protected List<UriType> link; 5359 5360 /** 5361 * Minimum capabilities required of server for test script to execute successfully. If server does not meet at a minimum the referenced capability statement, then all tests in this script are skipped. 5362 */ 5363 @Child(name = "capabilities", type = {CanonicalType.class}, order=7, min=1, max=1, modifier=false, summary=false) 5364 @Description(shortDefinition="Required Capability Statement", formalDefinition="Minimum capabilities required of server for test script to execute successfully. If server does not meet at a minimum the referenced capability statement, then all tests in this script are skipped." ) 5365 protected CanonicalType capabilities; 5366 5367 private static final long serialVersionUID = -1368199288L; 5368 5369 /** 5370 * Constructor 5371 */ 5372 public TestScriptMetadataCapabilityComponent() { 5373 super(); 5374 } 5375 5376 /** 5377 * Constructor 5378 */ 5379 public TestScriptMetadataCapabilityComponent(boolean required, boolean validated, String capabilities) { 5380 super(); 5381 this.setRequired(required); 5382 this.setValidated(validated); 5383 this.setCapabilities(capabilities); 5384 } 5385 5386 /** 5387 * @return {@link #required} (Whether or not the test execution will require the given capabilities of the server in order for this test script to execute.). This is the underlying object with id, value and extensions. The accessor "getRequired" gives direct access to the value 5388 */ 5389 public BooleanType getRequiredElement() { 5390 if (this.required == null) 5391 if (Configuration.errorOnAutoCreate()) 5392 throw new Error("Attempt to auto-create TestScriptMetadataCapabilityComponent.required"); 5393 else if (Configuration.doAutoCreate()) 5394 this.required = new BooleanType(); // bb 5395 return this.required; 5396 } 5397 5398 public boolean hasRequiredElement() { 5399 return this.required != null && !this.required.isEmpty(); 5400 } 5401 5402 public boolean hasRequired() { 5403 return this.required != null && !this.required.isEmpty(); 5404 } 5405 5406 /** 5407 * @param value {@link #required} (Whether or not the test execution will require the given capabilities of the server in order for this test script to execute.). This is the underlying object with id, value and extensions. The accessor "getRequired" gives direct access to the value 5408 */ 5409 public TestScriptMetadataCapabilityComponent setRequiredElement(BooleanType value) { 5410 this.required = value; 5411 return this; 5412 } 5413 5414 /** 5415 * @return Whether or not the test execution will require the given capabilities of the server in order for this test script to execute. 5416 */ 5417 public boolean getRequired() { 5418 return this.required == null || this.required.isEmpty() ? false : this.required.getValue(); 5419 } 5420 5421 /** 5422 * @param value Whether or not the test execution will require the given capabilities of the server in order for this test script to execute. 5423 */ 5424 public TestScriptMetadataCapabilityComponent setRequired(boolean value) { 5425 if (this.required == null) 5426 this.required = new BooleanType(); 5427 this.required.setValue(value); 5428 return this; 5429 } 5430 5431 /** 5432 * @return {@link #validated} (Whether or not the test execution will validate the given capabilities of the server in order for this test script to execute.). This is the underlying object with id, value and extensions. The accessor "getValidated" gives direct access to the value 5433 */ 5434 public BooleanType getValidatedElement() { 5435 if (this.validated == null) 5436 if (Configuration.errorOnAutoCreate()) 5437 throw new Error("Attempt to auto-create TestScriptMetadataCapabilityComponent.validated"); 5438 else if (Configuration.doAutoCreate()) 5439 this.validated = new BooleanType(); // bb 5440 return this.validated; 5441 } 5442 5443 public boolean hasValidatedElement() { 5444 return this.validated != null && !this.validated.isEmpty(); 5445 } 5446 5447 public boolean hasValidated() { 5448 return this.validated != null && !this.validated.isEmpty(); 5449 } 5450 5451 /** 5452 * @param value {@link #validated} (Whether or not the test execution will validate the given capabilities of the server in order for this test script to execute.). This is the underlying object with id, value and extensions. The accessor "getValidated" gives direct access to the value 5453 */ 5454 public TestScriptMetadataCapabilityComponent setValidatedElement(BooleanType value) { 5455 this.validated = value; 5456 return this; 5457 } 5458 5459 /** 5460 * @return Whether or not the test execution will validate the given capabilities of the server in order for this test script to execute. 5461 */ 5462 public boolean getValidated() { 5463 return this.validated == null || this.validated.isEmpty() ? false : this.validated.getValue(); 5464 } 5465 5466 /** 5467 * @param value Whether or not the test execution will validate the given capabilities of the server in order for this test script to execute. 5468 */ 5469 public TestScriptMetadataCapabilityComponent setValidated(boolean value) { 5470 if (this.validated == null) 5471 this.validated = new BooleanType(); 5472 this.validated.setValue(value); 5473 return this; 5474 } 5475 5476 /** 5477 * @return {@link #description} (Description of the capabilities that this test script is requiring the server to support.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 5478 */ 5479 public StringType getDescriptionElement() { 5480 if (this.description == null) 5481 if (Configuration.errorOnAutoCreate()) 5482 throw new Error("Attempt to auto-create TestScriptMetadataCapabilityComponent.description"); 5483 else if (Configuration.doAutoCreate()) 5484 this.description = new StringType(); // bb 5485 return this.description; 5486 } 5487 5488 public boolean hasDescriptionElement() { 5489 return this.description != null && !this.description.isEmpty(); 5490 } 5491 5492 public boolean hasDescription() { 5493 return this.description != null && !this.description.isEmpty(); 5494 } 5495 5496 /** 5497 * @param value {@link #description} (Description of the capabilities that this test script is requiring the server to support.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 5498 */ 5499 public TestScriptMetadataCapabilityComponent setDescriptionElement(StringType value) { 5500 this.description = value; 5501 return this; 5502 } 5503 5504 /** 5505 * @return Description of the capabilities that this test script is requiring the server to support. 5506 */ 5507 public String getDescription() { 5508 return this.description == null ? null : this.description.getValue(); 5509 } 5510 5511 /** 5512 * @param value Description of the capabilities that this test script is requiring the server to support. 5513 */ 5514 public TestScriptMetadataCapabilityComponent setDescription(String value) { 5515 if (Utilities.noString(value)) 5516 this.description = null; 5517 else { 5518 if (this.description == null) 5519 this.description = new StringType(); 5520 this.description.setValue(value); 5521 } 5522 return this; 5523 } 5524 5525 /** 5526 * @return {@link #origin} (Which origin server these requirements apply to.) 5527 */ 5528 public List<IntegerType> getOrigin() { 5529 if (this.origin == null) 5530 this.origin = new ArrayList<IntegerType>(); 5531 return this.origin; 5532 } 5533 5534 /** 5535 * @return Returns a reference to <code>this</code> for easy method chaining 5536 */ 5537 public TestScriptMetadataCapabilityComponent setOrigin(List<IntegerType> theOrigin) { 5538 this.origin = theOrigin; 5539 return this; 5540 } 5541 5542 public boolean hasOrigin() { 5543 if (this.origin == null) 5544 return false; 5545 for (IntegerType item : this.origin) 5546 if (!item.isEmpty()) 5547 return true; 5548 return false; 5549 } 5550 5551 /** 5552 * @return {@link #origin} (Which origin server these requirements apply to.) 5553 */ 5554 public IntegerType addOriginElement() {//2 5555 IntegerType t = new IntegerType(); 5556 if (this.origin == null) 5557 this.origin = new ArrayList<IntegerType>(); 5558 this.origin.add(t); 5559 return t; 5560 } 5561 5562 /** 5563 * @param value {@link #origin} (Which origin server these requirements apply to.) 5564 */ 5565 public TestScriptMetadataCapabilityComponent addOrigin(int value) { //1 5566 IntegerType t = new IntegerType(); 5567 t.setValue(value); 5568 if (this.origin == null) 5569 this.origin = new ArrayList<IntegerType>(); 5570 this.origin.add(t); 5571 return this; 5572 } 5573 5574 /** 5575 * @param value {@link #origin} (Which origin server these requirements apply to.) 5576 */ 5577 public boolean hasOrigin(int value) { 5578 if (this.origin == null) 5579 return false; 5580 for (IntegerType v : this.origin) 5581 if (v.getValue().equals(value)) // integer 5582 return true; 5583 return false; 5584 } 5585 5586 /** 5587 * @return {@link #destination} (Which server these requirements apply to.). This is the underlying object with id, value and extensions. The accessor "getDestination" gives direct access to the value 5588 */ 5589 public IntegerType getDestinationElement() { 5590 if (this.destination == null) 5591 if (Configuration.errorOnAutoCreate()) 5592 throw new Error("Attempt to auto-create TestScriptMetadataCapabilityComponent.destination"); 5593 else if (Configuration.doAutoCreate()) 5594 this.destination = new IntegerType(); // bb 5595 return this.destination; 5596 } 5597 5598 public boolean hasDestinationElement() { 5599 return this.destination != null && !this.destination.isEmpty(); 5600 } 5601 5602 public boolean hasDestination() { 5603 return this.destination != null && !this.destination.isEmpty(); 5604 } 5605 5606 /** 5607 * @param value {@link #destination} (Which server these requirements apply to.). This is the underlying object with id, value and extensions. The accessor "getDestination" gives direct access to the value 5608 */ 5609 public TestScriptMetadataCapabilityComponent setDestinationElement(IntegerType value) { 5610 this.destination = value; 5611 return this; 5612 } 5613 5614 /** 5615 * @return Which server these requirements apply to. 5616 */ 5617 public int getDestination() { 5618 return this.destination == null || this.destination.isEmpty() ? 0 : this.destination.getValue(); 5619 } 5620 5621 /** 5622 * @param value Which server these requirements apply to. 5623 */ 5624 public TestScriptMetadataCapabilityComponent setDestination(int value) { 5625 if (this.destination == null) 5626 this.destination = new IntegerType(); 5627 this.destination.setValue(value); 5628 return this; 5629 } 5630 5631 /** 5632 * @return {@link #link} (Links to the FHIR specification that describes this interaction and the resources involved in more detail.) 5633 */ 5634 public List<UriType> getLink() { 5635 if (this.link == null) 5636 this.link = new ArrayList<UriType>(); 5637 return this.link; 5638 } 5639 5640 /** 5641 * @return Returns a reference to <code>this</code> for easy method chaining 5642 */ 5643 public TestScriptMetadataCapabilityComponent setLink(List<UriType> theLink) { 5644 this.link = theLink; 5645 return this; 5646 } 5647 5648 public boolean hasLink() { 5649 if (this.link == null) 5650 return false; 5651 for (UriType item : this.link) 5652 if (!item.isEmpty()) 5653 return true; 5654 return false; 5655 } 5656 5657 /** 5658 * @return {@link #link} (Links to the FHIR specification that describes this interaction and the resources involved in more detail.) 5659 */ 5660 public UriType addLinkElement() {//2 5661 UriType t = new UriType(); 5662 if (this.link == null) 5663 this.link = new ArrayList<UriType>(); 5664 this.link.add(t); 5665 return t; 5666 } 5667 5668 /** 5669 * @param value {@link #link} (Links to the FHIR specification that describes this interaction and the resources involved in more detail.) 5670 */ 5671 public TestScriptMetadataCapabilityComponent addLink(String value) { //1 5672 UriType t = new UriType(); 5673 t.setValue(value); 5674 if (this.link == null) 5675 this.link = new ArrayList<UriType>(); 5676 this.link.add(t); 5677 return this; 5678 } 5679 5680 /** 5681 * @param value {@link #link} (Links to the FHIR specification that describes this interaction and the resources involved in more detail.) 5682 */ 5683 public boolean hasLink(String value) { 5684 if (this.link == null) 5685 return false; 5686 for (UriType v : this.link) 5687 if (v.getValue().equals(value)) // uri 5688 return true; 5689 return false; 5690 } 5691 5692 /** 5693 * @return {@link #capabilities} (Minimum capabilities required of server for test script to execute successfully. If server does not meet at a minimum the referenced capability statement, then all tests in this script are skipped.). This is the underlying object with id, value and extensions. The accessor "getCapabilities" gives direct access to the value 5694 */ 5695 public CanonicalType getCapabilitiesElement() { 5696 if (this.capabilities == null) 5697 if (Configuration.errorOnAutoCreate()) 5698 throw new Error("Attempt to auto-create TestScriptMetadataCapabilityComponent.capabilities"); 5699 else if (Configuration.doAutoCreate()) 5700 this.capabilities = new CanonicalType(); // bb 5701 return this.capabilities; 5702 } 5703 5704 public boolean hasCapabilitiesElement() { 5705 return this.capabilities != null && !this.capabilities.isEmpty(); 5706 } 5707 5708 public boolean hasCapabilities() { 5709 return this.capabilities != null && !this.capabilities.isEmpty(); 5710 } 5711 5712 /** 5713 * @param value {@link #capabilities} (Minimum capabilities required of server for test script to execute successfully. If server does not meet at a minimum the referenced capability statement, then all tests in this script are skipped.). This is the underlying object with id, value and extensions. The accessor "getCapabilities" gives direct access to the value 5714 */ 5715 public TestScriptMetadataCapabilityComponent setCapabilitiesElement(CanonicalType value) { 5716 this.capabilities = value; 5717 return this; 5718 } 5719 5720 /** 5721 * @return Minimum capabilities required of server for test script to execute successfully. If server does not meet at a minimum the referenced capability statement, then all tests in this script are skipped. 5722 */ 5723 public String getCapabilities() { 5724 return this.capabilities == null ? null : this.capabilities.getValue(); 5725 } 5726 5727 /** 5728 * @param value Minimum capabilities required of server for test script to execute successfully. If server does not meet at a minimum the referenced capability statement, then all tests in this script are skipped. 5729 */ 5730 public TestScriptMetadataCapabilityComponent setCapabilities(String value) { 5731 if (this.capabilities == null) 5732 this.capabilities = new CanonicalType(); 5733 this.capabilities.setValue(value); 5734 return this; 5735 } 5736 5737 protected void listChildren(List<Property> children) { 5738 super.listChildren(children); 5739 children.add(new Property("required", "boolean", "Whether or not the test execution will require the given capabilities of the server in order for this test script to execute.", 0, 1, required)); 5740 children.add(new Property("validated", "boolean", "Whether or not the test execution will validate the given capabilities of the server in order for this test script to execute.", 0, 1, validated)); 5741 children.add(new Property("description", "string", "Description of the capabilities that this test script is requiring the server to support.", 0, 1, description)); 5742 children.add(new Property("origin", "integer", "Which origin server these requirements apply to.", 0, java.lang.Integer.MAX_VALUE, origin)); 5743 children.add(new Property("destination", "integer", "Which server these requirements apply to.", 0, 1, destination)); 5744 children.add(new Property("link", "uri", "Links to the FHIR specification that describes this interaction and the resources involved in more detail.", 0, java.lang.Integer.MAX_VALUE, link)); 5745 children.add(new Property("capabilities", "canonical(CapabilityStatement)", "Minimum capabilities required of server for test script to execute successfully. If server does not meet at a minimum the referenced capability statement, then all tests in this script are skipped.", 0, 1, capabilities)); 5746 } 5747 5748 @Override 5749 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 5750 switch (_hash) { 5751 case -393139297: /*required*/ return new Property("required", "boolean", "Whether or not the test execution will require the given capabilities of the server in order for this test script to execute.", 0, 1, required); 5752 case -1109784050: /*validated*/ return new Property("validated", "boolean", "Whether or not the test execution will validate the given capabilities of the server in order for this test script to execute.", 0, 1, validated); 5753 case -1724546052: /*description*/ return new Property("description", "string", "Description of the capabilities that this test script is requiring the server to support.", 0, 1, description); 5754 case -1008619738: /*origin*/ return new Property("origin", "integer", "Which origin server these requirements apply to.", 0, java.lang.Integer.MAX_VALUE, origin); 5755 case -1429847026: /*destination*/ return new Property("destination", "integer", "Which server these requirements apply to.", 0, 1, destination); 5756 case 3321850: /*link*/ return new Property("link", "uri", "Links to the FHIR specification that describes this interaction and the resources involved in more detail.", 0, java.lang.Integer.MAX_VALUE, link); 5757 case -1487597642: /*capabilities*/ return new Property("capabilities", "canonical(CapabilityStatement)", "Minimum capabilities required of server for test script to execute successfully. If server does not meet at a minimum the referenced capability statement, then all tests in this script are skipped.", 0, 1, capabilities); 5758 default: return super.getNamedProperty(_hash, _name, _checkValid); 5759 } 5760 5761 } 5762 5763 @Override 5764 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 5765 switch (hash) { 5766 case -393139297: /*required*/ return this.required == null ? new Base[0] : new Base[] {this.required}; // BooleanType 5767 case -1109784050: /*validated*/ return this.validated == null ? new Base[0] : new Base[] {this.validated}; // BooleanType 5768 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 5769 case -1008619738: /*origin*/ return this.origin == null ? new Base[0] : this.origin.toArray(new Base[this.origin.size()]); // IntegerType 5770 case -1429847026: /*destination*/ return this.destination == null ? new Base[0] : new Base[] {this.destination}; // IntegerType 5771 case 3321850: /*link*/ return this.link == null ? new Base[0] : this.link.toArray(new Base[this.link.size()]); // UriType 5772 case -1487597642: /*capabilities*/ return this.capabilities == null ? new Base[0] : new Base[] {this.capabilities}; // CanonicalType 5773 default: return super.getProperty(hash, name, checkValid); 5774 } 5775 5776 } 5777 5778 @Override 5779 public Base setProperty(int hash, String name, Base value) throws FHIRException { 5780 switch (hash) { 5781 case -393139297: // required 5782 this.required = TypeConvertor.castToBoolean(value); // BooleanType 5783 return value; 5784 case -1109784050: // validated 5785 this.validated = TypeConvertor.castToBoolean(value); // BooleanType 5786 return value; 5787 case -1724546052: // description 5788 this.description = TypeConvertor.castToString(value); // StringType 5789 return value; 5790 case -1008619738: // origin 5791 this.getOrigin().add(TypeConvertor.castToInteger(value)); // IntegerType 5792 return value; 5793 case -1429847026: // destination 5794 this.destination = TypeConvertor.castToInteger(value); // IntegerType 5795 return value; 5796 case 3321850: // link 5797 this.getLink().add(TypeConvertor.castToUri(value)); // UriType 5798 return value; 5799 case -1487597642: // capabilities 5800 this.capabilities = TypeConvertor.castToCanonical(value); // CanonicalType 5801 return value; 5802 default: return super.setProperty(hash, name, value); 5803 } 5804 5805 } 5806 5807 @Override 5808 public Base setProperty(String name, Base value) throws FHIRException { 5809 if (name.equals("required")) { 5810 this.required = TypeConvertor.castToBoolean(value); // BooleanType 5811 } else if (name.equals("validated")) { 5812 this.validated = TypeConvertor.castToBoolean(value); // BooleanType 5813 } else if (name.equals("description")) { 5814 this.description = TypeConvertor.castToString(value); // StringType 5815 } else if (name.equals("origin")) { 5816 this.getOrigin().add(TypeConvertor.castToInteger(value)); 5817 } else if (name.equals("destination")) { 5818 this.destination = TypeConvertor.castToInteger(value); // IntegerType 5819 } else if (name.equals("link")) { 5820 this.getLink().add(TypeConvertor.castToUri(value)); 5821 } else if (name.equals("capabilities")) { 5822 this.capabilities = TypeConvertor.castToCanonical(value); // CanonicalType 5823 } else 5824 return super.setProperty(name, value); 5825 return value; 5826 } 5827 5828 @Override 5829 public Base makeProperty(int hash, String name) throws FHIRException { 5830 switch (hash) { 5831 case -393139297: return getRequiredElement(); 5832 case -1109784050: return getValidatedElement(); 5833 case -1724546052: return getDescriptionElement(); 5834 case -1008619738: return addOriginElement(); 5835 case -1429847026: return getDestinationElement(); 5836 case 3321850: return addLinkElement(); 5837 case -1487597642: return getCapabilitiesElement(); 5838 default: return super.makeProperty(hash, name); 5839 } 5840 5841 } 5842 5843 @Override 5844 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 5845 switch (hash) { 5846 case -393139297: /*required*/ return new String[] {"boolean"}; 5847 case -1109784050: /*validated*/ return new String[] {"boolean"}; 5848 case -1724546052: /*description*/ return new String[] {"string"}; 5849 case -1008619738: /*origin*/ return new String[] {"integer"}; 5850 case -1429847026: /*destination*/ return new String[] {"integer"}; 5851 case 3321850: /*link*/ return new String[] {"uri"}; 5852 case -1487597642: /*capabilities*/ return new String[] {"canonical"}; 5853 default: return super.getTypesForProperty(hash, name); 5854 } 5855 5856 } 5857 5858 @Override 5859 public Base addChild(String name) throws FHIRException { 5860 if (name.equals("required")) { 5861 throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.required"); 5862 } 5863 else if (name.equals("validated")) { 5864 throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.validated"); 5865 } 5866 else if (name.equals("description")) { 5867 throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.description"); 5868 } 5869 else if (name.equals("origin")) { 5870 throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.origin"); 5871 } 5872 else if (name.equals("destination")) { 5873 throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.destination"); 5874 } 5875 else if (name.equals("link")) { 5876 throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.link"); 5877 } 5878 else if (name.equals("capabilities")) { 5879 throw new FHIRException("Cannot call addChild on a primitive type TestScript.metadata.capability.capabilities"); 5880 } 5881 else 5882 return super.addChild(name); 5883 } 5884 5885 public TestScriptMetadataCapabilityComponent copy() { 5886 TestScriptMetadataCapabilityComponent dst = new TestScriptMetadataCapabilityComponent(); 5887 copyValues(dst); 5888 return dst; 5889 } 5890 5891 public void copyValues(TestScriptMetadataCapabilityComponent dst) { 5892 super.copyValues(dst); 5893 dst.required = required == null ? null : required.copy(); 5894 dst.validated = validated == null ? null : validated.copy(); 5895 dst.description = description == null ? null : description.copy(); 5896 if (origin != null) { 5897 dst.origin = new ArrayList<IntegerType>(); 5898 for (IntegerType i : origin) 5899 dst.origin.add(i.copy()); 5900 }; 5901 dst.destination = destination == null ? null : destination.copy(); 5902 if (link != null) { 5903 dst.link = new ArrayList<UriType>(); 5904 for (UriType i : link) 5905 dst.link.add(i.copy()); 5906 }; 5907 dst.capabilities = capabilities == null ? null : capabilities.copy(); 5908 } 5909 5910 @Override 5911 public boolean equalsDeep(Base other_) { 5912 if (!super.equalsDeep(other_)) 5913 return false; 5914 if (!(other_ instanceof TestScriptMetadataCapabilityComponent)) 5915 return false; 5916 TestScriptMetadataCapabilityComponent o = (TestScriptMetadataCapabilityComponent) other_; 5917 return compareDeep(required, o.required, true) && compareDeep(validated, o.validated, true) && compareDeep(description, o.description, true) 5918 && compareDeep(origin, o.origin, true) && compareDeep(destination, o.destination, true) && compareDeep(link, o.link, true) 5919 && compareDeep(capabilities, o.capabilities, true); 5920 } 5921 5922 @Override 5923 public boolean equalsShallow(Base other_) { 5924 if (!super.equalsShallow(other_)) 5925 return false; 5926 if (!(other_ instanceof TestScriptMetadataCapabilityComponent)) 5927 return false; 5928 TestScriptMetadataCapabilityComponent o = (TestScriptMetadataCapabilityComponent) other_; 5929 return compareValues(required, o.required, true) && compareValues(validated, o.validated, true) && compareValues(description, o.description, true) 5930 && compareValues(origin, o.origin, true) && compareValues(destination, o.destination, true) && compareValues(link, o.link, true) 5931 && compareValues(capabilities, o.capabilities, true); 5932 } 5933 5934 public boolean isEmpty() { 5935 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(required, validated, description 5936 , origin, destination, link, capabilities); 5937 } 5938 5939 public String fhirType() { 5940 return "TestScript.metadata.capability"; 5941 5942 } 5943 5944 } 5945 5946 @Block() 5947 public static class TestScriptFixtureComponent extends BackboneElement implements IBaseBackboneElement { 5948 /** 5949 * Whether or not to implicitly create the fixture during setup. If true, the fixture is automatically created on each server being tested during setup, therefore no create operation is required for this fixture in the TestScript.setup section. 5950 */ 5951 @Child(name = "autocreate", type = {BooleanType.class}, order=1, min=1, max=1, modifier=false, summary=false) 5952 @Description(shortDefinition="Whether or not to implicitly create the fixture during setup", formalDefinition="Whether or not to implicitly create the fixture during setup. If true, the fixture is automatically created on each server being tested during setup, therefore no create operation is required for this fixture in the TestScript.setup section." ) 5953 protected BooleanType autocreate; 5954 5955 /** 5956 * Whether or not to implicitly delete the fixture during teardown. If true, the fixture is automatically deleted on each server being tested during teardown, therefore no delete operation is required for this fixture in the TestScript.teardown section. 5957 */ 5958 @Child(name = "autodelete", type = {BooleanType.class}, order=2, min=1, max=1, modifier=false, summary=false) 5959 @Description(shortDefinition="Whether or not to implicitly delete the fixture during teardown", formalDefinition="Whether or not to implicitly delete the fixture during teardown. If true, the fixture is automatically deleted on each server being tested during teardown, therefore no delete operation is required for this fixture in the TestScript.teardown section." ) 5960 protected BooleanType autodelete; 5961 5962 /** 5963 * Reference to the resource (containing the contents of the resource needed for operations). 5964 */ 5965 @Child(name = "resource", type = {Reference.class}, order=3, min=0, max=1, modifier=false, summary=false) 5966 @Description(shortDefinition="Reference of the resource", formalDefinition="Reference to the resource (containing the contents of the resource needed for operations)." ) 5967 protected Reference resource; 5968 5969 private static final long serialVersionUID = 672117234L; 5970 5971 /** 5972 * Constructor 5973 */ 5974 public TestScriptFixtureComponent() { 5975 super(); 5976 } 5977 5978 /** 5979 * Constructor 5980 */ 5981 public TestScriptFixtureComponent(boolean autocreate, boolean autodelete) { 5982 super(); 5983 this.setAutocreate(autocreate); 5984 this.setAutodelete(autodelete); 5985 } 5986 5987 /** 5988 * @return {@link #autocreate} (Whether or not to implicitly create the fixture during setup. If true, the fixture is automatically created on each server being tested during setup, therefore no create operation is required for this fixture in the TestScript.setup section.). This is the underlying object with id, value and extensions. The accessor "getAutocreate" gives direct access to the value 5989 */ 5990 public BooleanType getAutocreateElement() { 5991 if (this.autocreate == null) 5992 if (Configuration.errorOnAutoCreate()) 5993 throw new Error("Attempt to auto-create TestScriptFixtureComponent.autocreate"); 5994 else if (Configuration.doAutoCreate()) 5995 this.autocreate = new BooleanType(); // bb 5996 return this.autocreate; 5997 } 5998 5999 public boolean hasAutocreateElement() { 6000 return this.autocreate != null && !this.autocreate.isEmpty(); 6001 } 6002 6003 public boolean hasAutocreate() { 6004 return this.autocreate != null && !this.autocreate.isEmpty(); 6005 } 6006 6007 /** 6008 * @param value {@link #autocreate} (Whether or not to implicitly create the fixture during setup. If true, the fixture is automatically created on each server being tested during setup, therefore no create operation is required for this fixture in the TestScript.setup section.). This is the underlying object with id, value and extensions. The accessor "getAutocreate" gives direct access to the value 6009 */ 6010 public TestScriptFixtureComponent setAutocreateElement(BooleanType value) { 6011 this.autocreate = value; 6012 return this; 6013 } 6014 6015 /** 6016 * @return Whether or not to implicitly create the fixture during setup. If true, the fixture is automatically created on each server being tested during setup, therefore no create operation is required for this fixture in the TestScript.setup section. 6017 */ 6018 public boolean getAutocreate() { 6019 return this.autocreate == null || this.autocreate.isEmpty() ? false : this.autocreate.getValue(); 6020 } 6021 6022 /** 6023 * @param value Whether or not to implicitly create the fixture during setup. If true, the fixture is automatically created on each server being tested during setup, therefore no create operation is required for this fixture in the TestScript.setup section. 6024 */ 6025 public TestScriptFixtureComponent setAutocreate(boolean value) { 6026 if (this.autocreate == null) 6027 this.autocreate = new BooleanType(); 6028 this.autocreate.setValue(value); 6029 return this; 6030 } 6031 6032 /** 6033 * @return {@link #autodelete} (Whether or not to implicitly delete the fixture during teardown. If true, the fixture is automatically deleted on each server being tested during teardown, therefore no delete operation is required for this fixture in the TestScript.teardown section.). This is the underlying object with id, value and extensions. The accessor "getAutodelete" gives direct access to the value 6034 */ 6035 public BooleanType getAutodeleteElement() { 6036 if (this.autodelete == null) 6037 if (Configuration.errorOnAutoCreate()) 6038 throw new Error("Attempt to auto-create TestScriptFixtureComponent.autodelete"); 6039 else if (Configuration.doAutoCreate()) 6040 this.autodelete = new BooleanType(); // bb 6041 return this.autodelete; 6042 } 6043 6044 public boolean hasAutodeleteElement() { 6045 return this.autodelete != null && !this.autodelete.isEmpty(); 6046 } 6047 6048 public boolean hasAutodelete() { 6049 return this.autodelete != null && !this.autodelete.isEmpty(); 6050 } 6051 6052 /** 6053 * @param value {@link #autodelete} (Whether or not to implicitly delete the fixture during teardown. If true, the fixture is automatically deleted on each server being tested during teardown, therefore no delete operation is required for this fixture in the TestScript.teardown section.). This is the underlying object with id, value and extensions. The accessor "getAutodelete" gives direct access to the value 6054 */ 6055 public TestScriptFixtureComponent setAutodeleteElement(BooleanType value) { 6056 this.autodelete = value; 6057 return this; 6058 } 6059 6060 /** 6061 * @return Whether or not to implicitly delete the fixture during teardown. If true, the fixture is automatically deleted on each server being tested during teardown, therefore no delete operation is required for this fixture in the TestScript.teardown section. 6062 */ 6063 public boolean getAutodelete() { 6064 return this.autodelete == null || this.autodelete.isEmpty() ? false : this.autodelete.getValue(); 6065 } 6066 6067 /** 6068 * @param value Whether or not to implicitly delete the fixture during teardown. If true, the fixture is automatically deleted on each server being tested during teardown, therefore no delete operation is required for this fixture in the TestScript.teardown section. 6069 */ 6070 public TestScriptFixtureComponent setAutodelete(boolean value) { 6071 if (this.autodelete == null) 6072 this.autodelete = new BooleanType(); 6073 this.autodelete.setValue(value); 6074 return this; 6075 } 6076 6077 /** 6078 * @return {@link #resource} (Reference to the resource (containing the contents of the resource needed for operations).) 6079 */ 6080 public Reference getResource() { 6081 if (this.resource == null) 6082 if (Configuration.errorOnAutoCreate()) 6083 throw new Error("Attempt to auto-create TestScriptFixtureComponent.resource"); 6084 else if (Configuration.doAutoCreate()) 6085 this.resource = new Reference(); // cc 6086 return this.resource; 6087 } 6088 6089 public boolean hasResource() { 6090 return this.resource != null && !this.resource.isEmpty(); 6091 } 6092 6093 /** 6094 * @param value {@link #resource} (Reference to the resource (containing the contents of the resource needed for operations).) 6095 */ 6096 public TestScriptFixtureComponent setResource(Reference value) { 6097 this.resource = value; 6098 return this; 6099 } 6100 6101 protected void listChildren(List<Property> children) { 6102 super.listChildren(children); 6103 children.add(new Property("autocreate", "boolean", "Whether or not to implicitly create the fixture during setup. If true, the fixture is automatically created on each server being tested during setup, therefore no create operation is required for this fixture in the TestScript.setup section.", 0, 1, autocreate)); 6104 children.add(new Property("autodelete", "boolean", "Whether or not to implicitly delete the fixture during teardown. If true, the fixture is automatically deleted on each server being tested during teardown, therefore no delete operation is required for this fixture in the TestScript.teardown section.", 0, 1, autodelete)); 6105 children.add(new Property("resource", "Reference(Any)", "Reference to the resource (containing the contents of the resource needed for operations).", 0, 1, resource)); 6106 } 6107 6108 @Override 6109 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 6110 switch (_hash) { 6111 case 73154411: /*autocreate*/ return new Property("autocreate", "boolean", "Whether or not to implicitly create the fixture during setup. If true, the fixture is automatically created on each server being tested during setup, therefore no create operation is required for this fixture in the TestScript.setup section.", 0, 1, autocreate); 6112 case 89990170: /*autodelete*/ return new Property("autodelete", "boolean", "Whether or not to implicitly delete the fixture during teardown. If true, the fixture is automatically deleted on each server being tested during teardown, therefore no delete operation is required for this fixture in the TestScript.teardown section.", 0, 1, autodelete); 6113 case -341064690: /*resource*/ return new Property("resource", "Reference(Any)", "Reference to the resource (containing the contents of the resource needed for operations).", 0, 1, resource); 6114 default: return super.getNamedProperty(_hash, _name, _checkValid); 6115 } 6116 6117 } 6118 6119 @Override 6120 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 6121 switch (hash) { 6122 case 73154411: /*autocreate*/ return this.autocreate == null ? new Base[0] : new Base[] {this.autocreate}; // BooleanType 6123 case 89990170: /*autodelete*/ return this.autodelete == null ? new Base[0] : new Base[] {this.autodelete}; // BooleanType 6124 case -341064690: /*resource*/ return this.resource == null ? new Base[0] : new Base[] {this.resource}; // Reference 6125 default: return super.getProperty(hash, name, checkValid); 6126 } 6127 6128 } 6129 6130 @Override 6131 public Base setProperty(int hash, String name, Base value) throws FHIRException { 6132 switch (hash) { 6133 case 73154411: // autocreate 6134 this.autocreate = TypeConvertor.castToBoolean(value); // BooleanType 6135 return value; 6136 case 89990170: // autodelete 6137 this.autodelete = TypeConvertor.castToBoolean(value); // BooleanType 6138 return value; 6139 case -341064690: // resource 6140 this.resource = TypeConvertor.castToReference(value); // Reference 6141 return value; 6142 default: return super.setProperty(hash, name, value); 6143 } 6144 6145 } 6146 6147 @Override 6148 public Base setProperty(String name, Base value) throws FHIRException { 6149 if (name.equals("autocreate")) { 6150 this.autocreate = TypeConvertor.castToBoolean(value); // BooleanType 6151 } else if (name.equals("autodelete")) { 6152 this.autodelete = TypeConvertor.castToBoolean(value); // BooleanType 6153 } else if (name.equals("resource")) { 6154 this.resource = TypeConvertor.castToReference(value); // Reference 6155 } else 6156 return super.setProperty(name, value); 6157 return value; 6158 } 6159 6160 @Override 6161 public Base makeProperty(int hash, String name) throws FHIRException { 6162 switch (hash) { 6163 case 73154411: return getAutocreateElement(); 6164 case 89990170: return getAutodeleteElement(); 6165 case -341064690: return getResource(); 6166 default: return super.makeProperty(hash, name); 6167 } 6168 6169 } 6170 6171 @Override 6172 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 6173 switch (hash) { 6174 case 73154411: /*autocreate*/ return new String[] {"boolean"}; 6175 case 89990170: /*autodelete*/ return new String[] {"boolean"}; 6176 case -341064690: /*resource*/ return new String[] {"Reference"}; 6177 default: return super.getTypesForProperty(hash, name); 6178 } 6179 6180 } 6181 6182 @Override 6183 public Base addChild(String name) throws FHIRException { 6184 if (name.equals("autocreate")) { 6185 throw new FHIRException("Cannot call addChild on a primitive type TestScript.fixture.autocreate"); 6186 } 6187 else if (name.equals("autodelete")) { 6188 throw new FHIRException("Cannot call addChild on a primitive type TestScript.fixture.autodelete"); 6189 } 6190 else if (name.equals("resource")) { 6191 this.resource = new Reference(); 6192 return this.resource; 6193 } 6194 else 6195 return super.addChild(name); 6196 } 6197 6198 public TestScriptFixtureComponent copy() { 6199 TestScriptFixtureComponent dst = new TestScriptFixtureComponent(); 6200 copyValues(dst); 6201 return dst; 6202 } 6203 6204 public void copyValues(TestScriptFixtureComponent dst) { 6205 super.copyValues(dst); 6206 dst.autocreate = autocreate == null ? null : autocreate.copy(); 6207 dst.autodelete = autodelete == null ? null : autodelete.copy(); 6208 dst.resource = resource == null ? null : resource.copy(); 6209 } 6210 6211 @Override 6212 public boolean equalsDeep(Base other_) { 6213 if (!super.equalsDeep(other_)) 6214 return false; 6215 if (!(other_ instanceof TestScriptFixtureComponent)) 6216 return false; 6217 TestScriptFixtureComponent o = (TestScriptFixtureComponent) other_; 6218 return compareDeep(autocreate, o.autocreate, true) && compareDeep(autodelete, o.autodelete, true) 6219 && compareDeep(resource, o.resource, true); 6220 } 6221 6222 @Override 6223 public boolean equalsShallow(Base other_) { 6224 if (!super.equalsShallow(other_)) 6225 return false; 6226 if (!(other_ instanceof TestScriptFixtureComponent)) 6227 return false; 6228 TestScriptFixtureComponent o = (TestScriptFixtureComponent) other_; 6229 return compareValues(autocreate, o.autocreate, true) && compareValues(autodelete, o.autodelete, true) 6230 ; 6231 } 6232 6233 public boolean isEmpty() { 6234 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(autocreate, autodelete, resource 6235 ); 6236 } 6237 6238 public String fhirType() { 6239 return "TestScript.fixture"; 6240 6241 } 6242 6243 } 6244 6245 @Block() 6246 public static class TestScriptVariableComponent extends BackboneElement implements IBaseBackboneElement { 6247 /** 6248 * Descriptive name for this variable. 6249 */ 6250 @Child(name = "name", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) 6251 @Description(shortDefinition="Descriptive name for this variable", formalDefinition="Descriptive name for this variable." ) 6252 protected StringType name; 6253 6254 /** 6255 * A default, hard-coded, or user-defined value for this variable. 6256 */ 6257 @Child(name = "defaultValue", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) 6258 @Description(shortDefinition="Default, hard-coded, or user-defined value for this variable", formalDefinition="A default, hard-coded, or user-defined value for this variable." ) 6259 protected StringType defaultValue; 6260 6261 /** 6262 * A free text natural language description of the variable and its purpose. 6263 */ 6264 @Child(name = "description", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) 6265 @Description(shortDefinition="Natural language description of the variable", formalDefinition="A free text natural language description of the variable and its purpose." ) 6266 protected StringType description; 6267 6268 /** 6269 * The FHIRPath expression to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified. 6270 */ 6271 @Child(name = "expression", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) 6272 @Description(shortDefinition="The FHIRPath expression against the fixture body", formalDefinition="The FHIRPath expression to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified." ) 6273 protected StringType expression; 6274 6275 /** 6276 * Will be used to grab the HTTP header field value from the headers that sourceId is pointing to. 6277 */ 6278 @Child(name = "headerField", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=false) 6279 @Description(shortDefinition="HTTP header field name for source", formalDefinition="Will be used to grab the HTTP header field value from the headers that sourceId is pointing to." ) 6280 protected StringType headerField; 6281 6282 /** 6283 * Displayable text string with hint help information to the user when entering a default value. 6284 */ 6285 @Child(name = "hint", type = {StringType.class}, order=6, min=0, max=1, modifier=false, summary=false) 6286 @Description(shortDefinition="Hint help text for default value to enter", formalDefinition="Displayable text string with hint help information to the user when entering a default value." ) 6287 protected StringType hint; 6288 6289 /** 6290 * XPath or JSONPath to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified. 6291 */ 6292 @Child(name = "path", type = {StringType.class}, order=7, min=0, max=1, modifier=false, summary=false) 6293 @Description(shortDefinition="XPath or JSONPath against the fixture body", formalDefinition="XPath or JSONPath to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified." ) 6294 protected StringType path; 6295 6296 /** 6297 * Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable. 6298 */ 6299 @Child(name = "sourceId", type = {IdType.class}, order=8, min=0, max=1, modifier=false, summary=false) 6300 @Description(shortDefinition="Fixture Id of source expression or headerField within this variable", formalDefinition="Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable." ) 6301 protected IdType sourceId; 6302 6303 private static final long serialVersionUID = -1592325432L; 6304 6305 /** 6306 * Constructor 6307 */ 6308 public TestScriptVariableComponent() { 6309 super(); 6310 } 6311 6312 /** 6313 * Constructor 6314 */ 6315 public TestScriptVariableComponent(String name) { 6316 super(); 6317 this.setName(name); 6318 } 6319 6320 /** 6321 * @return {@link #name} (Descriptive name for this variable.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 6322 */ 6323 public StringType getNameElement() { 6324 if (this.name == null) 6325 if (Configuration.errorOnAutoCreate()) 6326 throw new Error("Attempt to auto-create TestScriptVariableComponent.name"); 6327 else if (Configuration.doAutoCreate()) 6328 this.name = new StringType(); // bb 6329 return this.name; 6330 } 6331 6332 public boolean hasNameElement() { 6333 return this.name != null && !this.name.isEmpty(); 6334 } 6335 6336 public boolean hasName() { 6337 return this.name != null && !this.name.isEmpty(); 6338 } 6339 6340 /** 6341 * @param value {@link #name} (Descriptive name for this variable.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 6342 */ 6343 public TestScriptVariableComponent setNameElement(StringType value) { 6344 this.name = value; 6345 return this; 6346 } 6347 6348 /** 6349 * @return Descriptive name for this variable. 6350 */ 6351 public String getName() { 6352 return this.name == null ? null : this.name.getValue(); 6353 } 6354 6355 /** 6356 * @param value Descriptive name for this variable. 6357 */ 6358 public TestScriptVariableComponent setName(String value) { 6359 if (this.name == null) 6360 this.name = new StringType(); 6361 this.name.setValue(value); 6362 return this; 6363 } 6364 6365 /** 6366 * @return {@link #defaultValue} (A default, hard-coded, or user-defined value for this variable.). This is the underlying object with id, value and extensions. The accessor "getDefaultValue" gives direct access to the value 6367 */ 6368 public StringType getDefaultValueElement() { 6369 if (this.defaultValue == null) 6370 if (Configuration.errorOnAutoCreate()) 6371 throw new Error("Attempt to auto-create TestScriptVariableComponent.defaultValue"); 6372 else if (Configuration.doAutoCreate()) 6373 this.defaultValue = new StringType(); // bb 6374 return this.defaultValue; 6375 } 6376 6377 public boolean hasDefaultValueElement() { 6378 return this.defaultValue != null && !this.defaultValue.isEmpty(); 6379 } 6380 6381 public boolean hasDefaultValue() { 6382 return this.defaultValue != null && !this.defaultValue.isEmpty(); 6383 } 6384 6385 /** 6386 * @param value {@link #defaultValue} (A default, hard-coded, or user-defined value for this variable.). This is the underlying object with id, value and extensions. The accessor "getDefaultValue" gives direct access to the value 6387 */ 6388 public TestScriptVariableComponent setDefaultValueElement(StringType value) { 6389 this.defaultValue = value; 6390 return this; 6391 } 6392 6393 /** 6394 * @return A default, hard-coded, or user-defined value for this variable. 6395 */ 6396 public String getDefaultValue() { 6397 return this.defaultValue == null ? null : this.defaultValue.getValue(); 6398 } 6399 6400 /** 6401 * @param value A default, hard-coded, or user-defined value for this variable. 6402 */ 6403 public TestScriptVariableComponent setDefaultValue(String value) { 6404 if (Utilities.noString(value)) 6405 this.defaultValue = null; 6406 else { 6407 if (this.defaultValue == null) 6408 this.defaultValue = new StringType(); 6409 this.defaultValue.setValue(value); 6410 } 6411 return this; 6412 } 6413 6414 /** 6415 * @return {@link #description} (A free text natural language description of the variable and its purpose.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 6416 */ 6417 public StringType getDescriptionElement() { 6418 if (this.description == null) 6419 if (Configuration.errorOnAutoCreate()) 6420 throw new Error("Attempt to auto-create TestScriptVariableComponent.description"); 6421 else if (Configuration.doAutoCreate()) 6422 this.description = new StringType(); // bb 6423 return this.description; 6424 } 6425 6426 public boolean hasDescriptionElement() { 6427 return this.description != null && !this.description.isEmpty(); 6428 } 6429 6430 public boolean hasDescription() { 6431 return this.description != null && !this.description.isEmpty(); 6432 } 6433 6434 /** 6435 * @param value {@link #description} (A free text natural language description of the variable and its purpose.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 6436 */ 6437 public TestScriptVariableComponent setDescriptionElement(StringType value) { 6438 this.description = value; 6439 return this; 6440 } 6441 6442 /** 6443 * @return A free text natural language description of the variable and its purpose. 6444 */ 6445 public String getDescription() { 6446 return this.description == null ? null : this.description.getValue(); 6447 } 6448 6449 /** 6450 * @param value A free text natural language description of the variable and its purpose. 6451 */ 6452 public TestScriptVariableComponent setDescription(String value) { 6453 if (Utilities.noString(value)) 6454 this.description = null; 6455 else { 6456 if (this.description == null) 6457 this.description = new StringType(); 6458 this.description.setValue(value); 6459 } 6460 return this; 6461 } 6462 6463 /** 6464 * @return {@link #expression} (The FHIRPath expression to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified.). This is the underlying object with id, value and extensions. The accessor "getExpression" gives direct access to the value 6465 */ 6466 public StringType getExpressionElement() { 6467 if (this.expression == null) 6468 if (Configuration.errorOnAutoCreate()) 6469 throw new Error("Attempt to auto-create TestScriptVariableComponent.expression"); 6470 else if (Configuration.doAutoCreate()) 6471 this.expression = new StringType(); // bb 6472 return this.expression; 6473 } 6474 6475 public boolean hasExpressionElement() { 6476 return this.expression != null && !this.expression.isEmpty(); 6477 } 6478 6479 public boolean hasExpression() { 6480 return this.expression != null && !this.expression.isEmpty(); 6481 } 6482 6483 /** 6484 * @param value {@link #expression} (The FHIRPath expression to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified.). This is the underlying object with id, value and extensions. The accessor "getExpression" gives direct access to the value 6485 */ 6486 public TestScriptVariableComponent setExpressionElement(StringType value) { 6487 this.expression = value; 6488 return this; 6489 } 6490 6491 /** 6492 * @return The FHIRPath expression to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified. 6493 */ 6494 public String getExpression() { 6495 return this.expression == null ? null : this.expression.getValue(); 6496 } 6497 6498 /** 6499 * @param value The FHIRPath expression to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified. 6500 */ 6501 public TestScriptVariableComponent setExpression(String value) { 6502 if (Utilities.noString(value)) 6503 this.expression = null; 6504 else { 6505 if (this.expression == null) 6506 this.expression = new StringType(); 6507 this.expression.setValue(value); 6508 } 6509 return this; 6510 } 6511 6512 /** 6513 * @return {@link #headerField} (Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.). This is the underlying object with id, value and extensions. The accessor "getHeaderField" gives direct access to the value 6514 */ 6515 public StringType getHeaderFieldElement() { 6516 if (this.headerField == null) 6517 if (Configuration.errorOnAutoCreate()) 6518 throw new Error("Attempt to auto-create TestScriptVariableComponent.headerField"); 6519 else if (Configuration.doAutoCreate()) 6520 this.headerField = new StringType(); // bb 6521 return this.headerField; 6522 } 6523 6524 public boolean hasHeaderFieldElement() { 6525 return this.headerField != null && !this.headerField.isEmpty(); 6526 } 6527 6528 public boolean hasHeaderField() { 6529 return this.headerField != null && !this.headerField.isEmpty(); 6530 } 6531 6532 /** 6533 * @param value {@link #headerField} (Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.). This is the underlying object with id, value and extensions. The accessor "getHeaderField" gives direct access to the value 6534 */ 6535 public TestScriptVariableComponent setHeaderFieldElement(StringType value) { 6536 this.headerField = value; 6537 return this; 6538 } 6539 6540 /** 6541 * @return Will be used to grab the HTTP header field value from the headers that sourceId is pointing to. 6542 */ 6543 public String getHeaderField() { 6544 return this.headerField == null ? null : this.headerField.getValue(); 6545 } 6546 6547 /** 6548 * @param value Will be used to grab the HTTP header field value from the headers that sourceId is pointing to. 6549 */ 6550 public TestScriptVariableComponent setHeaderField(String value) { 6551 if (Utilities.noString(value)) 6552 this.headerField = null; 6553 else { 6554 if (this.headerField == null) 6555 this.headerField = new StringType(); 6556 this.headerField.setValue(value); 6557 } 6558 return this; 6559 } 6560 6561 /** 6562 * @return {@link #hint} (Displayable text string with hint help information to the user when entering a default value.). This is the underlying object with id, value and extensions. The accessor "getHint" gives direct access to the value 6563 */ 6564 public StringType getHintElement() { 6565 if (this.hint == null) 6566 if (Configuration.errorOnAutoCreate()) 6567 throw new Error("Attempt to auto-create TestScriptVariableComponent.hint"); 6568 else if (Configuration.doAutoCreate()) 6569 this.hint = new StringType(); // bb 6570 return this.hint; 6571 } 6572 6573 public boolean hasHintElement() { 6574 return this.hint != null && !this.hint.isEmpty(); 6575 } 6576 6577 public boolean hasHint() { 6578 return this.hint != null && !this.hint.isEmpty(); 6579 } 6580 6581 /** 6582 * @param value {@link #hint} (Displayable text string with hint help information to the user when entering a default value.). This is the underlying object with id, value and extensions. The accessor "getHint" gives direct access to the value 6583 */ 6584 public TestScriptVariableComponent setHintElement(StringType value) { 6585 this.hint = value; 6586 return this; 6587 } 6588 6589 /** 6590 * @return Displayable text string with hint help information to the user when entering a default value. 6591 */ 6592 public String getHint() { 6593 return this.hint == null ? null : this.hint.getValue(); 6594 } 6595 6596 /** 6597 * @param value Displayable text string with hint help information to the user when entering a default value. 6598 */ 6599 public TestScriptVariableComponent setHint(String value) { 6600 if (Utilities.noString(value)) 6601 this.hint = null; 6602 else { 6603 if (this.hint == null) 6604 this.hint = new StringType(); 6605 this.hint.setValue(value); 6606 } 6607 return this; 6608 } 6609 6610 /** 6611 * @return {@link #path} (XPath or JSONPath to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified.). This is the underlying object with id, value and extensions. The accessor "getPath" gives direct access to the value 6612 */ 6613 public StringType getPathElement() { 6614 if (this.path == null) 6615 if (Configuration.errorOnAutoCreate()) 6616 throw new Error("Attempt to auto-create TestScriptVariableComponent.path"); 6617 else if (Configuration.doAutoCreate()) 6618 this.path = new StringType(); // bb 6619 return this.path; 6620 } 6621 6622 public boolean hasPathElement() { 6623 return this.path != null && !this.path.isEmpty(); 6624 } 6625 6626 public boolean hasPath() { 6627 return this.path != null && !this.path.isEmpty(); 6628 } 6629 6630 /** 6631 * @param value {@link #path} (XPath or JSONPath to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified.). This is the underlying object with id, value and extensions. The accessor "getPath" gives direct access to the value 6632 */ 6633 public TestScriptVariableComponent setPathElement(StringType value) { 6634 this.path = value; 6635 return this; 6636 } 6637 6638 /** 6639 * @return XPath or JSONPath to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified. 6640 */ 6641 public String getPath() { 6642 return this.path == null ? null : this.path.getValue(); 6643 } 6644 6645 /** 6646 * @param value XPath or JSONPath to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified. 6647 */ 6648 public TestScriptVariableComponent setPath(String value) { 6649 if (Utilities.noString(value)) 6650 this.path = null; 6651 else { 6652 if (this.path == null) 6653 this.path = new StringType(); 6654 this.path.setValue(value); 6655 } 6656 return this; 6657 } 6658 6659 /** 6660 * @return {@link #sourceId} (Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.). This is the underlying object with id, value and extensions. The accessor "getSourceId" gives direct access to the value 6661 */ 6662 public IdType getSourceIdElement() { 6663 if (this.sourceId == null) 6664 if (Configuration.errorOnAutoCreate()) 6665 throw new Error("Attempt to auto-create TestScriptVariableComponent.sourceId"); 6666 else if (Configuration.doAutoCreate()) 6667 this.sourceId = new IdType(); // bb 6668 return this.sourceId; 6669 } 6670 6671 public boolean hasSourceIdElement() { 6672 return this.sourceId != null && !this.sourceId.isEmpty(); 6673 } 6674 6675 public boolean hasSourceId() { 6676 return this.sourceId != null && !this.sourceId.isEmpty(); 6677 } 6678 6679 /** 6680 * @param value {@link #sourceId} (Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.). This is the underlying object with id, value and extensions. The accessor "getSourceId" gives direct access to the value 6681 */ 6682 public TestScriptVariableComponent setSourceIdElement(IdType value) { 6683 this.sourceId = value; 6684 return this; 6685 } 6686 6687 /** 6688 * @return Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable. 6689 */ 6690 public String getSourceId() { 6691 return this.sourceId == null ? null : this.sourceId.getValue(); 6692 } 6693 6694 /** 6695 * @param value Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable. 6696 */ 6697 public TestScriptVariableComponent setSourceId(String value) { 6698 if (Utilities.noString(value)) 6699 this.sourceId = null; 6700 else { 6701 if (this.sourceId == null) 6702 this.sourceId = new IdType(); 6703 this.sourceId.setValue(value); 6704 } 6705 return this; 6706 } 6707 6708 protected void listChildren(List<Property> children) { 6709 super.listChildren(children); 6710 children.add(new Property("name", "string", "Descriptive name for this variable.", 0, 1, name)); 6711 children.add(new Property("defaultValue", "string", "A default, hard-coded, or user-defined value for this variable.", 0, 1, defaultValue)); 6712 children.add(new Property("description", "string", "A free text natural language description of the variable and its purpose.", 0, 1, description)); 6713 children.add(new Property("expression", "string", "The FHIRPath expression to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified.", 0, 1, expression)); 6714 children.add(new Property("headerField", "string", "Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.", 0, 1, headerField)); 6715 children.add(new Property("hint", "string", "Displayable text string with hint help information to the user when entering a default value.", 0, 1, hint)); 6716 children.add(new Property("path", "string", "XPath or JSONPath to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified.", 0, 1, path)); 6717 children.add(new Property("sourceId", "id", "Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.", 0, 1, sourceId)); 6718 } 6719 6720 @Override 6721 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 6722 switch (_hash) { 6723 case 3373707: /*name*/ return new Property("name", "string", "Descriptive name for this variable.", 0, 1, name); 6724 case -659125328: /*defaultValue*/ return new Property("defaultValue", "string", "A default, hard-coded, or user-defined value for this variable.", 0, 1, defaultValue); 6725 case -1724546052: /*description*/ return new Property("description", "string", "A free text natural language description of the variable and its purpose.", 0, 1, description); 6726 case -1795452264: /*expression*/ return new Property("expression", "string", "The FHIRPath expression to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified.", 0, 1, expression); 6727 case 1160732269: /*headerField*/ return new Property("headerField", "string", "Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.", 0, 1, headerField); 6728 case 3202695: /*hint*/ return new Property("hint", "string", "Displayable text string with hint help information to the user when entering a default value.", 0, 1, hint); 6729 case 3433509: /*path*/ return new Property("path", "string", "XPath or JSONPath to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified.", 0, 1, path); 6730 case 1746327190: /*sourceId*/ return new Property("sourceId", "id", "Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.", 0, 1, sourceId); 6731 default: return super.getNamedProperty(_hash, _name, _checkValid); 6732 } 6733 6734 } 6735 6736 @Override 6737 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 6738 switch (hash) { 6739 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 6740 case -659125328: /*defaultValue*/ return this.defaultValue == null ? new Base[0] : new Base[] {this.defaultValue}; // StringType 6741 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 6742 case -1795452264: /*expression*/ return this.expression == null ? new Base[0] : new Base[] {this.expression}; // StringType 6743 case 1160732269: /*headerField*/ return this.headerField == null ? new Base[0] : new Base[] {this.headerField}; // StringType 6744 case 3202695: /*hint*/ return this.hint == null ? new Base[0] : new Base[] {this.hint}; // StringType 6745 case 3433509: /*path*/ return this.path == null ? new Base[0] : new Base[] {this.path}; // StringType 6746 case 1746327190: /*sourceId*/ return this.sourceId == null ? new Base[0] : new Base[] {this.sourceId}; // IdType 6747 default: return super.getProperty(hash, name, checkValid); 6748 } 6749 6750 } 6751 6752 @Override 6753 public Base setProperty(int hash, String name, Base value) throws FHIRException { 6754 switch (hash) { 6755 case 3373707: // name 6756 this.name = TypeConvertor.castToString(value); // StringType 6757 return value; 6758 case -659125328: // defaultValue 6759 this.defaultValue = TypeConvertor.castToString(value); // StringType 6760 return value; 6761 case -1724546052: // description 6762 this.description = TypeConvertor.castToString(value); // StringType 6763 return value; 6764 case -1795452264: // expression 6765 this.expression = TypeConvertor.castToString(value); // StringType 6766 return value; 6767 case 1160732269: // headerField 6768 this.headerField = TypeConvertor.castToString(value); // StringType 6769 return value; 6770 case 3202695: // hint 6771 this.hint = TypeConvertor.castToString(value); // StringType 6772 return value; 6773 case 3433509: // path 6774 this.path = TypeConvertor.castToString(value); // StringType 6775 return value; 6776 case 1746327190: // sourceId 6777 this.sourceId = TypeConvertor.castToId(value); // IdType 6778 return value; 6779 default: return super.setProperty(hash, name, value); 6780 } 6781 6782 } 6783 6784 @Override 6785 public Base setProperty(String name, Base value) throws FHIRException { 6786 if (name.equals("name")) { 6787 this.name = TypeConvertor.castToString(value); // StringType 6788 } else if (name.equals("defaultValue")) { 6789 this.defaultValue = TypeConvertor.castToString(value); // StringType 6790 } else if (name.equals("description")) { 6791 this.description = TypeConvertor.castToString(value); // StringType 6792 } else if (name.equals("expression")) { 6793 this.expression = TypeConvertor.castToString(value); // StringType 6794 } else if (name.equals("headerField")) { 6795 this.headerField = TypeConvertor.castToString(value); // StringType 6796 } else if (name.equals("hint")) { 6797 this.hint = TypeConvertor.castToString(value); // StringType 6798 } else if (name.equals("path")) { 6799 this.path = TypeConvertor.castToString(value); // StringType 6800 } else if (name.equals("sourceId")) { 6801 this.sourceId = TypeConvertor.castToId(value); // IdType 6802 } else 6803 return super.setProperty(name, value); 6804 return value; 6805 } 6806 6807 @Override 6808 public Base makeProperty(int hash, String name) throws FHIRException { 6809 switch (hash) { 6810 case 3373707: return getNameElement(); 6811 case -659125328: return getDefaultValueElement(); 6812 case -1724546052: return getDescriptionElement(); 6813 case -1795452264: return getExpressionElement(); 6814 case 1160732269: return getHeaderFieldElement(); 6815 case 3202695: return getHintElement(); 6816 case 3433509: return getPathElement(); 6817 case 1746327190: return getSourceIdElement(); 6818 default: return super.makeProperty(hash, name); 6819 } 6820 6821 } 6822 6823 @Override 6824 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 6825 switch (hash) { 6826 case 3373707: /*name*/ return new String[] {"string"}; 6827 case -659125328: /*defaultValue*/ return new String[] {"string"}; 6828 case -1724546052: /*description*/ return new String[] {"string"}; 6829 case -1795452264: /*expression*/ return new String[] {"string"}; 6830 case 1160732269: /*headerField*/ return new String[] {"string"}; 6831 case 3202695: /*hint*/ return new String[] {"string"}; 6832 case 3433509: /*path*/ return new String[] {"string"}; 6833 case 1746327190: /*sourceId*/ return new String[] {"id"}; 6834 default: return super.getTypesForProperty(hash, name); 6835 } 6836 6837 } 6838 6839 @Override 6840 public Base addChild(String name) throws FHIRException { 6841 if (name.equals("name")) { 6842 throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.name"); 6843 } 6844 else if (name.equals("defaultValue")) { 6845 throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.defaultValue"); 6846 } 6847 else if (name.equals("description")) { 6848 throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.description"); 6849 } 6850 else if (name.equals("expression")) { 6851 throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.expression"); 6852 } 6853 else if (name.equals("headerField")) { 6854 throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.headerField"); 6855 } 6856 else if (name.equals("hint")) { 6857 throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.hint"); 6858 } 6859 else if (name.equals("path")) { 6860 throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.path"); 6861 } 6862 else if (name.equals("sourceId")) { 6863 throw new FHIRException("Cannot call addChild on a primitive type TestScript.variable.sourceId"); 6864 } 6865 else 6866 return super.addChild(name); 6867 } 6868 6869 public TestScriptVariableComponent copy() { 6870 TestScriptVariableComponent dst = new TestScriptVariableComponent(); 6871 copyValues(dst); 6872 return dst; 6873 } 6874 6875 public void copyValues(TestScriptVariableComponent dst) { 6876 super.copyValues(dst); 6877 dst.name = name == null ? null : name.copy(); 6878 dst.defaultValue = defaultValue == null ? null : defaultValue.copy(); 6879 dst.description = description == null ? null : description.copy(); 6880 dst.expression = expression == null ? null : expression.copy(); 6881 dst.headerField = headerField == null ? null : headerField.copy(); 6882 dst.hint = hint == null ? null : hint.copy(); 6883 dst.path = path == null ? null : path.copy(); 6884 dst.sourceId = sourceId == null ? null : sourceId.copy(); 6885 } 6886 6887 @Override 6888 public boolean equalsDeep(Base other_) { 6889 if (!super.equalsDeep(other_)) 6890 return false; 6891 if (!(other_ instanceof TestScriptVariableComponent)) 6892 return false; 6893 TestScriptVariableComponent o = (TestScriptVariableComponent) other_; 6894 return compareDeep(name, o.name, true) && compareDeep(defaultValue, o.defaultValue, true) && compareDeep(description, o.description, true) 6895 && compareDeep(expression, o.expression, true) && compareDeep(headerField, o.headerField, true) 6896 && compareDeep(hint, o.hint, true) && compareDeep(path, o.path, true) && compareDeep(sourceId, o.sourceId, true) 6897 ; 6898 } 6899 6900 @Override 6901 public boolean equalsShallow(Base other_) { 6902 if (!super.equalsShallow(other_)) 6903 return false; 6904 if (!(other_ instanceof TestScriptVariableComponent)) 6905 return false; 6906 TestScriptVariableComponent o = (TestScriptVariableComponent) other_; 6907 return compareValues(name, o.name, true) && compareValues(defaultValue, o.defaultValue, true) && compareValues(description, o.description, true) 6908 && compareValues(expression, o.expression, true) && compareValues(headerField, o.headerField, true) 6909 && compareValues(hint, o.hint, true) && compareValues(path, o.path, true) && compareValues(sourceId, o.sourceId, true) 6910 ; 6911 } 6912 6913 public boolean isEmpty() { 6914 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, defaultValue, description 6915 , expression, headerField, hint, path, sourceId); 6916 } 6917 6918 public String fhirType() { 6919 return "TestScript.variable"; 6920 6921 } 6922 6923 } 6924 6925 @Block() 6926 public static class TestScriptSetupComponent extends BackboneElement implements IBaseBackboneElement { 6927 /** 6928 * Action would contain either an operation or an assertion. 6929 */ 6930 @Child(name = "action", type = {}, order=1, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 6931 @Description(shortDefinition="A setup operation or assert to perform", formalDefinition="Action would contain either an operation or an assertion." ) 6932 protected List<SetupActionComponent> action; 6933 6934 private static final long serialVersionUID = -123374486L; 6935 6936 /** 6937 * Constructor 6938 */ 6939 public TestScriptSetupComponent() { 6940 super(); 6941 } 6942 6943 /** 6944 * Constructor 6945 */ 6946 public TestScriptSetupComponent(SetupActionComponent action) { 6947 super(); 6948 this.addAction(action); 6949 } 6950 6951 /** 6952 * @return {@link #action} (Action would contain either an operation or an assertion.) 6953 */ 6954 public List<SetupActionComponent> getAction() { 6955 if (this.action == null) 6956 this.action = new ArrayList<SetupActionComponent>(); 6957 return this.action; 6958 } 6959 6960 /** 6961 * @return Returns a reference to <code>this</code> for easy method chaining 6962 */ 6963 public TestScriptSetupComponent setAction(List<SetupActionComponent> theAction) { 6964 this.action = theAction; 6965 return this; 6966 } 6967 6968 public boolean hasAction() { 6969 if (this.action == null) 6970 return false; 6971 for (SetupActionComponent item : this.action) 6972 if (!item.isEmpty()) 6973 return true; 6974 return false; 6975 } 6976 6977 public SetupActionComponent addAction() { //3 6978 SetupActionComponent t = new SetupActionComponent(); 6979 if (this.action == null) 6980 this.action = new ArrayList<SetupActionComponent>(); 6981 this.action.add(t); 6982 return t; 6983 } 6984 6985 public TestScriptSetupComponent addAction(SetupActionComponent t) { //3 6986 if (t == null) 6987 return this; 6988 if (this.action == null) 6989 this.action = new ArrayList<SetupActionComponent>(); 6990 this.action.add(t); 6991 return this; 6992 } 6993 6994 /** 6995 * @return The first repetition of repeating field {@link #action}, creating it if it does not already exist {3} 6996 */ 6997 public SetupActionComponent getActionFirstRep() { 6998 if (getAction().isEmpty()) { 6999 addAction(); 7000 } 7001 return getAction().get(0); 7002 } 7003 7004 protected void listChildren(List<Property> children) { 7005 super.listChildren(children); 7006 children.add(new Property("action", "", "Action would contain either an operation or an assertion.", 0, java.lang.Integer.MAX_VALUE, action)); 7007 } 7008 7009 @Override 7010 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 7011 switch (_hash) { 7012 case -1422950858: /*action*/ return new Property("action", "", "Action would contain either an operation or an assertion.", 0, java.lang.Integer.MAX_VALUE, action); 7013 default: return super.getNamedProperty(_hash, _name, _checkValid); 7014 } 7015 7016 } 7017 7018 @Override 7019 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 7020 switch (hash) { 7021 case -1422950858: /*action*/ return this.action == null ? new Base[0] : this.action.toArray(new Base[this.action.size()]); // SetupActionComponent 7022 default: return super.getProperty(hash, name, checkValid); 7023 } 7024 7025 } 7026 7027 @Override 7028 public Base setProperty(int hash, String name, Base value) throws FHIRException { 7029 switch (hash) { 7030 case -1422950858: // action 7031 this.getAction().add((SetupActionComponent) value); // SetupActionComponent 7032 return value; 7033 default: return super.setProperty(hash, name, value); 7034 } 7035 7036 } 7037 7038 @Override 7039 public Base setProperty(String name, Base value) throws FHIRException { 7040 if (name.equals("action")) { 7041 this.getAction().add((SetupActionComponent) value); 7042 } else 7043 return super.setProperty(name, value); 7044 return value; 7045 } 7046 7047 @Override 7048 public Base makeProperty(int hash, String name) throws FHIRException { 7049 switch (hash) { 7050 case -1422950858: return addAction(); 7051 default: return super.makeProperty(hash, name); 7052 } 7053 7054 } 7055 7056 @Override 7057 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 7058 switch (hash) { 7059 case -1422950858: /*action*/ return new String[] {}; 7060 default: return super.getTypesForProperty(hash, name); 7061 } 7062 7063 } 7064 7065 @Override 7066 public Base addChild(String name) throws FHIRException { 7067 if (name.equals("action")) { 7068 return addAction(); 7069 } 7070 else 7071 return super.addChild(name); 7072 } 7073 7074 public TestScriptSetupComponent copy() { 7075 TestScriptSetupComponent dst = new TestScriptSetupComponent(); 7076 copyValues(dst); 7077 return dst; 7078 } 7079 7080 public void copyValues(TestScriptSetupComponent dst) { 7081 super.copyValues(dst); 7082 if (action != null) { 7083 dst.action = new ArrayList<SetupActionComponent>(); 7084 for (SetupActionComponent i : action) 7085 dst.action.add(i.copy()); 7086 }; 7087 } 7088 7089 @Override 7090 public boolean equalsDeep(Base other_) { 7091 if (!super.equalsDeep(other_)) 7092 return false; 7093 if (!(other_ instanceof TestScriptSetupComponent)) 7094 return false; 7095 TestScriptSetupComponent o = (TestScriptSetupComponent) other_; 7096 return compareDeep(action, o.action, true); 7097 } 7098 7099 @Override 7100 public boolean equalsShallow(Base other_) { 7101 if (!super.equalsShallow(other_)) 7102 return false; 7103 if (!(other_ instanceof TestScriptSetupComponent)) 7104 return false; 7105 TestScriptSetupComponent o = (TestScriptSetupComponent) other_; 7106 return true; 7107 } 7108 7109 public boolean isEmpty() { 7110 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(action); 7111 } 7112 7113 public String fhirType() { 7114 return "TestScript.setup"; 7115 7116 } 7117 7118 } 7119 7120 @Block() 7121 public static class SetupActionComponent extends BackboneElement implements IBaseBackboneElement { 7122 /** 7123 * The operation to perform. 7124 */ 7125 @Child(name = "operation", type = {}, order=1, min=0, max=1, modifier=false, summary=false) 7126 @Description(shortDefinition="The setup operation to perform", formalDefinition="The operation to perform." ) 7127 protected SetupActionOperationComponent operation; 7128 7129 /** 7130 * Evaluates the results of previous operations to determine if the server under test behaves appropriately. 7131 */ 7132 @Child(name = "assert", type = {}, order=2, min=0, max=1, modifier=false, summary=false) 7133 @Description(shortDefinition="The assertion to perform", formalDefinition="Evaluates the results of previous operations to determine if the server under test behaves appropriately." ) 7134 protected SetupActionAssertComponent assert_; 7135 7136 private static final long serialVersionUID = -252088305L; 7137 7138 /** 7139 * Constructor 7140 */ 7141 public SetupActionComponent() { 7142 super(); 7143 } 7144 7145 /** 7146 * @return {@link #operation} (The operation to perform.) 7147 */ 7148 public SetupActionOperationComponent getOperation() { 7149 if (this.operation == null) 7150 if (Configuration.errorOnAutoCreate()) 7151 throw new Error("Attempt to auto-create SetupActionComponent.operation"); 7152 else if (Configuration.doAutoCreate()) 7153 this.operation = new SetupActionOperationComponent(); // cc 7154 return this.operation; 7155 } 7156 7157 public boolean hasOperation() { 7158 return this.operation != null && !this.operation.isEmpty(); 7159 } 7160 7161 /** 7162 * @param value {@link #operation} (The operation to perform.) 7163 */ 7164 public SetupActionComponent setOperation(SetupActionOperationComponent value) { 7165 this.operation = value; 7166 return this; 7167 } 7168 7169 /** 7170 * @return {@link #assert_} (Evaluates the results of previous operations to determine if the server under test behaves appropriately.) 7171 */ 7172 public SetupActionAssertComponent getAssert() { 7173 if (this.assert_ == null) 7174 if (Configuration.errorOnAutoCreate()) 7175 throw new Error("Attempt to auto-create SetupActionComponent.assert_"); 7176 else if (Configuration.doAutoCreate()) 7177 this.assert_ = new SetupActionAssertComponent(); // cc 7178 return this.assert_; 7179 } 7180 7181 public boolean hasAssert() { 7182 return this.assert_ != null && !this.assert_.isEmpty(); 7183 } 7184 7185 /** 7186 * @param value {@link #assert_} (Evaluates the results of previous operations to determine if the server under test behaves appropriately.) 7187 */ 7188 public SetupActionComponent setAssert(SetupActionAssertComponent value) { 7189 this.assert_ = value; 7190 return this; 7191 } 7192 7193 protected void listChildren(List<Property> children) { 7194 super.listChildren(children); 7195 children.add(new Property("operation", "", "The operation to perform.", 0, 1, operation)); 7196 children.add(new Property("assert", "", "Evaluates the results of previous operations to determine if the server under test behaves appropriately.", 0, 1, assert_)); 7197 } 7198 7199 @Override 7200 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 7201 switch (_hash) { 7202 case 1662702951: /*operation*/ return new Property("operation", "", "The operation to perform.", 0, 1, operation); 7203 case -1408208058: /*assert*/ return new Property("assert", "", "Evaluates the results of previous operations to determine if the server under test behaves appropriately.", 0, 1, assert_); 7204 default: return super.getNamedProperty(_hash, _name, _checkValid); 7205 } 7206 7207 } 7208 7209 @Override 7210 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 7211 switch (hash) { 7212 case 1662702951: /*operation*/ return this.operation == null ? new Base[0] : new Base[] {this.operation}; // SetupActionOperationComponent 7213 case -1408208058: /*assert*/ return this.assert_ == null ? new Base[0] : new Base[] {this.assert_}; // SetupActionAssertComponent 7214 default: return super.getProperty(hash, name, checkValid); 7215 } 7216 7217 } 7218 7219 @Override 7220 public Base setProperty(int hash, String name, Base value) throws FHIRException { 7221 switch (hash) { 7222 case 1662702951: // operation 7223 this.operation = (SetupActionOperationComponent) value; // SetupActionOperationComponent 7224 return value; 7225 case -1408208058: // assert 7226 this.assert_ = (SetupActionAssertComponent) value; // SetupActionAssertComponent 7227 return value; 7228 default: return super.setProperty(hash, name, value); 7229 } 7230 7231 } 7232 7233 @Override 7234 public Base setProperty(String name, Base value) throws FHIRException { 7235 if (name.equals("operation")) { 7236 this.operation = (SetupActionOperationComponent) value; // SetupActionOperationComponent 7237 } else if (name.equals("assert")) { 7238 this.assert_ = (SetupActionAssertComponent) value; // SetupActionAssertComponent 7239 } else 7240 return super.setProperty(name, value); 7241 return value; 7242 } 7243 7244 @Override 7245 public Base makeProperty(int hash, String name) throws FHIRException { 7246 switch (hash) { 7247 case 1662702951: return getOperation(); 7248 case -1408208058: return getAssert(); 7249 default: return super.makeProperty(hash, name); 7250 } 7251 7252 } 7253 7254 @Override 7255 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 7256 switch (hash) { 7257 case 1662702951: /*operation*/ return new String[] {}; 7258 case -1408208058: /*assert*/ return new String[] {}; 7259 default: return super.getTypesForProperty(hash, name); 7260 } 7261 7262 } 7263 7264 @Override 7265 public Base addChild(String name) throws FHIRException { 7266 if (name.equals("operation")) { 7267 this.operation = new SetupActionOperationComponent(); 7268 return this.operation; 7269 } 7270 else if (name.equals("assert")) { 7271 this.assert_ = new SetupActionAssertComponent(); 7272 return this.assert_; 7273 } 7274 else 7275 return super.addChild(name); 7276 } 7277 7278 public SetupActionComponent copy() { 7279 SetupActionComponent dst = new SetupActionComponent(); 7280 copyValues(dst); 7281 return dst; 7282 } 7283 7284 public void copyValues(SetupActionComponent dst) { 7285 super.copyValues(dst); 7286 dst.operation = operation == null ? null : operation.copy(); 7287 dst.assert_ = assert_ == null ? null : assert_.copy(); 7288 } 7289 7290 @Override 7291 public boolean equalsDeep(Base other_) { 7292 if (!super.equalsDeep(other_)) 7293 return false; 7294 if (!(other_ instanceof SetupActionComponent)) 7295 return false; 7296 SetupActionComponent o = (SetupActionComponent) other_; 7297 return compareDeep(operation, o.operation, true) && compareDeep(assert_, o.assert_, true); 7298 } 7299 7300 @Override 7301 public boolean equalsShallow(Base other_) { 7302 if (!super.equalsShallow(other_)) 7303 return false; 7304 if (!(other_ instanceof SetupActionComponent)) 7305 return false; 7306 SetupActionComponent o = (SetupActionComponent) other_; 7307 return true; 7308 } 7309 7310 public boolean isEmpty() { 7311 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(operation, assert_); 7312 } 7313 7314 public String fhirType() { 7315 return "TestScript.setup.action"; 7316 7317 } 7318 7319 } 7320 7321 @Block() 7322 public static class SetupActionOperationComponent extends BackboneElement implements IBaseBackboneElement { 7323 /** 7324 * Server interaction or operation type. 7325 */ 7326 @Child(name = "type", type = {Coding.class}, order=1, min=0, max=1, modifier=false, summary=false) 7327 @Description(shortDefinition="The operation code type that will be executed", formalDefinition="Server interaction or operation type." ) 7328 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/testscript-operation-codes") 7329 protected Coding type; 7330 7331 /** 7332 * The type of the resource. See http://build.fhir.org/resourcelist.html. 7333 */ 7334 @Child(name = "resource", type = {CodeType.class}, order=2, min=0, max=1, modifier=false, summary=false) 7335 @Description(shortDefinition="Resource type", formalDefinition="The type of the resource. See http://build.fhir.org/resourcelist.html." ) 7336 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/defined-types") 7337 protected Enumeration<FHIRDefinedType> resource; 7338 7339 /** 7340 * The label would be used for tracking/logging purposes by test engines. 7341 */ 7342 @Child(name = "label", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) 7343 @Description(shortDefinition="Tracking/logging operation label", formalDefinition="The label would be used for tracking/logging purposes by test engines." ) 7344 protected StringType label; 7345 7346 /** 7347 * The description would be used by test engines for tracking and reporting purposes. 7348 */ 7349 @Child(name = "description", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) 7350 @Description(shortDefinition="Tracking/reporting operation description", formalDefinition="The description would be used by test engines for tracking and reporting purposes." ) 7351 protected StringType description; 7352 7353 /** 7354 * The mime-type to use for RESTful operation in the 'Accept' header. 7355 */ 7356 @Child(name = "accept", type = {CodeType.class}, order=5, min=0, max=1, modifier=false, summary=false) 7357 @Description(shortDefinition="Mime type to accept in the payload of the response, with charset etc.", formalDefinition="The mime-type to use for RESTful operation in the 'Accept' header." ) 7358 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/mimetypes") 7359 protected CodeType accept; 7360 7361 /** 7362 * The mime-type to use for RESTful operation in the 'Content-Type' header. 7363 */ 7364 @Child(name = "contentType", type = {CodeType.class}, order=6, min=0, max=1, modifier=false, summary=false) 7365 @Description(shortDefinition="Mime type of the request payload contents, with charset etc.", formalDefinition="The mime-type to use for RESTful operation in the 'Content-Type' header." ) 7366 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/mimetypes") 7367 protected CodeType contentType; 7368 7369 /** 7370 * The server where the request message is destined for. Must be one of the server numbers listed in TestScript.destination section. 7371 */ 7372 @Child(name = "destination", type = {IntegerType.class}, order=7, min=0, max=1, modifier=false, summary=false) 7373 @Description(shortDefinition="Server responding to the request", formalDefinition="The server where the request message is destined for. Must be one of the server numbers listed in TestScript.destination section." ) 7374 protected IntegerType destination; 7375 7376 /** 7377 * Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths. 7378 */ 7379 @Child(name = "encodeRequestUrl", type = {BooleanType.class}, order=8, min=1, max=1, modifier=false, summary=false) 7380 @Description(shortDefinition="Whether or not to send the request url in encoded format", formalDefinition="Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths." ) 7381 protected BooleanType encodeRequestUrl; 7382 7383 /** 7384 * The HTTP method the test engine MUST use for this operation regardless of any other operation details. 7385 */ 7386 @Child(name = "method", type = {CodeType.class}, order=9, min=0, max=1, modifier=false, summary=false) 7387 @Description(shortDefinition="delete | get | options | patch | post | put | head", formalDefinition="The HTTP method the test engine MUST use for this operation regardless of any other operation details." ) 7388 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/http-operations") 7389 protected Enumeration<TestScriptRequestMethodCode> method; 7390 7391 /** 7392 * The server where the request message originates from. Must be one of the server numbers listed in TestScript.origin section. 7393 */ 7394 @Child(name = "origin", type = {IntegerType.class}, order=10, min=0, max=1, modifier=false, summary=false) 7395 @Description(shortDefinition="Server initiating the request", formalDefinition="The server where the request message originates from. Must be one of the server numbers listed in TestScript.origin section." ) 7396 protected IntegerType origin; 7397 7398 /** 7399 * Path plus parameters after [type]. Used to set parts of the request URL explicitly. 7400 */ 7401 @Child(name = "params", type = {StringType.class}, order=11, min=0, max=1, modifier=false, summary=false) 7402 @Description(shortDefinition="Explicitly defined path parameters", formalDefinition="Path plus parameters after [type]. Used to set parts of the request URL explicitly." ) 7403 protected StringType params; 7404 7405 /** 7406 * Header elements would be used to set HTTP headers. 7407 */ 7408 @Child(name = "requestHeader", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 7409 @Description(shortDefinition="Each operation can have one or more header elements", formalDefinition="Header elements would be used to set HTTP headers." ) 7410 protected List<SetupActionOperationRequestHeaderComponent> requestHeader; 7411 7412 /** 7413 * The fixture id (maybe new) to map to the request. 7414 */ 7415 @Child(name = "requestId", type = {IdType.class}, order=13, min=0, max=1, modifier=false, summary=false) 7416 @Description(shortDefinition="Fixture Id of mapped request", formalDefinition="The fixture id (maybe new) to map to the request." ) 7417 protected IdType requestId; 7418 7419 /** 7420 * The fixture id (maybe new) to map to the response. 7421 */ 7422 @Child(name = "responseId", type = {IdType.class}, order=14, min=0, max=1, modifier=false, summary=false) 7423 @Description(shortDefinition="Fixture Id of mapped response", formalDefinition="The fixture id (maybe new) to map to the response." ) 7424 protected IdType responseId; 7425 7426 /** 7427 * The id of the fixture used as the body of a PUT or POST request. 7428 */ 7429 @Child(name = "sourceId", type = {IdType.class}, order=15, min=0, max=1, modifier=false, summary=false) 7430 @Description(shortDefinition="Fixture Id of body for PUT and POST requests", formalDefinition="The id of the fixture used as the body of a PUT or POST request." ) 7431 protected IdType sourceId; 7432 7433 /** 7434 * Id of fixture used for extracting the [id], [type], and [vid] for GET requests. 7435 */ 7436 @Child(name = "targetId", type = {IdType.class}, order=16, min=0, max=1, modifier=false, summary=false) 7437 @Description(shortDefinition="Id of fixture used for extracting the [id], [type], and [vid] for GET requests", formalDefinition="Id of fixture used for extracting the [id], [type], and [vid] for GET requests." ) 7438 protected IdType targetId; 7439 7440 /** 7441 * Complete request URL. 7442 */ 7443 @Child(name = "url", type = {StringType.class}, order=17, min=0, max=1, modifier=false, summary=false) 7444 @Description(shortDefinition="Request URL", formalDefinition="Complete request URL." ) 7445 protected StringType url; 7446 7447 private static final long serialVersionUID = -1301448722L; 7448 7449 /** 7450 * Constructor 7451 */ 7452 public SetupActionOperationComponent() { 7453 super(); 7454 } 7455 7456 /** 7457 * Constructor 7458 */ 7459 public SetupActionOperationComponent(boolean encodeRequestUrl) { 7460 super(); 7461 this.setEncodeRequestUrl(encodeRequestUrl); 7462 } 7463 7464 /** 7465 * @return {@link #type} (Server interaction or operation type.) 7466 */ 7467 public Coding getType() { 7468 if (this.type == null) 7469 if (Configuration.errorOnAutoCreate()) 7470 throw new Error("Attempt to auto-create SetupActionOperationComponent.type"); 7471 else if (Configuration.doAutoCreate()) 7472 this.type = new Coding(); // cc 7473 return this.type; 7474 } 7475 7476 public boolean hasType() { 7477 return this.type != null && !this.type.isEmpty(); 7478 } 7479 7480 /** 7481 * @param value {@link #type} (Server interaction or operation type.) 7482 */ 7483 public SetupActionOperationComponent setType(Coding value) { 7484 this.type = value; 7485 return this; 7486 } 7487 7488 /** 7489 * @return {@link #resource} (The type of the resource. See http://build.fhir.org/resourcelist.html.). This is the underlying object with id, value and extensions. The accessor "getResource" gives direct access to the value 7490 */ 7491 public Enumeration<FHIRDefinedType> getResourceElement() { 7492 if (this.resource == null) 7493 if (Configuration.errorOnAutoCreate()) 7494 throw new Error("Attempt to auto-create SetupActionOperationComponent.resource"); 7495 else if (Configuration.doAutoCreate()) 7496 this.resource = new Enumeration<FHIRDefinedType>(new FHIRDefinedTypeEnumFactory()); // bb 7497 return this.resource; 7498 } 7499 7500 public boolean hasResourceElement() { 7501 return this.resource != null && !this.resource.isEmpty(); 7502 } 7503 7504 public boolean hasResource() { 7505 return this.resource != null && !this.resource.isEmpty(); 7506 } 7507 7508 /** 7509 * @param value {@link #resource} (The type of the resource. See http://build.fhir.org/resourcelist.html.). This is the underlying object with id, value and extensions. The accessor "getResource" gives direct access to the value 7510 */ 7511 public SetupActionOperationComponent setResourceElement(Enumeration<FHIRDefinedType> value) { 7512 this.resource = value; 7513 return this; 7514 } 7515 7516 /** 7517 * @return The type of the resource. See http://build.fhir.org/resourcelist.html. 7518 */ 7519 public FHIRDefinedType getResource() { 7520 return this.resource == null ? null : this.resource.getValue(); 7521 } 7522 7523 /** 7524 * @param value The type of the resource. See http://build.fhir.org/resourcelist.html. 7525 */ 7526 public SetupActionOperationComponent setResource(FHIRDefinedType value) { 7527 if (value == null) 7528 this.resource = null; 7529 else { 7530 if (this.resource == null) 7531 this.resource = new Enumeration<FHIRDefinedType>(new FHIRDefinedTypeEnumFactory()); 7532 this.resource.setValue(value); 7533 } 7534 return this; 7535 } 7536 7537 /** 7538 * @return {@link #label} (The label would be used for tracking/logging purposes by test engines.). This is the underlying object with id, value and extensions. The accessor "getLabel" gives direct access to the value 7539 */ 7540 public StringType getLabelElement() { 7541 if (this.label == null) 7542 if (Configuration.errorOnAutoCreate()) 7543 throw new Error("Attempt to auto-create SetupActionOperationComponent.label"); 7544 else if (Configuration.doAutoCreate()) 7545 this.label = new StringType(); // bb 7546 return this.label; 7547 } 7548 7549 public boolean hasLabelElement() { 7550 return this.label != null && !this.label.isEmpty(); 7551 } 7552 7553 public boolean hasLabel() { 7554 return this.label != null && !this.label.isEmpty(); 7555 } 7556 7557 /** 7558 * @param value {@link #label} (The label would be used for tracking/logging purposes by test engines.). This is the underlying object with id, value and extensions. The accessor "getLabel" gives direct access to the value 7559 */ 7560 public SetupActionOperationComponent setLabelElement(StringType value) { 7561 this.label = value; 7562 return this; 7563 } 7564 7565 /** 7566 * @return The label would be used for tracking/logging purposes by test engines. 7567 */ 7568 public String getLabel() { 7569 return this.label == null ? null : this.label.getValue(); 7570 } 7571 7572 /** 7573 * @param value The label would be used for tracking/logging purposes by test engines. 7574 */ 7575 public SetupActionOperationComponent setLabel(String value) { 7576 if (Utilities.noString(value)) 7577 this.label = null; 7578 else { 7579 if (this.label == null) 7580 this.label = new StringType(); 7581 this.label.setValue(value); 7582 } 7583 return this; 7584 } 7585 7586 /** 7587 * @return {@link #description} (The description would be used by test engines for tracking and reporting purposes.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 7588 */ 7589 public StringType getDescriptionElement() { 7590 if (this.description == null) 7591 if (Configuration.errorOnAutoCreate()) 7592 throw new Error("Attempt to auto-create SetupActionOperationComponent.description"); 7593 else if (Configuration.doAutoCreate()) 7594 this.description = new StringType(); // bb 7595 return this.description; 7596 } 7597 7598 public boolean hasDescriptionElement() { 7599 return this.description != null && !this.description.isEmpty(); 7600 } 7601 7602 public boolean hasDescription() { 7603 return this.description != null && !this.description.isEmpty(); 7604 } 7605 7606 /** 7607 * @param value {@link #description} (The description would be used by test engines for tracking and reporting purposes.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 7608 */ 7609 public SetupActionOperationComponent setDescriptionElement(StringType value) { 7610 this.description = value; 7611 return this; 7612 } 7613 7614 /** 7615 * @return The description would be used by test engines for tracking and reporting purposes. 7616 */ 7617 public String getDescription() { 7618 return this.description == null ? null : this.description.getValue(); 7619 } 7620 7621 /** 7622 * @param value The description would be used by test engines for tracking and reporting purposes. 7623 */ 7624 public SetupActionOperationComponent setDescription(String value) { 7625 if (Utilities.noString(value)) 7626 this.description = null; 7627 else { 7628 if (this.description == null) 7629 this.description = new StringType(); 7630 this.description.setValue(value); 7631 } 7632 return this; 7633 } 7634 7635 /** 7636 * @return {@link #accept} (The mime-type to use for RESTful operation in the 'Accept' header.). This is the underlying object with id, value and extensions. The accessor "getAccept" gives direct access to the value 7637 */ 7638 public CodeType getAcceptElement() { 7639 if (this.accept == null) 7640 if (Configuration.errorOnAutoCreate()) 7641 throw new Error("Attempt to auto-create SetupActionOperationComponent.accept"); 7642 else if (Configuration.doAutoCreate()) 7643 this.accept = new CodeType(); // bb 7644 return this.accept; 7645 } 7646 7647 public boolean hasAcceptElement() { 7648 return this.accept != null && !this.accept.isEmpty(); 7649 } 7650 7651 public boolean hasAccept() { 7652 return this.accept != null && !this.accept.isEmpty(); 7653 } 7654 7655 /** 7656 * @param value {@link #accept} (The mime-type to use for RESTful operation in the 'Accept' header.). This is the underlying object with id, value and extensions. The accessor "getAccept" gives direct access to the value 7657 */ 7658 public SetupActionOperationComponent setAcceptElement(CodeType value) { 7659 this.accept = value; 7660 return this; 7661 } 7662 7663 /** 7664 * @return The mime-type to use for RESTful operation in the 'Accept' header. 7665 */ 7666 public String getAccept() { 7667 return this.accept == null ? null : this.accept.getValue(); 7668 } 7669 7670 /** 7671 * @param value The mime-type to use for RESTful operation in the 'Accept' header. 7672 */ 7673 public SetupActionOperationComponent setAccept(String value) { 7674 if (Utilities.noString(value)) 7675 this.accept = null; 7676 else { 7677 if (this.accept == null) 7678 this.accept = new CodeType(); 7679 this.accept.setValue(value); 7680 } 7681 return this; 7682 } 7683 7684 /** 7685 * @return {@link #contentType} (The mime-type to use for RESTful operation in the 'Content-Type' header.). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value 7686 */ 7687 public CodeType getContentTypeElement() { 7688 if (this.contentType == null) 7689 if (Configuration.errorOnAutoCreate()) 7690 throw new Error("Attempt to auto-create SetupActionOperationComponent.contentType"); 7691 else if (Configuration.doAutoCreate()) 7692 this.contentType = new CodeType(); // bb 7693 return this.contentType; 7694 } 7695 7696 public boolean hasContentTypeElement() { 7697 return this.contentType != null && !this.contentType.isEmpty(); 7698 } 7699 7700 public boolean hasContentType() { 7701 return this.contentType != null && !this.contentType.isEmpty(); 7702 } 7703 7704 /** 7705 * @param value {@link #contentType} (The mime-type to use for RESTful operation in the 'Content-Type' header.). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value 7706 */ 7707 public SetupActionOperationComponent setContentTypeElement(CodeType value) { 7708 this.contentType = value; 7709 return this; 7710 } 7711 7712 /** 7713 * @return The mime-type to use for RESTful operation in the 'Content-Type' header. 7714 */ 7715 public String getContentType() { 7716 return this.contentType == null ? null : this.contentType.getValue(); 7717 } 7718 7719 /** 7720 * @param value The mime-type to use for RESTful operation in the 'Content-Type' header. 7721 */ 7722 public SetupActionOperationComponent setContentType(String value) { 7723 if (Utilities.noString(value)) 7724 this.contentType = null; 7725 else { 7726 if (this.contentType == null) 7727 this.contentType = new CodeType(); 7728 this.contentType.setValue(value); 7729 } 7730 return this; 7731 } 7732 7733 /** 7734 * @return {@link #destination} (The server where the request message is destined for. Must be one of the server numbers listed in TestScript.destination section.). This is the underlying object with id, value and extensions. The accessor "getDestination" gives direct access to the value 7735 */ 7736 public IntegerType getDestinationElement() { 7737 if (this.destination == null) 7738 if (Configuration.errorOnAutoCreate()) 7739 throw new Error("Attempt to auto-create SetupActionOperationComponent.destination"); 7740 else if (Configuration.doAutoCreate()) 7741 this.destination = new IntegerType(); // bb 7742 return this.destination; 7743 } 7744 7745 public boolean hasDestinationElement() { 7746 return this.destination != null && !this.destination.isEmpty(); 7747 } 7748 7749 public boolean hasDestination() { 7750 return this.destination != null && !this.destination.isEmpty(); 7751 } 7752 7753 /** 7754 * @param value {@link #destination} (The server where the request message is destined for. Must be one of the server numbers listed in TestScript.destination section.). This is the underlying object with id, value and extensions. The accessor "getDestination" gives direct access to the value 7755 */ 7756 public SetupActionOperationComponent setDestinationElement(IntegerType value) { 7757 this.destination = value; 7758 return this; 7759 } 7760 7761 /** 7762 * @return The server where the request message is destined for. Must be one of the server numbers listed in TestScript.destination section. 7763 */ 7764 public int getDestination() { 7765 return this.destination == null || this.destination.isEmpty() ? 0 : this.destination.getValue(); 7766 } 7767 7768 /** 7769 * @param value The server where the request message is destined for. Must be one of the server numbers listed in TestScript.destination section. 7770 */ 7771 public SetupActionOperationComponent setDestination(int value) { 7772 if (this.destination == null) 7773 this.destination = new IntegerType(); 7774 this.destination.setValue(value); 7775 return this; 7776 } 7777 7778 /** 7779 * @return {@link #encodeRequestUrl} (Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths.). This is the underlying object with id, value and extensions. The accessor "getEncodeRequestUrl" gives direct access to the value 7780 */ 7781 public BooleanType getEncodeRequestUrlElement() { 7782 if (this.encodeRequestUrl == null) 7783 if (Configuration.errorOnAutoCreate()) 7784 throw new Error("Attempt to auto-create SetupActionOperationComponent.encodeRequestUrl"); 7785 else if (Configuration.doAutoCreate()) 7786 this.encodeRequestUrl = new BooleanType(); // bb 7787 return this.encodeRequestUrl; 7788 } 7789 7790 public boolean hasEncodeRequestUrlElement() { 7791 return this.encodeRequestUrl != null && !this.encodeRequestUrl.isEmpty(); 7792 } 7793 7794 public boolean hasEncodeRequestUrl() { 7795 return this.encodeRequestUrl != null && !this.encodeRequestUrl.isEmpty(); 7796 } 7797 7798 /** 7799 * @param value {@link #encodeRequestUrl} (Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths.). This is the underlying object with id, value and extensions. The accessor "getEncodeRequestUrl" gives direct access to the value 7800 */ 7801 public SetupActionOperationComponent setEncodeRequestUrlElement(BooleanType value) { 7802 this.encodeRequestUrl = value; 7803 return this; 7804 } 7805 7806 /** 7807 * @return Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths. 7808 */ 7809 public boolean getEncodeRequestUrl() { 7810 return this.encodeRequestUrl == null || this.encodeRequestUrl.isEmpty() ? false : this.encodeRequestUrl.getValue(); 7811 } 7812 7813 /** 7814 * @param value Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths. 7815 */ 7816 public SetupActionOperationComponent setEncodeRequestUrl(boolean value) { 7817 if (this.encodeRequestUrl == null) 7818 this.encodeRequestUrl = new BooleanType(); 7819 this.encodeRequestUrl.setValue(value); 7820 return this; 7821 } 7822 7823 /** 7824 * @return {@link #method} (The HTTP method the test engine MUST use for this operation regardless of any other operation details.). This is the underlying object with id, value and extensions. The accessor "getMethod" gives direct access to the value 7825 */ 7826 public Enumeration<TestScriptRequestMethodCode> getMethodElement() { 7827 if (this.method == null) 7828 if (Configuration.errorOnAutoCreate()) 7829 throw new Error("Attempt to auto-create SetupActionOperationComponent.method"); 7830 else if (Configuration.doAutoCreate()) 7831 this.method = new Enumeration<TestScriptRequestMethodCode>(new TestScriptRequestMethodCodeEnumFactory()); // bb 7832 return this.method; 7833 } 7834 7835 public boolean hasMethodElement() { 7836 return this.method != null && !this.method.isEmpty(); 7837 } 7838 7839 public boolean hasMethod() { 7840 return this.method != null && !this.method.isEmpty(); 7841 } 7842 7843 /** 7844 * @param value {@link #method} (The HTTP method the test engine MUST use for this operation regardless of any other operation details.). This is the underlying object with id, value and extensions. The accessor "getMethod" gives direct access to the value 7845 */ 7846 public SetupActionOperationComponent setMethodElement(Enumeration<TestScriptRequestMethodCode> value) { 7847 this.method = value; 7848 return this; 7849 } 7850 7851 /** 7852 * @return The HTTP method the test engine MUST use for this operation regardless of any other operation details. 7853 */ 7854 public TestScriptRequestMethodCode getMethod() { 7855 return this.method == null ? null : this.method.getValue(); 7856 } 7857 7858 /** 7859 * @param value The HTTP method the test engine MUST use for this operation regardless of any other operation details. 7860 */ 7861 public SetupActionOperationComponent setMethod(TestScriptRequestMethodCode value) { 7862 if (value == null) 7863 this.method = null; 7864 else { 7865 if (this.method == null) 7866 this.method = new Enumeration<TestScriptRequestMethodCode>(new TestScriptRequestMethodCodeEnumFactory()); 7867 this.method.setValue(value); 7868 } 7869 return this; 7870 } 7871 7872 /** 7873 * @return {@link #origin} (The server where the request message originates from. Must be one of the server numbers listed in TestScript.origin section.). This is the underlying object with id, value and extensions. The accessor "getOrigin" gives direct access to the value 7874 */ 7875 public IntegerType getOriginElement() { 7876 if (this.origin == null) 7877 if (Configuration.errorOnAutoCreate()) 7878 throw new Error("Attempt to auto-create SetupActionOperationComponent.origin"); 7879 else if (Configuration.doAutoCreate()) 7880 this.origin = new IntegerType(); // bb 7881 return this.origin; 7882 } 7883 7884 public boolean hasOriginElement() { 7885 return this.origin != null && !this.origin.isEmpty(); 7886 } 7887 7888 public boolean hasOrigin() { 7889 return this.origin != null && !this.origin.isEmpty(); 7890 } 7891 7892 /** 7893 * @param value {@link #origin} (The server where the request message originates from. Must be one of the server numbers listed in TestScript.origin section.). This is the underlying object with id, value and extensions. The accessor "getOrigin" gives direct access to the value 7894 */ 7895 public SetupActionOperationComponent setOriginElement(IntegerType value) { 7896 this.origin = value; 7897 return this; 7898 } 7899 7900 /** 7901 * @return The server where the request message originates from. Must be one of the server numbers listed in TestScript.origin section. 7902 */ 7903 public int getOrigin() { 7904 return this.origin == null || this.origin.isEmpty() ? 0 : this.origin.getValue(); 7905 } 7906 7907 /** 7908 * @param value The server where the request message originates from. Must be one of the server numbers listed in TestScript.origin section. 7909 */ 7910 public SetupActionOperationComponent setOrigin(int value) { 7911 if (this.origin == null) 7912 this.origin = new IntegerType(); 7913 this.origin.setValue(value); 7914 return this; 7915 } 7916 7917 /** 7918 * @return {@link #params} (Path plus parameters after [type]. Used to set parts of the request URL explicitly.). This is the underlying object with id, value and extensions. The accessor "getParams" gives direct access to the value 7919 */ 7920 public StringType getParamsElement() { 7921 if (this.params == null) 7922 if (Configuration.errorOnAutoCreate()) 7923 throw new Error("Attempt to auto-create SetupActionOperationComponent.params"); 7924 else if (Configuration.doAutoCreate()) 7925 this.params = new StringType(); // bb 7926 return this.params; 7927 } 7928 7929 public boolean hasParamsElement() { 7930 return this.params != null && !this.params.isEmpty(); 7931 } 7932 7933 public boolean hasParams() { 7934 return this.params != null && !this.params.isEmpty(); 7935 } 7936 7937 /** 7938 * @param value {@link #params} (Path plus parameters after [type]. Used to set parts of the request URL explicitly.). This is the underlying object with id, value and extensions. The accessor "getParams" gives direct access to the value 7939 */ 7940 public SetupActionOperationComponent setParamsElement(StringType value) { 7941 this.params = value; 7942 return this; 7943 } 7944 7945 /** 7946 * @return Path plus parameters after [type]. Used to set parts of the request URL explicitly. 7947 */ 7948 public String getParams() { 7949 return this.params == null ? null : this.params.getValue(); 7950 } 7951 7952 /** 7953 * @param value Path plus parameters after [type]. Used to set parts of the request URL explicitly. 7954 */ 7955 public SetupActionOperationComponent setParams(String value) { 7956 if (Utilities.noString(value)) 7957 this.params = null; 7958 else { 7959 if (this.params == null) 7960 this.params = new StringType(); 7961 this.params.setValue(value); 7962 } 7963 return this; 7964 } 7965 7966 /** 7967 * @return {@link #requestHeader} (Header elements would be used to set HTTP headers.) 7968 */ 7969 public List<SetupActionOperationRequestHeaderComponent> getRequestHeader() { 7970 if (this.requestHeader == null) 7971 this.requestHeader = new ArrayList<SetupActionOperationRequestHeaderComponent>(); 7972 return this.requestHeader; 7973 } 7974 7975 /** 7976 * @return Returns a reference to <code>this</code> for easy method chaining 7977 */ 7978 public SetupActionOperationComponent setRequestHeader(List<SetupActionOperationRequestHeaderComponent> theRequestHeader) { 7979 this.requestHeader = theRequestHeader; 7980 return this; 7981 } 7982 7983 public boolean hasRequestHeader() { 7984 if (this.requestHeader == null) 7985 return false; 7986 for (SetupActionOperationRequestHeaderComponent item : this.requestHeader) 7987 if (!item.isEmpty()) 7988 return true; 7989 return false; 7990 } 7991 7992 public SetupActionOperationRequestHeaderComponent addRequestHeader() { //3 7993 SetupActionOperationRequestHeaderComponent t = new SetupActionOperationRequestHeaderComponent(); 7994 if (this.requestHeader == null) 7995 this.requestHeader = new ArrayList<SetupActionOperationRequestHeaderComponent>(); 7996 this.requestHeader.add(t); 7997 return t; 7998 } 7999 8000 public SetupActionOperationComponent addRequestHeader(SetupActionOperationRequestHeaderComponent t) { //3 8001 if (t == null) 8002 return this; 8003 if (this.requestHeader == null) 8004 this.requestHeader = new ArrayList<SetupActionOperationRequestHeaderComponent>(); 8005 this.requestHeader.add(t); 8006 return this; 8007 } 8008 8009 /** 8010 * @return The first repetition of repeating field {@link #requestHeader}, creating it if it does not already exist {3} 8011 */ 8012 public SetupActionOperationRequestHeaderComponent getRequestHeaderFirstRep() { 8013 if (getRequestHeader().isEmpty()) { 8014 addRequestHeader(); 8015 } 8016 return getRequestHeader().get(0); 8017 } 8018 8019 /** 8020 * @return {@link #requestId} (The fixture id (maybe new) to map to the request.). This is the underlying object with id, value and extensions. The accessor "getRequestId" gives direct access to the value 8021 */ 8022 public IdType getRequestIdElement() { 8023 if (this.requestId == null) 8024 if (Configuration.errorOnAutoCreate()) 8025 throw new Error("Attempt to auto-create SetupActionOperationComponent.requestId"); 8026 else if (Configuration.doAutoCreate()) 8027 this.requestId = new IdType(); // bb 8028 return this.requestId; 8029 } 8030 8031 public boolean hasRequestIdElement() { 8032 return this.requestId != null && !this.requestId.isEmpty(); 8033 } 8034 8035 public boolean hasRequestId() { 8036 return this.requestId != null && !this.requestId.isEmpty(); 8037 } 8038 8039 /** 8040 * @param value {@link #requestId} (The fixture id (maybe new) to map to the request.). This is the underlying object with id, value and extensions. The accessor "getRequestId" gives direct access to the value 8041 */ 8042 public SetupActionOperationComponent setRequestIdElement(IdType value) { 8043 this.requestId = value; 8044 return this; 8045 } 8046 8047 /** 8048 * @return The fixture id (maybe new) to map to the request. 8049 */ 8050 public String getRequestId() { 8051 return this.requestId == null ? null : this.requestId.getValue(); 8052 } 8053 8054 /** 8055 * @param value The fixture id (maybe new) to map to the request. 8056 */ 8057 public SetupActionOperationComponent setRequestId(String value) { 8058 if (Utilities.noString(value)) 8059 this.requestId = null; 8060 else { 8061 if (this.requestId == null) 8062 this.requestId = new IdType(); 8063 this.requestId.setValue(value); 8064 } 8065 return this; 8066 } 8067 8068 /** 8069 * @return {@link #responseId} (The fixture id (maybe new) to map to the response.). This is the underlying object with id, value and extensions. The accessor "getResponseId" gives direct access to the value 8070 */ 8071 public IdType getResponseIdElement() { 8072 if (this.responseId == null) 8073 if (Configuration.errorOnAutoCreate()) 8074 throw new Error("Attempt to auto-create SetupActionOperationComponent.responseId"); 8075 else if (Configuration.doAutoCreate()) 8076 this.responseId = new IdType(); // bb 8077 return this.responseId; 8078 } 8079 8080 public boolean hasResponseIdElement() { 8081 return this.responseId != null && !this.responseId.isEmpty(); 8082 } 8083 8084 public boolean hasResponseId() { 8085 return this.responseId != null && !this.responseId.isEmpty(); 8086 } 8087 8088 /** 8089 * @param value {@link #responseId} (The fixture id (maybe new) to map to the response.). This is the underlying object with id, value and extensions. The accessor "getResponseId" gives direct access to the value 8090 */ 8091 public SetupActionOperationComponent setResponseIdElement(IdType value) { 8092 this.responseId = value; 8093 return this; 8094 } 8095 8096 /** 8097 * @return The fixture id (maybe new) to map to the response. 8098 */ 8099 public String getResponseId() { 8100 return this.responseId == null ? null : this.responseId.getValue(); 8101 } 8102 8103 /** 8104 * @param value The fixture id (maybe new) to map to the response. 8105 */ 8106 public SetupActionOperationComponent setResponseId(String value) { 8107 if (Utilities.noString(value)) 8108 this.responseId = null; 8109 else { 8110 if (this.responseId == null) 8111 this.responseId = new IdType(); 8112 this.responseId.setValue(value); 8113 } 8114 return this; 8115 } 8116 8117 /** 8118 * @return {@link #sourceId} (The id of the fixture used as the body of a PUT or POST request.). This is the underlying object with id, value and extensions. The accessor "getSourceId" gives direct access to the value 8119 */ 8120 public IdType getSourceIdElement() { 8121 if (this.sourceId == null) 8122 if (Configuration.errorOnAutoCreate()) 8123 throw new Error("Attempt to auto-create SetupActionOperationComponent.sourceId"); 8124 else if (Configuration.doAutoCreate()) 8125 this.sourceId = new IdType(); // bb 8126 return this.sourceId; 8127 } 8128 8129 public boolean hasSourceIdElement() { 8130 return this.sourceId != null && !this.sourceId.isEmpty(); 8131 } 8132 8133 public boolean hasSourceId() { 8134 return this.sourceId != null && !this.sourceId.isEmpty(); 8135 } 8136 8137 /** 8138 * @param value {@link #sourceId} (The id of the fixture used as the body of a PUT or POST request.). This is the underlying object with id, value and extensions. The accessor "getSourceId" gives direct access to the value 8139 */ 8140 public SetupActionOperationComponent setSourceIdElement(IdType value) { 8141 this.sourceId = value; 8142 return this; 8143 } 8144 8145 /** 8146 * @return The id of the fixture used as the body of a PUT or POST request. 8147 */ 8148 public String getSourceId() { 8149 return this.sourceId == null ? null : this.sourceId.getValue(); 8150 } 8151 8152 /** 8153 * @param value The id of the fixture used as the body of a PUT or POST request. 8154 */ 8155 public SetupActionOperationComponent setSourceId(String value) { 8156 if (Utilities.noString(value)) 8157 this.sourceId = null; 8158 else { 8159 if (this.sourceId == null) 8160 this.sourceId = new IdType(); 8161 this.sourceId.setValue(value); 8162 } 8163 return this; 8164 } 8165 8166 /** 8167 * @return {@link #targetId} (Id of fixture used for extracting the [id], [type], and [vid] for GET requests.). This is the underlying object with id, value and extensions. The accessor "getTargetId" gives direct access to the value 8168 */ 8169 public IdType getTargetIdElement() { 8170 if (this.targetId == null) 8171 if (Configuration.errorOnAutoCreate()) 8172 throw new Error("Attempt to auto-create SetupActionOperationComponent.targetId"); 8173 else if (Configuration.doAutoCreate()) 8174 this.targetId = new IdType(); // bb 8175 return this.targetId; 8176 } 8177 8178 public boolean hasTargetIdElement() { 8179 return this.targetId != null && !this.targetId.isEmpty(); 8180 } 8181 8182 public boolean hasTargetId() { 8183 return this.targetId != null && !this.targetId.isEmpty(); 8184 } 8185 8186 /** 8187 * @param value {@link #targetId} (Id of fixture used for extracting the [id], [type], and [vid] for GET requests.). This is the underlying object with id, value and extensions. The accessor "getTargetId" gives direct access to the value 8188 */ 8189 public SetupActionOperationComponent setTargetIdElement(IdType value) { 8190 this.targetId = value; 8191 return this; 8192 } 8193 8194 /** 8195 * @return Id of fixture used for extracting the [id], [type], and [vid] for GET requests. 8196 */ 8197 public String getTargetId() { 8198 return this.targetId == null ? null : this.targetId.getValue(); 8199 } 8200 8201 /** 8202 * @param value Id of fixture used for extracting the [id], [type], and [vid] for GET requests. 8203 */ 8204 public SetupActionOperationComponent setTargetId(String value) { 8205 if (Utilities.noString(value)) 8206 this.targetId = null; 8207 else { 8208 if (this.targetId == null) 8209 this.targetId = new IdType(); 8210 this.targetId.setValue(value); 8211 } 8212 return this; 8213 } 8214 8215 /** 8216 * @return {@link #url} (Complete request URL.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 8217 */ 8218 public StringType getUrlElement() { 8219 if (this.url == null) 8220 if (Configuration.errorOnAutoCreate()) 8221 throw new Error("Attempt to auto-create SetupActionOperationComponent.url"); 8222 else if (Configuration.doAutoCreate()) 8223 this.url = new StringType(); // bb 8224 return this.url; 8225 } 8226 8227 public boolean hasUrlElement() { 8228 return this.url != null && !this.url.isEmpty(); 8229 } 8230 8231 public boolean hasUrl() { 8232 return this.url != null && !this.url.isEmpty(); 8233 } 8234 8235 /** 8236 * @param value {@link #url} (Complete request URL.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 8237 */ 8238 public SetupActionOperationComponent setUrlElement(StringType value) { 8239 this.url = value; 8240 return this; 8241 } 8242 8243 /** 8244 * @return Complete request URL. 8245 */ 8246 public String getUrl() { 8247 return this.url == null ? null : this.url.getValue(); 8248 } 8249 8250 /** 8251 * @param value Complete request URL. 8252 */ 8253 public SetupActionOperationComponent setUrl(String value) { 8254 if (Utilities.noString(value)) 8255 this.url = null; 8256 else { 8257 if (this.url == null) 8258 this.url = new StringType(); 8259 this.url.setValue(value); 8260 } 8261 return this; 8262 } 8263 8264 protected void listChildren(List<Property> children) { 8265 super.listChildren(children); 8266 children.add(new Property("type", "Coding", "Server interaction or operation type.", 0, 1, type)); 8267 children.add(new Property("resource", "code", "The type of the resource. See http://build.fhir.org/resourcelist.html.", 0, 1, resource)); 8268 children.add(new Property("label", "string", "The label would be used for tracking/logging purposes by test engines.", 0, 1, label)); 8269 children.add(new Property("description", "string", "The description would be used by test engines for tracking and reporting purposes.", 0, 1, description)); 8270 children.add(new Property("accept", "code", "The mime-type to use for RESTful operation in the 'Accept' header.", 0, 1, accept)); 8271 children.add(new Property("contentType", "code", "The mime-type to use for RESTful operation in the 'Content-Type' header.", 0, 1, contentType)); 8272 children.add(new Property("destination", "integer", "The server where the request message is destined for. Must be one of the server numbers listed in TestScript.destination section.", 0, 1, destination)); 8273 children.add(new Property("encodeRequestUrl", "boolean", "Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths.", 0, 1, encodeRequestUrl)); 8274 children.add(new Property("method", "code", "The HTTP method the test engine MUST use for this operation regardless of any other operation details.", 0, 1, method)); 8275 children.add(new Property("origin", "integer", "The server where the request message originates from. Must be one of the server numbers listed in TestScript.origin section.", 0, 1, origin)); 8276 children.add(new Property("params", "string", "Path plus parameters after [type]. Used to set parts of the request URL explicitly.", 0, 1, params)); 8277 children.add(new Property("requestHeader", "", "Header elements would be used to set HTTP headers.", 0, java.lang.Integer.MAX_VALUE, requestHeader)); 8278 children.add(new Property("requestId", "id", "The fixture id (maybe new) to map to the request.", 0, 1, requestId)); 8279 children.add(new Property("responseId", "id", "The fixture id (maybe new) to map to the response.", 0, 1, responseId)); 8280 children.add(new Property("sourceId", "id", "The id of the fixture used as the body of a PUT or POST request.", 0, 1, sourceId)); 8281 children.add(new Property("targetId", "id", "Id of fixture used for extracting the [id], [type], and [vid] for GET requests.", 0, 1, targetId)); 8282 children.add(new Property("url", "string", "Complete request URL.", 0, 1, url)); 8283 } 8284 8285 @Override 8286 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 8287 switch (_hash) { 8288 case 3575610: /*type*/ return new Property("type", "Coding", "Server interaction or operation type.", 0, 1, type); 8289 case -341064690: /*resource*/ return new Property("resource", "code", "The type of the resource. See http://build.fhir.org/resourcelist.html.", 0, 1, resource); 8290 case 102727412: /*label*/ return new Property("label", "string", "The label would be used for tracking/logging purposes by test engines.", 0, 1, label); 8291 case -1724546052: /*description*/ return new Property("description", "string", "The description would be used by test engines for tracking and reporting purposes.", 0, 1, description); 8292 case -1423461112: /*accept*/ return new Property("accept", "code", "The mime-type to use for RESTful operation in the 'Accept' header.", 0, 1, accept); 8293 case -389131437: /*contentType*/ return new Property("contentType", "code", "The mime-type to use for RESTful operation in the 'Content-Type' header.", 0, 1, contentType); 8294 case -1429847026: /*destination*/ return new Property("destination", "integer", "The server where the request message is destined for. Must be one of the server numbers listed in TestScript.destination section.", 0, 1, destination); 8295 case -1760554218: /*encodeRequestUrl*/ return new Property("encodeRequestUrl", "boolean", "Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths.", 0, 1, encodeRequestUrl); 8296 case -1077554975: /*method*/ return new Property("method", "code", "The HTTP method the test engine MUST use for this operation regardless of any other operation details.", 0, 1, method); 8297 case -1008619738: /*origin*/ return new Property("origin", "integer", "The server where the request message originates from. Must be one of the server numbers listed in TestScript.origin section.", 0, 1, origin); 8298 case -995427962: /*params*/ return new Property("params", "string", "Path plus parameters after [type]. Used to set parts of the request URL explicitly.", 0, 1, params); 8299 case 1074158076: /*requestHeader*/ return new Property("requestHeader", "", "Header elements would be used to set HTTP headers.", 0, java.lang.Integer.MAX_VALUE, requestHeader); 8300 case 693933066: /*requestId*/ return new Property("requestId", "id", "The fixture id (maybe new) to map to the request.", 0, 1, requestId); 8301 case -633138884: /*responseId*/ return new Property("responseId", "id", "The fixture id (maybe new) to map to the response.", 0, 1, responseId); 8302 case 1746327190: /*sourceId*/ return new Property("sourceId", "id", "The id of the fixture used as the body of a PUT or POST request.", 0, 1, sourceId); 8303 case -441951604: /*targetId*/ return new Property("targetId", "id", "Id of fixture used for extracting the [id], [type], and [vid] for GET requests.", 0, 1, targetId); 8304 case 116079: /*url*/ return new Property("url", "string", "Complete request URL.", 0, 1, url); 8305 default: return super.getNamedProperty(_hash, _name, _checkValid); 8306 } 8307 8308 } 8309 8310 @Override 8311 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 8312 switch (hash) { 8313 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Coding 8314 case -341064690: /*resource*/ return this.resource == null ? new Base[0] : new Base[] {this.resource}; // Enumeration<FHIRDefinedType> 8315 case 102727412: /*label*/ return this.label == null ? new Base[0] : new Base[] {this.label}; // StringType 8316 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 8317 case -1423461112: /*accept*/ return this.accept == null ? new Base[0] : new Base[] {this.accept}; // CodeType 8318 case -389131437: /*contentType*/ return this.contentType == null ? new Base[0] : new Base[] {this.contentType}; // CodeType 8319 case -1429847026: /*destination*/ return this.destination == null ? new Base[0] : new Base[] {this.destination}; // IntegerType 8320 case -1760554218: /*encodeRequestUrl*/ return this.encodeRequestUrl == null ? new Base[0] : new Base[] {this.encodeRequestUrl}; // BooleanType 8321 case -1077554975: /*method*/ return this.method == null ? new Base[0] : new Base[] {this.method}; // Enumeration<TestScriptRequestMethodCode> 8322 case -1008619738: /*origin*/ return this.origin == null ? new Base[0] : new Base[] {this.origin}; // IntegerType 8323 case -995427962: /*params*/ return this.params == null ? new Base[0] : new Base[] {this.params}; // StringType 8324 case 1074158076: /*requestHeader*/ return this.requestHeader == null ? new Base[0] : this.requestHeader.toArray(new Base[this.requestHeader.size()]); // SetupActionOperationRequestHeaderComponent 8325 case 693933066: /*requestId*/ return this.requestId == null ? new Base[0] : new Base[] {this.requestId}; // IdType 8326 case -633138884: /*responseId*/ return this.responseId == null ? new Base[0] : new Base[] {this.responseId}; // IdType 8327 case 1746327190: /*sourceId*/ return this.sourceId == null ? new Base[0] : new Base[] {this.sourceId}; // IdType 8328 case -441951604: /*targetId*/ return this.targetId == null ? new Base[0] : new Base[] {this.targetId}; // IdType 8329 case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // StringType 8330 default: return super.getProperty(hash, name, checkValid); 8331 } 8332 8333 } 8334 8335 @Override 8336 public Base setProperty(int hash, String name, Base value) throws FHIRException { 8337 switch (hash) { 8338 case 3575610: // type 8339 this.type = TypeConvertor.castToCoding(value); // Coding 8340 return value; 8341 case -341064690: // resource 8342 value = new FHIRDefinedTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); 8343 this.resource = (Enumeration) value; // Enumeration<FHIRDefinedType> 8344 return value; 8345 case 102727412: // label 8346 this.label = TypeConvertor.castToString(value); // StringType 8347 return value; 8348 case -1724546052: // description 8349 this.description = TypeConvertor.castToString(value); // StringType 8350 return value; 8351 case -1423461112: // accept 8352 this.accept = TypeConvertor.castToCode(value); // CodeType 8353 return value; 8354 case -389131437: // contentType 8355 this.contentType = TypeConvertor.castToCode(value); // CodeType 8356 return value; 8357 case -1429847026: // destination 8358 this.destination = TypeConvertor.castToInteger(value); // IntegerType 8359 return value; 8360 case -1760554218: // encodeRequestUrl 8361 this.encodeRequestUrl = TypeConvertor.castToBoolean(value); // BooleanType 8362 return value; 8363 case -1077554975: // method 8364 value = new TestScriptRequestMethodCodeEnumFactory().fromType(TypeConvertor.castToCode(value)); 8365 this.method = (Enumeration) value; // Enumeration<TestScriptRequestMethodCode> 8366 return value; 8367 case -1008619738: // origin 8368 this.origin = TypeConvertor.castToInteger(value); // IntegerType 8369 return value; 8370 case -995427962: // params 8371 this.params = TypeConvertor.castToString(value); // StringType 8372 return value; 8373 case 1074158076: // requestHeader 8374 this.getRequestHeader().add((SetupActionOperationRequestHeaderComponent) value); // SetupActionOperationRequestHeaderComponent 8375 return value; 8376 case 693933066: // requestId 8377 this.requestId = TypeConvertor.castToId(value); // IdType 8378 return value; 8379 case -633138884: // responseId 8380 this.responseId = TypeConvertor.castToId(value); // IdType 8381 return value; 8382 case 1746327190: // sourceId 8383 this.sourceId = TypeConvertor.castToId(value); // IdType 8384 return value; 8385 case -441951604: // targetId 8386 this.targetId = TypeConvertor.castToId(value); // IdType 8387 return value; 8388 case 116079: // url 8389 this.url = TypeConvertor.castToString(value); // StringType 8390 return value; 8391 default: return super.setProperty(hash, name, value); 8392 } 8393 8394 } 8395 8396 @Override 8397 public Base setProperty(String name, Base value) throws FHIRException { 8398 if (name.equals("type")) { 8399 this.type = TypeConvertor.castToCoding(value); // Coding 8400 } else if (name.equals("resource")) { 8401 value = new FHIRDefinedTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); 8402 this.resource = (Enumeration) value; // Enumeration<FHIRDefinedType> 8403 } else if (name.equals("label")) { 8404 this.label = TypeConvertor.castToString(value); // StringType 8405 } else if (name.equals("description")) { 8406 this.description = TypeConvertor.castToString(value); // StringType 8407 } else if (name.equals("accept")) { 8408 this.accept = TypeConvertor.castToCode(value); // CodeType 8409 } else if (name.equals("contentType")) { 8410 this.contentType = TypeConvertor.castToCode(value); // CodeType 8411 } else if (name.equals("destination")) { 8412 this.destination = TypeConvertor.castToInteger(value); // IntegerType 8413 } else if (name.equals("encodeRequestUrl")) { 8414 this.encodeRequestUrl = TypeConvertor.castToBoolean(value); // BooleanType 8415 } else if (name.equals("method")) { 8416 value = new TestScriptRequestMethodCodeEnumFactory().fromType(TypeConvertor.castToCode(value)); 8417 this.method = (Enumeration) value; // Enumeration<TestScriptRequestMethodCode> 8418 } else if (name.equals("origin")) { 8419 this.origin = TypeConvertor.castToInteger(value); // IntegerType 8420 } else if (name.equals("params")) { 8421 this.params = TypeConvertor.castToString(value); // StringType 8422 } else if (name.equals("requestHeader")) { 8423 this.getRequestHeader().add((SetupActionOperationRequestHeaderComponent) value); 8424 } else if (name.equals("requestId")) { 8425 this.requestId = TypeConvertor.castToId(value); // IdType 8426 } else if (name.equals("responseId")) { 8427 this.responseId = TypeConvertor.castToId(value); // IdType 8428 } else if (name.equals("sourceId")) { 8429 this.sourceId = TypeConvertor.castToId(value); // IdType 8430 } else if (name.equals("targetId")) { 8431 this.targetId = TypeConvertor.castToId(value); // IdType 8432 } else if (name.equals("url")) { 8433 this.url = TypeConvertor.castToString(value); // StringType 8434 } else 8435 return super.setProperty(name, value); 8436 return value; 8437 } 8438 8439 @Override 8440 public Base makeProperty(int hash, String name) throws FHIRException { 8441 switch (hash) { 8442 case 3575610: return getType(); 8443 case -341064690: return getResourceElement(); 8444 case 102727412: return getLabelElement(); 8445 case -1724546052: return getDescriptionElement(); 8446 case -1423461112: return getAcceptElement(); 8447 case -389131437: return getContentTypeElement(); 8448 case -1429847026: return getDestinationElement(); 8449 case -1760554218: return getEncodeRequestUrlElement(); 8450 case -1077554975: return getMethodElement(); 8451 case -1008619738: return getOriginElement(); 8452 case -995427962: return getParamsElement(); 8453 case 1074158076: return addRequestHeader(); 8454 case 693933066: return getRequestIdElement(); 8455 case -633138884: return getResponseIdElement(); 8456 case 1746327190: return getSourceIdElement(); 8457 case -441951604: return getTargetIdElement(); 8458 case 116079: return getUrlElement(); 8459 default: return super.makeProperty(hash, name); 8460 } 8461 8462 } 8463 8464 @Override 8465 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 8466 switch (hash) { 8467 case 3575610: /*type*/ return new String[] {"Coding"}; 8468 case -341064690: /*resource*/ return new String[] {"code"}; 8469 case 102727412: /*label*/ return new String[] {"string"}; 8470 case -1724546052: /*description*/ return new String[] {"string"}; 8471 case -1423461112: /*accept*/ return new String[] {"code"}; 8472 case -389131437: /*contentType*/ return new String[] {"code"}; 8473 case -1429847026: /*destination*/ return new String[] {"integer"}; 8474 case -1760554218: /*encodeRequestUrl*/ return new String[] {"boolean"}; 8475 case -1077554975: /*method*/ return new String[] {"code"}; 8476 case -1008619738: /*origin*/ return new String[] {"integer"}; 8477 case -995427962: /*params*/ return new String[] {"string"}; 8478 case 1074158076: /*requestHeader*/ return new String[] {}; 8479 case 693933066: /*requestId*/ return new String[] {"id"}; 8480 case -633138884: /*responseId*/ return new String[] {"id"}; 8481 case 1746327190: /*sourceId*/ return new String[] {"id"}; 8482 case -441951604: /*targetId*/ return new String[] {"id"}; 8483 case 116079: /*url*/ return new String[] {"string"}; 8484 default: return super.getTypesForProperty(hash, name); 8485 } 8486 8487 } 8488 8489 @Override 8490 public Base addChild(String name) throws FHIRException { 8491 if (name.equals("type")) { 8492 this.type = new Coding(); 8493 return this.type; 8494 } 8495 else if (name.equals("resource")) { 8496 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.resource"); 8497 } 8498 else if (name.equals("label")) { 8499 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.label"); 8500 } 8501 else if (name.equals("description")) { 8502 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.description"); 8503 } 8504 else if (name.equals("accept")) { 8505 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.accept"); 8506 } 8507 else if (name.equals("contentType")) { 8508 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.contentType"); 8509 } 8510 else if (name.equals("destination")) { 8511 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.destination"); 8512 } 8513 else if (name.equals("encodeRequestUrl")) { 8514 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.encodeRequestUrl"); 8515 } 8516 else if (name.equals("method")) { 8517 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.method"); 8518 } 8519 else if (name.equals("origin")) { 8520 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.origin"); 8521 } 8522 else if (name.equals("params")) { 8523 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.params"); 8524 } 8525 else if (name.equals("requestHeader")) { 8526 return addRequestHeader(); 8527 } 8528 else if (name.equals("requestId")) { 8529 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.requestId"); 8530 } 8531 else if (name.equals("responseId")) { 8532 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.responseId"); 8533 } 8534 else if (name.equals("sourceId")) { 8535 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.sourceId"); 8536 } 8537 else if (name.equals("targetId")) { 8538 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.targetId"); 8539 } 8540 else if (name.equals("url")) { 8541 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.url"); 8542 } 8543 else 8544 return super.addChild(name); 8545 } 8546 8547 public SetupActionOperationComponent copy() { 8548 SetupActionOperationComponent dst = new SetupActionOperationComponent(); 8549 copyValues(dst); 8550 return dst; 8551 } 8552 8553 public void copyValues(SetupActionOperationComponent dst) { 8554 super.copyValues(dst); 8555 dst.type = type == null ? null : type.copy(); 8556 dst.resource = resource == null ? null : resource.copy(); 8557 dst.label = label == null ? null : label.copy(); 8558 dst.description = description == null ? null : description.copy(); 8559 dst.accept = accept == null ? null : accept.copy(); 8560 dst.contentType = contentType == null ? null : contentType.copy(); 8561 dst.destination = destination == null ? null : destination.copy(); 8562 dst.encodeRequestUrl = encodeRequestUrl == null ? null : encodeRequestUrl.copy(); 8563 dst.method = method == null ? null : method.copy(); 8564 dst.origin = origin == null ? null : origin.copy(); 8565 dst.params = params == null ? null : params.copy(); 8566 if (requestHeader != null) { 8567 dst.requestHeader = new ArrayList<SetupActionOperationRequestHeaderComponent>(); 8568 for (SetupActionOperationRequestHeaderComponent i : requestHeader) 8569 dst.requestHeader.add(i.copy()); 8570 }; 8571 dst.requestId = requestId == null ? null : requestId.copy(); 8572 dst.responseId = responseId == null ? null : responseId.copy(); 8573 dst.sourceId = sourceId == null ? null : sourceId.copy(); 8574 dst.targetId = targetId == null ? null : targetId.copy(); 8575 dst.url = url == null ? null : url.copy(); 8576 } 8577 8578 @Override 8579 public boolean equalsDeep(Base other_) { 8580 if (!super.equalsDeep(other_)) 8581 return false; 8582 if (!(other_ instanceof SetupActionOperationComponent)) 8583 return false; 8584 SetupActionOperationComponent o = (SetupActionOperationComponent) other_; 8585 return compareDeep(type, o.type, true) && compareDeep(resource, o.resource, true) && compareDeep(label, o.label, true) 8586 && compareDeep(description, o.description, true) && compareDeep(accept, o.accept, true) && compareDeep(contentType, o.contentType, true) 8587 && compareDeep(destination, o.destination, true) && compareDeep(encodeRequestUrl, o.encodeRequestUrl, true) 8588 && compareDeep(method, o.method, true) && compareDeep(origin, o.origin, true) && compareDeep(params, o.params, true) 8589 && compareDeep(requestHeader, o.requestHeader, true) && compareDeep(requestId, o.requestId, true) 8590 && compareDeep(responseId, o.responseId, true) && compareDeep(sourceId, o.sourceId, true) && compareDeep(targetId, o.targetId, true) 8591 && compareDeep(url, o.url, true); 8592 } 8593 8594 @Override 8595 public boolean equalsShallow(Base other_) { 8596 if (!super.equalsShallow(other_)) 8597 return false; 8598 if (!(other_ instanceof SetupActionOperationComponent)) 8599 return false; 8600 SetupActionOperationComponent o = (SetupActionOperationComponent) other_; 8601 return compareValues(resource, o.resource, true) && compareValues(label, o.label, true) && compareValues(description, o.description, true) 8602 && compareValues(accept, o.accept, true) && compareValues(contentType, o.contentType, true) && compareValues(destination, o.destination, true) 8603 && compareValues(encodeRequestUrl, o.encodeRequestUrl, true) && compareValues(method, o.method, true) 8604 && compareValues(origin, o.origin, true) && compareValues(params, o.params, true) && compareValues(requestId, o.requestId, true) 8605 && compareValues(responseId, o.responseId, true) && compareValues(sourceId, o.sourceId, true) && compareValues(targetId, o.targetId, true) 8606 && compareValues(url, o.url, true); 8607 } 8608 8609 public boolean isEmpty() { 8610 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, resource, label, description 8611 , accept, contentType, destination, encodeRequestUrl, method, origin, params, requestHeader 8612 , requestId, responseId, sourceId, targetId, url); 8613 } 8614 8615 public String fhirType() { 8616 return "TestScript.setup.action.operation"; 8617 8618 } 8619 8620 } 8621 8622 @Block() 8623 public static class SetupActionOperationRequestHeaderComponent extends BackboneElement implements IBaseBackboneElement { 8624 /** 8625 * The HTTP header field e.g. "Accept". 8626 */ 8627 @Child(name = "field", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) 8628 @Description(shortDefinition="HTTP header field name", formalDefinition="The HTTP header field e.g. \"Accept\"." ) 8629 protected StringType field; 8630 8631 /** 8632 * The value of the header e.g. "application/fhir+xml". 8633 */ 8634 @Child(name = "value", type = {StringType.class}, order=2, min=1, max=1, modifier=false, summary=false) 8635 @Description(shortDefinition="HTTP headerfield value", formalDefinition="The value of the header e.g. \"application/fhir+xml\"." ) 8636 protected StringType value; 8637 8638 private static final long serialVersionUID = 274395337L; 8639 8640 /** 8641 * Constructor 8642 */ 8643 public SetupActionOperationRequestHeaderComponent() { 8644 super(); 8645 } 8646 8647 /** 8648 * Constructor 8649 */ 8650 public SetupActionOperationRequestHeaderComponent(String field, String value) { 8651 super(); 8652 this.setField(field); 8653 this.setValue(value); 8654 } 8655 8656 /** 8657 * @return {@link #field} (The HTTP header field e.g. "Accept".). This is the underlying object with id, value and extensions. The accessor "getField" gives direct access to the value 8658 */ 8659 public StringType getFieldElement() { 8660 if (this.field == null) 8661 if (Configuration.errorOnAutoCreate()) 8662 throw new Error("Attempt to auto-create SetupActionOperationRequestHeaderComponent.field"); 8663 else if (Configuration.doAutoCreate()) 8664 this.field = new StringType(); // bb 8665 return this.field; 8666 } 8667 8668 public boolean hasFieldElement() { 8669 return this.field != null && !this.field.isEmpty(); 8670 } 8671 8672 public boolean hasField() { 8673 return this.field != null && !this.field.isEmpty(); 8674 } 8675 8676 /** 8677 * @param value {@link #field} (The HTTP header field e.g. "Accept".). This is the underlying object with id, value and extensions. The accessor "getField" gives direct access to the value 8678 */ 8679 public SetupActionOperationRequestHeaderComponent setFieldElement(StringType value) { 8680 this.field = value; 8681 return this; 8682 } 8683 8684 /** 8685 * @return The HTTP header field e.g. "Accept". 8686 */ 8687 public String getField() { 8688 return this.field == null ? null : this.field.getValue(); 8689 } 8690 8691 /** 8692 * @param value The HTTP header field e.g. "Accept". 8693 */ 8694 public SetupActionOperationRequestHeaderComponent setField(String value) { 8695 if (this.field == null) 8696 this.field = new StringType(); 8697 this.field.setValue(value); 8698 return this; 8699 } 8700 8701 /** 8702 * @return {@link #value} (The value of the header e.g. "application/fhir+xml".). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value 8703 */ 8704 public StringType getValueElement() { 8705 if (this.value == null) 8706 if (Configuration.errorOnAutoCreate()) 8707 throw new Error("Attempt to auto-create SetupActionOperationRequestHeaderComponent.value"); 8708 else if (Configuration.doAutoCreate()) 8709 this.value = new StringType(); // bb 8710 return this.value; 8711 } 8712 8713 public boolean hasValueElement() { 8714 return this.value != null && !this.value.isEmpty(); 8715 } 8716 8717 public boolean hasValue() { 8718 return this.value != null && !this.value.isEmpty(); 8719 } 8720 8721 /** 8722 * @param value {@link #value} (The value of the header e.g. "application/fhir+xml".). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value 8723 */ 8724 public SetupActionOperationRequestHeaderComponent setValueElement(StringType value) { 8725 this.value = value; 8726 return this; 8727 } 8728 8729 /** 8730 * @return The value of the header e.g. "application/fhir+xml". 8731 */ 8732 public String getValue() { 8733 return this.value == null ? null : this.value.getValue(); 8734 } 8735 8736 /** 8737 * @param value The value of the header e.g. "application/fhir+xml". 8738 */ 8739 public SetupActionOperationRequestHeaderComponent setValue(String value) { 8740 if (this.value == null) 8741 this.value = new StringType(); 8742 this.value.setValue(value); 8743 return this; 8744 } 8745 8746 protected void listChildren(List<Property> children) { 8747 super.listChildren(children); 8748 children.add(new Property("field", "string", "The HTTP header field e.g. \"Accept\".", 0, 1, field)); 8749 children.add(new Property("value", "string", "The value of the header e.g. \"application/fhir+xml\".", 0, 1, value)); 8750 } 8751 8752 @Override 8753 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 8754 switch (_hash) { 8755 case 97427706: /*field*/ return new Property("field", "string", "The HTTP header field e.g. \"Accept\".", 0, 1, field); 8756 case 111972721: /*value*/ return new Property("value", "string", "The value of the header e.g. \"application/fhir+xml\".", 0, 1, value); 8757 default: return super.getNamedProperty(_hash, _name, _checkValid); 8758 } 8759 8760 } 8761 8762 @Override 8763 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 8764 switch (hash) { 8765 case 97427706: /*field*/ return this.field == null ? new Base[0] : new Base[] {this.field}; // StringType 8766 case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // StringType 8767 default: return super.getProperty(hash, name, checkValid); 8768 } 8769 8770 } 8771 8772 @Override 8773 public Base setProperty(int hash, String name, Base value) throws FHIRException { 8774 switch (hash) { 8775 case 97427706: // field 8776 this.field = TypeConvertor.castToString(value); // StringType 8777 return value; 8778 case 111972721: // value 8779 this.value = TypeConvertor.castToString(value); // StringType 8780 return value; 8781 default: return super.setProperty(hash, name, value); 8782 } 8783 8784 } 8785 8786 @Override 8787 public Base setProperty(String name, Base value) throws FHIRException { 8788 if (name.equals("field")) { 8789 this.field = TypeConvertor.castToString(value); // StringType 8790 } else if (name.equals("value")) { 8791 this.value = TypeConvertor.castToString(value); // StringType 8792 } else 8793 return super.setProperty(name, value); 8794 return value; 8795 } 8796 8797 @Override 8798 public Base makeProperty(int hash, String name) throws FHIRException { 8799 switch (hash) { 8800 case 97427706: return getFieldElement(); 8801 case 111972721: return getValueElement(); 8802 default: return super.makeProperty(hash, name); 8803 } 8804 8805 } 8806 8807 @Override 8808 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 8809 switch (hash) { 8810 case 97427706: /*field*/ return new String[] {"string"}; 8811 case 111972721: /*value*/ return new String[] {"string"}; 8812 default: return super.getTypesForProperty(hash, name); 8813 } 8814 8815 } 8816 8817 @Override 8818 public Base addChild(String name) throws FHIRException { 8819 if (name.equals("field")) { 8820 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.requestHeader.field"); 8821 } 8822 else if (name.equals("value")) { 8823 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.operation.requestHeader.value"); 8824 } 8825 else 8826 return super.addChild(name); 8827 } 8828 8829 public SetupActionOperationRequestHeaderComponent copy() { 8830 SetupActionOperationRequestHeaderComponent dst = new SetupActionOperationRequestHeaderComponent(); 8831 copyValues(dst); 8832 return dst; 8833 } 8834 8835 public void copyValues(SetupActionOperationRequestHeaderComponent dst) { 8836 super.copyValues(dst); 8837 dst.field = field == null ? null : field.copy(); 8838 dst.value = value == null ? null : value.copy(); 8839 } 8840 8841 @Override 8842 public boolean equalsDeep(Base other_) { 8843 if (!super.equalsDeep(other_)) 8844 return false; 8845 if (!(other_ instanceof SetupActionOperationRequestHeaderComponent)) 8846 return false; 8847 SetupActionOperationRequestHeaderComponent o = (SetupActionOperationRequestHeaderComponent) other_; 8848 return compareDeep(field, o.field, true) && compareDeep(value, o.value, true); 8849 } 8850 8851 @Override 8852 public boolean equalsShallow(Base other_) { 8853 if (!super.equalsShallow(other_)) 8854 return false; 8855 if (!(other_ instanceof SetupActionOperationRequestHeaderComponent)) 8856 return false; 8857 SetupActionOperationRequestHeaderComponent o = (SetupActionOperationRequestHeaderComponent) other_; 8858 return compareValues(field, o.field, true) && compareValues(value, o.value, true); 8859 } 8860 8861 public boolean isEmpty() { 8862 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(field, value); 8863 } 8864 8865 public String fhirType() { 8866 return "TestScript.setup.action.operation.requestHeader"; 8867 8868 } 8869 8870 } 8871 8872 @Block() 8873 public static class SetupActionAssertComponent extends BackboneElement implements IBaseBackboneElement { 8874 /** 8875 * The label would be used for tracking/logging purposes by test engines. 8876 */ 8877 @Child(name = "label", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) 8878 @Description(shortDefinition="Tracking/logging assertion label", formalDefinition="The label would be used for tracking/logging purposes by test engines." ) 8879 protected StringType label; 8880 8881 /** 8882 * The description would be used by test engines for tracking and reporting purposes. 8883 */ 8884 @Child(name = "description", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) 8885 @Description(shortDefinition="Tracking/reporting assertion description", formalDefinition="The description would be used by test engines for tracking and reporting purposes." ) 8886 protected StringType description; 8887 8888 /** 8889 * The direction to use for the assertion. 8890 */ 8891 @Child(name = "direction", type = {CodeType.class}, order=3, min=0, max=1, modifier=false, summary=false) 8892 @Description(shortDefinition="response | request", formalDefinition="The direction to use for the assertion." ) 8893 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/assert-direction-codes") 8894 protected Enumeration<AssertionDirectionType> direction; 8895 8896 /** 8897 * Id of the source fixture used as the contents to be evaluated by either the "source/expression" or "sourceId/path" definition. 8898 */ 8899 @Child(name = "compareToSourceId", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) 8900 @Description(shortDefinition="Id of the source fixture to be evaluated", formalDefinition="Id of the source fixture used as the contents to be evaluated by either the \"source/expression\" or \"sourceId/path\" definition." ) 8901 protected StringType compareToSourceId; 8902 8903 /** 8904 * The FHIRPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both. 8905 */ 8906 @Child(name = "compareToSourceExpression", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=false) 8907 @Description(shortDefinition="The FHIRPath expression to evaluate against the source fixture", formalDefinition="The FHIRPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both." ) 8908 protected StringType compareToSourceExpression; 8909 8910 /** 8911 * XPath or JSONPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both. 8912 */ 8913 @Child(name = "compareToSourcePath", type = {StringType.class}, order=6, min=0, max=1, modifier=false, summary=false) 8914 @Description(shortDefinition="XPath or JSONPath expression to evaluate against the source fixture", formalDefinition="XPath or JSONPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both." ) 8915 protected StringType compareToSourcePath; 8916 8917 /** 8918 * The mime-type contents to compare against the request or response message 'Content-Type' header. 8919 */ 8920 @Child(name = "contentType", type = {CodeType.class}, order=7, min=0, max=1, modifier=false, summary=false) 8921 @Description(shortDefinition="Mime type to compare against the 'Content-Type' header", formalDefinition="The mime-type contents to compare against the request or response message 'Content-Type' header." ) 8922 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/mimetypes") 8923 protected CodeType contentType; 8924 8925 /** 8926 * The FHIRPath expression to be evaluated against the request or response message contents - HTTP headers and payload. 8927 */ 8928 @Child(name = "expression", type = {StringType.class}, order=8, min=0, max=1, modifier=false, summary=false) 8929 @Description(shortDefinition="The FHIRPath expression to be evaluated", formalDefinition="The FHIRPath expression to be evaluated against the request or response message contents - HTTP headers and payload." ) 8930 protected StringType expression; 8931 8932 /** 8933 * The HTTP header field name e.g. 'Location'. 8934 */ 8935 @Child(name = "headerField", type = {StringType.class}, order=9, min=0, max=1, modifier=false, summary=false) 8936 @Description(shortDefinition="HTTP header field name", formalDefinition="The HTTP header field name e.g. 'Location'." ) 8937 protected StringType headerField; 8938 8939 /** 8940 * The ID of a fixture. Asserts that the response contains at a minimum the fixture specified by minimumId. 8941 */ 8942 @Child(name = "minimumId", type = {StringType.class}, order=10, min=0, max=1, modifier=false, summary=false) 8943 @Description(shortDefinition="Fixture Id of minimum content resource", formalDefinition="The ID of a fixture. Asserts that the response contains at a minimum the fixture specified by minimumId." ) 8944 protected StringType minimumId; 8945 8946 /** 8947 * Whether or not the test execution performs validation on the bundle navigation links. 8948 */ 8949 @Child(name = "navigationLinks", type = {BooleanType.class}, order=11, min=0, max=1, modifier=false, summary=false) 8950 @Description(shortDefinition="Perform validation on navigation links?", formalDefinition="Whether or not the test execution performs validation on the bundle navigation links." ) 8951 protected BooleanType navigationLinks; 8952 8953 /** 8954 * The operator type defines the conditional behavior of the assert. If not defined, the default is equals. 8955 */ 8956 @Child(name = "operator", type = {CodeType.class}, order=12, min=0, max=1, modifier=false, summary=false) 8957 @Description(shortDefinition="equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval", formalDefinition="The operator type defines the conditional behavior of the assert. If not defined, the default is equals." ) 8958 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/assert-operator-codes") 8959 protected Enumeration<AssertionOperatorType> operator; 8960 8961 /** 8962 * The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server. 8963 */ 8964 @Child(name = "path", type = {StringType.class}, order=13, min=0, max=1, modifier=false, summary=false) 8965 @Description(shortDefinition="XPath or JSONPath expression", formalDefinition="The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server." ) 8966 protected StringType path; 8967 8968 /** 8969 * The request method or HTTP operation code to compare against that used by the client system under test. 8970 */ 8971 @Child(name = "requestMethod", type = {CodeType.class}, order=14, min=0, max=1, modifier=false, summary=false) 8972 @Description(shortDefinition="delete | get | options | patch | post | put | head", formalDefinition="The request method or HTTP operation code to compare against that used by the client system under test." ) 8973 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/http-operations") 8974 protected Enumeration<TestScriptRequestMethodCode> requestMethod; 8975 8976 /** 8977 * The value to use in a comparison against the request URL path string. 8978 */ 8979 @Child(name = "requestURL", type = {StringType.class}, order=15, min=0, max=1, modifier=false, summary=false) 8980 @Description(shortDefinition="Request URL comparison value", formalDefinition="The value to use in a comparison against the request URL path string." ) 8981 protected StringType requestURL; 8982 8983 /** 8984 * The type of the resource. See http://build.fhir.org/resourcelist.html. 8985 */ 8986 @Child(name = "resource", type = {CodeType.class}, order=16, min=0, max=1, modifier=false, summary=false) 8987 @Description(shortDefinition="Resource type", formalDefinition="The type of the resource. See http://build.fhir.org/resourcelist.html." ) 8988 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/defined-types") 8989 protected Enumeration<FHIRDefinedType> resource; 8990 8991 /** 8992 * okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable. 8993 */ 8994 @Child(name = "response", type = {CodeType.class}, order=17, min=0, max=1, modifier=false, summary=false) 8995 @Description(shortDefinition="okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable", formalDefinition="okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable." ) 8996 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/assert-response-code-types") 8997 protected Enumeration<AssertionResponseTypes> response; 8998 8999 /** 9000 * The value of the HTTP response code to be tested. 9001 */ 9002 @Child(name = "responseCode", type = {StringType.class}, order=18, min=0, max=1, modifier=false, summary=false) 9003 @Description(shortDefinition="HTTP response code to test", formalDefinition="The value of the HTTP response code to be tested." ) 9004 protected StringType responseCode; 9005 9006 /** 9007 * Fixture to evaluate the XPath/JSONPath expression or the headerField against. 9008 */ 9009 @Child(name = "sourceId", type = {IdType.class}, order=19, min=0, max=1, modifier=false, summary=false) 9010 @Description(shortDefinition="Fixture Id of source expression or headerField", formalDefinition="Fixture to evaluate the XPath/JSONPath expression or the headerField against." ) 9011 protected IdType sourceId; 9012 9013 /** 9014 * The ID of the Profile to validate against. 9015 */ 9016 @Child(name = "validateProfileId", type = {IdType.class}, order=20, min=0, max=1, modifier=false, summary=false) 9017 @Description(shortDefinition="Profile Id of validation profile reference", formalDefinition="The ID of the Profile to validate against." ) 9018 protected IdType validateProfileId; 9019 9020 /** 9021 * The value to compare to. 9022 */ 9023 @Child(name = "value", type = {StringType.class}, order=21, min=0, max=1, modifier=false, summary=false) 9024 @Description(shortDefinition="The value to compare to", formalDefinition="The value to compare to." ) 9025 protected StringType value; 9026 9027 /** 9028 * Whether or not the test execution will produce a warning only on error for this assert. 9029 */ 9030 @Child(name = "warningOnly", type = {BooleanType.class}, order=22, min=1, max=1, modifier=false, summary=false) 9031 @Description(shortDefinition="Will this assert produce a warning only on error?", formalDefinition="Whether or not the test execution will produce a warning only on error for this assert." ) 9032 protected BooleanType warningOnly; 9033 9034 private static final long serialVersionUID = -1112296782L; 9035 9036 /** 9037 * Constructor 9038 */ 9039 public SetupActionAssertComponent() { 9040 super(); 9041 } 9042 9043 /** 9044 * Constructor 9045 */ 9046 public SetupActionAssertComponent(boolean warningOnly) { 9047 super(); 9048 this.setWarningOnly(warningOnly); 9049 } 9050 9051 /** 9052 * @return {@link #label} (The label would be used for tracking/logging purposes by test engines.). This is the underlying object with id, value and extensions. The accessor "getLabel" gives direct access to the value 9053 */ 9054 public StringType getLabelElement() { 9055 if (this.label == null) 9056 if (Configuration.errorOnAutoCreate()) 9057 throw new Error("Attempt to auto-create SetupActionAssertComponent.label"); 9058 else if (Configuration.doAutoCreate()) 9059 this.label = new StringType(); // bb 9060 return this.label; 9061 } 9062 9063 public boolean hasLabelElement() { 9064 return this.label != null && !this.label.isEmpty(); 9065 } 9066 9067 public boolean hasLabel() { 9068 return this.label != null && !this.label.isEmpty(); 9069 } 9070 9071 /** 9072 * @param value {@link #label} (The label would be used for tracking/logging purposes by test engines.). This is the underlying object with id, value and extensions. The accessor "getLabel" gives direct access to the value 9073 */ 9074 public SetupActionAssertComponent setLabelElement(StringType value) { 9075 this.label = value; 9076 return this; 9077 } 9078 9079 /** 9080 * @return The label would be used for tracking/logging purposes by test engines. 9081 */ 9082 public String getLabel() { 9083 return this.label == null ? null : this.label.getValue(); 9084 } 9085 9086 /** 9087 * @param value The label would be used for tracking/logging purposes by test engines. 9088 */ 9089 public SetupActionAssertComponent setLabel(String value) { 9090 if (Utilities.noString(value)) 9091 this.label = null; 9092 else { 9093 if (this.label == null) 9094 this.label = new StringType(); 9095 this.label.setValue(value); 9096 } 9097 return this; 9098 } 9099 9100 /** 9101 * @return {@link #description} (The description would be used by test engines for tracking and reporting purposes.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 9102 */ 9103 public StringType getDescriptionElement() { 9104 if (this.description == null) 9105 if (Configuration.errorOnAutoCreate()) 9106 throw new Error("Attempt to auto-create SetupActionAssertComponent.description"); 9107 else if (Configuration.doAutoCreate()) 9108 this.description = new StringType(); // bb 9109 return this.description; 9110 } 9111 9112 public boolean hasDescriptionElement() { 9113 return this.description != null && !this.description.isEmpty(); 9114 } 9115 9116 public boolean hasDescription() { 9117 return this.description != null && !this.description.isEmpty(); 9118 } 9119 9120 /** 9121 * @param value {@link #description} (The description would be used by test engines for tracking and reporting purposes.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 9122 */ 9123 public SetupActionAssertComponent setDescriptionElement(StringType value) { 9124 this.description = value; 9125 return this; 9126 } 9127 9128 /** 9129 * @return The description would be used by test engines for tracking and reporting purposes. 9130 */ 9131 public String getDescription() { 9132 return this.description == null ? null : this.description.getValue(); 9133 } 9134 9135 /** 9136 * @param value The description would be used by test engines for tracking and reporting purposes. 9137 */ 9138 public SetupActionAssertComponent setDescription(String value) { 9139 if (Utilities.noString(value)) 9140 this.description = null; 9141 else { 9142 if (this.description == null) 9143 this.description = new StringType(); 9144 this.description.setValue(value); 9145 } 9146 return this; 9147 } 9148 9149 /** 9150 * @return {@link #direction} (The direction to use for the assertion.). This is the underlying object with id, value and extensions. The accessor "getDirection" gives direct access to the value 9151 */ 9152 public Enumeration<AssertionDirectionType> getDirectionElement() { 9153 if (this.direction == null) 9154 if (Configuration.errorOnAutoCreate()) 9155 throw new Error("Attempt to auto-create SetupActionAssertComponent.direction"); 9156 else if (Configuration.doAutoCreate()) 9157 this.direction = new Enumeration<AssertionDirectionType>(new AssertionDirectionTypeEnumFactory()); // bb 9158 return this.direction; 9159 } 9160 9161 public boolean hasDirectionElement() { 9162 return this.direction != null && !this.direction.isEmpty(); 9163 } 9164 9165 public boolean hasDirection() { 9166 return this.direction != null && !this.direction.isEmpty(); 9167 } 9168 9169 /** 9170 * @param value {@link #direction} (The direction to use for the assertion.). This is the underlying object with id, value and extensions. The accessor "getDirection" gives direct access to the value 9171 */ 9172 public SetupActionAssertComponent setDirectionElement(Enumeration<AssertionDirectionType> value) { 9173 this.direction = value; 9174 return this; 9175 } 9176 9177 /** 9178 * @return The direction to use for the assertion. 9179 */ 9180 public AssertionDirectionType getDirection() { 9181 return this.direction == null ? null : this.direction.getValue(); 9182 } 9183 9184 /** 9185 * @param value The direction to use for the assertion. 9186 */ 9187 public SetupActionAssertComponent setDirection(AssertionDirectionType value) { 9188 if (value == null) 9189 this.direction = null; 9190 else { 9191 if (this.direction == null) 9192 this.direction = new Enumeration<AssertionDirectionType>(new AssertionDirectionTypeEnumFactory()); 9193 this.direction.setValue(value); 9194 } 9195 return this; 9196 } 9197 9198 /** 9199 * @return {@link #compareToSourceId} (Id of the source fixture used as the contents to be evaluated by either the "source/expression" or "sourceId/path" definition.). This is the underlying object with id, value and extensions. The accessor "getCompareToSourceId" gives direct access to the value 9200 */ 9201 public StringType getCompareToSourceIdElement() { 9202 if (this.compareToSourceId == null) 9203 if (Configuration.errorOnAutoCreate()) 9204 throw new Error("Attempt to auto-create SetupActionAssertComponent.compareToSourceId"); 9205 else if (Configuration.doAutoCreate()) 9206 this.compareToSourceId = new StringType(); // bb 9207 return this.compareToSourceId; 9208 } 9209 9210 public boolean hasCompareToSourceIdElement() { 9211 return this.compareToSourceId != null && !this.compareToSourceId.isEmpty(); 9212 } 9213 9214 public boolean hasCompareToSourceId() { 9215 return this.compareToSourceId != null && !this.compareToSourceId.isEmpty(); 9216 } 9217 9218 /** 9219 * @param value {@link #compareToSourceId} (Id of the source fixture used as the contents to be evaluated by either the "source/expression" or "sourceId/path" definition.). This is the underlying object with id, value and extensions. The accessor "getCompareToSourceId" gives direct access to the value 9220 */ 9221 public SetupActionAssertComponent setCompareToSourceIdElement(StringType value) { 9222 this.compareToSourceId = value; 9223 return this; 9224 } 9225 9226 /** 9227 * @return Id of the source fixture used as the contents to be evaluated by either the "source/expression" or "sourceId/path" definition. 9228 */ 9229 public String getCompareToSourceId() { 9230 return this.compareToSourceId == null ? null : this.compareToSourceId.getValue(); 9231 } 9232 9233 /** 9234 * @param value Id of the source fixture used as the contents to be evaluated by either the "source/expression" or "sourceId/path" definition. 9235 */ 9236 public SetupActionAssertComponent setCompareToSourceId(String value) { 9237 if (Utilities.noString(value)) 9238 this.compareToSourceId = null; 9239 else { 9240 if (this.compareToSourceId == null) 9241 this.compareToSourceId = new StringType(); 9242 this.compareToSourceId.setValue(value); 9243 } 9244 return this; 9245 } 9246 9247 /** 9248 * @return {@link #compareToSourceExpression} (The FHIRPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both.). This is the underlying object with id, value and extensions. The accessor "getCompareToSourceExpression" gives direct access to the value 9249 */ 9250 public StringType getCompareToSourceExpressionElement() { 9251 if (this.compareToSourceExpression == null) 9252 if (Configuration.errorOnAutoCreate()) 9253 throw new Error("Attempt to auto-create SetupActionAssertComponent.compareToSourceExpression"); 9254 else if (Configuration.doAutoCreate()) 9255 this.compareToSourceExpression = new StringType(); // bb 9256 return this.compareToSourceExpression; 9257 } 9258 9259 public boolean hasCompareToSourceExpressionElement() { 9260 return this.compareToSourceExpression != null && !this.compareToSourceExpression.isEmpty(); 9261 } 9262 9263 public boolean hasCompareToSourceExpression() { 9264 return this.compareToSourceExpression != null && !this.compareToSourceExpression.isEmpty(); 9265 } 9266 9267 /** 9268 * @param value {@link #compareToSourceExpression} (The FHIRPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both.). This is the underlying object with id, value and extensions. The accessor "getCompareToSourceExpression" gives direct access to the value 9269 */ 9270 public SetupActionAssertComponent setCompareToSourceExpressionElement(StringType value) { 9271 this.compareToSourceExpression = value; 9272 return this; 9273 } 9274 9275 /** 9276 * @return The FHIRPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both. 9277 */ 9278 public String getCompareToSourceExpression() { 9279 return this.compareToSourceExpression == null ? null : this.compareToSourceExpression.getValue(); 9280 } 9281 9282 /** 9283 * @param value The FHIRPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both. 9284 */ 9285 public SetupActionAssertComponent setCompareToSourceExpression(String value) { 9286 if (Utilities.noString(value)) 9287 this.compareToSourceExpression = null; 9288 else { 9289 if (this.compareToSourceExpression == null) 9290 this.compareToSourceExpression = new StringType(); 9291 this.compareToSourceExpression.setValue(value); 9292 } 9293 return this; 9294 } 9295 9296 /** 9297 * @return {@link #compareToSourcePath} (XPath or JSONPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both.). This is the underlying object with id, value and extensions. The accessor "getCompareToSourcePath" gives direct access to the value 9298 */ 9299 public StringType getCompareToSourcePathElement() { 9300 if (this.compareToSourcePath == null) 9301 if (Configuration.errorOnAutoCreate()) 9302 throw new Error("Attempt to auto-create SetupActionAssertComponent.compareToSourcePath"); 9303 else if (Configuration.doAutoCreate()) 9304 this.compareToSourcePath = new StringType(); // bb 9305 return this.compareToSourcePath; 9306 } 9307 9308 public boolean hasCompareToSourcePathElement() { 9309 return this.compareToSourcePath != null && !this.compareToSourcePath.isEmpty(); 9310 } 9311 9312 public boolean hasCompareToSourcePath() { 9313 return this.compareToSourcePath != null && !this.compareToSourcePath.isEmpty(); 9314 } 9315 9316 /** 9317 * @param value {@link #compareToSourcePath} (XPath or JSONPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both.). This is the underlying object with id, value and extensions. The accessor "getCompareToSourcePath" gives direct access to the value 9318 */ 9319 public SetupActionAssertComponent setCompareToSourcePathElement(StringType value) { 9320 this.compareToSourcePath = value; 9321 return this; 9322 } 9323 9324 /** 9325 * @return XPath or JSONPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both. 9326 */ 9327 public String getCompareToSourcePath() { 9328 return this.compareToSourcePath == null ? null : this.compareToSourcePath.getValue(); 9329 } 9330 9331 /** 9332 * @param value XPath or JSONPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both. 9333 */ 9334 public SetupActionAssertComponent setCompareToSourcePath(String value) { 9335 if (Utilities.noString(value)) 9336 this.compareToSourcePath = null; 9337 else { 9338 if (this.compareToSourcePath == null) 9339 this.compareToSourcePath = new StringType(); 9340 this.compareToSourcePath.setValue(value); 9341 } 9342 return this; 9343 } 9344 9345 /** 9346 * @return {@link #contentType} (The mime-type contents to compare against the request or response message 'Content-Type' header.). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value 9347 */ 9348 public CodeType getContentTypeElement() { 9349 if (this.contentType == null) 9350 if (Configuration.errorOnAutoCreate()) 9351 throw new Error("Attempt to auto-create SetupActionAssertComponent.contentType"); 9352 else if (Configuration.doAutoCreate()) 9353 this.contentType = new CodeType(); // bb 9354 return this.contentType; 9355 } 9356 9357 public boolean hasContentTypeElement() { 9358 return this.contentType != null && !this.contentType.isEmpty(); 9359 } 9360 9361 public boolean hasContentType() { 9362 return this.contentType != null && !this.contentType.isEmpty(); 9363 } 9364 9365 /** 9366 * @param value {@link #contentType} (The mime-type contents to compare against the request or response message 'Content-Type' header.). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value 9367 */ 9368 public SetupActionAssertComponent setContentTypeElement(CodeType value) { 9369 this.contentType = value; 9370 return this; 9371 } 9372 9373 /** 9374 * @return The mime-type contents to compare against the request or response message 'Content-Type' header. 9375 */ 9376 public String getContentType() { 9377 return this.contentType == null ? null : this.contentType.getValue(); 9378 } 9379 9380 /** 9381 * @param value The mime-type contents to compare against the request or response message 'Content-Type' header. 9382 */ 9383 public SetupActionAssertComponent setContentType(String value) { 9384 if (Utilities.noString(value)) 9385 this.contentType = null; 9386 else { 9387 if (this.contentType == null) 9388 this.contentType = new CodeType(); 9389 this.contentType.setValue(value); 9390 } 9391 return this; 9392 } 9393 9394 /** 9395 * @return {@link #expression} (The FHIRPath expression to be evaluated against the request or response message contents - HTTP headers and payload.). This is the underlying object with id, value and extensions. The accessor "getExpression" gives direct access to the value 9396 */ 9397 public StringType getExpressionElement() { 9398 if (this.expression == null) 9399 if (Configuration.errorOnAutoCreate()) 9400 throw new Error("Attempt to auto-create SetupActionAssertComponent.expression"); 9401 else if (Configuration.doAutoCreate()) 9402 this.expression = new StringType(); // bb 9403 return this.expression; 9404 } 9405 9406 public boolean hasExpressionElement() { 9407 return this.expression != null && !this.expression.isEmpty(); 9408 } 9409 9410 public boolean hasExpression() { 9411 return this.expression != null && !this.expression.isEmpty(); 9412 } 9413 9414 /** 9415 * @param value {@link #expression} (The FHIRPath expression to be evaluated against the request or response message contents - HTTP headers and payload.). This is the underlying object with id, value and extensions. The accessor "getExpression" gives direct access to the value 9416 */ 9417 public SetupActionAssertComponent setExpressionElement(StringType value) { 9418 this.expression = value; 9419 return this; 9420 } 9421 9422 /** 9423 * @return The FHIRPath expression to be evaluated against the request or response message contents - HTTP headers and payload. 9424 */ 9425 public String getExpression() { 9426 return this.expression == null ? null : this.expression.getValue(); 9427 } 9428 9429 /** 9430 * @param value The FHIRPath expression to be evaluated against the request or response message contents - HTTP headers and payload. 9431 */ 9432 public SetupActionAssertComponent setExpression(String value) { 9433 if (Utilities.noString(value)) 9434 this.expression = null; 9435 else { 9436 if (this.expression == null) 9437 this.expression = new StringType(); 9438 this.expression.setValue(value); 9439 } 9440 return this; 9441 } 9442 9443 /** 9444 * @return {@link #headerField} (The HTTP header field name e.g. 'Location'.). This is the underlying object with id, value and extensions. The accessor "getHeaderField" gives direct access to the value 9445 */ 9446 public StringType getHeaderFieldElement() { 9447 if (this.headerField == null) 9448 if (Configuration.errorOnAutoCreate()) 9449 throw new Error("Attempt to auto-create SetupActionAssertComponent.headerField"); 9450 else if (Configuration.doAutoCreate()) 9451 this.headerField = new StringType(); // bb 9452 return this.headerField; 9453 } 9454 9455 public boolean hasHeaderFieldElement() { 9456 return this.headerField != null && !this.headerField.isEmpty(); 9457 } 9458 9459 public boolean hasHeaderField() { 9460 return this.headerField != null && !this.headerField.isEmpty(); 9461 } 9462 9463 /** 9464 * @param value {@link #headerField} (The HTTP header field name e.g. 'Location'.). This is the underlying object with id, value and extensions. The accessor "getHeaderField" gives direct access to the value 9465 */ 9466 public SetupActionAssertComponent setHeaderFieldElement(StringType value) { 9467 this.headerField = value; 9468 return this; 9469 } 9470 9471 /** 9472 * @return The HTTP header field name e.g. 'Location'. 9473 */ 9474 public String getHeaderField() { 9475 return this.headerField == null ? null : this.headerField.getValue(); 9476 } 9477 9478 /** 9479 * @param value The HTTP header field name e.g. 'Location'. 9480 */ 9481 public SetupActionAssertComponent setHeaderField(String value) { 9482 if (Utilities.noString(value)) 9483 this.headerField = null; 9484 else { 9485 if (this.headerField == null) 9486 this.headerField = new StringType(); 9487 this.headerField.setValue(value); 9488 } 9489 return this; 9490 } 9491 9492 /** 9493 * @return {@link #minimumId} (The ID of a fixture. Asserts that the response contains at a minimum the fixture specified by minimumId.). This is the underlying object with id, value and extensions. The accessor "getMinimumId" gives direct access to the value 9494 */ 9495 public StringType getMinimumIdElement() { 9496 if (this.minimumId == null) 9497 if (Configuration.errorOnAutoCreate()) 9498 throw new Error("Attempt to auto-create SetupActionAssertComponent.minimumId"); 9499 else if (Configuration.doAutoCreate()) 9500 this.minimumId = new StringType(); // bb 9501 return this.minimumId; 9502 } 9503 9504 public boolean hasMinimumIdElement() { 9505 return this.minimumId != null && !this.minimumId.isEmpty(); 9506 } 9507 9508 public boolean hasMinimumId() { 9509 return this.minimumId != null && !this.minimumId.isEmpty(); 9510 } 9511 9512 /** 9513 * @param value {@link #minimumId} (The ID of a fixture. Asserts that the response contains at a minimum the fixture specified by minimumId.). This is the underlying object with id, value and extensions. The accessor "getMinimumId" gives direct access to the value 9514 */ 9515 public SetupActionAssertComponent setMinimumIdElement(StringType value) { 9516 this.minimumId = value; 9517 return this; 9518 } 9519 9520 /** 9521 * @return The ID of a fixture. Asserts that the response contains at a minimum the fixture specified by minimumId. 9522 */ 9523 public String getMinimumId() { 9524 return this.minimumId == null ? null : this.minimumId.getValue(); 9525 } 9526 9527 /** 9528 * @param value The ID of a fixture. Asserts that the response contains at a minimum the fixture specified by minimumId. 9529 */ 9530 public SetupActionAssertComponent setMinimumId(String value) { 9531 if (Utilities.noString(value)) 9532 this.minimumId = null; 9533 else { 9534 if (this.minimumId == null) 9535 this.minimumId = new StringType(); 9536 this.minimumId.setValue(value); 9537 } 9538 return this; 9539 } 9540 9541 /** 9542 * @return {@link #navigationLinks} (Whether or not the test execution performs validation on the bundle navigation links.). This is the underlying object with id, value and extensions. The accessor "getNavigationLinks" gives direct access to the value 9543 */ 9544 public BooleanType getNavigationLinksElement() { 9545 if (this.navigationLinks == null) 9546 if (Configuration.errorOnAutoCreate()) 9547 throw new Error("Attempt to auto-create SetupActionAssertComponent.navigationLinks"); 9548 else if (Configuration.doAutoCreate()) 9549 this.navigationLinks = new BooleanType(); // bb 9550 return this.navigationLinks; 9551 } 9552 9553 public boolean hasNavigationLinksElement() { 9554 return this.navigationLinks != null && !this.navigationLinks.isEmpty(); 9555 } 9556 9557 public boolean hasNavigationLinks() { 9558 return this.navigationLinks != null && !this.navigationLinks.isEmpty(); 9559 } 9560 9561 /** 9562 * @param value {@link #navigationLinks} (Whether or not the test execution performs validation on the bundle navigation links.). This is the underlying object with id, value and extensions. The accessor "getNavigationLinks" gives direct access to the value 9563 */ 9564 public SetupActionAssertComponent setNavigationLinksElement(BooleanType value) { 9565 this.navigationLinks = value; 9566 return this; 9567 } 9568 9569 /** 9570 * @return Whether or not the test execution performs validation on the bundle navigation links. 9571 */ 9572 public boolean getNavigationLinks() { 9573 return this.navigationLinks == null || this.navigationLinks.isEmpty() ? false : this.navigationLinks.getValue(); 9574 } 9575 9576 /** 9577 * @param value Whether or not the test execution performs validation on the bundle navigation links. 9578 */ 9579 public SetupActionAssertComponent setNavigationLinks(boolean value) { 9580 if (this.navigationLinks == null) 9581 this.navigationLinks = new BooleanType(); 9582 this.navigationLinks.setValue(value); 9583 return this; 9584 } 9585 9586 /** 9587 * @return {@link #operator} (The operator type defines the conditional behavior of the assert. If not defined, the default is equals.). This is the underlying object with id, value and extensions. The accessor "getOperator" gives direct access to the value 9588 */ 9589 public Enumeration<AssertionOperatorType> getOperatorElement() { 9590 if (this.operator == null) 9591 if (Configuration.errorOnAutoCreate()) 9592 throw new Error("Attempt to auto-create SetupActionAssertComponent.operator"); 9593 else if (Configuration.doAutoCreate()) 9594 this.operator = new Enumeration<AssertionOperatorType>(new AssertionOperatorTypeEnumFactory()); // bb 9595 return this.operator; 9596 } 9597 9598 public boolean hasOperatorElement() { 9599 return this.operator != null && !this.operator.isEmpty(); 9600 } 9601 9602 public boolean hasOperator() { 9603 return this.operator != null && !this.operator.isEmpty(); 9604 } 9605 9606 /** 9607 * @param value {@link #operator} (The operator type defines the conditional behavior of the assert. If not defined, the default is equals.). This is the underlying object with id, value and extensions. The accessor "getOperator" gives direct access to the value 9608 */ 9609 public SetupActionAssertComponent setOperatorElement(Enumeration<AssertionOperatorType> value) { 9610 this.operator = value; 9611 return this; 9612 } 9613 9614 /** 9615 * @return The operator type defines the conditional behavior of the assert. If not defined, the default is equals. 9616 */ 9617 public AssertionOperatorType getOperator() { 9618 return this.operator == null ? null : this.operator.getValue(); 9619 } 9620 9621 /** 9622 * @param value The operator type defines the conditional behavior of the assert. If not defined, the default is equals. 9623 */ 9624 public SetupActionAssertComponent setOperator(AssertionOperatorType value) { 9625 if (value == null) 9626 this.operator = null; 9627 else { 9628 if (this.operator == null) 9629 this.operator = new Enumeration<AssertionOperatorType>(new AssertionOperatorTypeEnumFactory()); 9630 this.operator.setValue(value); 9631 } 9632 return this; 9633 } 9634 9635 /** 9636 * @return {@link #path} (The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server.). This is the underlying object with id, value and extensions. The accessor "getPath" gives direct access to the value 9637 */ 9638 public StringType getPathElement() { 9639 if (this.path == null) 9640 if (Configuration.errorOnAutoCreate()) 9641 throw new Error("Attempt to auto-create SetupActionAssertComponent.path"); 9642 else if (Configuration.doAutoCreate()) 9643 this.path = new StringType(); // bb 9644 return this.path; 9645 } 9646 9647 public boolean hasPathElement() { 9648 return this.path != null && !this.path.isEmpty(); 9649 } 9650 9651 public boolean hasPath() { 9652 return this.path != null && !this.path.isEmpty(); 9653 } 9654 9655 /** 9656 * @param value {@link #path} (The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server.). This is the underlying object with id, value and extensions. The accessor "getPath" gives direct access to the value 9657 */ 9658 public SetupActionAssertComponent setPathElement(StringType value) { 9659 this.path = value; 9660 return this; 9661 } 9662 9663 /** 9664 * @return The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server. 9665 */ 9666 public String getPath() { 9667 return this.path == null ? null : this.path.getValue(); 9668 } 9669 9670 /** 9671 * @param value The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server. 9672 */ 9673 public SetupActionAssertComponent setPath(String value) { 9674 if (Utilities.noString(value)) 9675 this.path = null; 9676 else { 9677 if (this.path == null) 9678 this.path = new StringType(); 9679 this.path.setValue(value); 9680 } 9681 return this; 9682 } 9683 9684 /** 9685 * @return {@link #requestMethod} (The request method or HTTP operation code to compare against that used by the client system under test.). This is the underlying object with id, value and extensions. The accessor "getRequestMethod" gives direct access to the value 9686 */ 9687 public Enumeration<TestScriptRequestMethodCode> getRequestMethodElement() { 9688 if (this.requestMethod == null) 9689 if (Configuration.errorOnAutoCreate()) 9690 throw new Error("Attempt to auto-create SetupActionAssertComponent.requestMethod"); 9691 else if (Configuration.doAutoCreate()) 9692 this.requestMethod = new Enumeration<TestScriptRequestMethodCode>(new TestScriptRequestMethodCodeEnumFactory()); // bb 9693 return this.requestMethod; 9694 } 9695 9696 public boolean hasRequestMethodElement() { 9697 return this.requestMethod != null && !this.requestMethod.isEmpty(); 9698 } 9699 9700 public boolean hasRequestMethod() { 9701 return this.requestMethod != null && !this.requestMethod.isEmpty(); 9702 } 9703 9704 /** 9705 * @param value {@link #requestMethod} (The request method or HTTP operation code to compare against that used by the client system under test.). This is the underlying object with id, value and extensions. The accessor "getRequestMethod" gives direct access to the value 9706 */ 9707 public SetupActionAssertComponent setRequestMethodElement(Enumeration<TestScriptRequestMethodCode> value) { 9708 this.requestMethod = value; 9709 return this; 9710 } 9711 9712 /** 9713 * @return The request method or HTTP operation code to compare against that used by the client system under test. 9714 */ 9715 public TestScriptRequestMethodCode getRequestMethod() { 9716 return this.requestMethod == null ? null : this.requestMethod.getValue(); 9717 } 9718 9719 /** 9720 * @param value The request method or HTTP operation code to compare against that used by the client system under test. 9721 */ 9722 public SetupActionAssertComponent setRequestMethod(TestScriptRequestMethodCode value) { 9723 if (value == null) 9724 this.requestMethod = null; 9725 else { 9726 if (this.requestMethod == null) 9727 this.requestMethod = new Enumeration<TestScriptRequestMethodCode>(new TestScriptRequestMethodCodeEnumFactory()); 9728 this.requestMethod.setValue(value); 9729 } 9730 return this; 9731 } 9732 9733 /** 9734 * @return {@link #requestURL} (The value to use in a comparison against the request URL path string.). This is the underlying object with id, value and extensions. The accessor "getRequestURL" gives direct access to the value 9735 */ 9736 public StringType getRequestURLElement() { 9737 if (this.requestURL == null) 9738 if (Configuration.errorOnAutoCreate()) 9739 throw new Error("Attempt to auto-create SetupActionAssertComponent.requestURL"); 9740 else if (Configuration.doAutoCreate()) 9741 this.requestURL = new StringType(); // bb 9742 return this.requestURL; 9743 } 9744 9745 public boolean hasRequestURLElement() { 9746 return this.requestURL != null && !this.requestURL.isEmpty(); 9747 } 9748 9749 public boolean hasRequestURL() { 9750 return this.requestURL != null && !this.requestURL.isEmpty(); 9751 } 9752 9753 /** 9754 * @param value {@link #requestURL} (The value to use in a comparison against the request URL path string.). This is the underlying object with id, value and extensions. The accessor "getRequestURL" gives direct access to the value 9755 */ 9756 public SetupActionAssertComponent setRequestURLElement(StringType value) { 9757 this.requestURL = value; 9758 return this; 9759 } 9760 9761 /** 9762 * @return The value to use in a comparison against the request URL path string. 9763 */ 9764 public String getRequestURL() { 9765 return this.requestURL == null ? null : this.requestURL.getValue(); 9766 } 9767 9768 /** 9769 * @param value The value to use in a comparison against the request URL path string. 9770 */ 9771 public SetupActionAssertComponent setRequestURL(String value) { 9772 if (Utilities.noString(value)) 9773 this.requestURL = null; 9774 else { 9775 if (this.requestURL == null) 9776 this.requestURL = new StringType(); 9777 this.requestURL.setValue(value); 9778 } 9779 return this; 9780 } 9781 9782 /** 9783 * @return {@link #resource} (The type of the resource. See http://build.fhir.org/resourcelist.html.). This is the underlying object with id, value and extensions. The accessor "getResource" gives direct access to the value 9784 */ 9785 public Enumeration<FHIRDefinedType> getResourceElement() { 9786 if (this.resource == null) 9787 if (Configuration.errorOnAutoCreate()) 9788 throw new Error("Attempt to auto-create SetupActionAssertComponent.resource"); 9789 else if (Configuration.doAutoCreate()) 9790 this.resource = new Enumeration<FHIRDefinedType>(new FHIRDefinedTypeEnumFactory()); // bb 9791 return this.resource; 9792 } 9793 9794 public boolean hasResourceElement() { 9795 return this.resource != null && !this.resource.isEmpty(); 9796 } 9797 9798 public boolean hasResource() { 9799 return this.resource != null && !this.resource.isEmpty(); 9800 } 9801 9802 /** 9803 * @param value {@link #resource} (The type of the resource. See http://build.fhir.org/resourcelist.html.). This is the underlying object with id, value and extensions. The accessor "getResource" gives direct access to the value 9804 */ 9805 public SetupActionAssertComponent setResourceElement(Enumeration<FHIRDefinedType> value) { 9806 this.resource = value; 9807 return this; 9808 } 9809 9810 /** 9811 * @return The type of the resource. See http://build.fhir.org/resourcelist.html. 9812 */ 9813 public FHIRDefinedType getResource() { 9814 return this.resource == null ? null : this.resource.getValue(); 9815 } 9816 9817 /** 9818 * @param value The type of the resource. See http://build.fhir.org/resourcelist.html. 9819 */ 9820 public SetupActionAssertComponent setResource(FHIRDefinedType value) { 9821 if (value == null) 9822 this.resource = null; 9823 else { 9824 if (this.resource == null) 9825 this.resource = new Enumeration<FHIRDefinedType>(new FHIRDefinedTypeEnumFactory()); 9826 this.resource.setValue(value); 9827 } 9828 return this; 9829 } 9830 9831 /** 9832 * @return {@link #response} (okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable.). This is the underlying object with id, value and extensions. The accessor "getResponse" gives direct access to the value 9833 */ 9834 public Enumeration<AssertionResponseTypes> getResponseElement() { 9835 if (this.response == null) 9836 if (Configuration.errorOnAutoCreate()) 9837 throw new Error("Attempt to auto-create SetupActionAssertComponent.response"); 9838 else if (Configuration.doAutoCreate()) 9839 this.response = new Enumeration<AssertionResponseTypes>(new AssertionResponseTypesEnumFactory()); // bb 9840 return this.response; 9841 } 9842 9843 public boolean hasResponseElement() { 9844 return this.response != null && !this.response.isEmpty(); 9845 } 9846 9847 public boolean hasResponse() { 9848 return this.response != null && !this.response.isEmpty(); 9849 } 9850 9851 /** 9852 * @param value {@link #response} (okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable.). This is the underlying object with id, value and extensions. The accessor "getResponse" gives direct access to the value 9853 */ 9854 public SetupActionAssertComponent setResponseElement(Enumeration<AssertionResponseTypes> value) { 9855 this.response = value; 9856 return this; 9857 } 9858 9859 /** 9860 * @return okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable. 9861 */ 9862 public AssertionResponseTypes getResponse() { 9863 return this.response == null ? null : this.response.getValue(); 9864 } 9865 9866 /** 9867 * @param value okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable. 9868 */ 9869 public SetupActionAssertComponent setResponse(AssertionResponseTypes value) { 9870 if (value == null) 9871 this.response = null; 9872 else { 9873 if (this.response == null) 9874 this.response = new Enumeration<AssertionResponseTypes>(new AssertionResponseTypesEnumFactory()); 9875 this.response.setValue(value); 9876 } 9877 return this; 9878 } 9879 9880 /** 9881 * @return {@link #responseCode} (The value of the HTTP response code to be tested.). This is the underlying object with id, value and extensions. The accessor "getResponseCode" gives direct access to the value 9882 */ 9883 public StringType getResponseCodeElement() { 9884 if (this.responseCode == null) 9885 if (Configuration.errorOnAutoCreate()) 9886 throw new Error("Attempt to auto-create SetupActionAssertComponent.responseCode"); 9887 else if (Configuration.doAutoCreate()) 9888 this.responseCode = new StringType(); // bb 9889 return this.responseCode; 9890 } 9891 9892 public boolean hasResponseCodeElement() { 9893 return this.responseCode != null && !this.responseCode.isEmpty(); 9894 } 9895 9896 public boolean hasResponseCode() { 9897 return this.responseCode != null && !this.responseCode.isEmpty(); 9898 } 9899 9900 /** 9901 * @param value {@link #responseCode} (The value of the HTTP response code to be tested.). This is the underlying object with id, value and extensions. The accessor "getResponseCode" gives direct access to the value 9902 */ 9903 public SetupActionAssertComponent setResponseCodeElement(StringType value) { 9904 this.responseCode = value; 9905 return this; 9906 } 9907 9908 /** 9909 * @return The value of the HTTP response code to be tested. 9910 */ 9911 public String getResponseCode() { 9912 return this.responseCode == null ? null : this.responseCode.getValue(); 9913 } 9914 9915 /** 9916 * @param value The value of the HTTP response code to be tested. 9917 */ 9918 public SetupActionAssertComponent setResponseCode(String value) { 9919 if (Utilities.noString(value)) 9920 this.responseCode = null; 9921 else { 9922 if (this.responseCode == null) 9923 this.responseCode = new StringType(); 9924 this.responseCode.setValue(value); 9925 } 9926 return this; 9927 } 9928 9929 /** 9930 * @return {@link #sourceId} (Fixture to evaluate the XPath/JSONPath expression or the headerField against.). This is the underlying object with id, value and extensions. The accessor "getSourceId" gives direct access to the value 9931 */ 9932 public IdType getSourceIdElement() { 9933 if (this.sourceId == null) 9934 if (Configuration.errorOnAutoCreate()) 9935 throw new Error("Attempt to auto-create SetupActionAssertComponent.sourceId"); 9936 else if (Configuration.doAutoCreate()) 9937 this.sourceId = new IdType(); // bb 9938 return this.sourceId; 9939 } 9940 9941 public boolean hasSourceIdElement() { 9942 return this.sourceId != null && !this.sourceId.isEmpty(); 9943 } 9944 9945 public boolean hasSourceId() { 9946 return this.sourceId != null && !this.sourceId.isEmpty(); 9947 } 9948 9949 /** 9950 * @param value {@link #sourceId} (Fixture to evaluate the XPath/JSONPath expression or the headerField against.). This is the underlying object with id, value and extensions. The accessor "getSourceId" gives direct access to the value 9951 */ 9952 public SetupActionAssertComponent setSourceIdElement(IdType value) { 9953 this.sourceId = value; 9954 return this; 9955 } 9956 9957 /** 9958 * @return Fixture to evaluate the XPath/JSONPath expression or the headerField against. 9959 */ 9960 public String getSourceId() { 9961 return this.sourceId == null ? null : this.sourceId.getValue(); 9962 } 9963 9964 /** 9965 * @param value Fixture to evaluate the XPath/JSONPath expression or the headerField against. 9966 */ 9967 public SetupActionAssertComponent setSourceId(String value) { 9968 if (Utilities.noString(value)) 9969 this.sourceId = null; 9970 else { 9971 if (this.sourceId == null) 9972 this.sourceId = new IdType(); 9973 this.sourceId.setValue(value); 9974 } 9975 return this; 9976 } 9977 9978 /** 9979 * @return {@link #validateProfileId} (The ID of the Profile to validate against.). This is the underlying object with id, value and extensions. The accessor "getValidateProfileId" gives direct access to the value 9980 */ 9981 public IdType getValidateProfileIdElement() { 9982 if (this.validateProfileId == null) 9983 if (Configuration.errorOnAutoCreate()) 9984 throw new Error("Attempt to auto-create SetupActionAssertComponent.validateProfileId"); 9985 else if (Configuration.doAutoCreate()) 9986 this.validateProfileId = new IdType(); // bb 9987 return this.validateProfileId; 9988 } 9989 9990 public boolean hasValidateProfileIdElement() { 9991 return this.validateProfileId != null && !this.validateProfileId.isEmpty(); 9992 } 9993 9994 public boolean hasValidateProfileId() { 9995 return this.validateProfileId != null && !this.validateProfileId.isEmpty(); 9996 } 9997 9998 /** 9999 * @param value {@link #validateProfileId} (The ID of the Profile to validate against.). This is the underlying object with id, value and extensions. The accessor "getValidateProfileId" gives direct access to the value 10000 */ 10001 public SetupActionAssertComponent setValidateProfileIdElement(IdType value) { 10002 this.validateProfileId = value; 10003 return this; 10004 } 10005 10006 /** 10007 * @return The ID of the Profile to validate against. 10008 */ 10009 public String getValidateProfileId() { 10010 return this.validateProfileId == null ? null : this.validateProfileId.getValue(); 10011 } 10012 10013 /** 10014 * @param value The ID of the Profile to validate against. 10015 */ 10016 public SetupActionAssertComponent setValidateProfileId(String value) { 10017 if (Utilities.noString(value)) 10018 this.validateProfileId = null; 10019 else { 10020 if (this.validateProfileId == null) 10021 this.validateProfileId = new IdType(); 10022 this.validateProfileId.setValue(value); 10023 } 10024 return this; 10025 } 10026 10027 /** 10028 * @return {@link #value} (The value to compare to.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value 10029 */ 10030 public StringType getValueElement() { 10031 if (this.value == null) 10032 if (Configuration.errorOnAutoCreate()) 10033 throw new Error("Attempt to auto-create SetupActionAssertComponent.value"); 10034 else if (Configuration.doAutoCreate()) 10035 this.value = new StringType(); // bb 10036 return this.value; 10037 } 10038 10039 public boolean hasValueElement() { 10040 return this.value != null && !this.value.isEmpty(); 10041 } 10042 10043 public boolean hasValue() { 10044 return this.value != null && !this.value.isEmpty(); 10045 } 10046 10047 /** 10048 * @param value {@link #value} (The value to compare to.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value 10049 */ 10050 public SetupActionAssertComponent setValueElement(StringType value) { 10051 this.value = value; 10052 return this; 10053 } 10054 10055 /** 10056 * @return The value to compare to. 10057 */ 10058 public String getValue() { 10059 return this.value == null ? null : this.value.getValue(); 10060 } 10061 10062 /** 10063 * @param value The value to compare to. 10064 */ 10065 public SetupActionAssertComponent setValue(String value) { 10066 if (Utilities.noString(value)) 10067 this.value = null; 10068 else { 10069 if (this.value == null) 10070 this.value = new StringType(); 10071 this.value.setValue(value); 10072 } 10073 return this; 10074 } 10075 10076 /** 10077 * @return {@link #warningOnly} (Whether or not the test execution will produce a warning only on error for this assert.). This is the underlying object with id, value and extensions. The accessor "getWarningOnly" gives direct access to the value 10078 */ 10079 public BooleanType getWarningOnlyElement() { 10080 if (this.warningOnly == null) 10081 if (Configuration.errorOnAutoCreate()) 10082 throw new Error("Attempt to auto-create SetupActionAssertComponent.warningOnly"); 10083 else if (Configuration.doAutoCreate()) 10084 this.warningOnly = new BooleanType(); // bb 10085 return this.warningOnly; 10086 } 10087 10088 public boolean hasWarningOnlyElement() { 10089 return this.warningOnly != null && !this.warningOnly.isEmpty(); 10090 } 10091 10092 public boolean hasWarningOnly() { 10093 return this.warningOnly != null && !this.warningOnly.isEmpty(); 10094 } 10095 10096 /** 10097 * @param value {@link #warningOnly} (Whether or not the test execution will produce a warning only on error for this assert.). This is the underlying object with id, value and extensions. The accessor "getWarningOnly" gives direct access to the value 10098 */ 10099 public SetupActionAssertComponent setWarningOnlyElement(BooleanType value) { 10100 this.warningOnly = value; 10101 return this; 10102 } 10103 10104 /** 10105 * @return Whether or not the test execution will produce a warning only on error for this assert. 10106 */ 10107 public boolean getWarningOnly() { 10108 return this.warningOnly == null || this.warningOnly.isEmpty() ? false : this.warningOnly.getValue(); 10109 } 10110 10111 /** 10112 * @param value Whether or not the test execution will produce a warning only on error for this assert. 10113 */ 10114 public SetupActionAssertComponent setWarningOnly(boolean value) { 10115 if (this.warningOnly == null) 10116 this.warningOnly = new BooleanType(); 10117 this.warningOnly.setValue(value); 10118 return this; 10119 } 10120 10121 protected void listChildren(List<Property> children) { 10122 super.listChildren(children); 10123 children.add(new Property("label", "string", "The label would be used for tracking/logging purposes by test engines.", 0, 1, label)); 10124 children.add(new Property("description", "string", "The description would be used by test engines for tracking and reporting purposes.", 0, 1, description)); 10125 children.add(new Property("direction", "code", "The direction to use for the assertion.", 0, 1, direction)); 10126 children.add(new Property("compareToSourceId", "string", "Id of the source fixture used as the contents to be evaluated by either the \"source/expression\" or \"sourceId/path\" definition.", 0, 1, compareToSourceId)); 10127 children.add(new Property("compareToSourceExpression", "string", "The FHIRPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both.", 0, 1, compareToSourceExpression)); 10128 children.add(new Property("compareToSourcePath", "string", "XPath or JSONPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both.", 0, 1, compareToSourcePath)); 10129 children.add(new Property("contentType", "code", "The mime-type contents to compare against the request or response message 'Content-Type' header.", 0, 1, contentType)); 10130 children.add(new Property("expression", "string", "The FHIRPath expression to be evaluated against the request or response message contents - HTTP headers and payload.", 0, 1, expression)); 10131 children.add(new Property("headerField", "string", "The HTTP header field name e.g. 'Location'.", 0, 1, headerField)); 10132 children.add(new Property("minimumId", "string", "The ID of a fixture. Asserts that the response contains at a minimum the fixture specified by minimumId.", 0, 1, minimumId)); 10133 children.add(new Property("navigationLinks", "boolean", "Whether or not the test execution performs validation on the bundle navigation links.", 0, 1, navigationLinks)); 10134 children.add(new Property("operator", "code", "The operator type defines the conditional behavior of the assert. If not defined, the default is equals.", 0, 1, operator)); 10135 children.add(new Property("path", "string", "The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server.", 0, 1, path)); 10136 children.add(new Property("requestMethod", "code", "The request method or HTTP operation code to compare against that used by the client system under test.", 0, 1, requestMethod)); 10137 children.add(new Property("requestURL", "string", "The value to use in a comparison against the request URL path string.", 0, 1, requestURL)); 10138 children.add(new Property("resource", "code", "The type of the resource. See http://build.fhir.org/resourcelist.html.", 0, 1, resource)); 10139 children.add(new Property("response", "code", "okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable.", 0, 1, response)); 10140 children.add(new Property("responseCode", "string", "The value of the HTTP response code to be tested.", 0, 1, responseCode)); 10141 children.add(new Property("sourceId", "id", "Fixture to evaluate the XPath/JSONPath expression or the headerField against.", 0, 1, sourceId)); 10142 children.add(new Property("validateProfileId", "id", "The ID of the Profile to validate against.", 0, 1, validateProfileId)); 10143 children.add(new Property("value", "string", "The value to compare to.", 0, 1, value)); 10144 children.add(new Property("warningOnly", "boolean", "Whether or not the test execution will produce a warning only on error for this assert.", 0, 1, warningOnly)); 10145 } 10146 10147 @Override 10148 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 10149 switch (_hash) { 10150 case 102727412: /*label*/ return new Property("label", "string", "The label would be used for tracking/logging purposes by test engines.", 0, 1, label); 10151 case -1724546052: /*description*/ return new Property("description", "string", "The description would be used by test engines for tracking and reporting purposes.", 0, 1, description); 10152 case -962590849: /*direction*/ return new Property("direction", "code", "The direction to use for the assertion.", 0, 1, direction); 10153 case 2081856758: /*compareToSourceId*/ return new Property("compareToSourceId", "string", "Id of the source fixture used as the contents to be evaluated by either the \"source/expression\" or \"sourceId/path\" definition.", 0, 1, compareToSourceId); 10154 case -1415702669: /*compareToSourceExpression*/ return new Property("compareToSourceExpression", "string", "The FHIRPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both.", 0, 1, compareToSourceExpression); 10155 case -790206144: /*compareToSourcePath*/ return new Property("compareToSourcePath", "string", "XPath or JSONPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both.", 0, 1, compareToSourcePath); 10156 case -389131437: /*contentType*/ return new Property("contentType", "code", "The mime-type contents to compare against the request or response message 'Content-Type' header.", 0, 1, contentType); 10157 case -1795452264: /*expression*/ return new Property("expression", "string", "The FHIRPath expression to be evaluated against the request or response message contents - HTTP headers and payload.", 0, 1, expression); 10158 case 1160732269: /*headerField*/ return new Property("headerField", "string", "The HTTP header field name e.g. 'Location'.", 0, 1, headerField); 10159 case 818925001: /*minimumId*/ return new Property("minimumId", "string", "The ID of a fixture. Asserts that the response contains at a minimum the fixture specified by minimumId.", 0, 1, minimumId); 10160 case 1001488901: /*navigationLinks*/ return new Property("navigationLinks", "boolean", "Whether or not the test execution performs validation on the bundle navigation links.", 0, 1, navigationLinks); 10161 case -500553564: /*operator*/ return new Property("operator", "code", "The operator type defines the conditional behavior of the assert. If not defined, the default is equals.", 0, 1, operator); 10162 case 3433509: /*path*/ return new Property("path", "string", "The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server.", 0, 1, path); 10163 case 1217874000: /*requestMethod*/ return new Property("requestMethod", "code", "The request method or HTTP operation code to compare against that used by the client system under test.", 0, 1, requestMethod); 10164 case 37099616: /*requestURL*/ return new Property("requestURL", "string", "The value to use in a comparison against the request URL path string.", 0, 1, requestURL); 10165 case -341064690: /*resource*/ return new Property("resource", "code", "The type of the resource. See http://build.fhir.org/resourcelist.html.", 0, 1, resource); 10166 case -340323263: /*response*/ return new Property("response", "code", "okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable.", 0, 1, response); 10167 case 1438723534: /*responseCode*/ return new Property("responseCode", "string", "The value of the HTTP response code to be tested.", 0, 1, responseCode); 10168 case 1746327190: /*sourceId*/ return new Property("sourceId", "id", "Fixture to evaluate the XPath/JSONPath expression or the headerField against.", 0, 1, sourceId); 10169 case 1555541038: /*validateProfileId*/ return new Property("validateProfileId", "id", "The ID of the Profile to validate against.", 0, 1, validateProfileId); 10170 case 111972721: /*value*/ return new Property("value", "string", "The value to compare to.", 0, 1, value); 10171 case -481159832: /*warningOnly*/ return new Property("warningOnly", "boolean", "Whether or not the test execution will produce a warning only on error for this assert.", 0, 1, warningOnly); 10172 default: return super.getNamedProperty(_hash, _name, _checkValid); 10173 } 10174 10175 } 10176 10177 @Override 10178 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 10179 switch (hash) { 10180 case 102727412: /*label*/ return this.label == null ? new Base[0] : new Base[] {this.label}; // StringType 10181 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 10182 case -962590849: /*direction*/ return this.direction == null ? new Base[0] : new Base[] {this.direction}; // Enumeration<AssertionDirectionType> 10183 case 2081856758: /*compareToSourceId*/ return this.compareToSourceId == null ? new Base[0] : new Base[] {this.compareToSourceId}; // StringType 10184 case -1415702669: /*compareToSourceExpression*/ return this.compareToSourceExpression == null ? new Base[0] : new Base[] {this.compareToSourceExpression}; // StringType 10185 case -790206144: /*compareToSourcePath*/ return this.compareToSourcePath == null ? new Base[0] : new Base[] {this.compareToSourcePath}; // StringType 10186 case -389131437: /*contentType*/ return this.contentType == null ? new Base[0] : new Base[] {this.contentType}; // CodeType 10187 case -1795452264: /*expression*/ return this.expression == null ? new Base[0] : new Base[] {this.expression}; // StringType 10188 case 1160732269: /*headerField*/ return this.headerField == null ? new Base[0] : new Base[] {this.headerField}; // StringType 10189 case 818925001: /*minimumId*/ return this.minimumId == null ? new Base[0] : new Base[] {this.minimumId}; // StringType 10190 case 1001488901: /*navigationLinks*/ return this.navigationLinks == null ? new Base[0] : new Base[] {this.navigationLinks}; // BooleanType 10191 case -500553564: /*operator*/ return this.operator == null ? new Base[0] : new Base[] {this.operator}; // Enumeration<AssertionOperatorType> 10192 case 3433509: /*path*/ return this.path == null ? new Base[0] : new Base[] {this.path}; // StringType 10193 case 1217874000: /*requestMethod*/ return this.requestMethod == null ? new Base[0] : new Base[] {this.requestMethod}; // Enumeration<TestScriptRequestMethodCode> 10194 case 37099616: /*requestURL*/ return this.requestURL == null ? new Base[0] : new Base[] {this.requestURL}; // StringType 10195 case -341064690: /*resource*/ return this.resource == null ? new Base[0] : new Base[] {this.resource}; // Enumeration<FHIRDefinedType> 10196 case -340323263: /*response*/ return this.response == null ? new Base[0] : new Base[] {this.response}; // Enumeration<AssertionResponseTypes> 10197 case 1438723534: /*responseCode*/ return this.responseCode == null ? new Base[0] : new Base[] {this.responseCode}; // StringType 10198 case 1746327190: /*sourceId*/ return this.sourceId == null ? new Base[0] : new Base[] {this.sourceId}; // IdType 10199 case 1555541038: /*validateProfileId*/ return this.validateProfileId == null ? new Base[0] : new Base[] {this.validateProfileId}; // IdType 10200 case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // StringType 10201 case -481159832: /*warningOnly*/ return this.warningOnly == null ? new Base[0] : new Base[] {this.warningOnly}; // BooleanType 10202 default: return super.getProperty(hash, name, checkValid); 10203 } 10204 10205 } 10206 10207 @Override 10208 public Base setProperty(int hash, String name, Base value) throws FHIRException { 10209 switch (hash) { 10210 case 102727412: // label 10211 this.label = TypeConvertor.castToString(value); // StringType 10212 return value; 10213 case -1724546052: // description 10214 this.description = TypeConvertor.castToString(value); // StringType 10215 return value; 10216 case -962590849: // direction 10217 value = new AssertionDirectionTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); 10218 this.direction = (Enumeration) value; // Enumeration<AssertionDirectionType> 10219 return value; 10220 case 2081856758: // compareToSourceId 10221 this.compareToSourceId = TypeConvertor.castToString(value); // StringType 10222 return value; 10223 case -1415702669: // compareToSourceExpression 10224 this.compareToSourceExpression = TypeConvertor.castToString(value); // StringType 10225 return value; 10226 case -790206144: // compareToSourcePath 10227 this.compareToSourcePath = TypeConvertor.castToString(value); // StringType 10228 return value; 10229 case -389131437: // contentType 10230 this.contentType = TypeConvertor.castToCode(value); // CodeType 10231 return value; 10232 case -1795452264: // expression 10233 this.expression = TypeConvertor.castToString(value); // StringType 10234 return value; 10235 case 1160732269: // headerField 10236 this.headerField = TypeConvertor.castToString(value); // StringType 10237 return value; 10238 case 818925001: // minimumId 10239 this.minimumId = TypeConvertor.castToString(value); // StringType 10240 return value; 10241 case 1001488901: // navigationLinks 10242 this.navigationLinks = TypeConvertor.castToBoolean(value); // BooleanType 10243 return value; 10244 case -500553564: // operator 10245 value = new AssertionOperatorTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); 10246 this.operator = (Enumeration) value; // Enumeration<AssertionOperatorType> 10247 return value; 10248 case 3433509: // path 10249 this.path = TypeConvertor.castToString(value); // StringType 10250 return value; 10251 case 1217874000: // requestMethod 10252 value = new TestScriptRequestMethodCodeEnumFactory().fromType(TypeConvertor.castToCode(value)); 10253 this.requestMethod = (Enumeration) value; // Enumeration<TestScriptRequestMethodCode> 10254 return value; 10255 case 37099616: // requestURL 10256 this.requestURL = TypeConvertor.castToString(value); // StringType 10257 return value; 10258 case -341064690: // resource 10259 value = new FHIRDefinedTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); 10260 this.resource = (Enumeration) value; // Enumeration<FHIRDefinedType> 10261 return value; 10262 case -340323263: // response 10263 value = new AssertionResponseTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); 10264 this.response = (Enumeration) value; // Enumeration<AssertionResponseTypes> 10265 return value; 10266 case 1438723534: // responseCode 10267 this.responseCode = TypeConvertor.castToString(value); // StringType 10268 return value; 10269 case 1746327190: // sourceId 10270 this.sourceId = TypeConvertor.castToId(value); // IdType 10271 return value; 10272 case 1555541038: // validateProfileId 10273 this.validateProfileId = TypeConvertor.castToId(value); // IdType 10274 return value; 10275 case 111972721: // value 10276 this.value = TypeConvertor.castToString(value); // StringType 10277 return value; 10278 case -481159832: // warningOnly 10279 this.warningOnly = TypeConvertor.castToBoolean(value); // BooleanType 10280 return value; 10281 default: return super.setProperty(hash, name, value); 10282 } 10283 10284 } 10285 10286 @Override 10287 public Base setProperty(String name, Base value) throws FHIRException { 10288 if (name.equals("label")) { 10289 this.label = TypeConvertor.castToString(value); // StringType 10290 } else if (name.equals("description")) { 10291 this.description = TypeConvertor.castToString(value); // StringType 10292 } else if (name.equals("direction")) { 10293 value = new AssertionDirectionTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); 10294 this.direction = (Enumeration) value; // Enumeration<AssertionDirectionType> 10295 } else if (name.equals("compareToSourceId")) { 10296 this.compareToSourceId = TypeConvertor.castToString(value); // StringType 10297 } else if (name.equals("compareToSourceExpression")) { 10298 this.compareToSourceExpression = TypeConvertor.castToString(value); // StringType 10299 } else if (name.equals("compareToSourcePath")) { 10300 this.compareToSourcePath = TypeConvertor.castToString(value); // StringType 10301 } else if (name.equals("contentType")) { 10302 this.contentType = TypeConvertor.castToCode(value); // CodeType 10303 } else if (name.equals("expression")) { 10304 this.expression = TypeConvertor.castToString(value); // StringType 10305 } else if (name.equals("headerField")) { 10306 this.headerField = TypeConvertor.castToString(value); // StringType 10307 } else if (name.equals("minimumId")) { 10308 this.minimumId = TypeConvertor.castToString(value); // StringType 10309 } else if (name.equals("navigationLinks")) { 10310 this.navigationLinks = TypeConvertor.castToBoolean(value); // BooleanType 10311 } else if (name.equals("operator")) { 10312 value = new AssertionOperatorTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); 10313 this.operator = (Enumeration) value; // Enumeration<AssertionOperatorType> 10314 } else if (name.equals("path")) { 10315 this.path = TypeConvertor.castToString(value); // StringType 10316 } else if (name.equals("requestMethod")) { 10317 value = new TestScriptRequestMethodCodeEnumFactory().fromType(TypeConvertor.castToCode(value)); 10318 this.requestMethod = (Enumeration) value; // Enumeration<TestScriptRequestMethodCode> 10319 } else if (name.equals("requestURL")) { 10320 this.requestURL = TypeConvertor.castToString(value); // StringType 10321 } else if (name.equals("resource")) { 10322 value = new FHIRDefinedTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); 10323 this.resource = (Enumeration) value; // Enumeration<FHIRDefinedType> 10324 } else if (name.equals("response")) { 10325 value = new AssertionResponseTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); 10326 this.response = (Enumeration) value; // Enumeration<AssertionResponseTypes> 10327 } else if (name.equals("responseCode")) { 10328 this.responseCode = TypeConvertor.castToString(value); // StringType 10329 } else if (name.equals("sourceId")) { 10330 this.sourceId = TypeConvertor.castToId(value); // IdType 10331 } else if (name.equals("validateProfileId")) { 10332 this.validateProfileId = TypeConvertor.castToId(value); // IdType 10333 } else if (name.equals("value")) { 10334 this.value = TypeConvertor.castToString(value); // StringType 10335 } else if (name.equals("warningOnly")) { 10336 this.warningOnly = TypeConvertor.castToBoolean(value); // BooleanType 10337 } else 10338 return super.setProperty(name, value); 10339 return value; 10340 } 10341 10342 @Override 10343 public Base makeProperty(int hash, String name) throws FHIRException { 10344 switch (hash) { 10345 case 102727412: return getLabelElement(); 10346 case -1724546052: return getDescriptionElement(); 10347 case -962590849: return getDirectionElement(); 10348 case 2081856758: return getCompareToSourceIdElement(); 10349 case -1415702669: return getCompareToSourceExpressionElement(); 10350 case -790206144: return getCompareToSourcePathElement(); 10351 case -389131437: return getContentTypeElement(); 10352 case -1795452264: return getExpressionElement(); 10353 case 1160732269: return getHeaderFieldElement(); 10354 case 818925001: return getMinimumIdElement(); 10355 case 1001488901: return getNavigationLinksElement(); 10356 case -500553564: return getOperatorElement(); 10357 case 3433509: return getPathElement(); 10358 case 1217874000: return getRequestMethodElement(); 10359 case 37099616: return getRequestURLElement(); 10360 case -341064690: return getResourceElement(); 10361 case -340323263: return getResponseElement(); 10362 case 1438723534: return getResponseCodeElement(); 10363 case 1746327190: return getSourceIdElement(); 10364 case 1555541038: return getValidateProfileIdElement(); 10365 case 111972721: return getValueElement(); 10366 case -481159832: return getWarningOnlyElement(); 10367 default: return super.makeProperty(hash, name); 10368 } 10369 10370 } 10371 10372 @Override 10373 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 10374 switch (hash) { 10375 case 102727412: /*label*/ return new String[] {"string"}; 10376 case -1724546052: /*description*/ return new String[] {"string"}; 10377 case -962590849: /*direction*/ return new String[] {"code"}; 10378 case 2081856758: /*compareToSourceId*/ return new String[] {"string"}; 10379 case -1415702669: /*compareToSourceExpression*/ return new String[] {"string"}; 10380 case -790206144: /*compareToSourcePath*/ return new String[] {"string"}; 10381 case -389131437: /*contentType*/ return new String[] {"code"}; 10382 case -1795452264: /*expression*/ return new String[] {"string"}; 10383 case 1160732269: /*headerField*/ return new String[] {"string"}; 10384 case 818925001: /*minimumId*/ return new String[] {"string"}; 10385 case 1001488901: /*navigationLinks*/ return new String[] {"boolean"}; 10386 case -500553564: /*operator*/ return new String[] {"code"}; 10387 case 3433509: /*path*/ return new String[] {"string"}; 10388 case 1217874000: /*requestMethod*/ return new String[] {"code"}; 10389 case 37099616: /*requestURL*/ return new String[] {"string"}; 10390 case -341064690: /*resource*/ return new String[] {"code"}; 10391 case -340323263: /*response*/ return new String[] {"code"}; 10392 case 1438723534: /*responseCode*/ return new String[] {"string"}; 10393 case 1746327190: /*sourceId*/ return new String[] {"id"}; 10394 case 1555541038: /*validateProfileId*/ return new String[] {"id"}; 10395 case 111972721: /*value*/ return new String[] {"string"}; 10396 case -481159832: /*warningOnly*/ return new String[] {"boolean"}; 10397 default: return super.getTypesForProperty(hash, name); 10398 } 10399 10400 } 10401 10402 @Override 10403 public Base addChild(String name) throws FHIRException { 10404 if (name.equals("label")) { 10405 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.label"); 10406 } 10407 else if (name.equals("description")) { 10408 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.description"); 10409 } 10410 else if (name.equals("direction")) { 10411 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.direction"); 10412 } 10413 else if (name.equals("compareToSourceId")) { 10414 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.compareToSourceId"); 10415 } 10416 else if (name.equals("compareToSourceExpression")) { 10417 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.compareToSourceExpression"); 10418 } 10419 else if (name.equals("compareToSourcePath")) { 10420 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.compareToSourcePath"); 10421 } 10422 else if (name.equals("contentType")) { 10423 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.contentType"); 10424 } 10425 else if (name.equals("expression")) { 10426 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.expression"); 10427 } 10428 else if (name.equals("headerField")) { 10429 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.headerField"); 10430 } 10431 else if (name.equals("minimumId")) { 10432 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.minimumId"); 10433 } 10434 else if (name.equals("navigationLinks")) { 10435 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.navigationLinks"); 10436 } 10437 else if (name.equals("operator")) { 10438 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.operator"); 10439 } 10440 else if (name.equals("path")) { 10441 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.path"); 10442 } 10443 else if (name.equals("requestMethod")) { 10444 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.requestMethod"); 10445 } 10446 else if (name.equals("requestURL")) { 10447 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.requestURL"); 10448 } 10449 else if (name.equals("resource")) { 10450 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.resource"); 10451 } 10452 else if (name.equals("response")) { 10453 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.response"); 10454 } 10455 else if (name.equals("responseCode")) { 10456 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.responseCode"); 10457 } 10458 else if (name.equals("sourceId")) { 10459 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.sourceId"); 10460 } 10461 else if (name.equals("validateProfileId")) { 10462 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.validateProfileId"); 10463 } 10464 else if (name.equals("value")) { 10465 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.value"); 10466 } 10467 else if (name.equals("warningOnly")) { 10468 throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.warningOnly"); 10469 } 10470 else 10471 return super.addChild(name); 10472 } 10473 10474 public SetupActionAssertComponent copy() { 10475 SetupActionAssertComponent dst = new SetupActionAssertComponent(); 10476 copyValues(dst); 10477 return dst; 10478 } 10479 10480 public void copyValues(SetupActionAssertComponent dst) { 10481 super.copyValues(dst); 10482 dst.label = label == null ? null : label.copy(); 10483 dst.description = description == null ? null : description.copy(); 10484 dst.direction = direction == null ? null : direction.copy(); 10485 dst.compareToSourceId = compareToSourceId == null ? null : compareToSourceId.copy(); 10486 dst.compareToSourceExpression = compareToSourceExpression == null ? null : compareToSourceExpression.copy(); 10487 dst.compareToSourcePath = compareToSourcePath == null ? null : compareToSourcePath.copy(); 10488 dst.contentType = contentType == null ? null : contentType.copy(); 10489 dst.expression = expression == null ? null : expression.copy(); 10490 dst.headerField = headerField == null ? null : headerField.copy(); 10491 dst.minimumId = minimumId == null ? null : minimumId.copy(); 10492 dst.navigationLinks = navigationLinks == null ? null : navigationLinks.copy(); 10493 dst.operator = operator == null ? null : operator.copy(); 10494 dst.path = path == null ? null : path.copy(); 10495 dst.requestMethod = requestMethod == null ? null : requestMethod.copy(); 10496 dst.requestURL = requestURL == null ? null : requestURL.copy(); 10497 dst.resource = resource == null ? null : resource.copy(); 10498 dst.response = response == null ? null : response.copy(); 10499 dst.responseCode = responseCode == null ? null : responseCode.copy(); 10500 dst.sourceId = sourceId == null ? null : sourceId.copy(); 10501 dst.validateProfileId = validateProfileId == null ? null : validateProfileId.copy(); 10502 dst.value = value == null ? null : value.copy(); 10503 dst.warningOnly = warningOnly == null ? null : warningOnly.copy(); 10504 } 10505 10506 @Override 10507 public boolean equalsDeep(Base other_) { 10508 if (!super.equalsDeep(other_)) 10509 return false; 10510 if (!(other_ instanceof SetupActionAssertComponent)) 10511 return false; 10512 SetupActionAssertComponent o = (SetupActionAssertComponent) other_; 10513 return compareDeep(label, o.label, true) && compareDeep(description, o.description, true) && compareDeep(direction, o.direction, true) 10514 && compareDeep(compareToSourceId, o.compareToSourceId, true) && compareDeep(compareToSourceExpression, o.compareToSourceExpression, true) 10515 && compareDeep(compareToSourcePath, o.compareToSourcePath, true) && compareDeep(contentType, o.contentType, true) 10516 && compareDeep(expression, o.expression, true) && compareDeep(headerField, o.headerField, true) 10517 && compareDeep(minimumId, o.minimumId, true) && compareDeep(navigationLinks, o.navigationLinks, true) 10518 && compareDeep(operator, o.operator, true) && compareDeep(path, o.path, true) && compareDeep(requestMethod, o.requestMethod, true) 10519 && compareDeep(requestURL, o.requestURL, true) && compareDeep(resource, o.resource, true) && compareDeep(response, o.response, true) 10520 && compareDeep(responseCode, o.responseCode, true) && compareDeep(sourceId, o.sourceId, true) && compareDeep(validateProfileId, o.validateProfileId, true) 10521 && compareDeep(value, o.value, true) && compareDeep(warningOnly, o.warningOnly, true); 10522 } 10523 10524 @Override 10525 public boolean equalsShallow(Base other_) { 10526 if (!super.equalsShallow(other_)) 10527 return false; 10528 if (!(other_ instanceof SetupActionAssertComponent)) 10529 return false; 10530 SetupActionAssertComponent o = (SetupActionAssertComponent) other_; 10531 return compareValues(label, o.label, true) && compareValues(description, o.description, true) && compareValues(direction, o.direction, true) 10532 && compareValues(compareToSourceId, o.compareToSourceId, true) && compareValues(compareToSourceExpression, o.compareToSourceExpression, true) 10533 && compareValues(compareToSourcePath, o.compareToSourcePath, true) && compareValues(contentType, o.contentType, true) 10534 && compareValues(expression, o.expression, true) && compareValues(headerField, o.headerField, true) 10535 && compareValues(minimumId, o.minimumId, true) && compareValues(navigationLinks, o.navigationLinks, true) 10536 && compareValues(operator, o.operator, true) && compareValues(path, o.path, true) && compareValues(requestMethod, o.requestMethod, true) 10537 && compareValues(requestURL, o.requestURL, true) && compareValues(resource, o.resource, true) && compareValues(response, o.response, true) 10538 && compareValues(responseCode, o.responseCode, true) && compareValues(sourceId, o.sourceId, true) && compareValues(validateProfileId, o.validateProfileId, true) 10539 && compareValues(value, o.value, true) && compareValues(warningOnly, o.warningOnly, true); 10540 } 10541 10542 public boolean isEmpty() { 10543 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(label, description, direction 10544 , compareToSourceId, compareToSourceExpression, compareToSourcePath, contentType, expression 10545 , headerField, minimumId, navigationLinks, operator, path, requestMethod, requestURL 10546 , resource, response, responseCode, sourceId, validateProfileId, value, warningOnly 10547 ); 10548 } 10549 10550 public String fhirType() { 10551 return "TestScript.setup.action.assert"; 10552 10553 } 10554 10555 } 10556 10557 @Block() 10558 public static class TestScriptTestComponent extends BackboneElement implements IBaseBackboneElement { 10559 /** 10560 * The name of this test used for tracking/logging purposes by test engines. 10561 */ 10562 @Child(name = "name", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) 10563 @Description(shortDefinition="Tracking/logging name of this test", formalDefinition="The name of this test used for tracking/logging purposes by test engines." ) 10564 protected StringType name; 10565 10566 /** 10567 * A short description of the test used by test engines for tracking and reporting purposes. 10568 */ 10569 @Child(name = "description", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) 10570 @Description(shortDefinition="Tracking/reporting short description of the test", formalDefinition="A short description of the test used by test engines for tracking and reporting purposes." ) 10571 protected StringType description; 10572 10573 /** 10574 * Action would contain either an operation or an assertion. 10575 */ 10576 @Child(name = "action", type = {}, order=3, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 10577 @Description(shortDefinition="A test operation or assert to perform", formalDefinition="Action would contain either an operation or an assertion." ) 10578 protected List<TestActionComponent> action; 10579 10580 private static final long serialVersionUID = -865006110L; 10581 10582 /** 10583 * Constructor 10584 */ 10585 public TestScriptTestComponent() { 10586 super(); 10587 } 10588 10589 /** 10590 * Constructor 10591 */ 10592 public TestScriptTestComponent(TestActionComponent action) { 10593 super(); 10594 this.addAction(action); 10595 } 10596 10597 /** 10598 * @return {@link #name} (The name of this test used for tracking/logging purposes by test engines.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 10599 */ 10600 public StringType getNameElement() { 10601 if (this.name == null) 10602 if (Configuration.errorOnAutoCreate()) 10603 throw new Error("Attempt to auto-create TestScriptTestComponent.name"); 10604 else if (Configuration.doAutoCreate()) 10605 this.name = new StringType(); // bb 10606 return this.name; 10607 } 10608 10609 public boolean hasNameElement() { 10610 return this.name != null && !this.name.isEmpty(); 10611 } 10612 10613 public boolean hasName() { 10614 return this.name != null && !this.name.isEmpty(); 10615 } 10616 10617 /** 10618 * @param value {@link #name} (The name of this test used for tracking/logging purposes by test engines.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 10619 */ 10620 public TestScriptTestComponent setNameElement(StringType value) { 10621 this.name = value; 10622 return this; 10623 } 10624 10625 /** 10626 * @return The name of this test used for tracking/logging purposes by test engines. 10627 */ 10628 public String getName() { 10629 return this.name == null ? null : this.name.getValue(); 10630 } 10631 10632 /** 10633 * @param value The name of this test used for tracking/logging purposes by test engines. 10634 */ 10635 public TestScriptTestComponent setName(String value) { 10636 if (Utilities.noString(value)) 10637 this.name = null; 10638 else { 10639 if (this.name == null) 10640 this.name = new StringType(); 10641 this.name.setValue(value); 10642 } 10643 return this; 10644 } 10645 10646 /** 10647 * @return {@link #description} (A short description of the test used by test engines for tracking and reporting purposes.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 10648 */ 10649 public StringType getDescriptionElement() { 10650 if (this.description == null) 10651 if (Configuration.errorOnAutoCreate()) 10652 throw new Error("Attempt to auto-create TestScriptTestComponent.description"); 10653 else if (Configuration.doAutoCreate()) 10654 this.description = new StringType(); // bb 10655 return this.description; 10656 } 10657 10658 public boolean hasDescriptionElement() { 10659 return this.description != null && !this.description.isEmpty(); 10660 } 10661 10662 public boolean hasDescription() { 10663 return this.description != null && !this.description.isEmpty(); 10664 } 10665 10666 /** 10667 * @param value {@link #description} (A short description of the test used by test engines for tracking and reporting purposes.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 10668 */ 10669 public TestScriptTestComponent setDescriptionElement(StringType value) { 10670 this.description = value; 10671 return this; 10672 } 10673 10674 /** 10675 * @return A short description of the test used by test engines for tracking and reporting purposes. 10676 */ 10677 public String getDescription() { 10678 return this.description == null ? null : this.description.getValue(); 10679 } 10680 10681 /** 10682 * @param value A short description of the test used by test engines for tracking and reporting purposes. 10683 */ 10684 public TestScriptTestComponent setDescription(String value) { 10685 if (Utilities.noString(value)) 10686 this.description = null; 10687 else { 10688 if (this.description == null) 10689 this.description = new StringType(); 10690 this.description.setValue(value); 10691 } 10692 return this; 10693 } 10694 10695 /** 10696 * @return {@link #action} (Action would contain either an operation or an assertion.) 10697 */ 10698 public List<TestActionComponent> getAction() { 10699 if (this.action == null) 10700 this.action = new ArrayList<TestActionComponent>(); 10701 return this.action; 10702 } 10703 10704 /** 10705 * @return Returns a reference to <code>this</code> for easy method chaining 10706 */ 10707 public TestScriptTestComponent setAction(List<TestActionComponent> theAction) { 10708 this.action = theAction; 10709 return this; 10710 } 10711 10712 public boolean hasAction() { 10713 if (this.action == null) 10714 return false; 10715 for (TestActionComponent item : this.action) 10716 if (!item.isEmpty()) 10717 return true; 10718 return false; 10719 } 10720 10721 public TestActionComponent addAction() { //3 10722 TestActionComponent t = new TestActionComponent(); 10723 if (this.action == null) 10724 this.action = new ArrayList<TestActionComponent>(); 10725 this.action.add(t); 10726 return t; 10727 } 10728 10729 public TestScriptTestComponent addAction(TestActionComponent t) { //3 10730 if (t == null) 10731 return this; 10732 if (this.action == null) 10733 this.action = new ArrayList<TestActionComponent>(); 10734 this.action.add(t); 10735 return this; 10736 } 10737 10738 /** 10739 * @return The first repetition of repeating field {@link #action}, creating it if it does not already exist {3} 10740 */ 10741 public TestActionComponent getActionFirstRep() { 10742 if (getAction().isEmpty()) { 10743 addAction(); 10744 } 10745 return getAction().get(0); 10746 } 10747 10748 protected void listChildren(List<Property> children) { 10749 super.listChildren(children); 10750 children.add(new Property("name", "string", "The name of this test used for tracking/logging purposes by test engines.", 0, 1, name)); 10751 children.add(new Property("description", "string", "A short description of the test used by test engines for tracking and reporting purposes.", 0, 1, description)); 10752 children.add(new Property("action", "", "Action would contain either an operation or an assertion.", 0, java.lang.Integer.MAX_VALUE, action)); 10753 } 10754 10755 @Override 10756 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 10757 switch (_hash) { 10758 case 3373707: /*name*/ return new Property("name", "string", "The name of this test used for tracking/logging purposes by test engines.", 0, 1, name); 10759 case -1724546052: /*description*/ return new Property("description", "string", "A short description of the test used by test engines for tracking and reporting purposes.", 0, 1, description); 10760 case -1422950858: /*action*/ return new Property("action", "", "Action would contain either an operation or an assertion.", 0, java.lang.Integer.MAX_VALUE, action); 10761 default: return super.getNamedProperty(_hash, _name, _checkValid); 10762 } 10763 10764 } 10765 10766 @Override 10767 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 10768 switch (hash) { 10769 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 10770 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 10771 case -1422950858: /*action*/ return this.action == null ? new Base[0] : this.action.toArray(new Base[this.action.size()]); // TestActionComponent 10772 default: return super.getProperty(hash, name, checkValid); 10773 } 10774 10775 } 10776 10777 @Override 10778 public Base setProperty(int hash, String name, Base value) throws FHIRException { 10779 switch (hash) { 10780 case 3373707: // name 10781 this.name = TypeConvertor.castToString(value); // StringType 10782 return value; 10783 case -1724546052: // description 10784 this.description = TypeConvertor.castToString(value); // StringType 10785 return value; 10786 case -1422950858: // action 10787 this.getAction().add((TestActionComponent) value); // TestActionComponent 10788 return value; 10789 default: return super.setProperty(hash, name, value); 10790 } 10791 10792 } 10793 10794 @Override 10795 public Base setProperty(String name, Base value) throws FHIRException { 10796 if (name.equals("name")) { 10797 this.name = TypeConvertor.castToString(value); // StringType 10798 } else if (name.equals("description")) { 10799 this.description = TypeConvertor.castToString(value); // StringType 10800 } else if (name.equals("action")) { 10801 this.getAction().add((TestActionComponent) value); 10802 } else 10803 return super.setProperty(name, value); 10804 return value; 10805 } 10806 10807 @Override 10808 public Base makeProperty(int hash, String name) throws FHIRException { 10809 switch (hash) { 10810 case 3373707: return getNameElement(); 10811 case -1724546052: return getDescriptionElement(); 10812 case -1422950858: return addAction(); 10813 default: return super.makeProperty(hash, name); 10814 } 10815 10816 } 10817 10818 @Override 10819 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 10820 switch (hash) { 10821 case 3373707: /*name*/ return new String[] {"string"}; 10822 case -1724546052: /*description*/ return new String[] {"string"}; 10823 case -1422950858: /*action*/ return new String[] {}; 10824 default: return super.getTypesForProperty(hash, name); 10825 } 10826 10827 } 10828 10829 @Override 10830 public Base addChild(String name) throws FHIRException { 10831 if (name.equals("name")) { 10832 throw new FHIRException("Cannot call addChild on a primitive type TestScript.test.name"); 10833 } 10834 else if (name.equals("description")) { 10835 throw new FHIRException("Cannot call addChild on a primitive type TestScript.test.description"); 10836 } 10837 else if (name.equals("action")) { 10838 return addAction(); 10839 } 10840 else 10841 return super.addChild(name); 10842 } 10843 10844 public TestScriptTestComponent copy() { 10845 TestScriptTestComponent dst = new TestScriptTestComponent(); 10846 copyValues(dst); 10847 return dst; 10848 } 10849 10850 public void copyValues(TestScriptTestComponent dst) { 10851 super.copyValues(dst); 10852 dst.name = name == null ? null : name.copy(); 10853 dst.description = description == null ? null : description.copy(); 10854 if (action != null) { 10855 dst.action = new ArrayList<TestActionComponent>(); 10856 for (TestActionComponent i : action) 10857 dst.action.add(i.copy()); 10858 }; 10859 } 10860 10861 @Override 10862 public boolean equalsDeep(Base other_) { 10863 if (!super.equalsDeep(other_)) 10864 return false; 10865 if (!(other_ instanceof TestScriptTestComponent)) 10866 return false; 10867 TestScriptTestComponent o = (TestScriptTestComponent) other_; 10868 return compareDeep(name, o.name, true) && compareDeep(description, o.description, true) && compareDeep(action, o.action, true) 10869 ; 10870 } 10871 10872 @Override 10873 public boolean equalsShallow(Base other_) { 10874 if (!super.equalsShallow(other_)) 10875 return false; 10876 if (!(other_ instanceof TestScriptTestComponent)) 10877 return false; 10878 TestScriptTestComponent o = (TestScriptTestComponent) other_; 10879 return compareValues(name, o.name, true) && compareValues(description, o.description, true); 10880 } 10881 10882 public boolean isEmpty() { 10883 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, description, action 10884 ); 10885 } 10886 10887 public String fhirType() { 10888 return "TestScript.test"; 10889 10890 } 10891 10892 } 10893 10894 @Block() 10895 public static class TestActionComponent extends BackboneElement implements IBaseBackboneElement { 10896 /** 10897 * An operation would involve a REST request to a server. 10898 */ 10899 @Child(name = "operation", type = {SetupActionOperationComponent.class}, order=1, min=0, max=1, modifier=false, summary=false) 10900 @Description(shortDefinition="The setup operation to perform", formalDefinition="An operation would involve a REST request to a server." ) 10901 protected SetupActionOperationComponent operation; 10902 10903 /** 10904 * Evaluates the results of previous operations to determine if the server under test behaves appropriately. 10905 */ 10906 @Child(name = "assert", type = {SetupActionAssertComponent.class}, order=2, min=0, max=1, modifier=false, summary=false) 10907 @Description(shortDefinition="The setup assertion to perform", formalDefinition="Evaluates the results of previous operations to determine if the server under test behaves appropriately." ) 10908 protected SetupActionAssertComponent assert_; 10909 10910 private static final long serialVersionUID = -252088305L; 10911 10912 /** 10913 * Constructor 10914 */ 10915 public TestActionComponent() { 10916 super(); 10917 } 10918 10919 /** 10920 * @return {@link #operation} (An operation would involve a REST request to a server.) 10921 */ 10922 public SetupActionOperationComponent getOperation() { 10923 if (this.operation == null) 10924 if (Configuration.errorOnAutoCreate()) 10925 throw new Error("Attempt to auto-create TestActionComponent.operation"); 10926 else if (Configuration.doAutoCreate()) 10927 this.operation = new SetupActionOperationComponent(); // cc 10928 return this.operation; 10929 } 10930 10931 public boolean hasOperation() { 10932 return this.operation != null && !this.operation.isEmpty(); 10933 } 10934 10935 /** 10936 * @param value {@link #operation} (An operation would involve a REST request to a server.) 10937 */ 10938 public TestActionComponent setOperation(SetupActionOperationComponent value) { 10939 this.operation = value; 10940 return this; 10941 } 10942 10943 /** 10944 * @return {@link #assert_} (Evaluates the results of previous operations to determine if the server under test behaves appropriately.) 10945 */ 10946 public SetupActionAssertComponent getAssert() { 10947 if (this.assert_ == null) 10948 if (Configuration.errorOnAutoCreate()) 10949 throw new Error("Attempt to auto-create TestActionComponent.assert_"); 10950 else if (Configuration.doAutoCreate()) 10951 this.assert_ = new SetupActionAssertComponent(); // cc 10952 return this.assert_; 10953 } 10954 10955 public boolean hasAssert() { 10956 return this.assert_ != null && !this.assert_.isEmpty(); 10957 } 10958 10959 /** 10960 * @param value {@link #assert_} (Evaluates the results of previous operations to determine if the server under test behaves appropriately.) 10961 */ 10962 public TestActionComponent setAssert(SetupActionAssertComponent value) { 10963 this.assert_ = value; 10964 return this; 10965 } 10966 10967 protected void listChildren(List<Property> children) { 10968 super.listChildren(children); 10969 children.add(new Property("operation", "@TestScript.setup.action.operation", "An operation would involve a REST request to a server.", 0, 1, operation)); 10970 children.add(new Property("assert", "@TestScript.setup.action.assert", "Evaluates the results of previous operations to determine if the server under test behaves appropriately.", 0, 1, assert_)); 10971 } 10972 10973 @Override 10974 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 10975 switch (_hash) { 10976 case 1662702951: /*operation*/ return new Property("operation", "@TestScript.setup.action.operation", "An operation would involve a REST request to a server.", 0, 1, operation); 10977 case -1408208058: /*assert*/ return new Property("assert", "@TestScript.setup.action.assert", "Evaluates the results of previous operations to determine if the server under test behaves appropriately.", 0, 1, assert_); 10978 default: return super.getNamedProperty(_hash, _name, _checkValid); 10979 } 10980 10981 } 10982 10983 @Override 10984 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 10985 switch (hash) { 10986 case 1662702951: /*operation*/ return this.operation == null ? new Base[0] : new Base[] {this.operation}; // SetupActionOperationComponent 10987 case -1408208058: /*assert*/ return this.assert_ == null ? new Base[0] : new Base[] {this.assert_}; // SetupActionAssertComponent 10988 default: return super.getProperty(hash, name, checkValid); 10989 } 10990 10991 } 10992 10993 @Override 10994 public Base setProperty(int hash, String name, Base value) throws FHIRException { 10995 switch (hash) { 10996 case 1662702951: // operation 10997 this.operation = (SetupActionOperationComponent) value; // SetupActionOperationComponent 10998 return value; 10999 case -1408208058: // assert 11000 this.assert_ = (SetupActionAssertComponent) value; // SetupActionAssertComponent 11001 return value; 11002 default: return super.setProperty(hash, name, value); 11003 } 11004 11005 } 11006 11007 @Override 11008 public Base setProperty(String name, Base value) throws FHIRException { 11009 if (name.equals("operation")) { 11010 this.operation = (SetupActionOperationComponent) value; // SetupActionOperationComponent 11011 } else if (name.equals("assert")) { 11012 this.assert_ = (SetupActionAssertComponent) value; // SetupActionAssertComponent 11013 } else 11014 return super.setProperty(name, value); 11015 return value; 11016 } 11017 11018 @Override 11019 public Base makeProperty(int hash, String name) throws FHIRException { 11020 switch (hash) { 11021 case 1662702951: return getOperation(); 11022 case -1408208058: return getAssert(); 11023 default: return super.makeProperty(hash, name); 11024 } 11025 11026 } 11027 11028 @Override 11029 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 11030 switch (hash) { 11031 case 1662702951: /*operation*/ return new String[] {"@TestScript.setup.action.operation"}; 11032 case -1408208058: /*assert*/ return new String[] {"@TestScript.setup.action.assert"}; 11033 default: return super.getTypesForProperty(hash, name); 11034 } 11035 11036 } 11037 11038 @Override 11039 public Base addChild(String name) throws FHIRException { 11040 if (name.equals("operation")) { 11041 this.operation = new SetupActionOperationComponent(); 11042 return this.operation; 11043 } 11044 else if (name.equals("assert")) { 11045 this.assert_ = new SetupActionAssertComponent(); 11046 return this.assert_; 11047 } 11048 else 11049 return super.addChild(name); 11050 } 11051 11052 public TestActionComponent copy() { 11053 TestActionComponent dst = new TestActionComponent(); 11054 copyValues(dst); 11055 return dst; 11056 } 11057 11058 public void copyValues(TestActionComponent dst) { 11059 super.copyValues(dst); 11060 dst.operation = operation == null ? null : operation.copy(); 11061 dst.assert_ = assert_ == null ? null : assert_.copy(); 11062 } 11063 11064 @Override 11065 public boolean equalsDeep(Base other_) { 11066 if (!super.equalsDeep(other_)) 11067 return false; 11068 if (!(other_ instanceof TestActionComponent)) 11069 return false; 11070 TestActionComponent o = (TestActionComponent) other_; 11071 return compareDeep(operation, o.operation, true) && compareDeep(assert_, o.assert_, true); 11072 } 11073 11074 @Override 11075 public boolean equalsShallow(Base other_) { 11076 if (!super.equalsShallow(other_)) 11077 return false; 11078 if (!(other_ instanceof TestActionComponent)) 11079 return false; 11080 TestActionComponent o = (TestActionComponent) other_; 11081 return true; 11082 } 11083 11084 public boolean isEmpty() { 11085 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(operation, assert_); 11086 } 11087 11088 public String fhirType() { 11089 return "TestScript.test.action"; 11090 11091 } 11092 11093 } 11094 11095 @Block() 11096 public static class TestScriptTeardownComponent extends BackboneElement implements IBaseBackboneElement { 11097 /** 11098 * The teardown action will only contain an operation. 11099 */ 11100 @Child(name = "action", type = {}, order=1, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 11101 @Description(shortDefinition="One or more teardown operations to perform", formalDefinition="The teardown action will only contain an operation." ) 11102 protected List<TeardownActionComponent> action; 11103 11104 private static final long serialVersionUID = 1168638089L; 11105 11106 /** 11107 * Constructor 11108 */ 11109 public TestScriptTeardownComponent() { 11110 super(); 11111 } 11112 11113 /** 11114 * Constructor 11115 */ 11116 public TestScriptTeardownComponent(TeardownActionComponent action) { 11117 super(); 11118 this.addAction(action); 11119 } 11120 11121 /** 11122 * @return {@link #action} (The teardown action will only contain an operation.) 11123 */ 11124 public List<TeardownActionComponent> getAction() { 11125 if (this.action == null) 11126 this.action = new ArrayList<TeardownActionComponent>(); 11127 return this.action; 11128 } 11129 11130 /** 11131 * @return Returns a reference to <code>this</code> for easy method chaining 11132 */ 11133 public TestScriptTeardownComponent setAction(List<TeardownActionComponent> theAction) { 11134 this.action = theAction; 11135 return this; 11136 } 11137 11138 public boolean hasAction() { 11139 if (this.action == null) 11140 return false; 11141 for (TeardownActionComponent item : this.action) 11142 if (!item.isEmpty()) 11143 return true; 11144 return false; 11145 } 11146 11147 public TeardownActionComponent addAction() { //3 11148 TeardownActionComponent t = new TeardownActionComponent(); 11149 if (this.action == null) 11150 this.action = new ArrayList<TeardownActionComponent>(); 11151 this.action.add(t); 11152 return t; 11153 } 11154 11155 public TestScriptTeardownComponent addAction(TeardownActionComponent t) { //3 11156 if (t == null) 11157 return this; 11158 if (this.action == null) 11159 this.action = new ArrayList<TeardownActionComponent>(); 11160 this.action.add(t); 11161 return this; 11162 } 11163 11164 /** 11165 * @return The first repetition of repeating field {@link #action}, creating it if it does not already exist {3} 11166 */ 11167 public TeardownActionComponent getActionFirstRep() { 11168 if (getAction().isEmpty()) { 11169 addAction(); 11170 } 11171 return getAction().get(0); 11172 } 11173 11174 protected void listChildren(List<Property> children) { 11175 super.listChildren(children); 11176 children.add(new Property("action", "", "The teardown action will only contain an operation.", 0, java.lang.Integer.MAX_VALUE, action)); 11177 } 11178 11179 @Override 11180 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 11181 switch (_hash) { 11182 case -1422950858: /*action*/ return new Property("action", "", "The teardown action will only contain an operation.", 0, java.lang.Integer.MAX_VALUE, action); 11183 default: return super.getNamedProperty(_hash, _name, _checkValid); 11184 } 11185 11186 } 11187 11188 @Override 11189 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 11190 switch (hash) { 11191 case -1422950858: /*action*/ return this.action == null ? new Base[0] : this.action.toArray(new Base[this.action.size()]); // TeardownActionComponent 11192 default: return super.getProperty(hash, name, checkValid); 11193 } 11194 11195 } 11196 11197 @Override 11198 public Base setProperty(int hash, String name, Base value) throws FHIRException { 11199 switch (hash) { 11200 case -1422950858: // action 11201 this.getAction().add((TeardownActionComponent) value); // TeardownActionComponent 11202 return value; 11203 default: return super.setProperty(hash, name, value); 11204 } 11205 11206 } 11207 11208 @Override 11209 public Base setProperty(String name, Base value) throws FHIRException { 11210 if (name.equals("action")) { 11211 this.getAction().add((TeardownActionComponent) value); 11212 } else 11213 return super.setProperty(name, value); 11214 return value; 11215 } 11216 11217 @Override 11218 public Base makeProperty(int hash, String name) throws FHIRException { 11219 switch (hash) { 11220 case -1422950858: return addAction(); 11221 default: return super.makeProperty(hash, name); 11222 } 11223 11224 } 11225 11226 @Override 11227 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 11228 switch (hash) { 11229 case -1422950858: /*action*/ return new String[] {}; 11230 default: return super.getTypesForProperty(hash, name); 11231 } 11232 11233 } 11234 11235 @Override 11236 public Base addChild(String name) throws FHIRException { 11237 if (name.equals("action")) { 11238 return addAction(); 11239 } 11240 else 11241 return super.addChild(name); 11242 } 11243 11244 public TestScriptTeardownComponent copy() { 11245 TestScriptTeardownComponent dst = new TestScriptTeardownComponent(); 11246 copyValues(dst); 11247 return dst; 11248 } 11249 11250 public void copyValues(TestScriptTeardownComponent dst) { 11251 super.copyValues(dst); 11252 if (action != null) { 11253 dst.action = new ArrayList<TeardownActionComponent>(); 11254 for (TeardownActionComponent i : action) 11255 dst.action.add(i.copy()); 11256 }; 11257 } 11258 11259 @Override 11260 public boolean equalsDeep(Base other_) { 11261 if (!super.equalsDeep(other_)) 11262 return false; 11263 if (!(other_ instanceof TestScriptTeardownComponent)) 11264 return false; 11265 TestScriptTeardownComponent o = (TestScriptTeardownComponent) other_; 11266 return compareDeep(action, o.action, true); 11267 } 11268 11269 @Override 11270 public boolean equalsShallow(Base other_) { 11271 if (!super.equalsShallow(other_)) 11272 return false; 11273 if (!(other_ instanceof TestScriptTeardownComponent)) 11274 return false; 11275 TestScriptTeardownComponent o = (TestScriptTeardownComponent) other_; 11276 return true; 11277 } 11278 11279 public boolean isEmpty() { 11280 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(action); 11281 } 11282 11283 public String fhirType() { 11284 return "TestScript.teardown"; 11285 11286 } 11287 11288 } 11289 11290 @Block() 11291 public static class TeardownActionComponent extends BackboneElement implements IBaseBackboneElement { 11292 /** 11293 * An operation would involve a REST request to a server. 11294 */ 11295 @Child(name = "operation", type = {SetupActionOperationComponent.class}, order=1, min=1, max=1, modifier=false, summary=false) 11296 @Description(shortDefinition="The teardown operation to perform", formalDefinition="An operation would involve a REST request to a server." ) 11297 protected SetupActionOperationComponent operation; 11298 11299 private static final long serialVersionUID = -1099598054L; 11300 11301 /** 11302 * Constructor 11303 */ 11304 public TeardownActionComponent() { 11305 super(); 11306 } 11307 11308 /** 11309 * Constructor 11310 */ 11311 public TeardownActionComponent(SetupActionOperationComponent operation) { 11312 super(); 11313 this.setOperation(operation); 11314 } 11315 11316 /** 11317 * @return {@link #operation} (An operation would involve a REST request to a server.) 11318 */ 11319 public SetupActionOperationComponent getOperation() { 11320 if (this.operation == null) 11321 if (Configuration.errorOnAutoCreate()) 11322 throw new Error("Attempt to auto-create TeardownActionComponent.operation"); 11323 else if (Configuration.doAutoCreate()) 11324 this.operation = new SetupActionOperationComponent(); // cc 11325 return this.operation; 11326 } 11327 11328 public boolean hasOperation() { 11329 return this.operation != null && !this.operation.isEmpty(); 11330 } 11331 11332 /** 11333 * @param value {@link #operation} (An operation would involve a REST request to a server.) 11334 */ 11335 public TeardownActionComponent setOperation(SetupActionOperationComponent value) { 11336 this.operation = value; 11337 return this; 11338 } 11339 11340 protected void listChildren(List<Property> children) { 11341 super.listChildren(children); 11342 children.add(new Property("operation", "@TestScript.setup.action.operation", "An operation would involve a REST request to a server.", 0, 1, operation)); 11343 } 11344 11345 @Override 11346 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 11347 switch (_hash) { 11348 case 1662702951: /*operation*/ return new Property("operation", "@TestScript.setup.action.operation", "An operation would involve a REST request to a server.", 0, 1, operation); 11349 default: return super.getNamedProperty(_hash, _name, _checkValid); 11350 } 11351 11352 } 11353 11354 @Override 11355 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 11356 switch (hash) { 11357 case 1662702951: /*operation*/ return this.operation == null ? new Base[0] : new Base[] {this.operation}; // SetupActionOperationComponent 11358 default: return super.getProperty(hash, name, checkValid); 11359 } 11360 11361 } 11362 11363 @Override 11364 public Base setProperty(int hash, String name, Base value) throws FHIRException { 11365 switch (hash) { 11366 case 1662702951: // operation 11367 this.operation = (SetupActionOperationComponent) value; // SetupActionOperationComponent 11368 return value; 11369 default: return super.setProperty(hash, name, value); 11370 } 11371 11372 } 11373 11374 @Override 11375 public Base setProperty(String name, Base value) throws FHIRException { 11376 if (name.equals("operation")) { 11377 this.operation = (SetupActionOperationComponent) value; // SetupActionOperationComponent 11378 } else 11379 return super.setProperty(name, value); 11380 return value; 11381 } 11382 11383 @Override 11384 public Base makeProperty(int hash, String name) throws FHIRException { 11385 switch (hash) { 11386 case 1662702951: return getOperation(); 11387 default: return super.makeProperty(hash, name); 11388 } 11389 11390 } 11391 11392 @Override 11393 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 11394 switch (hash) { 11395 case 1662702951: /*operation*/ return new String[] {"@TestScript.setup.action.operation"}; 11396 default: return super.getTypesForProperty(hash, name); 11397 } 11398 11399 } 11400 11401 @Override 11402 public Base addChild(String name) throws FHIRException { 11403 if (name.equals("operation")) { 11404 this.operation = new SetupActionOperationComponent(); 11405 return this.operation; 11406 } 11407 else 11408 return super.addChild(name); 11409 } 11410 11411 public TeardownActionComponent copy() { 11412 TeardownActionComponent dst = new TeardownActionComponent(); 11413 copyValues(dst); 11414 return dst; 11415 } 11416 11417 public void copyValues(TeardownActionComponent dst) { 11418 super.copyValues(dst); 11419 dst.operation = operation == null ? null : operation.copy(); 11420 } 11421 11422 @Override 11423 public boolean equalsDeep(Base other_) { 11424 if (!super.equalsDeep(other_)) 11425 return false; 11426 if (!(other_ instanceof TeardownActionComponent)) 11427 return false; 11428 TeardownActionComponent o = (TeardownActionComponent) other_; 11429 return compareDeep(operation, o.operation, true); 11430 } 11431 11432 @Override 11433 public boolean equalsShallow(Base other_) { 11434 if (!super.equalsShallow(other_)) 11435 return false; 11436 if (!(other_ instanceof TeardownActionComponent)) 11437 return false; 11438 TeardownActionComponent o = (TeardownActionComponent) other_; 11439 return true; 11440 } 11441 11442 public boolean isEmpty() { 11443 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(operation); 11444 } 11445 11446 public String fhirType() { 11447 return "TestScript.teardown.action"; 11448 11449 } 11450 11451 } 11452 11453 /** 11454 * An absolute URI that is used to identify this test script 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 test script is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the test script is stored on different servers. 11455 */ 11456 @Child(name = "url", type = {UriType.class}, order=0, min=1, max=1, modifier=false, summary=true) 11457 @Description(shortDefinition="Canonical identifier for this test script, represented as a URI (globally unique)", formalDefinition="An absolute URI that is used to identify this test script 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 test script is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the test script is stored on different servers." ) 11458 protected UriType url; 11459 11460 /** 11461 * A formal identifier that is used to identify this test script when it is represented in other formats, or referenced in a specification, model, design or an instance. 11462 */ 11463 @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=1, modifier=false, summary=true) 11464 @Description(shortDefinition="Additional identifier for the test script", formalDefinition="A formal identifier that is used to identify this test script when it is represented in other formats, or referenced in a specification, model, design or an instance." ) 11465 protected Identifier identifier; 11466 11467 /** 11468 * The identifier that is used to identify this version of the test script when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test script 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. 11469 */ 11470 @Child(name = "version", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true) 11471 @Description(shortDefinition="Business version of the test script", formalDefinition="The identifier that is used to identify this version of the test script when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test script 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." ) 11472 protected StringType version; 11473 11474 /** 11475 * A natural language name identifying the test script. This name should be usable as an identifier for the module by machine processing applications such as code generation. 11476 */ 11477 @Child(name = "name", type = {StringType.class}, order=3, min=1, max=1, modifier=false, summary=true) 11478 @Description(shortDefinition="Name for this test script (computer friendly)", formalDefinition="A natural language name identifying the test script. This name should be usable as an identifier for the module by machine processing applications such as code generation." ) 11479 protected StringType name; 11480 11481 /** 11482 * A short, descriptive, user-friendly title for the test script. 11483 */ 11484 @Child(name = "title", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=true) 11485 @Description(shortDefinition="Name for this test script (human friendly)", formalDefinition="A short, descriptive, user-friendly title for the test script." ) 11486 protected StringType title; 11487 11488 /** 11489 * The status of this test script. Enables tracking the life-cycle of the content. 11490 */ 11491 @Child(name = "status", type = {CodeType.class}, order=5, min=1, max=1, modifier=true, summary=true) 11492 @Description(shortDefinition="draft | active | retired | unknown", formalDefinition="The status of this test script. Enables tracking the life-cycle of the content." ) 11493 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/publication-status") 11494 protected Enumeration<PublicationStatus> status; 11495 11496 /** 11497 * A Boolean value to indicate that this test script is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. 11498 */ 11499 @Child(name = "experimental", type = {BooleanType.class}, order=6, min=0, max=1, modifier=false, summary=true) 11500 @Description(shortDefinition="For testing purposes, not real usage", formalDefinition="A Boolean value to indicate that this test script is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage." ) 11501 protected BooleanType experimental; 11502 11503 /** 11504 * The date (and optionally time) when the test script 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 test script changes. 11505 */ 11506 @Child(name = "date", type = {DateTimeType.class}, order=7, min=0, max=1, modifier=false, summary=true) 11507 @Description(shortDefinition="Date last changed", formalDefinition="The date (and optionally time) when the test script 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 test script changes." ) 11508 protected DateTimeType date; 11509 11510 /** 11511 * The name of the organization or individual that published the test script. 11512 */ 11513 @Child(name = "publisher", type = {StringType.class}, order=8, min=0, max=1, modifier=false, summary=true) 11514 @Description(shortDefinition="Name of the publisher (organization or individual)", formalDefinition="The name of the organization or individual that published the test script." ) 11515 protected StringType publisher; 11516 11517 /** 11518 * Contact details to assist a user in finding and communicating with the publisher. 11519 */ 11520 @Child(name = "contact", type = {ContactDetail.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 11521 @Description(shortDefinition="Contact details for the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." ) 11522 protected List<ContactDetail> contact; 11523 11524 /** 11525 * A free text natural language description of the test script from a consumer's perspective. 11526 */ 11527 @Child(name = "description", type = {MarkdownType.class}, order=10, min=0, max=1, modifier=false, summary=false) 11528 @Description(shortDefinition="Natural language description of the test script", formalDefinition="A free text natural language description of the test script from a consumer's perspective." ) 11529 protected MarkdownType description; 11530 11531 /** 11532 * 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 test script instances. 11533 */ 11534 @Child(name = "useContext", type = {UsageContext.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 11535 @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 test script instances." ) 11536 protected List<UsageContext> useContext; 11537 11538 /** 11539 * A legal or geographic region in which the test script is intended to be used. 11540 */ 11541 @Child(name = "jurisdiction", type = {CodeableConcept.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 11542 @Description(shortDefinition="Intended jurisdiction for test script (if applicable)", formalDefinition="A legal or geographic region in which the test script is intended to be used." ) 11543 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/jurisdiction") 11544 protected List<CodeableConcept> jurisdiction; 11545 11546 /** 11547 * Explanation of why this test script is needed and why it has been designed as it has. 11548 */ 11549 @Child(name = "purpose", type = {MarkdownType.class}, order=13, min=0, max=1, modifier=false, summary=false) 11550 @Description(shortDefinition="Why this test script is defined", formalDefinition="Explanation of why this test script is needed and why it has been designed as it has." ) 11551 protected MarkdownType purpose; 11552 11553 /** 11554 * A copyright statement relating to the test script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the test script. 11555 */ 11556 @Child(name = "copyright", type = {MarkdownType.class}, order=14, min=0, max=1, modifier=false, summary=false) 11557 @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the test script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the test script." ) 11558 protected MarkdownType copyright; 11559 11560 /** 11561 * An abstract server used in operations within this test script in the origin element. 11562 */ 11563 @Child(name = "origin", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 11564 @Description(shortDefinition="An abstract server representing a client or sender in a message exchange", formalDefinition="An abstract server used in operations within this test script in the origin element." ) 11565 protected List<TestScriptOriginComponent> origin; 11566 11567 /** 11568 * An abstract server used in operations within this test script in the destination element. 11569 */ 11570 @Child(name = "destination", type = {}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 11571 @Description(shortDefinition="An abstract server representing a destination or receiver in a message exchange", formalDefinition="An abstract server used in operations within this test script in the destination element." ) 11572 protected List<TestScriptDestinationComponent> destination; 11573 11574 /** 11575 * The required capability must exist and are assumed to function correctly on the FHIR server being tested. 11576 */ 11577 @Child(name = "metadata", type = {}, order=17, min=0, max=1, modifier=false, summary=false) 11578 @Description(shortDefinition="Required capability that is assumed to function correctly on the FHIR server being tested", formalDefinition="The required capability must exist and are assumed to function correctly on the FHIR server being tested." ) 11579 protected TestScriptMetadataComponent metadata; 11580 11581 /** 11582 * Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute. 11583 */ 11584 @Child(name = "fixture", type = {}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 11585 @Description(shortDefinition="Fixture in the test script - by reference (uri)", formalDefinition="Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute." ) 11586 protected List<TestScriptFixtureComponent> fixture; 11587 11588 /** 11589 * Reference to the profile to be used for validation. 11590 */ 11591 @Child(name = "profile", type = {Reference.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 11592 @Description(shortDefinition="Reference of the validation profile", formalDefinition="Reference to the profile to be used for validation." ) 11593 protected List<Reference> profile; 11594 11595 /** 11596 * Variable is set based either on element value in response body or on header field value in the response headers. 11597 */ 11598 @Child(name = "variable", type = {}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 11599 @Description(shortDefinition="Placeholder for evaluated elements", formalDefinition="Variable is set based either on element value in response body or on header field value in the response headers." ) 11600 protected List<TestScriptVariableComponent> variable; 11601 11602 /** 11603 * A series of required setup operations before tests are executed. 11604 */ 11605 @Child(name = "setup", type = {}, order=21, min=0, max=1, modifier=false, summary=false) 11606 @Description(shortDefinition="A series of required setup operations before tests are executed", formalDefinition="A series of required setup operations before tests are executed." ) 11607 protected TestScriptSetupComponent setup; 11608 11609 /** 11610 * A test in this script. 11611 */ 11612 @Child(name = "test", type = {}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 11613 @Description(shortDefinition="A test in this script", formalDefinition="A test in this script." ) 11614 protected List<TestScriptTestComponent> test; 11615 11616 /** 11617 * A series of operations required to clean up after all the tests are executed (successfully or otherwise). 11618 */ 11619 @Child(name = "teardown", type = {}, order=23, min=0, max=1, modifier=false, summary=false) 11620 @Description(shortDefinition="A series of required clean up steps", formalDefinition="A series of operations required to clean up after all the tests are executed (successfully or otherwise)." ) 11621 protected TestScriptTeardownComponent teardown; 11622 11623 private static final long serialVersionUID = -2020826225L; 11624 11625 /** 11626 * Constructor 11627 */ 11628 public TestScript() { 11629 super(); 11630 } 11631 11632 /** 11633 * Constructor 11634 */ 11635 public TestScript(String url, String name, PublicationStatus status) { 11636 super(); 11637 this.setUrl(url); 11638 this.setName(name); 11639 this.setStatus(status); 11640 } 11641 11642 /** 11643 * @return {@link #url} (An absolute URI that is used to identify this test script 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 test script is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the test script is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 11644 */ 11645 public UriType getUrlElement() { 11646 if (this.url == null) 11647 if (Configuration.errorOnAutoCreate()) 11648 throw new Error("Attempt to auto-create TestScript.url"); 11649 else if (Configuration.doAutoCreate()) 11650 this.url = new UriType(); // bb 11651 return this.url; 11652 } 11653 11654 public boolean hasUrlElement() { 11655 return this.url != null && !this.url.isEmpty(); 11656 } 11657 11658 public boolean hasUrl() { 11659 return this.url != null && !this.url.isEmpty(); 11660 } 11661 11662 /** 11663 * @param value {@link #url} (An absolute URI that is used to identify this test script 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 test script is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the test script is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 11664 */ 11665 public TestScript setUrlElement(UriType value) { 11666 this.url = value; 11667 return this; 11668 } 11669 11670 /** 11671 * @return An absolute URI that is used to identify this test script 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 test script is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the test script is stored on different servers. 11672 */ 11673 public String getUrl() { 11674 return this.url == null ? null : this.url.getValue(); 11675 } 11676 11677 /** 11678 * @param value An absolute URI that is used to identify this test script 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 test script is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the test script is stored on different servers. 11679 */ 11680 public TestScript setUrl(String value) { 11681 if (this.url == null) 11682 this.url = new UriType(); 11683 this.url.setValue(value); 11684 return this; 11685 } 11686 11687 /** 11688 * only one on this implementation 11689 */ 11690 @Override 11691 public int getIdentifierMax() { 11692 return 1; 11693 } 11694 /** 11695 * @return {@link #identifier} (A formal identifier that is used to identify this test script when it is represented in other formats, or referenced in a specification, model, design or an instance.) 11696 */ 11697 public List<Identifier> getIdentifier() { 11698 List<Identifier> list = new ArrayList<Identifier>(); 11699 if (this.identifier == null) { 11700 list.add(identifier); 11701 } 11702 return list; 11703 } 11704 11705 /** 11706 * @return Returns a reference to <code>this</code> for easy method chaining 11707 */ 11708 public TestScript setIdentifier(List<Identifier> theIdentifier) { 11709 if (theIdentifier.size() == 0) { 11710 this.identifier = null; 11711 } else if (theIdentifier.size() == 1) { 11712 this.identifier = theIdentifier.get(0); 11713 } else { 11714 throw new Error("Cannot have more than one TestScript.identifier"); 11715 } 11716 return this; 11717 } 11718 11719 public boolean hasIdentifier() { 11720 return this.identifier != null && !this.identifier.isEmpty(); 11721 } 11722 11723 public Identifier addIdentifier() { //3 11724 if (this.identifier == null) { 11725 this.identifier = new Identifier(); 11726 } else { 11727 throw new Error("Cannot have more than one TestScript.identifier"); 11728 } 11729 return this.identifier; 11730 } 11731 11732 public TestScript addIdentifier(Identifier t) { //3 11733 if (this.identifier == null) { 11734 this.identifier = t; 11735 } else { 11736 throw new Error("Cannot have more than one TestScript.identifier"); 11737 } 11738 return this; 11739 } 11740 11741 /** 11742 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} 11743 */ 11744 public Identifier getIdentifierFirstRep() { 11745 if (identifier == null) { 11746 addIdentifier(); 11747 } 11748 return identifier; 11749 } 11750 11751 /** 11752 * @return {@link #version} (The identifier that is used to identify this version of the test script when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test script 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.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value 11753 */ 11754 public StringType getVersionElement() { 11755 if (this.version == null) 11756 if (Configuration.errorOnAutoCreate()) 11757 throw new Error("Attempt to auto-create TestScript.version"); 11758 else if (Configuration.doAutoCreate()) 11759 this.version = new StringType(); // bb 11760 return this.version; 11761 } 11762 11763 public boolean hasVersionElement() { 11764 return this.version != null && !this.version.isEmpty(); 11765 } 11766 11767 public boolean hasVersion() { 11768 return this.version != null && !this.version.isEmpty(); 11769 } 11770 11771 /** 11772 * @param value {@link #version} (The identifier that is used to identify this version of the test script when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test script 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.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value 11773 */ 11774 public TestScript setVersionElement(StringType value) { 11775 this.version = value; 11776 return this; 11777 } 11778 11779 /** 11780 * @return The identifier that is used to identify this version of the test script when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test script 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. 11781 */ 11782 public String getVersion() { 11783 return this.version == null ? null : this.version.getValue(); 11784 } 11785 11786 /** 11787 * @param value The identifier that is used to identify this version of the test script when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test script 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. 11788 */ 11789 public TestScript setVersion(String value) { 11790 if (Utilities.noString(value)) 11791 this.version = null; 11792 else { 11793 if (this.version == null) 11794 this.version = new StringType(); 11795 this.version.setValue(value); 11796 } 11797 return this; 11798 } 11799 11800 /** 11801 * @return {@link #name} (A natural language name identifying the test script. 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 11802 */ 11803 public StringType getNameElement() { 11804 if (this.name == null) 11805 if (Configuration.errorOnAutoCreate()) 11806 throw new Error("Attempt to auto-create TestScript.name"); 11807 else if (Configuration.doAutoCreate()) 11808 this.name = new StringType(); // bb 11809 return this.name; 11810 } 11811 11812 public boolean hasNameElement() { 11813 return this.name != null && !this.name.isEmpty(); 11814 } 11815 11816 public boolean hasName() { 11817 return this.name != null && !this.name.isEmpty(); 11818 } 11819 11820 /** 11821 * @param value {@link #name} (A natural language name identifying the test script. 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 11822 */ 11823 public TestScript setNameElement(StringType value) { 11824 this.name = value; 11825 return this; 11826 } 11827 11828 /** 11829 * @return A natural language name identifying the test script. This name should be usable as an identifier for the module by machine processing applications such as code generation. 11830 */ 11831 public String getName() { 11832 return this.name == null ? null : this.name.getValue(); 11833 } 11834 11835 /** 11836 * @param value A natural language name identifying the test script. This name should be usable as an identifier for the module by machine processing applications such as code generation. 11837 */ 11838 public TestScript setName(String value) { 11839 if (this.name == null) 11840 this.name = new StringType(); 11841 this.name.setValue(value); 11842 return this; 11843 } 11844 11845 /** 11846 * @return {@link #title} (A short, descriptive, user-friendly title for the test script.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 11847 */ 11848 public StringType getTitleElement() { 11849 if (this.title == null) 11850 if (Configuration.errorOnAutoCreate()) 11851 throw new Error("Attempt to auto-create TestScript.title"); 11852 else if (Configuration.doAutoCreate()) 11853 this.title = new StringType(); // bb 11854 return this.title; 11855 } 11856 11857 public boolean hasTitleElement() { 11858 return this.title != null && !this.title.isEmpty(); 11859 } 11860 11861 public boolean hasTitle() { 11862 return this.title != null && !this.title.isEmpty(); 11863 } 11864 11865 /** 11866 * @param value {@link #title} (A short, descriptive, user-friendly title for the test script.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 11867 */ 11868 public TestScript setTitleElement(StringType value) { 11869 this.title = value; 11870 return this; 11871 } 11872 11873 /** 11874 * @return A short, descriptive, user-friendly title for the test script. 11875 */ 11876 public String getTitle() { 11877 return this.title == null ? null : this.title.getValue(); 11878 } 11879 11880 /** 11881 * @param value A short, descriptive, user-friendly title for the test script. 11882 */ 11883 public TestScript setTitle(String value) { 11884 if (Utilities.noString(value)) 11885 this.title = null; 11886 else { 11887 if (this.title == null) 11888 this.title = new StringType(); 11889 this.title.setValue(value); 11890 } 11891 return this; 11892 } 11893 11894 /** 11895 * @return {@link #status} (The status of this test script. 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 11896 */ 11897 public Enumeration<PublicationStatus> getStatusElement() { 11898 if (this.status == null) 11899 if (Configuration.errorOnAutoCreate()) 11900 throw new Error("Attempt to auto-create TestScript.status"); 11901 else if (Configuration.doAutoCreate()) 11902 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb 11903 return this.status; 11904 } 11905 11906 public boolean hasStatusElement() { 11907 return this.status != null && !this.status.isEmpty(); 11908 } 11909 11910 public boolean hasStatus() { 11911 return this.status != null && !this.status.isEmpty(); 11912 } 11913 11914 /** 11915 * @param value {@link #status} (The status of this test script. 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 11916 */ 11917 public TestScript setStatusElement(Enumeration<PublicationStatus> value) { 11918 this.status = value; 11919 return this; 11920 } 11921 11922 /** 11923 * @return The status of this test script. Enables tracking the life-cycle of the content. 11924 */ 11925 public PublicationStatus getStatus() { 11926 return this.status == null ? null : this.status.getValue(); 11927 } 11928 11929 /** 11930 * @param value The status of this test script. Enables tracking the life-cycle of the content. 11931 */ 11932 public TestScript setStatus(PublicationStatus value) { 11933 if (this.status == null) 11934 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); 11935 this.status.setValue(value); 11936 return this; 11937 } 11938 11939 /** 11940 * @return {@link #experimental} (A Boolean value to indicate that this test script 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 11941 */ 11942 public BooleanType getExperimentalElement() { 11943 if (this.experimental == null) 11944 if (Configuration.errorOnAutoCreate()) 11945 throw new Error("Attempt to auto-create TestScript.experimental"); 11946 else if (Configuration.doAutoCreate()) 11947 this.experimental = new BooleanType(); // bb 11948 return this.experimental; 11949 } 11950 11951 public boolean hasExperimentalElement() { 11952 return this.experimental != null && !this.experimental.isEmpty(); 11953 } 11954 11955 public boolean hasExperimental() { 11956 return this.experimental != null && !this.experimental.isEmpty(); 11957 } 11958 11959 /** 11960 * @param value {@link #experimental} (A Boolean value to indicate that this test script 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 11961 */ 11962 public TestScript setExperimentalElement(BooleanType value) { 11963 this.experimental = value; 11964 return this; 11965 } 11966 11967 /** 11968 * @return A Boolean value to indicate that this test script is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. 11969 */ 11970 public boolean getExperimental() { 11971 return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue(); 11972 } 11973 11974 /** 11975 * @param value A Boolean value to indicate that this test script is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. 11976 */ 11977 public TestScript setExperimental(boolean value) { 11978 if (this.experimental == null) 11979 this.experimental = new BooleanType(); 11980 this.experimental.setValue(value); 11981 return this; 11982 } 11983 11984 /** 11985 * @return {@link #date} (The date (and optionally time) when the test script 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 test script changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 11986 */ 11987 public DateTimeType getDateElement() { 11988 if (this.date == null) 11989 if (Configuration.errorOnAutoCreate()) 11990 throw new Error("Attempt to auto-create TestScript.date"); 11991 else if (Configuration.doAutoCreate()) 11992 this.date = new DateTimeType(); // bb 11993 return this.date; 11994 } 11995 11996 public boolean hasDateElement() { 11997 return this.date != null && !this.date.isEmpty(); 11998 } 11999 12000 public boolean hasDate() { 12001 return this.date != null && !this.date.isEmpty(); 12002 } 12003 12004 /** 12005 * @param value {@link #date} (The date (and optionally time) when the test script 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 test script changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 12006 */ 12007 public TestScript setDateElement(DateTimeType value) { 12008 this.date = value; 12009 return this; 12010 } 12011 12012 /** 12013 * @return The date (and optionally time) when the test script 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 test script changes. 12014 */ 12015 public Date getDate() { 12016 return this.date == null ? null : this.date.getValue(); 12017 } 12018 12019 /** 12020 * @param value The date (and optionally time) when the test script 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 test script changes. 12021 */ 12022 public TestScript setDate(Date value) { 12023 if (value == null) 12024 this.date = null; 12025 else { 12026 if (this.date == null) 12027 this.date = new DateTimeType(); 12028 this.date.setValue(value); 12029 } 12030 return this; 12031 } 12032 12033 /** 12034 * @return {@link #publisher} (The name of the organization or individual that published the test script.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 12035 */ 12036 public StringType getPublisherElement() { 12037 if (this.publisher == null) 12038 if (Configuration.errorOnAutoCreate()) 12039 throw new Error("Attempt to auto-create TestScript.publisher"); 12040 else if (Configuration.doAutoCreate()) 12041 this.publisher = new StringType(); // bb 12042 return this.publisher; 12043 } 12044 12045 public boolean hasPublisherElement() { 12046 return this.publisher != null && !this.publisher.isEmpty(); 12047 } 12048 12049 public boolean hasPublisher() { 12050 return this.publisher != null && !this.publisher.isEmpty(); 12051 } 12052 12053 /** 12054 * @param value {@link #publisher} (The name of the organization or individual that published the test script.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 12055 */ 12056 public TestScript setPublisherElement(StringType value) { 12057 this.publisher = value; 12058 return this; 12059 } 12060 12061 /** 12062 * @return The name of the organization or individual that published the test script. 12063 */ 12064 public String getPublisher() { 12065 return this.publisher == null ? null : this.publisher.getValue(); 12066 } 12067 12068 /** 12069 * @param value The name of the organization or individual that published the test script. 12070 */ 12071 public TestScript setPublisher(String value) { 12072 if (Utilities.noString(value)) 12073 this.publisher = null; 12074 else { 12075 if (this.publisher == null) 12076 this.publisher = new StringType(); 12077 this.publisher.setValue(value); 12078 } 12079 return this; 12080 } 12081 12082 /** 12083 * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.) 12084 */ 12085 public List<ContactDetail> getContact() { 12086 if (this.contact == null) 12087 this.contact = new ArrayList<ContactDetail>(); 12088 return this.contact; 12089 } 12090 12091 /** 12092 * @return Returns a reference to <code>this</code> for easy method chaining 12093 */ 12094 public TestScript setContact(List<ContactDetail> theContact) { 12095 this.contact = theContact; 12096 return this; 12097 } 12098 12099 public boolean hasContact() { 12100 if (this.contact == null) 12101 return false; 12102 for (ContactDetail item : this.contact) 12103 if (!item.isEmpty()) 12104 return true; 12105 return false; 12106 } 12107 12108 public ContactDetail addContact() { //3 12109 ContactDetail t = new ContactDetail(); 12110 if (this.contact == null) 12111 this.contact = new ArrayList<ContactDetail>(); 12112 this.contact.add(t); 12113 return t; 12114 } 12115 12116 public TestScript addContact(ContactDetail t) { //3 12117 if (t == null) 12118 return this; 12119 if (this.contact == null) 12120 this.contact = new ArrayList<ContactDetail>(); 12121 this.contact.add(t); 12122 return this; 12123 } 12124 12125 /** 12126 * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist {3} 12127 */ 12128 public ContactDetail getContactFirstRep() { 12129 if (getContact().isEmpty()) { 12130 addContact(); 12131 } 12132 return getContact().get(0); 12133 } 12134 12135 /** 12136 * @return {@link #description} (A free text natural language description of the test script from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 12137 */ 12138 public MarkdownType getDescriptionElement() { 12139 if (this.description == null) 12140 if (Configuration.errorOnAutoCreate()) 12141 throw new Error("Attempt to auto-create TestScript.description"); 12142 else if (Configuration.doAutoCreate()) 12143 this.description = new MarkdownType(); // bb 12144 return this.description; 12145 } 12146 12147 public boolean hasDescriptionElement() { 12148 return this.description != null && !this.description.isEmpty(); 12149 } 12150 12151 public boolean hasDescription() { 12152 return this.description != null && !this.description.isEmpty(); 12153 } 12154 12155 /** 12156 * @param value {@link #description} (A free text natural language description of the test script from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 12157 */ 12158 public TestScript setDescriptionElement(MarkdownType value) { 12159 this.description = value; 12160 return this; 12161 } 12162 12163 /** 12164 * @return A free text natural language description of the test script from a consumer's perspective. 12165 */ 12166 public String getDescription() { 12167 return this.description == null ? null : this.description.getValue(); 12168 } 12169 12170 /** 12171 * @param value A free text natural language description of the test script from a consumer's perspective. 12172 */ 12173 public TestScript setDescription(String value) { 12174 if (value == null) 12175 this.description = null; 12176 else { 12177 if (this.description == null) 12178 this.description = new MarkdownType(); 12179 this.description.setValue(value); 12180 } 12181 return this; 12182 } 12183 12184 /** 12185 * @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 test script instances.) 12186 */ 12187 public List<UsageContext> getUseContext() { 12188 if (this.useContext == null) 12189 this.useContext = new ArrayList<UsageContext>(); 12190 return this.useContext; 12191 } 12192 12193 /** 12194 * @return Returns a reference to <code>this</code> for easy method chaining 12195 */ 12196 public TestScript setUseContext(List<UsageContext> theUseContext) { 12197 this.useContext = theUseContext; 12198 return this; 12199 } 12200 12201 public boolean hasUseContext() { 12202 if (this.useContext == null) 12203 return false; 12204 for (UsageContext item : this.useContext) 12205 if (!item.isEmpty()) 12206 return true; 12207 return false; 12208 } 12209 12210 public UsageContext addUseContext() { //3 12211 UsageContext t = new UsageContext(); 12212 if (this.useContext == null) 12213 this.useContext = new ArrayList<UsageContext>(); 12214 this.useContext.add(t); 12215 return t; 12216 } 12217 12218 public TestScript addUseContext(UsageContext t) { //3 12219 if (t == null) 12220 return this; 12221 if (this.useContext == null) 12222 this.useContext = new ArrayList<UsageContext>(); 12223 this.useContext.add(t); 12224 return this; 12225 } 12226 12227 /** 12228 * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist {3} 12229 */ 12230 public UsageContext getUseContextFirstRep() { 12231 if (getUseContext().isEmpty()) { 12232 addUseContext(); 12233 } 12234 return getUseContext().get(0); 12235 } 12236 12237 /** 12238 * @return {@link #jurisdiction} (A legal or geographic region in which the test script is intended to be used.) 12239 */ 12240 public List<CodeableConcept> getJurisdiction() { 12241 if (this.jurisdiction == null) 12242 this.jurisdiction = new ArrayList<CodeableConcept>(); 12243 return this.jurisdiction; 12244 } 12245 12246 /** 12247 * @return Returns a reference to <code>this</code> for easy method chaining 12248 */ 12249 public TestScript setJurisdiction(List<CodeableConcept> theJurisdiction) { 12250 this.jurisdiction = theJurisdiction; 12251 return this; 12252 } 12253 12254 public boolean hasJurisdiction() { 12255 if (this.jurisdiction == null) 12256 return false; 12257 for (CodeableConcept item : this.jurisdiction) 12258 if (!item.isEmpty()) 12259 return true; 12260 return false; 12261 } 12262 12263 public CodeableConcept addJurisdiction() { //3 12264 CodeableConcept t = new CodeableConcept(); 12265 if (this.jurisdiction == null) 12266 this.jurisdiction = new ArrayList<CodeableConcept>(); 12267 this.jurisdiction.add(t); 12268 return t; 12269 } 12270 12271 public TestScript addJurisdiction(CodeableConcept t) { //3 12272 if (t == null) 12273 return this; 12274 if (this.jurisdiction == null) 12275 this.jurisdiction = new ArrayList<CodeableConcept>(); 12276 this.jurisdiction.add(t); 12277 return this; 12278 } 12279 12280 /** 12281 * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist {3} 12282 */ 12283 public CodeableConcept getJurisdictionFirstRep() { 12284 if (getJurisdiction().isEmpty()) { 12285 addJurisdiction(); 12286 } 12287 return getJurisdiction().get(0); 12288 } 12289 12290 /** 12291 * @return {@link #purpose} (Explanation of why this test script 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 12292 */ 12293 public MarkdownType getPurposeElement() { 12294 if (this.purpose == null) 12295 if (Configuration.errorOnAutoCreate()) 12296 throw new Error("Attempt to auto-create TestScript.purpose"); 12297 else if (Configuration.doAutoCreate()) 12298 this.purpose = new MarkdownType(); // bb 12299 return this.purpose; 12300 } 12301 12302 public boolean hasPurposeElement() { 12303 return this.purpose != null && !this.purpose.isEmpty(); 12304 } 12305 12306 public boolean hasPurpose() { 12307 return this.purpose != null && !this.purpose.isEmpty(); 12308 } 12309 12310 /** 12311 * @param value {@link #purpose} (Explanation of why this test script 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 12312 */ 12313 public TestScript setPurposeElement(MarkdownType value) { 12314 this.purpose = value; 12315 return this; 12316 } 12317 12318 /** 12319 * @return Explanation of why this test script is needed and why it has been designed as it has. 12320 */ 12321 public String getPurpose() { 12322 return this.purpose == null ? null : this.purpose.getValue(); 12323 } 12324 12325 /** 12326 * @param value Explanation of why this test script is needed and why it has been designed as it has. 12327 */ 12328 public TestScript setPurpose(String value) { 12329 if (value == null) 12330 this.purpose = null; 12331 else { 12332 if (this.purpose == null) 12333 this.purpose = new MarkdownType(); 12334 this.purpose.setValue(value); 12335 } 12336 return this; 12337 } 12338 12339 /** 12340 * @return {@link #copyright} (A copyright statement relating to the test script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the test script.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value 12341 */ 12342 public MarkdownType getCopyrightElement() { 12343 if (this.copyright == null) 12344 if (Configuration.errorOnAutoCreate()) 12345 throw new Error("Attempt to auto-create TestScript.copyright"); 12346 else if (Configuration.doAutoCreate()) 12347 this.copyright = new MarkdownType(); // bb 12348 return this.copyright; 12349 } 12350 12351 public boolean hasCopyrightElement() { 12352 return this.copyright != null && !this.copyright.isEmpty(); 12353 } 12354 12355 public boolean hasCopyright() { 12356 return this.copyright != null && !this.copyright.isEmpty(); 12357 } 12358 12359 /** 12360 * @param value {@link #copyright} (A copyright statement relating to the test script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the test script.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value 12361 */ 12362 public TestScript setCopyrightElement(MarkdownType value) { 12363 this.copyright = value; 12364 return this; 12365 } 12366 12367 /** 12368 * @return A copyright statement relating to the test script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the test script. 12369 */ 12370 public String getCopyright() { 12371 return this.copyright == null ? null : this.copyright.getValue(); 12372 } 12373 12374 /** 12375 * @param value A copyright statement relating to the test script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the test script. 12376 */ 12377 public TestScript setCopyright(String value) { 12378 if (value == null) 12379 this.copyright = null; 12380 else { 12381 if (this.copyright == null) 12382 this.copyright = new MarkdownType(); 12383 this.copyright.setValue(value); 12384 } 12385 return this; 12386 } 12387 12388 /** 12389 * @return {@link #origin} (An abstract server used in operations within this test script in the origin element.) 12390 */ 12391 public List<TestScriptOriginComponent> getOrigin() { 12392 if (this.origin == null) 12393 this.origin = new ArrayList<TestScriptOriginComponent>(); 12394 return this.origin; 12395 } 12396 12397 /** 12398 * @return Returns a reference to <code>this</code> for easy method chaining 12399 */ 12400 public TestScript setOrigin(List<TestScriptOriginComponent> theOrigin) { 12401 this.origin = theOrigin; 12402 return this; 12403 } 12404 12405 public boolean hasOrigin() { 12406 if (this.origin == null) 12407 return false; 12408 for (TestScriptOriginComponent item : this.origin) 12409 if (!item.isEmpty()) 12410 return true; 12411 return false; 12412 } 12413 12414 public TestScriptOriginComponent addOrigin() { //3 12415 TestScriptOriginComponent t = new TestScriptOriginComponent(); 12416 if (this.origin == null) 12417 this.origin = new ArrayList<TestScriptOriginComponent>(); 12418 this.origin.add(t); 12419 return t; 12420 } 12421 12422 public TestScript addOrigin(TestScriptOriginComponent t) { //3 12423 if (t == null) 12424 return this; 12425 if (this.origin == null) 12426 this.origin = new ArrayList<TestScriptOriginComponent>(); 12427 this.origin.add(t); 12428 return this; 12429 } 12430 12431 /** 12432 * @return The first repetition of repeating field {@link #origin}, creating it if it does not already exist {3} 12433 */ 12434 public TestScriptOriginComponent getOriginFirstRep() { 12435 if (getOrigin().isEmpty()) { 12436 addOrigin(); 12437 } 12438 return getOrigin().get(0); 12439 } 12440 12441 /** 12442 * @return {@link #destination} (An abstract server used in operations within this test script in the destination element.) 12443 */ 12444 public List<TestScriptDestinationComponent> getDestination() { 12445 if (this.destination == null) 12446 this.destination = new ArrayList<TestScriptDestinationComponent>(); 12447 return this.destination; 12448 } 12449 12450 /** 12451 * @return Returns a reference to <code>this</code> for easy method chaining 12452 */ 12453 public TestScript setDestination(List<TestScriptDestinationComponent> theDestination) { 12454 this.destination = theDestination; 12455 return this; 12456 } 12457 12458 public boolean hasDestination() { 12459 if (this.destination == null) 12460 return false; 12461 for (TestScriptDestinationComponent item : this.destination) 12462 if (!item.isEmpty()) 12463 return true; 12464 return false; 12465 } 12466 12467 public TestScriptDestinationComponent addDestination() { //3 12468 TestScriptDestinationComponent t = new TestScriptDestinationComponent(); 12469 if (this.destination == null) 12470 this.destination = new ArrayList<TestScriptDestinationComponent>(); 12471 this.destination.add(t); 12472 return t; 12473 } 12474 12475 public TestScript addDestination(TestScriptDestinationComponent t) { //3 12476 if (t == null) 12477 return this; 12478 if (this.destination == null) 12479 this.destination = new ArrayList<TestScriptDestinationComponent>(); 12480 this.destination.add(t); 12481 return this; 12482 } 12483 12484 /** 12485 * @return The first repetition of repeating field {@link #destination}, creating it if it does not already exist {3} 12486 */ 12487 public TestScriptDestinationComponent getDestinationFirstRep() { 12488 if (getDestination().isEmpty()) { 12489 addDestination(); 12490 } 12491 return getDestination().get(0); 12492 } 12493 12494 /** 12495 * @return {@link #metadata} (The required capability must exist and are assumed to function correctly on the FHIR server being tested.) 12496 */ 12497 public TestScriptMetadataComponent getMetadata() { 12498 if (this.metadata == null) 12499 if (Configuration.errorOnAutoCreate()) 12500 throw new Error("Attempt to auto-create TestScript.metadata"); 12501 else if (Configuration.doAutoCreate()) 12502 this.metadata = new TestScriptMetadataComponent(); // cc 12503 return this.metadata; 12504 } 12505 12506 public boolean hasMetadata() { 12507 return this.metadata != null && !this.metadata.isEmpty(); 12508 } 12509 12510 /** 12511 * @param value {@link #metadata} (The required capability must exist and are assumed to function correctly on the FHIR server being tested.) 12512 */ 12513 public TestScript setMetadata(TestScriptMetadataComponent value) { 12514 this.metadata = value; 12515 return this; 12516 } 12517 12518 /** 12519 * @return {@link #fixture} (Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute.) 12520 */ 12521 public List<TestScriptFixtureComponent> getFixture() { 12522 if (this.fixture == null) 12523 this.fixture = new ArrayList<TestScriptFixtureComponent>(); 12524 return this.fixture; 12525 } 12526 12527 /** 12528 * @return Returns a reference to <code>this</code> for easy method chaining 12529 */ 12530 public TestScript setFixture(List<TestScriptFixtureComponent> theFixture) { 12531 this.fixture = theFixture; 12532 return this; 12533 } 12534 12535 public boolean hasFixture() { 12536 if (this.fixture == null) 12537 return false; 12538 for (TestScriptFixtureComponent item : this.fixture) 12539 if (!item.isEmpty()) 12540 return true; 12541 return false; 12542 } 12543 12544 public TestScriptFixtureComponent addFixture() { //3 12545 TestScriptFixtureComponent t = new TestScriptFixtureComponent(); 12546 if (this.fixture == null) 12547 this.fixture = new ArrayList<TestScriptFixtureComponent>(); 12548 this.fixture.add(t); 12549 return t; 12550 } 12551 12552 public TestScript addFixture(TestScriptFixtureComponent t) { //3 12553 if (t == null) 12554 return this; 12555 if (this.fixture == null) 12556 this.fixture = new ArrayList<TestScriptFixtureComponent>(); 12557 this.fixture.add(t); 12558 return this; 12559 } 12560 12561 /** 12562 * @return The first repetition of repeating field {@link #fixture}, creating it if it does not already exist {3} 12563 */ 12564 public TestScriptFixtureComponent getFixtureFirstRep() { 12565 if (getFixture().isEmpty()) { 12566 addFixture(); 12567 } 12568 return getFixture().get(0); 12569 } 12570 12571 /** 12572 * @return {@link #profile} (Reference to the profile to be used for validation.) 12573 */ 12574 public List<Reference> getProfile() { 12575 if (this.profile == null) 12576 this.profile = new ArrayList<Reference>(); 12577 return this.profile; 12578 } 12579 12580 /** 12581 * @return Returns a reference to <code>this</code> for easy method chaining 12582 */ 12583 public TestScript setProfile(List<Reference> theProfile) { 12584 this.profile = theProfile; 12585 return this; 12586 } 12587 12588 public boolean hasProfile() { 12589 if (this.profile == null) 12590 return false; 12591 for (Reference item : this.profile) 12592 if (!item.isEmpty()) 12593 return true; 12594 return false; 12595 } 12596 12597 public Reference addProfile() { //3 12598 Reference t = new Reference(); 12599 if (this.profile == null) 12600 this.profile = new ArrayList<Reference>(); 12601 this.profile.add(t); 12602 return t; 12603 } 12604 12605 public TestScript addProfile(Reference t) { //3 12606 if (t == null) 12607 return this; 12608 if (this.profile == null) 12609 this.profile = new ArrayList<Reference>(); 12610 this.profile.add(t); 12611 return this; 12612 } 12613 12614 /** 12615 * @return The first repetition of repeating field {@link #profile}, creating it if it does not already exist {3} 12616 */ 12617 public Reference getProfileFirstRep() { 12618 if (getProfile().isEmpty()) { 12619 addProfile(); 12620 } 12621 return getProfile().get(0); 12622 } 12623 12624 /** 12625 * @return {@link #variable} (Variable is set based either on element value in response body or on header field value in the response headers.) 12626 */ 12627 public List<TestScriptVariableComponent> getVariable() { 12628 if (this.variable == null) 12629 this.variable = new ArrayList<TestScriptVariableComponent>(); 12630 return this.variable; 12631 } 12632 12633 /** 12634 * @return Returns a reference to <code>this</code> for easy method chaining 12635 */ 12636 public TestScript setVariable(List<TestScriptVariableComponent> theVariable) { 12637 this.variable = theVariable; 12638 return this; 12639 } 12640 12641 public boolean hasVariable() { 12642 if (this.variable == null) 12643 return false; 12644 for (TestScriptVariableComponent item : this.variable) 12645 if (!item.isEmpty()) 12646 return true; 12647 return false; 12648 } 12649 12650 public TestScriptVariableComponent addVariable() { //3 12651 TestScriptVariableComponent t = new TestScriptVariableComponent(); 12652 if (this.variable == null) 12653 this.variable = new ArrayList<TestScriptVariableComponent>(); 12654 this.variable.add(t); 12655 return t; 12656 } 12657 12658 public TestScript addVariable(TestScriptVariableComponent t) { //3 12659 if (t == null) 12660 return this; 12661 if (this.variable == null) 12662 this.variable = new ArrayList<TestScriptVariableComponent>(); 12663 this.variable.add(t); 12664 return this; 12665 } 12666 12667 /** 12668 * @return The first repetition of repeating field {@link #variable}, creating it if it does not already exist {3} 12669 */ 12670 public TestScriptVariableComponent getVariableFirstRep() { 12671 if (getVariable().isEmpty()) { 12672 addVariable(); 12673 } 12674 return getVariable().get(0); 12675 } 12676 12677 /** 12678 * @return {@link #setup} (A series of required setup operations before tests are executed.) 12679 */ 12680 public TestScriptSetupComponent getSetup() { 12681 if (this.setup == null) 12682 if (Configuration.errorOnAutoCreate()) 12683 throw new Error("Attempt to auto-create TestScript.setup"); 12684 else if (Configuration.doAutoCreate()) 12685 this.setup = new TestScriptSetupComponent(); // cc 12686 return this.setup; 12687 } 12688 12689 public boolean hasSetup() { 12690 return this.setup != null && !this.setup.isEmpty(); 12691 } 12692 12693 /** 12694 * @param value {@link #setup} (A series of required setup operations before tests are executed.) 12695 */ 12696 public TestScript setSetup(TestScriptSetupComponent value) { 12697 this.setup = value; 12698 return this; 12699 } 12700 12701 /** 12702 * @return {@link #test} (A test in this script.) 12703 */ 12704 public List<TestScriptTestComponent> getTest() { 12705 if (this.test == null) 12706 this.test = new ArrayList<TestScriptTestComponent>(); 12707 return this.test; 12708 } 12709 12710 /** 12711 * @return Returns a reference to <code>this</code> for easy method chaining 12712 */ 12713 public TestScript setTest(List<TestScriptTestComponent> theTest) { 12714 this.test = theTest; 12715 return this; 12716 } 12717 12718 public boolean hasTest() { 12719 if (this.test == null) 12720 return false; 12721 for (TestScriptTestComponent item : this.test) 12722 if (!item.isEmpty()) 12723 return true; 12724 return false; 12725 } 12726 12727 public TestScriptTestComponent addTest() { //3 12728 TestScriptTestComponent t = new TestScriptTestComponent(); 12729 if (this.test == null) 12730 this.test = new ArrayList<TestScriptTestComponent>(); 12731 this.test.add(t); 12732 return t; 12733 } 12734 12735 public TestScript addTest(TestScriptTestComponent t) { //3 12736 if (t == null) 12737 return this; 12738 if (this.test == null) 12739 this.test = new ArrayList<TestScriptTestComponent>(); 12740 this.test.add(t); 12741 return this; 12742 } 12743 12744 /** 12745 * @return The first repetition of repeating field {@link #test}, creating it if it does not already exist {3} 12746 */ 12747 public TestScriptTestComponent getTestFirstRep() { 12748 if (getTest().isEmpty()) { 12749 addTest(); 12750 } 12751 return getTest().get(0); 12752 } 12753 12754 /** 12755 * @return {@link #teardown} (A series of operations required to clean up after all the tests are executed (successfully or otherwise).) 12756 */ 12757 public TestScriptTeardownComponent getTeardown() { 12758 if (this.teardown == null) 12759 if (Configuration.errorOnAutoCreate()) 12760 throw new Error("Attempt to auto-create TestScript.teardown"); 12761 else if (Configuration.doAutoCreate()) 12762 this.teardown = new TestScriptTeardownComponent(); // cc 12763 return this.teardown; 12764 } 12765 12766 public boolean hasTeardown() { 12767 return this.teardown != null && !this.teardown.isEmpty(); 12768 } 12769 12770 /** 12771 * @param value {@link #teardown} (A series of operations required to clean up after all the tests are executed (successfully or otherwise).) 12772 */ 12773 public TestScript setTeardown(TestScriptTeardownComponent value) { 12774 this.teardown = value; 12775 return this; 12776 } 12777 12778 protected void listChildren(List<Property> children) { 12779 super.listChildren(children); 12780 children.add(new Property("url", "uri", "An absolute URI that is used to identify this test script 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 test script is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the test script is stored on different servers.", 0, 1, url)); 12781 children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this test script when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, 1, identifier)); 12782 children.add(new Property("version", "string", "The identifier that is used to identify this version of the test script when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test script 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.", 0, 1, version)); 12783 children.add(new Property("name", "string", "A natural language name identifying the test script. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); 12784 children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the test script.", 0, 1, title)); 12785 children.add(new Property("status", "code", "The status of this test script. Enables tracking the life-cycle of the content.", 0, 1, status)); 12786 children.add(new Property("experimental", "boolean", "A Boolean value to indicate that this test script is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental)); 12787 children.add(new Property("date", "dateTime", "The date (and optionally time) when the test script 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 test script changes.", 0, 1, date)); 12788 children.add(new Property("publisher", "string", "The name of the organization or individual that published the test script.", 0, 1, publisher)); 12789 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)); 12790 children.add(new Property("description", "markdown", "A free text natural language description of the test script from a consumer's perspective.", 0, 1, description)); 12791 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 test script instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); 12792 children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the test script is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction)); 12793 children.add(new Property("purpose", "markdown", "Explanation of why this test script is needed and why it has been designed as it has.", 0, 1, purpose)); 12794 children.add(new Property("copyright", "markdown", "A copyright statement relating to the test script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the test script.", 0, 1, copyright)); 12795 children.add(new Property("origin", "", "An abstract server used in operations within this test script in the origin element.", 0, java.lang.Integer.MAX_VALUE, origin)); 12796 children.add(new Property("destination", "", "An abstract server used in operations within this test script in the destination element.", 0, java.lang.Integer.MAX_VALUE, destination)); 12797 children.add(new Property("metadata", "", "The required capability must exist and are assumed to function correctly on the FHIR server being tested.", 0, 1, metadata)); 12798 children.add(new Property("fixture", "", "Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute.", 0, java.lang.Integer.MAX_VALUE, fixture)); 12799 children.add(new Property("profile", "Reference(Any)", "Reference to the profile to be used for validation.", 0, java.lang.Integer.MAX_VALUE, profile)); 12800 children.add(new Property("variable", "", "Variable is set based either on element value in response body or on header field value in the response headers.", 0, java.lang.Integer.MAX_VALUE, variable)); 12801 children.add(new Property("setup", "", "A series of required setup operations before tests are executed.", 0, 1, setup)); 12802 children.add(new Property("test", "", "A test in this script.", 0, java.lang.Integer.MAX_VALUE, test)); 12803 children.add(new Property("teardown", "", "A series of operations required to clean up after all the tests are executed (successfully or otherwise).", 0, 1, teardown)); 12804 } 12805 12806 @Override 12807 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 12808 switch (_hash) { 12809 case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this test script 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 test script is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the test script is stored on different servers.", 0, 1, url); 12810 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this test script when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, 1, identifier); 12811 case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the test script when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test script 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.", 0, 1, version); 12812 case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the test script. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); 12813 case 110371416: /*title*/ return new Property("title", "string", "A short, descriptive, user-friendly title for the test script.", 0, 1, title); 12814 case -892481550: /*status*/ return new Property("status", "code", "The status of this test script. Enables tracking the life-cycle of the content.", 0, 1, status); 12815 case -404562712: /*experimental*/ return new Property("experimental", "boolean", "A Boolean value to indicate that this test script is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental); 12816 case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the test script 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 test script changes.", 0, 1, date); 12817 case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the organization or individual that published the test script.", 0, 1, publisher); 12818 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); 12819 case -1724546052: /*description*/ return new Property("description", "markdown", "A free text natural language description of the test script from a consumer's perspective.", 0, 1, description); 12820 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 test script instances.", 0, java.lang.Integer.MAX_VALUE, useContext); 12821 case -507075711: /*jurisdiction*/ return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the test script is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction); 12822 case -220463842: /*purpose*/ return new Property("purpose", "markdown", "Explanation of why this test script is needed and why it has been designed as it has.", 0, 1, purpose); 12823 case 1522889671: /*copyright*/ return new Property("copyright", "markdown", "A copyright statement relating to the test script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the test script.", 0, 1, copyright); 12824 case -1008619738: /*origin*/ return new Property("origin", "", "An abstract server used in operations within this test script in the origin element.", 0, java.lang.Integer.MAX_VALUE, origin); 12825 case -1429847026: /*destination*/ return new Property("destination", "", "An abstract server used in operations within this test script in the destination element.", 0, java.lang.Integer.MAX_VALUE, destination); 12826 case -450004177: /*metadata*/ return new Property("metadata", "", "The required capability must exist and are assumed to function correctly on the FHIR server being tested.", 0, 1, metadata); 12827 case -843449847: /*fixture*/ return new Property("fixture", "", "Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute.", 0, java.lang.Integer.MAX_VALUE, fixture); 12828 case -309425751: /*profile*/ return new Property("profile", "Reference(Any)", "Reference to the profile to be used for validation.", 0, java.lang.Integer.MAX_VALUE, profile); 12829 case -1249586564: /*variable*/ return new Property("variable", "", "Variable is set based either on element value in response body or on header field value in the response headers.", 0, java.lang.Integer.MAX_VALUE, variable); 12830 case 109329021: /*setup*/ return new Property("setup", "", "A series of required setup operations before tests are executed.", 0, 1, setup); 12831 case 3556498: /*test*/ return new Property("test", "", "A test in this script.", 0, java.lang.Integer.MAX_VALUE, test); 12832 case -1663474172: /*teardown*/ return new Property("teardown", "", "A series of operations required to clean up after all the tests are executed (successfully or otherwise).", 0, 1, teardown); 12833 default: return super.getNamedProperty(_hash, _name, _checkValid); 12834 } 12835 12836 } 12837 12838 @Override 12839 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 12840 switch (hash) { 12841 case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType 12842 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // Identifier 12843 case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType 12844 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 12845 case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType 12846 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus> 12847 case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType 12848 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 12849 case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType 12850 case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail 12851 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType 12852 case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext 12853 case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept 12854 case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // MarkdownType 12855 case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType 12856 case -1008619738: /*origin*/ return this.origin == null ? new Base[0] : this.origin.toArray(new Base[this.origin.size()]); // TestScriptOriginComponent 12857 case -1429847026: /*destination*/ return this.destination == null ? new Base[0] : this.destination.toArray(new Base[this.destination.size()]); // TestScriptDestinationComponent 12858 case -450004177: /*metadata*/ return this.metadata == null ? new Base[0] : new Base[] {this.metadata}; // TestScriptMetadataComponent 12859 case -843449847: /*fixture*/ return this.fixture == null ? new Base[0] : this.fixture.toArray(new Base[this.fixture.size()]); // TestScriptFixtureComponent 12860 case -309425751: /*profile*/ return this.profile == null ? new Base[0] : this.profile.toArray(new Base[this.profile.size()]); // Reference 12861 case -1249586564: /*variable*/ return this.variable == null ? new Base[0] : this.variable.toArray(new Base[this.variable.size()]); // TestScriptVariableComponent 12862 case 109329021: /*setup*/ return this.setup == null ? new Base[0] : new Base[] {this.setup}; // TestScriptSetupComponent 12863 case 3556498: /*test*/ return this.test == null ? new Base[0] : this.test.toArray(new Base[this.test.size()]); // TestScriptTestComponent 12864 case -1663474172: /*teardown*/ return this.teardown == null ? new Base[0] : new Base[] {this.teardown}; // TestScriptTeardownComponent 12865 default: return super.getProperty(hash, name, checkValid); 12866 } 12867 12868 } 12869 12870 @Override 12871 public Base setProperty(int hash, String name, Base value) throws FHIRException { 12872 switch (hash) { 12873 case 116079: // url 12874 this.url = TypeConvertor.castToUri(value); // UriType 12875 return value; 12876 case -1618432855: // identifier 12877 this.identifier = TypeConvertor.castToIdentifier(value); // Identifier 12878 return value; 12879 case 351608024: // version 12880 this.version = TypeConvertor.castToString(value); // StringType 12881 return value; 12882 case 3373707: // name 12883 this.name = TypeConvertor.castToString(value); // StringType 12884 return value; 12885 case 110371416: // title 12886 this.title = TypeConvertor.castToString(value); // StringType 12887 return value; 12888 case -892481550: // status 12889 value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 12890 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 12891 return value; 12892 case -404562712: // experimental 12893 this.experimental = TypeConvertor.castToBoolean(value); // BooleanType 12894 return value; 12895 case 3076014: // date 12896 this.date = TypeConvertor.castToDateTime(value); // DateTimeType 12897 return value; 12898 case 1447404028: // publisher 12899 this.publisher = TypeConvertor.castToString(value); // StringType 12900 return value; 12901 case 951526432: // contact 12902 this.getContact().add(TypeConvertor.castToContactDetail(value)); // ContactDetail 12903 return value; 12904 case -1724546052: // description 12905 this.description = TypeConvertor.castToMarkdown(value); // MarkdownType 12906 return value; 12907 case -669707736: // useContext 12908 this.getUseContext().add(TypeConvertor.castToUsageContext(value)); // UsageContext 12909 return value; 12910 case -507075711: // jurisdiction 12911 this.getJurisdiction().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 12912 return value; 12913 case -220463842: // purpose 12914 this.purpose = TypeConvertor.castToMarkdown(value); // MarkdownType 12915 return value; 12916 case 1522889671: // copyright 12917 this.copyright = TypeConvertor.castToMarkdown(value); // MarkdownType 12918 return value; 12919 case -1008619738: // origin 12920 this.getOrigin().add((TestScriptOriginComponent) value); // TestScriptOriginComponent 12921 return value; 12922 case -1429847026: // destination 12923 this.getDestination().add((TestScriptDestinationComponent) value); // TestScriptDestinationComponent 12924 return value; 12925 case -450004177: // metadata 12926 this.metadata = (TestScriptMetadataComponent) value; // TestScriptMetadataComponent 12927 return value; 12928 case -843449847: // fixture 12929 this.getFixture().add((TestScriptFixtureComponent) value); // TestScriptFixtureComponent 12930 return value; 12931 case -309425751: // profile 12932 this.getProfile().add(TypeConvertor.castToReference(value)); // Reference 12933 return value; 12934 case -1249586564: // variable 12935 this.getVariable().add((TestScriptVariableComponent) value); // TestScriptVariableComponent 12936 return value; 12937 case 109329021: // setup 12938 this.setup = (TestScriptSetupComponent) value; // TestScriptSetupComponent 12939 return value; 12940 case 3556498: // test 12941 this.getTest().add((TestScriptTestComponent) value); // TestScriptTestComponent 12942 return value; 12943 case -1663474172: // teardown 12944 this.teardown = (TestScriptTeardownComponent) value; // TestScriptTeardownComponent 12945 return value; 12946 default: return super.setProperty(hash, name, value); 12947 } 12948 12949 } 12950 12951 @Override 12952 public Base setProperty(String name, Base value) throws FHIRException { 12953 if (name.equals("url")) { 12954 this.url = TypeConvertor.castToUri(value); // UriType 12955 } else if (name.equals("identifier")) { 12956 this.identifier = TypeConvertor.castToIdentifier(value); // Identifier 12957 } else if (name.equals("version")) { 12958 this.version = TypeConvertor.castToString(value); // StringType 12959 } else if (name.equals("name")) { 12960 this.name = TypeConvertor.castToString(value); // StringType 12961 } else if (name.equals("title")) { 12962 this.title = TypeConvertor.castToString(value); // StringType 12963 } else if (name.equals("status")) { 12964 value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 12965 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 12966 } else if (name.equals("experimental")) { 12967 this.experimental = TypeConvertor.castToBoolean(value); // BooleanType 12968 } else if (name.equals("date")) { 12969 this.date = TypeConvertor.castToDateTime(value); // DateTimeType 12970 } else if (name.equals("publisher")) { 12971 this.publisher = TypeConvertor.castToString(value); // StringType 12972 } else if (name.equals("contact")) { 12973 this.getContact().add(TypeConvertor.castToContactDetail(value)); 12974 } else if (name.equals("description")) { 12975 this.description = TypeConvertor.castToMarkdown(value); // MarkdownType 12976 } else if (name.equals("useContext")) { 12977 this.getUseContext().add(TypeConvertor.castToUsageContext(value)); 12978 } else if (name.equals("jurisdiction")) { 12979 this.getJurisdiction().add(TypeConvertor.castToCodeableConcept(value)); 12980 } else if (name.equals("purpose")) { 12981 this.purpose = TypeConvertor.castToMarkdown(value); // MarkdownType 12982 } else if (name.equals("copyright")) { 12983 this.copyright = TypeConvertor.castToMarkdown(value); // MarkdownType 12984 } else if (name.equals("origin")) { 12985 this.getOrigin().add((TestScriptOriginComponent) value); 12986 } else if (name.equals("destination")) { 12987 this.getDestination().add((TestScriptDestinationComponent) value); 12988 } else if (name.equals("metadata")) { 12989 this.metadata = (TestScriptMetadataComponent) value; // TestScriptMetadataComponent 12990 } else if (name.equals("fixture")) { 12991 this.getFixture().add((TestScriptFixtureComponent) value); 12992 } else if (name.equals("profile")) { 12993 this.getProfile().add(TypeConvertor.castToReference(value)); 12994 } else if (name.equals("variable")) { 12995 this.getVariable().add((TestScriptVariableComponent) value); 12996 } else if (name.equals("setup")) { 12997 this.setup = (TestScriptSetupComponent) value; // TestScriptSetupComponent 12998 } else if (name.equals("test")) { 12999 this.getTest().add((TestScriptTestComponent) value); 13000 } else if (name.equals("teardown")) { 13001 this.teardown = (TestScriptTeardownComponent) value; // TestScriptTeardownComponent 13002 } else 13003 return super.setProperty(name, value); 13004 return value; 13005 } 13006 13007 @Override 13008 public Base makeProperty(int hash, String name) throws FHIRException { 13009 switch (hash) { 13010 case 116079: return getUrlElement(); 13011 case -1618432855: return getIdentifierFirstRep(); 13012 case 351608024: return getVersionElement(); 13013 case 3373707: return getNameElement(); 13014 case 110371416: return getTitleElement(); 13015 case -892481550: return getStatusElement(); 13016 case -404562712: return getExperimentalElement(); 13017 case 3076014: return getDateElement(); 13018 case 1447404028: return getPublisherElement(); 13019 case 951526432: return addContact(); 13020 case -1724546052: return getDescriptionElement(); 13021 case -669707736: return addUseContext(); 13022 case -507075711: return addJurisdiction(); 13023 case -220463842: return getPurposeElement(); 13024 case 1522889671: return getCopyrightElement(); 13025 case -1008619738: return addOrigin(); 13026 case -1429847026: return addDestination(); 13027 case -450004177: return getMetadata(); 13028 case -843449847: return addFixture(); 13029 case -309425751: return addProfile(); 13030 case -1249586564: return addVariable(); 13031 case 109329021: return getSetup(); 13032 case 3556498: return addTest(); 13033 case -1663474172: return getTeardown(); 13034 default: return super.makeProperty(hash, name); 13035 } 13036 13037 } 13038 13039 @Override 13040 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 13041 switch (hash) { 13042 case 116079: /*url*/ return new String[] {"uri"}; 13043 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 13044 case 351608024: /*version*/ return new String[] {"string"}; 13045 case 3373707: /*name*/ return new String[] {"string"}; 13046 case 110371416: /*title*/ return new String[] {"string"}; 13047 case -892481550: /*status*/ return new String[] {"code"}; 13048 case -404562712: /*experimental*/ return new String[] {"boolean"}; 13049 case 3076014: /*date*/ return new String[] {"dateTime"}; 13050 case 1447404028: /*publisher*/ return new String[] {"string"}; 13051 case 951526432: /*contact*/ return new String[] {"ContactDetail"}; 13052 case -1724546052: /*description*/ return new String[] {"markdown"}; 13053 case -669707736: /*useContext*/ return new String[] {"UsageContext"}; 13054 case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"}; 13055 case -220463842: /*purpose*/ return new String[] {"markdown"}; 13056 case 1522889671: /*copyright*/ return new String[] {"markdown"}; 13057 case -1008619738: /*origin*/ return new String[] {}; 13058 case -1429847026: /*destination*/ return new String[] {}; 13059 case -450004177: /*metadata*/ return new String[] {}; 13060 case -843449847: /*fixture*/ return new String[] {}; 13061 case -309425751: /*profile*/ return new String[] {"Reference"}; 13062 case -1249586564: /*variable*/ return new String[] {}; 13063 case 109329021: /*setup*/ return new String[] {}; 13064 case 3556498: /*test*/ return new String[] {}; 13065 case -1663474172: /*teardown*/ return new String[] {}; 13066 default: return super.getTypesForProperty(hash, name); 13067 } 13068 13069 } 13070 13071 @Override 13072 public Base addChild(String name) throws FHIRException { 13073 if (name.equals("url")) { 13074 throw new FHIRException("Cannot call addChild on a primitive type TestScript.url"); 13075 } 13076 else if (name.equals("identifier")) { 13077 this.identifier = new Identifier(); 13078 return this.identifier; 13079 } 13080 else if (name.equals("version")) { 13081 throw new FHIRException("Cannot call addChild on a primitive type TestScript.version"); 13082 } 13083 else if (name.equals("name")) { 13084 throw new FHIRException("Cannot call addChild on a primitive type TestScript.name"); 13085 } 13086 else if (name.equals("title")) { 13087 throw new FHIRException("Cannot call addChild on a primitive type TestScript.title"); 13088 } 13089 else if (name.equals("status")) { 13090 throw new FHIRException("Cannot call addChild on a primitive type TestScript.status"); 13091 } 13092 else if (name.equals("experimental")) { 13093 throw new FHIRException("Cannot call addChild on a primitive type TestScript.experimental"); 13094 } 13095 else if (name.equals("date")) { 13096 throw new FHIRException("Cannot call addChild on a primitive type TestScript.date"); 13097 } 13098 else if (name.equals("publisher")) { 13099 throw new FHIRException("Cannot call addChild on a primitive type TestScript.publisher"); 13100 } 13101 else if (name.equals("contact")) { 13102 return addContact(); 13103 } 13104 else if (name.equals("description")) { 13105 throw new FHIRException("Cannot call addChild on a primitive type TestScript.description"); 13106 } 13107 else if (name.equals("useContext")) { 13108 return addUseContext(); 13109 } 13110 else if (name.equals("jurisdiction")) { 13111 return addJurisdiction(); 13112 } 13113 else if (name.equals("purpose")) { 13114 throw new FHIRException("Cannot call addChild on a primitive type TestScript.purpose"); 13115 } 13116 else if (name.equals("copyright")) { 13117 throw new FHIRException("Cannot call addChild on a primitive type TestScript.copyright"); 13118 } 13119 else if (name.equals("origin")) { 13120 return addOrigin(); 13121 } 13122 else if (name.equals("destination")) { 13123 return addDestination(); 13124 } 13125 else if (name.equals("metadata")) { 13126 this.metadata = new TestScriptMetadataComponent(); 13127 return this.metadata; 13128 } 13129 else if (name.equals("fixture")) { 13130 return addFixture(); 13131 } 13132 else if (name.equals("profile")) { 13133 return addProfile(); 13134 } 13135 else if (name.equals("variable")) { 13136 return addVariable(); 13137 } 13138 else if (name.equals("setup")) { 13139 this.setup = new TestScriptSetupComponent(); 13140 return this.setup; 13141 } 13142 else if (name.equals("test")) { 13143 return addTest(); 13144 } 13145 else if (name.equals("teardown")) { 13146 this.teardown = new TestScriptTeardownComponent(); 13147 return this.teardown; 13148 } 13149 else 13150 return super.addChild(name); 13151 } 13152 13153 public String fhirType() { 13154 return "TestScript"; 13155 13156 } 13157 13158 public TestScript copy() { 13159 TestScript dst = new TestScript(); 13160 copyValues(dst); 13161 return dst; 13162 } 13163 13164 public void copyValues(TestScript dst) { 13165 super.copyValues(dst); 13166 dst.url = url == null ? null : url.copy(); 13167 dst.identifier = identifier == null ? null : identifier.copy(); 13168 dst.version = version == null ? null : version.copy(); 13169 dst.name = name == null ? null : name.copy(); 13170 dst.title = title == null ? null : title.copy(); 13171 dst.status = status == null ? null : status.copy(); 13172 dst.experimental = experimental == null ? null : experimental.copy(); 13173 dst.date = date == null ? null : date.copy(); 13174 dst.publisher = publisher == null ? null : publisher.copy(); 13175 if (contact != null) { 13176 dst.contact = new ArrayList<ContactDetail>(); 13177 for (ContactDetail i : contact) 13178 dst.contact.add(i.copy()); 13179 }; 13180 dst.description = description == null ? null : description.copy(); 13181 if (useContext != null) { 13182 dst.useContext = new ArrayList<UsageContext>(); 13183 for (UsageContext i : useContext) 13184 dst.useContext.add(i.copy()); 13185 }; 13186 if (jurisdiction != null) { 13187 dst.jurisdiction = new ArrayList<CodeableConcept>(); 13188 for (CodeableConcept i : jurisdiction) 13189 dst.jurisdiction.add(i.copy()); 13190 }; 13191 dst.purpose = purpose == null ? null : purpose.copy(); 13192 dst.copyright = copyright == null ? null : copyright.copy(); 13193 if (origin != null) { 13194 dst.origin = new ArrayList<TestScriptOriginComponent>(); 13195 for (TestScriptOriginComponent i : origin) 13196 dst.origin.add(i.copy()); 13197 }; 13198 if (destination != null) { 13199 dst.destination = new ArrayList<TestScriptDestinationComponent>(); 13200 for (TestScriptDestinationComponent i : destination) 13201 dst.destination.add(i.copy()); 13202 }; 13203 dst.metadata = metadata == null ? null : metadata.copy(); 13204 if (fixture != null) { 13205 dst.fixture = new ArrayList<TestScriptFixtureComponent>(); 13206 for (TestScriptFixtureComponent i : fixture) 13207 dst.fixture.add(i.copy()); 13208 }; 13209 if (profile != null) { 13210 dst.profile = new ArrayList<Reference>(); 13211 for (Reference i : profile) 13212 dst.profile.add(i.copy()); 13213 }; 13214 if (variable != null) { 13215 dst.variable = new ArrayList<TestScriptVariableComponent>(); 13216 for (TestScriptVariableComponent i : variable) 13217 dst.variable.add(i.copy()); 13218 }; 13219 dst.setup = setup == null ? null : setup.copy(); 13220 if (test != null) { 13221 dst.test = new ArrayList<TestScriptTestComponent>(); 13222 for (TestScriptTestComponent i : test) 13223 dst.test.add(i.copy()); 13224 }; 13225 dst.teardown = teardown == null ? null : teardown.copy(); 13226 } 13227 13228 protected TestScript typedCopy() { 13229 return copy(); 13230 } 13231 13232 @Override 13233 public boolean equalsDeep(Base other_) { 13234 if (!super.equalsDeep(other_)) 13235 return false; 13236 if (!(other_ instanceof TestScript)) 13237 return false; 13238 TestScript o = (TestScript) other_; 13239 return compareDeep(url, o.url, true) && compareDeep(identifier, o.identifier, true) && compareDeep(version, o.version, true) 13240 && compareDeep(name, o.name, true) && compareDeep(title, o.title, true) && compareDeep(status, o.status, true) 13241 && compareDeep(experimental, o.experimental, true) && compareDeep(date, o.date, true) && compareDeep(publisher, o.publisher, true) 13242 && compareDeep(contact, o.contact, true) && compareDeep(description, o.description, true) && compareDeep(useContext, o.useContext, true) 13243 && compareDeep(jurisdiction, o.jurisdiction, true) && compareDeep(purpose, o.purpose, true) && compareDeep(copyright, o.copyright, true) 13244 && compareDeep(origin, o.origin, true) && compareDeep(destination, o.destination, true) && compareDeep(metadata, o.metadata, true) 13245 && compareDeep(fixture, o.fixture, true) && compareDeep(profile, o.profile, true) && compareDeep(variable, o.variable, true) 13246 && compareDeep(setup, o.setup, true) && compareDeep(test, o.test, true) && compareDeep(teardown, o.teardown, true) 13247 ; 13248 } 13249 13250 @Override 13251 public boolean equalsShallow(Base other_) { 13252 if (!super.equalsShallow(other_)) 13253 return false; 13254 if (!(other_ instanceof TestScript)) 13255 return false; 13256 TestScript o = (TestScript) other_; 13257 return compareValues(url, o.url, true) && compareValues(version, o.version, true) && compareValues(name, o.name, true) 13258 && compareValues(title, o.title, true) && compareValues(status, o.status, true) && compareValues(experimental, o.experimental, true) 13259 && compareValues(date, o.date, true) && compareValues(publisher, o.publisher, true) && compareValues(description, o.description, true) 13260 && compareValues(purpose, o.purpose, true) && compareValues(copyright, o.copyright, true); 13261 } 13262 13263 public boolean isEmpty() { 13264 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, identifier, version 13265 , name, title, status, experimental, date, publisher, contact, description, useContext 13266 , jurisdiction, purpose, copyright, origin, destination, metadata, fixture, profile 13267 , variable, setup, test, teardown); 13268 } 13269 13270 @Override 13271 public ResourceType getResourceType() { 13272 return ResourceType.TestScript; 13273 } 13274 13275 /** 13276 * Search parameter: <b>context-quantity</b> 13277 * <p> 13278 * Description: <b>A quantity- or range-valued use context assigned to the test script</b><br> 13279 * Type: <b>quantity</b><br> 13280 * Path: <b>(TestScript.useContext.value as Quantity) | (TestScript.useContext.value as Range)</b><br> 13281 * </p> 13282 */ 13283 @SearchParamDefinition(name="context-quantity", path="(TestScript.useContext.value as Quantity) | (TestScript.useContext.value as Range)", description="A quantity- or range-valued use context assigned to the test script", type="quantity" ) 13284 public static final String SP_CONTEXT_QUANTITY = "context-quantity"; 13285 /** 13286 * <b>Fluent Client</b> search parameter constant for <b>context-quantity</b> 13287 * <p> 13288 * Description: <b>A quantity- or range-valued use context assigned to the test script</b><br> 13289 * Type: <b>quantity</b><br> 13290 * Path: <b>(TestScript.useContext.value as Quantity) | (TestScript.useContext.value as Range)</b><br> 13291 * </p> 13292 */ 13293 public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); 13294 13295 /** 13296 * Search parameter: <b>context-type-quantity</b> 13297 * <p> 13298 * Description: <b>A use context type and quantity- or range-based value assigned to the test script</b><br> 13299 * Type: <b>composite</b><br> 13300 * Path: <b>TestScript.useContext</b><br> 13301 * </p> 13302 */ 13303 @SearchParamDefinition(name="context-type-quantity", path="TestScript.useContext", description="A use context type and quantity- or range-based value assigned to the test script", type="composite", compositeOf={"context-type", "context-quantity"} ) 13304 public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; 13305 /** 13306 * <b>Fluent Client</b> search parameter constant for <b>context-type-quantity</b> 13307 * <p> 13308 * Description: <b>A use context type and quantity- or range-based value assigned to the test script</b><br> 13309 * Type: <b>composite</b><br> 13310 * Path: <b>TestScript.useContext</b><br> 13311 * </p> 13312 */ 13313 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); 13314 13315 /** 13316 * Search parameter: <b>context-type-value</b> 13317 * <p> 13318 * Description: <b>A use context type and value assigned to the test script</b><br> 13319 * Type: <b>composite</b><br> 13320 * Path: <b>TestScript.useContext</b><br> 13321 * </p> 13322 */ 13323 @SearchParamDefinition(name="context-type-value", path="TestScript.useContext", description="A use context type and value assigned to the test script", type="composite", compositeOf={"context-type", "context"} ) 13324 public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; 13325 /** 13326 * <b>Fluent Client</b> search parameter constant for <b>context-type-value</b> 13327 * <p> 13328 * Description: <b>A use context type and value assigned to the test script</b><br> 13329 * Type: <b>composite</b><br> 13330 * Path: <b>TestScript.useContext</b><br> 13331 * </p> 13332 */ 13333 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); 13334 13335 /** 13336 * Search parameter: <b>context-type</b> 13337 * <p> 13338 * Description: <b>A type of use context assigned to the test script</b><br> 13339 * Type: <b>token</b><br> 13340 * Path: <b>TestScript.useContext.code</b><br> 13341 * </p> 13342 */ 13343 @SearchParamDefinition(name="context-type", path="TestScript.useContext.code", description="A type of use context assigned to the test script", type="token" ) 13344 public static final String SP_CONTEXT_TYPE = "context-type"; 13345 /** 13346 * <b>Fluent Client</b> search parameter constant for <b>context-type</b> 13347 * <p> 13348 * Description: <b>A type of use context assigned to the test script</b><br> 13349 * Type: <b>token</b><br> 13350 * Path: <b>TestScript.useContext.code</b><br> 13351 * </p> 13352 */ 13353 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); 13354 13355 /** 13356 * Search parameter: <b>context</b> 13357 * <p> 13358 * Description: <b>A use context assigned to the test script</b><br> 13359 * Type: <b>token</b><br> 13360 * Path: <b>(TestScript.useContext.value as CodeableConcept)</b><br> 13361 * </p> 13362 */ 13363 @SearchParamDefinition(name="context", path="(TestScript.useContext.value as CodeableConcept)", description="A use context assigned to the test script", type="token" ) 13364 public static final String SP_CONTEXT = "context"; 13365 /** 13366 * <b>Fluent Client</b> search parameter constant for <b>context</b> 13367 * <p> 13368 * Description: <b>A use context assigned to the test script</b><br> 13369 * Type: <b>token</b><br> 13370 * Path: <b>(TestScript.useContext.value as CodeableConcept)</b><br> 13371 * </p> 13372 */ 13373 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); 13374 13375 /** 13376 * Search parameter: <b>date</b> 13377 * <p> 13378 * Description: <b>The test script publication date</b><br> 13379 * Type: <b>date</b><br> 13380 * Path: <b>TestScript.date</b><br> 13381 * </p> 13382 */ 13383 @SearchParamDefinition(name="date", path="TestScript.date", description="The test script publication date", type="date" ) 13384 public static final String SP_DATE = "date"; 13385 /** 13386 * <b>Fluent Client</b> search parameter constant for <b>date</b> 13387 * <p> 13388 * Description: <b>The test script publication date</b><br> 13389 * Type: <b>date</b><br> 13390 * Path: <b>TestScript.date</b><br> 13391 * </p> 13392 */ 13393 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 13394 13395 /** 13396 * Search parameter: <b>description</b> 13397 * <p> 13398 * Description: <b>The description of the test script</b><br> 13399 * Type: <b>string</b><br> 13400 * Path: <b>TestScript.description</b><br> 13401 * </p> 13402 */ 13403 @SearchParamDefinition(name="description", path="TestScript.description", description="The description of the test script", type="string" ) 13404 public static final String SP_DESCRIPTION = "description"; 13405 /** 13406 * <b>Fluent Client</b> search parameter constant for <b>description</b> 13407 * <p> 13408 * Description: <b>The description of the test script</b><br> 13409 * Type: <b>string</b><br> 13410 * Path: <b>TestScript.description</b><br> 13411 * </p> 13412 */ 13413 public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); 13414 13415 /** 13416 * Search parameter: <b>identifier</b> 13417 * <p> 13418 * Description: <b>External identifier for the test script</b><br> 13419 * Type: <b>token</b><br> 13420 * Path: <b>TestScript.identifier</b><br> 13421 * </p> 13422 */ 13423 @SearchParamDefinition(name="identifier", path="TestScript.identifier", description="External identifier for the test script", type="token" ) 13424 public static final String SP_IDENTIFIER = "identifier"; 13425 /** 13426 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 13427 * <p> 13428 * Description: <b>External identifier for the test script</b><br> 13429 * Type: <b>token</b><br> 13430 * Path: <b>TestScript.identifier</b><br> 13431 * </p> 13432 */ 13433 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 13434 13435 /** 13436 * Search parameter: <b>jurisdiction</b> 13437 * <p> 13438 * Description: <b>Intended jurisdiction for the test script</b><br> 13439 * Type: <b>token</b><br> 13440 * Path: <b>TestScript.jurisdiction</b><br> 13441 * </p> 13442 */ 13443 @SearchParamDefinition(name="jurisdiction", path="TestScript.jurisdiction", description="Intended jurisdiction for the test script", type="token" ) 13444 public static final String SP_JURISDICTION = "jurisdiction"; 13445 /** 13446 * <b>Fluent Client</b> search parameter constant for <b>jurisdiction</b> 13447 * <p> 13448 * Description: <b>Intended jurisdiction for the test script</b><br> 13449 * Type: <b>token</b><br> 13450 * Path: <b>TestScript.jurisdiction</b><br> 13451 * </p> 13452 */ 13453 public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION); 13454 13455 /** 13456 * Search parameter: <b>name</b> 13457 * <p> 13458 * Description: <b>Computationally friendly name of the test script</b><br> 13459 * Type: <b>string</b><br> 13460 * Path: <b>TestScript.name</b><br> 13461 * </p> 13462 */ 13463 @SearchParamDefinition(name="name", path="TestScript.name", description="Computationally friendly name of the test script", type="string" ) 13464 public static final String SP_NAME = "name"; 13465 /** 13466 * <b>Fluent Client</b> search parameter constant for <b>name</b> 13467 * <p> 13468 * Description: <b>Computationally friendly name of the test script</b><br> 13469 * Type: <b>string</b><br> 13470 * Path: <b>TestScript.name</b><br> 13471 * </p> 13472 */ 13473 public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); 13474 13475 /** 13476 * Search parameter: <b>publisher</b> 13477 * <p> 13478 * Description: <b>Name of the publisher of the test script</b><br> 13479 * Type: <b>string</b><br> 13480 * Path: <b>TestScript.publisher</b><br> 13481 * </p> 13482 */ 13483 @SearchParamDefinition(name="publisher", path="TestScript.publisher", description="Name of the publisher of the test script", type="string" ) 13484 public static final String SP_PUBLISHER = "publisher"; 13485 /** 13486 * <b>Fluent Client</b> search parameter constant for <b>publisher</b> 13487 * <p> 13488 * Description: <b>Name of the publisher of the test script</b><br> 13489 * Type: <b>string</b><br> 13490 * Path: <b>TestScript.publisher</b><br> 13491 * </p> 13492 */ 13493 public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); 13494 13495 /** 13496 * Search parameter: <b>status</b> 13497 * <p> 13498 * Description: <b>The current status of the test script</b><br> 13499 * Type: <b>token</b><br> 13500 * Path: <b>TestScript.status</b><br> 13501 * </p> 13502 */ 13503 @SearchParamDefinition(name="status", path="TestScript.status", description="The current status of the test script", type="token" ) 13504 public static final String SP_STATUS = "status"; 13505 /** 13506 * <b>Fluent Client</b> search parameter constant for <b>status</b> 13507 * <p> 13508 * Description: <b>The current status of the test script</b><br> 13509 * Type: <b>token</b><br> 13510 * Path: <b>TestScript.status</b><br> 13511 * </p> 13512 */ 13513 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 13514 13515 /** 13516 * Search parameter: <b>testscript-capability</b> 13517 * <p> 13518 * Description: <b>TestScript required and validated capability</b><br> 13519 * Type: <b>string</b><br> 13520 * Path: <b>TestScript.metadata.capability.description</b><br> 13521 * </p> 13522 */ 13523 @SearchParamDefinition(name="testscript-capability", path="TestScript.metadata.capability.description", description="TestScript required and validated capability", type="string" ) 13524 public static final String SP_TESTSCRIPT_CAPABILITY = "testscript-capability"; 13525 /** 13526 * <b>Fluent Client</b> search parameter constant for <b>testscript-capability</b> 13527 * <p> 13528 * Description: <b>TestScript required and validated capability</b><br> 13529 * Type: <b>string</b><br> 13530 * Path: <b>TestScript.metadata.capability.description</b><br> 13531 * </p> 13532 */ 13533 public static final ca.uhn.fhir.rest.gclient.StringClientParam TESTSCRIPT_CAPABILITY = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TESTSCRIPT_CAPABILITY); 13534 13535 /** 13536 * Search parameter: <b>title</b> 13537 * <p> 13538 * Description: <b>The human-friendly name of the test script</b><br> 13539 * Type: <b>string</b><br> 13540 * Path: <b>TestScript.title</b><br> 13541 * </p> 13542 */ 13543 @SearchParamDefinition(name="title", path="TestScript.title", description="The human-friendly name of the test script", type="string" ) 13544 public static final String SP_TITLE = "title"; 13545 /** 13546 * <b>Fluent Client</b> search parameter constant for <b>title</b> 13547 * <p> 13548 * Description: <b>The human-friendly name of the test script</b><br> 13549 * Type: <b>string</b><br> 13550 * Path: <b>TestScript.title</b><br> 13551 * </p> 13552 */ 13553 public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE); 13554 13555 /** 13556 * Search parameter: <b>url</b> 13557 * <p> 13558 * Description: <b>The uri that identifies the test script</b><br> 13559 * Type: <b>uri</b><br> 13560 * Path: <b>TestScript.url</b><br> 13561 * </p> 13562 */ 13563 @SearchParamDefinition(name="url", path="TestScript.url", description="The uri that identifies the test script", type="uri" ) 13564 public static final String SP_URL = "url"; 13565 /** 13566 * <b>Fluent Client</b> search parameter constant for <b>url</b> 13567 * <p> 13568 * Description: <b>The uri that identifies the test script</b><br> 13569 * Type: <b>uri</b><br> 13570 * Path: <b>TestScript.url</b><br> 13571 * </p> 13572 */ 13573 public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL); 13574 13575 /** 13576 * Search parameter: <b>version</b> 13577 * <p> 13578 * Description: <b>The business version of the test script</b><br> 13579 * Type: <b>token</b><br> 13580 * Path: <b>TestScript.version</b><br> 13581 * </p> 13582 */ 13583 @SearchParamDefinition(name="version", path="TestScript.version", description="The business version of the test script", type="token" ) 13584 public static final String SP_VERSION = "version"; 13585 /** 13586 * <b>Fluent Client</b> search parameter constant for <b>version</b> 13587 * <p> 13588 * Description: <b>The business version of the test script</b><br> 13589 * Type: <b>token</b><br> 13590 * Path: <b>TestScript.version</b><br> 13591 * </p> 13592 */ 13593 public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); 13594 13595 13596} 13597