001package org.hl7.fhir.r5.model; 002 003/*- 004 * #%L 005 * org.hl7.fhir.r5 006 * %% 007 * Copyright (C) 2014 - 2019 Health Level 7 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023/* 024 Copyright (c) 2011+, HL7, Inc. 025 All rights reserved. 026 027 Redistribution and use in source and binary forms, with or without modification, 028 are permitted provided that the following conditions are met: 029 030 * Redistributions of source code must retain the above copyright notice, this 031 list of conditions and the following disclaimer. 032 * Redistributions in binary form must reproduce the above copyright notice, 033 this list of conditions and the following disclaimer in the documentation 034 and/or other materials provided with the distribution. 035 * Neither the name of HL7 nor the names of its contributors may be used to 036 endorse or promote products derived from this software without specific 037 prior written permission. 038 039 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 040 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 041 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 042 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 043 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 044 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 045 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 046 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 047 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 048 POSSIBILITY OF SUCH DAMAGE. 049 050*/ 051 052// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0 053import java.util.ArrayList; 054import java.util.Date; 055import java.util.List; 056import org.hl7.fhir.exceptions.FHIRException; 057import org.hl7.fhir.instance.model.api.ICompositeType; 058 059import org.hl7.fhir.instance.model.api.IBaseDatatypeElement; 060import org.hl7.fhir.utilities.Utilities; 061import org.hl7.fhir.r5.model.Enumerations.*; 062import ca.uhn.fhir.model.api.annotation.ResourceDef; 063import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 064import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 065import ca.uhn.fhir.model.api.annotation.Child; 066import ca.uhn.fhir.model.api.annotation.ChildOrder; 067import ca.uhn.fhir.model.api.annotation.Description; 068import ca.uhn.fhir.model.api.annotation.Block; 069/** 070 * A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a "System" used within the Identifier and Coding data types. 071 */ 072@ResourceDef(name="NamingSystem", profile="http://hl7.org/fhir/StructureDefinition/NamingSystem") 073@ChildOrder(names={"name", "status", "kind", "date", "publisher", "contact", "responsible", "type", "description", "useContext", "jurisdiction", "usage", "uniqueId"}) 074public class NamingSystem extends MetadataResource { 075 076 public enum NamingSystemType { 077 /** 078 * The naming system is used to define concepts and symbols to represent those concepts; e.g. UCUM, LOINC, NDC code, local lab codes, etc. 079 */ 080 CODESYSTEM, 081 /** 082 * The naming system is used to manage identifiers (e.g. license numbers, order numbers, etc.). 083 */ 084 IDENTIFIER, 085 /** 086 * The naming system is used as the root for other identifiers and naming systems. 087 */ 088 ROOT, 089 /** 090 * added to help the parsers with the generic types 091 */ 092 NULL; 093 public static NamingSystemType fromCode(String codeString) throws FHIRException { 094 if (codeString == null || "".equals(codeString)) 095 return null; 096 if ("codesystem".equals(codeString)) 097 return CODESYSTEM; 098 if ("identifier".equals(codeString)) 099 return IDENTIFIER; 100 if ("root".equals(codeString)) 101 return ROOT; 102 if (Configuration.isAcceptInvalidEnums()) 103 return null; 104 else 105 throw new FHIRException("Unknown NamingSystemType code '"+codeString+"'"); 106 } 107 public String toCode() { 108 switch (this) { 109 case CODESYSTEM: return "codesystem"; 110 case IDENTIFIER: return "identifier"; 111 case ROOT: return "root"; 112 default: return "?"; 113 } 114 } 115 public String getSystem() { 116 switch (this) { 117 case CODESYSTEM: return "http://hl7.org/fhir/namingsystem-type"; 118 case IDENTIFIER: return "http://hl7.org/fhir/namingsystem-type"; 119 case ROOT: return "http://hl7.org/fhir/namingsystem-type"; 120 default: return "?"; 121 } 122 } 123 public String getDefinition() { 124 switch (this) { 125 case CODESYSTEM: return "The naming system is used to define concepts and symbols to represent those concepts; e.g. UCUM, LOINC, NDC code, local lab codes, etc."; 126 case IDENTIFIER: return "The naming system is used to manage identifiers (e.g. license numbers, order numbers, etc.)."; 127 case ROOT: return "The naming system is used as the root for other identifiers and naming systems."; 128 default: return "?"; 129 } 130 } 131 public String getDisplay() { 132 switch (this) { 133 case CODESYSTEM: return "Code System"; 134 case IDENTIFIER: return "Identifier"; 135 case ROOT: return "Root"; 136 default: return "?"; 137 } 138 } 139 } 140 141 public static class NamingSystemTypeEnumFactory implements EnumFactory<NamingSystemType> { 142 public NamingSystemType fromCode(String codeString) throws IllegalArgumentException { 143 if (codeString == null || "".equals(codeString)) 144 if (codeString == null || "".equals(codeString)) 145 return null; 146 if ("codesystem".equals(codeString)) 147 return NamingSystemType.CODESYSTEM; 148 if ("identifier".equals(codeString)) 149 return NamingSystemType.IDENTIFIER; 150 if ("root".equals(codeString)) 151 return NamingSystemType.ROOT; 152 throw new IllegalArgumentException("Unknown NamingSystemType code '"+codeString+"'"); 153 } 154 public Enumeration<NamingSystemType> fromType(Base code) throws FHIRException { 155 if (code == null) 156 return null; 157 if (code.isEmpty()) 158 return new Enumeration<NamingSystemType>(this); 159 String codeString = ((PrimitiveType) code).asStringValue(); 160 if (codeString == null || "".equals(codeString)) 161 return null; 162 if ("codesystem".equals(codeString)) 163 return new Enumeration<NamingSystemType>(this, NamingSystemType.CODESYSTEM); 164 if ("identifier".equals(codeString)) 165 return new Enumeration<NamingSystemType>(this, NamingSystemType.IDENTIFIER); 166 if ("root".equals(codeString)) 167 return new Enumeration<NamingSystemType>(this, NamingSystemType.ROOT); 168 throw new FHIRException("Unknown NamingSystemType code '"+codeString+"'"); 169 } 170 public String toCode(NamingSystemType code) { 171 if (code == NamingSystemType.CODESYSTEM) 172 return "codesystem"; 173 if (code == NamingSystemType.IDENTIFIER) 174 return "identifier"; 175 if (code == NamingSystemType.ROOT) 176 return "root"; 177 return "?"; 178 } 179 public String toSystem(NamingSystemType code) { 180 return code.getSystem(); 181 } 182 } 183 184 public enum NamingSystemIdentifierType { 185 /** 186 * An ISO object identifier; e.g. 1.2.3.4.5. 187 */ 188 OID, 189 /** 190 * A universally unique identifier of the form a5afddf4-e880-459b-876e-e4591b0acc11. 191 */ 192 UUID, 193 /** 194 * A uniform resource identifier (ideally a URL - uniform resource locator); e.g. http://unitsofmeasure.org. 195 */ 196 URI, 197 /** 198 * Some other type of unique identifier; e.g. HL7-assigned reserved string such as LN for LOINC. 199 */ 200 OTHER, 201 /** 202 * added to help the parsers with the generic types 203 */ 204 NULL; 205 public static NamingSystemIdentifierType fromCode(String codeString) throws FHIRException { 206 if (codeString == null || "".equals(codeString)) 207 return null; 208 if ("oid".equals(codeString)) 209 return OID; 210 if ("uuid".equals(codeString)) 211 return UUID; 212 if ("uri".equals(codeString)) 213 return URI; 214 if ("other".equals(codeString)) 215 return OTHER; 216 if (Configuration.isAcceptInvalidEnums()) 217 return null; 218 else 219 throw new FHIRException("Unknown NamingSystemIdentifierType code '"+codeString+"'"); 220 } 221 public String toCode() { 222 switch (this) { 223 case OID: return "oid"; 224 case UUID: return "uuid"; 225 case URI: return "uri"; 226 case OTHER: return "other"; 227 default: return "?"; 228 } 229 } 230 public String getSystem() { 231 switch (this) { 232 case OID: return "http://hl7.org/fhir/namingsystem-identifier-type"; 233 case UUID: return "http://hl7.org/fhir/namingsystem-identifier-type"; 234 case URI: return "http://hl7.org/fhir/namingsystem-identifier-type"; 235 case OTHER: return "http://hl7.org/fhir/namingsystem-identifier-type"; 236 default: return "?"; 237 } 238 } 239 public String getDefinition() { 240 switch (this) { 241 case OID: return "An ISO object identifier; e.g. 1.2.3.4.5."; 242 case UUID: return "A universally unique identifier of the form a5afddf4-e880-459b-876e-e4591b0acc11."; 243 case URI: return "A uniform resource identifier (ideally a URL - uniform resource locator); e.g. http://unitsofmeasure.org."; 244 case OTHER: return "Some other type of unique identifier; e.g. HL7-assigned reserved string such as LN for LOINC."; 245 default: return "?"; 246 } 247 } 248 public String getDisplay() { 249 switch (this) { 250 case OID: return "OID"; 251 case UUID: return "UUID"; 252 case URI: return "URI"; 253 case OTHER: return "Other"; 254 default: return "?"; 255 } 256 } 257 } 258 259 public static class NamingSystemIdentifierTypeEnumFactory implements EnumFactory<NamingSystemIdentifierType> { 260 public NamingSystemIdentifierType fromCode(String codeString) throws IllegalArgumentException { 261 if (codeString == null || "".equals(codeString)) 262 if (codeString == null || "".equals(codeString)) 263 return null; 264 if ("oid".equals(codeString)) 265 return NamingSystemIdentifierType.OID; 266 if ("uuid".equals(codeString)) 267 return NamingSystemIdentifierType.UUID; 268 if ("uri".equals(codeString)) 269 return NamingSystemIdentifierType.URI; 270 if ("other".equals(codeString)) 271 return NamingSystemIdentifierType.OTHER; 272 throw new IllegalArgumentException("Unknown NamingSystemIdentifierType code '"+codeString+"'"); 273 } 274 public Enumeration<NamingSystemIdentifierType> fromType(Base code) throws FHIRException { 275 if (code == null) 276 return null; 277 if (code.isEmpty()) 278 return new Enumeration<NamingSystemIdentifierType>(this); 279 String codeString = ((PrimitiveType) code).asStringValue(); 280 if (codeString == null || "".equals(codeString)) 281 return null; 282 if ("oid".equals(codeString)) 283 return new Enumeration<NamingSystemIdentifierType>(this, NamingSystemIdentifierType.OID); 284 if ("uuid".equals(codeString)) 285 return new Enumeration<NamingSystemIdentifierType>(this, NamingSystemIdentifierType.UUID); 286 if ("uri".equals(codeString)) 287 return new Enumeration<NamingSystemIdentifierType>(this, NamingSystemIdentifierType.URI); 288 if ("other".equals(codeString)) 289 return new Enumeration<NamingSystemIdentifierType>(this, NamingSystemIdentifierType.OTHER); 290 throw new FHIRException("Unknown NamingSystemIdentifierType code '"+codeString+"'"); 291 } 292 public String toCode(NamingSystemIdentifierType code) { 293 if (code == NamingSystemIdentifierType.OID) 294 return "oid"; 295 if (code == NamingSystemIdentifierType.UUID) 296 return "uuid"; 297 if (code == NamingSystemIdentifierType.URI) 298 return "uri"; 299 if (code == NamingSystemIdentifierType.OTHER) 300 return "other"; 301 return "?"; 302 } 303 public String toSystem(NamingSystemIdentifierType code) { 304 return code.getSystem(); 305 } 306 } 307 308 @Block() 309 public static class NamingSystemUniqueIdComponent extends BackboneElement implements IBaseBackboneElement { 310 /** 311 * Identifies the unique identifier scheme used for this particular identifier. 312 */ 313 @Child(name = "type", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=true) 314 @Description(shortDefinition="oid | uuid | uri | other", formalDefinition="Identifies the unique identifier scheme used for this particular identifier." ) 315 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/namingsystem-identifier-type") 316 protected Enumeration<NamingSystemIdentifierType> type; 317 318 /** 319 * The string that should be sent over the wire to identify the code system or identifier system. 320 */ 321 @Child(name = "value", type = {StringType.class}, order=2, min=1, max=1, modifier=false, summary=true) 322 @Description(shortDefinition="The unique identifier", formalDefinition="The string that should be sent over the wire to identify the code system or identifier system." ) 323 protected StringType value; 324 325 /** 326 * Indicates whether this identifier is the "preferred" identifier of this type. 327 */ 328 @Child(name = "preferred", type = {BooleanType.class}, order=3, min=0, max=1, modifier=false, summary=false) 329 @Description(shortDefinition="Is this the id that should be used for this type", formalDefinition="Indicates whether this identifier is the \"preferred\" identifier of this type." ) 330 protected BooleanType preferred; 331 332 /** 333 * Notes about the past or intended usage of this identifier. 334 */ 335 @Child(name = "comment", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) 336 @Description(shortDefinition="Notes about identifier usage", formalDefinition="Notes about the past or intended usage of this identifier." ) 337 protected StringType comment; 338 339 /** 340 * Identifies the period of time over which this identifier is considered appropriate to refer to the naming system. Outside of this window, the identifier might be non-deterministic. 341 */ 342 @Child(name = "period", type = {Period.class}, order=5, min=0, max=1, modifier=false, summary=false) 343 @Description(shortDefinition="When is identifier valid?", formalDefinition="Identifies the period of time over which this identifier is considered appropriate to refer to the naming system. Outside of this window, the identifier might be non-deterministic." ) 344 protected Period period; 345 346 private static final long serialVersionUID = -1458889328L; 347 348 /** 349 * Constructor 350 */ 351 public NamingSystemUniqueIdComponent() { 352 super(); 353 } 354 355 /** 356 * Constructor 357 */ 358 public NamingSystemUniqueIdComponent(Enumeration<NamingSystemIdentifierType> type, StringType value) { 359 super(); 360 this.type = type; 361 this.value = value; 362 } 363 364 /** 365 * @return {@link #type} (Identifies the unique identifier scheme used for this particular identifier.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value 366 */ 367 public Enumeration<NamingSystemIdentifierType> getTypeElement() { 368 if (this.type == null) 369 if (Configuration.errorOnAutoCreate()) 370 throw new Error("Attempt to auto-create NamingSystemUniqueIdComponent.type"); 371 else if (Configuration.doAutoCreate()) 372 this.type = new Enumeration<NamingSystemIdentifierType>(new NamingSystemIdentifierTypeEnumFactory()); // bb 373 return this.type; 374 } 375 376 public boolean hasTypeElement() { 377 return this.type != null && !this.type.isEmpty(); 378 } 379 380 public boolean hasType() { 381 return this.type != null && !this.type.isEmpty(); 382 } 383 384 /** 385 * @param value {@link #type} (Identifies the unique identifier scheme used for this particular identifier.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value 386 */ 387 public NamingSystemUniqueIdComponent setTypeElement(Enumeration<NamingSystemIdentifierType> value) { 388 this.type = value; 389 return this; 390 } 391 392 /** 393 * @return Identifies the unique identifier scheme used for this particular identifier. 394 */ 395 public NamingSystemIdentifierType getType() { 396 return this.type == null ? null : this.type.getValue(); 397 } 398 399 /** 400 * @param value Identifies the unique identifier scheme used for this particular identifier. 401 */ 402 public NamingSystemUniqueIdComponent setType(NamingSystemIdentifierType value) { 403 if (this.type == null) 404 this.type = new Enumeration<NamingSystemIdentifierType>(new NamingSystemIdentifierTypeEnumFactory()); 405 this.type.setValue(value); 406 return this; 407 } 408 409 /** 410 * @return {@link #value} (The string that should be sent over the wire to identify the code system or identifier system.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value 411 */ 412 public StringType getValueElement() { 413 if (this.value == null) 414 if (Configuration.errorOnAutoCreate()) 415 throw new Error("Attempt to auto-create NamingSystemUniqueIdComponent.value"); 416 else if (Configuration.doAutoCreate()) 417 this.value = new StringType(); // bb 418 return this.value; 419 } 420 421 public boolean hasValueElement() { 422 return this.value != null && !this.value.isEmpty(); 423 } 424 425 public boolean hasValue() { 426 return this.value != null && !this.value.isEmpty(); 427 } 428 429 /** 430 * @param value {@link #value} (The string that should be sent over the wire to identify the code system or identifier system.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value 431 */ 432 public NamingSystemUniqueIdComponent setValueElement(StringType value) { 433 this.value = value; 434 return this; 435 } 436 437 /** 438 * @return The string that should be sent over the wire to identify the code system or identifier system. 439 */ 440 public String getValue() { 441 return this.value == null ? null : this.value.getValue(); 442 } 443 444 /** 445 * @param value The string that should be sent over the wire to identify the code system or identifier system. 446 */ 447 public NamingSystemUniqueIdComponent setValue(String value) { 448 if (this.value == null) 449 this.value = new StringType(); 450 this.value.setValue(value); 451 return this; 452 } 453 454 /** 455 * @return {@link #preferred} (Indicates whether this identifier is the "preferred" identifier of this type.). This is the underlying object with id, value and extensions. The accessor "getPreferred" gives direct access to the value 456 */ 457 public BooleanType getPreferredElement() { 458 if (this.preferred == null) 459 if (Configuration.errorOnAutoCreate()) 460 throw new Error("Attempt to auto-create NamingSystemUniqueIdComponent.preferred"); 461 else if (Configuration.doAutoCreate()) 462 this.preferred = new BooleanType(); // bb 463 return this.preferred; 464 } 465 466 public boolean hasPreferredElement() { 467 return this.preferred != null && !this.preferred.isEmpty(); 468 } 469 470 public boolean hasPreferred() { 471 return this.preferred != null && !this.preferred.isEmpty(); 472 } 473 474 /** 475 * @param value {@link #preferred} (Indicates whether this identifier is the "preferred" identifier of this type.). This is the underlying object with id, value and extensions. The accessor "getPreferred" gives direct access to the value 476 */ 477 public NamingSystemUniqueIdComponent setPreferredElement(BooleanType value) { 478 this.preferred = value; 479 return this; 480 } 481 482 /** 483 * @return Indicates whether this identifier is the "preferred" identifier of this type. 484 */ 485 public boolean getPreferred() { 486 return this.preferred == null || this.preferred.isEmpty() ? false : this.preferred.getValue(); 487 } 488 489 /** 490 * @param value Indicates whether this identifier is the "preferred" identifier of this type. 491 */ 492 public NamingSystemUniqueIdComponent setPreferred(boolean value) { 493 if (this.preferred == null) 494 this.preferred = new BooleanType(); 495 this.preferred.setValue(value); 496 return this; 497 } 498 499 /** 500 * @return {@link #comment} (Notes about the past or intended usage of this identifier.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value 501 */ 502 public StringType getCommentElement() { 503 if (this.comment == null) 504 if (Configuration.errorOnAutoCreate()) 505 throw new Error("Attempt to auto-create NamingSystemUniqueIdComponent.comment"); 506 else if (Configuration.doAutoCreate()) 507 this.comment = new StringType(); // bb 508 return this.comment; 509 } 510 511 public boolean hasCommentElement() { 512 return this.comment != null && !this.comment.isEmpty(); 513 } 514 515 public boolean hasComment() { 516 return this.comment != null && !this.comment.isEmpty(); 517 } 518 519 /** 520 * @param value {@link #comment} (Notes about the past or intended usage of this identifier.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value 521 */ 522 public NamingSystemUniqueIdComponent setCommentElement(StringType value) { 523 this.comment = value; 524 return this; 525 } 526 527 /** 528 * @return Notes about the past or intended usage of this identifier. 529 */ 530 public String getComment() { 531 return this.comment == null ? null : this.comment.getValue(); 532 } 533 534 /** 535 * @param value Notes about the past or intended usage of this identifier. 536 */ 537 public NamingSystemUniqueIdComponent setComment(String value) { 538 if (Utilities.noString(value)) 539 this.comment = null; 540 else { 541 if (this.comment == null) 542 this.comment = new StringType(); 543 this.comment.setValue(value); 544 } 545 return this; 546 } 547 548 /** 549 * @return {@link #period} (Identifies the period of time over which this identifier is considered appropriate to refer to the naming system. Outside of this window, the identifier might be non-deterministic.) 550 */ 551 public Period getPeriod() { 552 if (this.period == null) 553 if (Configuration.errorOnAutoCreate()) 554 throw new Error("Attempt to auto-create NamingSystemUniqueIdComponent.period"); 555 else if (Configuration.doAutoCreate()) 556 this.period = new Period(); // cc 557 return this.period; 558 } 559 560 public boolean hasPeriod() { 561 return this.period != null && !this.period.isEmpty(); 562 } 563 564 /** 565 * @param value {@link #period} (Identifies the period of time over which this identifier is considered appropriate to refer to the naming system. Outside of this window, the identifier might be non-deterministic.) 566 */ 567 public NamingSystemUniqueIdComponent setPeriod(Period value) { 568 this.period = value; 569 return this; 570 } 571 572 protected void listChildren(List<Property> children) { 573 super.listChildren(children); 574 children.add(new Property("type", "code", "Identifies the unique identifier scheme used for this particular identifier.", 0, 1, type)); 575 children.add(new Property("value", "string", "The string that should be sent over the wire to identify the code system or identifier system.", 0, 1, value)); 576 children.add(new Property("preferred", "boolean", "Indicates whether this identifier is the \"preferred\" identifier of this type.", 0, 1, preferred)); 577 children.add(new Property("comment", "string", "Notes about the past or intended usage of this identifier.", 0, 1, comment)); 578 children.add(new Property("period", "Period", "Identifies the period of time over which this identifier is considered appropriate to refer to the naming system. Outside of this window, the identifier might be non-deterministic.", 0, 1, period)); 579 } 580 581 @Override 582 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 583 switch (_hash) { 584 case 3575610: /*type*/ return new Property("type", "code", "Identifies the unique identifier scheme used for this particular identifier.", 0, 1, type); 585 case 111972721: /*value*/ return new Property("value", "string", "The string that should be sent over the wire to identify the code system or identifier system.", 0, 1, value); 586 case -1294005119: /*preferred*/ return new Property("preferred", "boolean", "Indicates whether this identifier is the \"preferred\" identifier of this type.", 0, 1, preferred); 587 case 950398559: /*comment*/ return new Property("comment", "string", "Notes about the past or intended usage of this identifier.", 0, 1, comment); 588 case -991726143: /*period*/ return new Property("period", "Period", "Identifies the period of time over which this identifier is considered appropriate to refer to the naming system. Outside of this window, the identifier might be non-deterministic.", 0, 1, period); 589 default: return super.getNamedProperty(_hash, _name, _checkValid); 590 } 591 592 } 593 594 @Override 595 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 596 switch (hash) { 597 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration<NamingSystemIdentifierType> 598 case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // StringType 599 case -1294005119: /*preferred*/ return this.preferred == null ? new Base[0] : new Base[] {this.preferred}; // BooleanType 600 case 950398559: /*comment*/ return this.comment == null ? new Base[0] : new Base[] {this.comment}; // StringType 601 case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period 602 default: return super.getProperty(hash, name, checkValid); 603 } 604 605 } 606 607 @Override 608 public Base setProperty(int hash, String name, Base value) throws FHIRException { 609 switch (hash) { 610 case 3575610: // type 611 value = new NamingSystemIdentifierTypeEnumFactory().fromType(castToCode(value)); 612 this.type = (Enumeration) value; // Enumeration<NamingSystemIdentifierType> 613 return value; 614 case 111972721: // value 615 this.value = castToString(value); // StringType 616 return value; 617 case -1294005119: // preferred 618 this.preferred = castToBoolean(value); // BooleanType 619 return value; 620 case 950398559: // comment 621 this.comment = castToString(value); // StringType 622 return value; 623 case -991726143: // period 624 this.period = castToPeriod(value); // Period 625 return value; 626 default: return super.setProperty(hash, name, value); 627 } 628 629 } 630 631 @Override 632 public Base setProperty(String name, Base value) throws FHIRException { 633 if (name.equals("type")) { 634 value = new NamingSystemIdentifierTypeEnumFactory().fromType(castToCode(value)); 635 this.type = (Enumeration) value; // Enumeration<NamingSystemIdentifierType> 636 } else if (name.equals("value")) { 637 this.value = castToString(value); // StringType 638 } else if (name.equals("preferred")) { 639 this.preferred = castToBoolean(value); // BooleanType 640 } else if (name.equals("comment")) { 641 this.comment = castToString(value); // StringType 642 } else if (name.equals("period")) { 643 this.period = castToPeriod(value); // Period 644 } else 645 return super.setProperty(name, value); 646 return value; 647 } 648 649 @Override 650 public Base makeProperty(int hash, String name) throws FHIRException { 651 switch (hash) { 652 case 3575610: return getTypeElement(); 653 case 111972721: return getValueElement(); 654 case -1294005119: return getPreferredElement(); 655 case 950398559: return getCommentElement(); 656 case -991726143: return getPeriod(); 657 default: return super.makeProperty(hash, name); 658 } 659 660 } 661 662 @Override 663 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 664 switch (hash) { 665 case 3575610: /*type*/ return new String[] {"code"}; 666 case 111972721: /*value*/ return new String[] {"string"}; 667 case -1294005119: /*preferred*/ return new String[] {"boolean"}; 668 case 950398559: /*comment*/ return new String[] {"string"}; 669 case -991726143: /*period*/ return new String[] {"Period"}; 670 default: return super.getTypesForProperty(hash, name); 671 } 672 673 } 674 675 @Override 676 public Base addChild(String name) throws FHIRException { 677 if (name.equals("type")) { 678 throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.type"); 679 } 680 else if (name.equals("value")) { 681 throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.value"); 682 } 683 else if (name.equals("preferred")) { 684 throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.preferred"); 685 } 686 else if (name.equals("comment")) { 687 throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.comment"); 688 } 689 else if (name.equals("period")) { 690 this.period = new Period(); 691 return this.period; 692 } 693 else 694 return super.addChild(name); 695 } 696 697 public NamingSystemUniqueIdComponent copy() { 698 NamingSystemUniqueIdComponent dst = new NamingSystemUniqueIdComponent(); 699 copyValues(dst); 700 return dst; 701 } 702 703 public void copyValues(NamingSystemUniqueIdComponent dst) { 704 super.copyValues(dst); 705 dst.type = type == null ? null : type.copy(); 706 dst.value = value == null ? null : value.copy(); 707 dst.preferred = preferred == null ? null : preferred.copy(); 708 dst.comment = comment == null ? null : comment.copy(); 709 dst.period = period == null ? null : period.copy(); 710 } 711 712 @Override 713 public boolean equalsDeep(Base other_) { 714 if (!super.equalsDeep(other_)) 715 return false; 716 if (!(other_ instanceof NamingSystemUniqueIdComponent)) 717 return false; 718 NamingSystemUniqueIdComponent o = (NamingSystemUniqueIdComponent) other_; 719 return compareDeep(type, o.type, true) && compareDeep(value, o.value, true) && compareDeep(preferred, o.preferred, true) 720 && compareDeep(comment, o.comment, true) && compareDeep(period, o.period, true); 721 } 722 723 @Override 724 public boolean equalsShallow(Base other_) { 725 if (!super.equalsShallow(other_)) 726 return false; 727 if (!(other_ instanceof NamingSystemUniqueIdComponent)) 728 return false; 729 NamingSystemUniqueIdComponent o = (NamingSystemUniqueIdComponent) other_; 730 return compareValues(type, o.type, true) && compareValues(value, o.value, true) && compareValues(preferred, o.preferred, true) 731 && compareValues(comment, o.comment, true); 732 } 733 734 public boolean isEmpty() { 735 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, value, preferred, comment 736 , period); 737 } 738 739 public String fhirType() { 740 return "NamingSystem.uniqueId"; 741 742 } 743 744 } 745 746 /** 747 * Indicates the purpose for the naming system - what kinds of things does it make unique? 748 */ 749 @Child(name = "kind", type = {CodeType.class}, order=0, min=1, max=1, modifier=false, summary=true) 750 @Description(shortDefinition="codesystem | identifier | root", formalDefinition="Indicates the purpose for the naming system - what kinds of things does it make unique?" ) 751 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/namingsystem-type") 752 protected Enumeration<NamingSystemType> kind; 753 754 /** 755 * The name of the organization that is responsible for issuing identifiers or codes for this namespace and ensuring their non-collision. 756 */ 757 @Child(name = "responsible", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) 758 @Description(shortDefinition="Who maintains system namespace?", formalDefinition="The name of the organization that is responsible for issuing identifiers or codes for this namespace and ensuring their non-collision." ) 759 protected StringType responsible; 760 761 /** 762 * Categorizes a naming system for easier search by grouping related naming systems. 763 */ 764 @Child(name = "type", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) 765 @Description(shortDefinition="e.g. driver, provider, patient, bank etc.", formalDefinition="Categorizes a naming system for easier search by grouping related naming systems." ) 766 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/identifier-type") 767 protected CodeableConcept type; 768 769 /** 770 * Provides guidance on the use of the namespace, including the handling of formatting characters, use of upper vs. lower case, etc. 771 */ 772 @Child(name = "usage", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) 773 @Description(shortDefinition="How/where is it used", formalDefinition="Provides guidance on the use of the namespace, including the handling of formatting characters, use of upper vs. lower case, etc." ) 774 protected StringType usage; 775 776 /** 777 * Indicates how the system may be identified when referenced in electronic exchange. 778 */ 779 @Child(name = "uniqueId", type = {}, order=4, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 780 @Description(shortDefinition="Unique identifiers used for system", formalDefinition="Indicates how the system may be identified when referenced in electronic exchange." ) 781 protected List<NamingSystemUniqueIdComponent> uniqueId; 782 783 private static final long serialVersionUID = 1686086580L; 784 785 /** 786 * Constructor 787 */ 788 public NamingSystem() { 789 super(); 790 } 791 792 /** 793 * Constructor 794 */ 795 public NamingSystem(StringType name, Enumeration<PublicationStatus> status, Enumeration<NamingSystemType> kind, DateTimeType date) { 796 super(); 797 this.name = name; 798 this.status = status; 799 this.kind = kind; 800 this.date = date; 801 } 802 803 /** 804 * @return {@link #name} (A natural language name identifying the naming system. 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 805 */ 806 public StringType getNameElement() { 807 if (this.name == null) 808 if (Configuration.errorOnAutoCreate()) 809 throw new Error("Attempt to auto-create NamingSystem.name"); 810 else if (Configuration.doAutoCreate()) 811 this.name = new StringType(); // bb 812 return this.name; 813 } 814 815 public boolean hasNameElement() { 816 return this.name != null && !this.name.isEmpty(); 817 } 818 819 public boolean hasName() { 820 return this.name != null && !this.name.isEmpty(); 821 } 822 823 /** 824 * @param value {@link #name} (A natural language name identifying the naming system. 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 825 */ 826 public NamingSystem setNameElement(StringType value) { 827 this.name = value; 828 return this; 829 } 830 831 /** 832 * @return A natural language name identifying the naming system. This name should be usable as an identifier for the module by machine processing applications such as code generation. 833 */ 834 public String getName() { 835 return this.name == null ? null : this.name.getValue(); 836 } 837 838 /** 839 * @param value A natural language name identifying the naming system. This name should be usable as an identifier for the module by machine processing applications such as code generation. 840 */ 841 public NamingSystem setName(String value) { 842 if (this.name == null) 843 this.name = new StringType(); 844 this.name.setValue(value); 845 return this; 846 } 847 848 /** 849 * @return {@link #status} (The status of this naming system. 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 850 */ 851 public Enumeration<PublicationStatus> getStatusElement() { 852 if (this.status == null) 853 if (Configuration.errorOnAutoCreate()) 854 throw new Error("Attempt to auto-create NamingSystem.status"); 855 else if (Configuration.doAutoCreate()) 856 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb 857 return this.status; 858 } 859 860 public boolean hasStatusElement() { 861 return this.status != null && !this.status.isEmpty(); 862 } 863 864 public boolean hasStatus() { 865 return this.status != null && !this.status.isEmpty(); 866 } 867 868 /** 869 * @param value {@link #status} (The status of this naming system. 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 870 */ 871 public NamingSystem setStatusElement(Enumeration<PublicationStatus> value) { 872 this.status = value; 873 return this; 874 } 875 876 /** 877 * @return The status of this naming system. Enables tracking the life-cycle of the content. 878 */ 879 public PublicationStatus getStatus() { 880 return this.status == null ? null : this.status.getValue(); 881 } 882 883 /** 884 * @param value The status of this naming system. Enables tracking the life-cycle of the content. 885 */ 886 public NamingSystem setStatus(PublicationStatus value) { 887 if (this.status == null) 888 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); 889 this.status.setValue(value); 890 return this; 891 } 892 893 /** 894 * @return {@link #kind} (Indicates the purpose for the naming system - what kinds of things does it make unique?). This is the underlying object with id, value and extensions. The accessor "getKind" gives direct access to the value 895 */ 896 public Enumeration<NamingSystemType> getKindElement() { 897 if (this.kind == null) 898 if (Configuration.errorOnAutoCreate()) 899 throw new Error("Attempt to auto-create NamingSystem.kind"); 900 else if (Configuration.doAutoCreate()) 901 this.kind = new Enumeration<NamingSystemType>(new NamingSystemTypeEnumFactory()); // bb 902 return this.kind; 903 } 904 905 public boolean hasKindElement() { 906 return this.kind != null && !this.kind.isEmpty(); 907 } 908 909 public boolean hasKind() { 910 return this.kind != null && !this.kind.isEmpty(); 911 } 912 913 /** 914 * @param value {@link #kind} (Indicates the purpose for the naming system - what kinds of things does it make unique?). This is the underlying object with id, value and extensions. The accessor "getKind" gives direct access to the value 915 */ 916 public NamingSystem setKindElement(Enumeration<NamingSystemType> value) { 917 this.kind = value; 918 return this; 919 } 920 921 /** 922 * @return Indicates the purpose for the naming system - what kinds of things does it make unique? 923 */ 924 public NamingSystemType getKind() { 925 return this.kind == null ? null : this.kind.getValue(); 926 } 927 928 /** 929 * @param value Indicates the purpose for the naming system - what kinds of things does it make unique? 930 */ 931 public NamingSystem setKind(NamingSystemType value) { 932 if (this.kind == null) 933 this.kind = new Enumeration<NamingSystemType>(new NamingSystemTypeEnumFactory()); 934 this.kind.setValue(value); 935 return this; 936 } 937 938 /** 939 * @return {@link #date} (The date (and optionally time) when the naming system was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the naming system changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 940 */ 941 public DateTimeType getDateElement() { 942 if (this.date == null) 943 if (Configuration.errorOnAutoCreate()) 944 throw new Error("Attempt to auto-create NamingSystem.date"); 945 else if (Configuration.doAutoCreate()) 946 this.date = new DateTimeType(); // bb 947 return this.date; 948 } 949 950 public boolean hasDateElement() { 951 return this.date != null && !this.date.isEmpty(); 952 } 953 954 public boolean hasDate() { 955 return this.date != null && !this.date.isEmpty(); 956 } 957 958 /** 959 * @param value {@link #date} (The date (and optionally time) when the naming system was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the naming system changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 960 */ 961 public NamingSystem setDateElement(DateTimeType value) { 962 this.date = value; 963 return this; 964 } 965 966 /** 967 * @return The date (and optionally time) when the naming system was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the naming system changes. 968 */ 969 public Date getDate() { 970 return this.date == null ? null : this.date.getValue(); 971 } 972 973 /** 974 * @param value The date (and optionally time) when the naming system was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the naming system changes. 975 */ 976 public NamingSystem setDate(Date value) { 977 if (this.date == null) 978 this.date = new DateTimeType(); 979 this.date.setValue(value); 980 return this; 981 } 982 983 /** 984 * @return {@link #publisher} (The name of the organization or individual that published the naming system.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 985 */ 986 public StringType getPublisherElement() { 987 if (this.publisher == null) 988 if (Configuration.errorOnAutoCreate()) 989 throw new Error("Attempt to auto-create NamingSystem.publisher"); 990 else if (Configuration.doAutoCreate()) 991 this.publisher = new StringType(); // bb 992 return this.publisher; 993 } 994 995 public boolean hasPublisherElement() { 996 return this.publisher != null && !this.publisher.isEmpty(); 997 } 998 999 public boolean hasPublisher() { 1000 return this.publisher != null && !this.publisher.isEmpty(); 1001 } 1002 1003 /** 1004 * @param value {@link #publisher} (The name of the organization or individual that published the naming system.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 1005 */ 1006 public NamingSystem setPublisherElement(StringType value) { 1007 this.publisher = value; 1008 return this; 1009 } 1010 1011 /** 1012 * @return The name of the organization or individual that published the naming system. 1013 */ 1014 public String getPublisher() { 1015 return this.publisher == null ? null : this.publisher.getValue(); 1016 } 1017 1018 /** 1019 * @param value The name of the organization or individual that published the naming system. 1020 */ 1021 public NamingSystem setPublisher(String value) { 1022 if (Utilities.noString(value)) 1023 this.publisher = null; 1024 else { 1025 if (this.publisher == null) 1026 this.publisher = new StringType(); 1027 this.publisher.setValue(value); 1028 } 1029 return this; 1030 } 1031 1032 /** 1033 * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.) 1034 */ 1035 public List<ContactDetail> getContact() { 1036 if (this.contact == null) 1037 this.contact = new ArrayList<ContactDetail>(); 1038 return this.contact; 1039 } 1040 1041 /** 1042 * @return Returns a reference to <code>this</code> for easy method chaining 1043 */ 1044 public NamingSystem setContact(List<ContactDetail> theContact) { 1045 this.contact = theContact; 1046 return this; 1047 } 1048 1049 public boolean hasContact() { 1050 if (this.contact == null) 1051 return false; 1052 for (ContactDetail item : this.contact) 1053 if (!item.isEmpty()) 1054 return true; 1055 return false; 1056 } 1057 1058 public ContactDetail addContact() { //3 1059 ContactDetail t = new ContactDetail(); 1060 if (this.contact == null) 1061 this.contact = new ArrayList<ContactDetail>(); 1062 this.contact.add(t); 1063 return t; 1064 } 1065 1066 public NamingSystem addContact(ContactDetail t) { //3 1067 if (t == null) 1068 return this; 1069 if (this.contact == null) 1070 this.contact = new ArrayList<ContactDetail>(); 1071 this.contact.add(t); 1072 return this; 1073 } 1074 1075 /** 1076 * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist 1077 */ 1078 public ContactDetail getContactFirstRep() { 1079 if (getContact().isEmpty()) { 1080 addContact(); 1081 } 1082 return getContact().get(0); 1083 } 1084 1085 /** 1086 * @return {@link #responsible} (The name of the organization that is responsible for issuing identifiers or codes for this namespace and ensuring their non-collision.). This is the underlying object with id, value and extensions. The accessor "getResponsible" gives direct access to the value 1087 */ 1088 public StringType getResponsibleElement() { 1089 if (this.responsible == null) 1090 if (Configuration.errorOnAutoCreate()) 1091 throw new Error("Attempt to auto-create NamingSystem.responsible"); 1092 else if (Configuration.doAutoCreate()) 1093 this.responsible = new StringType(); // bb 1094 return this.responsible; 1095 } 1096 1097 public boolean hasResponsibleElement() { 1098 return this.responsible != null && !this.responsible.isEmpty(); 1099 } 1100 1101 public boolean hasResponsible() { 1102 return this.responsible != null && !this.responsible.isEmpty(); 1103 } 1104 1105 /** 1106 * @param value {@link #responsible} (The name of the organization that is responsible for issuing identifiers or codes for this namespace and ensuring their non-collision.). This is the underlying object with id, value and extensions. The accessor "getResponsible" gives direct access to the value 1107 */ 1108 public NamingSystem setResponsibleElement(StringType value) { 1109 this.responsible = value; 1110 return this; 1111 } 1112 1113 /** 1114 * @return The name of the organization that is responsible for issuing identifiers or codes for this namespace and ensuring their non-collision. 1115 */ 1116 public String getResponsible() { 1117 return this.responsible == null ? null : this.responsible.getValue(); 1118 } 1119 1120 /** 1121 * @param value The name of the organization that is responsible for issuing identifiers or codes for this namespace and ensuring their non-collision. 1122 */ 1123 public NamingSystem setResponsible(String value) { 1124 if (Utilities.noString(value)) 1125 this.responsible = null; 1126 else { 1127 if (this.responsible == null) 1128 this.responsible = new StringType(); 1129 this.responsible.setValue(value); 1130 } 1131 return this; 1132 } 1133 1134 /** 1135 * @return {@link #type} (Categorizes a naming system for easier search by grouping related naming systems.) 1136 */ 1137 public CodeableConcept getType() { 1138 if (this.type == null) 1139 if (Configuration.errorOnAutoCreate()) 1140 throw new Error("Attempt to auto-create NamingSystem.type"); 1141 else if (Configuration.doAutoCreate()) 1142 this.type = new CodeableConcept(); // cc 1143 return this.type; 1144 } 1145 1146 public boolean hasType() { 1147 return this.type != null && !this.type.isEmpty(); 1148 } 1149 1150 /** 1151 * @param value {@link #type} (Categorizes a naming system for easier search by grouping related naming systems.) 1152 */ 1153 public NamingSystem setType(CodeableConcept value) { 1154 this.type = value; 1155 return this; 1156 } 1157 1158 /** 1159 * @return {@link #description} (A free text natural language description of the naming system from a consumer's perspective. Details about what the namespace identifies including scope, granularity, version labeling, etc.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 1160 */ 1161 public MarkdownType getDescriptionElement() { 1162 if (this.description == null) 1163 if (Configuration.errorOnAutoCreate()) 1164 throw new Error("Attempt to auto-create NamingSystem.description"); 1165 else if (Configuration.doAutoCreate()) 1166 this.description = new MarkdownType(); // bb 1167 return this.description; 1168 } 1169 1170 public boolean hasDescriptionElement() { 1171 return this.description != null && !this.description.isEmpty(); 1172 } 1173 1174 public boolean hasDescription() { 1175 return this.description != null && !this.description.isEmpty(); 1176 } 1177 1178 /** 1179 * @param value {@link #description} (A free text natural language description of the naming system from a consumer's perspective. Details about what the namespace identifies including scope, granularity, version labeling, etc.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 1180 */ 1181 public NamingSystem setDescriptionElement(MarkdownType value) { 1182 this.description = value; 1183 return this; 1184 } 1185 1186 /** 1187 * @return A free text natural language description of the naming system from a consumer's perspective. Details about what the namespace identifies including scope, granularity, version labeling, etc. 1188 */ 1189 public String getDescription() { 1190 return this.description == null ? null : this.description.getValue(); 1191 } 1192 1193 /** 1194 * @param value A free text natural language description of the naming system from a consumer's perspective. Details about what the namespace identifies including scope, granularity, version labeling, etc. 1195 */ 1196 public NamingSystem setDescription(String value) { 1197 if (value == null) 1198 this.description = null; 1199 else { 1200 if (this.description == null) 1201 this.description = new MarkdownType(); 1202 this.description.setValue(value); 1203 } 1204 return this; 1205 } 1206 1207 /** 1208 * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate naming system instances.) 1209 */ 1210 public List<UsageContext> getUseContext() { 1211 if (this.useContext == null) 1212 this.useContext = new ArrayList<UsageContext>(); 1213 return this.useContext; 1214 } 1215 1216 /** 1217 * @return Returns a reference to <code>this</code> for easy method chaining 1218 */ 1219 public NamingSystem setUseContext(List<UsageContext> theUseContext) { 1220 this.useContext = theUseContext; 1221 return this; 1222 } 1223 1224 public boolean hasUseContext() { 1225 if (this.useContext == null) 1226 return false; 1227 for (UsageContext item : this.useContext) 1228 if (!item.isEmpty()) 1229 return true; 1230 return false; 1231 } 1232 1233 public UsageContext addUseContext() { //3 1234 UsageContext t = new UsageContext(); 1235 if (this.useContext == null) 1236 this.useContext = new ArrayList<UsageContext>(); 1237 this.useContext.add(t); 1238 return t; 1239 } 1240 1241 public NamingSystem addUseContext(UsageContext t) { //3 1242 if (t == null) 1243 return this; 1244 if (this.useContext == null) 1245 this.useContext = new ArrayList<UsageContext>(); 1246 this.useContext.add(t); 1247 return this; 1248 } 1249 1250 /** 1251 * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist 1252 */ 1253 public UsageContext getUseContextFirstRep() { 1254 if (getUseContext().isEmpty()) { 1255 addUseContext(); 1256 } 1257 return getUseContext().get(0); 1258 } 1259 1260 /** 1261 * @return {@link #jurisdiction} (A legal or geographic region in which the naming system is intended to be used.) 1262 */ 1263 public List<CodeableConcept> getJurisdiction() { 1264 if (this.jurisdiction == null) 1265 this.jurisdiction = new ArrayList<CodeableConcept>(); 1266 return this.jurisdiction; 1267 } 1268 1269 /** 1270 * @return Returns a reference to <code>this</code> for easy method chaining 1271 */ 1272 public NamingSystem setJurisdiction(List<CodeableConcept> theJurisdiction) { 1273 this.jurisdiction = theJurisdiction; 1274 return this; 1275 } 1276 1277 public boolean hasJurisdiction() { 1278 if (this.jurisdiction == null) 1279 return false; 1280 for (CodeableConcept item : this.jurisdiction) 1281 if (!item.isEmpty()) 1282 return true; 1283 return false; 1284 } 1285 1286 public CodeableConcept addJurisdiction() { //3 1287 CodeableConcept t = new CodeableConcept(); 1288 if (this.jurisdiction == null) 1289 this.jurisdiction = new ArrayList<CodeableConcept>(); 1290 this.jurisdiction.add(t); 1291 return t; 1292 } 1293 1294 public NamingSystem addJurisdiction(CodeableConcept t) { //3 1295 if (t == null) 1296 return this; 1297 if (this.jurisdiction == null) 1298 this.jurisdiction = new ArrayList<CodeableConcept>(); 1299 this.jurisdiction.add(t); 1300 return this; 1301 } 1302 1303 /** 1304 * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist 1305 */ 1306 public CodeableConcept getJurisdictionFirstRep() { 1307 if (getJurisdiction().isEmpty()) { 1308 addJurisdiction(); 1309 } 1310 return getJurisdiction().get(0); 1311 } 1312 1313 /** 1314 * @return {@link #usage} (Provides guidance on the use of the namespace, including the handling of formatting characters, use of upper vs. lower case, etc.). This is the underlying object with id, value and extensions. The accessor "getUsage" gives direct access to the value 1315 */ 1316 public StringType getUsageElement() { 1317 if (this.usage == null) 1318 if (Configuration.errorOnAutoCreate()) 1319 throw new Error("Attempt to auto-create NamingSystem.usage"); 1320 else if (Configuration.doAutoCreate()) 1321 this.usage = new StringType(); // bb 1322 return this.usage; 1323 } 1324 1325 public boolean hasUsageElement() { 1326 return this.usage != null && !this.usage.isEmpty(); 1327 } 1328 1329 public boolean hasUsage() { 1330 return this.usage != null && !this.usage.isEmpty(); 1331 } 1332 1333 /** 1334 * @param value {@link #usage} (Provides guidance on the use of the namespace, including the handling of formatting characters, use of upper vs. lower case, etc.). This is the underlying object with id, value and extensions. The accessor "getUsage" gives direct access to the value 1335 */ 1336 public NamingSystem setUsageElement(StringType value) { 1337 this.usage = value; 1338 return this; 1339 } 1340 1341 /** 1342 * @return Provides guidance on the use of the namespace, including the handling of formatting characters, use of upper vs. lower case, etc. 1343 */ 1344 public String getUsage() { 1345 return this.usage == null ? null : this.usage.getValue(); 1346 } 1347 1348 /** 1349 * @param value Provides guidance on the use of the namespace, including the handling of formatting characters, use of upper vs. lower case, etc. 1350 */ 1351 public NamingSystem setUsage(String value) { 1352 if (Utilities.noString(value)) 1353 this.usage = null; 1354 else { 1355 if (this.usage == null) 1356 this.usage = new StringType(); 1357 this.usage.setValue(value); 1358 } 1359 return this; 1360 } 1361 1362 /** 1363 * @return {@link #uniqueId} (Indicates how the system may be identified when referenced in electronic exchange.) 1364 */ 1365 public List<NamingSystemUniqueIdComponent> getUniqueId() { 1366 if (this.uniqueId == null) 1367 this.uniqueId = new ArrayList<NamingSystemUniqueIdComponent>(); 1368 return this.uniqueId; 1369 } 1370 1371 /** 1372 * @return Returns a reference to <code>this</code> for easy method chaining 1373 */ 1374 public NamingSystem setUniqueId(List<NamingSystemUniqueIdComponent> theUniqueId) { 1375 this.uniqueId = theUniqueId; 1376 return this; 1377 } 1378 1379 public boolean hasUniqueId() { 1380 if (this.uniqueId == null) 1381 return false; 1382 for (NamingSystemUniqueIdComponent item : this.uniqueId) 1383 if (!item.isEmpty()) 1384 return true; 1385 return false; 1386 } 1387 1388 public NamingSystemUniqueIdComponent addUniqueId() { //3 1389 NamingSystemUniqueIdComponent t = new NamingSystemUniqueIdComponent(); 1390 if (this.uniqueId == null) 1391 this.uniqueId = new ArrayList<NamingSystemUniqueIdComponent>(); 1392 this.uniqueId.add(t); 1393 return t; 1394 } 1395 1396 public NamingSystem addUniqueId(NamingSystemUniqueIdComponent t) { //3 1397 if (t == null) 1398 return this; 1399 if (this.uniqueId == null) 1400 this.uniqueId = new ArrayList<NamingSystemUniqueIdComponent>(); 1401 this.uniqueId.add(t); 1402 return this; 1403 } 1404 1405 /** 1406 * @return The first repetition of repeating field {@link #uniqueId}, creating it if it does not already exist 1407 */ 1408 public NamingSystemUniqueIdComponent getUniqueIdFirstRep() { 1409 if (getUniqueId().isEmpty()) { 1410 addUniqueId(); 1411 } 1412 return getUniqueId().get(0); 1413 } 1414 1415 protected void listChildren(List<Property> children) { 1416 super.listChildren(children); 1417 children.add(new Property("name", "string", "A natural language name identifying the naming system. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); 1418 children.add(new Property("status", "code", "The status of this naming system. Enables tracking the life-cycle of the content.", 0, 1, status)); 1419 children.add(new Property("kind", "code", "Indicates the purpose for the naming system - what kinds of things does it make unique?", 0, 1, kind)); 1420 children.add(new Property("date", "dateTime", "The date (and optionally time) when the naming system was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the naming system changes.", 0, 1, date)); 1421 children.add(new Property("publisher", "string", "The name of the organization or individual that published the naming system.", 0, 1, publisher)); 1422 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)); 1423 children.add(new Property("responsible", "string", "The name of the organization that is responsible for issuing identifiers or codes for this namespace and ensuring their non-collision.", 0, 1, responsible)); 1424 children.add(new Property("type", "CodeableConcept", "Categorizes a naming system for easier search by grouping related naming systems.", 0, 1, type)); 1425 children.add(new Property("description", "markdown", "A free text natural language description of the naming system from a consumer's perspective. Details about what the namespace identifies including scope, granularity, version labeling, etc.", 0, 1, description)); 1426 children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate naming system instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); 1427 children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the naming system is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction)); 1428 children.add(new Property("usage", "string", "Provides guidance on the use of the namespace, including the handling of formatting characters, use of upper vs. lower case, etc.", 0, 1, usage)); 1429 children.add(new Property("uniqueId", "", "Indicates how the system may be identified when referenced in electronic exchange.", 0, java.lang.Integer.MAX_VALUE, uniqueId)); 1430 } 1431 1432 @Override 1433 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1434 switch (_hash) { 1435 case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the naming system. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); 1436 case -892481550: /*status*/ return new Property("status", "code", "The status of this naming system. Enables tracking the life-cycle of the content.", 0, 1, status); 1437 case 3292052: /*kind*/ return new Property("kind", "code", "Indicates the purpose for the naming system - what kinds of things does it make unique?", 0, 1, kind); 1438 case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the naming system was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the naming system changes.", 0, 1, date); 1439 case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the organization or individual that published the naming system.", 0, 1, publisher); 1440 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); 1441 case 1847674614: /*responsible*/ return new Property("responsible", "string", "The name of the organization that is responsible for issuing identifiers or codes for this namespace and ensuring their non-collision.", 0, 1, responsible); 1442 case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Categorizes a naming system for easier search by grouping related naming systems.", 0, 1, type); 1443 case -1724546052: /*description*/ return new Property("description", "markdown", "A free text natural language description of the naming system from a consumer's perspective. Details about what the namespace identifies including scope, granularity, version labeling, etc.", 0, 1, description); 1444 case -669707736: /*useContext*/ return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate naming system instances.", 0, java.lang.Integer.MAX_VALUE, useContext); 1445 case -507075711: /*jurisdiction*/ return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the naming system is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction); 1446 case 111574433: /*usage*/ return new Property("usage", "string", "Provides guidance on the use of the namespace, including the handling of formatting characters, use of upper vs. lower case, etc.", 0, 1, usage); 1447 case -294460212: /*uniqueId*/ return new Property("uniqueId", "", "Indicates how the system may be identified when referenced in electronic exchange.", 0, java.lang.Integer.MAX_VALUE, uniqueId); 1448 default: return super.getNamedProperty(_hash, _name, _checkValid); 1449 } 1450 1451 } 1452 1453 @Override 1454 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1455 switch (hash) { 1456 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 1457 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus> 1458 case 3292052: /*kind*/ return this.kind == null ? new Base[0] : new Base[] {this.kind}; // Enumeration<NamingSystemType> 1459 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 1460 case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType 1461 case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail 1462 case 1847674614: /*responsible*/ return this.responsible == null ? new Base[0] : new Base[] {this.responsible}; // StringType 1463 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept 1464 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType 1465 case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext 1466 case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept 1467 case 111574433: /*usage*/ return this.usage == null ? new Base[0] : new Base[] {this.usage}; // StringType 1468 case -294460212: /*uniqueId*/ return this.uniqueId == null ? new Base[0] : this.uniqueId.toArray(new Base[this.uniqueId.size()]); // NamingSystemUniqueIdComponent 1469 default: return super.getProperty(hash, name, checkValid); 1470 } 1471 1472 } 1473 1474 @Override 1475 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1476 switch (hash) { 1477 case 3373707: // name 1478 this.name = castToString(value); // StringType 1479 return value; 1480 case -892481550: // status 1481 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 1482 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 1483 return value; 1484 case 3292052: // kind 1485 value = new NamingSystemTypeEnumFactory().fromType(castToCode(value)); 1486 this.kind = (Enumeration) value; // Enumeration<NamingSystemType> 1487 return value; 1488 case 3076014: // date 1489 this.date = castToDateTime(value); // DateTimeType 1490 return value; 1491 case 1447404028: // publisher 1492 this.publisher = castToString(value); // StringType 1493 return value; 1494 case 951526432: // contact 1495 this.getContact().add(castToContactDetail(value)); // ContactDetail 1496 return value; 1497 case 1847674614: // responsible 1498 this.responsible = castToString(value); // StringType 1499 return value; 1500 case 3575610: // type 1501 this.type = castToCodeableConcept(value); // CodeableConcept 1502 return value; 1503 case -1724546052: // description 1504 this.description = castToMarkdown(value); // MarkdownType 1505 return value; 1506 case -669707736: // useContext 1507 this.getUseContext().add(castToUsageContext(value)); // UsageContext 1508 return value; 1509 case -507075711: // jurisdiction 1510 this.getJurisdiction().add(castToCodeableConcept(value)); // CodeableConcept 1511 return value; 1512 case 111574433: // usage 1513 this.usage = castToString(value); // StringType 1514 return value; 1515 case -294460212: // uniqueId 1516 this.getUniqueId().add((NamingSystemUniqueIdComponent) value); // NamingSystemUniqueIdComponent 1517 return value; 1518 default: return super.setProperty(hash, name, value); 1519 } 1520 1521 } 1522 1523 @Override 1524 public Base setProperty(String name, Base value) throws FHIRException { 1525 if (name.equals("name")) { 1526 this.name = castToString(value); // StringType 1527 } else if (name.equals("status")) { 1528 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 1529 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 1530 } else if (name.equals("kind")) { 1531 value = new NamingSystemTypeEnumFactory().fromType(castToCode(value)); 1532 this.kind = (Enumeration) value; // Enumeration<NamingSystemType> 1533 } else if (name.equals("date")) { 1534 this.date = castToDateTime(value); // DateTimeType 1535 } else if (name.equals("publisher")) { 1536 this.publisher = castToString(value); // StringType 1537 } else if (name.equals("contact")) { 1538 this.getContact().add(castToContactDetail(value)); 1539 } else if (name.equals("responsible")) { 1540 this.responsible = castToString(value); // StringType 1541 } else if (name.equals("type")) { 1542 this.type = castToCodeableConcept(value); // CodeableConcept 1543 } else if (name.equals("description")) { 1544 this.description = castToMarkdown(value); // MarkdownType 1545 } else if (name.equals("useContext")) { 1546 this.getUseContext().add(castToUsageContext(value)); 1547 } else if (name.equals("jurisdiction")) { 1548 this.getJurisdiction().add(castToCodeableConcept(value)); 1549 } else if (name.equals("usage")) { 1550 this.usage = castToString(value); // StringType 1551 } else if (name.equals("uniqueId")) { 1552 this.getUniqueId().add((NamingSystemUniqueIdComponent) value); 1553 } else 1554 return super.setProperty(name, value); 1555 return value; 1556 } 1557 1558 @Override 1559 public Base makeProperty(int hash, String name) throws FHIRException { 1560 switch (hash) { 1561 case 3373707: return getNameElement(); 1562 case -892481550: return getStatusElement(); 1563 case 3292052: return getKindElement(); 1564 case 3076014: return getDateElement(); 1565 case 1447404028: return getPublisherElement(); 1566 case 951526432: return addContact(); 1567 case 1847674614: return getResponsibleElement(); 1568 case 3575610: return getType(); 1569 case -1724546052: return getDescriptionElement(); 1570 case -669707736: return addUseContext(); 1571 case -507075711: return addJurisdiction(); 1572 case 111574433: return getUsageElement(); 1573 case -294460212: return addUniqueId(); 1574 default: return super.makeProperty(hash, name); 1575 } 1576 1577 } 1578 1579 @Override 1580 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1581 switch (hash) { 1582 case 3373707: /*name*/ return new String[] {"string"}; 1583 case -892481550: /*status*/ return new String[] {"code"}; 1584 case 3292052: /*kind*/ return new String[] {"code"}; 1585 case 3076014: /*date*/ return new String[] {"dateTime"}; 1586 case 1447404028: /*publisher*/ return new String[] {"string"}; 1587 case 951526432: /*contact*/ return new String[] {"ContactDetail"}; 1588 case 1847674614: /*responsible*/ return new String[] {"string"}; 1589 case 3575610: /*type*/ return new String[] {"CodeableConcept"}; 1590 case -1724546052: /*description*/ return new String[] {"markdown"}; 1591 case -669707736: /*useContext*/ return new String[] {"UsageContext"}; 1592 case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"}; 1593 case 111574433: /*usage*/ return new String[] {"string"}; 1594 case -294460212: /*uniqueId*/ return new String[] {}; 1595 default: return super.getTypesForProperty(hash, name); 1596 } 1597 1598 } 1599 1600 @Override 1601 public Base addChild(String name) throws FHIRException { 1602 if (name.equals("name")) { 1603 throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.name"); 1604 } 1605 else if (name.equals("status")) { 1606 throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.status"); 1607 } 1608 else if (name.equals("kind")) { 1609 throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.kind"); 1610 } 1611 else if (name.equals("date")) { 1612 throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.date"); 1613 } 1614 else if (name.equals("publisher")) { 1615 throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.publisher"); 1616 } 1617 else if (name.equals("contact")) { 1618 return addContact(); 1619 } 1620 else if (name.equals("responsible")) { 1621 throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.responsible"); 1622 } 1623 else if (name.equals("type")) { 1624 this.type = new CodeableConcept(); 1625 return this.type; 1626 } 1627 else if (name.equals("description")) { 1628 throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.description"); 1629 } 1630 else if (name.equals("useContext")) { 1631 return addUseContext(); 1632 } 1633 else if (name.equals("jurisdiction")) { 1634 return addJurisdiction(); 1635 } 1636 else if (name.equals("usage")) { 1637 throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.usage"); 1638 } 1639 else if (name.equals("uniqueId")) { 1640 return addUniqueId(); 1641 } 1642 else 1643 return super.addChild(name); 1644 } 1645 1646 public String fhirType() { 1647 return "NamingSystem"; 1648 1649 } 1650 1651 public NamingSystem copy() { 1652 NamingSystem dst = new NamingSystem(); 1653 copyValues(dst); 1654 return dst; 1655 } 1656 1657 public void copyValues(NamingSystem dst) { 1658 super.copyValues(dst); 1659 dst.name = name == null ? null : name.copy(); 1660 dst.status = status == null ? null : status.copy(); 1661 dst.kind = kind == null ? null : kind.copy(); 1662 dst.date = date == null ? null : date.copy(); 1663 dst.publisher = publisher == null ? null : publisher.copy(); 1664 if (contact != null) { 1665 dst.contact = new ArrayList<ContactDetail>(); 1666 for (ContactDetail i : contact) 1667 dst.contact.add(i.copy()); 1668 }; 1669 dst.responsible = responsible == null ? null : responsible.copy(); 1670 dst.type = type == null ? null : type.copy(); 1671 dst.description = description == null ? null : description.copy(); 1672 if (useContext != null) { 1673 dst.useContext = new ArrayList<UsageContext>(); 1674 for (UsageContext i : useContext) 1675 dst.useContext.add(i.copy()); 1676 }; 1677 if (jurisdiction != null) { 1678 dst.jurisdiction = new ArrayList<CodeableConcept>(); 1679 for (CodeableConcept i : jurisdiction) 1680 dst.jurisdiction.add(i.copy()); 1681 }; 1682 dst.usage = usage == null ? null : usage.copy(); 1683 if (uniqueId != null) { 1684 dst.uniqueId = new ArrayList<NamingSystemUniqueIdComponent>(); 1685 for (NamingSystemUniqueIdComponent i : uniqueId) 1686 dst.uniqueId.add(i.copy()); 1687 }; 1688 } 1689 1690 protected NamingSystem typedCopy() { 1691 return copy(); 1692 } 1693 1694 @Override 1695 public boolean equalsDeep(Base other_) { 1696 if (!super.equalsDeep(other_)) 1697 return false; 1698 if (!(other_ instanceof NamingSystem)) 1699 return false; 1700 NamingSystem o = (NamingSystem) other_; 1701 return compareDeep(kind, o.kind, true) && compareDeep(responsible, o.responsible, true) && compareDeep(type, o.type, true) 1702 && compareDeep(usage, o.usage, true) && compareDeep(uniqueId, o.uniqueId, true); 1703 } 1704 1705 @Override 1706 public boolean equalsShallow(Base other_) { 1707 if (!super.equalsShallow(other_)) 1708 return false; 1709 if (!(other_ instanceof NamingSystem)) 1710 return false; 1711 NamingSystem o = (NamingSystem) other_; 1712 return compareValues(kind, o.kind, true) && compareValues(responsible, o.responsible, true) && compareValues(usage, o.usage, true) 1713 ; 1714 } 1715 1716 public boolean isEmpty() { 1717 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(kind, responsible, type 1718 , usage, uniqueId); 1719 } 1720 1721 @Override 1722 public ResourceType getResourceType() { 1723 return ResourceType.NamingSystem; 1724 } 1725 1726 /** 1727 * Search parameter: <b>date</b> 1728 * <p> 1729 * Description: <b>The naming system publication date</b><br> 1730 * Type: <b>date</b><br> 1731 * Path: <b>NamingSystem.date</b><br> 1732 * </p> 1733 */ 1734 @SearchParamDefinition(name="date", path="NamingSystem.date", description="The naming system publication date", type="date" ) 1735 public static final String SP_DATE = "date"; 1736 /** 1737 * <b>Fluent Client</b> search parameter constant for <b>date</b> 1738 * <p> 1739 * Description: <b>The naming system publication date</b><br> 1740 * Type: <b>date</b><br> 1741 * Path: <b>NamingSystem.date</b><br> 1742 * </p> 1743 */ 1744 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 1745 1746 /** 1747 * Search parameter: <b>period</b> 1748 * <p> 1749 * Description: <b>When is identifier valid?</b><br> 1750 * Type: <b>date</b><br> 1751 * Path: <b>NamingSystem.uniqueId.period</b><br> 1752 * </p> 1753 */ 1754 @SearchParamDefinition(name="period", path="NamingSystem.uniqueId.period", description="When is identifier valid?", type="date" ) 1755 public static final String SP_PERIOD = "period"; 1756 /** 1757 * <b>Fluent Client</b> search parameter constant for <b>period</b> 1758 * <p> 1759 * Description: <b>When is identifier valid?</b><br> 1760 * Type: <b>date</b><br> 1761 * Path: <b>NamingSystem.uniqueId.period</b><br> 1762 * </p> 1763 */ 1764 public static final ca.uhn.fhir.rest.gclient.DateClientParam PERIOD = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_PERIOD); 1765 1766 /** 1767 * Search parameter: <b>context-type-value</b> 1768 * <p> 1769 * Description: <b>A use context type and value assigned to the naming system</b><br> 1770 * Type: <b>composite</b><br> 1771 * Path: <b></b><br> 1772 * </p> 1773 */ 1774 @SearchParamDefinition(name="context-type-value", path="NamingSystem.useContext", description="A use context type and value assigned to the naming system", type="composite", compositeOf={"context-type", "context"} ) 1775 public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; 1776 /** 1777 * <b>Fluent Client</b> search parameter constant for <b>context-type-value</b> 1778 * <p> 1779 * Description: <b>A use context type and value assigned to the naming system</b><br> 1780 * Type: <b>composite</b><br> 1781 * Path: <b></b><br> 1782 * </p> 1783 */ 1784 public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam> CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam>(SP_CONTEXT_TYPE_VALUE); 1785 1786 /** 1787 * Search parameter: <b>kind</b> 1788 * <p> 1789 * Description: <b>codesystem | identifier | root</b><br> 1790 * Type: <b>token</b><br> 1791 * Path: <b>NamingSystem.kind</b><br> 1792 * </p> 1793 */ 1794 @SearchParamDefinition(name="kind", path="NamingSystem.kind", description="codesystem | identifier | root", type="token" ) 1795 public static final String SP_KIND = "kind"; 1796 /** 1797 * <b>Fluent Client</b> search parameter constant for <b>kind</b> 1798 * <p> 1799 * Description: <b>codesystem | identifier | root</b><br> 1800 * Type: <b>token</b><br> 1801 * Path: <b>NamingSystem.kind</b><br> 1802 * </p> 1803 */ 1804 public static final ca.uhn.fhir.rest.gclient.TokenClientParam KIND = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_KIND); 1805 1806 /** 1807 * Search parameter: <b>jurisdiction</b> 1808 * <p> 1809 * Description: <b>Intended jurisdiction for the naming system</b><br> 1810 * Type: <b>token</b><br> 1811 * Path: <b>NamingSystem.jurisdiction</b><br> 1812 * </p> 1813 */ 1814 @SearchParamDefinition(name="jurisdiction", path="NamingSystem.jurisdiction", description="Intended jurisdiction for the naming system", type="token" ) 1815 public static final String SP_JURISDICTION = "jurisdiction"; 1816 /** 1817 * <b>Fluent Client</b> search parameter constant for <b>jurisdiction</b> 1818 * <p> 1819 * Description: <b>Intended jurisdiction for the naming system</b><br> 1820 * Type: <b>token</b><br> 1821 * Path: <b>NamingSystem.jurisdiction</b><br> 1822 * </p> 1823 */ 1824 public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION); 1825 1826 /** 1827 * Search parameter: <b>description</b> 1828 * <p> 1829 * Description: <b>The description of the naming system</b><br> 1830 * Type: <b>string</b><br> 1831 * Path: <b>NamingSystem.description</b><br> 1832 * </p> 1833 */ 1834 @SearchParamDefinition(name="description", path="NamingSystem.description", description="The description of the naming system", type="string" ) 1835 public static final String SP_DESCRIPTION = "description"; 1836 /** 1837 * <b>Fluent Client</b> search parameter constant for <b>description</b> 1838 * <p> 1839 * Description: <b>The description of the naming system</b><br> 1840 * Type: <b>string</b><br> 1841 * Path: <b>NamingSystem.description</b><br> 1842 * </p> 1843 */ 1844 public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); 1845 1846 /** 1847 * Search parameter: <b>context-type</b> 1848 * <p> 1849 * Description: <b>A type of use context assigned to the naming system</b><br> 1850 * Type: <b>token</b><br> 1851 * Path: <b>NamingSystem.useContext.code</b><br> 1852 * </p> 1853 */ 1854 @SearchParamDefinition(name="context-type", path="NamingSystem.useContext.code", description="A type of use context assigned to the naming system", type="token" ) 1855 public static final String SP_CONTEXT_TYPE = "context-type"; 1856 /** 1857 * <b>Fluent Client</b> search parameter constant for <b>context-type</b> 1858 * <p> 1859 * Description: <b>A type of use context assigned to the naming system</b><br> 1860 * Type: <b>token</b><br> 1861 * Path: <b>NamingSystem.useContext.code</b><br> 1862 * </p> 1863 */ 1864 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); 1865 1866 /** 1867 * Search parameter: <b>type</b> 1868 * <p> 1869 * Description: <b>e.g. driver, provider, patient, bank etc.</b><br> 1870 * Type: <b>token</b><br> 1871 * Path: <b>NamingSystem.type</b><br> 1872 * </p> 1873 */ 1874 @SearchParamDefinition(name="type", path="NamingSystem.type", description="e.g. driver, provider, patient, bank etc.", type="token" ) 1875 public static final String SP_TYPE = "type"; 1876 /** 1877 * <b>Fluent Client</b> search parameter constant for <b>type</b> 1878 * <p> 1879 * Description: <b>e.g. driver, provider, patient, bank etc.</b><br> 1880 * Type: <b>token</b><br> 1881 * Path: <b>NamingSystem.type</b><br> 1882 * </p> 1883 */ 1884 public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); 1885 1886 /** 1887 * Search parameter: <b>id-type</b> 1888 * <p> 1889 * Description: <b>oid | uuid | uri | other</b><br> 1890 * Type: <b>token</b><br> 1891 * Path: <b>NamingSystem.uniqueId.type</b><br> 1892 * </p> 1893 */ 1894 @SearchParamDefinition(name="id-type", path="NamingSystem.uniqueId.type", description="oid | uuid | uri | other", type="token" ) 1895 public static final String SP_ID_TYPE = "id-type"; 1896 /** 1897 * <b>Fluent Client</b> search parameter constant for <b>id-type</b> 1898 * <p> 1899 * Description: <b>oid | uuid | uri | other</b><br> 1900 * Type: <b>token</b><br> 1901 * Path: <b>NamingSystem.uniqueId.type</b><br> 1902 * </p> 1903 */ 1904 public static final ca.uhn.fhir.rest.gclient.TokenClientParam ID_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ID_TYPE); 1905 1906 /** 1907 * Search parameter: <b>context-quantity</b> 1908 * <p> 1909 * Description: <b>A quantity- or range-valued use context assigned to the naming system</b><br> 1910 * Type: <b>quantity</b><br> 1911 * Path: <b>NamingSystem.useContext.valueQuantity, NamingSystem.useContext.valueRange</b><br> 1912 * </p> 1913 */ 1914 @SearchParamDefinition(name="context-quantity", path="(NamingSystem.useContext.value as Quantity) | (NamingSystem.useContext.value as Range)", description="A quantity- or range-valued use context assigned to the naming system", type="quantity" ) 1915 public static final String SP_CONTEXT_QUANTITY = "context-quantity"; 1916 /** 1917 * <b>Fluent Client</b> search parameter constant for <b>context-quantity</b> 1918 * <p> 1919 * Description: <b>A quantity- or range-valued use context assigned to the naming system</b><br> 1920 * Type: <b>quantity</b><br> 1921 * Path: <b>NamingSystem.useContext.valueQuantity, NamingSystem.useContext.valueRange</b><br> 1922 * </p> 1923 */ 1924 public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); 1925 1926 /** 1927 * Search parameter: <b>responsible</b> 1928 * <p> 1929 * Description: <b>Who maintains system namespace?</b><br> 1930 * Type: <b>string</b><br> 1931 * Path: <b>NamingSystem.responsible</b><br> 1932 * </p> 1933 */ 1934 @SearchParamDefinition(name="responsible", path="NamingSystem.responsible", description="Who maintains system namespace?", type="string" ) 1935 public static final String SP_RESPONSIBLE = "responsible"; 1936 /** 1937 * <b>Fluent Client</b> search parameter constant for <b>responsible</b> 1938 * <p> 1939 * Description: <b>Who maintains system namespace?</b><br> 1940 * Type: <b>string</b><br> 1941 * Path: <b>NamingSystem.responsible</b><br> 1942 * </p> 1943 */ 1944 public static final ca.uhn.fhir.rest.gclient.StringClientParam RESPONSIBLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_RESPONSIBLE); 1945 1946 /** 1947 * Search parameter: <b>contact</b> 1948 * <p> 1949 * Description: <b>Name of an individual to contact</b><br> 1950 * Type: <b>string</b><br> 1951 * Path: <b>NamingSystem.contact.name</b><br> 1952 * </p> 1953 */ 1954 @SearchParamDefinition(name="contact", path="NamingSystem.contact.name", description="Name of an individual to contact", type="string" ) 1955 public static final String SP_CONTACT = "contact"; 1956 /** 1957 * <b>Fluent Client</b> search parameter constant for <b>contact</b> 1958 * <p> 1959 * Description: <b>Name of an individual to contact</b><br> 1960 * Type: <b>string</b><br> 1961 * Path: <b>NamingSystem.contact.name</b><br> 1962 * </p> 1963 */ 1964 public static final ca.uhn.fhir.rest.gclient.StringClientParam CONTACT = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_CONTACT); 1965 1966 /** 1967 * Search parameter: <b>name</b> 1968 * <p> 1969 * Description: <b>Computationally friendly name of the naming system</b><br> 1970 * Type: <b>string</b><br> 1971 * Path: <b>NamingSystem.name</b><br> 1972 * </p> 1973 */ 1974 @SearchParamDefinition(name="name", path="NamingSystem.name", description="Computationally friendly name of the naming system", type="string" ) 1975 public static final String SP_NAME = "name"; 1976 /** 1977 * <b>Fluent Client</b> search parameter constant for <b>name</b> 1978 * <p> 1979 * Description: <b>Computationally friendly name of the naming system</b><br> 1980 * Type: <b>string</b><br> 1981 * Path: <b>NamingSystem.name</b><br> 1982 * </p> 1983 */ 1984 public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); 1985 1986 /** 1987 * Search parameter: <b>context</b> 1988 * <p> 1989 * Description: <b>A use context assigned to the naming system</b><br> 1990 * Type: <b>token</b><br> 1991 * Path: <b>NamingSystem.useContext.valueCodeableConcept</b><br> 1992 * </p> 1993 */ 1994 @SearchParamDefinition(name="context", path="(NamingSystem.useContext.value as CodeableConcept)", description="A use context assigned to the naming system", type="token" ) 1995 public static final String SP_CONTEXT = "context"; 1996 /** 1997 * <b>Fluent Client</b> search parameter constant for <b>context</b> 1998 * <p> 1999 * Description: <b>A use context assigned to the naming system</b><br> 2000 * Type: <b>token</b><br> 2001 * Path: <b>NamingSystem.useContext.valueCodeableConcept</b><br> 2002 * </p> 2003 */ 2004 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); 2005 2006 /** 2007 * Search parameter: <b>publisher</b> 2008 * <p> 2009 * Description: <b>Name of the publisher of the naming system</b><br> 2010 * Type: <b>string</b><br> 2011 * Path: <b>NamingSystem.publisher</b><br> 2012 * </p> 2013 */ 2014 @SearchParamDefinition(name="publisher", path="NamingSystem.publisher", description="Name of the publisher of the naming system", type="string" ) 2015 public static final String SP_PUBLISHER = "publisher"; 2016 /** 2017 * <b>Fluent Client</b> search parameter constant for <b>publisher</b> 2018 * <p> 2019 * Description: <b>Name of the publisher of the naming system</b><br> 2020 * Type: <b>string</b><br> 2021 * Path: <b>NamingSystem.publisher</b><br> 2022 * </p> 2023 */ 2024 public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); 2025 2026 /** 2027 * Search parameter: <b>telecom</b> 2028 * <p> 2029 * Description: <b>Contact details for individual or organization</b><br> 2030 * Type: <b>token</b><br> 2031 * Path: <b>NamingSystem.contact.telecom</b><br> 2032 * </p> 2033 */ 2034 @SearchParamDefinition(name="telecom", path="NamingSystem.contact.telecom", description="Contact details for individual or organization", type="token" ) 2035 public static final String SP_TELECOM = "telecom"; 2036 /** 2037 * <b>Fluent Client</b> search parameter constant for <b>telecom</b> 2038 * <p> 2039 * Description: <b>Contact details for individual or organization</b><br> 2040 * Type: <b>token</b><br> 2041 * Path: <b>NamingSystem.contact.telecom</b><br> 2042 * </p> 2043 */ 2044 public static final ca.uhn.fhir.rest.gclient.TokenClientParam TELECOM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TELECOM); 2045 2046 /** 2047 * Search parameter: <b>value</b> 2048 * <p> 2049 * Description: <b>The unique identifier</b><br> 2050 * Type: <b>string</b><br> 2051 * Path: <b>NamingSystem.uniqueId.value</b><br> 2052 * </p> 2053 */ 2054 @SearchParamDefinition(name="value", path="NamingSystem.uniqueId.value", description="The unique identifier", type="string" ) 2055 public static final String SP_VALUE = "value"; 2056 /** 2057 * <b>Fluent Client</b> search parameter constant for <b>value</b> 2058 * <p> 2059 * Description: <b>The unique identifier</b><br> 2060 * Type: <b>string</b><br> 2061 * Path: <b>NamingSystem.uniqueId.value</b><br> 2062 * </p> 2063 */ 2064 public static final ca.uhn.fhir.rest.gclient.StringClientParam VALUE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_VALUE); 2065 2066 /** 2067 * Search parameter: <b>context-type-quantity</b> 2068 * <p> 2069 * Description: <b>A use context type and quantity- or range-based value assigned to the naming system</b><br> 2070 * Type: <b>composite</b><br> 2071 * Path: <b></b><br> 2072 * </p> 2073 */ 2074 @SearchParamDefinition(name="context-type-quantity", path="NamingSystem.useContext", description="A use context type and quantity- or range-based value assigned to the naming system", type="composite", compositeOf={"context-type", "context-quantity"} ) 2075 public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; 2076 /** 2077 * <b>Fluent Client</b> search parameter constant for <b>context-type-quantity</b> 2078 * <p> 2079 * Description: <b>A use context type and quantity- or range-based value assigned to the naming system</b><br> 2080 * Type: <b>composite</b><br> 2081 * Path: <b></b><br> 2082 * </p> 2083 */ 2084 public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam> CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam>(SP_CONTEXT_TYPE_QUANTITY); 2085 2086 /** 2087 * Search parameter: <b>status</b> 2088 * <p> 2089 * Description: <b>The current status of the naming system</b><br> 2090 * Type: <b>token</b><br> 2091 * Path: <b>NamingSystem.status</b><br> 2092 * </p> 2093 */ 2094 @SearchParamDefinition(name="status", path="NamingSystem.status", description="The current status of the naming system", type="token" ) 2095 public static final String SP_STATUS = "status"; 2096 /** 2097 * <b>Fluent Client</b> search parameter constant for <b>status</b> 2098 * <p> 2099 * Description: <b>The current status of the naming system</b><br> 2100 * Type: <b>token</b><br> 2101 * Path: <b>NamingSystem.status</b><br> 2102 * </p> 2103 */ 2104 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 2105 2106 2107} 2108