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.r5.model.Enumerations.*; 058import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 059import org.hl7.fhir.exceptions.FHIRException; 060import org.hl7.fhir.instance.model.api.ICompositeType; 061import ca.uhn.fhir.model.api.annotation.ResourceDef; 062import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 063import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 064import ca.uhn.fhir.model.api.annotation.Child; 065import ca.uhn.fhir.model.api.annotation.ChildOrder; 066import ca.uhn.fhir.model.api.annotation.Description; 067import ca.uhn.fhir.model.api.annotation.Block; 068 069/** 070 * The regulatory authorization of a medicinal product. 071 */ 072@ResourceDef(name="RegulatedAuthorization", profile="http://hl7.org/fhir/StructureDefinition/RegulatedAuthorization") 073public class RegulatedAuthorization extends DomainResource { 074 075 @Block() 076 public static class RegulatedAuthorizationRelatedDateComponent extends BackboneElement implements IBaseBackboneElement { 077 /** 078 * Another date associated with the authorization. 079 */ 080 @Child(name = "date", type = {Period.class, DateTimeType.class}, order=1, min=1, max=1, modifier=false, summary=true) 081 @Description(shortDefinition="Another date associated with the authorization", formalDefinition="Another date associated with the authorization." ) 082 protected DataType date; 083 084 /** 085 * Type of this date, for example the data exclusitity period for a medicinal product. 086 */ 087 @Child(name = "type", type = {CodeableConcept.class}, order=2, min=1, max=1, modifier=false, summary=true) 088 @Description(shortDefinition="Type of this date, for example the data exclusitity period for a medicinal product", formalDefinition="Type of this date, for example the data exclusitity period for a medicinal product." ) 089 protected CodeableConcept type; 090 091 private static final long serialVersionUID = 950845613L; 092 093 /** 094 * Constructor 095 */ 096 public RegulatedAuthorizationRelatedDateComponent() { 097 super(); 098 } 099 100 /** 101 * Constructor 102 */ 103 public RegulatedAuthorizationRelatedDateComponent(DataType date, CodeableConcept type) { 104 super(); 105 this.setDate(date); 106 this.setType(type); 107 } 108 109 /** 110 * @return {@link #date} (Another date associated with the authorization.) 111 */ 112 public DataType getDate() { 113 return this.date; 114 } 115 116 /** 117 * @return {@link #date} (Another date associated with the authorization.) 118 */ 119 public Period getDatePeriod() throws FHIRException { 120 if (this.date == null) 121 this.date = new Period(); 122 if (!(this.date instanceof Period)) 123 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.date.getClass().getName()+" was encountered"); 124 return (Period) this.date; 125 } 126 127 public boolean hasDatePeriod() { 128 return this != null && this.date instanceof Period; 129 } 130 131 /** 132 * @return {@link #date} (Another date associated with the authorization.) 133 */ 134 public DateTimeType getDateDateTimeType() throws FHIRException { 135 if (this.date == null) 136 this.date = new DateTimeType(); 137 if (!(this.date instanceof DateTimeType)) 138 throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.date.getClass().getName()+" was encountered"); 139 return (DateTimeType) this.date; 140 } 141 142 public boolean hasDateDateTimeType() { 143 return this != null && this.date instanceof DateTimeType; 144 } 145 146 public boolean hasDate() { 147 return this.date != null && !this.date.isEmpty(); 148 } 149 150 /** 151 * @param value {@link #date} (Another date associated with the authorization.) 152 */ 153 public RegulatedAuthorizationRelatedDateComponent setDate(DataType value) { 154 if (value != null && !(value instanceof Period || value instanceof DateTimeType)) 155 throw new Error("Not the right type for RegulatedAuthorization.relatedDate.date[x]: "+value.fhirType()); 156 this.date = value; 157 return this; 158 } 159 160 /** 161 * @return {@link #type} (Type of this date, for example the data exclusitity period for a medicinal product.) 162 */ 163 public CodeableConcept getType() { 164 if (this.type == null) 165 if (Configuration.errorOnAutoCreate()) 166 throw new Error("Attempt to auto-create RegulatedAuthorizationRelatedDateComponent.type"); 167 else if (Configuration.doAutoCreate()) 168 this.type = new CodeableConcept(); // cc 169 return this.type; 170 } 171 172 public boolean hasType() { 173 return this.type != null && !this.type.isEmpty(); 174 } 175 176 /** 177 * @param value {@link #type} (Type of this date, for example the data exclusitity period for a medicinal product.) 178 */ 179 public RegulatedAuthorizationRelatedDateComponent setType(CodeableConcept value) { 180 this.type = value; 181 return this; 182 } 183 184 protected void listChildren(List<Property> children) { 185 super.listChildren(children); 186 children.add(new Property("date[x]", "Period|dateTime", "Another date associated with the authorization.", 0, 1, date)); 187 children.add(new Property("type", "CodeableConcept", "Type of this date, for example the data exclusitity period for a medicinal product.", 0, 1, type)); 188 } 189 190 @Override 191 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 192 switch (_hash) { 193 case 1443311122: /*date[x]*/ return new Property("date[x]", "Period|dateTime", "Another date associated with the authorization.", 0, 1, date); 194 case 3076014: /*date*/ return new Property("date[x]", "Period|dateTime", "Another date associated with the authorization.", 0, 1, date); 195 case 432297743: /*datePeriod*/ return new Property("date[x]", "Period", "Another date associated with the authorization.", 0, 1, date); 196 case 185136489: /*dateDateTime*/ return new Property("date[x]", "dateTime", "Another date associated with the authorization.", 0, 1, date); 197 case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Type of this date, for example the data exclusitity period for a medicinal product.", 0, 1, type); 198 default: return super.getNamedProperty(_hash, _name, _checkValid); 199 } 200 201 } 202 203 @Override 204 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 205 switch (hash) { 206 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DataType 207 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept 208 default: return super.getProperty(hash, name, checkValid); 209 } 210 211 } 212 213 @Override 214 public Base setProperty(int hash, String name, Base value) throws FHIRException { 215 switch (hash) { 216 case 3076014: // date 217 this.date = TypeConvertor.castToType(value); // DataType 218 return value; 219 case 3575610: // type 220 this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 221 return value; 222 default: return super.setProperty(hash, name, value); 223 } 224 225 } 226 227 @Override 228 public Base setProperty(String name, Base value) throws FHIRException { 229 if (name.equals("date[x]")) { 230 this.date = TypeConvertor.castToType(value); // DataType 231 } else if (name.equals("type")) { 232 this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 233 } else 234 return super.setProperty(name, value); 235 return value; 236 } 237 238 @Override 239 public Base makeProperty(int hash, String name) throws FHIRException { 240 switch (hash) { 241 case 1443311122: return getDate(); 242 case 3076014: return getDate(); 243 case 3575610: return getType(); 244 default: return super.makeProperty(hash, name); 245 } 246 247 } 248 249 @Override 250 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 251 switch (hash) { 252 case 3076014: /*date*/ return new String[] {"Period", "dateTime"}; 253 case 3575610: /*type*/ return new String[] {"CodeableConcept"}; 254 default: return super.getTypesForProperty(hash, name); 255 } 256 257 } 258 259 @Override 260 public Base addChild(String name) throws FHIRException { 261 if (name.equals("datePeriod")) { 262 this.date = new Period(); 263 return this.date; 264 } 265 else if (name.equals("dateDateTime")) { 266 this.date = new DateTimeType(); 267 return this.date; 268 } 269 else if (name.equals("type")) { 270 this.type = new CodeableConcept(); 271 return this.type; 272 } 273 else 274 return super.addChild(name); 275 } 276 277 public RegulatedAuthorizationRelatedDateComponent copy() { 278 RegulatedAuthorizationRelatedDateComponent dst = new RegulatedAuthorizationRelatedDateComponent(); 279 copyValues(dst); 280 return dst; 281 } 282 283 public void copyValues(RegulatedAuthorizationRelatedDateComponent dst) { 284 super.copyValues(dst); 285 dst.date = date == null ? null : date.copy(); 286 dst.type = type == null ? null : type.copy(); 287 } 288 289 @Override 290 public boolean equalsDeep(Base other_) { 291 if (!super.equalsDeep(other_)) 292 return false; 293 if (!(other_ instanceof RegulatedAuthorizationRelatedDateComponent)) 294 return false; 295 RegulatedAuthorizationRelatedDateComponent o = (RegulatedAuthorizationRelatedDateComponent) other_; 296 return compareDeep(date, o.date, true) && compareDeep(type, o.type, true); 297 } 298 299 @Override 300 public boolean equalsShallow(Base other_) { 301 if (!super.equalsShallow(other_)) 302 return false; 303 if (!(other_ instanceof RegulatedAuthorizationRelatedDateComponent)) 304 return false; 305 RegulatedAuthorizationRelatedDateComponent o = (RegulatedAuthorizationRelatedDateComponent) other_; 306 return true; 307 } 308 309 public boolean isEmpty() { 310 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(date, type); 311 } 312 313 public String fhirType() { 314 return "RegulatedAuthorization.relatedDate"; 315 316 } 317 318 } 319 320 @Block() 321 public static class RegulatedAuthorizationCaseComponent extends BackboneElement implements IBaseBackboneElement { 322 /** 323 * Identifier for this case. 324 */ 325 @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=1, modifier=false, summary=true) 326 @Description(shortDefinition="Identifier for this case", formalDefinition="Identifier for this case." ) 327 protected Identifier identifier; 328 329 /** 330 * Type of case. 331 */ 332 @Child(name = "type", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true) 333 @Description(shortDefinition="Type of case", formalDefinition="Type of case." ) 334 protected CodeableConcept type; 335 336 /** 337 * The status of the case. 338 */ 339 @Child(name = "status", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=true) 340 @Description(shortDefinition="The status of the case", formalDefinition="The status of the case." ) 341 protected CodeableConcept status; 342 343 /** 344 * Date of case. 345 */ 346 @Child(name = "date", type = {Period.class, DateTimeType.class}, order=4, min=0, max=1, modifier=false, summary=true) 347 @Description(shortDefinition="Date of case", formalDefinition="Date of case." ) 348 protected DataType date; 349 350 /** 351 * Applcations submitted to obtain a marketing authorization. Steps within the longer running case or procedure. 352 */ 353 @Child(name = "application", type = {RegulatedAuthorizationCaseComponent.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 354 @Description(shortDefinition="Applcations submitted to obtain a marketing authorization. Steps within the longer running case or procedure", formalDefinition="Applcations submitted to obtain a marketing authorization. Steps within the longer running case or procedure." ) 355 protected List<RegulatedAuthorizationCaseComponent> application; 356 357 private static final long serialVersionUID = 2052202113L; 358 359 /** 360 * Constructor 361 */ 362 public RegulatedAuthorizationCaseComponent() { 363 super(); 364 } 365 366 /** 367 * @return {@link #identifier} (Identifier for this case.) 368 */ 369 public Identifier getIdentifier() { 370 if (this.identifier == null) 371 if (Configuration.errorOnAutoCreate()) 372 throw new Error("Attempt to auto-create RegulatedAuthorizationCaseComponent.identifier"); 373 else if (Configuration.doAutoCreate()) 374 this.identifier = new Identifier(); // cc 375 return this.identifier; 376 } 377 378 public boolean hasIdentifier() { 379 return this.identifier != null && !this.identifier.isEmpty(); 380 } 381 382 /** 383 * @param value {@link #identifier} (Identifier for this case.) 384 */ 385 public RegulatedAuthorizationCaseComponent setIdentifier(Identifier value) { 386 this.identifier = value; 387 return this; 388 } 389 390 /** 391 * @return {@link #type} (Type of case.) 392 */ 393 public CodeableConcept getType() { 394 if (this.type == null) 395 if (Configuration.errorOnAutoCreate()) 396 throw new Error("Attempt to auto-create RegulatedAuthorizationCaseComponent.type"); 397 else if (Configuration.doAutoCreate()) 398 this.type = new CodeableConcept(); // cc 399 return this.type; 400 } 401 402 public boolean hasType() { 403 return this.type != null && !this.type.isEmpty(); 404 } 405 406 /** 407 * @param value {@link #type} (Type of case.) 408 */ 409 public RegulatedAuthorizationCaseComponent setType(CodeableConcept value) { 410 this.type = value; 411 return this; 412 } 413 414 /** 415 * @return {@link #status} (The status of the case.) 416 */ 417 public CodeableConcept getStatus() { 418 if (this.status == null) 419 if (Configuration.errorOnAutoCreate()) 420 throw new Error("Attempt to auto-create RegulatedAuthorizationCaseComponent.status"); 421 else if (Configuration.doAutoCreate()) 422 this.status = new CodeableConcept(); // cc 423 return this.status; 424 } 425 426 public boolean hasStatus() { 427 return this.status != null && !this.status.isEmpty(); 428 } 429 430 /** 431 * @param value {@link #status} (The status of the case.) 432 */ 433 public RegulatedAuthorizationCaseComponent setStatus(CodeableConcept value) { 434 this.status = value; 435 return this; 436 } 437 438 /** 439 * @return {@link #date} (Date of case.) 440 */ 441 public DataType getDate() { 442 return this.date; 443 } 444 445 /** 446 * @return {@link #date} (Date of case.) 447 */ 448 public Period getDatePeriod() throws FHIRException { 449 if (this.date == null) 450 this.date = new Period(); 451 if (!(this.date instanceof Period)) 452 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.date.getClass().getName()+" was encountered"); 453 return (Period) this.date; 454 } 455 456 public boolean hasDatePeriod() { 457 return this != null && this.date instanceof Period; 458 } 459 460 /** 461 * @return {@link #date} (Date of case.) 462 */ 463 public DateTimeType getDateDateTimeType() throws FHIRException { 464 if (this.date == null) 465 this.date = new DateTimeType(); 466 if (!(this.date instanceof DateTimeType)) 467 throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.date.getClass().getName()+" was encountered"); 468 return (DateTimeType) this.date; 469 } 470 471 public boolean hasDateDateTimeType() { 472 return this != null && this.date instanceof DateTimeType; 473 } 474 475 public boolean hasDate() { 476 return this.date != null && !this.date.isEmpty(); 477 } 478 479 /** 480 * @param value {@link #date} (Date of case.) 481 */ 482 public RegulatedAuthorizationCaseComponent setDate(DataType value) { 483 if (value != null && !(value instanceof Period || value instanceof DateTimeType)) 484 throw new Error("Not the right type for RegulatedAuthorization.case.date[x]: "+value.fhirType()); 485 this.date = value; 486 return this; 487 } 488 489 /** 490 * @return {@link #application} (Applcations submitted to obtain a marketing authorization. Steps within the longer running case or procedure.) 491 */ 492 public List<RegulatedAuthorizationCaseComponent> getApplication() { 493 if (this.application == null) 494 this.application = new ArrayList<RegulatedAuthorizationCaseComponent>(); 495 return this.application; 496 } 497 498 /** 499 * @return Returns a reference to <code>this</code> for easy method chaining 500 */ 501 public RegulatedAuthorizationCaseComponent setApplication(List<RegulatedAuthorizationCaseComponent> theApplication) { 502 this.application = theApplication; 503 return this; 504 } 505 506 public boolean hasApplication() { 507 if (this.application == null) 508 return false; 509 for (RegulatedAuthorizationCaseComponent item : this.application) 510 if (!item.isEmpty()) 511 return true; 512 return false; 513 } 514 515 public RegulatedAuthorizationCaseComponent addApplication() { //3 516 RegulatedAuthorizationCaseComponent t = new RegulatedAuthorizationCaseComponent(); 517 if (this.application == null) 518 this.application = new ArrayList<RegulatedAuthorizationCaseComponent>(); 519 this.application.add(t); 520 return t; 521 } 522 523 public RegulatedAuthorizationCaseComponent addApplication(RegulatedAuthorizationCaseComponent t) { //3 524 if (t == null) 525 return this; 526 if (this.application == null) 527 this.application = new ArrayList<RegulatedAuthorizationCaseComponent>(); 528 this.application.add(t); 529 return this; 530 } 531 532 /** 533 * @return The first repetition of repeating field {@link #application}, creating it if it does not already exist {3} 534 */ 535 public RegulatedAuthorizationCaseComponent getApplicationFirstRep() { 536 if (getApplication().isEmpty()) { 537 addApplication(); 538 } 539 return getApplication().get(0); 540 } 541 542 protected void listChildren(List<Property> children) { 543 super.listChildren(children); 544 children.add(new Property("identifier", "Identifier", "Identifier for this case.", 0, 1, identifier)); 545 children.add(new Property("type", "CodeableConcept", "Type of case.", 0, 1, type)); 546 children.add(new Property("status", "CodeableConcept", "The status of the case.", 0, 1, status)); 547 children.add(new Property("date[x]", "Period|dateTime", "Date of case.", 0, 1, date)); 548 children.add(new Property("application", "@RegulatedAuthorization.case", "Applcations submitted to obtain a marketing authorization. Steps within the longer running case or procedure.", 0, java.lang.Integer.MAX_VALUE, application)); 549 } 550 551 @Override 552 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 553 switch (_hash) { 554 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Identifier for this case.", 0, 1, identifier); 555 case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Type of case.", 0, 1, type); 556 case -892481550: /*status*/ return new Property("status", "CodeableConcept", "The status of the case.", 0, 1, status); 557 case 1443311122: /*date[x]*/ return new Property("date[x]", "Period|dateTime", "Date of case.", 0, 1, date); 558 case 3076014: /*date*/ return new Property("date[x]", "Period|dateTime", "Date of case.", 0, 1, date); 559 case 432297743: /*datePeriod*/ return new Property("date[x]", "Period", "Date of case.", 0, 1, date); 560 case 185136489: /*dateDateTime*/ return new Property("date[x]", "dateTime", "Date of case.", 0, 1, date); 561 case 1554253136: /*application*/ return new Property("application", "@RegulatedAuthorization.case", "Applcations submitted to obtain a marketing authorization. Steps within the longer running case or procedure.", 0, java.lang.Integer.MAX_VALUE, application); 562 default: return super.getNamedProperty(_hash, _name, _checkValid); 563 } 564 565 } 566 567 @Override 568 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 569 switch (hash) { 570 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // Identifier 571 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept 572 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // CodeableConcept 573 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DataType 574 case 1554253136: /*application*/ return this.application == null ? new Base[0] : this.application.toArray(new Base[this.application.size()]); // RegulatedAuthorizationCaseComponent 575 default: return super.getProperty(hash, name, checkValid); 576 } 577 578 } 579 580 @Override 581 public Base setProperty(int hash, String name, Base value) throws FHIRException { 582 switch (hash) { 583 case -1618432855: // identifier 584 this.identifier = TypeConvertor.castToIdentifier(value); // Identifier 585 return value; 586 case 3575610: // type 587 this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 588 return value; 589 case -892481550: // status 590 this.status = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 591 return value; 592 case 3076014: // date 593 this.date = TypeConvertor.castToType(value); // DataType 594 return value; 595 case 1554253136: // application 596 this.getApplication().add((RegulatedAuthorizationCaseComponent) value); // RegulatedAuthorizationCaseComponent 597 return value; 598 default: return super.setProperty(hash, name, value); 599 } 600 601 } 602 603 @Override 604 public Base setProperty(String name, Base value) throws FHIRException { 605 if (name.equals("identifier")) { 606 this.identifier = TypeConvertor.castToIdentifier(value); // Identifier 607 } else if (name.equals("type")) { 608 this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 609 } else if (name.equals("status")) { 610 this.status = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 611 } else if (name.equals("date[x]")) { 612 this.date = TypeConvertor.castToType(value); // DataType 613 } else if (name.equals("application")) { 614 this.getApplication().add((RegulatedAuthorizationCaseComponent) value); 615 } else 616 return super.setProperty(name, value); 617 return value; 618 } 619 620 @Override 621 public Base makeProperty(int hash, String name) throws FHIRException { 622 switch (hash) { 623 case -1618432855: return getIdentifier(); 624 case 3575610: return getType(); 625 case -892481550: return getStatus(); 626 case 1443311122: return getDate(); 627 case 3076014: return getDate(); 628 case 1554253136: return addApplication(); 629 default: return super.makeProperty(hash, name); 630 } 631 632 } 633 634 @Override 635 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 636 switch (hash) { 637 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 638 case 3575610: /*type*/ return new String[] {"CodeableConcept"}; 639 case -892481550: /*status*/ return new String[] {"CodeableConcept"}; 640 case 3076014: /*date*/ return new String[] {"Period", "dateTime"}; 641 case 1554253136: /*application*/ return new String[] {"@RegulatedAuthorization.case"}; 642 default: return super.getTypesForProperty(hash, name); 643 } 644 645 } 646 647 @Override 648 public Base addChild(String name) throws FHIRException { 649 if (name.equals("identifier")) { 650 this.identifier = new Identifier(); 651 return this.identifier; 652 } 653 else if (name.equals("type")) { 654 this.type = new CodeableConcept(); 655 return this.type; 656 } 657 else if (name.equals("status")) { 658 this.status = new CodeableConcept(); 659 return this.status; 660 } 661 else if (name.equals("datePeriod")) { 662 this.date = new Period(); 663 return this.date; 664 } 665 else if (name.equals("dateDateTime")) { 666 this.date = new DateTimeType(); 667 return this.date; 668 } 669 else if (name.equals("application")) { 670 return addApplication(); 671 } 672 else 673 return super.addChild(name); 674 } 675 676 public RegulatedAuthorizationCaseComponent copy() { 677 RegulatedAuthorizationCaseComponent dst = new RegulatedAuthorizationCaseComponent(); 678 copyValues(dst); 679 return dst; 680 } 681 682 public void copyValues(RegulatedAuthorizationCaseComponent dst) { 683 super.copyValues(dst); 684 dst.identifier = identifier == null ? null : identifier.copy(); 685 dst.type = type == null ? null : type.copy(); 686 dst.status = status == null ? null : status.copy(); 687 dst.date = date == null ? null : date.copy(); 688 if (application != null) { 689 dst.application = new ArrayList<RegulatedAuthorizationCaseComponent>(); 690 for (RegulatedAuthorizationCaseComponent i : application) 691 dst.application.add(i.copy()); 692 }; 693 } 694 695 @Override 696 public boolean equalsDeep(Base other_) { 697 if (!super.equalsDeep(other_)) 698 return false; 699 if (!(other_ instanceof RegulatedAuthorizationCaseComponent)) 700 return false; 701 RegulatedAuthorizationCaseComponent o = (RegulatedAuthorizationCaseComponent) other_; 702 return compareDeep(identifier, o.identifier, true) && compareDeep(type, o.type, true) && compareDeep(status, o.status, true) 703 && compareDeep(date, o.date, true) && compareDeep(application, o.application, true); 704 } 705 706 @Override 707 public boolean equalsShallow(Base other_) { 708 if (!super.equalsShallow(other_)) 709 return false; 710 if (!(other_ instanceof RegulatedAuthorizationCaseComponent)) 711 return false; 712 RegulatedAuthorizationCaseComponent o = (RegulatedAuthorizationCaseComponent) other_; 713 return true; 714 } 715 716 public boolean isEmpty() { 717 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, type, status 718 , date, application); 719 } 720 721 public String fhirType() { 722 return "RegulatedAuthorization.case"; 723 724 } 725 726 } 727 728 /** 729 * Business identifier for the marketing authorization, as assigned by a regulator. 730 */ 731 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 732 @Description(shortDefinition="Business identifier for the marketing authorization, as assigned by a regulator", formalDefinition="Business identifier for the marketing authorization, as assigned by a regulator." ) 733 protected List<Identifier> identifier; 734 735 /** 736 * The product that is being authorized. 737 */ 738 @Child(name = "subject", type = {MedicinalProductDefinition.class, PackagedProductDefinition.class, DeviceDefinition.class, ResearchStudy.class, ActivityDefinition.class, PlanDefinition.class, ObservationDefinition.class}, order=1, min=0, max=1, modifier=false, summary=true) 739 @Description(shortDefinition="The product that is being authorized", formalDefinition="The product that is being authorized." ) 740 protected Reference subject; 741 742 /** 743 * Type of this authorization, for example drug marketing approval, orphan drug designation. 744 */ 745 @Child(name = "type", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true) 746 @Description(shortDefinition="Type of this authorization, for example drug marketing approval, orphan drug designation", formalDefinition="Type of this authorization, for example drug marketing approval, orphan drug designation." ) 747 protected CodeableConcept type; 748 749 /** 750 * General textual supporting information. 751 */ 752 @Child(name = "description", type = {MarkdownType.class}, order=3, min=0, max=1, modifier=false, summary=true) 753 @Description(shortDefinition="General textual supporting information", formalDefinition="General textual supporting information." ) 754 protected MarkdownType description; 755 756 /** 757 * The region (country, jurisdiction etc.) in which the marketing authorization has been granted. 758 */ 759 @Child(name = "region", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 760 @Description(shortDefinition="The region (country, jurisdiction etc.) in which the marketing authorization has been granted", formalDefinition="The region (country, jurisdiction etc.) in which the marketing authorization has been granted." ) 761 protected List<CodeableConcept> region; 762 763 /** 764 * The status of the marketing authorization. 765 */ 766 @Child(name = "status", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=true) 767 @Description(shortDefinition="The status of the marketing authorization", formalDefinition="The status of the marketing authorization." ) 768 protected CodeableConcept status; 769 770 /** 771 * The date at which the given status has become applicable. 772 */ 773 @Child(name = "statusDate", type = {DateTimeType.class}, order=6, min=0, max=1, modifier=false, summary=true) 774 @Description(shortDefinition="The date at which the given status has become applicable", formalDefinition="The date at which the given status has become applicable." ) 775 protected DateTimeType statusDate; 776 777 /** 778 * The beginning of the time period in which the marketing authorization is in the specific status shall be specified A complete date consisting of day, month and year shall be specified using the ISO 8601 date format. 779 */ 780 @Child(name = "validityPeriod", type = {Period.class}, order=7, min=0, max=1, modifier=false, summary=true) 781 @Description(shortDefinition="The beginning of the time period in which the marketing authorization is in the specific status shall be specified A complete date consisting of day, month and year shall be specified using the ISO 8601 date format", formalDefinition="The beginning of the time period in which the marketing authorization is in the specific status shall be specified A complete date consisting of day, month and year shall be specified using the ISO 8601 date format." ) 782 protected Period validityPeriod; 783 784 /** 785 * The legal framework against which this authorization is granted, or other reasons for it. 786 */ 787 @Child(name = "basis", type = {CodeableConcept.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 788 @Description(shortDefinition="The legal framework against which this authorization is granted, or other reasons for it", formalDefinition="The legal framework against which this authorization is granted, or other reasons for it." ) 789 protected List<CodeableConcept> basis; 790 791 /** 792 * Other dates associated with the authorization. It is common for an authorization to have renewal dates, initial time limited phases and so on. 793 */ 794 @Child(name = "relatedDate", type = {}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 795 @Description(shortDefinition="Other dates associated with the authorization. It is common for an authorization to have renewal dates, initial time limited phases and so on", formalDefinition="Other dates associated with the authorization. It is common for an authorization to have renewal dates, initial time limited phases and so on." ) 796 protected List<RegulatedAuthorizationRelatedDateComponent> relatedDate; 797 798 /** 799 * Authorization in areas within a country. 800 */ 801 @Child(name = "jurisdictionalAuthorization", type = {RegulatedAuthorization.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 802 @Description(shortDefinition="Authorization in areas within a country", formalDefinition="Authorization in areas within a country." ) 803 protected List<Reference> jurisdictionalAuthorization; 804 805 /** 806 * Marketing Authorization Holder. 807 */ 808 @Child(name = "holder", type = {Organization.class}, order=11, min=0, max=1, modifier=false, summary=true) 809 @Description(shortDefinition="Marketing Authorization Holder", formalDefinition="Marketing Authorization Holder." ) 810 protected Reference holder; 811 812 /** 813 * Medicines Regulatory Agency. 814 */ 815 @Child(name = "regulator", type = {Organization.class}, order=12, min=0, max=1, modifier=false, summary=true) 816 @Description(shortDefinition="Medicines Regulatory Agency", formalDefinition="Medicines Regulatory Agency." ) 817 protected Reference regulator; 818 819 /** 820 * The case or regulatory procedure for granting or amending a marketing authorization. 821 */ 822 @Child(name = "case", type = {}, order=13, min=0, max=1, modifier=false, summary=true) 823 @Description(shortDefinition="The case or regulatory procedure for granting or amending a marketing authorization", formalDefinition="The case or regulatory procedure for granting or amending a marketing authorization." ) 824 protected RegulatedAuthorizationCaseComponent case_; 825 826 private static final long serialVersionUID = -1485439613L; 827 828 /** 829 * Constructor 830 */ 831 public RegulatedAuthorization() { 832 super(); 833 } 834 835 /** 836 * @return {@link #identifier} (Business identifier for the marketing authorization, as assigned by a regulator.) 837 */ 838 public List<Identifier> getIdentifier() { 839 if (this.identifier == null) 840 this.identifier = new ArrayList<Identifier>(); 841 return this.identifier; 842 } 843 844 /** 845 * @return Returns a reference to <code>this</code> for easy method chaining 846 */ 847 public RegulatedAuthorization setIdentifier(List<Identifier> theIdentifier) { 848 this.identifier = theIdentifier; 849 return this; 850 } 851 852 public boolean hasIdentifier() { 853 if (this.identifier == null) 854 return false; 855 for (Identifier item : this.identifier) 856 if (!item.isEmpty()) 857 return true; 858 return false; 859 } 860 861 public Identifier addIdentifier() { //3 862 Identifier t = new Identifier(); 863 if (this.identifier == null) 864 this.identifier = new ArrayList<Identifier>(); 865 this.identifier.add(t); 866 return t; 867 } 868 869 public RegulatedAuthorization addIdentifier(Identifier t) { //3 870 if (t == null) 871 return this; 872 if (this.identifier == null) 873 this.identifier = new ArrayList<Identifier>(); 874 this.identifier.add(t); 875 return this; 876 } 877 878 /** 879 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} 880 */ 881 public Identifier getIdentifierFirstRep() { 882 if (getIdentifier().isEmpty()) { 883 addIdentifier(); 884 } 885 return getIdentifier().get(0); 886 } 887 888 /** 889 * @return {@link #subject} (The product that is being authorized.) 890 */ 891 public Reference getSubject() { 892 if (this.subject == null) 893 if (Configuration.errorOnAutoCreate()) 894 throw new Error("Attempt to auto-create RegulatedAuthorization.subject"); 895 else if (Configuration.doAutoCreate()) 896 this.subject = new Reference(); // cc 897 return this.subject; 898 } 899 900 public boolean hasSubject() { 901 return this.subject != null && !this.subject.isEmpty(); 902 } 903 904 /** 905 * @param value {@link #subject} (The product that is being authorized.) 906 */ 907 public RegulatedAuthorization setSubject(Reference value) { 908 this.subject = value; 909 return this; 910 } 911 912 /** 913 * @return {@link #type} (Type of this authorization, for example drug marketing approval, orphan drug designation.) 914 */ 915 public CodeableConcept getType() { 916 if (this.type == null) 917 if (Configuration.errorOnAutoCreate()) 918 throw new Error("Attempt to auto-create RegulatedAuthorization.type"); 919 else if (Configuration.doAutoCreate()) 920 this.type = new CodeableConcept(); // cc 921 return this.type; 922 } 923 924 public boolean hasType() { 925 return this.type != null && !this.type.isEmpty(); 926 } 927 928 /** 929 * @param value {@link #type} (Type of this authorization, for example drug marketing approval, orphan drug designation.) 930 */ 931 public RegulatedAuthorization setType(CodeableConcept value) { 932 this.type = value; 933 return this; 934 } 935 936 /** 937 * @return {@link #description} (General textual supporting information.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 938 */ 939 public MarkdownType getDescriptionElement() { 940 if (this.description == null) 941 if (Configuration.errorOnAutoCreate()) 942 throw new Error("Attempt to auto-create RegulatedAuthorization.description"); 943 else if (Configuration.doAutoCreate()) 944 this.description = new MarkdownType(); // bb 945 return this.description; 946 } 947 948 public boolean hasDescriptionElement() { 949 return this.description != null && !this.description.isEmpty(); 950 } 951 952 public boolean hasDescription() { 953 return this.description != null && !this.description.isEmpty(); 954 } 955 956 /** 957 * @param value {@link #description} (General textual supporting information.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 958 */ 959 public RegulatedAuthorization setDescriptionElement(MarkdownType value) { 960 this.description = value; 961 return this; 962 } 963 964 /** 965 * @return General textual supporting information. 966 */ 967 public String getDescription() { 968 return this.description == null ? null : this.description.getValue(); 969 } 970 971 /** 972 * @param value General textual supporting information. 973 */ 974 public RegulatedAuthorization setDescription(String value) { 975 if (value == null) 976 this.description = null; 977 else { 978 if (this.description == null) 979 this.description = new MarkdownType(); 980 this.description.setValue(value); 981 } 982 return this; 983 } 984 985 /** 986 * @return {@link #region} (The region (country, jurisdiction etc.) in which the marketing authorization has been granted.) 987 */ 988 public List<CodeableConcept> getRegion() { 989 if (this.region == null) 990 this.region = new ArrayList<CodeableConcept>(); 991 return this.region; 992 } 993 994 /** 995 * @return Returns a reference to <code>this</code> for easy method chaining 996 */ 997 public RegulatedAuthorization setRegion(List<CodeableConcept> theRegion) { 998 this.region = theRegion; 999 return this; 1000 } 1001 1002 public boolean hasRegion() { 1003 if (this.region == null) 1004 return false; 1005 for (CodeableConcept item : this.region) 1006 if (!item.isEmpty()) 1007 return true; 1008 return false; 1009 } 1010 1011 public CodeableConcept addRegion() { //3 1012 CodeableConcept t = new CodeableConcept(); 1013 if (this.region == null) 1014 this.region = new ArrayList<CodeableConcept>(); 1015 this.region.add(t); 1016 return t; 1017 } 1018 1019 public RegulatedAuthorization addRegion(CodeableConcept t) { //3 1020 if (t == null) 1021 return this; 1022 if (this.region == null) 1023 this.region = new ArrayList<CodeableConcept>(); 1024 this.region.add(t); 1025 return this; 1026 } 1027 1028 /** 1029 * @return The first repetition of repeating field {@link #region}, creating it if it does not already exist {3} 1030 */ 1031 public CodeableConcept getRegionFirstRep() { 1032 if (getRegion().isEmpty()) { 1033 addRegion(); 1034 } 1035 return getRegion().get(0); 1036 } 1037 1038 /** 1039 * @return {@link #status} (The status of the marketing authorization.) 1040 */ 1041 public CodeableConcept getStatus() { 1042 if (this.status == null) 1043 if (Configuration.errorOnAutoCreate()) 1044 throw new Error("Attempt to auto-create RegulatedAuthorization.status"); 1045 else if (Configuration.doAutoCreate()) 1046 this.status = new CodeableConcept(); // cc 1047 return this.status; 1048 } 1049 1050 public boolean hasStatus() { 1051 return this.status != null && !this.status.isEmpty(); 1052 } 1053 1054 /** 1055 * @param value {@link #status} (The status of the marketing authorization.) 1056 */ 1057 public RegulatedAuthorization setStatus(CodeableConcept value) { 1058 this.status = value; 1059 return this; 1060 } 1061 1062 /** 1063 * @return {@link #statusDate} (The date at which the given status has become applicable.). This is the underlying object with id, value and extensions. The accessor "getStatusDate" gives direct access to the value 1064 */ 1065 public DateTimeType getStatusDateElement() { 1066 if (this.statusDate == null) 1067 if (Configuration.errorOnAutoCreate()) 1068 throw new Error("Attempt to auto-create RegulatedAuthorization.statusDate"); 1069 else if (Configuration.doAutoCreate()) 1070 this.statusDate = new DateTimeType(); // bb 1071 return this.statusDate; 1072 } 1073 1074 public boolean hasStatusDateElement() { 1075 return this.statusDate != null && !this.statusDate.isEmpty(); 1076 } 1077 1078 public boolean hasStatusDate() { 1079 return this.statusDate != null && !this.statusDate.isEmpty(); 1080 } 1081 1082 /** 1083 * @param value {@link #statusDate} (The date at which the given status has become applicable.). This is the underlying object with id, value and extensions. The accessor "getStatusDate" gives direct access to the value 1084 */ 1085 public RegulatedAuthorization setStatusDateElement(DateTimeType value) { 1086 this.statusDate = value; 1087 return this; 1088 } 1089 1090 /** 1091 * @return The date at which the given status has become applicable. 1092 */ 1093 public Date getStatusDate() { 1094 return this.statusDate == null ? null : this.statusDate.getValue(); 1095 } 1096 1097 /** 1098 * @param value The date at which the given status has become applicable. 1099 */ 1100 public RegulatedAuthorization setStatusDate(Date value) { 1101 if (value == null) 1102 this.statusDate = null; 1103 else { 1104 if (this.statusDate == null) 1105 this.statusDate = new DateTimeType(); 1106 this.statusDate.setValue(value); 1107 } 1108 return this; 1109 } 1110 1111 /** 1112 * @return {@link #validityPeriod} (The beginning of the time period in which the marketing authorization is in the specific status shall be specified A complete date consisting of day, month and year shall be specified using the ISO 8601 date format.) 1113 */ 1114 public Period getValidityPeriod() { 1115 if (this.validityPeriod == null) 1116 if (Configuration.errorOnAutoCreate()) 1117 throw new Error("Attempt to auto-create RegulatedAuthorization.validityPeriod"); 1118 else if (Configuration.doAutoCreate()) 1119 this.validityPeriod = new Period(); // cc 1120 return this.validityPeriod; 1121 } 1122 1123 public boolean hasValidityPeriod() { 1124 return this.validityPeriod != null && !this.validityPeriod.isEmpty(); 1125 } 1126 1127 /** 1128 * @param value {@link #validityPeriod} (The beginning of the time period in which the marketing authorization is in the specific status shall be specified A complete date consisting of day, month and year shall be specified using the ISO 8601 date format.) 1129 */ 1130 public RegulatedAuthorization setValidityPeriod(Period value) { 1131 this.validityPeriod = value; 1132 return this; 1133 } 1134 1135 /** 1136 * @return {@link #basis} (The legal framework against which this authorization is granted, or other reasons for it.) 1137 */ 1138 public List<CodeableConcept> getBasis() { 1139 if (this.basis == null) 1140 this.basis = new ArrayList<CodeableConcept>(); 1141 return this.basis; 1142 } 1143 1144 /** 1145 * @return Returns a reference to <code>this</code> for easy method chaining 1146 */ 1147 public RegulatedAuthorization setBasis(List<CodeableConcept> theBasis) { 1148 this.basis = theBasis; 1149 return this; 1150 } 1151 1152 public boolean hasBasis() { 1153 if (this.basis == null) 1154 return false; 1155 for (CodeableConcept item : this.basis) 1156 if (!item.isEmpty()) 1157 return true; 1158 return false; 1159 } 1160 1161 public CodeableConcept addBasis() { //3 1162 CodeableConcept t = new CodeableConcept(); 1163 if (this.basis == null) 1164 this.basis = new ArrayList<CodeableConcept>(); 1165 this.basis.add(t); 1166 return t; 1167 } 1168 1169 public RegulatedAuthorization addBasis(CodeableConcept t) { //3 1170 if (t == null) 1171 return this; 1172 if (this.basis == null) 1173 this.basis = new ArrayList<CodeableConcept>(); 1174 this.basis.add(t); 1175 return this; 1176 } 1177 1178 /** 1179 * @return The first repetition of repeating field {@link #basis}, creating it if it does not already exist {3} 1180 */ 1181 public CodeableConcept getBasisFirstRep() { 1182 if (getBasis().isEmpty()) { 1183 addBasis(); 1184 } 1185 return getBasis().get(0); 1186 } 1187 1188 /** 1189 * @return {@link #relatedDate} (Other dates associated with the authorization. It is common for an authorization to have renewal dates, initial time limited phases and so on.) 1190 */ 1191 public List<RegulatedAuthorizationRelatedDateComponent> getRelatedDate() { 1192 if (this.relatedDate == null) 1193 this.relatedDate = new ArrayList<RegulatedAuthorizationRelatedDateComponent>(); 1194 return this.relatedDate; 1195 } 1196 1197 /** 1198 * @return Returns a reference to <code>this</code> for easy method chaining 1199 */ 1200 public RegulatedAuthorization setRelatedDate(List<RegulatedAuthorizationRelatedDateComponent> theRelatedDate) { 1201 this.relatedDate = theRelatedDate; 1202 return this; 1203 } 1204 1205 public boolean hasRelatedDate() { 1206 if (this.relatedDate == null) 1207 return false; 1208 for (RegulatedAuthorizationRelatedDateComponent item : this.relatedDate) 1209 if (!item.isEmpty()) 1210 return true; 1211 return false; 1212 } 1213 1214 public RegulatedAuthorizationRelatedDateComponent addRelatedDate() { //3 1215 RegulatedAuthorizationRelatedDateComponent t = new RegulatedAuthorizationRelatedDateComponent(); 1216 if (this.relatedDate == null) 1217 this.relatedDate = new ArrayList<RegulatedAuthorizationRelatedDateComponent>(); 1218 this.relatedDate.add(t); 1219 return t; 1220 } 1221 1222 public RegulatedAuthorization addRelatedDate(RegulatedAuthorizationRelatedDateComponent t) { //3 1223 if (t == null) 1224 return this; 1225 if (this.relatedDate == null) 1226 this.relatedDate = new ArrayList<RegulatedAuthorizationRelatedDateComponent>(); 1227 this.relatedDate.add(t); 1228 return this; 1229 } 1230 1231 /** 1232 * @return The first repetition of repeating field {@link #relatedDate}, creating it if it does not already exist {3} 1233 */ 1234 public RegulatedAuthorizationRelatedDateComponent getRelatedDateFirstRep() { 1235 if (getRelatedDate().isEmpty()) { 1236 addRelatedDate(); 1237 } 1238 return getRelatedDate().get(0); 1239 } 1240 1241 /** 1242 * @return {@link #jurisdictionalAuthorization} (Authorization in areas within a country.) 1243 */ 1244 public List<Reference> getJurisdictionalAuthorization() { 1245 if (this.jurisdictionalAuthorization == null) 1246 this.jurisdictionalAuthorization = new ArrayList<Reference>(); 1247 return this.jurisdictionalAuthorization; 1248 } 1249 1250 /** 1251 * @return Returns a reference to <code>this</code> for easy method chaining 1252 */ 1253 public RegulatedAuthorization setJurisdictionalAuthorization(List<Reference> theJurisdictionalAuthorization) { 1254 this.jurisdictionalAuthorization = theJurisdictionalAuthorization; 1255 return this; 1256 } 1257 1258 public boolean hasJurisdictionalAuthorization() { 1259 if (this.jurisdictionalAuthorization == null) 1260 return false; 1261 for (Reference item : this.jurisdictionalAuthorization) 1262 if (!item.isEmpty()) 1263 return true; 1264 return false; 1265 } 1266 1267 public Reference addJurisdictionalAuthorization() { //3 1268 Reference t = new Reference(); 1269 if (this.jurisdictionalAuthorization == null) 1270 this.jurisdictionalAuthorization = new ArrayList<Reference>(); 1271 this.jurisdictionalAuthorization.add(t); 1272 return t; 1273 } 1274 1275 public RegulatedAuthorization addJurisdictionalAuthorization(Reference t) { //3 1276 if (t == null) 1277 return this; 1278 if (this.jurisdictionalAuthorization == null) 1279 this.jurisdictionalAuthorization = new ArrayList<Reference>(); 1280 this.jurisdictionalAuthorization.add(t); 1281 return this; 1282 } 1283 1284 /** 1285 * @return The first repetition of repeating field {@link #jurisdictionalAuthorization}, creating it if it does not already exist {3} 1286 */ 1287 public Reference getJurisdictionalAuthorizationFirstRep() { 1288 if (getJurisdictionalAuthorization().isEmpty()) { 1289 addJurisdictionalAuthorization(); 1290 } 1291 return getJurisdictionalAuthorization().get(0); 1292 } 1293 1294 /** 1295 * @return {@link #holder} (Marketing Authorization Holder.) 1296 */ 1297 public Reference getHolder() { 1298 if (this.holder == null) 1299 if (Configuration.errorOnAutoCreate()) 1300 throw new Error("Attempt to auto-create RegulatedAuthorization.holder"); 1301 else if (Configuration.doAutoCreate()) 1302 this.holder = new Reference(); // cc 1303 return this.holder; 1304 } 1305 1306 public boolean hasHolder() { 1307 return this.holder != null && !this.holder.isEmpty(); 1308 } 1309 1310 /** 1311 * @param value {@link #holder} (Marketing Authorization Holder.) 1312 */ 1313 public RegulatedAuthorization setHolder(Reference value) { 1314 this.holder = value; 1315 return this; 1316 } 1317 1318 /** 1319 * @return {@link #regulator} (Medicines Regulatory Agency.) 1320 */ 1321 public Reference getRegulator() { 1322 if (this.regulator == null) 1323 if (Configuration.errorOnAutoCreate()) 1324 throw new Error("Attempt to auto-create RegulatedAuthorization.regulator"); 1325 else if (Configuration.doAutoCreate()) 1326 this.regulator = new Reference(); // cc 1327 return this.regulator; 1328 } 1329 1330 public boolean hasRegulator() { 1331 return this.regulator != null && !this.regulator.isEmpty(); 1332 } 1333 1334 /** 1335 * @param value {@link #regulator} (Medicines Regulatory Agency.) 1336 */ 1337 public RegulatedAuthorization setRegulator(Reference value) { 1338 this.regulator = value; 1339 return this; 1340 } 1341 1342 /** 1343 * @return {@link #case_} (The case or regulatory procedure for granting or amending a marketing authorization.) 1344 */ 1345 public RegulatedAuthorizationCaseComponent getCase() { 1346 if (this.case_ == null) 1347 if (Configuration.errorOnAutoCreate()) 1348 throw new Error("Attempt to auto-create RegulatedAuthorization.case_"); 1349 else if (Configuration.doAutoCreate()) 1350 this.case_ = new RegulatedAuthorizationCaseComponent(); // cc 1351 return this.case_; 1352 } 1353 1354 public boolean hasCase() { 1355 return this.case_ != null && !this.case_.isEmpty(); 1356 } 1357 1358 /** 1359 * @param value {@link #case_} (The case or regulatory procedure for granting or amending a marketing authorization.) 1360 */ 1361 public RegulatedAuthorization setCase(RegulatedAuthorizationCaseComponent value) { 1362 this.case_ = value; 1363 return this; 1364 } 1365 1366 protected void listChildren(List<Property> children) { 1367 super.listChildren(children); 1368 children.add(new Property("identifier", "Identifier", "Business identifier for the marketing authorization, as assigned by a regulator.", 0, java.lang.Integer.MAX_VALUE, identifier)); 1369 children.add(new Property("subject", "Reference(MedicinalProductDefinition|PackagedProductDefinition|DeviceDefinition|ResearchStudy|ActivityDefinition|PlanDefinition|ObservationDefinition)", "The product that is being authorized.", 0, 1, subject)); 1370 children.add(new Property("type", "CodeableConcept", "Type of this authorization, for example drug marketing approval, orphan drug designation.", 0, 1, type)); 1371 children.add(new Property("description", "markdown", "General textual supporting information.", 0, 1, description)); 1372 children.add(new Property("region", "CodeableConcept", "The region (country, jurisdiction etc.) in which the marketing authorization has been granted.", 0, java.lang.Integer.MAX_VALUE, region)); 1373 children.add(new Property("status", "CodeableConcept", "The status of the marketing authorization.", 0, 1, status)); 1374 children.add(new Property("statusDate", "dateTime", "The date at which the given status has become applicable.", 0, 1, statusDate)); 1375 children.add(new Property("validityPeriod", "Period", "The beginning of the time period in which the marketing authorization is in the specific status shall be specified A complete date consisting of day, month and year shall be specified using the ISO 8601 date format.", 0, 1, validityPeriod)); 1376 children.add(new Property("basis", "CodeableConcept", "The legal framework against which this authorization is granted, or other reasons for it.", 0, java.lang.Integer.MAX_VALUE, basis)); 1377 children.add(new Property("relatedDate", "", "Other dates associated with the authorization. It is common for an authorization to have renewal dates, initial time limited phases and so on.", 0, java.lang.Integer.MAX_VALUE, relatedDate)); 1378 children.add(new Property("jurisdictionalAuthorization", "Reference(RegulatedAuthorization)", "Authorization in areas within a country.", 0, java.lang.Integer.MAX_VALUE, jurisdictionalAuthorization)); 1379 children.add(new Property("holder", "Reference(Organization)", "Marketing Authorization Holder.", 0, 1, holder)); 1380 children.add(new Property("regulator", "Reference(Organization)", "Medicines Regulatory Agency.", 0, 1, regulator)); 1381 children.add(new Property("case", "", "The case or regulatory procedure for granting or amending a marketing authorization.", 0, 1, case_)); 1382 } 1383 1384 @Override 1385 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1386 switch (_hash) { 1387 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifier for the marketing authorization, as assigned by a regulator.", 0, java.lang.Integer.MAX_VALUE, identifier); 1388 case -1867885268: /*subject*/ return new Property("subject", "Reference(MedicinalProductDefinition|PackagedProductDefinition|DeviceDefinition|ResearchStudy|ActivityDefinition|PlanDefinition|ObservationDefinition)", "The product that is being authorized.", 0, 1, subject); 1389 case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Type of this authorization, for example drug marketing approval, orphan drug designation.", 0, 1, type); 1390 case -1724546052: /*description*/ return new Property("description", "markdown", "General textual supporting information.", 0, 1, description); 1391 case -934795532: /*region*/ return new Property("region", "CodeableConcept", "The region (country, jurisdiction etc.) in which the marketing authorization has been granted.", 0, java.lang.Integer.MAX_VALUE, region); 1392 case -892481550: /*status*/ return new Property("status", "CodeableConcept", "The status of the marketing authorization.", 0, 1, status); 1393 case 247524032: /*statusDate*/ return new Property("statusDate", "dateTime", "The date at which the given status has become applicable.", 0, 1, statusDate); 1394 case -1434195053: /*validityPeriod*/ return new Property("validityPeriod", "Period", "The beginning of the time period in which the marketing authorization is in the specific status shall be specified A complete date consisting of day, month and year shall be specified using the ISO 8601 date format.", 0, 1, validityPeriod); 1395 case 93508670: /*basis*/ return new Property("basis", "CodeableConcept", "The legal framework against which this authorization is granted, or other reasons for it.", 0, java.lang.Integer.MAX_VALUE, basis); 1396 case 1112535673: /*relatedDate*/ return new Property("relatedDate", "", "Other dates associated with the authorization. It is common for an authorization to have renewal dates, initial time limited phases and so on.", 0, java.lang.Integer.MAX_VALUE, relatedDate); 1397 case 1459432557: /*jurisdictionalAuthorization*/ return new Property("jurisdictionalAuthorization", "Reference(RegulatedAuthorization)", "Authorization in areas within a country.", 0, java.lang.Integer.MAX_VALUE, jurisdictionalAuthorization); 1398 case -1211707988: /*holder*/ return new Property("holder", "Reference(Organization)", "Marketing Authorization Holder.", 0, 1, holder); 1399 case 414760449: /*regulator*/ return new Property("regulator", "Reference(Organization)", "Medicines Regulatory Agency.", 0, 1, regulator); 1400 case 3046192: /*case*/ return new Property("case", "", "The case or regulatory procedure for granting or amending a marketing authorization.", 0, 1, case_); 1401 default: return super.getNamedProperty(_hash, _name, _checkValid); 1402 } 1403 1404 } 1405 1406 @Override 1407 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1408 switch (hash) { 1409 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 1410 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference 1411 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept 1412 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType 1413 case -934795532: /*region*/ return this.region == null ? new Base[0] : this.region.toArray(new Base[this.region.size()]); // CodeableConcept 1414 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // CodeableConcept 1415 case 247524032: /*statusDate*/ return this.statusDate == null ? new Base[0] : new Base[] {this.statusDate}; // DateTimeType 1416 case -1434195053: /*validityPeriod*/ return this.validityPeriod == null ? new Base[0] : new Base[] {this.validityPeriod}; // Period 1417 case 93508670: /*basis*/ return this.basis == null ? new Base[0] : this.basis.toArray(new Base[this.basis.size()]); // CodeableConcept 1418 case 1112535673: /*relatedDate*/ return this.relatedDate == null ? new Base[0] : this.relatedDate.toArray(new Base[this.relatedDate.size()]); // RegulatedAuthorizationRelatedDateComponent 1419 case 1459432557: /*jurisdictionalAuthorization*/ return this.jurisdictionalAuthorization == null ? new Base[0] : this.jurisdictionalAuthorization.toArray(new Base[this.jurisdictionalAuthorization.size()]); // Reference 1420 case -1211707988: /*holder*/ return this.holder == null ? new Base[0] : new Base[] {this.holder}; // Reference 1421 case 414760449: /*regulator*/ return this.regulator == null ? new Base[0] : new Base[] {this.regulator}; // Reference 1422 case 3046192: /*case*/ return this.case_ == null ? new Base[0] : new Base[] {this.case_}; // RegulatedAuthorizationCaseComponent 1423 default: return super.getProperty(hash, name, checkValid); 1424 } 1425 1426 } 1427 1428 @Override 1429 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1430 switch (hash) { 1431 case -1618432855: // identifier 1432 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier 1433 return value; 1434 case -1867885268: // subject 1435 this.subject = TypeConvertor.castToReference(value); // Reference 1436 return value; 1437 case 3575610: // type 1438 this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1439 return value; 1440 case -1724546052: // description 1441 this.description = TypeConvertor.castToMarkdown(value); // MarkdownType 1442 return value; 1443 case -934795532: // region 1444 this.getRegion().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 1445 return value; 1446 case -892481550: // status 1447 this.status = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1448 return value; 1449 case 247524032: // statusDate 1450 this.statusDate = TypeConvertor.castToDateTime(value); // DateTimeType 1451 return value; 1452 case -1434195053: // validityPeriod 1453 this.validityPeriod = TypeConvertor.castToPeriod(value); // Period 1454 return value; 1455 case 93508670: // basis 1456 this.getBasis().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 1457 return value; 1458 case 1112535673: // relatedDate 1459 this.getRelatedDate().add((RegulatedAuthorizationRelatedDateComponent) value); // RegulatedAuthorizationRelatedDateComponent 1460 return value; 1461 case 1459432557: // jurisdictionalAuthorization 1462 this.getJurisdictionalAuthorization().add(TypeConvertor.castToReference(value)); // Reference 1463 return value; 1464 case -1211707988: // holder 1465 this.holder = TypeConvertor.castToReference(value); // Reference 1466 return value; 1467 case 414760449: // regulator 1468 this.regulator = TypeConvertor.castToReference(value); // Reference 1469 return value; 1470 case 3046192: // case 1471 this.case_ = (RegulatedAuthorizationCaseComponent) value; // RegulatedAuthorizationCaseComponent 1472 return value; 1473 default: return super.setProperty(hash, name, value); 1474 } 1475 1476 } 1477 1478 @Override 1479 public Base setProperty(String name, Base value) throws FHIRException { 1480 if (name.equals("identifier")) { 1481 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); 1482 } else if (name.equals("subject")) { 1483 this.subject = TypeConvertor.castToReference(value); // Reference 1484 } else if (name.equals("type")) { 1485 this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1486 } else if (name.equals("description")) { 1487 this.description = TypeConvertor.castToMarkdown(value); // MarkdownType 1488 } else if (name.equals("region")) { 1489 this.getRegion().add(TypeConvertor.castToCodeableConcept(value)); 1490 } else if (name.equals("status")) { 1491 this.status = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1492 } else if (name.equals("statusDate")) { 1493 this.statusDate = TypeConvertor.castToDateTime(value); // DateTimeType 1494 } else if (name.equals("validityPeriod")) { 1495 this.validityPeriod = TypeConvertor.castToPeriod(value); // Period 1496 } else if (name.equals("basis")) { 1497 this.getBasis().add(TypeConvertor.castToCodeableConcept(value)); 1498 } else if (name.equals("relatedDate")) { 1499 this.getRelatedDate().add((RegulatedAuthorizationRelatedDateComponent) value); 1500 } else if (name.equals("jurisdictionalAuthorization")) { 1501 this.getJurisdictionalAuthorization().add(TypeConvertor.castToReference(value)); 1502 } else if (name.equals("holder")) { 1503 this.holder = TypeConvertor.castToReference(value); // Reference 1504 } else if (name.equals("regulator")) { 1505 this.regulator = TypeConvertor.castToReference(value); // Reference 1506 } else if (name.equals("case")) { 1507 this.case_ = (RegulatedAuthorizationCaseComponent) value; // RegulatedAuthorizationCaseComponent 1508 } else 1509 return super.setProperty(name, value); 1510 return value; 1511 } 1512 1513 @Override 1514 public Base makeProperty(int hash, String name) throws FHIRException { 1515 switch (hash) { 1516 case -1618432855: return addIdentifier(); 1517 case -1867885268: return getSubject(); 1518 case 3575610: return getType(); 1519 case -1724546052: return getDescriptionElement(); 1520 case -934795532: return addRegion(); 1521 case -892481550: return getStatus(); 1522 case 247524032: return getStatusDateElement(); 1523 case -1434195053: return getValidityPeriod(); 1524 case 93508670: return addBasis(); 1525 case 1112535673: return addRelatedDate(); 1526 case 1459432557: return addJurisdictionalAuthorization(); 1527 case -1211707988: return getHolder(); 1528 case 414760449: return getRegulator(); 1529 case 3046192: return getCase(); 1530 default: return super.makeProperty(hash, name); 1531 } 1532 1533 } 1534 1535 @Override 1536 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1537 switch (hash) { 1538 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 1539 case -1867885268: /*subject*/ return new String[] {"Reference"}; 1540 case 3575610: /*type*/ return new String[] {"CodeableConcept"}; 1541 case -1724546052: /*description*/ return new String[] {"markdown"}; 1542 case -934795532: /*region*/ return new String[] {"CodeableConcept"}; 1543 case -892481550: /*status*/ return new String[] {"CodeableConcept"}; 1544 case 247524032: /*statusDate*/ return new String[] {"dateTime"}; 1545 case -1434195053: /*validityPeriod*/ return new String[] {"Period"}; 1546 case 93508670: /*basis*/ return new String[] {"CodeableConcept"}; 1547 case 1112535673: /*relatedDate*/ return new String[] {}; 1548 case 1459432557: /*jurisdictionalAuthorization*/ return new String[] {"Reference"}; 1549 case -1211707988: /*holder*/ return new String[] {"Reference"}; 1550 case 414760449: /*regulator*/ return new String[] {"Reference"}; 1551 case 3046192: /*case*/ return new String[] {}; 1552 default: return super.getTypesForProperty(hash, name); 1553 } 1554 1555 } 1556 1557 @Override 1558 public Base addChild(String name) throws FHIRException { 1559 if (name.equals("identifier")) { 1560 return addIdentifier(); 1561 } 1562 else if (name.equals("subject")) { 1563 this.subject = new Reference(); 1564 return this.subject; 1565 } 1566 else if (name.equals("type")) { 1567 this.type = new CodeableConcept(); 1568 return this.type; 1569 } 1570 else if (name.equals("description")) { 1571 throw new FHIRException("Cannot call addChild on a primitive type RegulatedAuthorization.description"); 1572 } 1573 else if (name.equals("region")) { 1574 return addRegion(); 1575 } 1576 else if (name.equals("status")) { 1577 this.status = new CodeableConcept(); 1578 return this.status; 1579 } 1580 else if (name.equals("statusDate")) { 1581 throw new FHIRException("Cannot call addChild on a primitive type RegulatedAuthorization.statusDate"); 1582 } 1583 else if (name.equals("validityPeriod")) { 1584 this.validityPeriod = new Period(); 1585 return this.validityPeriod; 1586 } 1587 else if (name.equals("basis")) { 1588 return addBasis(); 1589 } 1590 else if (name.equals("relatedDate")) { 1591 return addRelatedDate(); 1592 } 1593 else if (name.equals("jurisdictionalAuthorization")) { 1594 return addJurisdictionalAuthorization(); 1595 } 1596 else if (name.equals("holder")) { 1597 this.holder = new Reference(); 1598 return this.holder; 1599 } 1600 else if (name.equals("regulator")) { 1601 this.regulator = new Reference(); 1602 return this.regulator; 1603 } 1604 else if (name.equals("case")) { 1605 this.case_ = new RegulatedAuthorizationCaseComponent(); 1606 return this.case_; 1607 } 1608 else 1609 return super.addChild(name); 1610 } 1611 1612 public String fhirType() { 1613 return "RegulatedAuthorization"; 1614 1615 } 1616 1617 public RegulatedAuthorization copy() { 1618 RegulatedAuthorization dst = new RegulatedAuthorization(); 1619 copyValues(dst); 1620 return dst; 1621 } 1622 1623 public void copyValues(RegulatedAuthorization dst) { 1624 super.copyValues(dst); 1625 if (identifier != null) { 1626 dst.identifier = new ArrayList<Identifier>(); 1627 for (Identifier i : identifier) 1628 dst.identifier.add(i.copy()); 1629 }; 1630 dst.subject = subject == null ? null : subject.copy(); 1631 dst.type = type == null ? null : type.copy(); 1632 dst.description = description == null ? null : description.copy(); 1633 if (region != null) { 1634 dst.region = new ArrayList<CodeableConcept>(); 1635 for (CodeableConcept i : region) 1636 dst.region.add(i.copy()); 1637 }; 1638 dst.status = status == null ? null : status.copy(); 1639 dst.statusDate = statusDate == null ? null : statusDate.copy(); 1640 dst.validityPeriod = validityPeriod == null ? null : validityPeriod.copy(); 1641 if (basis != null) { 1642 dst.basis = new ArrayList<CodeableConcept>(); 1643 for (CodeableConcept i : basis) 1644 dst.basis.add(i.copy()); 1645 }; 1646 if (relatedDate != null) { 1647 dst.relatedDate = new ArrayList<RegulatedAuthorizationRelatedDateComponent>(); 1648 for (RegulatedAuthorizationRelatedDateComponent i : relatedDate) 1649 dst.relatedDate.add(i.copy()); 1650 }; 1651 if (jurisdictionalAuthorization != null) { 1652 dst.jurisdictionalAuthorization = new ArrayList<Reference>(); 1653 for (Reference i : jurisdictionalAuthorization) 1654 dst.jurisdictionalAuthorization.add(i.copy()); 1655 }; 1656 dst.holder = holder == null ? null : holder.copy(); 1657 dst.regulator = regulator == null ? null : regulator.copy(); 1658 dst.case_ = case_ == null ? null : case_.copy(); 1659 } 1660 1661 protected RegulatedAuthorization typedCopy() { 1662 return copy(); 1663 } 1664 1665 @Override 1666 public boolean equalsDeep(Base other_) { 1667 if (!super.equalsDeep(other_)) 1668 return false; 1669 if (!(other_ instanceof RegulatedAuthorization)) 1670 return false; 1671 RegulatedAuthorization o = (RegulatedAuthorization) other_; 1672 return compareDeep(identifier, o.identifier, true) && compareDeep(subject, o.subject, true) && compareDeep(type, o.type, true) 1673 && compareDeep(description, o.description, true) && compareDeep(region, o.region, true) && compareDeep(status, o.status, true) 1674 && compareDeep(statusDate, o.statusDate, true) && compareDeep(validityPeriod, o.validityPeriod, true) 1675 && compareDeep(basis, o.basis, true) && compareDeep(relatedDate, o.relatedDate, true) && compareDeep(jurisdictionalAuthorization, o.jurisdictionalAuthorization, true) 1676 && compareDeep(holder, o.holder, true) && compareDeep(regulator, o.regulator, true) && compareDeep(case_, o.case_, true) 1677 ; 1678 } 1679 1680 @Override 1681 public boolean equalsShallow(Base other_) { 1682 if (!super.equalsShallow(other_)) 1683 return false; 1684 if (!(other_ instanceof RegulatedAuthorization)) 1685 return false; 1686 RegulatedAuthorization o = (RegulatedAuthorization) other_; 1687 return compareValues(description, o.description, true) && compareValues(statusDate, o.statusDate, true) 1688 ; 1689 } 1690 1691 public boolean isEmpty() { 1692 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, subject, type 1693 , description, region, status, statusDate, validityPeriod, basis, relatedDate 1694 , jurisdictionalAuthorization, holder, regulator, case_); 1695 } 1696 1697 @Override 1698 public ResourceType getResourceType() { 1699 return ResourceType.RegulatedAuthorization; 1700 } 1701 1702 /** 1703 * Search parameter: <b>case-type</b> 1704 * <p> 1705 * Description: <b>Type of case</b><br> 1706 * Type: <b>token</b><br> 1707 * Path: <b>RegulatedAuthorization.case.type</b><br> 1708 * </p> 1709 */ 1710 @SearchParamDefinition(name="case-type", path="RegulatedAuthorization.case.type", description="Type of case", type="token" ) 1711 public static final String SP_CASE_TYPE = "case-type"; 1712 /** 1713 * <b>Fluent Client</b> search parameter constant for <b>case-type</b> 1714 * <p> 1715 * Description: <b>Type of case</b><br> 1716 * Type: <b>token</b><br> 1717 * Path: <b>RegulatedAuthorization.case.type</b><br> 1718 * </p> 1719 */ 1720 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CASE_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CASE_TYPE); 1721 1722 /** 1723 * Search parameter: <b>case</b> 1724 * <p> 1725 * Description: <b>The case or procedure number</b><br> 1726 * Type: <b>token</b><br> 1727 * Path: <b>RegulatedAuthorization.case.identifier</b><br> 1728 * </p> 1729 */ 1730 @SearchParamDefinition(name="case", path="RegulatedAuthorization.case.identifier", description="The case or procedure number", type="token" ) 1731 public static final String SP_CASE = "case"; 1732 /** 1733 * <b>Fluent Client</b> search parameter constant for <b>case</b> 1734 * <p> 1735 * Description: <b>The case or procedure number</b><br> 1736 * Type: <b>token</b><br> 1737 * Path: <b>RegulatedAuthorization.case.identifier</b><br> 1738 * </p> 1739 */ 1740 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CASE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CASE); 1741 1742 /** 1743 * Search parameter: <b>holder</b> 1744 * <p> 1745 * Description: <b>Marketing Authorization Holder</b><br> 1746 * Type: <b>reference</b><br> 1747 * Path: <b>RegulatedAuthorization.holder</b><br> 1748 * </p> 1749 */ 1750 @SearchParamDefinition(name="holder", path="RegulatedAuthorization.holder", description="Marketing Authorization Holder", type="reference", target={Organization.class } ) 1751 public static final String SP_HOLDER = "holder"; 1752 /** 1753 * <b>Fluent Client</b> search parameter constant for <b>holder</b> 1754 * <p> 1755 * Description: <b>Marketing Authorization Holder</b><br> 1756 * Type: <b>reference</b><br> 1757 * Path: <b>RegulatedAuthorization.holder</b><br> 1758 * </p> 1759 */ 1760 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam HOLDER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_HOLDER); 1761 1762/** 1763 * Constant for fluent queries to be used to add include statements. Specifies 1764 * the path value of "<b>RegulatedAuthorization:holder</b>". 1765 */ 1766 public static final ca.uhn.fhir.model.api.Include INCLUDE_HOLDER = new ca.uhn.fhir.model.api.Include("RegulatedAuthorization:holder").toLocked(); 1767 1768 /** 1769 * Search parameter: <b>identifier</b> 1770 * <p> 1771 * Description: <b>Business identifier for the marketing authorization, as assigned by a regulator</b><br> 1772 * Type: <b>token</b><br> 1773 * Path: <b>RegulatedAuthorization.identifier</b><br> 1774 * </p> 1775 */ 1776 @SearchParamDefinition(name="identifier", path="RegulatedAuthorization.identifier", description="Business identifier for the marketing authorization, as assigned by a regulator", type="token" ) 1777 public static final String SP_IDENTIFIER = "identifier"; 1778 /** 1779 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 1780 * <p> 1781 * Description: <b>Business identifier for the marketing authorization, as assigned by a regulator</b><br> 1782 * Type: <b>token</b><br> 1783 * Path: <b>RegulatedAuthorization.identifier</b><br> 1784 * </p> 1785 */ 1786 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 1787 1788 /** 1789 * Search parameter: <b>region</b> 1790 * <p> 1791 * Description: <b>The region (country, jurisdiction etc.) in which the marketing authorization has been granted</b><br> 1792 * Type: <b>token</b><br> 1793 * Path: <b>RegulatedAuthorization.region</b><br> 1794 * </p> 1795 */ 1796 @SearchParamDefinition(name="region", path="RegulatedAuthorization.region", description="The region (country, jurisdiction etc.) in which the marketing authorization has been granted", type="token" ) 1797 public static final String SP_REGION = "region"; 1798 /** 1799 * <b>Fluent Client</b> search parameter constant for <b>region</b> 1800 * <p> 1801 * Description: <b>The region (country, jurisdiction etc.) in which the marketing authorization has been granted</b><br> 1802 * Type: <b>token</b><br> 1803 * Path: <b>RegulatedAuthorization.region</b><br> 1804 * </p> 1805 */ 1806 public static final ca.uhn.fhir.rest.gclient.TokenClientParam REGION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REGION); 1807 1808 /** 1809 * Search parameter: <b>status</b> 1810 * <p> 1811 * Description: <b>The status of the marketing authorization</b><br> 1812 * Type: <b>token</b><br> 1813 * Path: <b>RegulatedAuthorization.status</b><br> 1814 * </p> 1815 */ 1816 @SearchParamDefinition(name="status", path="RegulatedAuthorization.status", description="The status of the marketing authorization", type="token" ) 1817 public static final String SP_STATUS = "status"; 1818 /** 1819 * <b>Fluent Client</b> search parameter constant for <b>status</b> 1820 * <p> 1821 * Description: <b>The status of the marketing authorization</b><br> 1822 * Type: <b>token</b><br> 1823 * Path: <b>RegulatedAuthorization.status</b><br> 1824 * </p> 1825 */ 1826 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 1827 1828 /** 1829 * Search parameter: <b>subject</b> 1830 * <p> 1831 * Description: <b>The product that is being authorized</b><br> 1832 * Type: <b>reference</b><br> 1833 * Path: <b>RegulatedAuthorization.subject</b><br> 1834 * </p> 1835 */ 1836 @SearchParamDefinition(name="subject", path="RegulatedAuthorization.subject", description="The product that is being authorized", type="reference", target={ActivityDefinition.class, DeviceDefinition.class, MedicinalProductDefinition.class, ObservationDefinition.class, PackagedProductDefinition.class, PlanDefinition.class, ResearchStudy.class } ) 1837 public static final String SP_SUBJECT = "subject"; 1838 /** 1839 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 1840 * <p> 1841 * Description: <b>The product that is being authorized</b><br> 1842 * Type: <b>reference</b><br> 1843 * Path: <b>RegulatedAuthorization.subject</b><br> 1844 * </p> 1845 */ 1846 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); 1847 1848/** 1849 * Constant for fluent queries to be used to add include statements. Specifies 1850 * the path value of "<b>RegulatedAuthorization:subject</b>". 1851 */ 1852 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("RegulatedAuthorization:subject").toLocked(); 1853 1854 1855} 1856