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