001package org.hl7.fhir.dstu3.model; 002 003/* 004 Copyright (c) 2011+, HL7, Inc. 005 All rights reserved. 006 007 Redistribution and use in source and binary forms, with or without modification, 008 are permitted provided that the following conditions are met: 009 010 * Redistributions of source code must retain the above copyright notice, this 011 list of conditions and the following disclaimer. 012 * Redistributions in binary form must reproduce the above copyright notice, 013 this list of conditions and the following disclaimer in the documentation 014 and/or other materials provided with the distribution. 015 * Neither the name of HL7 nor the names of its contributors may be used to 016 endorse or promote products derived from this software without specific 017 prior written permission. 018 019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 020 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 021 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 022 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 023 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 024 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 025 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 026 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 027 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 028 POSSIBILITY OF SUCH DAMAGE. 029 030*/ 031 032// Generated on Fri, Mar 16, 2018 15:21+1100 for FHIR v3.0.1 033 034import java.util.*; 035 036import org.hl7.fhir.utilities.Utilities; 037import org.hl7.fhir.dstu3.model.Enumerations.*; 038import ca.uhn.fhir.model.api.annotation.ResourceDef; 039import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 040import ca.uhn.fhir.model.api.annotation.Child; 041import ca.uhn.fhir.model.api.annotation.ChildOrder; 042import ca.uhn.fhir.model.api.annotation.Description; 043import ca.uhn.fhir.model.api.annotation.Block; 044import org.hl7.fhir.instance.model.api.*; 045import org.hl7.fhir.exceptions.FHIRException; 046import org.hl7.fhir.exceptions.FHIRFormatError; 047/** 048 * A statement of relationships from one set of concepts to one or more other concepts - either code systems or data elements, or classes in class models. 049 */ 050@ResourceDef(name="ConceptMap", profile="http://hl7.org/fhir/StructureDefinition/ConceptMap") 051@ChildOrder(names={"url", "identifier", "version", "name", "title", "status", "experimental", "date", "publisher", "contact", "description", "useContext", "jurisdiction", "purpose", "copyright", "source[x]", "target[x]", "group"}) 052public class ConceptMap extends MetadataResource { 053 054 public enum ConceptMapGroupUnmappedMode { 055 /** 056 * Use the code as provided in the $translate request 057 */ 058 PROVIDED, 059 /** 060 * Use the code explicitly provided in the group.unmapped 061 */ 062 FIXED, 063 /** 064 * Use the map identified by the canonical URL in URL 065 */ 066 OTHERMAP, 067 /** 068 * added to help the parsers with the generic types 069 */ 070 NULL; 071 public static ConceptMapGroupUnmappedMode fromCode(String codeString) throws FHIRException { 072 if (codeString == null || "".equals(codeString)) 073 return null; 074 if ("provided".equals(codeString)) 075 return PROVIDED; 076 if ("fixed".equals(codeString)) 077 return FIXED; 078 if ("other-map".equals(codeString)) 079 return OTHERMAP; 080 if (Configuration.isAcceptInvalidEnums()) 081 return null; 082 else 083 throw new FHIRException("Unknown ConceptMapGroupUnmappedMode code '"+codeString+"'"); 084 } 085 public String toCode() { 086 switch (this) { 087 case PROVIDED: return "provided"; 088 case FIXED: return "fixed"; 089 case OTHERMAP: return "other-map"; 090 default: return "?"; 091 } 092 } 093 public String getSystem() { 094 switch (this) { 095 case PROVIDED: return "http://hl7.org/fhir/conceptmap-unmapped-mode"; 096 case FIXED: return "http://hl7.org/fhir/conceptmap-unmapped-mode"; 097 case OTHERMAP: return "http://hl7.org/fhir/conceptmap-unmapped-mode"; 098 default: return "?"; 099 } 100 } 101 public String getDefinition() { 102 switch (this) { 103 case PROVIDED: return "Use the code as provided in the $translate request"; 104 case FIXED: return "Use the code explicitly provided in the group.unmapped"; 105 case OTHERMAP: return "Use the map identified by the canonical URL in URL"; 106 default: return "?"; 107 } 108 } 109 public String getDisplay() { 110 switch (this) { 111 case PROVIDED: return "Provided Code"; 112 case FIXED: return "Fixed Code"; 113 case OTHERMAP: return "Other Map"; 114 default: return "?"; 115 } 116 } 117 } 118 119 public static class ConceptMapGroupUnmappedModeEnumFactory implements EnumFactory<ConceptMapGroupUnmappedMode> { 120 public ConceptMapGroupUnmappedMode fromCode(String codeString) throws IllegalArgumentException { 121 if (codeString == null || "".equals(codeString)) 122 if (codeString == null || "".equals(codeString)) 123 return null; 124 if ("provided".equals(codeString)) 125 return ConceptMapGroupUnmappedMode.PROVIDED; 126 if ("fixed".equals(codeString)) 127 return ConceptMapGroupUnmappedMode.FIXED; 128 if ("other-map".equals(codeString)) 129 return ConceptMapGroupUnmappedMode.OTHERMAP; 130 throw new IllegalArgumentException("Unknown ConceptMapGroupUnmappedMode code '"+codeString+"'"); 131 } 132 public Enumeration<ConceptMapGroupUnmappedMode> fromType(Base code) throws FHIRException { 133 if (code == null) 134 return null; 135 if (code.isEmpty()) 136 return new Enumeration<ConceptMapGroupUnmappedMode>(this); 137 String codeString = ((PrimitiveType) code).asStringValue(); 138 if (codeString == null || "".equals(codeString)) 139 return null; 140 if ("provided".equals(codeString)) 141 return new Enumeration<ConceptMapGroupUnmappedMode>(this, ConceptMapGroupUnmappedMode.PROVIDED); 142 if ("fixed".equals(codeString)) 143 return new Enumeration<ConceptMapGroupUnmappedMode>(this, ConceptMapGroupUnmappedMode.FIXED); 144 if ("other-map".equals(codeString)) 145 return new Enumeration<ConceptMapGroupUnmappedMode>(this, ConceptMapGroupUnmappedMode.OTHERMAP); 146 throw new FHIRException("Unknown ConceptMapGroupUnmappedMode code '"+codeString+"'"); 147 } 148 public String toCode(ConceptMapGroupUnmappedMode code) { 149 if (code == ConceptMapGroupUnmappedMode.PROVIDED) 150 return "provided"; 151 if (code == ConceptMapGroupUnmappedMode.FIXED) 152 return "fixed"; 153 if (code == ConceptMapGroupUnmappedMode.OTHERMAP) 154 return "other-map"; 155 return "?"; 156 } 157 public String toSystem(ConceptMapGroupUnmappedMode code) { 158 return code.getSystem(); 159 } 160 } 161 162 @Block() 163 public static class ConceptMapGroupComponent extends BackboneElement implements IBaseBackboneElement { 164 /** 165 * An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system). 166 */ 167 @Child(name = "source", type = {UriType.class}, order=1, min=0, max=1, modifier=false, summary=false) 168 @Description(shortDefinition="Code System (if value set crosses code systems)", formalDefinition="An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system)." ) 169 protected UriType source; 170 171 /** 172 * The specific version of the code system, as determined by the code system authority. 173 */ 174 @Child(name = "sourceVersion", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) 175 @Description(shortDefinition="Specific version of the code system", formalDefinition="The specific version of the code system, as determined by the code system authority." ) 176 protected StringType sourceVersion; 177 178 /** 179 * An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems). 180 */ 181 @Child(name = "target", type = {UriType.class}, order=3, min=0, max=1, modifier=false, summary=false) 182 @Description(shortDefinition="System of the target (if necessary)", formalDefinition="An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems)." ) 183 protected UriType target; 184 185 /** 186 * The specific version of the code system, as determined by the code system authority. 187 */ 188 @Child(name = "targetVersion", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) 189 @Description(shortDefinition="Specific version of the code system", formalDefinition="The specific version of the code system, as determined by the code system authority." ) 190 protected StringType targetVersion; 191 192 /** 193 * Mappings for an individual concept in the source to one or more concepts in the target. 194 */ 195 @Child(name = "element", type = {}, order=5, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 196 @Description(shortDefinition="Mappings for a concept from the source set", formalDefinition="Mappings for an individual concept in the source to one or more concepts in the target." ) 197 protected List<SourceElementComponent> element; 198 199 /** 200 * What to do when there is no match in the mappings in the group. 201 */ 202 @Child(name = "unmapped", type = {}, order=6, min=0, max=1, modifier=false, summary=false) 203 @Description(shortDefinition="When no match in the mappings", formalDefinition="What to do when there is no match in the mappings in the group." ) 204 protected ConceptMapGroupUnmappedComponent unmapped; 205 206 private static final long serialVersionUID = 1606357508L; 207 208 /** 209 * Constructor 210 */ 211 public ConceptMapGroupComponent() { 212 super(); 213 } 214 215 /** 216 * @return {@link #source} (An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).). This is the underlying object with id, value and extensions. The accessor "getSource" gives direct access to the value 217 */ 218 public UriType getSourceElement() { 219 if (this.source == null) 220 if (Configuration.errorOnAutoCreate()) 221 throw new Error("Attempt to auto-create ConceptMapGroupComponent.source"); 222 else if (Configuration.doAutoCreate()) 223 this.source = new UriType(); // bb 224 return this.source; 225 } 226 227 public boolean hasSourceElement() { 228 return this.source != null && !this.source.isEmpty(); 229 } 230 231 public boolean hasSource() { 232 return this.source != null && !this.source.isEmpty(); 233 } 234 235 /** 236 * @param value {@link #source} (An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).). This is the underlying object with id, value and extensions. The accessor "getSource" gives direct access to the value 237 */ 238 public ConceptMapGroupComponent setSourceElement(UriType value) { 239 this.source = value; 240 return this; 241 } 242 243 /** 244 * @return An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system). 245 */ 246 public String getSource() { 247 return this.source == null ? null : this.source.getValue(); 248 } 249 250 /** 251 * @param value An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system). 252 */ 253 public ConceptMapGroupComponent setSource(String value) { 254 if (Utilities.noString(value)) 255 this.source = null; 256 else { 257 if (this.source == null) 258 this.source = new UriType(); 259 this.source.setValue(value); 260 } 261 return this; 262 } 263 264 /** 265 * @return {@link #sourceVersion} (The specific version of the code system, as determined by the code system authority.). This is the underlying object with id, value and extensions. The accessor "getSourceVersion" gives direct access to the value 266 */ 267 public StringType getSourceVersionElement() { 268 if (this.sourceVersion == null) 269 if (Configuration.errorOnAutoCreate()) 270 throw new Error("Attempt to auto-create ConceptMapGroupComponent.sourceVersion"); 271 else if (Configuration.doAutoCreate()) 272 this.sourceVersion = new StringType(); // bb 273 return this.sourceVersion; 274 } 275 276 public boolean hasSourceVersionElement() { 277 return this.sourceVersion != null && !this.sourceVersion.isEmpty(); 278 } 279 280 public boolean hasSourceVersion() { 281 return this.sourceVersion != null && !this.sourceVersion.isEmpty(); 282 } 283 284 /** 285 * @param value {@link #sourceVersion} (The specific version of the code system, as determined by the code system authority.). This is the underlying object with id, value and extensions. The accessor "getSourceVersion" gives direct access to the value 286 */ 287 public ConceptMapGroupComponent setSourceVersionElement(StringType value) { 288 this.sourceVersion = value; 289 return this; 290 } 291 292 /** 293 * @return The specific version of the code system, as determined by the code system authority. 294 */ 295 public String getSourceVersion() { 296 return this.sourceVersion == null ? null : this.sourceVersion.getValue(); 297 } 298 299 /** 300 * @param value The specific version of the code system, as determined by the code system authority. 301 */ 302 public ConceptMapGroupComponent setSourceVersion(String value) { 303 if (Utilities.noString(value)) 304 this.sourceVersion = null; 305 else { 306 if (this.sourceVersion == null) 307 this.sourceVersion = new StringType(); 308 this.sourceVersion.setValue(value); 309 } 310 return this; 311 } 312 313 /** 314 * @return {@link #target} (An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).). This is the underlying object with id, value and extensions. The accessor "getTarget" gives direct access to the value 315 */ 316 public UriType getTargetElement() { 317 if (this.target == null) 318 if (Configuration.errorOnAutoCreate()) 319 throw new Error("Attempt to auto-create ConceptMapGroupComponent.target"); 320 else if (Configuration.doAutoCreate()) 321 this.target = new UriType(); // bb 322 return this.target; 323 } 324 325 public boolean hasTargetElement() { 326 return this.target != null && !this.target.isEmpty(); 327 } 328 329 public boolean hasTarget() { 330 return this.target != null && !this.target.isEmpty(); 331 } 332 333 /** 334 * @param value {@link #target} (An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).). This is the underlying object with id, value and extensions. The accessor "getTarget" gives direct access to the value 335 */ 336 public ConceptMapGroupComponent setTargetElement(UriType value) { 337 this.target = value; 338 return this; 339 } 340 341 /** 342 * @return An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems). 343 */ 344 public String getTarget() { 345 return this.target == null ? null : this.target.getValue(); 346 } 347 348 /** 349 * @param value An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems). 350 */ 351 public ConceptMapGroupComponent setTarget(String value) { 352 if (Utilities.noString(value)) 353 this.target = null; 354 else { 355 if (this.target == null) 356 this.target = new UriType(); 357 this.target.setValue(value); 358 } 359 return this; 360 } 361 362 /** 363 * @return {@link #targetVersion} (The specific version of the code system, as determined by the code system authority.). This is the underlying object with id, value and extensions. The accessor "getTargetVersion" gives direct access to the value 364 */ 365 public StringType getTargetVersionElement() { 366 if (this.targetVersion == null) 367 if (Configuration.errorOnAutoCreate()) 368 throw new Error("Attempt to auto-create ConceptMapGroupComponent.targetVersion"); 369 else if (Configuration.doAutoCreate()) 370 this.targetVersion = new StringType(); // bb 371 return this.targetVersion; 372 } 373 374 public boolean hasTargetVersionElement() { 375 return this.targetVersion != null && !this.targetVersion.isEmpty(); 376 } 377 378 public boolean hasTargetVersion() { 379 return this.targetVersion != null && !this.targetVersion.isEmpty(); 380 } 381 382 /** 383 * @param value {@link #targetVersion} (The specific version of the code system, as determined by the code system authority.). This is the underlying object with id, value and extensions. The accessor "getTargetVersion" gives direct access to the value 384 */ 385 public ConceptMapGroupComponent setTargetVersionElement(StringType value) { 386 this.targetVersion = value; 387 return this; 388 } 389 390 /** 391 * @return The specific version of the code system, as determined by the code system authority. 392 */ 393 public String getTargetVersion() { 394 return this.targetVersion == null ? null : this.targetVersion.getValue(); 395 } 396 397 /** 398 * @param value The specific version of the code system, as determined by the code system authority. 399 */ 400 public ConceptMapGroupComponent setTargetVersion(String value) { 401 if (Utilities.noString(value)) 402 this.targetVersion = null; 403 else { 404 if (this.targetVersion == null) 405 this.targetVersion = new StringType(); 406 this.targetVersion.setValue(value); 407 } 408 return this; 409 } 410 411 /** 412 * @return {@link #element} (Mappings for an individual concept in the source to one or more concepts in the target.) 413 */ 414 public List<SourceElementComponent> getElement() { 415 if (this.element == null) 416 this.element = new ArrayList<SourceElementComponent>(); 417 return this.element; 418 } 419 420 /** 421 * @return Returns a reference to <code>this</code> for easy method chaining 422 */ 423 public ConceptMapGroupComponent setElement(List<SourceElementComponent> theElement) { 424 this.element = theElement; 425 return this; 426 } 427 428 public boolean hasElement() { 429 if (this.element == null) 430 return false; 431 for (SourceElementComponent item : this.element) 432 if (!item.isEmpty()) 433 return true; 434 return false; 435 } 436 437 public SourceElementComponent addElement() { //3 438 SourceElementComponent t = new SourceElementComponent(); 439 if (this.element == null) 440 this.element = new ArrayList<SourceElementComponent>(); 441 this.element.add(t); 442 return t; 443 } 444 445 public ConceptMapGroupComponent addElement(SourceElementComponent t) { //3 446 if (t == null) 447 return this; 448 if (this.element == null) 449 this.element = new ArrayList<SourceElementComponent>(); 450 this.element.add(t); 451 return this; 452 } 453 454 /** 455 * @return The first repetition of repeating field {@link #element}, creating it if it does not already exist 456 */ 457 public SourceElementComponent getElementFirstRep() { 458 if (getElement().isEmpty()) { 459 addElement(); 460 } 461 return getElement().get(0); 462 } 463 464 /** 465 * @return {@link #unmapped} (What to do when there is no match in the mappings in the group.) 466 */ 467 public ConceptMapGroupUnmappedComponent getUnmapped() { 468 if (this.unmapped == null) 469 if (Configuration.errorOnAutoCreate()) 470 throw new Error("Attempt to auto-create ConceptMapGroupComponent.unmapped"); 471 else if (Configuration.doAutoCreate()) 472 this.unmapped = new ConceptMapGroupUnmappedComponent(); // cc 473 return this.unmapped; 474 } 475 476 public boolean hasUnmapped() { 477 return this.unmapped != null && !this.unmapped.isEmpty(); 478 } 479 480 /** 481 * @param value {@link #unmapped} (What to do when there is no match in the mappings in the group.) 482 */ 483 public ConceptMapGroupComponent setUnmapped(ConceptMapGroupUnmappedComponent value) { 484 this.unmapped = value; 485 return this; 486 } 487 488 protected void listChildren(List<Property> children) { 489 super.listChildren(children); 490 children.add(new Property("source", "uri", "An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).", 0, 1, source)); 491 children.add(new Property("sourceVersion", "string", "The specific version of the code system, as determined by the code system authority.", 0, 1, sourceVersion)); 492 children.add(new Property("target", "uri", "An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).", 0, 1, target)); 493 children.add(new Property("targetVersion", "string", "The specific version of the code system, as determined by the code system authority.", 0, 1, targetVersion)); 494 children.add(new Property("element", "", "Mappings for an individual concept in the source to one or more concepts in the target.", 0, java.lang.Integer.MAX_VALUE, element)); 495 children.add(new Property("unmapped", "", "What to do when there is no match in the mappings in the group.", 0, 1, unmapped)); 496 } 497 498 @Override 499 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 500 switch (_hash) { 501 case -896505829: /*source*/ return new Property("source", "uri", "An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).", 0, 1, source); 502 case 446171197: /*sourceVersion*/ return new Property("sourceVersion", "string", "The specific version of the code system, as determined by the code system authority.", 0, 1, sourceVersion); 503 case -880905839: /*target*/ return new Property("target", "uri", "An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).", 0, 1, target); 504 case -1639412217: /*targetVersion*/ return new Property("targetVersion", "string", "The specific version of the code system, as determined by the code system authority.", 0, 1, targetVersion); 505 case -1662836996: /*element*/ return new Property("element", "", "Mappings for an individual concept in the source to one or more concepts in the target.", 0, java.lang.Integer.MAX_VALUE, element); 506 case -194857460: /*unmapped*/ return new Property("unmapped", "", "What to do when there is no match in the mappings in the group.", 0, 1, unmapped); 507 default: return super.getNamedProperty(_hash, _name, _checkValid); 508 } 509 510 } 511 512 @Override 513 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 514 switch (hash) { 515 case -896505829: /*source*/ return this.source == null ? new Base[0] : new Base[] {this.source}; // UriType 516 case 446171197: /*sourceVersion*/ return this.sourceVersion == null ? new Base[0] : new Base[] {this.sourceVersion}; // StringType 517 case -880905839: /*target*/ return this.target == null ? new Base[0] : new Base[] {this.target}; // UriType 518 case -1639412217: /*targetVersion*/ return this.targetVersion == null ? new Base[0] : new Base[] {this.targetVersion}; // StringType 519 case -1662836996: /*element*/ return this.element == null ? new Base[0] : this.element.toArray(new Base[this.element.size()]); // SourceElementComponent 520 case -194857460: /*unmapped*/ return this.unmapped == null ? new Base[0] : new Base[] {this.unmapped}; // ConceptMapGroupUnmappedComponent 521 default: return super.getProperty(hash, name, checkValid); 522 } 523 524 } 525 526 @Override 527 public Base setProperty(int hash, String name, Base value) throws FHIRException { 528 switch (hash) { 529 case -896505829: // source 530 this.source = castToUri(value); // UriType 531 return value; 532 case 446171197: // sourceVersion 533 this.sourceVersion = castToString(value); // StringType 534 return value; 535 case -880905839: // target 536 this.target = castToUri(value); // UriType 537 return value; 538 case -1639412217: // targetVersion 539 this.targetVersion = castToString(value); // StringType 540 return value; 541 case -1662836996: // element 542 this.getElement().add((SourceElementComponent) value); // SourceElementComponent 543 return value; 544 case -194857460: // unmapped 545 this.unmapped = (ConceptMapGroupUnmappedComponent) value; // ConceptMapGroupUnmappedComponent 546 return value; 547 default: return super.setProperty(hash, name, value); 548 } 549 550 } 551 552 @Override 553 public Base setProperty(String name, Base value) throws FHIRException { 554 if (name.equals("source")) { 555 this.source = castToUri(value); // UriType 556 } else if (name.equals("sourceVersion")) { 557 this.sourceVersion = castToString(value); // StringType 558 } else if (name.equals("target")) { 559 this.target = castToUri(value); // UriType 560 } else if (name.equals("targetVersion")) { 561 this.targetVersion = castToString(value); // StringType 562 } else if (name.equals("element")) { 563 this.getElement().add((SourceElementComponent) value); 564 } else if (name.equals("unmapped")) { 565 this.unmapped = (ConceptMapGroupUnmappedComponent) value; // ConceptMapGroupUnmappedComponent 566 } else 567 return super.setProperty(name, value); 568 return value; 569 } 570 571 @Override 572 public Base makeProperty(int hash, String name) throws FHIRException { 573 switch (hash) { 574 case -896505829: return getSourceElement(); 575 case 446171197: return getSourceVersionElement(); 576 case -880905839: return getTargetElement(); 577 case -1639412217: return getTargetVersionElement(); 578 case -1662836996: return addElement(); 579 case -194857460: return getUnmapped(); 580 default: return super.makeProperty(hash, name); 581 } 582 583 } 584 585 @Override 586 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 587 switch (hash) { 588 case -896505829: /*source*/ return new String[] {"uri"}; 589 case 446171197: /*sourceVersion*/ return new String[] {"string"}; 590 case -880905839: /*target*/ return new String[] {"uri"}; 591 case -1639412217: /*targetVersion*/ return new String[] {"string"}; 592 case -1662836996: /*element*/ return new String[] {}; 593 case -194857460: /*unmapped*/ return new String[] {}; 594 default: return super.getTypesForProperty(hash, name); 595 } 596 597 } 598 599 @Override 600 public Base addChild(String name) throws FHIRException { 601 if (name.equals("source")) { 602 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.source"); 603 } 604 else if (name.equals("sourceVersion")) { 605 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.sourceVersion"); 606 } 607 else if (name.equals("target")) { 608 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.target"); 609 } 610 else if (name.equals("targetVersion")) { 611 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.targetVersion"); 612 } 613 else if (name.equals("element")) { 614 return addElement(); 615 } 616 else if (name.equals("unmapped")) { 617 this.unmapped = new ConceptMapGroupUnmappedComponent(); 618 return this.unmapped; 619 } 620 else 621 return super.addChild(name); 622 } 623 624 public ConceptMapGroupComponent copy() { 625 ConceptMapGroupComponent dst = new ConceptMapGroupComponent(); 626 copyValues(dst); 627 dst.source = source == null ? null : source.copy(); 628 dst.sourceVersion = sourceVersion == null ? null : sourceVersion.copy(); 629 dst.target = target == null ? null : target.copy(); 630 dst.targetVersion = targetVersion == null ? null : targetVersion.copy(); 631 if (element != null) { 632 dst.element = new ArrayList<SourceElementComponent>(); 633 for (SourceElementComponent i : element) 634 dst.element.add(i.copy()); 635 }; 636 dst.unmapped = unmapped == null ? null : unmapped.copy(); 637 return dst; 638 } 639 640 @Override 641 public boolean equalsDeep(Base other_) { 642 if (!super.equalsDeep(other_)) 643 return false; 644 if (!(other_ instanceof ConceptMapGroupComponent)) 645 return false; 646 ConceptMapGroupComponent o = (ConceptMapGroupComponent) other_; 647 return compareDeep(source, o.source, true) && compareDeep(sourceVersion, o.sourceVersion, true) 648 && compareDeep(target, o.target, true) && compareDeep(targetVersion, o.targetVersion, true) && compareDeep(element, o.element, true) 649 && compareDeep(unmapped, o.unmapped, true); 650 } 651 652 @Override 653 public boolean equalsShallow(Base other_) { 654 if (!super.equalsShallow(other_)) 655 return false; 656 if (!(other_ instanceof ConceptMapGroupComponent)) 657 return false; 658 ConceptMapGroupComponent o = (ConceptMapGroupComponent) other_; 659 return compareValues(source, o.source, true) && compareValues(sourceVersion, o.sourceVersion, true) 660 && compareValues(target, o.target, true) && compareValues(targetVersion, o.targetVersion, true); 661 } 662 663 public boolean isEmpty() { 664 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(source, sourceVersion, target 665 , targetVersion, element, unmapped); 666 } 667 668 public String fhirType() { 669 return "ConceptMap.group"; 670 671 } 672 673 } 674 675 @Block() 676 public static class SourceElementComponent extends BackboneElement implements IBaseBackboneElement { 677 /** 678 * Identity (code or path) or the element/item being mapped. 679 */ 680 @Child(name = "code", type = {CodeType.class}, order=1, min=0, max=1, modifier=false, summary=false) 681 @Description(shortDefinition="Identifies element being mapped", formalDefinition="Identity (code or path) or the element/item being mapped." ) 682 protected CodeType code; 683 684 /** 685 * The display for the code. The display is only provided to help editors when editing the concept map. 686 */ 687 @Child(name = "display", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) 688 @Description(shortDefinition="Display for the code", formalDefinition="The display for the code. The display is only provided to help editors when editing the concept map." ) 689 protected StringType display; 690 691 /** 692 * A concept from the target value set that this concept maps to. 693 */ 694 @Child(name = "target", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 695 @Description(shortDefinition="Concept in target system for element", formalDefinition="A concept from the target value set that this concept maps to." ) 696 protected List<TargetElementComponent> target; 697 698 private static final long serialVersionUID = -1115258852L; 699 700 /** 701 * Constructor 702 */ 703 public SourceElementComponent() { 704 super(); 705 } 706 707 /** 708 * @return {@link #code} (Identity (code or path) or the element/item being mapped.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 709 */ 710 public CodeType getCodeElement() { 711 if (this.code == null) 712 if (Configuration.errorOnAutoCreate()) 713 throw new Error("Attempt to auto-create SourceElementComponent.code"); 714 else if (Configuration.doAutoCreate()) 715 this.code = new CodeType(); // bb 716 return this.code; 717 } 718 719 public boolean hasCodeElement() { 720 return this.code != null && !this.code.isEmpty(); 721 } 722 723 public boolean hasCode() { 724 return this.code != null && !this.code.isEmpty(); 725 } 726 727 /** 728 * @param value {@link #code} (Identity (code or path) or the element/item being mapped.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 729 */ 730 public SourceElementComponent setCodeElement(CodeType value) { 731 this.code = value; 732 return this; 733 } 734 735 /** 736 * @return Identity (code or path) or the element/item being mapped. 737 */ 738 public String getCode() { 739 return this.code == null ? null : this.code.getValue(); 740 } 741 742 /** 743 * @param value Identity (code or path) or the element/item being mapped. 744 */ 745 public SourceElementComponent setCode(String value) { 746 if (Utilities.noString(value)) 747 this.code = null; 748 else { 749 if (this.code == null) 750 this.code = new CodeType(); 751 this.code.setValue(value); 752 } 753 return this; 754 } 755 756 /** 757 * @return {@link #display} (The display for the code. The display is only provided to help editors when editing the concept map.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value 758 */ 759 public StringType getDisplayElement() { 760 if (this.display == null) 761 if (Configuration.errorOnAutoCreate()) 762 throw new Error("Attempt to auto-create SourceElementComponent.display"); 763 else if (Configuration.doAutoCreate()) 764 this.display = new StringType(); // bb 765 return this.display; 766 } 767 768 public boolean hasDisplayElement() { 769 return this.display != null && !this.display.isEmpty(); 770 } 771 772 public boolean hasDisplay() { 773 return this.display != null && !this.display.isEmpty(); 774 } 775 776 /** 777 * @param value {@link #display} (The display for the code. The display is only provided to help editors when editing the concept map.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value 778 */ 779 public SourceElementComponent setDisplayElement(StringType value) { 780 this.display = value; 781 return this; 782 } 783 784 /** 785 * @return The display for the code. The display is only provided to help editors when editing the concept map. 786 */ 787 public String getDisplay() { 788 return this.display == null ? null : this.display.getValue(); 789 } 790 791 /** 792 * @param value The display for the code. The display is only provided to help editors when editing the concept map. 793 */ 794 public SourceElementComponent setDisplay(String value) { 795 if (Utilities.noString(value)) 796 this.display = null; 797 else { 798 if (this.display == null) 799 this.display = new StringType(); 800 this.display.setValue(value); 801 } 802 return this; 803 } 804 805 /** 806 * @return {@link #target} (A concept from the target value set that this concept maps to.) 807 */ 808 public List<TargetElementComponent> getTarget() { 809 if (this.target == null) 810 this.target = new ArrayList<TargetElementComponent>(); 811 return this.target; 812 } 813 814 /** 815 * @return Returns a reference to <code>this</code> for easy method chaining 816 */ 817 public SourceElementComponent setTarget(List<TargetElementComponent> theTarget) { 818 this.target = theTarget; 819 return this; 820 } 821 822 public boolean hasTarget() { 823 if (this.target == null) 824 return false; 825 for (TargetElementComponent item : this.target) 826 if (!item.isEmpty()) 827 return true; 828 return false; 829 } 830 831 public TargetElementComponent addTarget() { //3 832 TargetElementComponent t = new TargetElementComponent(); 833 if (this.target == null) 834 this.target = new ArrayList<TargetElementComponent>(); 835 this.target.add(t); 836 return t; 837 } 838 839 public SourceElementComponent addTarget(TargetElementComponent t) { //3 840 if (t == null) 841 return this; 842 if (this.target == null) 843 this.target = new ArrayList<TargetElementComponent>(); 844 this.target.add(t); 845 return this; 846 } 847 848 /** 849 * @return The first repetition of repeating field {@link #target}, creating it if it does not already exist 850 */ 851 public TargetElementComponent getTargetFirstRep() { 852 if (getTarget().isEmpty()) { 853 addTarget(); 854 } 855 return getTarget().get(0); 856 } 857 858 protected void listChildren(List<Property> children) { 859 super.listChildren(children); 860 children.add(new Property("code", "code", "Identity (code or path) or the element/item being mapped.", 0, 1, code)); 861 children.add(new Property("display", "string", "The display for the code. The display is only provided to help editors when editing the concept map.", 0, 1, display)); 862 children.add(new Property("target", "", "A concept from the target value set that this concept maps to.", 0, java.lang.Integer.MAX_VALUE, target)); 863 } 864 865 @Override 866 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 867 switch (_hash) { 868 case 3059181: /*code*/ return new Property("code", "code", "Identity (code or path) or the element/item being mapped.", 0, 1, code); 869 case 1671764162: /*display*/ return new Property("display", "string", "The display for the code. The display is only provided to help editors when editing the concept map.", 0, 1, display); 870 case -880905839: /*target*/ return new Property("target", "", "A concept from the target value set that this concept maps to.", 0, java.lang.Integer.MAX_VALUE, target); 871 default: return super.getNamedProperty(_hash, _name, _checkValid); 872 } 873 874 } 875 876 @Override 877 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 878 switch (hash) { 879 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType 880 case 1671764162: /*display*/ return this.display == null ? new Base[0] : new Base[] {this.display}; // StringType 881 case -880905839: /*target*/ return this.target == null ? new Base[0] : this.target.toArray(new Base[this.target.size()]); // TargetElementComponent 882 default: return super.getProperty(hash, name, checkValid); 883 } 884 885 } 886 887 @Override 888 public Base setProperty(int hash, String name, Base value) throws FHIRException { 889 switch (hash) { 890 case 3059181: // code 891 this.code = castToCode(value); // CodeType 892 return value; 893 case 1671764162: // display 894 this.display = castToString(value); // StringType 895 return value; 896 case -880905839: // target 897 this.getTarget().add((TargetElementComponent) value); // TargetElementComponent 898 return value; 899 default: return super.setProperty(hash, name, value); 900 } 901 902 } 903 904 @Override 905 public Base setProperty(String name, Base value) throws FHIRException { 906 if (name.equals("code")) { 907 this.code = castToCode(value); // CodeType 908 } else if (name.equals("display")) { 909 this.display = castToString(value); // StringType 910 } else if (name.equals("target")) { 911 this.getTarget().add((TargetElementComponent) value); 912 } else 913 return super.setProperty(name, value); 914 return value; 915 } 916 917 @Override 918 public Base makeProperty(int hash, String name) throws FHIRException { 919 switch (hash) { 920 case 3059181: return getCodeElement(); 921 case 1671764162: return getDisplayElement(); 922 case -880905839: return addTarget(); 923 default: return super.makeProperty(hash, name); 924 } 925 926 } 927 928 @Override 929 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 930 switch (hash) { 931 case 3059181: /*code*/ return new String[] {"code"}; 932 case 1671764162: /*display*/ return new String[] {"string"}; 933 case -880905839: /*target*/ return new String[] {}; 934 default: return super.getTypesForProperty(hash, name); 935 } 936 937 } 938 939 @Override 940 public Base addChild(String name) throws FHIRException { 941 if (name.equals("code")) { 942 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); 943 } 944 else if (name.equals("display")) { 945 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.display"); 946 } 947 else if (name.equals("target")) { 948 return addTarget(); 949 } 950 else 951 return super.addChild(name); 952 } 953 954 public SourceElementComponent copy() { 955 SourceElementComponent dst = new SourceElementComponent(); 956 copyValues(dst); 957 dst.code = code == null ? null : code.copy(); 958 dst.display = display == null ? null : display.copy(); 959 if (target != null) { 960 dst.target = new ArrayList<TargetElementComponent>(); 961 for (TargetElementComponent i : target) 962 dst.target.add(i.copy()); 963 }; 964 return dst; 965 } 966 967 @Override 968 public boolean equalsDeep(Base other_) { 969 if (!super.equalsDeep(other_)) 970 return false; 971 if (!(other_ instanceof SourceElementComponent)) 972 return false; 973 SourceElementComponent o = (SourceElementComponent) other_; 974 return compareDeep(code, o.code, true) && compareDeep(display, o.display, true) && compareDeep(target, o.target, true) 975 ; 976 } 977 978 @Override 979 public boolean equalsShallow(Base other_) { 980 if (!super.equalsShallow(other_)) 981 return false; 982 if (!(other_ instanceof SourceElementComponent)) 983 return false; 984 SourceElementComponent o = (SourceElementComponent) other_; 985 return compareValues(code, o.code, true) && compareValues(display, o.display, true); 986 } 987 988 public boolean isEmpty() { 989 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, display, target); 990 } 991 992 public String fhirType() { 993 return "ConceptMap.group.element"; 994 995 } 996 997 } 998 999 @Block() 1000 public static class TargetElementComponent extends BackboneElement implements IBaseBackboneElement { 1001 /** 1002 * Identity (code or path) or the element/item that the map refers to. 1003 */ 1004 @Child(name = "code", type = {CodeType.class}, order=1, min=0, max=1, modifier=false, summary=false) 1005 @Description(shortDefinition="Code that identifies the target element", formalDefinition="Identity (code or path) or the element/item that the map refers to." ) 1006 protected CodeType code; 1007 1008 /** 1009 * The display for the code. The display is only provided to help editors when editing the concept map. 1010 */ 1011 @Child(name = "display", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) 1012 @Description(shortDefinition="Display for the code", formalDefinition="The display for the code. The display is only provided to help editors when editing the concept map." ) 1013 protected StringType display; 1014 1015 /** 1016 * The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source). 1017 */ 1018 @Child(name = "equivalence", type = {CodeType.class}, order=3, min=0, max=1, modifier=true, summary=false) 1019 @Description(shortDefinition="relatedto | equivalent | equal | wider | subsumes | narrower | specializes | inexact | unmatched | disjoint", formalDefinition="The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source)." ) 1020 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/concept-map-equivalence") 1021 protected Enumeration<ConceptMapEquivalence> equivalence; 1022 1023 /** 1024 * A description of status/issues in mapping that conveys additional information not represented in the structured data. 1025 */ 1026 @Child(name = "comment", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) 1027 @Description(shortDefinition="Description of status/issues in mapping", formalDefinition="A description of status/issues in mapping that conveys additional information not represented in the structured data." ) 1028 protected StringType comment; 1029 1030 /** 1031 * A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value. 1032 */ 1033 @Child(name = "dependsOn", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1034 @Description(shortDefinition="Other elements required for this mapping (from context)", formalDefinition="A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value." ) 1035 protected List<OtherElementComponent> dependsOn; 1036 1037 /** 1038 * A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on. 1039 */ 1040 @Child(name = "product", type = {OtherElementComponent.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1041 @Description(shortDefinition="Other concepts that this mapping also produces", formalDefinition="A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on." ) 1042 protected List<OtherElementComponent> product; 1043 1044 private static final long serialVersionUID = -2008997477L; 1045 1046 /** 1047 * Constructor 1048 */ 1049 public TargetElementComponent() { 1050 super(); 1051 } 1052 1053 /** 1054 * @return {@link #code} (Identity (code or path) or the element/item that the map refers to.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 1055 */ 1056 public CodeType getCodeElement() { 1057 if (this.code == null) 1058 if (Configuration.errorOnAutoCreate()) 1059 throw new Error("Attempt to auto-create TargetElementComponent.code"); 1060 else if (Configuration.doAutoCreate()) 1061 this.code = new CodeType(); // bb 1062 return this.code; 1063 } 1064 1065 public boolean hasCodeElement() { 1066 return this.code != null && !this.code.isEmpty(); 1067 } 1068 1069 public boolean hasCode() { 1070 return this.code != null && !this.code.isEmpty(); 1071 } 1072 1073 /** 1074 * @param value {@link #code} (Identity (code or path) or the element/item that the map refers to.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 1075 */ 1076 public TargetElementComponent setCodeElement(CodeType value) { 1077 this.code = value; 1078 return this; 1079 } 1080 1081 /** 1082 * @return Identity (code or path) or the element/item that the map refers to. 1083 */ 1084 public String getCode() { 1085 return this.code == null ? null : this.code.getValue(); 1086 } 1087 1088 /** 1089 * @param value Identity (code or path) or the element/item that the map refers to. 1090 */ 1091 public TargetElementComponent setCode(String value) { 1092 if (Utilities.noString(value)) 1093 this.code = null; 1094 else { 1095 if (this.code == null) 1096 this.code = new CodeType(); 1097 this.code.setValue(value); 1098 } 1099 return this; 1100 } 1101 1102 /** 1103 * @return {@link #display} (The display for the code. The display is only provided to help editors when editing the concept map.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value 1104 */ 1105 public StringType getDisplayElement() { 1106 if (this.display == null) 1107 if (Configuration.errorOnAutoCreate()) 1108 throw new Error("Attempt to auto-create TargetElementComponent.display"); 1109 else if (Configuration.doAutoCreate()) 1110 this.display = new StringType(); // bb 1111 return this.display; 1112 } 1113 1114 public boolean hasDisplayElement() { 1115 return this.display != null && !this.display.isEmpty(); 1116 } 1117 1118 public boolean hasDisplay() { 1119 return this.display != null && !this.display.isEmpty(); 1120 } 1121 1122 /** 1123 * @param value {@link #display} (The display for the code. The display is only provided to help editors when editing the concept map.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value 1124 */ 1125 public TargetElementComponent setDisplayElement(StringType value) { 1126 this.display = value; 1127 return this; 1128 } 1129 1130 /** 1131 * @return The display for the code. The display is only provided to help editors when editing the concept map. 1132 */ 1133 public String getDisplay() { 1134 return this.display == null ? null : this.display.getValue(); 1135 } 1136 1137 /** 1138 * @param value The display for the code. The display is only provided to help editors when editing the concept map. 1139 */ 1140 public TargetElementComponent setDisplay(String value) { 1141 if (Utilities.noString(value)) 1142 this.display = null; 1143 else { 1144 if (this.display == null) 1145 this.display = new StringType(); 1146 this.display.setValue(value); 1147 } 1148 return this; 1149 } 1150 1151 /** 1152 * @return {@link #equivalence} (The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source).). This is the underlying object with id, value and extensions. The accessor "getEquivalence" gives direct access to the value 1153 */ 1154 public Enumeration<ConceptMapEquivalence> getEquivalenceElement() { 1155 if (this.equivalence == null) 1156 if (Configuration.errorOnAutoCreate()) 1157 throw new Error("Attempt to auto-create TargetElementComponent.equivalence"); 1158 else if (Configuration.doAutoCreate()) 1159 this.equivalence = new Enumeration<ConceptMapEquivalence>(new ConceptMapEquivalenceEnumFactory()); // bb 1160 return this.equivalence; 1161 } 1162 1163 public boolean hasEquivalenceElement() { 1164 return this.equivalence != null && !this.equivalence.isEmpty(); 1165 } 1166 1167 public boolean hasEquivalence() { 1168 return this.equivalence != null && !this.equivalence.isEmpty(); 1169 } 1170 1171 /** 1172 * @param value {@link #equivalence} (The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source).). This is the underlying object with id, value and extensions. The accessor "getEquivalence" gives direct access to the value 1173 */ 1174 public TargetElementComponent setEquivalenceElement(Enumeration<ConceptMapEquivalence> value) { 1175 this.equivalence = value; 1176 return this; 1177 } 1178 1179 /** 1180 * @return The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source). 1181 */ 1182 public ConceptMapEquivalence getEquivalence() { 1183 return this.equivalence == null ? null : this.equivalence.getValue(); 1184 } 1185 1186 /** 1187 * @param value The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source). 1188 */ 1189 public TargetElementComponent setEquivalence(ConceptMapEquivalence value) { 1190 if (value == null) 1191 this.equivalence = null; 1192 else { 1193 if (this.equivalence == null) 1194 this.equivalence = new Enumeration<ConceptMapEquivalence>(new ConceptMapEquivalenceEnumFactory()); 1195 this.equivalence.setValue(value); 1196 } 1197 return this; 1198 } 1199 1200 /** 1201 * @return {@link #comment} (A description of status/issues in mapping that conveys additional information not represented in the structured data.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value 1202 */ 1203 public StringType getCommentElement() { 1204 if (this.comment == null) 1205 if (Configuration.errorOnAutoCreate()) 1206 throw new Error("Attempt to auto-create TargetElementComponent.comment"); 1207 else if (Configuration.doAutoCreate()) 1208 this.comment = new StringType(); // bb 1209 return this.comment; 1210 } 1211 1212 public boolean hasCommentElement() { 1213 return this.comment != null && !this.comment.isEmpty(); 1214 } 1215 1216 public boolean hasComment() { 1217 return this.comment != null && !this.comment.isEmpty(); 1218 } 1219 1220 /** 1221 * @param value {@link #comment} (A description of status/issues in mapping that conveys additional information not represented in the structured data.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value 1222 */ 1223 public TargetElementComponent setCommentElement(StringType value) { 1224 this.comment = value; 1225 return this; 1226 } 1227 1228 /** 1229 * @return A description of status/issues in mapping that conveys additional information not represented in the structured data. 1230 */ 1231 public String getComment() { 1232 return this.comment == null ? null : this.comment.getValue(); 1233 } 1234 1235 /** 1236 * @param value A description of status/issues in mapping that conveys additional information not represented in the structured data. 1237 */ 1238 public TargetElementComponent setComment(String value) { 1239 if (Utilities.noString(value)) 1240 this.comment = null; 1241 else { 1242 if (this.comment == null) 1243 this.comment = new StringType(); 1244 this.comment.setValue(value); 1245 } 1246 return this; 1247 } 1248 1249 /** 1250 * @return {@link #dependsOn} (A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value.) 1251 */ 1252 public List<OtherElementComponent> getDependsOn() { 1253 if (this.dependsOn == null) 1254 this.dependsOn = new ArrayList<OtherElementComponent>(); 1255 return this.dependsOn; 1256 } 1257 1258 /** 1259 * @return Returns a reference to <code>this</code> for easy method chaining 1260 */ 1261 public TargetElementComponent setDependsOn(List<OtherElementComponent> theDependsOn) { 1262 this.dependsOn = theDependsOn; 1263 return this; 1264 } 1265 1266 public boolean hasDependsOn() { 1267 if (this.dependsOn == null) 1268 return false; 1269 for (OtherElementComponent item : this.dependsOn) 1270 if (!item.isEmpty()) 1271 return true; 1272 return false; 1273 } 1274 1275 public OtherElementComponent addDependsOn() { //3 1276 OtherElementComponent t = new OtherElementComponent(); 1277 if (this.dependsOn == null) 1278 this.dependsOn = new ArrayList<OtherElementComponent>(); 1279 this.dependsOn.add(t); 1280 return t; 1281 } 1282 1283 public TargetElementComponent addDependsOn(OtherElementComponent t) { //3 1284 if (t == null) 1285 return this; 1286 if (this.dependsOn == null) 1287 this.dependsOn = new ArrayList<OtherElementComponent>(); 1288 this.dependsOn.add(t); 1289 return this; 1290 } 1291 1292 /** 1293 * @return The first repetition of repeating field {@link #dependsOn}, creating it if it does not already exist 1294 */ 1295 public OtherElementComponent getDependsOnFirstRep() { 1296 if (getDependsOn().isEmpty()) { 1297 addDependsOn(); 1298 } 1299 return getDependsOn().get(0); 1300 } 1301 1302 /** 1303 * @return {@link #product} (A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on.) 1304 */ 1305 public List<OtherElementComponent> getProduct() { 1306 if (this.product == null) 1307 this.product = new ArrayList<OtherElementComponent>(); 1308 return this.product; 1309 } 1310 1311 /** 1312 * @return Returns a reference to <code>this</code> for easy method chaining 1313 */ 1314 public TargetElementComponent setProduct(List<OtherElementComponent> theProduct) { 1315 this.product = theProduct; 1316 return this; 1317 } 1318 1319 public boolean hasProduct() { 1320 if (this.product == null) 1321 return false; 1322 for (OtherElementComponent item : this.product) 1323 if (!item.isEmpty()) 1324 return true; 1325 return false; 1326 } 1327 1328 public OtherElementComponent addProduct() { //3 1329 OtherElementComponent t = new OtherElementComponent(); 1330 if (this.product == null) 1331 this.product = new ArrayList<OtherElementComponent>(); 1332 this.product.add(t); 1333 return t; 1334 } 1335 1336 public TargetElementComponent addProduct(OtherElementComponent t) { //3 1337 if (t == null) 1338 return this; 1339 if (this.product == null) 1340 this.product = new ArrayList<OtherElementComponent>(); 1341 this.product.add(t); 1342 return this; 1343 } 1344 1345 /** 1346 * @return The first repetition of repeating field {@link #product}, creating it if it does not already exist 1347 */ 1348 public OtherElementComponent getProductFirstRep() { 1349 if (getProduct().isEmpty()) { 1350 addProduct(); 1351 } 1352 return getProduct().get(0); 1353 } 1354 1355 protected void listChildren(List<Property> children) { 1356 super.listChildren(children); 1357 children.add(new Property("code", "code", "Identity (code or path) or the element/item that the map refers to.", 0, 1, code)); 1358 children.add(new Property("display", "string", "The display for the code. The display is only provided to help editors when editing the concept map.", 0, 1, display)); 1359 children.add(new Property("equivalence", "code", "The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source).", 0, 1, equivalence)); 1360 children.add(new Property("comment", "string", "A description of status/issues in mapping that conveys additional information not represented in the structured data.", 0, 1, comment)); 1361 children.add(new Property("dependsOn", "", "A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value.", 0, java.lang.Integer.MAX_VALUE, dependsOn)); 1362 children.add(new Property("product", "@ConceptMap.group.element.target.dependsOn", "A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on.", 0, java.lang.Integer.MAX_VALUE, product)); 1363 } 1364 1365 @Override 1366 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1367 switch (_hash) { 1368 case 3059181: /*code*/ return new Property("code", "code", "Identity (code or path) or the element/item that the map refers to.", 0, 1, code); 1369 case 1671764162: /*display*/ return new Property("display", "string", "The display for the code. The display is only provided to help editors when editing the concept map.", 0, 1, display); 1370 case -15828692: /*equivalence*/ return new Property("equivalence", "code", "The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source).", 0, 1, equivalence); 1371 case 950398559: /*comment*/ return new Property("comment", "string", "A description of status/issues in mapping that conveys additional information not represented in the structured data.", 0, 1, comment); 1372 case -1109214266: /*dependsOn*/ return new Property("dependsOn", "", "A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value.", 0, java.lang.Integer.MAX_VALUE, dependsOn); 1373 case -309474065: /*product*/ return new Property("product", "@ConceptMap.group.element.target.dependsOn", "A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on.", 0, java.lang.Integer.MAX_VALUE, product); 1374 default: return super.getNamedProperty(_hash, _name, _checkValid); 1375 } 1376 1377 } 1378 1379 @Override 1380 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1381 switch (hash) { 1382 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType 1383 case 1671764162: /*display*/ return this.display == null ? new Base[0] : new Base[] {this.display}; // StringType 1384 case -15828692: /*equivalence*/ return this.equivalence == null ? new Base[0] : new Base[] {this.equivalence}; // Enumeration<ConceptMapEquivalence> 1385 case 950398559: /*comment*/ return this.comment == null ? new Base[0] : new Base[] {this.comment}; // StringType 1386 case -1109214266: /*dependsOn*/ return this.dependsOn == null ? new Base[0] : this.dependsOn.toArray(new Base[this.dependsOn.size()]); // OtherElementComponent 1387 case -309474065: /*product*/ return this.product == null ? new Base[0] : this.product.toArray(new Base[this.product.size()]); // OtherElementComponent 1388 default: return super.getProperty(hash, name, checkValid); 1389 } 1390 1391 } 1392 1393 @Override 1394 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1395 switch (hash) { 1396 case 3059181: // code 1397 this.code = castToCode(value); // CodeType 1398 return value; 1399 case 1671764162: // display 1400 this.display = castToString(value); // StringType 1401 return value; 1402 case -15828692: // equivalence 1403 value = new ConceptMapEquivalenceEnumFactory().fromType(castToCode(value)); 1404 this.equivalence = (Enumeration) value; // Enumeration<ConceptMapEquivalence> 1405 return value; 1406 case 950398559: // comment 1407 this.comment = castToString(value); // StringType 1408 return value; 1409 case -1109214266: // dependsOn 1410 this.getDependsOn().add((OtherElementComponent) value); // OtherElementComponent 1411 return value; 1412 case -309474065: // product 1413 this.getProduct().add((OtherElementComponent) value); // OtherElementComponent 1414 return value; 1415 default: return super.setProperty(hash, name, value); 1416 } 1417 1418 } 1419 1420 @Override 1421 public Base setProperty(String name, Base value) throws FHIRException { 1422 if (name.equals("code")) { 1423 this.code = castToCode(value); // CodeType 1424 } else if (name.equals("display")) { 1425 this.display = castToString(value); // StringType 1426 } else if (name.equals("equivalence")) { 1427 value = new ConceptMapEquivalenceEnumFactory().fromType(castToCode(value)); 1428 this.equivalence = (Enumeration) value; // Enumeration<ConceptMapEquivalence> 1429 } else if (name.equals("comment")) { 1430 this.comment = castToString(value); // StringType 1431 } else if (name.equals("dependsOn")) { 1432 this.getDependsOn().add((OtherElementComponent) value); 1433 } else if (name.equals("product")) { 1434 this.getProduct().add((OtherElementComponent) value); 1435 } else 1436 return super.setProperty(name, value); 1437 return value; 1438 } 1439 1440 @Override 1441 public Base makeProperty(int hash, String name) throws FHIRException { 1442 switch (hash) { 1443 case 3059181: return getCodeElement(); 1444 case 1671764162: return getDisplayElement(); 1445 case -15828692: return getEquivalenceElement(); 1446 case 950398559: return getCommentElement(); 1447 case -1109214266: return addDependsOn(); 1448 case -309474065: return addProduct(); 1449 default: return super.makeProperty(hash, name); 1450 } 1451 1452 } 1453 1454 @Override 1455 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1456 switch (hash) { 1457 case 3059181: /*code*/ return new String[] {"code"}; 1458 case 1671764162: /*display*/ return new String[] {"string"}; 1459 case -15828692: /*equivalence*/ return new String[] {"code"}; 1460 case 950398559: /*comment*/ return new String[] {"string"}; 1461 case -1109214266: /*dependsOn*/ return new String[] {}; 1462 case -309474065: /*product*/ return new String[] {"@ConceptMap.group.element.target.dependsOn"}; 1463 default: return super.getTypesForProperty(hash, name); 1464 } 1465 1466 } 1467 1468 @Override 1469 public Base addChild(String name) throws FHIRException { 1470 if (name.equals("code")) { 1471 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); 1472 } 1473 else if (name.equals("display")) { 1474 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.display"); 1475 } 1476 else if (name.equals("equivalence")) { 1477 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.equivalence"); 1478 } 1479 else if (name.equals("comment")) { 1480 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.comment"); 1481 } 1482 else if (name.equals("dependsOn")) { 1483 return addDependsOn(); 1484 } 1485 else if (name.equals("product")) { 1486 return addProduct(); 1487 } 1488 else 1489 return super.addChild(name); 1490 } 1491 1492 public TargetElementComponent copy() { 1493 TargetElementComponent dst = new TargetElementComponent(); 1494 copyValues(dst); 1495 dst.code = code == null ? null : code.copy(); 1496 dst.display = display == null ? null : display.copy(); 1497 dst.equivalence = equivalence == null ? null : equivalence.copy(); 1498 dst.comment = comment == null ? null : comment.copy(); 1499 if (dependsOn != null) { 1500 dst.dependsOn = new ArrayList<OtherElementComponent>(); 1501 for (OtherElementComponent i : dependsOn) 1502 dst.dependsOn.add(i.copy()); 1503 }; 1504 if (product != null) { 1505 dst.product = new ArrayList<OtherElementComponent>(); 1506 for (OtherElementComponent i : product) 1507 dst.product.add(i.copy()); 1508 }; 1509 return dst; 1510 } 1511 1512 @Override 1513 public boolean equalsDeep(Base other_) { 1514 if (!super.equalsDeep(other_)) 1515 return false; 1516 if (!(other_ instanceof TargetElementComponent)) 1517 return false; 1518 TargetElementComponent o = (TargetElementComponent) other_; 1519 return compareDeep(code, o.code, true) && compareDeep(display, o.display, true) && compareDeep(equivalence, o.equivalence, true) 1520 && compareDeep(comment, o.comment, true) && compareDeep(dependsOn, o.dependsOn, true) && compareDeep(product, o.product, true) 1521 ; 1522 } 1523 1524 @Override 1525 public boolean equalsShallow(Base other_) { 1526 if (!super.equalsShallow(other_)) 1527 return false; 1528 if (!(other_ instanceof TargetElementComponent)) 1529 return false; 1530 TargetElementComponent o = (TargetElementComponent) other_; 1531 return compareValues(code, o.code, true) && compareValues(display, o.display, true) && compareValues(equivalence, o.equivalence, true) 1532 && compareValues(comment, o.comment, true); 1533 } 1534 1535 public boolean isEmpty() { 1536 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, display, equivalence 1537 , comment, dependsOn, product); 1538 } 1539 1540 public String fhirType() { 1541 return "ConceptMap.group.element.target"; 1542 1543 } 1544 1545 } 1546 1547 @Block() 1548 public static class OtherElementComponent extends BackboneElement implements IBaseBackboneElement { 1549 /** 1550 * A reference to an element that holds a coded value that corresponds to a code system property. The idea is that the information model carries an element somwhere that is labeled to correspond with a code system property. 1551 */ 1552 @Child(name = "property", type = {UriType.class}, order=1, min=1, max=1, modifier=false, summary=false) 1553 @Description(shortDefinition="Reference to property mapping depends on", formalDefinition="A reference to an element that holds a coded value that corresponds to a code system property. The idea is that the information model carries an element somwhere that is labeled to correspond with a code system property." ) 1554 protected UriType property; 1555 1556 /** 1557 * An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems). 1558 */ 1559 @Child(name = "system", type = {UriType.class}, order=2, min=0, max=1, modifier=false, summary=false) 1560 @Description(shortDefinition="Code System (if necessary)", formalDefinition="An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems)." ) 1561 protected UriType system; 1562 1563 /** 1564 * Identity (code or path) or the element/item/ValueSet that the map depends on / refers to. 1565 */ 1566 @Child(name = "code", type = {StringType.class}, order=3, min=1, max=1, modifier=false, summary=false) 1567 @Description(shortDefinition="Value of the referenced element", formalDefinition="Identity (code or path) or the element/item/ValueSet that the map depends on / refers to." ) 1568 protected StringType code; 1569 1570 /** 1571 * The display for the code. The display is only provided to help editors when editing the concept map. 1572 */ 1573 @Child(name = "display", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) 1574 @Description(shortDefinition="Display for the code", formalDefinition="The display for the code. The display is only provided to help editors when editing the concept map." ) 1575 protected StringType display; 1576 1577 private static final long serialVersionUID = 678887659L; 1578 1579 /** 1580 * Constructor 1581 */ 1582 public OtherElementComponent() { 1583 super(); 1584 } 1585 1586 /** 1587 * Constructor 1588 */ 1589 public OtherElementComponent(UriType property, StringType code) { 1590 super(); 1591 this.property = property; 1592 this.code = code; 1593 } 1594 1595 /** 1596 * @return {@link #property} (A reference to an element that holds a coded value that corresponds to a code system property. The idea is that the information model carries an element somwhere that is labeled to correspond with a code system property.). This is the underlying object with id, value and extensions. The accessor "getProperty" gives direct access to the value 1597 */ 1598 public UriType getPropertyElement() { 1599 if (this.property == null) 1600 if (Configuration.errorOnAutoCreate()) 1601 throw new Error("Attempt to auto-create OtherElementComponent.property"); 1602 else if (Configuration.doAutoCreate()) 1603 this.property = new UriType(); // bb 1604 return this.property; 1605 } 1606 1607 public boolean hasPropertyElement() { 1608 return this.property != null && !this.property.isEmpty(); 1609 } 1610 1611 public boolean hasProperty() { 1612 return this.property != null && !this.property.isEmpty(); 1613 } 1614 1615 /** 1616 * @param value {@link #property} (A reference to an element that holds a coded value that corresponds to a code system property. The idea is that the information model carries an element somwhere that is labeled to correspond with a code system property.). This is the underlying object with id, value and extensions. The accessor "getProperty" gives direct access to the value 1617 */ 1618 public OtherElementComponent setPropertyElement(UriType value) { 1619 this.property = value; 1620 return this; 1621 } 1622 1623 /** 1624 * @return A reference to an element that holds a coded value that corresponds to a code system property. The idea is that the information model carries an element somwhere that is labeled to correspond with a code system property. 1625 */ 1626 public String getProperty() { 1627 return this.property == null ? null : this.property.getValue(); 1628 } 1629 1630 /** 1631 * @param value A reference to an element that holds a coded value that corresponds to a code system property. The idea is that the information model carries an element somwhere that is labeled to correspond with a code system property. 1632 */ 1633 public OtherElementComponent setProperty(String value) { 1634 if (this.property == null) 1635 this.property = new UriType(); 1636 this.property.setValue(value); 1637 return this; 1638 } 1639 1640 /** 1641 * @return {@link #system} (An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems).). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value 1642 */ 1643 public UriType getSystemElement() { 1644 if (this.system == null) 1645 if (Configuration.errorOnAutoCreate()) 1646 throw new Error("Attempt to auto-create OtherElementComponent.system"); 1647 else if (Configuration.doAutoCreate()) 1648 this.system = new UriType(); // bb 1649 return this.system; 1650 } 1651 1652 public boolean hasSystemElement() { 1653 return this.system != null && !this.system.isEmpty(); 1654 } 1655 1656 public boolean hasSystem() { 1657 return this.system != null && !this.system.isEmpty(); 1658 } 1659 1660 /** 1661 * @param value {@link #system} (An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems).). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value 1662 */ 1663 public OtherElementComponent setSystemElement(UriType value) { 1664 this.system = value; 1665 return this; 1666 } 1667 1668 /** 1669 * @return An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems). 1670 */ 1671 public String getSystem() { 1672 return this.system == null ? null : this.system.getValue(); 1673 } 1674 1675 /** 1676 * @param value An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems). 1677 */ 1678 public OtherElementComponent setSystem(String value) { 1679 if (Utilities.noString(value)) 1680 this.system = null; 1681 else { 1682 if (this.system == null) 1683 this.system = new UriType(); 1684 this.system.setValue(value); 1685 } 1686 return this; 1687 } 1688 1689 /** 1690 * @return {@link #code} (Identity (code or path) or the element/item/ValueSet that the map depends on / refers to.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 1691 */ 1692 public StringType getCodeElement() { 1693 if (this.code == null) 1694 if (Configuration.errorOnAutoCreate()) 1695 throw new Error("Attempt to auto-create OtherElementComponent.code"); 1696 else if (Configuration.doAutoCreate()) 1697 this.code = new StringType(); // bb 1698 return this.code; 1699 } 1700 1701 public boolean hasCodeElement() { 1702 return this.code != null && !this.code.isEmpty(); 1703 } 1704 1705 public boolean hasCode() { 1706 return this.code != null && !this.code.isEmpty(); 1707 } 1708 1709 /** 1710 * @param value {@link #code} (Identity (code or path) or the element/item/ValueSet that the map depends on / refers to.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 1711 */ 1712 public OtherElementComponent setCodeElement(StringType value) { 1713 this.code = value; 1714 return this; 1715 } 1716 1717 /** 1718 * @return Identity (code or path) or the element/item/ValueSet that the map depends on / refers to. 1719 */ 1720 public String getCode() { 1721 return this.code == null ? null : this.code.getValue(); 1722 } 1723 1724 /** 1725 * @param value Identity (code or path) or the element/item/ValueSet that the map depends on / refers to. 1726 */ 1727 public OtherElementComponent setCode(String value) { 1728 if (this.code == null) 1729 this.code = new StringType(); 1730 this.code.setValue(value); 1731 return this; 1732 } 1733 1734 /** 1735 * @return {@link #display} (The display for the code. The display is only provided to help editors when editing the concept map.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value 1736 */ 1737 public StringType getDisplayElement() { 1738 if (this.display == null) 1739 if (Configuration.errorOnAutoCreate()) 1740 throw new Error("Attempt to auto-create OtherElementComponent.display"); 1741 else if (Configuration.doAutoCreate()) 1742 this.display = new StringType(); // bb 1743 return this.display; 1744 } 1745 1746 public boolean hasDisplayElement() { 1747 return this.display != null && !this.display.isEmpty(); 1748 } 1749 1750 public boolean hasDisplay() { 1751 return this.display != null && !this.display.isEmpty(); 1752 } 1753 1754 /** 1755 * @param value {@link #display} (The display for the code. The display is only provided to help editors when editing the concept map.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value 1756 */ 1757 public OtherElementComponent setDisplayElement(StringType value) { 1758 this.display = value; 1759 return this; 1760 } 1761 1762 /** 1763 * @return The display for the code. The display is only provided to help editors when editing the concept map. 1764 */ 1765 public String getDisplay() { 1766 return this.display == null ? null : this.display.getValue(); 1767 } 1768 1769 /** 1770 * @param value The display for the code. The display is only provided to help editors when editing the concept map. 1771 */ 1772 public OtherElementComponent setDisplay(String value) { 1773 if (Utilities.noString(value)) 1774 this.display = null; 1775 else { 1776 if (this.display == null) 1777 this.display = new StringType(); 1778 this.display.setValue(value); 1779 } 1780 return this; 1781 } 1782 1783 protected void listChildren(List<Property> children) { 1784 super.listChildren(children); 1785 children.add(new Property("property", "uri", "A reference to an element that holds a coded value that corresponds to a code system property. The idea is that the information model carries an element somwhere that is labeled to correspond with a code system property.", 0, 1, property)); 1786 children.add(new Property("system", "uri", "An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems).", 0, 1, system)); 1787 children.add(new Property("code", "string", "Identity (code or path) or the element/item/ValueSet that the map depends on / refers to.", 0, 1, code)); 1788 children.add(new Property("display", "string", "The display for the code. The display is only provided to help editors when editing the concept map.", 0, 1, display)); 1789 } 1790 1791 @Override 1792 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1793 switch (_hash) { 1794 case -993141291: /*property*/ return new Property("property", "uri", "A reference to an element that holds a coded value that corresponds to a code system property. The idea is that the information model carries an element somwhere that is labeled to correspond with a code system property.", 0, 1, property); 1795 case -887328209: /*system*/ return new Property("system", "uri", "An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems).", 0, 1, system); 1796 case 3059181: /*code*/ return new Property("code", "string", "Identity (code or path) or the element/item/ValueSet that the map depends on / refers to.", 0, 1, code); 1797 case 1671764162: /*display*/ return new Property("display", "string", "The display for the code. The display is only provided to help editors when editing the concept map.", 0, 1, display); 1798 default: return super.getNamedProperty(_hash, _name, _checkValid); 1799 } 1800 1801 } 1802 1803 @Override 1804 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1805 switch (hash) { 1806 case -993141291: /*property*/ return this.property == null ? new Base[0] : new Base[] {this.property}; // UriType 1807 case -887328209: /*system*/ return this.system == null ? new Base[0] : new Base[] {this.system}; // UriType 1808 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // StringType 1809 case 1671764162: /*display*/ return this.display == null ? new Base[0] : new Base[] {this.display}; // StringType 1810 default: return super.getProperty(hash, name, checkValid); 1811 } 1812 1813 } 1814 1815 @Override 1816 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1817 switch (hash) { 1818 case -993141291: // property 1819 this.property = castToUri(value); // UriType 1820 return value; 1821 case -887328209: // system 1822 this.system = castToUri(value); // UriType 1823 return value; 1824 case 3059181: // code 1825 this.code = castToString(value); // StringType 1826 return value; 1827 case 1671764162: // display 1828 this.display = castToString(value); // StringType 1829 return value; 1830 default: return super.setProperty(hash, name, value); 1831 } 1832 1833 } 1834 1835 @Override 1836 public Base setProperty(String name, Base value) throws FHIRException { 1837 if (name.equals("property")) { 1838 this.property = castToUri(value); // UriType 1839 } else if (name.equals("system")) { 1840 this.system = castToUri(value); // UriType 1841 } else if (name.equals("code")) { 1842 this.code = castToString(value); // StringType 1843 } else if (name.equals("display")) { 1844 this.display = castToString(value); // StringType 1845 } else 1846 return super.setProperty(name, value); 1847 return value; 1848 } 1849 1850 @Override 1851 public Base makeProperty(int hash, String name) throws FHIRException { 1852 switch (hash) { 1853 case -993141291: return getPropertyElement(); 1854 case -887328209: return getSystemElement(); 1855 case 3059181: return getCodeElement(); 1856 case 1671764162: return getDisplayElement(); 1857 default: return super.makeProperty(hash, name); 1858 } 1859 1860 } 1861 1862 @Override 1863 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1864 switch (hash) { 1865 case -993141291: /*property*/ return new String[] {"uri"}; 1866 case -887328209: /*system*/ return new String[] {"uri"}; 1867 case 3059181: /*code*/ return new String[] {"string"}; 1868 case 1671764162: /*display*/ return new String[] {"string"}; 1869 default: return super.getTypesForProperty(hash, name); 1870 } 1871 1872 } 1873 1874 @Override 1875 public Base addChild(String name) throws FHIRException { 1876 if (name.equals("property")) { 1877 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.property"); 1878 } 1879 else if (name.equals("system")) { 1880 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.system"); 1881 } 1882 else if (name.equals("code")) { 1883 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); 1884 } 1885 else if (name.equals("display")) { 1886 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.display"); 1887 } 1888 else 1889 return super.addChild(name); 1890 } 1891 1892 public OtherElementComponent copy() { 1893 OtherElementComponent dst = new OtherElementComponent(); 1894 copyValues(dst); 1895 dst.property = property == null ? null : property.copy(); 1896 dst.system = system == null ? null : system.copy(); 1897 dst.code = code == null ? null : code.copy(); 1898 dst.display = display == null ? null : display.copy(); 1899 return dst; 1900 } 1901 1902 @Override 1903 public boolean equalsDeep(Base other_) { 1904 if (!super.equalsDeep(other_)) 1905 return false; 1906 if (!(other_ instanceof OtherElementComponent)) 1907 return false; 1908 OtherElementComponent o = (OtherElementComponent) other_; 1909 return compareDeep(property, o.property, true) && compareDeep(system, o.system, true) && compareDeep(code, o.code, true) 1910 && compareDeep(display, o.display, true); 1911 } 1912 1913 @Override 1914 public boolean equalsShallow(Base other_) { 1915 if (!super.equalsShallow(other_)) 1916 return false; 1917 if (!(other_ instanceof OtherElementComponent)) 1918 return false; 1919 OtherElementComponent o = (OtherElementComponent) other_; 1920 return compareValues(property, o.property, true) && compareValues(system, o.system, true) && compareValues(code, o.code, true) 1921 && compareValues(display, o.display, true); 1922 } 1923 1924 public boolean isEmpty() { 1925 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(property, system, code, display 1926 ); 1927 } 1928 1929 public String fhirType() { 1930 return "ConceptMap.group.element.target.dependsOn"; 1931 1932 } 1933 1934 } 1935 1936 @Block() 1937 public static class ConceptMapGroupUnmappedComponent extends BackboneElement implements IBaseBackboneElement { 1938 /** 1939 * Defines which action to take if there is no match in the group. One of 3 actions is possible: use the unmapped code (this is useful when doing a mapping between versions, and only a few codes have changed), use a fixed code (a default code), or alternatively, a reference to a different concept map can be provided (by canonical URL). 1940 */ 1941 @Child(name = "mode", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false) 1942 @Description(shortDefinition="provided | fixed | other-map", formalDefinition="Defines which action to take if there is no match in the group. One of 3 actions is possible: use the unmapped code (this is useful when doing a mapping between versions, and only a few codes have changed), use a fixed code (a default code), or alternatively, a reference to a different concept map can be provided (by canonical URL)." ) 1943 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/conceptmap-unmapped-mode") 1944 protected Enumeration<ConceptMapGroupUnmappedMode> mode; 1945 1946 /** 1947 * The fixed code to use when the mode = 'fixed' - all unmapped codes are mapped to a single fixed code. 1948 */ 1949 @Child(name = "code", type = {CodeType.class}, order=2, min=0, max=1, modifier=false, summary=false) 1950 @Description(shortDefinition="Fixed code when mode = fixed", formalDefinition="The fixed code to use when the mode = 'fixed' - all unmapped codes are mapped to a single fixed code." ) 1951 protected CodeType code; 1952 1953 /** 1954 * The display for the code. The display is only provided to help editors when editing the concept map. 1955 */ 1956 @Child(name = "display", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) 1957 @Description(shortDefinition="Display for the code", formalDefinition="The display for the code. The display is only provided to help editors when editing the concept map." ) 1958 protected StringType display; 1959 1960 /** 1961 * The canonical URL of the map to use if this map contains no mapping. 1962 */ 1963 @Child(name = "url", type = {UriType.class}, order=4, min=0, max=1, modifier=false, summary=false) 1964 @Description(shortDefinition="Canonical URL for other concept map", formalDefinition="The canonical URL of the map to use if this map contains no mapping." ) 1965 protected UriType url; 1966 1967 private static final long serialVersionUID = -482446774L; 1968 1969 /** 1970 * Constructor 1971 */ 1972 public ConceptMapGroupUnmappedComponent() { 1973 super(); 1974 } 1975 1976 /** 1977 * Constructor 1978 */ 1979 public ConceptMapGroupUnmappedComponent(Enumeration<ConceptMapGroupUnmappedMode> mode) { 1980 super(); 1981 this.mode = mode; 1982 } 1983 1984 /** 1985 * @return {@link #mode} (Defines which action to take if there is no match in the group. One of 3 actions is possible: use the unmapped code (this is useful when doing a mapping between versions, and only a few codes have changed), use a fixed code (a default code), or alternatively, a reference to a different concept map can be provided (by canonical URL).). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value 1986 */ 1987 public Enumeration<ConceptMapGroupUnmappedMode> getModeElement() { 1988 if (this.mode == null) 1989 if (Configuration.errorOnAutoCreate()) 1990 throw new Error("Attempt to auto-create ConceptMapGroupUnmappedComponent.mode"); 1991 else if (Configuration.doAutoCreate()) 1992 this.mode = new Enumeration<ConceptMapGroupUnmappedMode>(new ConceptMapGroupUnmappedModeEnumFactory()); // bb 1993 return this.mode; 1994 } 1995 1996 public boolean hasModeElement() { 1997 return this.mode != null && !this.mode.isEmpty(); 1998 } 1999 2000 public boolean hasMode() { 2001 return this.mode != null && !this.mode.isEmpty(); 2002 } 2003 2004 /** 2005 * @param value {@link #mode} (Defines which action to take if there is no match in the group. One of 3 actions is possible: use the unmapped code (this is useful when doing a mapping between versions, and only a few codes have changed), use a fixed code (a default code), or alternatively, a reference to a different concept map can be provided (by canonical URL).). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value 2006 */ 2007 public ConceptMapGroupUnmappedComponent setModeElement(Enumeration<ConceptMapGroupUnmappedMode> value) { 2008 this.mode = value; 2009 return this; 2010 } 2011 2012 /** 2013 * @return Defines which action to take if there is no match in the group. One of 3 actions is possible: use the unmapped code (this is useful when doing a mapping between versions, and only a few codes have changed), use a fixed code (a default code), or alternatively, a reference to a different concept map can be provided (by canonical URL). 2014 */ 2015 public ConceptMapGroupUnmappedMode getMode() { 2016 return this.mode == null ? null : this.mode.getValue(); 2017 } 2018 2019 /** 2020 * @param value Defines which action to take if there is no match in the group. One of 3 actions is possible: use the unmapped code (this is useful when doing a mapping between versions, and only a few codes have changed), use a fixed code (a default code), or alternatively, a reference to a different concept map can be provided (by canonical URL). 2021 */ 2022 public ConceptMapGroupUnmappedComponent setMode(ConceptMapGroupUnmappedMode value) { 2023 if (this.mode == null) 2024 this.mode = new Enumeration<ConceptMapGroupUnmappedMode>(new ConceptMapGroupUnmappedModeEnumFactory()); 2025 this.mode.setValue(value); 2026 return this; 2027 } 2028 2029 /** 2030 * @return {@link #code} (The fixed code to use when the mode = 'fixed' - all unmapped codes are mapped to a single fixed code.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 2031 */ 2032 public CodeType getCodeElement() { 2033 if (this.code == null) 2034 if (Configuration.errorOnAutoCreate()) 2035 throw new Error("Attempt to auto-create ConceptMapGroupUnmappedComponent.code"); 2036 else if (Configuration.doAutoCreate()) 2037 this.code = new CodeType(); // bb 2038 return this.code; 2039 } 2040 2041 public boolean hasCodeElement() { 2042 return this.code != null && !this.code.isEmpty(); 2043 } 2044 2045 public boolean hasCode() { 2046 return this.code != null && !this.code.isEmpty(); 2047 } 2048 2049 /** 2050 * @param value {@link #code} (The fixed code to use when the mode = 'fixed' - all unmapped codes are mapped to a single fixed code.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 2051 */ 2052 public ConceptMapGroupUnmappedComponent setCodeElement(CodeType value) { 2053 this.code = value; 2054 return this; 2055 } 2056 2057 /** 2058 * @return The fixed code to use when the mode = 'fixed' - all unmapped codes are mapped to a single fixed code. 2059 */ 2060 public String getCode() { 2061 return this.code == null ? null : this.code.getValue(); 2062 } 2063 2064 /** 2065 * @param value The fixed code to use when the mode = 'fixed' - all unmapped codes are mapped to a single fixed code. 2066 */ 2067 public ConceptMapGroupUnmappedComponent setCode(String value) { 2068 if (Utilities.noString(value)) 2069 this.code = null; 2070 else { 2071 if (this.code == null) 2072 this.code = new CodeType(); 2073 this.code.setValue(value); 2074 } 2075 return this; 2076 } 2077 2078 /** 2079 * @return {@link #display} (The display for the code. The display is only provided to help editors when editing the concept map.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value 2080 */ 2081 public StringType getDisplayElement() { 2082 if (this.display == null) 2083 if (Configuration.errorOnAutoCreate()) 2084 throw new Error("Attempt to auto-create ConceptMapGroupUnmappedComponent.display"); 2085 else if (Configuration.doAutoCreate()) 2086 this.display = new StringType(); // bb 2087 return this.display; 2088 } 2089 2090 public boolean hasDisplayElement() { 2091 return this.display != null && !this.display.isEmpty(); 2092 } 2093 2094 public boolean hasDisplay() { 2095 return this.display != null && !this.display.isEmpty(); 2096 } 2097 2098 /** 2099 * @param value {@link #display} (The display for the code. The display is only provided to help editors when editing the concept map.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value 2100 */ 2101 public ConceptMapGroupUnmappedComponent setDisplayElement(StringType value) { 2102 this.display = value; 2103 return this; 2104 } 2105 2106 /** 2107 * @return The display for the code. The display is only provided to help editors when editing the concept map. 2108 */ 2109 public String getDisplay() { 2110 return this.display == null ? null : this.display.getValue(); 2111 } 2112 2113 /** 2114 * @param value The display for the code. The display is only provided to help editors when editing the concept map. 2115 */ 2116 public ConceptMapGroupUnmappedComponent setDisplay(String value) { 2117 if (Utilities.noString(value)) 2118 this.display = null; 2119 else { 2120 if (this.display == null) 2121 this.display = new StringType(); 2122 this.display.setValue(value); 2123 } 2124 return this; 2125 } 2126 2127 /** 2128 * @return {@link #url} (The canonical URL of the map to use if this map contains no mapping.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 2129 */ 2130 public UriType getUrlElement() { 2131 if (this.url == null) 2132 if (Configuration.errorOnAutoCreate()) 2133 throw new Error("Attempt to auto-create ConceptMapGroupUnmappedComponent.url"); 2134 else if (Configuration.doAutoCreate()) 2135 this.url = new UriType(); // bb 2136 return this.url; 2137 } 2138 2139 public boolean hasUrlElement() { 2140 return this.url != null && !this.url.isEmpty(); 2141 } 2142 2143 public boolean hasUrl() { 2144 return this.url != null && !this.url.isEmpty(); 2145 } 2146 2147 /** 2148 * @param value {@link #url} (The canonical URL of the map to use if this map contains no mapping.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 2149 */ 2150 public ConceptMapGroupUnmappedComponent setUrlElement(UriType value) { 2151 this.url = value; 2152 return this; 2153 } 2154 2155 /** 2156 * @return The canonical URL of the map to use if this map contains no mapping. 2157 */ 2158 public String getUrl() { 2159 return this.url == null ? null : this.url.getValue(); 2160 } 2161 2162 /** 2163 * @param value The canonical URL of the map to use if this map contains no mapping. 2164 */ 2165 public ConceptMapGroupUnmappedComponent setUrl(String value) { 2166 if (Utilities.noString(value)) 2167 this.url = null; 2168 else { 2169 if (this.url == null) 2170 this.url = new UriType(); 2171 this.url.setValue(value); 2172 } 2173 return this; 2174 } 2175 2176 protected void listChildren(List<Property> children) { 2177 super.listChildren(children); 2178 children.add(new Property("mode", "code", "Defines which action to take if there is no match in the group. One of 3 actions is possible: use the unmapped code (this is useful when doing a mapping between versions, and only a few codes have changed), use a fixed code (a default code), or alternatively, a reference to a different concept map can be provided (by canonical URL).", 0, 1, mode)); 2179 children.add(new Property("code", "code", "The fixed code to use when the mode = 'fixed' - all unmapped codes are mapped to a single fixed code.", 0, 1, code)); 2180 children.add(new Property("display", "string", "The display for the code. The display is only provided to help editors when editing the concept map.", 0, 1, display)); 2181 children.add(new Property("url", "uri", "The canonical URL of the map to use if this map contains no mapping.", 0, 1, url)); 2182 } 2183 2184 @Override 2185 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2186 switch (_hash) { 2187 case 3357091: /*mode*/ return new Property("mode", "code", "Defines which action to take if there is no match in the group. One of 3 actions is possible: use the unmapped code (this is useful when doing a mapping between versions, and only a few codes have changed), use a fixed code (a default code), or alternatively, a reference to a different concept map can be provided (by canonical URL).", 0, 1, mode); 2188 case 3059181: /*code*/ return new Property("code", "code", "The fixed code to use when the mode = 'fixed' - all unmapped codes are mapped to a single fixed code.", 0, 1, code); 2189 case 1671764162: /*display*/ return new Property("display", "string", "The display for the code. The display is only provided to help editors when editing the concept map.", 0, 1, display); 2190 case 116079: /*url*/ return new Property("url", "uri", "The canonical URL of the map to use if this map contains no mapping.", 0, 1, url); 2191 default: return super.getNamedProperty(_hash, _name, _checkValid); 2192 } 2193 2194 } 2195 2196 @Override 2197 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2198 switch (hash) { 2199 case 3357091: /*mode*/ return this.mode == null ? new Base[0] : new Base[] {this.mode}; // Enumeration<ConceptMapGroupUnmappedMode> 2200 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType 2201 case 1671764162: /*display*/ return this.display == null ? new Base[0] : new Base[] {this.display}; // StringType 2202 case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType 2203 default: return super.getProperty(hash, name, checkValid); 2204 } 2205 2206 } 2207 2208 @Override 2209 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2210 switch (hash) { 2211 case 3357091: // mode 2212 value = new ConceptMapGroupUnmappedModeEnumFactory().fromType(castToCode(value)); 2213 this.mode = (Enumeration) value; // Enumeration<ConceptMapGroupUnmappedMode> 2214 return value; 2215 case 3059181: // code 2216 this.code = castToCode(value); // CodeType 2217 return value; 2218 case 1671764162: // display 2219 this.display = castToString(value); // StringType 2220 return value; 2221 case 116079: // url 2222 this.url = castToUri(value); // UriType 2223 return value; 2224 default: return super.setProperty(hash, name, value); 2225 } 2226 2227 } 2228 2229 @Override 2230 public Base setProperty(String name, Base value) throws FHIRException { 2231 if (name.equals("mode")) { 2232 value = new ConceptMapGroupUnmappedModeEnumFactory().fromType(castToCode(value)); 2233 this.mode = (Enumeration) value; // Enumeration<ConceptMapGroupUnmappedMode> 2234 } else if (name.equals("code")) { 2235 this.code = castToCode(value); // CodeType 2236 } else if (name.equals("display")) { 2237 this.display = castToString(value); // StringType 2238 } else if (name.equals("url")) { 2239 this.url = castToUri(value); // UriType 2240 } else 2241 return super.setProperty(name, value); 2242 return value; 2243 } 2244 2245 @Override 2246 public Base makeProperty(int hash, String name) throws FHIRException { 2247 switch (hash) { 2248 case 3357091: return getModeElement(); 2249 case 3059181: return getCodeElement(); 2250 case 1671764162: return getDisplayElement(); 2251 case 116079: return getUrlElement(); 2252 default: return super.makeProperty(hash, name); 2253 } 2254 2255 } 2256 2257 @Override 2258 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2259 switch (hash) { 2260 case 3357091: /*mode*/ return new String[] {"code"}; 2261 case 3059181: /*code*/ return new String[] {"code"}; 2262 case 1671764162: /*display*/ return new String[] {"string"}; 2263 case 116079: /*url*/ return new String[] {"uri"}; 2264 default: return super.getTypesForProperty(hash, name); 2265 } 2266 2267 } 2268 2269 @Override 2270 public Base addChild(String name) throws FHIRException { 2271 if (name.equals("mode")) { 2272 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.mode"); 2273 } 2274 else if (name.equals("code")) { 2275 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); 2276 } 2277 else if (name.equals("display")) { 2278 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.display"); 2279 } 2280 else if (name.equals("url")) { 2281 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.url"); 2282 } 2283 else 2284 return super.addChild(name); 2285 } 2286 2287 public ConceptMapGroupUnmappedComponent copy() { 2288 ConceptMapGroupUnmappedComponent dst = new ConceptMapGroupUnmappedComponent(); 2289 copyValues(dst); 2290 dst.mode = mode == null ? null : mode.copy(); 2291 dst.code = code == null ? null : code.copy(); 2292 dst.display = display == null ? null : display.copy(); 2293 dst.url = url == null ? null : url.copy(); 2294 return dst; 2295 } 2296 2297 @Override 2298 public boolean equalsDeep(Base other_) { 2299 if (!super.equalsDeep(other_)) 2300 return false; 2301 if (!(other_ instanceof ConceptMapGroupUnmappedComponent)) 2302 return false; 2303 ConceptMapGroupUnmappedComponent o = (ConceptMapGroupUnmappedComponent) other_; 2304 return compareDeep(mode, o.mode, true) && compareDeep(code, o.code, true) && compareDeep(display, o.display, true) 2305 && compareDeep(url, o.url, true); 2306 } 2307 2308 @Override 2309 public boolean equalsShallow(Base other_) { 2310 if (!super.equalsShallow(other_)) 2311 return false; 2312 if (!(other_ instanceof ConceptMapGroupUnmappedComponent)) 2313 return false; 2314 ConceptMapGroupUnmappedComponent o = (ConceptMapGroupUnmappedComponent) other_; 2315 return compareValues(mode, o.mode, true) && compareValues(code, o.code, true) && compareValues(display, o.display, true) 2316 && compareValues(url, o.url, true); 2317 } 2318 2319 public boolean isEmpty() { 2320 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(mode, code, display, url 2321 ); 2322 } 2323 2324 public String fhirType() { 2325 return "ConceptMap.group.unmapped"; 2326 2327 } 2328 2329 } 2330 2331 /** 2332 * A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance. 2333 */ 2334 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=1, modifier=false, summary=true) 2335 @Description(shortDefinition="Additional identifier for the concept map", formalDefinition="A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance." ) 2336 protected Identifier identifier; 2337 2338 /** 2339 * Explaination of why this concept map is needed and why it has been designed as it has. 2340 */ 2341 @Child(name = "purpose", type = {MarkdownType.class}, order=1, min=0, max=1, modifier=false, summary=false) 2342 @Description(shortDefinition="Why this concept map is defined", formalDefinition="Explaination of why this concept map is needed and why it has been designed as it has." ) 2343 protected MarkdownType purpose; 2344 2345 /** 2346 * A copyright statement relating to the concept map and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the concept map. 2347 */ 2348 @Child(name = "copyright", type = {MarkdownType.class}, order=2, min=0, max=1, modifier=false, summary=false) 2349 @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the concept map and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the concept map." ) 2350 protected MarkdownType copyright; 2351 2352 /** 2353 * The source value set that specifies the concepts that are being mapped. 2354 */ 2355 @Child(name = "source", type = {UriType.class, ValueSet.class}, order=3, min=0, max=1, modifier=false, summary=true) 2356 @Description(shortDefinition="Identifies the source of the concepts which are being mapped", formalDefinition="The source value set that specifies the concepts that are being mapped." ) 2357 protected Type source; 2358 2359 /** 2360 * The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made. 2361 */ 2362 @Child(name = "target", type = {UriType.class, ValueSet.class}, order=4, min=0, max=1, modifier=false, summary=true) 2363 @Description(shortDefinition="Provides context to the mappings", formalDefinition="The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made." ) 2364 protected Type target; 2365 2366 /** 2367 * A group of mappings that all have the same source and target system. 2368 */ 2369 @Child(name = "group", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 2370 @Description(shortDefinition="Same source and target systems", formalDefinition="A group of mappings that all have the same source and target system." ) 2371 protected List<ConceptMapGroupComponent> group; 2372 2373 private static final long serialVersionUID = -2081872580L; 2374 2375 /** 2376 * Constructor 2377 */ 2378 public ConceptMap() { 2379 super(); 2380 } 2381 2382 /** 2383 * Constructor 2384 */ 2385 public ConceptMap(Enumeration<PublicationStatus> status) { 2386 super(); 2387 this.status = status; 2388 } 2389 2390 /** 2391 * @return {@link #url} (An absolute URI that is used to identify this concept map when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this concept map is (or will be) published. The URL SHOULD include the major version of the concept map. For more information see [Technical and Business Versions](resource.html#versions).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 2392 */ 2393 public UriType getUrlElement() { 2394 if (this.url == null) 2395 if (Configuration.errorOnAutoCreate()) 2396 throw new Error("Attempt to auto-create ConceptMap.url"); 2397 else if (Configuration.doAutoCreate()) 2398 this.url = new UriType(); // bb 2399 return this.url; 2400 } 2401 2402 public boolean hasUrlElement() { 2403 return this.url != null && !this.url.isEmpty(); 2404 } 2405 2406 public boolean hasUrl() { 2407 return this.url != null && !this.url.isEmpty(); 2408 } 2409 2410 /** 2411 * @param value {@link #url} (An absolute URI that is used to identify this concept map when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this concept map is (or will be) published. The URL SHOULD include the major version of the concept map. For more information see [Technical and Business Versions](resource.html#versions).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 2412 */ 2413 public ConceptMap setUrlElement(UriType value) { 2414 this.url = value; 2415 return this; 2416 } 2417 2418 /** 2419 * @return An absolute URI that is used to identify this concept map when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this concept map is (or will be) published. The URL SHOULD include the major version of the concept map. For more information see [Technical and Business Versions](resource.html#versions). 2420 */ 2421 public String getUrl() { 2422 return this.url == null ? null : this.url.getValue(); 2423 } 2424 2425 /** 2426 * @param value An absolute URI that is used to identify this concept map when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this concept map is (or will be) published. The URL SHOULD include the major version of the concept map. For more information see [Technical and Business Versions](resource.html#versions). 2427 */ 2428 public ConceptMap setUrl(String value) { 2429 if (Utilities.noString(value)) 2430 this.url = null; 2431 else { 2432 if (this.url == null) 2433 this.url = new UriType(); 2434 this.url.setValue(value); 2435 } 2436 return this; 2437 } 2438 2439 /** 2440 * @return {@link #identifier} (A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance.) 2441 */ 2442 public Identifier getIdentifier() { 2443 if (this.identifier == null) 2444 if (Configuration.errorOnAutoCreate()) 2445 throw new Error("Attempt to auto-create ConceptMap.identifier"); 2446 else if (Configuration.doAutoCreate()) 2447 this.identifier = new Identifier(); // cc 2448 return this.identifier; 2449 } 2450 2451 public boolean hasIdentifier() { 2452 return this.identifier != null && !this.identifier.isEmpty(); 2453 } 2454 2455 /** 2456 * @param value {@link #identifier} (A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance.) 2457 */ 2458 public ConceptMap setIdentifier(Identifier value) { 2459 this.identifier = value; 2460 return this; 2461 } 2462 2463 /** 2464 * @return {@link #version} (The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the concept map author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value 2465 */ 2466 public StringType getVersionElement() { 2467 if (this.version == null) 2468 if (Configuration.errorOnAutoCreate()) 2469 throw new Error("Attempt to auto-create ConceptMap.version"); 2470 else if (Configuration.doAutoCreate()) 2471 this.version = new StringType(); // bb 2472 return this.version; 2473 } 2474 2475 public boolean hasVersionElement() { 2476 return this.version != null && !this.version.isEmpty(); 2477 } 2478 2479 public boolean hasVersion() { 2480 return this.version != null && !this.version.isEmpty(); 2481 } 2482 2483 /** 2484 * @param value {@link #version} (The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the concept map author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value 2485 */ 2486 public ConceptMap setVersionElement(StringType value) { 2487 this.version = value; 2488 return this; 2489 } 2490 2491 /** 2492 * @return The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the concept map author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. 2493 */ 2494 public String getVersion() { 2495 return this.version == null ? null : this.version.getValue(); 2496 } 2497 2498 /** 2499 * @param value The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the concept map author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. 2500 */ 2501 public ConceptMap setVersion(String value) { 2502 if (Utilities.noString(value)) 2503 this.version = null; 2504 else { 2505 if (this.version == null) 2506 this.version = new StringType(); 2507 this.version.setValue(value); 2508 } 2509 return this; 2510 } 2511 2512 /** 2513 * @return {@link #name} (A natural language name identifying the concept map. 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 2514 */ 2515 public StringType getNameElement() { 2516 if (this.name == null) 2517 if (Configuration.errorOnAutoCreate()) 2518 throw new Error("Attempt to auto-create ConceptMap.name"); 2519 else if (Configuration.doAutoCreate()) 2520 this.name = new StringType(); // bb 2521 return this.name; 2522 } 2523 2524 public boolean hasNameElement() { 2525 return this.name != null && !this.name.isEmpty(); 2526 } 2527 2528 public boolean hasName() { 2529 return this.name != null && !this.name.isEmpty(); 2530 } 2531 2532 /** 2533 * @param value {@link #name} (A natural language name identifying the concept map. 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 2534 */ 2535 public ConceptMap setNameElement(StringType value) { 2536 this.name = value; 2537 return this; 2538 } 2539 2540 /** 2541 * @return A natural language name identifying the concept map. This name should be usable as an identifier for the module by machine processing applications such as code generation. 2542 */ 2543 public String getName() { 2544 return this.name == null ? null : this.name.getValue(); 2545 } 2546 2547 /** 2548 * @param value A natural language name identifying the concept map. This name should be usable as an identifier for the module by machine processing applications such as code generation. 2549 */ 2550 public ConceptMap setName(String value) { 2551 if (Utilities.noString(value)) 2552 this.name = null; 2553 else { 2554 if (this.name == null) 2555 this.name = new StringType(); 2556 this.name.setValue(value); 2557 } 2558 return this; 2559 } 2560 2561 /** 2562 * @return {@link #title} (A short, descriptive, user-friendly title for the concept map.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 2563 */ 2564 public StringType getTitleElement() { 2565 if (this.title == null) 2566 if (Configuration.errorOnAutoCreate()) 2567 throw new Error("Attempt to auto-create ConceptMap.title"); 2568 else if (Configuration.doAutoCreate()) 2569 this.title = new StringType(); // bb 2570 return this.title; 2571 } 2572 2573 public boolean hasTitleElement() { 2574 return this.title != null && !this.title.isEmpty(); 2575 } 2576 2577 public boolean hasTitle() { 2578 return this.title != null && !this.title.isEmpty(); 2579 } 2580 2581 /** 2582 * @param value {@link #title} (A short, descriptive, user-friendly title for the concept map.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 2583 */ 2584 public ConceptMap setTitleElement(StringType value) { 2585 this.title = value; 2586 return this; 2587 } 2588 2589 /** 2590 * @return A short, descriptive, user-friendly title for the concept map. 2591 */ 2592 public String getTitle() { 2593 return this.title == null ? null : this.title.getValue(); 2594 } 2595 2596 /** 2597 * @param value A short, descriptive, user-friendly title for the concept map. 2598 */ 2599 public ConceptMap setTitle(String value) { 2600 if (Utilities.noString(value)) 2601 this.title = null; 2602 else { 2603 if (this.title == null) 2604 this.title = new StringType(); 2605 this.title.setValue(value); 2606 } 2607 return this; 2608 } 2609 2610 /** 2611 * @return {@link #status} (The status of this concept map. 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 2612 */ 2613 public Enumeration<PublicationStatus> getStatusElement() { 2614 if (this.status == null) 2615 if (Configuration.errorOnAutoCreate()) 2616 throw new Error("Attempt to auto-create ConceptMap.status"); 2617 else if (Configuration.doAutoCreate()) 2618 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb 2619 return this.status; 2620 } 2621 2622 public boolean hasStatusElement() { 2623 return this.status != null && !this.status.isEmpty(); 2624 } 2625 2626 public boolean hasStatus() { 2627 return this.status != null && !this.status.isEmpty(); 2628 } 2629 2630 /** 2631 * @param value {@link #status} (The status of this concept map. 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 2632 */ 2633 public ConceptMap setStatusElement(Enumeration<PublicationStatus> value) { 2634 this.status = value; 2635 return this; 2636 } 2637 2638 /** 2639 * @return The status of this concept map. Enables tracking the life-cycle of the content. 2640 */ 2641 public PublicationStatus getStatus() { 2642 return this.status == null ? null : this.status.getValue(); 2643 } 2644 2645 /** 2646 * @param value The status of this concept map. Enables tracking the life-cycle of the content. 2647 */ 2648 public ConceptMap setStatus(PublicationStatus value) { 2649 if (this.status == null) 2650 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); 2651 this.status.setValue(value); 2652 return this; 2653 } 2654 2655 /** 2656 * @return {@link #experimental} (A boolean value to indicate that this concept map is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value 2657 */ 2658 public BooleanType getExperimentalElement() { 2659 if (this.experimental == null) 2660 if (Configuration.errorOnAutoCreate()) 2661 throw new Error("Attempt to auto-create ConceptMap.experimental"); 2662 else if (Configuration.doAutoCreate()) 2663 this.experimental = new BooleanType(); // bb 2664 return this.experimental; 2665 } 2666 2667 public boolean hasExperimentalElement() { 2668 return this.experimental != null && !this.experimental.isEmpty(); 2669 } 2670 2671 public boolean hasExperimental() { 2672 return this.experimental != null && !this.experimental.isEmpty(); 2673 } 2674 2675 /** 2676 * @param value {@link #experimental} (A boolean value to indicate that this concept map is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value 2677 */ 2678 public ConceptMap setExperimentalElement(BooleanType value) { 2679 this.experimental = value; 2680 return this; 2681 } 2682 2683 /** 2684 * @return A boolean value to indicate that this concept map is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. 2685 */ 2686 public boolean getExperimental() { 2687 return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue(); 2688 } 2689 2690 /** 2691 * @param value A boolean value to indicate that this concept map is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. 2692 */ 2693 public ConceptMap setExperimental(boolean value) { 2694 if (this.experimental == null) 2695 this.experimental = new BooleanType(); 2696 this.experimental.setValue(value); 2697 return this; 2698 } 2699 2700 /** 2701 * @return {@link #date} (The date (and optionally time) when the concept map was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the concept map changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 2702 */ 2703 public DateTimeType getDateElement() { 2704 if (this.date == null) 2705 if (Configuration.errorOnAutoCreate()) 2706 throw new Error("Attempt to auto-create ConceptMap.date"); 2707 else if (Configuration.doAutoCreate()) 2708 this.date = new DateTimeType(); // bb 2709 return this.date; 2710 } 2711 2712 public boolean hasDateElement() { 2713 return this.date != null && !this.date.isEmpty(); 2714 } 2715 2716 public boolean hasDate() { 2717 return this.date != null && !this.date.isEmpty(); 2718 } 2719 2720 /** 2721 * @param value {@link #date} (The date (and optionally time) when the concept map was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the concept map changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 2722 */ 2723 public ConceptMap setDateElement(DateTimeType value) { 2724 this.date = value; 2725 return this; 2726 } 2727 2728 /** 2729 * @return The date (and optionally time) when the concept map was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the concept map changes. 2730 */ 2731 public Date getDate() { 2732 return this.date == null ? null : this.date.getValue(); 2733 } 2734 2735 /** 2736 * @param value The date (and optionally time) when the concept map was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the concept map changes. 2737 */ 2738 public ConceptMap setDate(Date value) { 2739 if (value == null) 2740 this.date = null; 2741 else { 2742 if (this.date == null) 2743 this.date = new DateTimeType(); 2744 this.date.setValue(value); 2745 } 2746 return this; 2747 } 2748 2749 /** 2750 * @return {@link #publisher} (The name of the individual or organization that published the concept map.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 2751 */ 2752 public StringType getPublisherElement() { 2753 if (this.publisher == null) 2754 if (Configuration.errorOnAutoCreate()) 2755 throw new Error("Attempt to auto-create ConceptMap.publisher"); 2756 else if (Configuration.doAutoCreate()) 2757 this.publisher = new StringType(); // bb 2758 return this.publisher; 2759 } 2760 2761 public boolean hasPublisherElement() { 2762 return this.publisher != null && !this.publisher.isEmpty(); 2763 } 2764 2765 public boolean hasPublisher() { 2766 return this.publisher != null && !this.publisher.isEmpty(); 2767 } 2768 2769 /** 2770 * @param value {@link #publisher} (The name of the individual or organization that published the concept map.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 2771 */ 2772 public ConceptMap setPublisherElement(StringType value) { 2773 this.publisher = value; 2774 return this; 2775 } 2776 2777 /** 2778 * @return The name of the individual or organization that published the concept map. 2779 */ 2780 public String getPublisher() { 2781 return this.publisher == null ? null : this.publisher.getValue(); 2782 } 2783 2784 /** 2785 * @param value The name of the individual or organization that published the concept map. 2786 */ 2787 public ConceptMap setPublisher(String value) { 2788 if (Utilities.noString(value)) 2789 this.publisher = null; 2790 else { 2791 if (this.publisher == null) 2792 this.publisher = new StringType(); 2793 this.publisher.setValue(value); 2794 } 2795 return this; 2796 } 2797 2798 /** 2799 * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.) 2800 */ 2801 public List<ContactDetail> getContact() { 2802 if (this.contact == null) 2803 this.contact = new ArrayList<ContactDetail>(); 2804 return this.contact; 2805 } 2806 2807 /** 2808 * @return Returns a reference to <code>this</code> for easy method chaining 2809 */ 2810 public ConceptMap setContact(List<ContactDetail> theContact) { 2811 this.contact = theContact; 2812 return this; 2813 } 2814 2815 public boolean hasContact() { 2816 if (this.contact == null) 2817 return false; 2818 for (ContactDetail item : this.contact) 2819 if (!item.isEmpty()) 2820 return true; 2821 return false; 2822 } 2823 2824 public ContactDetail addContact() { //3 2825 ContactDetail t = new ContactDetail(); 2826 if (this.contact == null) 2827 this.contact = new ArrayList<ContactDetail>(); 2828 this.contact.add(t); 2829 return t; 2830 } 2831 2832 public ConceptMap addContact(ContactDetail t) { //3 2833 if (t == null) 2834 return this; 2835 if (this.contact == null) 2836 this.contact = new ArrayList<ContactDetail>(); 2837 this.contact.add(t); 2838 return this; 2839 } 2840 2841 /** 2842 * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist 2843 */ 2844 public ContactDetail getContactFirstRep() { 2845 if (getContact().isEmpty()) { 2846 addContact(); 2847 } 2848 return getContact().get(0); 2849 } 2850 2851 /** 2852 * @return {@link #description} (A free text natural language description of the concept map from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 2853 */ 2854 public MarkdownType getDescriptionElement() { 2855 if (this.description == null) 2856 if (Configuration.errorOnAutoCreate()) 2857 throw new Error("Attempt to auto-create ConceptMap.description"); 2858 else if (Configuration.doAutoCreate()) 2859 this.description = new MarkdownType(); // bb 2860 return this.description; 2861 } 2862 2863 public boolean hasDescriptionElement() { 2864 return this.description != null && !this.description.isEmpty(); 2865 } 2866 2867 public boolean hasDescription() { 2868 return this.description != null && !this.description.isEmpty(); 2869 } 2870 2871 /** 2872 * @param value {@link #description} (A free text natural language description of the concept map from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 2873 */ 2874 public ConceptMap setDescriptionElement(MarkdownType value) { 2875 this.description = value; 2876 return this; 2877 } 2878 2879 /** 2880 * @return A free text natural language description of the concept map from a consumer's perspective. 2881 */ 2882 public String getDescription() { 2883 return this.description == null ? null : this.description.getValue(); 2884 } 2885 2886 /** 2887 * @param value A free text natural language description of the concept map from a consumer's perspective. 2888 */ 2889 public ConceptMap setDescription(String value) { 2890 if (value == null) 2891 this.description = null; 2892 else { 2893 if (this.description == null) 2894 this.description = new MarkdownType(); 2895 this.description.setValue(value); 2896 } 2897 return this; 2898 } 2899 2900 /** 2901 * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate concept map instances.) 2902 */ 2903 public List<UsageContext> getUseContext() { 2904 if (this.useContext == null) 2905 this.useContext = new ArrayList<UsageContext>(); 2906 return this.useContext; 2907 } 2908 2909 /** 2910 * @return Returns a reference to <code>this</code> for easy method chaining 2911 */ 2912 public ConceptMap setUseContext(List<UsageContext> theUseContext) { 2913 this.useContext = theUseContext; 2914 return this; 2915 } 2916 2917 public boolean hasUseContext() { 2918 if (this.useContext == null) 2919 return false; 2920 for (UsageContext item : this.useContext) 2921 if (!item.isEmpty()) 2922 return true; 2923 return false; 2924 } 2925 2926 public UsageContext addUseContext() { //3 2927 UsageContext t = new UsageContext(); 2928 if (this.useContext == null) 2929 this.useContext = new ArrayList<UsageContext>(); 2930 this.useContext.add(t); 2931 return t; 2932 } 2933 2934 public ConceptMap addUseContext(UsageContext t) { //3 2935 if (t == null) 2936 return this; 2937 if (this.useContext == null) 2938 this.useContext = new ArrayList<UsageContext>(); 2939 this.useContext.add(t); 2940 return this; 2941 } 2942 2943 /** 2944 * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist 2945 */ 2946 public UsageContext getUseContextFirstRep() { 2947 if (getUseContext().isEmpty()) { 2948 addUseContext(); 2949 } 2950 return getUseContext().get(0); 2951 } 2952 2953 /** 2954 * @return {@link #jurisdiction} (A legal or geographic region in which the concept map is intended to be used.) 2955 */ 2956 public List<CodeableConcept> getJurisdiction() { 2957 if (this.jurisdiction == null) 2958 this.jurisdiction = new ArrayList<CodeableConcept>(); 2959 return this.jurisdiction; 2960 } 2961 2962 /** 2963 * @return Returns a reference to <code>this</code> for easy method chaining 2964 */ 2965 public ConceptMap setJurisdiction(List<CodeableConcept> theJurisdiction) { 2966 this.jurisdiction = theJurisdiction; 2967 return this; 2968 } 2969 2970 public boolean hasJurisdiction() { 2971 if (this.jurisdiction == null) 2972 return false; 2973 for (CodeableConcept item : this.jurisdiction) 2974 if (!item.isEmpty()) 2975 return true; 2976 return false; 2977 } 2978 2979 public CodeableConcept addJurisdiction() { //3 2980 CodeableConcept t = new CodeableConcept(); 2981 if (this.jurisdiction == null) 2982 this.jurisdiction = new ArrayList<CodeableConcept>(); 2983 this.jurisdiction.add(t); 2984 return t; 2985 } 2986 2987 public ConceptMap addJurisdiction(CodeableConcept t) { //3 2988 if (t == null) 2989 return this; 2990 if (this.jurisdiction == null) 2991 this.jurisdiction = new ArrayList<CodeableConcept>(); 2992 this.jurisdiction.add(t); 2993 return this; 2994 } 2995 2996 /** 2997 * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist 2998 */ 2999 public CodeableConcept getJurisdictionFirstRep() { 3000 if (getJurisdiction().isEmpty()) { 3001 addJurisdiction(); 3002 } 3003 return getJurisdiction().get(0); 3004 } 3005 3006 /** 3007 * @return {@link #purpose} (Explaination of why this concept map is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value 3008 */ 3009 public MarkdownType getPurposeElement() { 3010 if (this.purpose == null) 3011 if (Configuration.errorOnAutoCreate()) 3012 throw new Error("Attempt to auto-create ConceptMap.purpose"); 3013 else if (Configuration.doAutoCreate()) 3014 this.purpose = new MarkdownType(); // bb 3015 return this.purpose; 3016 } 3017 3018 public boolean hasPurposeElement() { 3019 return this.purpose != null && !this.purpose.isEmpty(); 3020 } 3021 3022 public boolean hasPurpose() { 3023 return this.purpose != null && !this.purpose.isEmpty(); 3024 } 3025 3026 /** 3027 * @param value {@link #purpose} (Explaination of why this concept map is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value 3028 */ 3029 public ConceptMap setPurposeElement(MarkdownType value) { 3030 this.purpose = value; 3031 return this; 3032 } 3033 3034 /** 3035 * @return Explaination of why this concept map is needed and why it has been designed as it has. 3036 */ 3037 public String getPurpose() { 3038 return this.purpose == null ? null : this.purpose.getValue(); 3039 } 3040 3041 /** 3042 * @param value Explaination of why this concept map is needed and why it has been designed as it has. 3043 */ 3044 public ConceptMap setPurpose(String value) { 3045 if (value == null) 3046 this.purpose = null; 3047 else { 3048 if (this.purpose == null) 3049 this.purpose = new MarkdownType(); 3050 this.purpose.setValue(value); 3051 } 3052 return this; 3053 } 3054 3055 /** 3056 * @return {@link #copyright} (A copyright statement relating to the concept map and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the concept map.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value 3057 */ 3058 public MarkdownType getCopyrightElement() { 3059 if (this.copyright == null) 3060 if (Configuration.errorOnAutoCreate()) 3061 throw new Error("Attempt to auto-create ConceptMap.copyright"); 3062 else if (Configuration.doAutoCreate()) 3063 this.copyright = new MarkdownType(); // bb 3064 return this.copyright; 3065 } 3066 3067 public boolean hasCopyrightElement() { 3068 return this.copyright != null && !this.copyright.isEmpty(); 3069 } 3070 3071 public boolean hasCopyright() { 3072 return this.copyright != null && !this.copyright.isEmpty(); 3073 } 3074 3075 /** 3076 * @param value {@link #copyright} (A copyright statement relating to the concept map and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the concept map.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value 3077 */ 3078 public ConceptMap setCopyrightElement(MarkdownType value) { 3079 this.copyright = value; 3080 return this; 3081 } 3082 3083 /** 3084 * @return A copyright statement relating to the concept map and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the concept map. 3085 */ 3086 public String getCopyright() { 3087 return this.copyright == null ? null : this.copyright.getValue(); 3088 } 3089 3090 /** 3091 * @param value A copyright statement relating to the concept map and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the concept map. 3092 */ 3093 public ConceptMap setCopyright(String value) { 3094 if (value == null) 3095 this.copyright = null; 3096 else { 3097 if (this.copyright == null) 3098 this.copyright = new MarkdownType(); 3099 this.copyright.setValue(value); 3100 } 3101 return this; 3102 } 3103 3104 /** 3105 * @return {@link #source} (The source value set that specifies the concepts that are being mapped.) 3106 */ 3107 public Type getSource() { 3108 return this.source; 3109 } 3110 3111 /** 3112 * @return {@link #source} (The source value set that specifies the concepts that are being mapped.) 3113 */ 3114 public UriType getSourceUriType() throws FHIRException { 3115 if (this.source == null) 3116 return null; 3117 if (!(this.source instanceof UriType)) 3118 throw new FHIRException("Type mismatch: the type UriType was expected, but "+this.source.getClass().getName()+" was encountered"); 3119 return (UriType) this.source; 3120 } 3121 3122 public boolean hasSourceUriType() { 3123 return this != null && this.source instanceof UriType; 3124 } 3125 3126 /** 3127 * @return {@link #source} (The source value set that specifies the concepts that are being mapped.) 3128 */ 3129 public Reference getSourceReference() throws FHIRException { 3130 if (this.source == null) 3131 return null; 3132 if (!(this.source instanceof Reference)) 3133 throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.source.getClass().getName()+" was encountered"); 3134 return (Reference) this.source; 3135 } 3136 3137 public boolean hasSourceReference() { 3138 return this != null && this.source instanceof Reference; 3139 } 3140 3141 public boolean hasSource() { 3142 return this.source != null && !this.source.isEmpty(); 3143 } 3144 3145 /** 3146 * @param value {@link #source} (The source value set that specifies the concepts that are being mapped.) 3147 */ 3148 public ConceptMap setSource(Type value) throws FHIRFormatError { 3149 if (value != null && !(value instanceof UriType || value instanceof Reference)) 3150 throw new FHIRFormatError("Not the right type for ConceptMap.source[x]: "+value.fhirType()); 3151 this.source = value; 3152 return this; 3153 } 3154 3155 /** 3156 * @return {@link #target} (The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made.) 3157 */ 3158 public Type getTarget() { 3159 return this.target; 3160 } 3161 3162 /** 3163 * @return {@link #target} (The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made.) 3164 */ 3165 public UriType getTargetUriType() throws FHIRException { 3166 if (this.target == null) 3167 return null; 3168 if (!(this.target instanceof UriType)) 3169 throw new FHIRException("Type mismatch: the type UriType was expected, but "+this.target.getClass().getName()+" was encountered"); 3170 return (UriType) this.target; 3171 } 3172 3173 public boolean hasTargetUriType() { 3174 return this != null && this.target instanceof UriType; 3175 } 3176 3177 /** 3178 * @return {@link #target} (The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made.) 3179 */ 3180 public Reference getTargetReference() throws FHIRException { 3181 if (this.target == null) 3182 return null; 3183 if (!(this.target instanceof Reference)) 3184 throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.target.getClass().getName()+" was encountered"); 3185 return (Reference) this.target; 3186 } 3187 3188 public boolean hasTargetReference() { 3189 return this != null && this.target instanceof Reference; 3190 } 3191 3192 public boolean hasTarget() { 3193 return this.target != null && !this.target.isEmpty(); 3194 } 3195 3196 /** 3197 * @param value {@link #target} (The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made.) 3198 */ 3199 public ConceptMap setTarget(Type value) throws FHIRFormatError { 3200 if (value != null && !(value instanceof UriType || value instanceof Reference)) 3201 throw new FHIRFormatError("Not the right type for ConceptMap.target[x]: "+value.fhirType()); 3202 this.target = value; 3203 return this; 3204 } 3205 3206 /** 3207 * @return {@link #group} (A group of mappings that all have the same source and target system.) 3208 */ 3209 public List<ConceptMapGroupComponent> getGroup() { 3210 if (this.group == null) 3211 this.group = new ArrayList<ConceptMapGroupComponent>(); 3212 return this.group; 3213 } 3214 3215 /** 3216 * @return Returns a reference to <code>this</code> for easy method chaining 3217 */ 3218 public ConceptMap setGroup(List<ConceptMapGroupComponent> theGroup) { 3219 this.group = theGroup; 3220 return this; 3221 } 3222 3223 public boolean hasGroup() { 3224 if (this.group == null) 3225 return false; 3226 for (ConceptMapGroupComponent item : this.group) 3227 if (!item.isEmpty()) 3228 return true; 3229 return false; 3230 } 3231 3232 public ConceptMapGroupComponent addGroup() { //3 3233 ConceptMapGroupComponent t = new ConceptMapGroupComponent(); 3234 if (this.group == null) 3235 this.group = new ArrayList<ConceptMapGroupComponent>(); 3236 this.group.add(t); 3237 return t; 3238 } 3239 3240 public ConceptMap addGroup(ConceptMapGroupComponent t) { //3 3241 if (t == null) 3242 return this; 3243 if (this.group == null) 3244 this.group = new ArrayList<ConceptMapGroupComponent>(); 3245 this.group.add(t); 3246 return this; 3247 } 3248 3249 /** 3250 * @return The first repetition of repeating field {@link #group}, creating it if it does not already exist 3251 */ 3252 public ConceptMapGroupComponent getGroupFirstRep() { 3253 if (getGroup().isEmpty()) { 3254 addGroup(); 3255 } 3256 return getGroup().get(0); 3257 } 3258 3259 protected void listChildren(List<Property> children) { 3260 super.listChildren(children); 3261 children.add(new Property("url", "uri", "An absolute URI that is used to identify this concept map when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this concept map is (or will be) published. The URL SHOULD include the major version of the concept map. For more information see [Technical and Business Versions](resource.html#versions).", 0, 1, url)); 3262 children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, 1, identifier)); 3263 children.add(new Property("version", "string", "The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the concept map author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version)); 3264 children.add(new Property("name", "string", "A natural language name identifying the concept map. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); 3265 children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the concept map.", 0, 1, title)); 3266 children.add(new Property("status", "code", "The status of this concept map. Enables tracking the life-cycle of the content.", 0, 1, status)); 3267 children.add(new Property("experimental", "boolean", "A boolean value to indicate that this concept map is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, 1, experimental)); 3268 children.add(new Property("date", "dateTime", "The date (and optionally time) when the concept map was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the concept map changes.", 0, 1, date)); 3269 children.add(new Property("publisher", "string", "The name of the individual or organization that published the concept map.", 0, 1, publisher)); 3270 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)); 3271 children.add(new Property("description", "markdown", "A free text natural language description of the concept map from a consumer's perspective.", 0, 1, description)); 3272 children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate concept map instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); 3273 children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the concept map is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction)); 3274 children.add(new Property("purpose", "markdown", "Explaination of why this concept map is needed and why it has been designed as it has.", 0, 1, purpose)); 3275 children.add(new Property("copyright", "markdown", "A copyright statement relating to the concept map and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the concept map.", 0, 1, copyright)); 3276 children.add(new Property("source[x]", "uri|Reference(ValueSet)", "The source value set that specifies the concepts that are being mapped.", 0, 1, source)); 3277 children.add(new Property("target[x]", "uri|Reference(ValueSet)", "The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made.", 0, 1, target)); 3278 children.add(new Property("group", "", "A group of mappings that all have the same source and target system.", 0, java.lang.Integer.MAX_VALUE, group)); 3279 } 3280 3281 @Override 3282 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 3283 switch (_hash) { 3284 case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this concept map when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this concept map is (or will be) published. The URL SHOULD include the major version of the concept map. For more information see [Technical and Business Versions](resource.html#versions).", 0, 1, url); 3285 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, 1, identifier); 3286 case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the concept map author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version); 3287 case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the concept map. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); 3288 case 110371416: /*title*/ return new Property("title", "string", "A short, descriptive, user-friendly title for the concept map.", 0, 1, title); 3289 case -892481550: /*status*/ return new Property("status", "code", "The status of this concept map. Enables tracking the life-cycle of the content.", 0, 1, status); 3290 case -404562712: /*experimental*/ return new Property("experimental", "boolean", "A boolean value to indicate that this concept map is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, 1, experimental); 3291 case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the concept map was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the concept map changes.", 0, 1, date); 3292 case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the individual or organization that published the concept map.", 0, 1, publisher); 3293 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); 3294 case -1724546052: /*description*/ return new Property("description", "markdown", "A free text natural language description of the concept map from a consumer's perspective.", 0, 1, description); 3295 case -669707736: /*useContext*/ return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate concept map instances.", 0, java.lang.Integer.MAX_VALUE, useContext); 3296 case -507075711: /*jurisdiction*/ return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the concept map is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction); 3297 case -220463842: /*purpose*/ return new Property("purpose", "markdown", "Explaination of why this concept map is needed and why it has been designed as it has.", 0, 1, purpose); 3298 case 1522889671: /*copyright*/ return new Property("copyright", "markdown", "A copyright statement relating to the concept map and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the concept map.", 0, 1, copyright); 3299 case -1698413947: /*source[x]*/ return new Property("source[x]", "uri|Reference(ValueSet)", "The source value set that specifies the concepts that are being mapped.", 0, 1, source); 3300 case -896505829: /*source*/ return new Property("source[x]", "uri|Reference(ValueSet)", "The source value set that specifies the concepts that are being mapped.", 0, 1, source); 3301 case -1698419887: /*sourceUri*/ return new Property("source[x]", "uri|Reference(ValueSet)", "The source value set that specifies the concepts that are being mapped.", 0, 1, source); 3302 case -244259472: /*sourceReference*/ return new Property("source[x]", "uri|Reference(ValueSet)", "The source value set that specifies the concepts that are being mapped.", 0, 1, source); 3303 case -815579825: /*target[x]*/ return new Property("target[x]", "uri|Reference(ValueSet)", "The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made.", 0, 1, target); 3304 case -880905839: /*target*/ return new Property("target[x]", "uri|Reference(ValueSet)", "The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made.", 0, 1, target); 3305 case -815585765: /*targetUri*/ return new Property("target[x]", "uri|Reference(ValueSet)", "The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made.", 0, 1, target); 3306 case 1259806906: /*targetReference*/ return new Property("target[x]", "uri|Reference(ValueSet)", "The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made.", 0, 1, target); 3307 case 98629247: /*group*/ return new Property("group", "", "A group of mappings that all have the same source and target system.", 0, java.lang.Integer.MAX_VALUE, group); 3308 default: return super.getNamedProperty(_hash, _name, _checkValid); 3309 } 3310 3311 } 3312 3313 @Override 3314 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 3315 switch (hash) { 3316 case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType 3317 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // Identifier 3318 case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType 3319 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 3320 case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType 3321 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus> 3322 case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType 3323 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 3324 case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType 3325 case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail 3326 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType 3327 case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext 3328 case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept 3329 case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // MarkdownType 3330 case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType 3331 case -896505829: /*source*/ return this.source == null ? new Base[0] : new Base[] {this.source}; // Type 3332 case -880905839: /*target*/ return this.target == null ? new Base[0] : new Base[] {this.target}; // Type 3333 case 98629247: /*group*/ return this.group == null ? new Base[0] : this.group.toArray(new Base[this.group.size()]); // ConceptMapGroupComponent 3334 default: return super.getProperty(hash, name, checkValid); 3335 } 3336 3337 } 3338 3339 @Override 3340 public Base setProperty(int hash, String name, Base value) throws FHIRException { 3341 switch (hash) { 3342 case 116079: // url 3343 this.url = castToUri(value); // UriType 3344 return value; 3345 case -1618432855: // identifier 3346 this.identifier = castToIdentifier(value); // Identifier 3347 return value; 3348 case 351608024: // version 3349 this.version = castToString(value); // StringType 3350 return value; 3351 case 3373707: // name 3352 this.name = castToString(value); // StringType 3353 return value; 3354 case 110371416: // title 3355 this.title = castToString(value); // StringType 3356 return value; 3357 case -892481550: // status 3358 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 3359 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 3360 return value; 3361 case -404562712: // experimental 3362 this.experimental = castToBoolean(value); // BooleanType 3363 return value; 3364 case 3076014: // date 3365 this.date = castToDateTime(value); // DateTimeType 3366 return value; 3367 case 1447404028: // publisher 3368 this.publisher = castToString(value); // StringType 3369 return value; 3370 case 951526432: // contact 3371 this.getContact().add(castToContactDetail(value)); // ContactDetail 3372 return value; 3373 case -1724546052: // description 3374 this.description = castToMarkdown(value); // MarkdownType 3375 return value; 3376 case -669707736: // useContext 3377 this.getUseContext().add(castToUsageContext(value)); // UsageContext 3378 return value; 3379 case -507075711: // jurisdiction 3380 this.getJurisdiction().add(castToCodeableConcept(value)); // CodeableConcept 3381 return value; 3382 case -220463842: // purpose 3383 this.purpose = castToMarkdown(value); // MarkdownType 3384 return value; 3385 case 1522889671: // copyright 3386 this.copyright = castToMarkdown(value); // MarkdownType 3387 return value; 3388 case -896505829: // source 3389 this.source = castToType(value); // Type 3390 return value; 3391 case -880905839: // target 3392 this.target = castToType(value); // Type 3393 return value; 3394 case 98629247: // group 3395 this.getGroup().add((ConceptMapGroupComponent) value); // ConceptMapGroupComponent 3396 return value; 3397 default: return super.setProperty(hash, name, value); 3398 } 3399 3400 } 3401 3402 @Override 3403 public Base setProperty(String name, Base value) throws FHIRException { 3404 if (name.equals("url")) { 3405 this.url = castToUri(value); // UriType 3406 } else if (name.equals("identifier")) { 3407 this.identifier = castToIdentifier(value); // Identifier 3408 } else if (name.equals("version")) { 3409 this.version = castToString(value); // StringType 3410 } else if (name.equals("name")) { 3411 this.name = castToString(value); // StringType 3412 } else if (name.equals("title")) { 3413 this.title = castToString(value); // StringType 3414 } else if (name.equals("status")) { 3415 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 3416 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 3417 } else if (name.equals("experimental")) { 3418 this.experimental = castToBoolean(value); // BooleanType 3419 } else if (name.equals("date")) { 3420 this.date = castToDateTime(value); // DateTimeType 3421 } else if (name.equals("publisher")) { 3422 this.publisher = castToString(value); // StringType 3423 } else if (name.equals("contact")) { 3424 this.getContact().add(castToContactDetail(value)); 3425 } else if (name.equals("description")) { 3426 this.description = castToMarkdown(value); // MarkdownType 3427 } else if (name.equals("useContext")) { 3428 this.getUseContext().add(castToUsageContext(value)); 3429 } else if (name.equals("jurisdiction")) { 3430 this.getJurisdiction().add(castToCodeableConcept(value)); 3431 } else if (name.equals("purpose")) { 3432 this.purpose = castToMarkdown(value); // MarkdownType 3433 } else if (name.equals("copyright")) { 3434 this.copyright = castToMarkdown(value); // MarkdownType 3435 } else if (name.equals("source[x]")) { 3436 this.source = castToType(value); // Type 3437 } else if (name.equals("target[x]")) { 3438 this.target = castToType(value); // Type 3439 } else if (name.equals("group")) { 3440 this.getGroup().add((ConceptMapGroupComponent) value); 3441 } else 3442 return super.setProperty(name, value); 3443 return value; 3444 } 3445 3446 @Override 3447 public Base makeProperty(int hash, String name) throws FHIRException { 3448 switch (hash) { 3449 case 116079: return getUrlElement(); 3450 case -1618432855: return getIdentifier(); 3451 case 351608024: return getVersionElement(); 3452 case 3373707: return getNameElement(); 3453 case 110371416: return getTitleElement(); 3454 case -892481550: return getStatusElement(); 3455 case -404562712: return getExperimentalElement(); 3456 case 3076014: return getDateElement(); 3457 case 1447404028: return getPublisherElement(); 3458 case 951526432: return addContact(); 3459 case -1724546052: return getDescriptionElement(); 3460 case -669707736: return addUseContext(); 3461 case -507075711: return addJurisdiction(); 3462 case -220463842: return getPurposeElement(); 3463 case 1522889671: return getCopyrightElement(); 3464 case -1698413947: return getSource(); 3465 case -896505829: return getSource(); 3466 case -815579825: return getTarget(); 3467 case -880905839: return getTarget(); 3468 case 98629247: return addGroup(); 3469 default: return super.makeProperty(hash, name); 3470 } 3471 3472 } 3473 3474 @Override 3475 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 3476 switch (hash) { 3477 case 116079: /*url*/ return new String[] {"uri"}; 3478 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 3479 case 351608024: /*version*/ return new String[] {"string"}; 3480 case 3373707: /*name*/ return new String[] {"string"}; 3481 case 110371416: /*title*/ return new String[] {"string"}; 3482 case -892481550: /*status*/ return new String[] {"code"}; 3483 case -404562712: /*experimental*/ return new String[] {"boolean"}; 3484 case 3076014: /*date*/ return new String[] {"dateTime"}; 3485 case 1447404028: /*publisher*/ return new String[] {"string"}; 3486 case 951526432: /*contact*/ return new String[] {"ContactDetail"}; 3487 case -1724546052: /*description*/ return new String[] {"markdown"}; 3488 case -669707736: /*useContext*/ return new String[] {"UsageContext"}; 3489 case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"}; 3490 case -220463842: /*purpose*/ return new String[] {"markdown"}; 3491 case 1522889671: /*copyright*/ return new String[] {"markdown"}; 3492 case -896505829: /*source*/ return new String[] {"uri", "Reference"}; 3493 case -880905839: /*target*/ return new String[] {"uri", "Reference"}; 3494 case 98629247: /*group*/ return new String[] {}; 3495 default: return super.getTypesForProperty(hash, name); 3496 } 3497 3498 } 3499 3500 @Override 3501 public Base addChild(String name) throws FHIRException { 3502 if (name.equals("url")) { 3503 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.url"); 3504 } 3505 else if (name.equals("identifier")) { 3506 this.identifier = new Identifier(); 3507 return this.identifier; 3508 } 3509 else if (name.equals("version")) { 3510 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.version"); 3511 } 3512 else if (name.equals("name")) { 3513 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.name"); 3514 } 3515 else if (name.equals("title")) { 3516 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.title"); 3517 } 3518 else if (name.equals("status")) { 3519 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.status"); 3520 } 3521 else if (name.equals("experimental")) { 3522 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.experimental"); 3523 } 3524 else if (name.equals("date")) { 3525 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.date"); 3526 } 3527 else if (name.equals("publisher")) { 3528 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.publisher"); 3529 } 3530 else if (name.equals("contact")) { 3531 return addContact(); 3532 } 3533 else if (name.equals("description")) { 3534 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.description"); 3535 } 3536 else if (name.equals("useContext")) { 3537 return addUseContext(); 3538 } 3539 else if (name.equals("jurisdiction")) { 3540 return addJurisdiction(); 3541 } 3542 else if (name.equals("purpose")) { 3543 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.purpose"); 3544 } 3545 else if (name.equals("copyright")) { 3546 throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.copyright"); 3547 } 3548 else if (name.equals("sourceUri")) { 3549 this.source = new UriType(); 3550 return this.source; 3551 } 3552 else if (name.equals("sourceReference")) { 3553 this.source = new Reference(); 3554 return this.source; 3555 } 3556 else if (name.equals("targetUri")) { 3557 this.target = new UriType(); 3558 return this.target; 3559 } 3560 else if (name.equals("targetReference")) { 3561 this.target = new Reference(); 3562 return this.target; 3563 } 3564 else if (name.equals("group")) { 3565 return addGroup(); 3566 } 3567 else 3568 return super.addChild(name); 3569 } 3570 3571 public String fhirType() { 3572 return "ConceptMap"; 3573 3574 } 3575 3576 public ConceptMap copy() { 3577 ConceptMap dst = new ConceptMap(); 3578 copyValues(dst); 3579 dst.url = url == null ? null : url.copy(); 3580 dst.identifier = identifier == null ? null : identifier.copy(); 3581 dst.version = version == null ? null : version.copy(); 3582 dst.name = name == null ? null : name.copy(); 3583 dst.title = title == null ? null : title.copy(); 3584 dst.status = status == null ? null : status.copy(); 3585 dst.experimental = experimental == null ? null : experimental.copy(); 3586 dst.date = date == null ? null : date.copy(); 3587 dst.publisher = publisher == null ? null : publisher.copy(); 3588 if (contact != null) { 3589 dst.contact = new ArrayList<ContactDetail>(); 3590 for (ContactDetail i : contact) 3591 dst.contact.add(i.copy()); 3592 }; 3593 dst.description = description == null ? null : description.copy(); 3594 if (useContext != null) { 3595 dst.useContext = new ArrayList<UsageContext>(); 3596 for (UsageContext i : useContext) 3597 dst.useContext.add(i.copy()); 3598 }; 3599 if (jurisdiction != null) { 3600 dst.jurisdiction = new ArrayList<CodeableConcept>(); 3601 for (CodeableConcept i : jurisdiction) 3602 dst.jurisdiction.add(i.copy()); 3603 }; 3604 dst.purpose = purpose == null ? null : purpose.copy(); 3605 dst.copyright = copyright == null ? null : copyright.copy(); 3606 dst.source = source == null ? null : source.copy(); 3607 dst.target = target == null ? null : target.copy(); 3608 if (group != null) { 3609 dst.group = new ArrayList<ConceptMapGroupComponent>(); 3610 for (ConceptMapGroupComponent i : group) 3611 dst.group.add(i.copy()); 3612 }; 3613 return dst; 3614 } 3615 3616 protected ConceptMap typedCopy() { 3617 return copy(); 3618 } 3619 3620 @Override 3621 public boolean equalsDeep(Base other_) { 3622 if (!super.equalsDeep(other_)) 3623 return false; 3624 if (!(other_ instanceof ConceptMap)) 3625 return false; 3626 ConceptMap o = (ConceptMap) other_; 3627 return compareDeep(identifier, o.identifier, true) && compareDeep(purpose, o.purpose, true) && compareDeep(copyright, o.copyright, true) 3628 && compareDeep(source, o.source, true) && compareDeep(target, o.target, true) && compareDeep(group, o.group, true) 3629 ; 3630 } 3631 3632 @Override 3633 public boolean equalsShallow(Base other_) { 3634 if (!super.equalsShallow(other_)) 3635 return false; 3636 if (!(other_ instanceof ConceptMap)) 3637 return false; 3638 ConceptMap o = (ConceptMap) other_; 3639 return compareValues(purpose, o.purpose, true) && compareValues(copyright, o.copyright, true); 3640 } 3641 3642 public boolean isEmpty() { 3643 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, purpose, copyright 3644 , source, target, group); 3645 } 3646 3647 @Override 3648 public ResourceType getResourceType() { 3649 return ResourceType.ConceptMap; 3650 } 3651 3652 /** 3653 * Search parameter: <b>date</b> 3654 * <p> 3655 * Description: <b>The concept map publication date</b><br> 3656 * Type: <b>date</b><br> 3657 * Path: <b>ConceptMap.date</b><br> 3658 * </p> 3659 */ 3660 @SearchParamDefinition(name="date", path="ConceptMap.date", description="The concept map publication date", type="date" ) 3661 public static final String SP_DATE = "date"; 3662 /** 3663 * <b>Fluent Client</b> search parameter constant for <b>date</b> 3664 * <p> 3665 * Description: <b>The concept map publication date</b><br> 3666 * Type: <b>date</b><br> 3667 * Path: <b>ConceptMap.date</b><br> 3668 * </p> 3669 */ 3670 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 3671 3672 /** 3673 * Search parameter: <b>identifier</b> 3674 * <p> 3675 * Description: <b>External identifier for the concept map</b><br> 3676 * Type: <b>token</b><br> 3677 * Path: <b>ConceptMap.identifier</b><br> 3678 * </p> 3679 */ 3680 @SearchParamDefinition(name="identifier", path="ConceptMap.identifier", description="External identifier for the concept map", type="token" ) 3681 public static final String SP_IDENTIFIER = "identifier"; 3682 /** 3683 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 3684 * <p> 3685 * Description: <b>External identifier for the concept map</b><br> 3686 * Type: <b>token</b><br> 3687 * Path: <b>ConceptMap.identifier</b><br> 3688 * </p> 3689 */ 3690 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 3691 3692 /** 3693 * Search parameter: <b>product</b> 3694 * <p> 3695 * Description: <b>Reference to property mapping depends on</b><br> 3696 * Type: <b>uri</b><br> 3697 * Path: <b>ConceptMap.group.element.target.product.property</b><br> 3698 * </p> 3699 */ 3700 @SearchParamDefinition(name="product", path="ConceptMap.group.element.target.product.property", description="Reference to property mapping depends on", type="uri" ) 3701 public static final String SP_PRODUCT = "product"; 3702 /** 3703 * <b>Fluent Client</b> search parameter constant for <b>product</b> 3704 * <p> 3705 * Description: <b>Reference to property mapping depends on</b><br> 3706 * Type: <b>uri</b><br> 3707 * Path: <b>ConceptMap.group.element.target.product.property</b><br> 3708 * </p> 3709 */ 3710 public static final ca.uhn.fhir.rest.gclient.UriClientParam PRODUCT = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_PRODUCT); 3711 3712 /** 3713 * Search parameter: <b>other</b> 3714 * <p> 3715 * Description: <b>Canonical URL for other concept map</b><br> 3716 * Type: <b>uri</b><br> 3717 * Path: <b>ConceptMap.group.unmapped.url</b><br> 3718 * </p> 3719 */ 3720 @SearchParamDefinition(name="other", path="ConceptMap.group.unmapped.url", description="Canonical URL for other concept map", type="uri" ) 3721 public static final String SP_OTHER = "other"; 3722 /** 3723 * <b>Fluent Client</b> search parameter constant for <b>other</b> 3724 * <p> 3725 * Description: <b>Canonical URL for other concept map</b><br> 3726 * Type: <b>uri</b><br> 3727 * Path: <b>ConceptMap.group.unmapped.url</b><br> 3728 * </p> 3729 */ 3730 public static final ca.uhn.fhir.rest.gclient.UriClientParam OTHER = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_OTHER); 3731 3732 /** 3733 * Search parameter: <b>target-system</b> 3734 * <p> 3735 * Description: <b>System of the target (if necessary)</b><br> 3736 * Type: <b>uri</b><br> 3737 * Path: <b>ConceptMap.group.target</b><br> 3738 * </p> 3739 */ 3740 @SearchParamDefinition(name="target-system", path="ConceptMap.group.target", description="System of the target (if necessary)", type="uri" ) 3741 public static final String SP_TARGET_SYSTEM = "target-system"; 3742 /** 3743 * <b>Fluent Client</b> search parameter constant for <b>target-system</b> 3744 * <p> 3745 * Description: <b>System of the target (if necessary)</b><br> 3746 * Type: <b>uri</b><br> 3747 * Path: <b>ConceptMap.group.target</b><br> 3748 * </p> 3749 */ 3750 public static final ca.uhn.fhir.rest.gclient.UriClientParam TARGET_SYSTEM = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_TARGET_SYSTEM); 3751 3752 /** 3753 * Search parameter: <b>dependson</b> 3754 * <p> 3755 * Description: <b>Reference to property mapping depends on</b><br> 3756 * Type: <b>uri</b><br> 3757 * Path: <b>ConceptMap.group.element.target.dependsOn.property</b><br> 3758 * </p> 3759 */ 3760 @SearchParamDefinition(name="dependson", path="ConceptMap.group.element.target.dependsOn.property", description="Reference to property mapping depends on", type="uri" ) 3761 public static final String SP_DEPENDSON = "dependson"; 3762 /** 3763 * <b>Fluent Client</b> search parameter constant for <b>dependson</b> 3764 * <p> 3765 * Description: <b>Reference to property mapping depends on</b><br> 3766 * Type: <b>uri</b><br> 3767 * Path: <b>ConceptMap.group.element.target.dependsOn.property</b><br> 3768 * </p> 3769 */ 3770 public static final ca.uhn.fhir.rest.gclient.UriClientParam DEPENDSON = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_DEPENDSON); 3771 3772 /** 3773 * Search parameter: <b>jurisdiction</b> 3774 * <p> 3775 * Description: <b>Intended jurisdiction for the concept map</b><br> 3776 * Type: <b>token</b><br> 3777 * Path: <b>ConceptMap.jurisdiction</b><br> 3778 * </p> 3779 */ 3780 @SearchParamDefinition(name="jurisdiction", path="ConceptMap.jurisdiction", description="Intended jurisdiction for the concept map", type="token" ) 3781 public static final String SP_JURISDICTION = "jurisdiction"; 3782 /** 3783 * <b>Fluent Client</b> search parameter constant for <b>jurisdiction</b> 3784 * <p> 3785 * Description: <b>Intended jurisdiction for the concept map</b><br> 3786 * Type: <b>token</b><br> 3787 * Path: <b>ConceptMap.jurisdiction</b><br> 3788 * </p> 3789 */ 3790 public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION); 3791 3792 /** 3793 * Search parameter: <b>description</b> 3794 * <p> 3795 * Description: <b>The description of the concept map</b><br> 3796 * Type: <b>string</b><br> 3797 * Path: <b>ConceptMap.description</b><br> 3798 * </p> 3799 */ 3800 @SearchParamDefinition(name="description", path="ConceptMap.description", description="The description of the concept map", type="string" ) 3801 public static final String SP_DESCRIPTION = "description"; 3802 /** 3803 * <b>Fluent Client</b> search parameter constant for <b>description</b> 3804 * <p> 3805 * Description: <b>The description of the concept map</b><br> 3806 * Type: <b>string</b><br> 3807 * Path: <b>ConceptMap.description</b><br> 3808 * </p> 3809 */ 3810 public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); 3811 3812 /** 3813 * Search parameter: <b>source</b> 3814 * <p> 3815 * Description: <b>Identifies the source of the concepts which are being mapped</b><br> 3816 * Type: <b>reference</b><br> 3817 * Path: <b>ConceptMap.sourceReference</b><br> 3818 * </p> 3819 */ 3820 @SearchParamDefinition(name="source", path="ConceptMap.source.as(Reference)", description="Identifies the source of the concepts which are being mapped", type="reference", target={ValueSet.class } ) 3821 public static final String SP_SOURCE = "source"; 3822 /** 3823 * <b>Fluent Client</b> search parameter constant for <b>source</b> 3824 * <p> 3825 * Description: <b>Identifies the source of the concepts which are being mapped</b><br> 3826 * Type: <b>reference</b><br> 3827 * Path: <b>ConceptMap.sourceReference</b><br> 3828 * </p> 3829 */ 3830 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SOURCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SOURCE); 3831 3832/** 3833 * Constant for fluent queries to be used to add include statements. Specifies 3834 * the path value of "<b>ConceptMap:source</b>". 3835 */ 3836 public static final ca.uhn.fhir.model.api.Include INCLUDE_SOURCE = new ca.uhn.fhir.model.api.Include("ConceptMap:source").toLocked(); 3837 3838 /** 3839 * Search parameter: <b>title</b> 3840 * <p> 3841 * Description: <b>The human-friendly name of the concept map</b><br> 3842 * Type: <b>string</b><br> 3843 * Path: <b>ConceptMap.title</b><br> 3844 * </p> 3845 */ 3846 @SearchParamDefinition(name="title", path="ConceptMap.title", description="The human-friendly name of the concept map", type="string" ) 3847 public static final String SP_TITLE = "title"; 3848 /** 3849 * <b>Fluent Client</b> search parameter constant for <b>title</b> 3850 * <p> 3851 * Description: <b>The human-friendly name of the concept map</b><br> 3852 * Type: <b>string</b><br> 3853 * Path: <b>ConceptMap.title</b><br> 3854 * </p> 3855 */ 3856 public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE); 3857 3858 /** 3859 * Search parameter: <b>version</b> 3860 * <p> 3861 * Description: <b>The business version of the concept map</b><br> 3862 * Type: <b>token</b><br> 3863 * Path: <b>ConceptMap.version</b><br> 3864 * </p> 3865 */ 3866 @SearchParamDefinition(name="version", path="ConceptMap.version", description="The business version of the concept map", type="token" ) 3867 public static final String SP_VERSION = "version"; 3868 /** 3869 * <b>Fluent Client</b> search parameter constant for <b>version</b> 3870 * <p> 3871 * Description: <b>The business version of the concept map</b><br> 3872 * Type: <b>token</b><br> 3873 * Path: <b>ConceptMap.version</b><br> 3874 * </p> 3875 */ 3876 public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); 3877 3878 /** 3879 * Search parameter: <b>url</b> 3880 * <p> 3881 * Description: <b>The uri that identifies the concept map</b><br> 3882 * Type: <b>uri</b><br> 3883 * Path: <b>ConceptMap.url</b><br> 3884 * </p> 3885 */ 3886 @SearchParamDefinition(name="url", path="ConceptMap.url", description="The uri that identifies the concept map", type="uri" ) 3887 public static final String SP_URL = "url"; 3888 /** 3889 * <b>Fluent Client</b> search parameter constant for <b>url</b> 3890 * <p> 3891 * Description: <b>The uri that identifies the concept map</b><br> 3892 * Type: <b>uri</b><br> 3893 * Path: <b>ConceptMap.url</b><br> 3894 * </p> 3895 */ 3896 public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL); 3897 3898 /** 3899 * Search parameter: <b>target</b> 3900 * <p> 3901 * Description: <b>Provides context to the mappings</b><br> 3902 * Type: <b>reference</b><br> 3903 * Path: <b>ConceptMap.targetReference</b><br> 3904 * </p> 3905 */ 3906 @SearchParamDefinition(name="target", path="ConceptMap.target.as(Reference)", description="Provides context to the mappings", type="reference", target={ValueSet.class } ) 3907 public static final String SP_TARGET = "target"; 3908 /** 3909 * <b>Fluent Client</b> search parameter constant for <b>target</b> 3910 * <p> 3911 * Description: <b>Provides context to the mappings</b><br> 3912 * Type: <b>reference</b><br> 3913 * Path: <b>ConceptMap.targetReference</b><br> 3914 * </p> 3915 */ 3916 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam TARGET = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_TARGET); 3917 3918/** 3919 * Constant for fluent queries to be used to add include statements. Specifies 3920 * the path value of "<b>ConceptMap:target</b>". 3921 */ 3922 public static final ca.uhn.fhir.model.api.Include INCLUDE_TARGET = new ca.uhn.fhir.model.api.Include("ConceptMap:target").toLocked(); 3923 3924 /** 3925 * Search parameter: <b>source-code</b> 3926 * <p> 3927 * Description: <b>Identifies element being mapped</b><br> 3928 * Type: <b>token</b><br> 3929 * Path: <b>ConceptMap.group.element.code</b><br> 3930 * </p> 3931 */ 3932 @SearchParamDefinition(name="source-code", path="ConceptMap.group.element.code", description="Identifies element being mapped", type="token" ) 3933 public static final String SP_SOURCE_CODE = "source-code"; 3934 /** 3935 * <b>Fluent Client</b> search parameter constant for <b>source-code</b> 3936 * <p> 3937 * Description: <b>Identifies element being mapped</b><br> 3938 * Type: <b>token</b><br> 3939 * Path: <b>ConceptMap.group.element.code</b><br> 3940 * </p> 3941 */ 3942 public static final ca.uhn.fhir.rest.gclient.TokenClientParam SOURCE_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SOURCE_CODE); 3943 3944 /** 3945 * Search parameter: <b>source-uri</b> 3946 * <p> 3947 * Description: <b>Identifies the source of the concepts which are being mapped</b><br> 3948 * Type: <b>reference</b><br> 3949 * Path: <b>ConceptMap.sourceUri</b><br> 3950 * </p> 3951 */ 3952 @SearchParamDefinition(name="source-uri", path="ConceptMap.source.as(Uri)", description="Identifies the source of the concepts which are being mapped", type="reference", target={ValueSet.class } ) 3953 public static final String SP_SOURCE_URI = "source-uri"; 3954 /** 3955 * <b>Fluent Client</b> search parameter constant for <b>source-uri</b> 3956 * <p> 3957 * Description: <b>Identifies the source of the concepts which are being mapped</b><br> 3958 * Type: <b>reference</b><br> 3959 * Path: <b>ConceptMap.sourceUri</b><br> 3960 * </p> 3961 */ 3962 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SOURCE_URI = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SOURCE_URI); 3963 3964/** 3965 * Constant for fluent queries to be used to add include statements. Specifies 3966 * the path value of "<b>ConceptMap:source-uri</b>". 3967 */ 3968 public static final ca.uhn.fhir.model.api.Include INCLUDE_SOURCE_URI = new ca.uhn.fhir.model.api.Include("ConceptMap:source-uri").toLocked(); 3969 3970 /** 3971 * Search parameter: <b>name</b> 3972 * <p> 3973 * Description: <b>Computationally friendly name of the concept map</b><br> 3974 * Type: <b>string</b><br> 3975 * Path: <b>ConceptMap.name</b><br> 3976 * </p> 3977 */ 3978 @SearchParamDefinition(name="name", path="ConceptMap.name", description="Computationally friendly name of the concept map", type="string" ) 3979 public static final String SP_NAME = "name"; 3980 /** 3981 * <b>Fluent Client</b> search parameter constant for <b>name</b> 3982 * <p> 3983 * Description: <b>Computationally friendly name of the concept map</b><br> 3984 * Type: <b>string</b><br> 3985 * Path: <b>ConceptMap.name</b><br> 3986 * </p> 3987 */ 3988 public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); 3989 3990 /** 3991 * Search parameter: <b>publisher</b> 3992 * <p> 3993 * Description: <b>Name of the publisher of the concept map</b><br> 3994 * Type: <b>string</b><br> 3995 * Path: <b>ConceptMap.publisher</b><br> 3996 * </p> 3997 */ 3998 @SearchParamDefinition(name="publisher", path="ConceptMap.publisher", description="Name of the publisher of the concept map", type="string" ) 3999 public static final String SP_PUBLISHER = "publisher"; 4000 /** 4001 * <b>Fluent Client</b> search parameter constant for <b>publisher</b> 4002 * <p> 4003 * Description: <b>Name of the publisher of the concept map</b><br> 4004 * Type: <b>string</b><br> 4005 * Path: <b>ConceptMap.publisher</b><br> 4006 * </p> 4007 */ 4008 public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); 4009 4010 /** 4011 * Search parameter: <b>source-system</b> 4012 * <p> 4013 * Description: <b>Code System (if value set crosses code systems)</b><br> 4014 * Type: <b>uri</b><br> 4015 * Path: <b>ConceptMap.group.source</b><br> 4016 * </p> 4017 */ 4018 @SearchParamDefinition(name="source-system", path="ConceptMap.group.source", description="Code System (if value set crosses code systems)", type="uri" ) 4019 public static final String SP_SOURCE_SYSTEM = "source-system"; 4020 /** 4021 * <b>Fluent Client</b> search parameter constant for <b>source-system</b> 4022 * <p> 4023 * Description: <b>Code System (if value set crosses code systems)</b><br> 4024 * Type: <b>uri</b><br> 4025 * Path: <b>ConceptMap.group.source</b><br> 4026 * </p> 4027 */ 4028 public static final ca.uhn.fhir.rest.gclient.UriClientParam SOURCE_SYSTEM = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_SOURCE_SYSTEM); 4029 4030 /** 4031 * Search parameter: <b>target-code</b> 4032 * <p> 4033 * Description: <b>Code that identifies the target element</b><br> 4034 * Type: <b>token</b><br> 4035 * Path: <b>ConceptMap.group.element.target.code</b><br> 4036 * </p> 4037 */ 4038 @SearchParamDefinition(name="target-code", path="ConceptMap.group.element.target.code", description="Code that identifies the target element", type="token" ) 4039 public static final String SP_TARGET_CODE = "target-code"; 4040 /** 4041 * <b>Fluent Client</b> search parameter constant for <b>target-code</b> 4042 * <p> 4043 * Description: <b>Code that identifies the target element</b><br> 4044 * Type: <b>token</b><br> 4045 * Path: <b>ConceptMap.group.element.target.code</b><br> 4046 * </p> 4047 */ 4048 public static final ca.uhn.fhir.rest.gclient.TokenClientParam TARGET_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TARGET_CODE); 4049 4050 /** 4051 * Search parameter: <b>status</b> 4052 * <p> 4053 * Description: <b>The current status of the concept map</b><br> 4054 * Type: <b>token</b><br> 4055 * Path: <b>ConceptMap.status</b><br> 4056 * </p> 4057 */ 4058 @SearchParamDefinition(name="status", path="ConceptMap.status", description="The current status of the concept map", type="token" ) 4059 public static final String SP_STATUS = "status"; 4060 /** 4061 * <b>Fluent Client</b> search parameter constant for <b>status</b> 4062 * <p> 4063 * Description: <b>The current status of the concept map</b><br> 4064 * Type: <b>token</b><br> 4065 * Path: <b>ConceptMap.status</b><br> 4066 * </p> 4067 */ 4068 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 4069 4070 /** 4071 * Search parameter: <b>target-uri</b> 4072 * <p> 4073 * Description: <b>Provides context to the mappings</b><br> 4074 * Type: <b>reference</b><br> 4075 * Path: <b>ConceptMap.targetUri</b><br> 4076 * </p> 4077 */ 4078 @SearchParamDefinition(name="target-uri", path="ConceptMap.target.as(Uri)", description="Provides context to the mappings", type="reference", target={ValueSet.class } ) 4079 public static final String SP_TARGET_URI = "target-uri"; 4080 /** 4081 * <b>Fluent Client</b> search parameter constant for <b>target-uri</b> 4082 * <p> 4083 * Description: <b>Provides context to the mappings</b><br> 4084 * Type: <b>reference</b><br> 4085 * Path: <b>ConceptMap.targetUri</b><br> 4086 * </p> 4087 */ 4088 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam TARGET_URI = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_TARGET_URI); 4089 4090/** 4091 * Constant for fluent queries to be used to add include statements. Specifies 4092 * the path value of "<b>ConceptMap:target-uri</b>". 4093 */ 4094 public static final ca.uhn.fhir.model.api.Include INCLUDE_TARGET_URI = new ca.uhn.fhir.model.api.Include("ConceptMap:target-uri").toLocked(); 4095 4096 4097} 4098