001package org.hl7.fhir.r5.patterns; 002 003/*- 004 * #%L 005 * org.hl7.fhir.r5 006 * %% 007 * Copyright (C) 2014 - 2019 Health Level 7 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023 024/* 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 053// Generated on Wed, May 8, 2019 10:40+1000 for FHIR v4.1.0 054 055import java.util.*; 056 057import org.hl7.fhir.utilities.Utilities; 058import org.hl7.fhir.r5.model.Enumerations.*; 059import org.hl7.fhir.r5.model.*; 060import org.hl7.fhir.r5.model.DataType; 061import org.hl7.fhir.r5.model.Enumeration; 062import org.hl7.fhir.exceptions.FHIRException; 063 064public class ActivityDefinitionDefinitionImpl extends PatternBaseImpl implements Definition { 065 066 private ActivityDefinition wrapped; 067 068 public ActivityDefinitionDefinitionImpl(ActivityDefinition wrapped) { 069 super(wrapped); 070 this.wrapped = wrapped; 071 } 072 073 public int getUrlMin() { 074 return 0; 075 } 076 077 public int getUrlMax() { 078 return 1; 079 } 080 081 public UriType getUrlElement() throws FHIRException { 082 return wrapped.getUrlElement(); 083 } 084 085 086 public boolean hasUrlElement() { 087 return wrapped.hasUrlElement(); 088 } 089 090 091 public boolean hasUrl() { 092 return wrapped.hasUrl(); 093 } 094 095 096 public Definition setUrlElement(UriType value) throws FHIRException { 097 wrapped.setUrlElement(value); 098 return this; 099 100 } 101 102 103 public String getUrl() throws FHIRException { 104 return wrapped.getUrl(); 105 } 106 107 public Definition setUrl(String value) throws FHIRException { 108 wrapped.setUrl(value); 109 return this; 110 111} 112 113 public int getIdentifierMin() { 114 return 0; 115 } 116 117 public int getIdentifierMax() { 118 return 2147483647; 119 } 120 121 public Identifier getIdentifier() throws FHIRException { 122 return wrapped.getIdentifierFirstRep(); 123 } 124 125 public boolean hasIdentifier() { 126 return wrapped.hasIdentifier(); 127 } 128 129 public Definition setIdentifier(Identifier value) throws FHIRException { 130 wrapped.getIdentifier().clear(); 131 if (value != null) 132 wrapped.getIdentifier().add(value); 133 return this; 134 135 } 136 137 public int getVersionMin() { 138 return 0; 139 } 140 141 public int getVersionMax() { 142 return 1; 143 } 144 145 public StringType getVersionElement() throws FHIRException { 146 return wrapped.getVersionElement(); 147 } 148 149 150 public boolean hasVersionElement() { 151 return wrapped.hasVersionElement(); 152 } 153 154 155 public boolean hasVersion() { 156 return wrapped.hasVersion(); 157 } 158 159 160 public Definition setVersionElement(StringType value) throws FHIRException { 161 wrapped.setVersionElement(value); 162 return this; 163 164 } 165 166 167 public String getVersion() throws FHIRException { 168 return wrapped.getVersion(); 169 } 170 171 public Definition setVersion(String value) throws FHIRException { 172 wrapped.setVersion(value); 173 return this; 174 175} 176 177 public int getTitleMin() { 178 return 0; 179 } 180 181 public int getTitleMax() { 182 return 1; 183 } 184 185 public StringType getTitleElement() throws FHIRException { 186 return wrapped.getTitleElement(); 187 } 188 189 190 public boolean hasTitleElement() { 191 return wrapped.hasTitleElement(); 192 } 193 194 195 public boolean hasTitle() { 196 return wrapped.hasTitle(); 197 } 198 199 200 public Definition setTitleElement(StringType value) throws FHIRException { 201 wrapped.setTitleElement(value); 202 return this; 203 204 } 205 206 207 public String getTitle() throws FHIRException { 208 return wrapped.getTitle(); 209 } 210 211 public Definition setTitle(String value) throws FHIRException { 212 wrapped.setTitle(value); 213 return this; 214 215} 216 217 public int getDerivedFromCanonicalMin() { 218 return 0; 219 } 220 221 public int getDerivedFromCanonicalMax() { 222 return 0; 223 } 224 225 public List<CanonicalType> getDerivedFromCanonical() throws FHIRException { 226 throw new FHIRException("The pattern property 'derivedFromCanonical' is not supported in 'ActivityDefinition'"); 227 } 228 229 public Definition setDerivedFromCanonical(List<CanonicalType> theDerivedFromCanonical) throws FHIRException { 230 231 throw new FHIRException("The pattern property 'derivedFromCanonical' is not supported in 'ActivityDefinition'"); 232 } 233 234 public boolean hasDerivedFromCanonical() { 235 return false; 236 } 237 238 239 public CanonicalType addDerivedFromCanonicalElement() throws FHIRException { 240 throw new FHIRException("The pattern property 'derivedFromCanonical' is not supported in 'ActivityDefinition'"); 241 } 242 243 244 public Definition addDerivedFromCanonical(String value) throws FHIRException { 245 throw new FHIRException("The pattern property 'derivedFromCanonical' is not supported in 'ActivityDefinition'"); 246 } 247 248 249 public boolean hasDerivedFromCanonical(String value) { 250 return false; 251 } 252 253 254 public int getDerivedFromUriMin() { 255 return 0; 256 } 257 258 public int getDerivedFromUriMax() { 259 return 0; 260 } 261 262 public List<UriType> getDerivedFromUri() throws FHIRException { 263 throw new FHIRException("The pattern property 'derivedFromUri' is not supported in 'ActivityDefinition'"); 264 } 265 266 public Definition setDerivedFromUri(List<UriType> theDerivedFromUri) throws FHIRException { 267 268 throw new FHIRException("The pattern property 'derivedFromUri' is not supported in 'ActivityDefinition'"); 269 } 270 271 public boolean hasDerivedFromUri() { 272 return false; 273 } 274 275 276 public UriType addDerivedFromUriElement() throws FHIRException { 277 throw new FHIRException("The pattern property 'derivedFromUri' is not supported in 'ActivityDefinition'"); 278 } 279 280 281 public Definition addDerivedFromUri(String value) throws FHIRException { 282 throw new FHIRException("The pattern property 'derivedFromUri' is not supported in 'ActivityDefinition'"); 283 } 284 285 286 public boolean hasDerivedFromUri(String value) { 287 return false; 288 } 289 290 291 public int getPartOfMin() { 292 return 0; 293 } 294 295 public int getPartOfMax() { 296 return 0; 297 } 298 299 public List<CanonicalType> getPartOf() throws FHIRException { 300 throw new FHIRException("The pattern property 'partOf' is not supported in 'ActivityDefinition'"); 301 } 302 303 public Definition setPartOf(List<CanonicalType> thePartOf) throws FHIRException { 304 305 throw new FHIRException("The pattern property 'partOf' is not supported in 'ActivityDefinition'"); 306 } 307 308 public boolean hasPartOf() { 309 return false; 310 } 311 312 313 public CanonicalType addPartOfElement() throws FHIRException { 314 throw new FHIRException("The pattern property 'partOf' is not supported in 'ActivityDefinition'"); 315 } 316 317 318 public Definition addPartOf(String value) throws FHIRException { 319 throw new FHIRException("The pattern property 'partOf' is not supported in 'ActivityDefinition'"); 320 } 321 322 323 public boolean hasPartOf(String value) { 324 return false; 325 } 326 327 328 public int getReplacesMin() { 329 return 0; 330 } 331 332 public int getReplacesMax() { 333 return 0; 334 } 335 336 public List<CanonicalType> getReplaces() throws FHIRException { 337 throw new FHIRException("The pattern property 'replaces' is not supported in 'ActivityDefinition'"); 338 } 339 340 public Definition setReplaces(List<CanonicalType> theReplaces) throws FHIRException { 341 342 throw new FHIRException("The pattern property 'replaces' is not supported in 'ActivityDefinition'"); 343 } 344 345 public boolean hasReplaces() { 346 return false; 347 } 348 349 350 public CanonicalType addReplacesElement() throws FHIRException { 351 throw new FHIRException("The pattern property 'replaces' is not supported in 'ActivityDefinition'"); 352 } 353 354 355 public Definition addReplaces(String value) throws FHIRException { 356 throw new FHIRException("The pattern property 'replaces' is not supported in 'ActivityDefinition'"); 357 } 358 359 360 public boolean hasReplaces(String value) { 361 return false; 362 } 363 364 365 public int getStatusMin() { 366 return 0; 367 } 368 369 public int getStatusMax() { 370 return 0; 371 } 372 373 public Enumeration<PublicationStatus> getStatusElement() throws FHIRException { 374 throw new FHIRException("The pattern property 'status' is not supported in 'ActivityDefinition'"); 375 } 376 377 378 public boolean hasStatusElement() { 379 return false; 380 } 381 382 383 public boolean hasStatus() { 384 return false; 385 } 386 387 388 public Definition setStatusElement(Enumeration<PublicationStatus> value) throws FHIRException { 389 throw new FHIRException("The pattern property 'status' is not supported in 'ActivityDefinition'"); 390 } 391 392 393 public PublicationStatus getStatus() throws FHIRException { 394 throw new FHIRException("The pattern property 'status' is not supported in 'ActivityDefinition'"); 395 } 396 397 public Definition setStatus(PublicationStatus value) throws FHIRException { 398 throw new FHIRException("The pattern property 'status' is not supported in 'ActivityDefinition'"); 399} 400 401 public int getExperimentalMin() { 402 return 0; 403 } 404 405 public int getExperimentalMax() { 406 return 1; 407 } 408 409 public BooleanType getExperimentalElement() throws FHIRException { 410 return wrapped.getExperimentalElement(); 411 } 412 413 414 public boolean hasExperimentalElement() { 415 return wrapped.hasExperimentalElement(); 416 } 417 418 419 public boolean hasExperimental() { 420 return wrapped.hasExperimental(); 421 } 422 423 424 public Definition setExperimentalElement(BooleanType value) throws FHIRException { 425 wrapped.setExperimentalElement(value); 426 return this; 427 428 } 429 430 431 public boolean getExperimental() throws FHIRException { 432 return wrapped.getExperimental(); 433 } 434 435 public Definition setExperimental(boolean value) throws FHIRException { 436 wrapped.setExperimental(value); 437 return this; 438 439} 440 441 public int getSubjectMin() { 442 return 0; 443 } 444 445 public int getSubjectMax() { 446 return 0; 447 } 448 449 public DataType getSubject() throws FHIRException { 450 throw new FHIRException("The pattern property 'subject[x]' is not supported in 'ActivityDefinition'"); 451 } 452 453 public CodeableConcept getSubjectCodeableConcept() throws FHIRException { 454 throw new FHIRException("The pattern property 'subject[x]' is not supported in 'ActivityDefinition'"); 455 } 456 457 public boolean hasSubjectCodeableConcept() { 458 return false; 459 } 460 461 public Reference getSubjectReference() throws FHIRException { 462 throw new FHIRException("The pattern property 'subject[x]' is not supported in 'ActivityDefinition'"); 463 } 464 465 public boolean hasSubjectReference() { 466 return false; 467 } 468 469 public boolean hasSubject() { 470 return false; 471 } 472 473 public Definition setSubject(DataType value) throws FHIRException { 474 throw new FHIRException("The pattern property 'subject[x]' is not supported in 'ActivityDefinition'"); 475 } 476 477 public int getDateMin() { 478 return 0; 479 } 480 481 public int getDateMax() { 482 return 1; 483 } 484 485 public DateTimeType getDateElement() throws FHIRException { 486 return wrapped.getDateElement(); 487 } 488 489 490 public boolean hasDateElement() { 491 return wrapped.hasDateElement(); 492 } 493 494 495 public boolean hasDate() { 496 return wrapped.hasDate(); 497 } 498 499 500 public Definition setDateElement(DateTimeType value) throws FHIRException { 501 wrapped.setDateElement(value); 502 return this; 503 504 } 505 506 507 public Date getDate() throws FHIRException { 508 return wrapped.getDate(); 509 } 510 511 public Definition setDate(Date value) throws FHIRException { 512 wrapped.setDate(value); 513 return this; 514 515} 516 517 public int getPublisherMin() { 518 return 0; 519 } 520 521 public int getPublisherMax() { 522 return 0; 523 } 524 525 public Reference getPublisher() throws FHIRException { 526 throw new FHIRException("The pattern property 'publisher' is not supported in 'ActivityDefinition'"); 527 } 528 529 public boolean hasPublisher() { 530 return false; 531 } 532 533 public Definition setPublisher(Reference value) throws FHIRException { 534 throw new FHIRException("The pattern property 'publisher' is not supported in 'ActivityDefinition'"); 535 } 536 537 public int getContactMin() { 538 return 0; 539 } 540 541 public int getContactMax() { 542 return 2147483647; 543 } 544 545 public List<ContactDetail> getContact() throws FHIRException { 546 return wrapped.getContact(); 547 } 548 549 public Definition setContact(List<ContactDetail> theContact) throws FHIRException { 550 551 wrapped.setContact(theContact); 552 return this; 553 554 } 555 556 public boolean hasContact() { 557 return wrapped.hasContact(); 558 } 559 560 561 public ContactDetail addContact() throws FHIRException { 562 throw new FHIRException("The pattern property 'contact' is not supported in 'ActivityDefinition'"); 563 } 564 565 566 public Definition addContact(ContactDetail t) throws FHIRException { 567 throw new FHIRException("The pattern property 'contact' is not supported in 'ActivityDefinition'"); 568 } 569 570 571 public ContactDetail getContactFirstRep() throws FHIRException { 572 573 return wrapped.getContactFirstRep(); 574 } 575 576 public int getDescriptionMin() { 577 return 0; 578 } 579 580 public int getDescriptionMax() { 581 return 1; 582 } 583 584 public MarkdownType getDescriptionElement() throws FHIRException { 585 return wrapped.getDescriptionElement(); 586 } 587 588 589 public boolean hasDescriptionElement() { 590 return wrapped.hasDescriptionElement(); 591 } 592 593 594 public boolean hasDescription() { 595 return wrapped.hasDescription(); 596 } 597 598 599 public Definition setDescriptionElement(MarkdownType value) throws FHIRException { 600 wrapped.setDescriptionElement(value); 601 return this; 602 603 } 604 605 606 public String getDescription() throws FHIRException { 607 return wrapped.getDescription(); 608 } 609 610 public Definition setDescription(String value) throws FHIRException { 611 wrapped.setDescription(value); 612 return this; 613 614} 615 616 public int getUseContextMin() { 617 return 0; 618 } 619 620 public int getUseContextMax() { 621 return 2147483647; 622 } 623 624 public List<UsageContext> getUseContext() throws FHIRException { 625 return wrapped.getUseContext(); 626 } 627 628 public Definition setUseContext(List<UsageContext> theUseContext) throws FHIRException { 629 630 wrapped.setUseContext(theUseContext); 631 return this; 632 633 } 634 635 public boolean hasUseContext() { 636 return wrapped.hasUseContext(); 637 } 638 639 640 public UsageContext addUseContext() throws FHIRException { 641 throw new FHIRException("The pattern property 'useContext' is not supported in 'ActivityDefinition'"); 642 } 643 644 645 public Definition addUseContext(UsageContext t) throws FHIRException { 646 throw new FHIRException("The pattern property 'useContext' is not supported in 'ActivityDefinition'"); 647 } 648 649 650 public UsageContext getUseContextFirstRep() throws FHIRException { 651 652 return wrapped.getUseContextFirstRep(); 653 } 654 655 public int getJurisdictionMin() { 656 return 0; 657 } 658 659 public int getJurisdictionMax() { 660 return 2147483647; 661 } 662 663 public List<CodeableConcept> getJurisdiction() throws FHIRException { 664 return wrapped.getJurisdiction(); 665 } 666 667 public Definition setJurisdiction(List<CodeableConcept> theJurisdiction) throws FHIRException { 668 669 wrapped.setJurisdiction(theJurisdiction); 670 return this; 671 672 } 673 674 public boolean hasJurisdiction() { 675 return wrapped.hasJurisdiction(); 676 } 677 678 679 public CodeableConcept addJurisdiction() throws FHIRException { 680 throw new FHIRException("The pattern property 'jurisdiction' is not supported in 'ActivityDefinition'"); 681 } 682 683 684 public Definition addJurisdiction(CodeableConcept t) throws FHIRException { 685 throw new FHIRException("The pattern property 'jurisdiction' is not supported in 'ActivityDefinition'"); 686 } 687 688 689 public CodeableConcept getJurisdictionFirstRep() throws FHIRException { 690 691 return wrapped.getJurisdictionFirstRep(); 692 } 693 694 public int getPurposeMin() { 695 return 0; 696 } 697 698 public int getPurposeMax() { 699 return 1; 700 } 701 702 public MarkdownType getPurposeElement() throws FHIRException { 703 return wrapped.getPurposeElement(); 704 } 705 706 707 public boolean hasPurposeElement() { 708 return wrapped.hasPurposeElement(); 709 } 710 711 712 public boolean hasPurpose() { 713 return wrapped.hasPurpose(); 714 } 715 716 717 public Definition setPurposeElement(MarkdownType value) throws FHIRException { 718 wrapped.setPurposeElement(value); 719 return this; 720 721 } 722 723 724 public String getPurpose() throws FHIRException { 725 return wrapped.getPurpose(); 726 } 727 728 public Definition setPurpose(String value) throws FHIRException { 729 wrapped.setPurpose(value); 730 return this; 731 732} 733 734 public int getCopyrightMin() { 735 return 0; 736 } 737 738 public int getCopyrightMax() { 739 return 1; 740 } 741 742 public MarkdownType getCopyrightElement() throws FHIRException { 743 return wrapped.getCopyrightElement(); 744 } 745 746 747 public boolean hasCopyrightElement() { 748 return wrapped.hasCopyrightElement(); 749 } 750 751 752 public boolean hasCopyright() { 753 return wrapped.hasCopyright(); 754 } 755 756 757 public Definition setCopyrightElement(MarkdownType value) throws FHIRException { 758 wrapped.setCopyrightElement(value); 759 return this; 760 761 } 762 763 764 public String getCopyright() throws FHIRException { 765 return wrapped.getCopyright(); 766 } 767 768 public Definition setCopyright(String value) throws FHIRException { 769 wrapped.setCopyright(value); 770 return this; 771 772} 773 774 public int getApprovalDateMin() { 775 return 0; 776 } 777 778 public int getApprovalDateMax() { 779 return 1; 780 } 781 782 public DateType getApprovalDateElement() throws FHIRException { 783 return wrapped.getApprovalDateElement(); 784 } 785 786 787 public boolean hasApprovalDateElement() { 788 return wrapped.hasApprovalDateElement(); 789 } 790 791 792 public boolean hasApprovalDate() { 793 return wrapped.hasApprovalDate(); 794 } 795 796 797 public Definition setApprovalDateElement(DateType value) throws FHIRException { 798 wrapped.setApprovalDateElement(value); 799 return this; 800 801 } 802 803 804 public Date getApprovalDate() throws FHIRException { 805 return wrapped.getApprovalDate(); 806 } 807 808 public Definition setApprovalDate(Date value) throws FHIRException { 809 wrapped.setApprovalDate(value); 810 return this; 811 812} 813 814 public int getLastReviewDateMin() { 815 return 0; 816 } 817 818 public int getLastReviewDateMax() { 819 return 1; 820 } 821 822 public DateType getLastReviewDateElement() throws FHIRException { 823 return wrapped.getLastReviewDateElement(); 824 } 825 826 827 public boolean hasLastReviewDateElement() { 828 return wrapped.hasLastReviewDateElement(); 829 } 830 831 832 public boolean hasLastReviewDate() { 833 return wrapped.hasLastReviewDate(); 834 } 835 836 837 public Definition setLastReviewDateElement(DateType value) throws FHIRException { 838 wrapped.setLastReviewDateElement(value); 839 return this; 840 841 } 842 843 844 public Date getLastReviewDate() throws FHIRException { 845 return wrapped.getLastReviewDate(); 846 } 847 848 public Definition setLastReviewDate(Date value) throws FHIRException { 849 wrapped.setLastReviewDate(value); 850 return this; 851 852} 853 854 public int getEffectivePeriodMin() { 855 return 0; 856 } 857 858 public int getEffectivePeriodMax() { 859 return 1; 860 } 861 862 public Period getEffectivePeriod() throws FHIRException { 863 return wrapped.getEffectivePeriod(); 864 } 865 866 public boolean hasEffectivePeriod() { 867 return wrapped.hasEffectivePeriod(); 868 } 869 870 public Definition setEffectivePeriod(Period value) throws FHIRException { 871 wrapped.setEffectivePeriod(value); 872 return this; 873 874 } 875 876 public int getPerformerTypeMin() { 877 return 0; 878 } 879 880 public int getPerformerTypeMax() { 881 return 0; 882 } 883 884 public CodeableConcept getPerformerType() throws FHIRException { 885 throw new FHIRException("The pattern property 'performerType' is not supported in 'ActivityDefinition'"); 886 } 887 888 public boolean hasPerformerType() { 889 return false; 890 } 891 892 public Definition setPerformerType(CodeableConcept value) throws FHIRException { 893 throw new FHIRException("The pattern property 'performerType' is not supported in 'ActivityDefinition'"); 894 } 895 896 public String fhirType() { 897 return "ActivityDefinition"; 898} 899 900 901} 902