001package org.hl7.fhir.dstu3.model; 002 003/* 004 Copyright (c) 2011+, HL7, Inc. 005 All rights reserved. 006 007 Redistribution and use in source and binary forms, with or without modification, 008 are permitted provided that the following conditions are met: 009 010 * Redistributions of source code must retain the above copyright notice, this 011 list of conditions and the following disclaimer. 012 * Redistributions in binary form must reproduce the above copyright notice, 013 this list of conditions and the following disclaimer in the documentation 014 and/or other materials provided with the distribution. 015 * Neither the name of HL7 nor the names of its contributors may be used to 016 endorse or promote products derived from this software without specific 017 prior written permission. 018 019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 020 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 021 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 022 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 023 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 024 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 025 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 026 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 027 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 028 POSSIBILITY OF SUCH DAMAGE. 029 030*/ 031 032// Generated on Fri, Mar 16, 2018 15:21+1100 for FHIR v3.0.1 033 034import java.util.*; 035 036import org.hl7.fhir.utilities.Utilities; 037import org.hl7.fhir.dstu3.model.Enumerations.*; 038import ca.uhn.fhir.model.api.annotation.ResourceDef; 039import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 040import ca.uhn.fhir.model.api.annotation.Child; 041import ca.uhn.fhir.model.api.annotation.ChildOrder; 042import ca.uhn.fhir.model.api.annotation.Description; 043import ca.uhn.fhir.model.api.annotation.Block; 044import org.hl7.fhir.instance.model.api.*; 045import org.hl7.fhir.exceptions.FHIRException; 046import org.hl7.fhir.exceptions.FHIRFormatError; 047/** 048 * A compartment definition that defines how resources are accessed on a server. 049 */ 050@ResourceDef(name="CompartmentDefinition", profile="http://hl7.org/fhir/StructureDefinition/CompartmentDefinition") 051@ChildOrder(names={"url", "name", "title", "status", "experimental", "date", "publisher", "contact", "description", "purpose", "useContext", "jurisdiction", "code", "search", "resource"}) 052public class CompartmentDefinition extends MetadataResource { 053 054 public enum CompartmentType { 055 /** 056 * The compartment definition is for the patient compartment 057 */ 058 PATIENT, 059 /** 060 * The compartment definition is for the encounter compartment 061 */ 062 ENCOUNTER, 063 /** 064 * The compartment definition is for the related-person compartment 065 */ 066 RELATEDPERSON, 067 /** 068 * The compartment definition is for the practitioner compartment 069 */ 070 PRACTITIONER, 071 /** 072 * The compartment definition is for the device compartment 073 */ 074 DEVICE, 075 /** 076 * added to help the parsers with the generic types 077 */ 078 NULL; 079 public static CompartmentType fromCode(String codeString) throws FHIRException { 080 if (codeString == null || "".equals(codeString)) 081 return null; 082 if ("Patient".equals(codeString)) 083 return PATIENT; 084 if ("Encounter".equals(codeString)) 085 return ENCOUNTER; 086 if ("RelatedPerson".equals(codeString)) 087 return RELATEDPERSON; 088 if ("Practitioner".equals(codeString)) 089 return PRACTITIONER; 090 if ("Device".equals(codeString)) 091 return DEVICE; 092 if (Configuration.isAcceptInvalidEnums()) 093 return null; 094 else 095 throw new FHIRException("Unknown CompartmentType code '"+codeString+"'"); 096 } 097 public String toCode() { 098 switch (this) { 099 case PATIENT: return "Patient"; 100 case ENCOUNTER: return "Encounter"; 101 case RELATEDPERSON: return "RelatedPerson"; 102 case PRACTITIONER: return "Practitioner"; 103 case DEVICE: return "Device"; 104 default: return "?"; 105 } 106 } 107 public String getSystem() { 108 switch (this) { 109 case PATIENT: return "http://hl7.org/fhir/compartment-type"; 110 case ENCOUNTER: return "http://hl7.org/fhir/compartment-type"; 111 case RELATEDPERSON: return "http://hl7.org/fhir/compartment-type"; 112 case PRACTITIONER: return "http://hl7.org/fhir/compartment-type"; 113 case DEVICE: return "http://hl7.org/fhir/compartment-type"; 114 default: return "?"; 115 } 116 } 117 public String getDefinition() { 118 switch (this) { 119 case PATIENT: return "The compartment definition is for the patient compartment"; 120 case ENCOUNTER: return "The compartment definition is for the encounter compartment"; 121 case RELATEDPERSON: return "The compartment definition is for the related-person compartment"; 122 case PRACTITIONER: return "The compartment definition is for the practitioner compartment"; 123 case DEVICE: return "The compartment definition is for the device compartment"; 124 default: return "?"; 125 } 126 } 127 public String getDisplay() { 128 switch (this) { 129 case PATIENT: return "Patient"; 130 case ENCOUNTER: return "Encounter"; 131 case RELATEDPERSON: return "RelatedPerson"; 132 case PRACTITIONER: return "Practitioner"; 133 case DEVICE: return "Device"; 134 default: return "?"; 135 } 136 } 137 } 138 139 public static class CompartmentTypeEnumFactory implements EnumFactory<CompartmentType> { 140 public CompartmentType fromCode(String codeString) throws IllegalArgumentException { 141 if (codeString == null || "".equals(codeString)) 142 if (codeString == null || "".equals(codeString)) 143 return null; 144 if ("Patient".equals(codeString)) 145 return CompartmentType.PATIENT; 146 if ("Encounter".equals(codeString)) 147 return CompartmentType.ENCOUNTER; 148 if ("RelatedPerson".equals(codeString)) 149 return CompartmentType.RELATEDPERSON; 150 if ("Practitioner".equals(codeString)) 151 return CompartmentType.PRACTITIONER; 152 if ("Device".equals(codeString)) 153 return CompartmentType.DEVICE; 154 throw new IllegalArgumentException("Unknown CompartmentType code '"+codeString+"'"); 155 } 156 public Enumeration<CompartmentType> fromType(Base code) throws FHIRException { 157 if (code == null) 158 return null; 159 if (code.isEmpty()) 160 return new Enumeration<CompartmentType>(this); 161 String codeString = ((PrimitiveType) code).asStringValue(); 162 if (codeString == null || "".equals(codeString)) 163 return null; 164 if ("Patient".equals(codeString)) 165 return new Enumeration<CompartmentType>(this, CompartmentType.PATIENT); 166 if ("Encounter".equals(codeString)) 167 return new Enumeration<CompartmentType>(this, CompartmentType.ENCOUNTER); 168 if ("RelatedPerson".equals(codeString)) 169 return new Enumeration<CompartmentType>(this, CompartmentType.RELATEDPERSON); 170 if ("Practitioner".equals(codeString)) 171 return new Enumeration<CompartmentType>(this, CompartmentType.PRACTITIONER); 172 if ("Device".equals(codeString)) 173 return new Enumeration<CompartmentType>(this, CompartmentType.DEVICE); 174 throw new FHIRException("Unknown CompartmentType code '"+codeString+"'"); 175 } 176 public String toCode(CompartmentType code) { 177 if (code == CompartmentType.PATIENT) 178 return "Patient"; 179 if (code == CompartmentType.ENCOUNTER) 180 return "Encounter"; 181 if (code == CompartmentType.RELATEDPERSON) 182 return "RelatedPerson"; 183 if (code == CompartmentType.PRACTITIONER) 184 return "Practitioner"; 185 if (code == CompartmentType.DEVICE) 186 return "Device"; 187 return "?"; 188 } 189 public String toSystem(CompartmentType code) { 190 return code.getSystem(); 191 } 192 } 193 194 @Block() 195 public static class CompartmentDefinitionResourceComponent extends BackboneElement implements IBaseBackboneElement { 196 /** 197 * The name of a resource supported by the server. 198 */ 199 @Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=true) 200 @Description(shortDefinition="Name of resource type", formalDefinition="The name of a resource supported by the server." ) 201 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/resource-types") 202 protected CodeType code; 203 204 /** 205 * The name of a search parameter that represents the link to the compartment. More than one may be listed because a resource may be linked to a compartment in more than one way,. 206 */ 207 @Child(name = "param", type = {StringType.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 208 @Description(shortDefinition="Search Parameter Name, or chained parameters", formalDefinition="The name of a search parameter that represents the link to the compartment. More than one may be listed because a resource may be linked to a compartment in more than one way,." ) 209 protected List<StringType> param; 210 211 /** 212 * Additional documentation about the resource and compartment. 213 */ 214 @Child(name = "documentation", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) 215 @Description(shortDefinition="Additional documentation about the resource and compartment", formalDefinition="Additional documentation about the resource and compartment." ) 216 protected StringType documentation; 217 218 private static final long serialVersionUID = 988080897L; 219 220 /** 221 * Constructor 222 */ 223 public CompartmentDefinitionResourceComponent() { 224 super(); 225 } 226 227 /** 228 * Constructor 229 */ 230 public CompartmentDefinitionResourceComponent(CodeType code) { 231 super(); 232 this.code = code; 233 } 234 235 /** 236 * @return {@link #code} (The name of a resource supported by the server.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 237 */ 238 public CodeType getCodeElement() { 239 if (this.code == null) 240 if (Configuration.errorOnAutoCreate()) 241 throw new Error("Attempt to auto-create CompartmentDefinitionResourceComponent.code"); 242 else if (Configuration.doAutoCreate()) 243 this.code = new CodeType(); // bb 244 return this.code; 245 } 246 247 public boolean hasCodeElement() { 248 return this.code != null && !this.code.isEmpty(); 249 } 250 251 public boolean hasCode() { 252 return this.code != null && !this.code.isEmpty(); 253 } 254 255 /** 256 * @param value {@link #code} (The name of a resource supported by the server.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 257 */ 258 public CompartmentDefinitionResourceComponent setCodeElement(CodeType value) { 259 this.code = value; 260 return this; 261 } 262 263 /** 264 * @return The name of a resource supported by the server. 265 */ 266 public String getCode() { 267 return this.code == null ? null : this.code.getValue(); 268 } 269 270 /** 271 * @param value The name of a resource supported by the server. 272 */ 273 public CompartmentDefinitionResourceComponent setCode(String value) { 274 if (this.code == null) 275 this.code = new CodeType(); 276 this.code.setValue(value); 277 return this; 278 } 279 280 /** 281 * @return {@link #param} (The name of a search parameter that represents the link to the compartment. More than one may be listed because a resource may be linked to a compartment in more than one way,.) 282 */ 283 public List<StringType> getParam() { 284 if (this.param == null) 285 this.param = new ArrayList<StringType>(); 286 return this.param; 287 } 288 289 /** 290 * @return Returns a reference to <code>this</code> for easy method chaining 291 */ 292 public CompartmentDefinitionResourceComponent setParam(List<StringType> theParam) { 293 this.param = theParam; 294 return this; 295 } 296 297 public boolean hasParam() { 298 if (this.param == null) 299 return false; 300 for (StringType item : this.param) 301 if (!item.isEmpty()) 302 return true; 303 return false; 304 } 305 306 /** 307 * @return {@link #param} (The name of a search parameter that represents the link to the compartment. More than one may be listed because a resource may be linked to a compartment in more than one way,.) 308 */ 309 public StringType addParamElement() {//2 310 StringType t = new StringType(); 311 if (this.param == null) 312 this.param = new ArrayList<StringType>(); 313 this.param.add(t); 314 return t; 315 } 316 317 /** 318 * @param value {@link #param} (The name of a search parameter that represents the link to the compartment. More than one may be listed because a resource may be linked to a compartment in more than one way,.) 319 */ 320 public CompartmentDefinitionResourceComponent addParam(String value) { //1 321 StringType t = new StringType(); 322 t.setValue(value); 323 if (this.param == null) 324 this.param = new ArrayList<StringType>(); 325 this.param.add(t); 326 return this; 327 } 328 329 /** 330 * @param value {@link #param} (The name of a search parameter that represents the link to the compartment. More than one may be listed because a resource may be linked to a compartment in more than one way,.) 331 */ 332 public boolean hasParam(String value) { 333 if (this.param == null) 334 return false; 335 for (StringType v : this.param) 336 if (v.getValue().equals(value)) // string 337 return true; 338 return false; 339 } 340 341 /** 342 * @return {@link #documentation} (Additional documentation about the resource and compartment.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 343 */ 344 public StringType getDocumentationElement() { 345 if (this.documentation == null) 346 if (Configuration.errorOnAutoCreate()) 347 throw new Error("Attempt to auto-create CompartmentDefinitionResourceComponent.documentation"); 348 else if (Configuration.doAutoCreate()) 349 this.documentation = new StringType(); // bb 350 return this.documentation; 351 } 352 353 public boolean hasDocumentationElement() { 354 return this.documentation != null && !this.documentation.isEmpty(); 355 } 356 357 public boolean hasDocumentation() { 358 return this.documentation != null && !this.documentation.isEmpty(); 359 } 360 361 /** 362 * @param value {@link #documentation} (Additional documentation about the resource and compartment.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 363 */ 364 public CompartmentDefinitionResourceComponent setDocumentationElement(StringType value) { 365 this.documentation = value; 366 return this; 367 } 368 369 /** 370 * @return Additional documentation about the resource and compartment. 371 */ 372 public String getDocumentation() { 373 return this.documentation == null ? null : this.documentation.getValue(); 374 } 375 376 /** 377 * @param value Additional documentation about the resource and compartment. 378 */ 379 public CompartmentDefinitionResourceComponent setDocumentation(String value) { 380 if (Utilities.noString(value)) 381 this.documentation = null; 382 else { 383 if (this.documentation == null) 384 this.documentation = new StringType(); 385 this.documentation.setValue(value); 386 } 387 return this; 388 } 389 390 protected void listChildren(List<Property> children) { 391 super.listChildren(children); 392 children.add(new Property("code", "code", "The name of a resource supported by the server.", 0, 1, code)); 393 children.add(new Property("param", "string", "The name of a search parameter that represents the link to the compartment. More than one may be listed because a resource may be linked to a compartment in more than one way,.", 0, java.lang.Integer.MAX_VALUE, param)); 394 children.add(new Property("documentation", "string", "Additional documentation about the resource and compartment.", 0, 1, documentation)); 395 } 396 397 @Override 398 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 399 switch (_hash) { 400 case 3059181: /*code*/ return new Property("code", "code", "The name of a resource supported by the server.", 0, 1, code); 401 case 106436749: /*param*/ return new Property("param", "string", "The name of a search parameter that represents the link to the compartment. More than one may be listed because a resource may be linked to a compartment in more than one way,.", 0, java.lang.Integer.MAX_VALUE, param); 402 case 1587405498: /*documentation*/ return new Property("documentation", "string", "Additional documentation about the resource and compartment.", 0, 1, documentation); 403 default: return super.getNamedProperty(_hash, _name, _checkValid); 404 } 405 406 } 407 408 @Override 409 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 410 switch (hash) { 411 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType 412 case 106436749: /*param*/ return this.param == null ? new Base[0] : this.param.toArray(new Base[this.param.size()]); // StringType 413 case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // StringType 414 default: return super.getProperty(hash, name, checkValid); 415 } 416 417 } 418 419 @Override 420 public Base setProperty(int hash, String name, Base value) throws FHIRException { 421 switch (hash) { 422 case 3059181: // code 423 this.code = castToCode(value); // CodeType 424 return value; 425 case 106436749: // param 426 this.getParam().add(castToString(value)); // StringType 427 return value; 428 case 1587405498: // documentation 429 this.documentation = castToString(value); // StringType 430 return value; 431 default: return super.setProperty(hash, name, value); 432 } 433 434 } 435 436 @Override 437 public Base setProperty(String name, Base value) throws FHIRException { 438 if (name.equals("code")) { 439 this.code = castToCode(value); // CodeType 440 } else if (name.equals("param")) { 441 this.getParam().add(castToString(value)); 442 } else if (name.equals("documentation")) { 443 this.documentation = castToString(value); // StringType 444 } else 445 return super.setProperty(name, value); 446 return value; 447 } 448 449 @Override 450 public Base makeProperty(int hash, String name) throws FHIRException { 451 switch (hash) { 452 case 3059181: return getCodeElement(); 453 case 106436749: return addParamElement(); 454 case 1587405498: return getDocumentationElement(); 455 default: return super.makeProperty(hash, name); 456 } 457 458 } 459 460 @Override 461 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 462 switch (hash) { 463 case 3059181: /*code*/ return new String[] {"code"}; 464 case 106436749: /*param*/ return new String[] {"string"}; 465 case 1587405498: /*documentation*/ return new String[] {"string"}; 466 default: return super.getTypesForProperty(hash, name); 467 } 468 469 } 470 471 @Override 472 public Base addChild(String name) throws FHIRException { 473 if (name.equals("code")) { 474 throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.code"); 475 } 476 else if (name.equals("param")) { 477 throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.param"); 478 } 479 else if (name.equals("documentation")) { 480 throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.documentation"); 481 } 482 else 483 return super.addChild(name); 484 } 485 486 public CompartmentDefinitionResourceComponent copy() { 487 CompartmentDefinitionResourceComponent dst = new CompartmentDefinitionResourceComponent(); 488 copyValues(dst); 489 dst.code = code == null ? null : code.copy(); 490 if (param != null) { 491 dst.param = new ArrayList<StringType>(); 492 for (StringType i : param) 493 dst.param.add(i.copy()); 494 }; 495 dst.documentation = documentation == null ? null : documentation.copy(); 496 return dst; 497 } 498 499 @Override 500 public boolean equalsDeep(Base other_) { 501 if (!super.equalsDeep(other_)) 502 return false; 503 if (!(other_ instanceof CompartmentDefinitionResourceComponent)) 504 return false; 505 CompartmentDefinitionResourceComponent o = (CompartmentDefinitionResourceComponent) other_; 506 return compareDeep(code, o.code, true) && compareDeep(param, o.param, true) && compareDeep(documentation, o.documentation, true) 507 ; 508 } 509 510 @Override 511 public boolean equalsShallow(Base other_) { 512 if (!super.equalsShallow(other_)) 513 return false; 514 if (!(other_ instanceof CompartmentDefinitionResourceComponent)) 515 return false; 516 CompartmentDefinitionResourceComponent o = (CompartmentDefinitionResourceComponent) other_; 517 return compareValues(code, o.code, true) && compareValues(param, o.param, true) && compareValues(documentation, o.documentation, true) 518 ; 519 } 520 521 public boolean isEmpty() { 522 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, param, documentation 523 ); 524 } 525 526 public String fhirType() { 527 return "CompartmentDefinition.resource"; 528 529 } 530 531 } 532 533 /** 534 * Explaination of why this compartment definition is needed and why it has been designed as it has. 535 */ 536 @Child(name = "purpose", type = {MarkdownType.class}, order=0, min=0, max=1, modifier=false, summary=false) 537 @Description(shortDefinition="Why this compartment definition is defined", formalDefinition="Explaination of why this compartment definition is needed and why it has been designed as it has." ) 538 protected MarkdownType purpose; 539 540 /** 541 * Which compartment this definition describes. 542 */ 543 @Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=true) 544 @Description(shortDefinition="Patient | Encounter | RelatedPerson | Practitioner | Device", formalDefinition="Which compartment this definition describes." ) 545 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/compartment-type") 546 protected Enumeration<CompartmentType> code; 547 548 /** 549 * Whether the search syntax is supported,. 550 */ 551 @Child(name = "search", type = {BooleanType.class}, order=2, min=1, max=1, modifier=false, summary=true) 552 @Description(shortDefinition="Whether the search syntax is supported", formalDefinition="Whether the search syntax is supported,." ) 553 protected BooleanType search; 554 555 /** 556 * Information about how a resource is related to the compartment. 557 */ 558 @Child(name = "resource", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 559 @Description(shortDefinition="How a resource is related to the compartment", formalDefinition="Information about how a resource is related to the compartment." ) 560 protected List<CompartmentDefinitionResourceComponent> resource; 561 562 private static final long serialVersionUID = -1159172945L; 563 564 /** 565 * Constructor 566 */ 567 public CompartmentDefinition() { 568 super(); 569 } 570 571 /** 572 * Constructor 573 */ 574 public CompartmentDefinition(UriType url, StringType name, Enumeration<PublicationStatus> status, Enumeration<CompartmentType> code, BooleanType search) { 575 super(); 576 this.url = url; 577 this.name = name; 578 this.status = status; 579 this.code = code; 580 this.search = search; 581 } 582 583 /** 584 * @return {@link #url} (An absolute URI that is used to identify this compartment definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this compartment definition is (or will be) published. The URL SHOULD include the major version of the compartment definition. For more information see [Technical and Business Versions](resource.html#versions).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 585 */ 586 public UriType getUrlElement() { 587 if (this.url == null) 588 if (Configuration.errorOnAutoCreate()) 589 throw new Error("Attempt to auto-create CompartmentDefinition.url"); 590 else if (Configuration.doAutoCreate()) 591 this.url = new UriType(); // bb 592 return this.url; 593 } 594 595 public boolean hasUrlElement() { 596 return this.url != null && !this.url.isEmpty(); 597 } 598 599 public boolean hasUrl() { 600 return this.url != null && !this.url.isEmpty(); 601 } 602 603 /** 604 * @param value {@link #url} (An absolute URI that is used to identify this compartment definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this compartment definition is (or will be) published. The URL SHOULD include the major version of the compartment definition. For more information see [Technical and Business Versions](resource.html#versions).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 605 */ 606 public CompartmentDefinition setUrlElement(UriType value) { 607 this.url = value; 608 return this; 609 } 610 611 /** 612 * @return An absolute URI that is used to identify this compartment definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this compartment definition is (or will be) published. The URL SHOULD include the major version of the compartment definition. For more information see [Technical and Business Versions](resource.html#versions). 613 */ 614 public String getUrl() { 615 return this.url == null ? null : this.url.getValue(); 616 } 617 618 /** 619 * @param value An absolute URI that is used to identify this compartment definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this compartment definition is (or will be) published. The URL SHOULD include the major version of the compartment definition. For more information see [Technical and Business Versions](resource.html#versions). 620 */ 621 public CompartmentDefinition setUrl(String value) { 622 if (this.url == null) 623 this.url = new UriType(); 624 this.url.setValue(value); 625 return this; 626 } 627 628 /** 629 * @return {@link #name} (A natural language name identifying the compartment definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 630 */ 631 public StringType getNameElement() { 632 if (this.name == null) 633 if (Configuration.errorOnAutoCreate()) 634 throw new Error("Attempt to auto-create CompartmentDefinition.name"); 635 else if (Configuration.doAutoCreate()) 636 this.name = new StringType(); // bb 637 return this.name; 638 } 639 640 public boolean hasNameElement() { 641 return this.name != null && !this.name.isEmpty(); 642 } 643 644 public boolean hasName() { 645 return this.name != null && !this.name.isEmpty(); 646 } 647 648 /** 649 * @param value {@link #name} (A natural language name identifying the compartment definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 650 */ 651 public CompartmentDefinition setNameElement(StringType value) { 652 this.name = value; 653 return this; 654 } 655 656 /** 657 * @return A natural language name identifying the compartment definition. This name should be usable as an identifier for the module by machine processing applications such as code generation. 658 */ 659 public String getName() { 660 return this.name == null ? null : this.name.getValue(); 661 } 662 663 /** 664 * @param value A natural language name identifying the compartment definition. This name should be usable as an identifier for the module by machine processing applications such as code generation. 665 */ 666 public CompartmentDefinition setName(String value) { 667 if (this.name == null) 668 this.name = new StringType(); 669 this.name.setValue(value); 670 return this; 671 } 672 673 /** 674 * @return {@link #title} (A short, descriptive, user-friendly title for the compartment definition.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 675 */ 676 public StringType getTitleElement() { 677 if (this.title == null) 678 if (Configuration.errorOnAutoCreate()) 679 throw new Error("Attempt to auto-create CompartmentDefinition.title"); 680 else if (Configuration.doAutoCreate()) 681 this.title = new StringType(); // bb 682 return this.title; 683 } 684 685 public boolean hasTitleElement() { 686 return this.title != null && !this.title.isEmpty(); 687 } 688 689 public boolean hasTitle() { 690 return this.title != null && !this.title.isEmpty(); 691 } 692 693 /** 694 * @param value {@link #title} (A short, descriptive, user-friendly title for the compartment definition.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 695 */ 696 public CompartmentDefinition setTitleElement(StringType value) { 697 this.title = value; 698 return this; 699 } 700 701 /** 702 * @return A short, descriptive, user-friendly title for the compartment definition. 703 */ 704 public String getTitle() { 705 return this.title == null ? null : this.title.getValue(); 706 } 707 708 /** 709 * @param value A short, descriptive, user-friendly title for the compartment definition. 710 */ 711 public CompartmentDefinition setTitle(String value) { 712 if (Utilities.noString(value)) 713 this.title = null; 714 else { 715 if (this.title == null) 716 this.title = new StringType(); 717 this.title.setValue(value); 718 } 719 return this; 720 } 721 722 /** 723 * @return {@link #status} (The status of this compartment definition. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 724 */ 725 public Enumeration<PublicationStatus> getStatusElement() { 726 if (this.status == null) 727 if (Configuration.errorOnAutoCreate()) 728 throw new Error("Attempt to auto-create CompartmentDefinition.status"); 729 else if (Configuration.doAutoCreate()) 730 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb 731 return this.status; 732 } 733 734 public boolean hasStatusElement() { 735 return this.status != null && !this.status.isEmpty(); 736 } 737 738 public boolean hasStatus() { 739 return this.status != null && !this.status.isEmpty(); 740 } 741 742 /** 743 * @param value {@link #status} (The status of this compartment definition. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 744 */ 745 public CompartmentDefinition setStatusElement(Enumeration<PublicationStatus> value) { 746 this.status = value; 747 return this; 748 } 749 750 /** 751 * @return The status of this compartment definition. Enables tracking the life-cycle of the content. 752 */ 753 public PublicationStatus getStatus() { 754 return this.status == null ? null : this.status.getValue(); 755 } 756 757 /** 758 * @param value The status of this compartment definition. Enables tracking the life-cycle of the content. 759 */ 760 public CompartmentDefinition setStatus(PublicationStatus value) { 761 if (this.status == null) 762 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); 763 this.status.setValue(value); 764 return this; 765 } 766 767 /** 768 * @return {@link #experimental} (A boolean value to indicate that this compartment definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value 769 */ 770 public BooleanType getExperimentalElement() { 771 if (this.experimental == null) 772 if (Configuration.errorOnAutoCreate()) 773 throw new Error("Attempt to auto-create CompartmentDefinition.experimental"); 774 else if (Configuration.doAutoCreate()) 775 this.experimental = new BooleanType(); // bb 776 return this.experimental; 777 } 778 779 public boolean hasExperimentalElement() { 780 return this.experimental != null && !this.experimental.isEmpty(); 781 } 782 783 public boolean hasExperimental() { 784 return this.experimental != null && !this.experimental.isEmpty(); 785 } 786 787 /** 788 * @param value {@link #experimental} (A boolean value to indicate that this compartment definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value 789 */ 790 public CompartmentDefinition setExperimentalElement(BooleanType value) { 791 this.experimental = value; 792 return this; 793 } 794 795 /** 796 * @return A boolean value to indicate that this compartment definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. 797 */ 798 public boolean getExperimental() { 799 return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue(); 800 } 801 802 /** 803 * @param value A boolean value to indicate that this compartment definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. 804 */ 805 public CompartmentDefinition setExperimental(boolean value) { 806 if (this.experimental == null) 807 this.experimental = new BooleanType(); 808 this.experimental.setValue(value); 809 return this; 810 } 811 812 /** 813 * @return {@link #date} (The date (and optionally time) when the compartment definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the compartment definition changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 814 */ 815 public DateTimeType getDateElement() { 816 if (this.date == null) 817 if (Configuration.errorOnAutoCreate()) 818 throw new Error("Attempt to auto-create CompartmentDefinition.date"); 819 else if (Configuration.doAutoCreate()) 820 this.date = new DateTimeType(); // bb 821 return this.date; 822 } 823 824 public boolean hasDateElement() { 825 return this.date != null && !this.date.isEmpty(); 826 } 827 828 public boolean hasDate() { 829 return this.date != null && !this.date.isEmpty(); 830 } 831 832 /** 833 * @param value {@link #date} (The date (and optionally time) when the compartment definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the compartment definition changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 834 */ 835 public CompartmentDefinition setDateElement(DateTimeType value) { 836 this.date = value; 837 return this; 838 } 839 840 /** 841 * @return The date (and optionally time) when the compartment definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the compartment definition changes. 842 */ 843 public Date getDate() { 844 return this.date == null ? null : this.date.getValue(); 845 } 846 847 /** 848 * @param value The date (and optionally time) when the compartment definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the compartment definition changes. 849 */ 850 public CompartmentDefinition setDate(Date value) { 851 if (value == null) 852 this.date = null; 853 else { 854 if (this.date == null) 855 this.date = new DateTimeType(); 856 this.date.setValue(value); 857 } 858 return this; 859 } 860 861 /** 862 * @return {@link #publisher} (The name of the individual or organization that published the compartment definition.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 863 */ 864 public StringType getPublisherElement() { 865 if (this.publisher == null) 866 if (Configuration.errorOnAutoCreate()) 867 throw new Error("Attempt to auto-create CompartmentDefinition.publisher"); 868 else if (Configuration.doAutoCreate()) 869 this.publisher = new StringType(); // bb 870 return this.publisher; 871 } 872 873 public boolean hasPublisherElement() { 874 return this.publisher != null && !this.publisher.isEmpty(); 875 } 876 877 public boolean hasPublisher() { 878 return this.publisher != null && !this.publisher.isEmpty(); 879 } 880 881 /** 882 * @param value {@link #publisher} (The name of the individual or organization that published the compartment definition.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 883 */ 884 public CompartmentDefinition setPublisherElement(StringType value) { 885 this.publisher = value; 886 return this; 887 } 888 889 /** 890 * @return The name of the individual or organization that published the compartment definition. 891 */ 892 public String getPublisher() { 893 return this.publisher == null ? null : this.publisher.getValue(); 894 } 895 896 /** 897 * @param value The name of the individual or organization that published the compartment definition. 898 */ 899 public CompartmentDefinition setPublisher(String value) { 900 if (Utilities.noString(value)) 901 this.publisher = null; 902 else { 903 if (this.publisher == null) 904 this.publisher = new StringType(); 905 this.publisher.setValue(value); 906 } 907 return this; 908 } 909 910 /** 911 * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.) 912 */ 913 public List<ContactDetail> getContact() { 914 if (this.contact == null) 915 this.contact = new ArrayList<ContactDetail>(); 916 return this.contact; 917 } 918 919 /** 920 * @return Returns a reference to <code>this</code> for easy method chaining 921 */ 922 public CompartmentDefinition setContact(List<ContactDetail> theContact) { 923 this.contact = theContact; 924 return this; 925 } 926 927 public boolean hasContact() { 928 if (this.contact == null) 929 return false; 930 for (ContactDetail item : this.contact) 931 if (!item.isEmpty()) 932 return true; 933 return false; 934 } 935 936 public ContactDetail addContact() { //3 937 ContactDetail t = new ContactDetail(); 938 if (this.contact == null) 939 this.contact = new ArrayList<ContactDetail>(); 940 this.contact.add(t); 941 return t; 942 } 943 944 public CompartmentDefinition addContact(ContactDetail t) { //3 945 if (t == null) 946 return this; 947 if (this.contact == null) 948 this.contact = new ArrayList<ContactDetail>(); 949 this.contact.add(t); 950 return this; 951 } 952 953 /** 954 * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist 955 */ 956 public ContactDetail getContactFirstRep() { 957 if (getContact().isEmpty()) { 958 addContact(); 959 } 960 return getContact().get(0); 961 } 962 963 /** 964 * @return {@link #description} (A free text natural language description of the compartment definition from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 965 */ 966 public MarkdownType getDescriptionElement() { 967 if (this.description == null) 968 if (Configuration.errorOnAutoCreate()) 969 throw new Error("Attempt to auto-create CompartmentDefinition.description"); 970 else if (Configuration.doAutoCreate()) 971 this.description = new MarkdownType(); // bb 972 return this.description; 973 } 974 975 public boolean hasDescriptionElement() { 976 return this.description != null && !this.description.isEmpty(); 977 } 978 979 public boolean hasDescription() { 980 return this.description != null && !this.description.isEmpty(); 981 } 982 983 /** 984 * @param value {@link #description} (A free text natural language description of the compartment definition from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 985 */ 986 public CompartmentDefinition setDescriptionElement(MarkdownType value) { 987 this.description = value; 988 return this; 989 } 990 991 /** 992 * @return A free text natural language description of the compartment definition from a consumer's perspective. 993 */ 994 public String getDescription() { 995 return this.description == null ? null : this.description.getValue(); 996 } 997 998 /** 999 * @param value A free text natural language description of the compartment definition from a consumer's perspective. 1000 */ 1001 public CompartmentDefinition setDescription(String value) { 1002 if (value == null) 1003 this.description = null; 1004 else { 1005 if (this.description == null) 1006 this.description = new MarkdownType(); 1007 this.description.setValue(value); 1008 } 1009 return this; 1010 } 1011 1012 /** 1013 * @return {@link #purpose} (Explaination of why this compartment definition is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value 1014 */ 1015 public MarkdownType getPurposeElement() { 1016 if (this.purpose == null) 1017 if (Configuration.errorOnAutoCreate()) 1018 throw new Error("Attempt to auto-create CompartmentDefinition.purpose"); 1019 else if (Configuration.doAutoCreate()) 1020 this.purpose = new MarkdownType(); // bb 1021 return this.purpose; 1022 } 1023 1024 public boolean hasPurposeElement() { 1025 return this.purpose != null && !this.purpose.isEmpty(); 1026 } 1027 1028 public boolean hasPurpose() { 1029 return this.purpose != null && !this.purpose.isEmpty(); 1030 } 1031 1032 /** 1033 * @param value {@link #purpose} (Explaination of why this compartment definition is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value 1034 */ 1035 public CompartmentDefinition setPurposeElement(MarkdownType value) { 1036 this.purpose = value; 1037 return this; 1038 } 1039 1040 /** 1041 * @return Explaination of why this compartment definition is needed and why it has been designed as it has. 1042 */ 1043 public String getPurpose() { 1044 return this.purpose == null ? null : this.purpose.getValue(); 1045 } 1046 1047 /** 1048 * @param value Explaination of why this compartment definition is needed and why it has been designed as it has. 1049 */ 1050 public CompartmentDefinition setPurpose(String value) { 1051 if (value == null) 1052 this.purpose = null; 1053 else { 1054 if (this.purpose == null) 1055 this.purpose = new MarkdownType(); 1056 this.purpose.setValue(value); 1057 } 1058 return this; 1059 } 1060 1061 /** 1062 * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate compartment definition instances.) 1063 */ 1064 public List<UsageContext> getUseContext() { 1065 if (this.useContext == null) 1066 this.useContext = new ArrayList<UsageContext>(); 1067 return this.useContext; 1068 } 1069 1070 /** 1071 * @return Returns a reference to <code>this</code> for easy method chaining 1072 */ 1073 public CompartmentDefinition setUseContext(List<UsageContext> theUseContext) { 1074 this.useContext = theUseContext; 1075 return this; 1076 } 1077 1078 public boolean hasUseContext() { 1079 if (this.useContext == null) 1080 return false; 1081 for (UsageContext item : this.useContext) 1082 if (!item.isEmpty()) 1083 return true; 1084 return false; 1085 } 1086 1087 public UsageContext addUseContext() { //3 1088 UsageContext t = new UsageContext(); 1089 if (this.useContext == null) 1090 this.useContext = new ArrayList<UsageContext>(); 1091 this.useContext.add(t); 1092 return t; 1093 } 1094 1095 public CompartmentDefinition addUseContext(UsageContext t) { //3 1096 if (t == null) 1097 return this; 1098 if (this.useContext == null) 1099 this.useContext = new ArrayList<UsageContext>(); 1100 this.useContext.add(t); 1101 return this; 1102 } 1103 1104 /** 1105 * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist 1106 */ 1107 public UsageContext getUseContextFirstRep() { 1108 if (getUseContext().isEmpty()) { 1109 addUseContext(); 1110 } 1111 return getUseContext().get(0); 1112 } 1113 1114 /** 1115 * @return {@link #jurisdiction} (A legal or geographic region in which the compartment definition is intended to be used.) 1116 */ 1117 public List<CodeableConcept> getJurisdiction() { 1118 if (this.jurisdiction == null) 1119 this.jurisdiction = new ArrayList<CodeableConcept>(); 1120 return this.jurisdiction; 1121 } 1122 1123 /** 1124 * @return Returns a reference to <code>this</code> for easy method chaining 1125 */ 1126 public CompartmentDefinition setJurisdiction(List<CodeableConcept> theJurisdiction) { 1127 this.jurisdiction = theJurisdiction; 1128 return this; 1129 } 1130 1131 public boolean hasJurisdiction() { 1132 if (this.jurisdiction == null) 1133 return false; 1134 for (CodeableConcept item : this.jurisdiction) 1135 if (!item.isEmpty()) 1136 return true; 1137 return false; 1138 } 1139 1140 public CodeableConcept addJurisdiction() { //3 1141 CodeableConcept t = new CodeableConcept(); 1142 if (this.jurisdiction == null) 1143 this.jurisdiction = new ArrayList<CodeableConcept>(); 1144 this.jurisdiction.add(t); 1145 return t; 1146 } 1147 1148 public CompartmentDefinition addJurisdiction(CodeableConcept t) { //3 1149 if (t == null) 1150 return this; 1151 if (this.jurisdiction == null) 1152 this.jurisdiction = new ArrayList<CodeableConcept>(); 1153 this.jurisdiction.add(t); 1154 return this; 1155 } 1156 1157 /** 1158 * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist 1159 */ 1160 public CodeableConcept getJurisdictionFirstRep() { 1161 if (getJurisdiction().isEmpty()) { 1162 addJurisdiction(); 1163 } 1164 return getJurisdiction().get(0); 1165 } 1166 1167 /** 1168 * @return {@link #code} (Which compartment this definition describes.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 1169 */ 1170 public Enumeration<CompartmentType> getCodeElement() { 1171 if (this.code == null) 1172 if (Configuration.errorOnAutoCreate()) 1173 throw new Error("Attempt to auto-create CompartmentDefinition.code"); 1174 else if (Configuration.doAutoCreate()) 1175 this.code = new Enumeration<CompartmentType>(new CompartmentTypeEnumFactory()); // bb 1176 return this.code; 1177 } 1178 1179 public boolean hasCodeElement() { 1180 return this.code != null && !this.code.isEmpty(); 1181 } 1182 1183 public boolean hasCode() { 1184 return this.code != null && !this.code.isEmpty(); 1185 } 1186 1187 /** 1188 * @param value {@link #code} (Which compartment this definition describes.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 1189 */ 1190 public CompartmentDefinition setCodeElement(Enumeration<CompartmentType> value) { 1191 this.code = value; 1192 return this; 1193 } 1194 1195 /** 1196 * @return Which compartment this definition describes. 1197 */ 1198 public CompartmentType getCode() { 1199 return this.code == null ? null : this.code.getValue(); 1200 } 1201 1202 /** 1203 * @param value Which compartment this definition describes. 1204 */ 1205 public CompartmentDefinition setCode(CompartmentType value) { 1206 if (this.code == null) 1207 this.code = new Enumeration<CompartmentType>(new CompartmentTypeEnumFactory()); 1208 this.code.setValue(value); 1209 return this; 1210 } 1211 1212 /** 1213 * @return {@link #search} (Whether the search syntax is supported,.). This is the underlying object with id, value and extensions. The accessor "getSearch" gives direct access to the value 1214 */ 1215 public BooleanType getSearchElement() { 1216 if (this.search == null) 1217 if (Configuration.errorOnAutoCreate()) 1218 throw new Error("Attempt to auto-create CompartmentDefinition.search"); 1219 else if (Configuration.doAutoCreate()) 1220 this.search = new BooleanType(); // bb 1221 return this.search; 1222 } 1223 1224 public boolean hasSearchElement() { 1225 return this.search != null && !this.search.isEmpty(); 1226 } 1227 1228 public boolean hasSearch() { 1229 return this.search != null && !this.search.isEmpty(); 1230 } 1231 1232 /** 1233 * @param value {@link #search} (Whether the search syntax is supported,.). This is the underlying object with id, value and extensions. The accessor "getSearch" gives direct access to the value 1234 */ 1235 public CompartmentDefinition setSearchElement(BooleanType value) { 1236 this.search = value; 1237 return this; 1238 } 1239 1240 /** 1241 * @return Whether the search syntax is supported,. 1242 */ 1243 public boolean getSearch() { 1244 return this.search == null || this.search.isEmpty() ? false : this.search.getValue(); 1245 } 1246 1247 /** 1248 * @param value Whether the search syntax is supported,. 1249 */ 1250 public CompartmentDefinition setSearch(boolean value) { 1251 if (this.search == null) 1252 this.search = new BooleanType(); 1253 this.search.setValue(value); 1254 return this; 1255 } 1256 1257 /** 1258 * @return {@link #resource} (Information about how a resource is related to the compartment.) 1259 */ 1260 public List<CompartmentDefinitionResourceComponent> getResource() { 1261 if (this.resource == null) 1262 this.resource = new ArrayList<CompartmentDefinitionResourceComponent>(); 1263 return this.resource; 1264 } 1265 1266 /** 1267 * @return Returns a reference to <code>this</code> for easy method chaining 1268 */ 1269 public CompartmentDefinition setResource(List<CompartmentDefinitionResourceComponent> theResource) { 1270 this.resource = theResource; 1271 return this; 1272 } 1273 1274 public boolean hasResource() { 1275 if (this.resource == null) 1276 return false; 1277 for (CompartmentDefinitionResourceComponent item : this.resource) 1278 if (!item.isEmpty()) 1279 return true; 1280 return false; 1281 } 1282 1283 public CompartmentDefinitionResourceComponent addResource() { //3 1284 CompartmentDefinitionResourceComponent t = new CompartmentDefinitionResourceComponent(); 1285 if (this.resource == null) 1286 this.resource = new ArrayList<CompartmentDefinitionResourceComponent>(); 1287 this.resource.add(t); 1288 return t; 1289 } 1290 1291 public CompartmentDefinition addResource(CompartmentDefinitionResourceComponent t) { //3 1292 if (t == null) 1293 return this; 1294 if (this.resource == null) 1295 this.resource = new ArrayList<CompartmentDefinitionResourceComponent>(); 1296 this.resource.add(t); 1297 return this; 1298 } 1299 1300 /** 1301 * @return The first repetition of repeating field {@link #resource}, creating it if it does not already exist 1302 */ 1303 public CompartmentDefinitionResourceComponent getResourceFirstRep() { 1304 if (getResource().isEmpty()) { 1305 addResource(); 1306 } 1307 return getResource().get(0); 1308 } 1309 1310 protected void listChildren(List<Property> children) { 1311 super.listChildren(children); 1312 children.add(new Property("url", "uri", "An absolute URI that is used to identify this compartment definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this compartment definition is (or will be) published. The URL SHOULD include the major version of the compartment definition. For more information see [Technical and Business Versions](resource.html#versions).", 0, 1, url)); 1313 children.add(new Property("name", "string", "A natural language name identifying the compartment definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); 1314 children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the compartment definition.", 0, 1, title)); 1315 children.add(new Property("status", "code", "The status of this compartment definition. Enables tracking the life-cycle of the content.", 0, 1, status)); 1316 children.add(new Property("experimental", "boolean", "A boolean value to indicate that this compartment definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, 1, experimental)); 1317 children.add(new Property("date", "dateTime", "The date (and optionally time) when the compartment definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the compartment definition changes.", 0, 1, date)); 1318 children.add(new Property("publisher", "string", "The name of the individual or organization that published the compartment definition.", 0, 1, publisher)); 1319 children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact)); 1320 children.add(new Property("description", "markdown", "A free text natural language description of the compartment definition from a consumer's perspective.", 0, 1, description)); 1321 children.add(new Property("purpose", "markdown", "Explaination of why this compartment definition is needed and why it has been designed as it has.", 0, 1, purpose)); 1322 children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate compartment definition instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); 1323 children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the compartment definition is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction)); 1324 children.add(new Property("code", "code", "Which compartment this definition describes.", 0, 1, code)); 1325 children.add(new Property("search", "boolean", "Whether the search syntax is supported,.", 0, 1, search)); 1326 children.add(new Property("resource", "", "Information about how a resource is related to the compartment.", 0, java.lang.Integer.MAX_VALUE, resource)); 1327 } 1328 1329 @Override 1330 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1331 switch (_hash) { 1332 case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this compartment definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this compartment definition is (or will be) published. The URL SHOULD include the major version of the compartment definition. For more information see [Technical and Business Versions](resource.html#versions).", 0, 1, url); 1333 case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the compartment definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); 1334 case 110371416: /*title*/ return new Property("title", "string", "A short, descriptive, user-friendly title for the compartment definition.", 0, 1, title); 1335 case -892481550: /*status*/ return new Property("status", "code", "The status of this compartment definition. Enables tracking the life-cycle of the content.", 0, 1, status); 1336 case -404562712: /*experimental*/ return new Property("experimental", "boolean", "A boolean value to indicate that this compartment definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, 1, experimental); 1337 case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the compartment definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the compartment definition changes.", 0, 1, date); 1338 case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the individual or organization that published the compartment definition.", 0, 1, publisher); 1339 case 951526432: /*contact*/ return new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact); 1340 case -1724546052: /*description*/ return new Property("description", "markdown", "A free text natural language description of the compartment definition from a consumer's perspective.", 0, 1, description); 1341 case -220463842: /*purpose*/ return new Property("purpose", "markdown", "Explaination of why this compartment definition is needed and why it has been designed as it has.", 0, 1, purpose); 1342 case -669707736: /*useContext*/ return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate compartment definition instances.", 0, java.lang.Integer.MAX_VALUE, useContext); 1343 case -507075711: /*jurisdiction*/ return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the compartment definition is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction); 1344 case 3059181: /*code*/ return new Property("code", "code", "Which compartment this definition describes.", 0, 1, code); 1345 case -906336856: /*search*/ return new Property("search", "boolean", "Whether the search syntax is supported,.", 0, 1, search); 1346 case -341064690: /*resource*/ return new Property("resource", "", "Information about how a resource is related to the compartment.", 0, java.lang.Integer.MAX_VALUE, resource); 1347 default: return super.getNamedProperty(_hash, _name, _checkValid); 1348 } 1349 1350 } 1351 1352 @Override 1353 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1354 switch (hash) { 1355 case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType 1356 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 1357 case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType 1358 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus> 1359 case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType 1360 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 1361 case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType 1362 case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail 1363 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType 1364 case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // MarkdownType 1365 case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext 1366 case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept 1367 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // Enumeration<CompartmentType> 1368 case -906336856: /*search*/ return this.search == null ? new Base[0] : new Base[] {this.search}; // BooleanType 1369 case -341064690: /*resource*/ return this.resource == null ? new Base[0] : this.resource.toArray(new Base[this.resource.size()]); // CompartmentDefinitionResourceComponent 1370 default: return super.getProperty(hash, name, checkValid); 1371 } 1372 1373 } 1374 1375 @Override 1376 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1377 switch (hash) { 1378 case 116079: // url 1379 this.url = castToUri(value); // UriType 1380 return value; 1381 case 3373707: // name 1382 this.name = castToString(value); // StringType 1383 return value; 1384 case 110371416: // title 1385 this.title = castToString(value); // StringType 1386 return value; 1387 case -892481550: // status 1388 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 1389 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 1390 return value; 1391 case -404562712: // experimental 1392 this.experimental = castToBoolean(value); // BooleanType 1393 return value; 1394 case 3076014: // date 1395 this.date = castToDateTime(value); // DateTimeType 1396 return value; 1397 case 1447404028: // publisher 1398 this.publisher = castToString(value); // StringType 1399 return value; 1400 case 951526432: // contact 1401 this.getContact().add(castToContactDetail(value)); // ContactDetail 1402 return value; 1403 case -1724546052: // description 1404 this.description = castToMarkdown(value); // MarkdownType 1405 return value; 1406 case -220463842: // purpose 1407 this.purpose = castToMarkdown(value); // MarkdownType 1408 return value; 1409 case -669707736: // useContext 1410 this.getUseContext().add(castToUsageContext(value)); // UsageContext 1411 return value; 1412 case -507075711: // jurisdiction 1413 this.getJurisdiction().add(castToCodeableConcept(value)); // CodeableConcept 1414 return value; 1415 case 3059181: // code 1416 value = new CompartmentTypeEnumFactory().fromType(castToCode(value)); 1417 this.code = (Enumeration) value; // Enumeration<CompartmentType> 1418 return value; 1419 case -906336856: // search 1420 this.search = castToBoolean(value); // BooleanType 1421 return value; 1422 case -341064690: // resource 1423 this.getResource().add((CompartmentDefinitionResourceComponent) value); // CompartmentDefinitionResourceComponent 1424 return value; 1425 default: return super.setProperty(hash, name, value); 1426 } 1427 1428 } 1429 1430 @Override 1431 public Base setProperty(String name, Base value) throws FHIRException { 1432 if (name.equals("url")) { 1433 this.url = castToUri(value); // UriType 1434 } else if (name.equals("name")) { 1435 this.name = castToString(value); // StringType 1436 } else if (name.equals("title")) { 1437 this.title = castToString(value); // StringType 1438 } else if (name.equals("status")) { 1439 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 1440 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 1441 } else if (name.equals("experimental")) { 1442 this.experimental = castToBoolean(value); // BooleanType 1443 } else if (name.equals("date")) { 1444 this.date = castToDateTime(value); // DateTimeType 1445 } else if (name.equals("publisher")) { 1446 this.publisher = castToString(value); // StringType 1447 } else if (name.equals("contact")) { 1448 this.getContact().add(castToContactDetail(value)); 1449 } else if (name.equals("description")) { 1450 this.description = castToMarkdown(value); // MarkdownType 1451 } else if (name.equals("purpose")) { 1452 this.purpose = castToMarkdown(value); // MarkdownType 1453 } else if (name.equals("useContext")) { 1454 this.getUseContext().add(castToUsageContext(value)); 1455 } else if (name.equals("jurisdiction")) { 1456 this.getJurisdiction().add(castToCodeableConcept(value)); 1457 } else if (name.equals("code")) { 1458 value = new CompartmentTypeEnumFactory().fromType(castToCode(value)); 1459 this.code = (Enumeration) value; // Enumeration<CompartmentType> 1460 } else if (name.equals("search")) { 1461 this.search = castToBoolean(value); // BooleanType 1462 } else if (name.equals("resource")) { 1463 this.getResource().add((CompartmentDefinitionResourceComponent) value); 1464 } else 1465 return super.setProperty(name, value); 1466 return value; 1467 } 1468 1469 @Override 1470 public Base makeProperty(int hash, String name) throws FHIRException { 1471 switch (hash) { 1472 case 116079: return getUrlElement(); 1473 case 3373707: return getNameElement(); 1474 case 110371416: return getTitleElement(); 1475 case -892481550: return getStatusElement(); 1476 case -404562712: return getExperimentalElement(); 1477 case 3076014: return getDateElement(); 1478 case 1447404028: return getPublisherElement(); 1479 case 951526432: return addContact(); 1480 case -1724546052: return getDescriptionElement(); 1481 case -220463842: return getPurposeElement(); 1482 case -669707736: return addUseContext(); 1483 case -507075711: return addJurisdiction(); 1484 case 3059181: return getCodeElement(); 1485 case -906336856: return getSearchElement(); 1486 case -341064690: return addResource(); 1487 default: return super.makeProperty(hash, name); 1488 } 1489 1490 } 1491 1492 @Override 1493 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1494 switch (hash) { 1495 case 116079: /*url*/ return new String[] {"uri"}; 1496 case 3373707: /*name*/ return new String[] {"string"}; 1497 case 110371416: /*title*/ return new String[] {"string"}; 1498 case -892481550: /*status*/ return new String[] {"code"}; 1499 case -404562712: /*experimental*/ return new String[] {"boolean"}; 1500 case 3076014: /*date*/ return new String[] {"dateTime"}; 1501 case 1447404028: /*publisher*/ return new String[] {"string"}; 1502 case 951526432: /*contact*/ return new String[] {"ContactDetail"}; 1503 case -1724546052: /*description*/ return new String[] {"markdown"}; 1504 case -220463842: /*purpose*/ return new String[] {"markdown"}; 1505 case -669707736: /*useContext*/ return new String[] {"UsageContext"}; 1506 case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"}; 1507 case 3059181: /*code*/ return new String[] {"code"}; 1508 case -906336856: /*search*/ return new String[] {"boolean"}; 1509 case -341064690: /*resource*/ return new String[] {}; 1510 default: return super.getTypesForProperty(hash, name); 1511 } 1512 1513 } 1514 1515 @Override 1516 public Base addChild(String name) throws FHIRException { 1517 if (name.equals("url")) { 1518 throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.url"); 1519 } 1520 else if (name.equals("name")) { 1521 throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.name"); 1522 } 1523 else if (name.equals("title")) { 1524 throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.title"); 1525 } 1526 else if (name.equals("status")) { 1527 throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.status"); 1528 } 1529 else if (name.equals("experimental")) { 1530 throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.experimental"); 1531 } 1532 else if (name.equals("date")) { 1533 throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.date"); 1534 } 1535 else if (name.equals("publisher")) { 1536 throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.publisher"); 1537 } 1538 else if (name.equals("contact")) { 1539 return addContact(); 1540 } 1541 else if (name.equals("description")) { 1542 throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.description"); 1543 } 1544 else if (name.equals("purpose")) { 1545 throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.purpose"); 1546 } 1547 else if (name.equals("useContext")) { 1548 return addUseContext(); 1549 } 1550 else if (name.equals("jurisdiction")) { 1551 return addJurisdiction(); 1552 } 1553 else if (name.equals("code")) { 1554 throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.code"); 1555 } 1556 else if (name.equals("search")) { 1557 throw new FHIRException("Cannot call addChild on a primitive type CompartmentDefinition.search"); 1558 } 1559 else if (name.equals("resource")) { 1560 return addResource(); 1561 } 1562 else 1563 return super.addChild(name); 1564 } 1565 1566 public String fhirType() { 1567 return "CompartmentDefinition"; 1568 1569 } 1570 1571 public CompartmentDefinition copy() { 1572 CompartmentDefinition dst = new CompartmentDefinition(); 1573 copyValues(dst); 1574 dst.url = url == null ? null : url.copy(); 1575 dst.name = name == null ? null : name.copy(); 1576 dst.title = title == null ? null : title.copy(); 1577 dst.status = status == null ? null : status.copy(); 1578 dst.experimental = experimental == null ? null : experimental.copy(); 1579 dst.date = date == null ? null : date.copy(); 1580 dst.publisher = publisher == null ? null : publisher.copy(); 1581 if (contact != null) { 1582 dst.contact = new ArrayList<ContactDetail>(); 1583 for (ContactDetail i : contact) 1584 dst.contact.add(i.copy()); 1585 }; 1586 dst.description = description == null ? null : description.copy(); 1587 dst.purpose = purpose == null ? null : purpose.copy(); 1588 if (useContext != null) { 1589 dst.useContext = new ArrayList<UsageContext>(); 1590 for (UsageContext i : useContext) 1591 dst.useContext.add(i.copy()); 1592 }; 1593 if (jurisdiction != null) { 1594 dst.jurisdiction = new ArrayList<CodeableConcept>(); 1595 for (CodeableConcept i : jurisdiction) 1596 dst.jurisdiction.add(i.copy()); 1597 }; 1598 dst.code = code == null ? null : code.copy(); 1599 dst.search = search == null ? null : search.copy(); 1600 if (resource != null) { 1601 dst.resource = new ArrayList<CompartmentDefinitionResourceComponent>(); 1602 for (CompartmentDefinitionResourceComponent i : resource) 1603 dst.resource.add(i.copy()); 1604 }; 1605 return dst; 1606 } 1607 1608 protected CompartmentDefinition typedCopy() { 1609 return copy(); 1610 } 1611 1612 @Override 1613 public boolean equalsDeep(Base other_) { 1614 if (!super.equalsDeep(other_)) 1615 return false; 1616 if (!(other_ instanceof CompartmentDefinition)) 1617 return false; 1618 CompartmentDefinition o = (CompartmentDefinition) other_; 1619 return compareDeep(purpose, o.purpose, true) && compareDeep(code, o.code, true) && compareDeep(search, o.search, true) 1620 && compareDeep(resource, o.resource, true); 1621 } 1622 1623 @Override 1624 public boolean equalsShallow(Base other_) { 1625 if (!super.equalsShallow(other_)) 1626 return false; 1627 if (!(other_ instanceof CompartmentDefinition)) 1628 return false; 1629 CompartmentDefinition o = (CompartmentDefinition) other_; 1630 return compareValues(purpose, o.purpose, true) && compareValues(code, o.code, true) && compareValues(search, o.search, true) 1631 ; 1632 } 1633 1634 public boolean isEmpty() { 1635 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(purpose, code, search, resource 1636 ); 1637 } 1638 1639 @Override 1640 public ResourceType getResourceType() { 1641 return ResourceType.CompartmentDefinition; 1642 } 1643 1644 /** 1645 * Search parameter: <b>date</b> 1646 * <p> 1647 * Description: <b>The compartment definition publication date</b><br> 1648 * Type: <b>date</b><br> 1649 * Path: <b>CompartmentDefinition.date</b><br> 1650 * </p> 1651 */ 1652 @SearchParamDefinition(name="date", path="CompartmentDefinition.date", description="The compartment definition publication date", type="date" ) 1653 public static final String SP_DATE = "date"; 1654 /** 1655 * <b>Fluent Client</b> search parameter constant for <b>date</b> 1656 * <p> 1657 * Description: <b>The compartment definition publication date</b><br> 1658 * Type: <b>date</b><br> 1659 * Path: <b>CompartmentDefinition.date</b><br> 1660 * </p> 1661 */ 1662 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 1663 1664 /** 1665 * Search parameter: <b>code</b> 1666 * <p> 1667 * Description: <b>Patient | Encounter | RelatedPerson | Practitioner | Device</b><br> 1668 * Type: <b>token</b><br> 1669 * Path: <b>CompartmentDefinition.code</b><br> 1670 * </p> 1671 */ 1672 @SearchParamDefinition(name="code", path="CompartmentDefinition.code", description="Patient | Encounter | RelatedPerson | Practitioner | Device", type="token" ) 1673 public static final String SP_CODE = "code"; 1674 /** 1675 * <b>Fluent Client</b> search parameter constant for <b>code</b> 1676 * <p> 1677 * Description: <b>Patient | Encounter | RelatedPerson | Practitioner | Device</b><br> 1678 * Type: <b>token</b><br> 1679 * Path: <b>CompartmentDefinition.code</b><br> 1680 * </p> 1681 */ 1682 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); 1683 1684 /** 1685 * Search parameter: <b>resource</b> 1686 * <p> 1687 * Description: <b>Name of resource type</b><br> 1688 * Type: <b>token</b><br> 1689 * Path: <b>CompartmentDefinition.resource.code</b><br> 1690 * </p> 1691 */ 1692 @SearchParamDefinition(name="resource", path="CompartmentDefinition.resource.code", description="Name of resource type", type="token" ) 1693 public static final String SP_RESOURCE = "resource"; 1694 /** 1695 * <b>Fluent Client</b> search parameter constant for <b>resource</b> 1696 * <p> 1697 * Description: <b>Name of resource type</b><br> 1698 * Type: <b>token</b><br> 1699 * Path: <b>CompartmentDefinition.resource.code</b><br> 1700 * </p> 1701 */ 1702 public static final ca.uhn.fhir.rest.gclient.TokenClientParam RESOURCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RESOURCE); 1703 1704 /** 1705 * Search parameter: <b>jurisdiction</b> 1706 * <p> 1707 * Description: <b>Intended jurisdiction for the compartment definition</b><br> 1708 * Type: <b>token</b><br> 1709 * Path: <b>CompartmentDefinition.jurisdiction</b><br> 1710 * </p> 1711 */ 1712 @SearchParamDefinition(name="jurisdiction", path="CompartmentDefinition.jurisdiction", description="Intended jurisdiction for the compartment definition", type="token" ) 1713 public static final String SP_JURISDICTION = "jurisdiction"; 1714 /** 1715 * <b>Fluent Client</b> search parameter constant for <b>jurisdiction</b> 1716 * <p> 1717 * Description: <b>Intended jurisdiction for the compartment definition</b><br> 1718 * Type: <b>token</b><br> 1719 * Path: <b>CompartmentDefinition.jurisdiction</b><br> 1720 * </p> 1721 */ 1722 public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION); 1723 1724 /** 1725 * Search parameter: <b>name</b> 1726 * <p> 1727 * Description: <b>Computationally friendly name of the compartment definition</b><br> 1728 * Type: <b>string</b><br> 1729 * Path: <b>CompartmentDefinition.name</b><br> 1730 * </p> 1731 */ 1732 @SearchParamDefinition(name="name", path="CompartmentDefinition.name", description="Computationally friendly name of the compartment definition", type="string" ) 1733 public static final String SP_NAME = "name"; 1734 /** 1735 * <b>Fluent Client</b> search parameter constant for <b>name</b> 1736 * <p> 1737 * Description: <b>Computationally friendly name of the compartment definition</b><br> 1738 * Type: <b>string</b><br> 1739 * Path: <b>CompartmentDefinition.name</b><br> 1740 * </p> 1741 */ 1742 public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); 1743 1744 /** 1745 * Search parameter: <b>description</b> 1746 * <p> 1747 * Description: <b>The description of the compartment definition</b><br> 1748 * Type: <b>string</b><br> 1749 * Path: <b>CompartmentDefinition.description</b><br> 1750 * </p> 1751 */ 1752 @SearchParamDefinition(name="description", path="CompartmentDefinition.description", description="The description of the compartment definition", type="string" ) 1753 public static final String SP_DESCRIPTION = "description"; 1754 /** 1755 * <b>Fluent Client</b> search parameter constant for <b>description</b> 1756 * <p> 1757 * Description: <b>The description of the compartment definition</b><br> 1758 * Type: <b>string</b><br> 1759 * Path: <b>CompartmentDefinition.description</b><br> 1760 * </p> 1761 */ 1762 public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); 1763 1764 /** 1765 * Search parameter: <b>publisher</b> 1766 * <p> 1767 * Description: <b>Name of the publisher of the compartment definition</b><br> 1768 * Type: <b>string</b><br> 1769 * Path: <b>CompartmentDefinition.publisher</b><br> 1770 * </p> 1771 */ 1772 @SearchParamDefinition(name="publisher", path="CompartmentDefinition.publisher", description="Name of the publisher of the compartment definition", type="string" ) 1773 public static final String SP_PUBLISHER = "publisher"; 1774 /** 1775 * <b>Fluent Client</b> search parameter constant for <b>publisher</b> 1776 * <p> 1777 * Description: <b>Name of the publisher of the compartment definition</b><br> 1778 * Type: <b>string</b><br> 1779 * Path: <b>CompartmentDefinition.publisher</b><br> 1780 * </p> 1781 */ 1782 public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); 1783 1784 /** 1785 * Search parameter: <b>title</b> 1786 * <p> 1787 * Description: <b>The human-friendly name of the compartment definition</b><br> 1788 * Type: <b>string</b><br> 1789 * Path: <b>CompartmentDefinition.title</b><br> 1790 * </p> 1791 */ 1792 @SearchParamDefinition(name="title", path="CompartmentDefinition.title", description="The human-friendly name of the compartment definition", type="string" ) 1793 public static final String SP_TITLE = "title"; 1794 /** 1795 * <b>Fluent Client</b> search parameter constant for <b>title</b> 1796 * <p> 1797 * Description: <b>The human-friendly name of the compartment definition</b><br> 1798 * Type: <b>string</b><br> 1799 * Path: <b>CompartmentDefinition.title</b><br> 1800 * </p> 1801 */ 1802 public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE); 1803 1804 /** 1805 * Search parameter: <b>url</b> 1806 * <p> 1807 * Description: <b>The uri that identifies the compartment definition</b><br> 1808 * Type: <b>uri</b><br> 1809 * Path: <b>CompartmentDefinition.url</b><br> 1810 * </p> 1811 */ 1812 @SearchParamDefinition(name="url", path="CompartmentDefinition.url", description="The uri that identifies the compartment definition", type="uri" ) 1813 public static final String SP_URL = "url"; 1814 /** 1815 * <b>Fluent Client</b> search parameter constant for <b>url</b> 1816 * <p> 1817 * Description: <b>The uri that identifies the compartment definition</b><br> 1818 * Type: <b>uri</b><br> 1819 * Path: <b>CompartmentDefinition.url</b><br> 1820 * </p> 1821 */ 1822 public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL); 1823 1824 /** 1825 * Search parameter: <b>status</b> 1826 * <p> 1827 * Description: <b>The current status of the compartment definition</b><br> 1828 * Type: <b>token</b><br> 1829 * Path: <b>CompartmentDefinition.status</b><br> 1830 * </p> 1831 */ 1832 @SearchParamDefinition(name="status", path="CompartmentDefinition.status", description="The current status of the compartment definition", type="token" ) 1833 public static final String SP_STATUS = "status"; 1834 /** 1835 * <b>Fluent Client</b> search parameter constant for <b>status</b> 1836 * <p> 1837 * Description: <b>The current status of the compartment definition</b><br> 1838 * Type: <b>token</b><br> 1839 * Path: <b>CompartmentDefinition.status</b><br> 1840 * </p> 1841 */ 1842 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 1843 1844 1845} 1846