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 * The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle. 071 */ 072@ResourceDef(name="MessageHeader", profile="http://hl7.org/fhir/StructureDefinition/MessageHeader") 073public class MessageHeader extends DomainResource { 074 075 public enum ResponseType { 076 /** 077 * The message was accepted and processed without error. 078 */ 079 OK, 080 /** 081 * Some internal unexpected error occurred - wait and try again. Note - this is usually used for things like database unavailable, which may be expected to resolve, though human intervention may be required. 082 */ 083 TRANSIENTERROR, 084 /** 085 * The message was rejected because of a problem with the content. There is no point in re-sending without change. The response narrative SHALL describe the issue. 086 */ 087 FATALERROR, 088 /** 089 * added to help the parsers with the generic types 090 */ 091 NULL; 092 public static ResponseType fromCode(String codeString) throws FHIRException { 093 if (codeString == null || "".equals(codeString)) 094 return null; 095 if ("ok".equals(codeString)) 096 return OK; 097 if ("transient-error".equals(codeString)) 098 return TRANSIENTERROR; 099 if ("fatal-error".equals(codeString)) 100 return FATALERROR; 101 if (Configuration.isAcceptInvalidEnums()) 102 return null; 103 else 104 throw new FHIRException("Unknown ResponseType code '"+codeString+"'"); 105 } 106 public String toCode() { 107 switch (this) { 108 case OK: return "ok"; 109 case TRANSIENTERROR: return "transient-error"; 110 case FATALERROR: return "fatal-error"; 111 default: return "?"; 112 } 113 } 114 public String getSystem() { 115 switch (this) { 116 case OK: return "http://hl7.org/fhir/response-code"; 117 case TRANSIENTERROR: return "http://hl7.org/fhir/response-code"; 118 case FATALERROR: return "http://hl7.org/fhir/response-code"; 119 default: return "?"; 120 } 121 } 122 public String getDefinition() { 123 switch (this) { 124 case OK: return "The message was accepted and processed without error."; 125 case TRANSIENTERROR: return "Some internal unexpected error occurred - wait and try again. Note - this is usually used for things like database unavailable, which may be expected to resolve, though human intervention may be required."; 126 case FATALERROR: return "The message was rejected because of a problem with the content. There is no point in re-sending without change. The response narrative SHALL describe the issue."; 127 default: return "?"; 128 } 129 } 130 public String getDisplay() { 131 switch (this) { 132 case OK: return "OK"; 133 case TRANSIENTERROR: return "Transient Error"; 134 case FATALERROR: return "Fatal Error"; 135 default: return "?"; 136 } 137 } 138 } 139 140 public static class ResponseTypeEnumFactory implements EnumFactory<ResponseType> { 141 public ResponseType fromCode(String codeString) throws IllegalArgumentException { 142 if (codeString == null || "".equals(codeString)) 143 if (codeString == null || "".equals(codeString)) 144 return null; 145 if ("ok".equals(codeString)) 146 return ResponseType.OK; 147 if ("transient-error".equals(codeString)) 148 return ResponseType.TRANSIENTERROR; 149 if ("fatal-error".equals(codeString)) 150 return ResponseType.FATALERROR; 151 throw new IllegalArgumentException("Unknown ResponseType code '"+codeString+"'"); 152 } 153 public Enumeration<ResponseType> fromType(Base code) throws FHIRException { 154 if (code == null) 155 return null; 156 if (code.isEmpty()) 157 return new Enumeration<ResponseType>(this); 158 String codeString = ((PrimitiveType) code).asStringValue(); 159 if (codeString == null || "".equals(codeString)) 160 return null; 161 if ("ok".equals(codeString)) 162 return new Enumeration<ResponseType>(this, ResponseType.OK); 163 if ("transient-error".equals(codeString)) 164 return new Enumeration<ResponseType>(this, ResponseType.TRANSIENTERROR); 165 if ("fatal-error".equals(codeString)) 166 return new Enumeration<ResponseType>(this, ResponseType.FATALERROR); 167 throw new FHIRException("Unknown ResponseType code '"+codeString+"'"); 168 } 169 public String toCode(ResponseType code) { 170 if (code == ResponseType.OK) 171 return "ok"; 172 if (code == ResponseType.TRANSIENTERROR) 173 return "transient-error"; 174 if (code == ResponseType.FATALERROR) 175 return "fatal-error"; 176 return "?"; 177 } 178 public String toSystem(ResponseType code) { 179 return code.getSystem(); 180 } 181 } 182 183 @Block() 184 public static class MessageDestinationComponent extends BackboneElement implements IBaseBackboneElement { 185 /** 186 * Human-readable name for the target system. 187 */ 188 @Child(name = "name", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true) 189 @Description(shortDefinition="Name of system", formalDefinition="Human-readable name for the target system." ) 190 protected StringType name; 191 192 /** 193 * Identifies the target end system in situations where the initial message transmission is to an intermediary system. 194 */ 195 @Child(name = "target", type = {Device.class}, order=2, min=0, max=1, modifier=false, summary=true) 196 @Description(shortDefinition="Particular delivery destination within the destination", formalDefinition="Identifies the target end system in situations where the initial message transmission is to an intermediary system." ) 197 protected Reference target; 198 199 /** 200 * Indicates where the message should be routed to. 201 */ 202 @Child(name = "endpoint", type = {UrlType.class}, order=3, min=1, max=1, modifier=false, summary=true) 203 @Description(shortDefinition="Actual destination address or id", formalDefinition="Indicates where the message should be routed to." ) 204 protected UrlType endpoint; 205 206 /** 207 * Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient. 208 */ 209 @Child(name = "receiver", type = {Practitioner.class, PractitionerRole.class, Organization.class}, order=4, min=0, max=1, modifier=false, summary=true) 210 @Description(shortDefinition="Intended \"real-world\" recipient for the data", formalDefinition="Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient." ) 211 protected Reference receiver; 212 213 private static final long serialVersionUID = -686949282L; 214 215 /** 216 * Constructor 217 */ 218 public MessageDestinationComponent() { 219 super(); 220 } 221 222 /** 223 * Constructor 224 */ 225 public MessageDestinationComponent(UrlType endpoint) { 226 super(); 227 this.endpoint = endpoint; 228 } 229 230 /** 231 * @return {@link #name} (Human-readable name for the target system.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 232 */ 233 public StringType getNameElement() { 234 if (this.name == null) 235 if (Configuration.errorOnAutoCreate()) 236 throw new Error("Attempt to auto-create MessageDestinationComponent.name"); 237 else if (Configuration.doAutoCreate()) 238 this.name = new StringType(); // bb 239 return this.name; 240 } 241 242 public boolean hasNameElement() { 243 return this.name != null && !this.name.isEmpty(); 244 } 245 246 public boolean hasName() { 247 return this.name != null && !this.name.isEmpty(); 248 } 249 250 /** 251 * @param value {@link #name} (Human-readable name for the target system.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 252 */ 253 public MessageDestinationComponent setNameElement(StringType value) { 254 this.name = value; 255 return this; 256 } 257 258 /** 259 * @return Human-readable name for the target system. 260 */ 261 public String getName() { 262 return this.name == null ? null : this.name.getValue(); 263 } 264 265 /** 266 * @param value Human-readable name for the target system. 267 */ 268 public MessageDestinationComponent setName(String value) { 269 if (Utilities.noString(value)) 270 this.name = null; 271 else { 272 if (this.name == null) 273 this.name = new StringType(); 274 this.name.setValue(value); 275 } 276 return this; 277 } 278 279 /** 280 * @return {@link #target} (Identifies the target end system in situations where the initial message transmission is to an intermediary system.) 281 */ 282 public Reference getTarget() { 283 if (this.target == null) 284 if (Configuration.errorOnAutoCreate()) 285 throw new Error("Attempt to auto-create MessageDestinationComponent.target"); 286 else if (Configuration.doAutoCreate()) 287 this.target = new Reference(); // cc 288 return this.target; 289 } 290 291 public boolean hasTarget() { 292 return this.target != null && !this.target.isEmpty(); 293 } 294 295 /** 296 * @param value {@link #target} (Identifies the target end system in situations where the initial message transmission is to an intermediary system.) 297 */ 298 public MessageDestinationComponent setTarget(Reference value) { 299 this.target = value; 300 return this; 301 } 302 303 /** 304 * @return {@link #endpoint} (Indicates where the message should be routed to.). This is the underlying object with id, value and extensions. The accessor "getEndpoint" gives direct access to the value 305 */ 306 public UrlType getEndpointElement() { 307 if (this.endpoint == null) 308 if (Configuration.errorOnAutoCreate()) 309 throw new Error("Attempt to auto-create MessageDestinationComponent.endpoint"); 310 else if (Configuration.doAutoCreate()) 311 this.endpoint = new UrlType(); // bb 312 return this.endpoint; 313 } 314 315 public boolean hasEndpointElement() { 316 return this.endpoint != null && !this.endpoint.isEmpty(); 317 } 318 319 public boolean hasEndpoint() { 320 return this.endpoint != null && !this.endpoint.isEmpty(); 321 } 322 323 /** 324 * @param value {@link #endpoint} (Indicates where the message should be routed to.). This is the underlying object with id, value and extensions. The accessor "getEndpoint" gives direct access to the value 325 */ 326 public MessageDestinationComponent setEndpointElement(UrlType value) { 327 this.endpoint = value; 328 return this; 329 } 330 331 /** 332 * @return Indicates where the message should be routed to. 333 */ 334 public String getEndpoint() { 335 return this.endpoint == null ? null : this.endpoint.getValue(); 336 } 337 338 /** 339 * @param value Indicates where the message should be routed to. 340 */ 341 public MessageDestinationComponent setEndpoint(String value) { 342 if (this.endpoint == null) 343 this.endpoint = new UrlType(); 344 this.endpoint.setValue(value); 345 return this; 346 } 347 348 /** 349 * @return {@link #receiver} (Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient.) 350 */ 351 public Reference getReceiver() { 352 if (this.receiver == null) 353 if (Configuration.errorOnAutoCreate()) 354 throw new Error("Attempt to auto-create MessageDestinationComponent.receiver"); 355 else if (Configuration.doAutoCreate()) 356 this.receiver = new Reference(); // cc 357 return this.receiver; 358 } 359 360 public boolean hasReceiver() { 361 return this.receiver != null && !this.receiver.isEmpty(); 362 } 363 364 /** 365 * @param value {@link #receiver} (Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient.) 366 */ 367 public MessageDestinationComponent setReceiver(Reference value) { 368 this.receiver = value; 369 return this; 370 } 371 372 protected void listChildren(List<Property> children) { 373 super.listChildren(children); 374 children.add(new Property("name", "string", "Human-readable name for the target system.", 0, 1, name)); 375 children.add(new Property("target", "Reference(Device)", "Identifies the target end system in situations where the initial message transmission is to an intermediary system.", 0, 1, target)); 376 children.add(new Property("endpoint", "url", "Indicates where the message should be routed to.", 0, 1, endpoint)); 377 children.add(new Property("receiver", "Reference(Practitioner|PractitionerRole|Organization)", "Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient.", 0, 1, receiver)); 378 } 379 380 @Override 381 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 382 switch (_hash) { 383 case 3373707: /*name*/ return new Property("name", "string", "Human-readable name for the target system.", 0, 1, name); 384 case -880905839: /*target*/ return new Property("target", "Reference(Device)", "Identifies the target end system in situations where the initial message transmission is to an intermediary system.", 0, 1, target); 385 case 1741102485: /*endpoint*/ return new Property("endpoint", "url", "Indicates where the message should be routed to.", 0, 1, endpoint); 386 case -808719889: /*receiver*/ return new Property("receiver", "Reference(Practitioner|PractitionerRole|Organization)", "Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient.", 0, 1, receiver); 387 default: return super.getNamedProperty(_hash, _name, _checkValid); 388 } 389 390 } 391 392 @Override 393 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 394 switch (hash) { 395 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 396 case -880905839: /*target*/ return this.target == null ? new Base[0] : new Base[] {this.target}; // Reference 397 case 1741102485: /*endpoint*/ return this.endpoint == null ? new Base[0] : new Base[] {this.endpoint}; // UrlType 398 case -808719889: /*receiver*/ return this.receiver == null ? new Base[0] : new Base[] {this.receiver}; // Reference 399 default: return super.getProperty(hash, name, checkValid); 400 } 401 402 } 403 404 @Override 405 public Base setProperty(int hash, String name, Base value) throws FHIRException { 406 switch (hash) { 407 case 3373707: // name 408 this.name = castToString(value); // StringType 409 return value; 410 case -880905839: // target 411 this.target = castToReference(value); // Reference 412 return value; 413 case 1741102485: // endpoint 414 this.endpoint = castToUrl(value); // UrlType 415 return value; 416 case -808719889: // receiver 417 this.receiver = castToReference(value); // Reference 418 return value; 419 default: return super.setProperty(hash, name, value); 420 } 421 422 } 423 424 @Override 425 public Base setProperty(String name, Base value) throws FHIRException { 426 if (name.equals("name")) { 427 this.name = castToString(value); // StringType 428 } else if (name.equals("target")) { 429 this.target = castToReference(value); // Reference 430 } else if (name.equals("endpoint")) { 431 this.endpoint = castToUrl(value); // UrlType 432 } else if (name.equals("receiver")) { 433 this.receiver = castToReference(value); // Reference 434 } else 435 return super.setProperty(name, value); 436 return value; 437 } 438 439 @Override 440 public Base makeProperty(int hash, String name) throws FHIRException { 441 switch (hash) { 442 case 3373707: return getNameElement(); 443 case -880905839: return getTarget(); 444 case 1741102485: return getEndpointElement(); 445 case -808719889: return getReceiver(); 446 default: return super.makeProperty(hash, name); 447 } 448 449 } 450 451 @Override 452 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 453 switch (hash) { 454 case 3373707: /*name*/ return new String[] {"string"}; 455 case -880905839: /*target*/ return new String[] {"Reference"}; 456 case 1741102485: /*endpoint*/ return new String[] {"url"}; 457 case -808719889: /*receiver*/ return new String[] {"Reference"}; 458 default: return super.getTypesForProperty(hash, name); 459 } 460 461 } 462 463 @Override 464 public Base addChild(String name) throws FHIRException { 465 if (name.equals("name")) { 466 throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.name"); 467 } 468 else if (name.equals("target")) { 469 this.target = new Reference(); 470 return this.target; 471 } 472 else if (name.equals("endpoint")) { 473 throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.endpoint"); 474 } 475 else if (name.equals("receiver")) { 476 this.receiver = new Reference(); 477 return this.receiver; 478 } 479 else 480 return super.addChild(name); 481 } 482 483 public MessageDestinationComponent copy() { 484 MessageDestinationComponent dst = new MessageDestinationComponent(); 485 copyValues(dst); 486 return dst; 487 } 488 489 public void copyValues(MessageDestinationComponent dst) { 490 super.copyValues(dst); 491 dst.name = name == null ? null : name.copy(); 492 dst.target = target == null ? null : target.copy(); 493 dst.endpoint = endpoint == null ? null : endpoint.copy(); 494 dst.receiver = receiver == null ? null : receiver.copy(); 495 } 496 497 @Override 498 public boolean equalsDeep(Base other_) { 499 if (!super.equalsDeep(other_)) 500 return false; 501 if (!(other_ instanceof MessageDestinationComponent)) 502 return false; 503 MessageDestinationComponent o = (MessageDestinationComponent) other_; 504 return compareDeep(name, o.name, true) && compareDeep(target, o.target, true) && compareDeep(endpoint, o.endpoint, true) 505 && compareDeep(receiver, o.receiver, true); 506 } 507 508 @Override 509 public boolean equalsShallow(Base other_) { 510 if (!super.equalsShallow(other_)) 511 return false; 512 if (!(other_ instanceof MessageDestinationComponent)) 513 return false; 514 MessageDestinationComponent o = (MessageDestinationComponent) other_; 515 return compareValues(name, o.name, true) && compareValues(endpoint, o.endpoint, true); 516 } 517 518 public boolean isEmpty() { 519 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, target, endpoint, receiver 520 ); 521 } 522 523 public String fhirType() { 524 return "MessageHeader.destination"; 525 526 } 527 528 } 529 530 @Block() 531 public static class MessageSourceComponent extends BackboneElement implements IBaseBackboneElement { 532 /** 533 * Human-readable name for the source system. 534 */ 535 @Child(name = "name", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true) 536 @Description(shortDefinition="Name of system", formalDefinition="Human-readable name for the source system." ) 537 protected StringType name; 538 539 /** 540 * May include configuration or other information useful in debugging. 541 */ 542 @Child(name = "software", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true) 543 @Description(shortDefinition="Name of software running the system", formalDefinition="May include configuration or other information useful in debugging." ) 544 protected StringType software; 545 546 /** 547 * Can convey versions of multiple systems in situations where a message passes through multiple hands. 548 */ 549 @Child(name = "version", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) 550 @Description(shortDefinition="Version of software running", formalDefinition="Can convey versions of multiple systems in situations where a message passes through multiple hands." ) 551 protected StringType version; 552 553 /** 554 * An e-mail, phone, website or other contact point to use to resolve issues with message communications. 555 */ 556 @Child(name = "contact", type = {ContactPoint.class}, order=4, min=0, max=1, modifier=false, summary=true) 557 @Description(shortDefinition="Human contact for problems", formalDefinition="An e-mail, phone, website or other contact point to use to resolve issues with message communications." ) 558 protected ContactPoint contact; 559 560 /** 561 * Identifies the routing target to send acknowledgements to. 562 */ 563 @Child(name = "endpoint", type = {UrlType.class}, order=5, min=1, max=1, modifier=false, summary=true) 564 @Description(shortDefinition="Actual message source address or id", formalDefinition="Identifies the routing target to send acknowledgements to." ) 565 protected UrlType endpoint; 566 567 private static final long serialVersionUID = -350916401L; 568 569 /** 570 * Constructor 571 */ 572 public MessageSourceComponent() { 573 super(); 574 } 575 576 /** 577 * Constructor 578 */ 579 public MessageSourceComponent(UrlType endpoint) { 580 super(); 581 this.endpoint = endpoint; 582 } 583 584 /** 585 * @return {@link #name} (Human-readable name for the source system.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 586 */ 587 public StringType getNameElement() { 588 if (this.name == null) 589 if (Configuration.errorOnAutoCreate()) 590 throw new Error("Attempt to auto-create MessageSourceComponent.name"); 591 else if (Configuration.doAutoCreate()) 592 this.name = new StringType(); // bb 593 return this.name; 594 } 595 596 public boolean hasNameElement() { 597 return this.name != null && !this.name.isEmpty(); 598 } 599 600 public boolean hasName() { 601 return this.name != null && !this.name.isEmpty(); 602 } 603 604 /** 605 * @param value {@link #name} (Human-readable name for the source system.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 606 */ 607 public MessageSourceComponent setNameElement(StringType value) { 608 this.name = value; 609 return this; 610 } 611 612 /** 613 * @return Human-readable name for the source system. 614 */ 615 public String getName() { 616 return this.name == null ? null : this.name.getValue(); 617 } 618 619 /** 620 * @param value Human-readable name for the source system. 621 */ 622 public MessageSourceComponent setName(String value) { 623 if (Utilities.noString(value)) 624 this.name = null; 625 else { 626 if (this.name == null) 627 this.name = new StringType(); 628 this.name.setValue(value); 629 } 630 return this; 631 } 632 633 /** 634 * @return {@link #software} (May include configuration or other information useful in debugging.). This is the underlying object with id, value and extensions. The accessor "getSoftware" gives direct access to the value 635 */ 636 public StringType getSoftwareElement() { 637 if (this.software == null) 638 if (Configuration.errorOnAutoCreate()) 639 throw new Error("Attempt to auto-create MessageSourceComponent.software"); 640 else if (Configuration.doAutoCreate()) 641 this.software = new StringType(); // bb 642 return this.software; 643 } 644 645 public boolean hasSoftwareElement() { 646 return this.software != null && !this.software.isEmpty(); 647 } 648 649 public boolean hasSoftware() { 650 return this.software != null && !this.software.isEmpty(); 651 } 652 653 /** 654 * @param value {@link #software} (May include configuration or other information useful in debugging.). This is the underlying object with id, value and extensions. The accessor "getSoftware" gives direct access to the value 655 */ 656 public MessageSourceComponent setSoftwareElement(StringType value) { 657 this.software = value; 658 return this; 659 } 660 661 /** 662 * @return May include configuration or other information useful in debugging. 663 */ 664 public String getSoftware() { 665 return this.software == null ? null : this.software.getValue(); 666 } 667 668 /** 669 * @param value May include configuration or other information useful in debugging. 670 */ 671 public MessageSourceComponent setSoftware(String value) { 672 if (Utilities.noString(value)) 673 this.software = null; 674 else { 675 if (this.software == null) 676 this.software = new StringType(); 677 this.software.setValue(value); 678 } 679 return this; 680 } 681 682 /** 683 * @return {@link #version} (Can convey versions of multiple systems in situations where a message passes through multiple hands.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value 684 */ 685 public StringType getVersionElement() { 686 if (this.version == null) 687 if (Configuration.errorOnAutoCreate()) 688 throw new Error("Attempt to auto-create MessageSourceComponent.version"); 689 else if (Configuration.doAutoCreate()) 690 this.version = new StringType(); // bb 691 return this.version; 692 } 693 694 public boolean hasVersionElement() { 695 return this.version != null && !this.version.isEmpty(); 696 } 697 698 public boolean hasVersion() { 699 return this.version != null && !this.version.isEmpty(); 700 } 701 702 /** 703 * @param value {@link #version} (Can convey versions of multiple systems in situations where a message passes through multiple hands.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value 704 */ 705 public MessageSourceComponent setVersionElement(StringType value) { 706 this.version = value; 707 return this; 708 } 709 710 /** 711 * @return Can convey versions of multiple systems in situations where a message passes through multiple hands. 712 */ 713 public String getVersion() { 714 return this.version == null ? null : this.version.getValue(); 715 } 716 717 /** 718 * @param value Can convey versions of multiple systems in situations where a message passes through multiple hands. 719 */ 720 public MessageSourceComponent setVersion(String value) { 721 if (Utilities.noString(value)) 722 this.version = null; 723 else { 724 if (this.version == null) 725 this.version = new StringType(); 726 this.version.setValue(value); 727 } 728 return this; 729 } 730 731 /** 732 * @return {@link #contact} (An e-mail, phone, website or other contact point to use to resolve issues with message communications.) 733 */ 734 public ContactPoint getContact() { 735 if (this.contact == null) 736 if (Configuration.errorOnAutoCreate()) 737 throw new Error("Attempt to auto-create MessageSourceComponent.contact"); 738 else if (Configuration.doAutoCreate()) 739 this.contact = new ContactPoint(); // cc 740 return this.contact; 741 } 742 743 public boolean hasContact() { 744 return this.contact != null && !this.contact.isEmpty(); 745 } 746 747 /** 748 * @param value {@link #contact} (An e-mail, phone, website or other contact point to use to resolve issues with message communications.) 749 */ 750 public MessageSourceComponent setContact(ContactPoint value) { 751 this.contact = value; 752 return this; 753 } 754 755 /** 756 * @return {@link #endpoint} (Identifies the routing target to send acknowledgements to.). This is the underlying object with id, value and extensions. The accessor "getEndpoint" gives direct access to the value 757 */ 758 public UrlType getEndpointElement() { 759 if (this.endpoint == null) 760 if (Configuration.errorOnAutoCreate()) 761 throw new Error("Attempt to auto-create MessageSourceComponent.endpoint"); 762 else if (Configuration.doAutoCreate()) 763 this.endpoint = new UrlType(); // bb 764 return this.endpoint; 765 } 766 767 public boolean hasEndpointElement() { 768 return this.endpoint != null && !this.endpoint.isEmpty(); 769 } 770 771 public boolean hasEndpoint() { 772 return this.endpoint != null && !this.endpoint.isEmpty(); 773 } 774 775 /** 776 * @param value {@link #endpoint} (Identifies the routing target to send acknowledgements to.). This is the underlying object with id, value and extensions. The accessor "getEndpoint" gives direct access to the value 777 */ 778 public MessageSourceComponent setEndpointElement(UrlType value) { 779 this.endpoint = value; 780 return this; 781 } 782 783 /** 784 * @return Identifies the routing target to send acknowledgements to. 785 */ 786 public String getEndpoint() { 787 return this.endpoint == null ? null : this.endpoint.getValue(); 788 } 789 790 /** 791 * @param value Identifies the routing target to send acknowledgements to. 792 */ 793 public MessageSourceComponent setEndpoint(String value) { 794 if (this.endpoint == null) 795 this.endpoint = new UrlType(); 796 this.endpoint.setValue(value); 797 return this; 798 } 799 800 protected void listChildren(List<Property> children) { 801 super.listChildren(children); 802 children.add(new Property("name", "string", "Human-readable name for the source system.", 0, 1, name)); 803 children.add(new Property("software", "string", "May include configuration or other information useful in debugging.", 0, 1, software)); 804 children.add(new Property("version", "string", "Can convey versions of multiple systems in situations where a message passes through multiple hands.", 0, 1, version)); 805 children.add(new Property("contact", "ContactPoint", "An e-mail, phone, website or other contact point to use to resolve issues with message communications.", 0, 1, contact)); 806 children.add(new Property("endpoint", "url", "Identifies the routing target to send acknowledgements to.", 0, 1, endpoint)); 807 } 808 809 @Override 810 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 811 switch (_hash) { 812 case 3373707: /*name*/ return new Property("name", "string", "Human-readable name for the source system.", 0, 1, name); 813 case 1319330215: /*software*/ return new Property("software", "string", "May include configuration or other information useful in debugging.", 0, 1, software); 814 case 351608024: /*version*/ return new Property("version", "string", "Can convey versions of multiple systems in situations where a message passes through multiple hands.", 0, 1, version); 815 case 951526432: /*contact*/ return new Property("contact", "ContactPoint", "An e-mail, phone, website or other contact point to use to resolve issues with message communications.", 0, 1, contact); 816 case 1741102485: /*endpoint*/ return new Property("endpoint", "url", "Identifies the routing target to send acknowledgements to.", 0, 1, endpoint); 817 default: return super.getNamedProperty(_hash, _name, _checkValid); 818 } 819 820 } 821 822 @Override 823 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 824 switch (hash) { 825 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 826 case 1319330215: /*software*/ return this.software == null ? new Base[0] : new Base[] {this.software}; // StringType 827 case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType 828 case 951526432: /*contact*/ return this.contact == null ? new Base[0] : new Base[] {this.contact}; // ContactPoint 829 case 1741102485: /*endpoint*/ return this.endpoint == null ? new Base[0] : new Base[] {this.endpoint}; // UrlType 830 default: return super.getProperty(hash, name, checkValid); 831 } 832 833 } 834 835 @Override 836 public Base setProperty(int hash, String name, Base value) throws FHIRException { 837 switch (hash) { 838 case 3373707: // name 839 this.name = castToString(value); // StringType 840 return value; 841 case 1319330215: // software 842 this.software = castToString(value); // StringType 843 return value; 844 case 351608024: // version 845 this.version = castToString(value); // StringType 846 return value; 847 case 951526432: // contact 848 this.contact = castToContactPoint(value); // ContactPoint 849 return value; 850 case 1741102485: // endpoint 851 this.endpoint = castToUrl(value); // UrlType 852 return value; 853 default: return super.setProperty(hash, name, value); 854 } 855 856 } 857 858 @Override 859 public Base setProperty(String name, Base value) throws FHIRException { 860 if (name.equals("name")) { 861 this.name = castToString(value); // StringType 862 } else if (name.equals("software")) { 863 this.software = castToString(value); // StringType 864 } else if (name.equals("version")) { 865 this.version = castToString(value); // StringType 866 } else if (name.equals("contact")) { 867 this.contact = castToContactPoint(value); // ContactPoint 868 } else if (name.equals("endpoint")) { 869 this.endpoint = castToUrl(value); // UrlType 870 } else 871 return super.setProperty(name, value); 872 return value; 873 } 874 875 @Override 876 public Base makeProperty(int hash, String name) throws FHIRException { 877 switch (hash) { 878 case 3373707: return getNameElement(); 879 case 1319330215: return getSoftwareElement(); 880 case 351608024: return getVersionElement(); 881 case 951526432: return getContact(); 882 case 1741102485: return getEndpointElement(); 883 default: return super.makeProperty(hash, name); 884 } 885 886 } 887 888 @Override 889 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 890 switch (hash) { 891 case 3373707: /*name*/ return new String[] {"string"}; 892 case 1319330215: /*software*/ return new String[] {"string"}; 893 case 351608024: /*version*/ return new String[] {"string"}; 894 case 951526432: /*contact*/ return new String[] {"ContactPoint"}; 895 case 1741102485: /*endpoint*/ return new String[] {"url"}; 896 default: return super.getTypesForProperty(hash, name); 897 } 898 899 } 900 901 @Override 902 public Base addChild(String name) throws FHIRException { 903 if (name.equals("name")) { 904 throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.name"); 905 } 906 else if (name.equals("software")) { 907 throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.software"); 908 } 909 else if (name.equals("version")) { 910 throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.version"); 911 } 912 else if (name.equals("contact")) { 913 this.contact = new ContactPoint(); 914 return this.contact; 915 } 916 else if (name.equals("endpoint")) { 917 throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.endpoint"); 918 } 919 else 920 return super.addChild(name); 921 } 922 923 public MessageSourceComponent copy() { 924 MessageSourceComponent dst = new MessageSourceComponent(); 925 copyValues(dst); 926 return dst; 927 } 928 929 public void copyValues(MessageSourceComponent dst) { 930 super.copyValues(dst); 931 dst.name = name == null ? null : name.copy(); 932 dst.software = software == null ? null : software.copy(); 933 dst.version = version == null ? null : version.copy(); 934 dst.contact = contact == null ? null : contact.copy(); 935 dst.endpoint = endpoint == null ? null : endpoint.copy(); 936 } 937 938 @Override 939 public boolean equalsDeep(Base other_) { 940 if (!super.equalsDeep(other_)) 941 return false; 942 if (!(other_ instanceof MessageSourceComponent)) 943 return false; 944 MessageSourceComponent o = (MessageSourceComponent) other_; 945 return compareDeep(name, o.name, true) && compareDeep(software, o.software, true) && compareDeep(version, o.version, true) 946 && compareDeep(contact, o.contact, true) && compareDeep(endpoint, o.endpoint, true); 947 } 948 949 @Override 950 public boolean equalsShallow(Base other_) { 951 if (!super.equalsShallow(other_)) 952 return false; 953 if (!(other_ instanceof MessageSourceComponent)) 954 return false; 955 MessageSourceComponent o = (MessageSourceComponent) other_; 956 return compareValues(name, o.name, true) && compareValues(software, o.software, true) && compareValues(version, o.version, true) 957 && compareValues(endpoint, o.endpoint, true); 958 } 959 960 public boolean isEmpty() { 961 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, software, version 962 , contact, endpoint); 963 } 964 965 public String fhirType() { 966 return "MessageHeader.source"; 967 968 } 969 970 } 971 972 @Block() 973 public static class MessageHeaderResponseComponent extends BackboneElement implements IBaseBackboneElement { 974 /** 975 * The MessageHeader.id of the message to which this message is a response. 976 */ 977 @Child(name = "identifier", type = {IdType.class}, order=1, min=1, max=1, modifier=false, summary=true) 978 @Description(shortDefinition="Id of original message", formalDefinition="The MessageHeader.id of the message to which this message is a response." ) 979 protected IdType identifier; 980 981 /** 982 * Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not. 983 */ 984 @Child(name = "code", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=true) 985 @Description(shortDefinition="ok | transient-error | fatal-error", formalDefinition="Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not." ) 986 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/response-code") 987 protected Enumeration<ResponseType> code; 988 989 /** 990 * Full details of any issues found in the message. 991 */ 992 @Child(name = "details", type = {OperationOutcome.class}, order=3, min=0, max=1, modifier=false, summary=true) 993 @Description(shortDefinition="Specific list of hints/warnings/errors", formalDefinition="Full details of any issues found in the message." ) 994 protected Reference details; 995 996 private static final long serialVersionUID = 399636654L; 997 998 /** 999 * Constructor 1000 */ 1001 public MessageHeaderResponseComponent() { 1002 super(); 1003 } 1004 1005 /** 1006 * Constructor 1007 */ 1008 public MessageHeaderResponseComponent(IdType identifier, Enumeration<ResponseType> code) { 1009 super(); 1010 this.identifier = identifier; 1011 this.code = code; 1012 } 1013 1014 /** 1015 * @return {@link #identifier} (The MessageHeader.id of the message to which this message is a response.). This is the underlying object with id, value and extensions. The accessor "getIdentifier" gives direct access to the value 1016 */ 1017 public IdType getIdentifierElement() { 1018 if (this.identifier == null) 1019 if (Configuration.errorOnAutoCreate()) 1020 throw new Error("Attempt to auto-create MessageHeaderResponseComponent.identifier"); 1021 else if (Configuration.doAutoCreate()) 1022 this.identifier = new IdType(); // bb 1023 return this.identifier; 1024 } 1025 1026 public boolean hasIdentifierElement() { 1027 return this.identifier != null && !this.identifier.isEmpty(); 1028 } 1029 1030 public boolean hasIdentifier() { 1031 return this.identifier != null && !this.identifier.isEmpty(); 1032 } 1033 1034 /** 1035 * @param value {@link #identifier} (The MessageHeader.id of the message to which this message is a response.). This is the underlying object with id, value and extensions. The accessor "getIdentifier" gives direct access to the value 1036 */ 1037 public MessageHeaderResponseComponent setIdentifierElement(IdType value) { 1038 this.identifier = value; 1039 return this; 1040 } 1041 1042 /** 1043 * @return The MessageHeader.id of the message to which this message is a response. 1044 */ 1045 public String getIdentifier() { 1046 return this.identifier == null ? null : this.identifier.getValue(); 1047 } 1048 1049 /** 1050 * @param value The MessageHeader.id of the message to which this message is a response. 1051 */ 1052 public MessageHeaderResponseComponent setIdentifier(String value) { 1053 if (this.identifier == null) 1054 this.identifier = new IdType(); 1055 this.identifier.setValue(value); 1056 return this; 1057 } 1058 1059 /** 1060 * @return {@link #code} (Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 1061 */ 1062 public Enumeration<ResponseType> getCodeElement() { 1063 if (this.code == null) 1064 if (Configuration.errorOnAutoCreate()) 1065 throw new Error("Attempt to auto-create MessageHeaderResponseComponent.code"); 1066 else if (Configuration.doAutoCreate()) 1067 this.code = new Enumeration<ResponseType>(new ResponseTypeEnumFactory()); // bb 1068 return this.code; 1069 } 1070 1071 public boolean hasCodeElement() { 1072 return this.code != null && !this.code.isEmpty(); 1073 } 1074 1075 public boolean hasCode() { 1076 return this.code != null && !this.code.isEmpty(); 1077 } 1078 1079 /** 1080 * @param value {@link #code} (Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 1081 */ 1082 public MessageHeaderResponseComponent setCodeElement(Enumeration<ResponseType> value) { 1083 this.code = value; 1084 return this; 1085 } 1086 1087 /** 1088 * @return Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not. 1089 */ 1090 public ResponseType getCode() { 1091 return this.code == null ? null : this.code.getValue(); 1092 } 1093 1094 /** 1095 * @param value Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not. 1096 */ 1097 public MessageHeaderResponseComponent setCode(ResponseType value) { 1098 if (this.code == null) 1099 this.code = new Enumeration<ResponseType>(new ResponseTypeEnumFactory()); 1100 this.code.setValue(value); 1101 return this; 1102 } 1103 1104 /** 1105 * @return {@link #details} (Full details of any issues found in the message.) 1106 */ 1107 public Reference getDetails() { 1108 if (this.details == null) 1109 if (Configuration.errorOnAutoCreate()) 1110 throw new Error("Attempt to auto-create MessageHeaderResponseComponent.details"); 1111 else if (Configuration.doAutoCreate()) 1112 this.details = new Reference(); // cc 1113 return this.details; 1114 } 1115 1116 public boolean hasDetails() { 1117 return this.details != null && !this.details.isEmpty(); 1118 } 1119 1120 /** 1121 * @param value {@link #details} (Full details of any issues found in the message.) 1122 */ 1123 public MessageHeaderResponseComponent setDetails(Reference value) { 1124 this.details = value; 1125 return this; 1126 } 1127 1128 protected void listChildren(List<Property> children) { 1129 super.listChildren(children); 1130 children.add(new Property("identifier", "id", "The MessageHeader.id of the message to which this message is a response.", 0, 1, identifier)); 1131 children.add(new Property("code", "code", "Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not.", 0, 1, code)); 1132 children.add(new Property("details", "Reference(OperationOutcome)", "Full details of any issues found in the message.", 0, 1, details)); 1133 } 1134 1135 @Override 1136 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1137 switch (_hash) { 1138 case -1618432855: /*identifier*/ return new Property("identifier", "id", "The MessageHeader.id of the message to which this message is a response.", 0, 1, identifier); 1139 case 3059181: /*code*/ return new Property("code", "code", "Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not.", 0, 1, code); 1140 case 1557721666: /*details*/ return new Property("details", "Reference(OperationOutcome)", "Full details of any issues found in the message.", 0, 1, details); 1141 default: return super.getNamedProperty(_hash, _name, _checkValid); 1142 } 1143 1144 } 1145 1146 @Override 1147 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1148 switch (hash) { 1149 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // IdType 1150 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // Enumeration<ResponseType> 1151 case 1557721666: /*details*/ return this.details == null ? new Base[0] : new Base[] {this.details}; // Reference 1152 default: return super.getProperty(hash, name, checkValid); 1153 } 1154 1155 } 1156 1157 @Override 1158 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1159 switch (hash) { 1160 case -1618432855: // identifier 1161 this.identifier = castToId(value); // IdType 1162 return value; 1163 case 3059181: // code 1164 value = new ResponseTypeEnumFactory().fromType(castToCode(value)); 1165 this.code = (Enumeration) value; // Enumeration<ResponseType> 1166 return value; 1167 case 1557721666: // details 1168 this.details = castToReference(value); // Reference 1169 return value; 1170 default: return super.setProperty(hash, name, value); 1171 } 1172 1173 } 1174 1175 @Override 1176 public Base setProperty(String name, Base value) throws FHIRException { 1177 if (name.equals("identifier")) { 1178 this.identifier = castToId(value); // IdType 1179 } else if (name.equals("code")) { 1180 value = new ResponseTypeEnumFactory().fromType(castToCode(value)); 1181 this.code = (Enumeration) value; // Enumeration<ResponseType> 1182 } else if (name.equals("details")) { 1183 this.details = castToReference(value); // Reference 1184 } else 1185 return super.setProperty(name, value); 1186 return value; 1187 } 1188 1189 @Override 1190 public Base makeProperty(int hash, String name) throws FHIRException { 1191 switch (hash) { 1192 case -1618432855: return getIdentifierElement(); 1193 case 3059181: return getCodeElement(); 1194 case 1557721666: return getDetails(); 1195 default: return super.makeProperty(hash, name); 1196 } 1197 1198 } 1199 1200 @Override 1201 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1202 switch (hash) { 1203 case -1618432855: /*identifier*/ return new String[] {"id"}; 1204 case 3059181: /*code*/ return new String[] {"code"}; 1205 case 1557721666: /*details*/ return new String[] {"Reference"}; 1206 default: return super.getTypesForProperty(hash, name); 1207 } 1208 1209 } 1210 1211 @Override 1212 public Base addChild(String name) throws FHIRException { 1213 if (name.equals("identifier")) { 1214 throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.identifier"); 1215 } 1216 else if (name.equals("code")) { 1217 throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.code"); 1218 } 1219 else if (name.equals("details")) { 1220 this.details = new Reference(); 1221 return this.details; 1222 } 1223 else 1224 return super.addChild(name); 1225 } 1226 1227 public MessageHeaderResponseComponent copy() { 1228 MessageHeaderResponseComponent dst = new MessageHeaderResponseComponent(); 1229 copyValues(dst); 1230 return dst; 1231 } 1232 1233 public void copyValues(MessageHeaderResponseComponent dst) { 1234 super.copyValues(dst); 1235 dst.identifier = identifier == null ? null : identifier.copy(); 1236 dst.code = code == null ? null : code.copy(); 1237 dst.details = details == null ? null : details.copy(); 1238 } 1239 1240 @Override 1241 public boolean equalsDeep(Base other_) { 1242 if (!super.equalsDeep(other_)) 1243 return false; 1244 if (!(other_ instanceof MessageHeaderResponseComponent)) 1245 return false; 1246 MessageHeaderResponseComponent o = (MessageHeaderResponseComponent) other_; 1247 return compareDeep(identifier, o.identifier, true) && compareDeep(code, o.code, true) && compareDeep(details, o.details, true) 1248 ; 1249 } 1250 1251 @Override 1252 public boolean equalsShallow(Base other_) { 1253 if (!super.equalsShallow(other_)) 1254 return false; 1255 if (!(other_ instanceof MessageHeaderResponseComponent)) 1256 return false; 1257 MessageHeaderResponseComponent o = (MessageHeaderResponseComponent) other_; 1258 return compareValues(identifier, o.identifier, true) && compareValues(code, o.code, true); 1259 } 1260 1261 public boolean isEmpty() { 1262 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, code, details 1263 ); 1264 } 1265 1266 public String fhirType() { 1267 return "MessageHeader.response"; 1268 1269 } 1270 1271 } 1272 1273 /** 1274 * Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value "http://terminology.hl7.org/CodeSystem/message-events". Alternatively uri to the EventDefinition. 1275 */ 1276 @Child(name = "event", type = {Coding.class, UriType.class}, order=0, min=1, max=1, modifier=false, summary=true) 1277 @Description(shortDefinition="Code for the event this message represents or link to event definition", formalDefinition="Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value \"http://terminology.hl7.org/CodeSystem/message-events\". Alternatively uri to the EventDefinition." ) 1278 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/message-events") 1279 protected Type event; 1280 1281 /** 1282 * The destination application which the message is intended for. 1283 */ 1284 @Child(name = "destination", type = {}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1285 @Description(shortDefinition="Message destination application(s)", formalDefinition="The destination application which the message is intended for." ) 1286 protected List<MessageDestinationComponent> destination; 1287 1288 /** 1289 * Identifies the sending system to allow the use of a trust relationship. 1290 */ 1291 @Child(name = "sender", type = {Practitioner.class, PractitionerRole.class, Organization.class}, order=2, min=0, max=1, modifier=false, summary=true) 1292 @Description(shortDefinition="Real world sender of the message", formalDefinition="Identifies the sending system to allow the use of a trust relationship." ) 1293 protected Reference sender; 1294 1295 /** 1296 * The person or device that performed the data entry leading to this message. When there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions. 1297 */ 1298 @Child(name = "enterer", type = {Practitioner.class, PractitionerRole.class}, order=3, min=0, max=1, modifier=false, summary=true) 1299 @Description(shortDefinition="The source of the data entry", formalDefinition="The person or device that performed the data entry leading to this message. When there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions." ) 1300 protected Reference enterer; 1301 1302 /** 1303 * The logical author of the message - the person or device that decided the described event should happen. When there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions. 1304 */ 1305 @Child(name = "author", type = {Practitioner.class, PractitionerRole.class}, order=4, min=0, max=1, modifier=false, summary=true) 1306 @Description(shortDefinition="The source of the decision", formalDefinition="The logical author of the message - the person or device that decided the described event should happen. When there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions." ) 1307 protected Reference author; 1308 1309 /** 1310 * The source application from which this message originated. 1311 */ 1312 @Child(name = "source", type = {}, order=5, min=1, max=1, modifier=false, summary=true) 1313 @Description(shortDefinition="Message source application", formalDefinition="The source application from which this message originated." ) 1314 protected MessageSourceComponent source; 1315 1316 /** 1317 * The person or organization that accepts overall responsibility for the contents of the message. The implication is that the message event happened under the policies of the responsible party. 1318 */ 1319 @Child(name = "responsible", type = {Practitioner.class, PractitionerRole.class, Organization.class}, order=6, min=0, max=1, modifier=false, summary=true) 1320 @Description(shortDefinition="Final responsibility for event", formalDefinition="The person or organization that accepts overall responsibility for the contents of the message. The implication is that the message event happened under the policies of the responsible party." ) 1321 protected Reference responsible; 1322 1323 /** 1324 * Coded indication of the cause for the event - indicates a reason for the occurrence of the event that is a focus of this message. 1325 */ 1326 @Child(name = "reason", type = {CodeableConcept.class}, order=7, min=0, max=1, modifier=false, summary=true) 1327 @Description(shortDefinition="Cause of event", formalDefinition="Coded indication of the cause for the event - indicates a reason for the occurrence of the event that is a focus of this message." ) 1328 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/message-reason-encounter") 1329 protected CodeableConcept reason; 1330 1331 /** 1332 * Information about the message that this message is a response to. Only present if this message is a response. 1333 */ 1334 @Child(name = "response", type = {}, order=8, min=0, max=1, modifier=false, summary=true) 1335 @Description(shortDefinition="If this is a reply to prior message", formalDefinition="Information about the message that this message is a response to. Only present if this message is a response." ) 1336 protected MessageHeaderResponseComponent response; 1337 1338 /** 1339 * The actual data of the message - a reference to the root/focus class of the event. 1340 */ 1341 @Child(name = "focus", type = {Reference.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1342 @Description(shortDefinition="The actual content of the message", formalDefinition="The actual data of the message - a reference to the root/focus class of the event." ) 1343 protected List<Reference> focus; 1344 1345 /** 1346 * Permanent link to the MessageDefinition for this message. 1347 */ 1348 @Child(name = "definition", type = {CanonicalType.class}, order=10, min=0, max=1, modifier=false, summary=true) 1349 @Description(shortDefinition="Link to the definition for this message", formalDefinition="Permanent link to the MessageDefinition for this message." ) 1350 protected CanonicalType definition; 1351 1352 private static final long serialVersionUID = 611254423L; 1353 1354 /** 1355 * Constructor 1356 */ 1357 public MessageHeader() { 1358 super(); 1359 } 1360 1361 /** 1362 * Constructor 1363 */ 1364 public MessageHeader(Type event, MessageSourceComponent source) { 1365 super(); 1366 this.event = event; 1367 this.source = source; 1368 } 1369 1370 /** 1371 * @return {@link #event} (Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value "http://terminology.hl7.org/CodeSystem/message-events". Alternatively uri to the EventDefinition.) 1372 */ 1373 public Type getEvent() { 1374 return this.event; 1375 } 1376 1377 /** 1378 * @return {@link #event} (Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value "http://terminology.hl7.org/CodeSystem/message-events". Alternatively uri to the EventDefinition.) 1379 */ 1380 public Coding getEventCoding() throws FHIRException { 1381 if (this.event == null) 1382 this.event = new Coding(); 1383 if (!(this.event instanceof Coding)) 1384 throw new FHIRException("Type mismatch: the type Coding was expected, but "+this.event.getClass().getName()+" was encountered"); 1385 return (Coding) this.event; 1386 } 1387 1388 public boolean hasEventCoding() { 1389 return this != null && this.event instanceof Coding; 1390 } 1391 1392 /** 1393 * @return {@link #event} (Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value "http://terminology.hl7.org/CodeSystem/message-events". Alternatively uri to the EventDefinition.) 1394 */ 1395 public UriType getEventUriType() throws FHIRException { 1396 if (this.event == null) 1397 this.event = new UriType(); 1398 if (!(this.event instanceof UriType)) 1399 throw new FHIRException("Type mismatch: the type UriType was expected, but "+this.event.getClass().getName()+" was encountered"); 1400 return (UriType) this.event; 1401 } 1402 1403 public boolean hasEventUriType() { 1404 return this != null && this.event instanceof UriType; 1405 } 1406 1407 public boolean hasEvent() { 1408 return this.event != null && !this.event.isEmpty(); 1409 } 1410 1411 /** 1412 * @param value {@link #event} (Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value "http://terminology.hl7.org/CodeSystem/message-events". Alternatively uri to the EventDefinition.) 1413 */ 1414 public MessageHeader setEvent(Type value) { 1415 if (value != null && !(value instanceof Coding || value instanceof UriType)) 1416 throw new Error("Not the right type for MessageHeader.event[x]: "+value.fhirType()); 1417 this.event = value; 1418 return this; 1419 } 1420 1421 /** 1422 * @return {@link #destination} (The destination application which the message is intended for.) 1423 */ 1424 public List<MessageDestinationComponent> getDestination() { 1425 if (this.destination == null) 1426 this.destination = new ArrayList<MessageDestinationComponent>(); 1427 return this.destination; 1428 } 1429 1430 /** 1431 * @return Returns a reference to <code>this</code> for easy method chaining 1432 */ 1433 public MessageHeader setDestination(List<MessageDestinationComponent> theDestination) { 1434 this.destination = theDestination; 1435 return this; 1436 } 1437 1438 public boolean hasDestination() { 1439 if (this.destination == null) 1440 return false; 1441 for (MessageDestinationComponent item : this.destination) 1442 if (!item.isEmpty()) 1443 return true; 1444 return false; 1445 } 1446 1447 public MessageDestinationComponent addDestination() { //3 1448 MessageDestinationComponent t = new MessageDestinationComponent(); 1449 if (this.destination == null) 1450 this.destination = new ArrayList<MessageDestinationComponent>(); 1451 this.destination.add(t); 1452 return t; 1453 } 1454 1455 public MessageHeader addDestination(MessageDestinationComponent t) { //3 1456 if (t == null) 1457 return this; 1458 if (this.destination == null) 1459 this.destination = new ArrayList<MessageDestinationComponent>(); 1460 this.destination.add(t); 1461 return this; 1462 } 1463 1464 /** 1465 * @return The first repetition of repeating field {@link #destination}, creating it if it does not already exist 1466 */ 1467 public MessageDestinationComponent getDestinationFirstRep() { 1468 if (getDestination().isEmpty()) { 1469 addDestination(); 1470 } 1471 return getDestination().get(0); 1472 } 1473 1474 /** 1475 * @return {@link #sender} (Identifies the sending system to allow the use of a trust relationship.) 1476 */ 1477 public Reference getSender() { 1478 if (this.sender == null) 1479 if (Configuration.errorOnAutoCreate()) 1480 throw new Error("Attempt to auto-create MessageHeader.sender"); 1481 else if (Configuration.doAutoCreate()) 1482 this.sender = new Reference(); // cc 1483 return this.sender; 1484 } 1485 1486 public boolean hasSender() { 1487 return this.sender != null && !this.sender.isEmpty(); 1488 } 1489 1490 /** 1491 * @param value {@link #sender} (Identifies the sending system to allow the use of a trust relationship.) 1492 */ 1493 public MessageHeader setSender(Reference value) { 1494 this.sender = value; 1495 return this; 1496 } 1497 1498 /** 1499 * @return {@link #enterer} (The person or device that performed the data entry leading to this message. When there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions.) 1500 */ 1501 public Reference getEnterer() { 1502 if (this.enterer == null) 1503 if (Configuration.errorOnAutoCreate()) 1504 throw new Error("Attempt to auto-create MessageHeader.enterer"); 1505 else if (Configuration.doAutoCreate()) 1506 this.enterer = new Reference(); // cc 1507 return this.enterer; 1508 } 1509 1510 public boolean hasEnterer() { 1511 return this.enterer != null && !this.enterer.isEmpty(); 1512 } 1513 1514 /** 1515 * @param value {@link #enterer} (The person or device that performed the data entry leading to this message. When there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions.) 1516 */ 1517 public MessageHeader setEnterer(Reference value) { 1518 this.enterer = value; 1519 return this; 1520 } 1521 1522 /** 1523 * @return {@link #author} (The logical author of the message - the person or device that decided the described event should happen. When there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions.) 1524 */ 1525 public Reference getAuthor() { 1526 if (this.author == null) 1527 if (Configuration.errorOnAutoCreate()) 1528 throw new Error("Attempt to auto-create MessageHeader.author"); 1529 else if (Configuration.doAutoCreate()) 1530 this.author = new Reference(); // cc 1531 return this.author; 1532 } 1533 1534 public boolean hasAuthor() { 1535 return this.author != null && !this.author.isEmpty(); 1536 } 1537 1538 /** 1539 * @param value {@link #author} (The logical author of the message - the person or device that decided the described event should happen. When there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions.) 1540 */ 1541 public MessageHeader setAuthor(Reference value) { 1542 this.author = value; 1543 return this; 1544 } 1545 1546 /** 1547 * @return {@link #source} (The source application from which this message originated.) 1548 */ 1549 public MessageSourceComponent getSource() { 1550 if (this.source == null) 1551 if (Configuration.errorOnAutoCreate()) 1552 throw new Error("Attempt to auto-create MessageHeader.source"); 1553 else if (Configuration.doAutoCreate()) 1554 this.source = new MessageSourceComponent(); // cc 1555 return this.source; 1556 } 1557 1558 public boolean hasSource() { 1559 return this.source != null && !this.source.isEmpty(); 1560 } 1561 1562 /** 1563 * @param value {@link #source} (The source application from which this message originated.) 1564 */ 1565 public MessageHeader setSource(MessageSourceComponent value) { 1566 this.source = value; 1567 return this; 1568 } 1569 1570 /** 1571 * @return {@link #responsible} (The person or organization that accepts overall responsibility for the contents of the message. The implication is that the message event happened under the policies of the responsible party.) 1572 */ 1573 public Reference getResponsible() { 1574 if (this.responsible == null) 1575 if (Configuration.errorOnAutoCreate()) 1576 throw new Error("Attempt to auto-create MessageHeader.responsible"); 1577 else if (Configuration.doAutoCreate()) 1578 this.responsible = new Reference(); // cc 1579 return this.responsible; 1580 } 1581 1582 public boolean hasResponsible() { 1583 return this.responsible != null && !this.responsible.isEmpty(); 1584 } 1585 1586 /** 1587 * @param value {@link #responsible} (The person or organization that accepts overall responsibility for the contents of the message. The implication is that the message event happened under the policies of the responsible party.) 1588 */ 1589 public MessageHeader setResponsible(Reference value) { 1590 this.responsible = value; 1591 return this; 1592 } 1593 1594 /** 1595 * @return {@link #reason} (Coded indication of the cause for the event - indicates a reason for the occurrence of the event that is a focus of this message.) 1596 */ 1597 public CodeableConcept getReason() { 1598 if (this.reason == null) 1599 if (Configuration.errorOnAutoCreate()) 1600 throw new Error("Attempt to auto-create MessageHeader.reason"); 1601 else if (Configuration.doAutoCreate()) 1602 this.reason = new CodeableConcept(); // cc 1603 return this.reason; 1604 } 1605 1606 public boolean hasReason() { 1607 return this.reason != null && !this.reason.isEmpty(); 1608 } 1609 1610 /** 1611 * @param value {@link #reason} (Coded indication of the cause for the event - indicates a reason for the occurrence of the event that is a focus of this message.) 1612 */ 1613 public MessageHeader setReason(CodeableConcept value) { 1614 this.reason = value; 1615 return this; 1616 } 1617 1618 /** 1619 * @return {@link #response} (Information about the message that this message is a response to. Only present if this message is a response.) 1620 */ 1621 public MessageHeaderResponseComponent getResponse() { 1622 if (this.response == null) 1623 if (Configuration.errorOnAutoCreate()) 1624 throw new Error("Attempt to auto-create MessageHeader.response"); 1625 else if (Configuration.doAutoCreate()) 1626 this.response = new MessageHeaderResponseComponent(); // cc 1627 return this.response; 1628 } 1629 1630 public boolean hasResponse() { 1631 return this.response != null && !this.response.isEmpty(); 1632 } 1633 1634 /** 1635 * @param value {@link #response} (Information about the message that this message is a response to. Only present if this message is a response.) 1636 */ 1637 public MessageHeader setResponse(MessageHeaderResponseComponent value) { 1638 this.response = value; 1639 return this; 1640 } 1641 1642 /** 1643 * @return {@link #focus} (The actual data of the message - a reference to the root/focus class of the event.) 1644 */ 1645 public List<Reference> getFocus() { 1646 if (this.focus == null) 1647 this.focus = new ArrayList<Reference>(); 1648 return this.focus; 1649 } 1650 1651 /** 1652 * @return Returns a reference to <code>this</code> for easy method chaining 1653 */ 1654 public MessageHeader setFocus(List<Reference> theFocus) { 1655 this.focus = theFocus; 1656 return this; 1657 } 1658 1659 public boolean hasFocus() { 1660 if (this.focus == null) 1661 return false; 1662 for (Reference item : this.focus) 1663 if (!item.isEmpty()) 1664 return true; 1665 return false; 1666 } 1667 1668 public Reference addFocus() { //3 1669 Reference t = new Reference(); 1670 if (this.focus == null) 1671 this.focus = new ArrayList<Reference>(); 1672 this.focus.add(t); 1673 return t; 1674 } 1675 1676 public MessageHeader addFocus(Reference t) { //3 1677 if (t == null) 1678 return this; 1679 if (this.focus == null) 1680 this.focus = new ArrayList<Reference>(); 1681 this.focus.add(t); 1682 return this; 1683 } 1684 1685 /** 1686 * @return The first repetition of repeating field {@link #focus}, creating it if it does not already exist 1687 */ 1688 public Reference getFocusFirstRep() { 1689 if (getFocus().isEmpty()) { 1690 addFocus(); 1691 } 1692 return getFocus().get(0); 1693 } 1694 1695 /** 1696 * @return {@link #definition} (Permanent link to the MessageDefinition for this message.). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value 1697 */ 1698 public CanonicalType getDefinitionElement() { 1699 if (this.definition == null) 1700 if (Configuration.errorOnAutoCreate()) 1701 throw new Error("Attempt to auto-create MessageHeader.definition"); 1702 else if (Configuration.doAutoCreate()) 1703 this.definition = new CanonicalType(); // bb 1704 return this.definition; 1705 } 1706 1707 public boolean hasDefinitionElement() { 1708 return this.definition != null && !this.definition.isEmpty(); 1709 } 1710 1711 public boolean hasDefinition() { 1712 return this.definition != null && !this.definition.isEmpty(); 1713 } 1714 1715 /** 1716 * @param value {@link #definition} (Permanent link to the MessageDefinition for this message.). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value 1717 */ 1718 public MessageHeader setDefinitionElement(CanonicalType value) { 1719 this.definition = value; 1720 return this; 1721 } 1722 1723 /** 1724 * @return Permanent link to the MessageDefinition for this message. 1725 */ 1726 public String getDefinition() { 1727 return this.definition == null ? null : this.definition.getValue(); 1728 } 1729 1730 /** 1731 * @param value Permanent link to the MessageDefinition for this message. 1732 */ 1733 public MessageHeader setDefinition(String value) { 1734 if (Utilities.noString(value)) 1735 this.definition = null; 1736 else { 1737 if (this.definition == null) 1738 this.definition = new CanonicalType(); 1739 this.definition.setValue(value); 1740 } 1741 return this; 1742 } 1743 1744 protected void listChildren(List<Property> children) { 1745 super.listChildren(children); 1746 children.add(new Property("event[x]", "Coding|uri", "Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value \"http://terminology.hl7.org/CodeSystem/message-events\". Alternatively uri to the EventDefinition.", 0, 1, event)); 1747 children.add(new Property("destination", "", "The destination application which the message is intended for.", 0, java.lang.Integer.MAX_VALUE, destination)); 1748 children.add(new Property("sender", "Reference(Practitioner|PractitionerRole|Organization)", "Identifies the sending system to allow the use of a trust relationship.", 0, 1, sender)); 1749 children.add(new Property("enterer", "Reference(Practitioner|PractitionerRole)", "The person or device that performed the data entry leading to this message. When there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions.", 0, 1, enterer)); 1750 children.add(new Property("author", "Reference(Practitioner|PractitionerRole)", "The logical author of the message - the person or device that decided the described event should happen. When there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions.", 0, 1, author)); 1751 children.add(new Property("source", "", "The source application from which this message originated.", 0, 1, source)); 1752 children.add(new Property("responsible", "Reference(Practitioner|PractitionerRole|Organization)", "The person or organization that accepts overall responsibility for the contents of the message. The implication is that the message event happened under the policies of the responsible party.", 0, 1, responsible)); 1753 children.add(new Property("reason", "CodeableConcept", "Coded indication of the cause for the event - indicates a reason for the occurrence of the event that is a focus of this message.", 0, 1, reason)); 1754 children.add(new Property("response", "", "Information about the message that this message is a response to. Only present if this message is a response.", 0, 1, response)); 1755 children.add(new Property("focus", "Reference(Any)", "The actual data of the message - a reference to the root/focus class of the event.", 0, java.lang.Integer.MAX_VALUE, focus)); 1756 children.add(new Property("definition", "canonical(MessageDefinition)", "Permanent link to the MessageDefinition for this message.", 0, 1, definition)); 1757 } 1758 1759 @Override 1760 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1761 switch (_hash) { 1762 case 278115238: /*event[x]*/ return new Property("event[x]", "Coding|uri", "Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value \"http://terminology.hl7.org/CodeSystem/message-events\". Alternatively uri to the EventDefinition.", 0, 1, event); 1763 case 96891546: /*event*/ return new Property("event[x]", "Coding|uri", "Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value \"http://terminology.hl7.org/CodeSystem/message-events\". Alternatively uri to the EventDefinition.", 0, 1, event); 1764 case -355957084: /*eventCoding*/ return new Property("event[x]", "Coding|uri", "Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value \"http://terminology.hl7.org/CodeSystem/message-events\". Alternatively uri to the EventDefinition.", 0, 1, event); 1765 case 278109298: /*eventUri*/ return new Property("event[x]", "Coding|uri", "Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value \"http://terminology.hl7.org/CodeSystem/message-events\". Alternatively uri to the EventDefinition.", 0, 1, event); 1766 case -1429847026: /*destination*/ return new Property("destination", "", "The destination application which the message is intended for.", 0, java.lang.Integer.MAX_VALUE, destination); 1767 case -905962955: /*sender*/ return new Property("sender", "Reference(Practitioner|PractitionerRole|Organization)", "Identifies the sending system to allow the use of a trust relationship.", 0, 1, sender); 1768 case -1591951995: /*enterer*/ return new Property("enterer", "Reference(Practitioner|PractitionerRole)", "The person or device that performed the data entry leading to this message. When there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions.", 0, 1, enterer); 1769 case -1406328437: /*author*/ return new Property("author", "Reference(Practitioner|PractitionerRole)", "The logical author of the message - the person or device that decided the described event should happen. When there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions.", 0, 1, author); 1770 case -896505829: /*source*/ return new Property("source", "", "The source application from which this message originated.", 0, 1, source); 1771 case 1847674614: /*responsible*/ return new Property("responsible", "Reference(Practitioner|PractitionerRole|Organization)", "The person or organization that accepts overall responsibility for the contents of the message. The implication is that the message event happened under the policies of the responsible party.", 0, 1, responsible); 1772 case -934964668: /*reason*/ return new Property("reason", "CodeableConcept", "Coded indication of the cause for the event - indicates a reason for the occurrence of the event that is a focus of this message.", 0, 1, reason); 1773 case -340323263: /*response*/ return new Property("response", "", "Information about the message that this message is a response to. Only present if this message is a response.", 0, 1, response); 1774 case 97604824: /*focus*/ return new Property("focus", "Reference(Any)", "The actual data of the message - a reference to the root/focus class of the event.", 0, java.lang.Integer.MAX_VALUE, focus); 1775 case -1014418093: /*definition*/ return new Property("definition", "canonical(MessageDefinition)", "Permanent link to the MessageDefinition for this message.", 0, 1, definition); 1776 default: return super.getNamedProperty(_hash, _name, _checkValid); 1777 } 1778 1779 } 1780 1781 @Override 1782 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1783 switch (hash) { 1784 case 96891546: /*event*/ return this.event == null ? new Base[0] : new Base[] {this.event}; // Type 1785 case -1429847026: /*destination*/ return this.destination == null ? new Base[0] : this.destination.toArray(new Base[this.destination.size()]); // MessageDestinationComponent 1786 case -905962955: /*sender*/ return this.sender == null ? new Base[0] : new Base[] {this.sender}; // Reference 1787 case -1591951995: /*enterer*/ return this.enterer == null ? new Base[0] : new Base[] {this.enterer}; // Reference 1788 case -1406328437: /*author*/ return this.author == null ? new Base[0] : new Base[] {this.author}; // Reference 1789 case -896505829: /*source*/ return this.source == null ? new Base[0] : new Base[] {this.source}; // MessageSourceComponent 1790 case 1847674614: /*responsible*/ return this.responsible == null ? new Base[0] : new Base[] {this.responsible}; // Reference 1791 case -934964668: /*reason*/ return this.reason == null ? new Base[0] : new Base[] {this.reason}; // CodeableConcept 1792 case -340323263: /*response*/ return this.response == null ? new Base[0] : new Base[] {this.response}; // MessageHeaderResponseComponent 1793 case 97604824: /*focus*/ return this.focus == null ? new Base[0] : this.focus.toArray(new Base[this.focus.size()]); // Reference 1794 case -1014418093: /*definition*/ return this.definition == null ? new Base[0] : new Base[] {this.definition}; // CanonicalType 1795 default: return super.getProperty(hash, name, checkValid); 1796 } 1797 1798 } 1799 1800 @Override 1801 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1802 switch (hash) { 1803 case 96891546: // event 1804 this.event = castToType(value); // Type 1805 return value; 1806 case -1429847026: // destination 1807 this.getDestination().add((MessageDestinationComponent) value); // MessageDestinationComponent 1808 return value; 1809 case -905962955: // sender 1810 this.sender = castToReference(value); // Reference 1811 return value; 1812 case -1591951995: // enterer 1813 this.enterer = castToReference(value); // Reference 1814 return value; 1815 case -1406328437: // author 1816 this.author = castToReference(value); // Reference 1817 return value; 1818 case -896505829: // source 1819 this.source = (MessageSourceComponent) value; // MessageSourceComponent 1820 return value; 1821 case 1847674614: // responsible 1822 this.responsible = castToReference(value); // Reference 1823 return value; 1824 case -934964668: // reason 1825 this.reason = castToCodeableConcept(value); // CodeableConcept 1826 return value; 1827 case -340323263: // response 1828 this.response = (MessageHeaderResponseComponent) value; // MessageHeaderResponseComponent 1829 return value; 1830 case 97604824: // focus 1831 this.getFocus().add(castToReference(value)); // Reference 1832 return value; 1833 case -1014418093: // definition 1834 this.definition = castToCanonical(value); // CanonicalType 1835 return value; 1836 default: return super.setProperty(hash, name, value); 1837 } 1838 1839 } 1840 1841 @Override 1842 public Base setProperty(String name, Base value) throws FHIRException { 1843 if (name.equals("event[x]")) { 1844 this.event = castToType(value); // Type 1845 } else if (name.equals("destination")) { 1846 this.getDestination().add((MessageDestinationComponent) value); 1847 } else if (name.equals("sender")) { 1848 this.sender = castToReference(value); // Reference 1849 } else if (name.equals("enterer")) { 1850 this.enterer = castToReference(value); // Reference 1851 } else if (name.equals("author")) { 1852 this.author = castToReference(value); // Reference 1853 } else if (name.equals("source")) { 1854 this.source = (MessageSourceComponent) value; // MessageSourceComponent 1855 } else if (name.equals("responsible")) { 1856 this.responsible = castToReference(value); // Reference 1857 } else if (name.equals("reason")) { 1858 this.reason = castToCodeableConcept(value); // CodeableConcept 1859 } else if (name.equals("response")) { 1860 this.response = (MessageHeaderResponseComponent) value; // MessageHeaderResponseComponent 1861 } else if (name.equals("focus")) { 1862 this.getFocus().add(castToReference(value)); 1863 } else if (name.equals("definition")) { 1864 this.definition = castToCanonical(value); // CanonicalType 1865 } else 1866 return super.setProperty(name, value); 1867 return value; 1868 } 1869 1870 @Override 1871 public Base makeProperty(int hash, String name) throws FHIRException { 1872 switch (hash) { 1873 case 278115238: return getEvent(); 1874 case 96891546: return getEvent(); 1875 case -1429847026: return addDestination(); 1876 case -905962955: return getSender(); 1877 case -1591951995: return getEnterer(); 1878 case -1406328437: return getAuthor(); 1879 case -896505829: return getSource(); 1880 case 1847674614: return getResponsible(); 1881 case -934964668: return getReason(); 1882 case -340323263: return getResponse(); 1883 case 97604824: return addFocus(); 1884 case -1014418093: return getDefinitionElement(); 1885 default: return super.makeProperty(hash, name); 1886 } 1887 1888 } 1889 1890 @Override 1891 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1892 switch (hash) { 1893 case 96891546: /*event*/ return new String[] {"Coding", "uri"}; 1894 case -1429847026: /*destination*/ return new String[] {}; 1895 case -905962955: /*sender*/ return new String[] {"Reference"}; 1896 case -1591951995: /*enterer*/ return new String[] {"Reference"}; 1897 case -1406328437: /*author*/ return new String[] {"Reference"}; 1898 case -896505829: /*source*/ return new String[] {}; 1899 case 1847674614: /*responsible*/ return new String[] {"Reference"}; 1900 case -934964668: /*reason*/ return new String[] {"CodeableConcept"}; 1901 case -340323263: /*response*/ return new String[] {}; 1902 case 97604824: /*focus*/ return new String[] {"Reference"}; 1903 case -1014418093: /*definition*/ return new String[] {"canonical"}; 1904 default: return super.getTypesForProperty(hash, name); 1905 } 1906 1907 } 1908 1909 @Override 1910 public Base addChild(String name) throws FHIRException { 1911 if (name.equals("eventCoding")) { 1912 this.event = new Coding(); 1913 return this.event; 1914 } 1915 else if (name.equals("eventUri")) { 1916 this.event = new UriType(); 1917 return this.event; 1918 } 1919 else if (name.equals("destination")) { 1920 return addDestination(); 1921 } 1922 else if (name.equals("sender")) { 1923 this.sender = new Reference(); 1924 return this.sender; 1925 } 1926 else if (name.equals("enterer")) { 1927 this.enterer = new Reference(); 1928 return this.enterer; 1929 } 1930 else if (name.equals("author")) { 1931 this.author = new Reference(); 1932 return this.author; 1933 } 1934 else if (name.equals("source")) { 1935 this.source = new MessageSourceComponent(); 1936 return this.source; 1937 } 1938 else if (name.equals("responsible")) { 1939 this.responsible = new Reference(); 1940 return this.responsible; 1941 } 1942 else if (name.equals("reason")) { 1943 this.reason = new CodeableConcept(); 1944 return this.reason; 1945 } 1946 else if (name.equals("response")) { 1947 this.response = new MessageHeaderResponseComponent(); 1948 return this.response; 1949 } 1950 else if (name.equals("focus")) { 1951 return addFocus(); 1952 } 1953 else if (name.equals("definition")) { 1954 throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.definition"); 1955 } 1956 else 1957 return super.addChild(name); 1958 } 1959 1960 public String fhirType() { 1961 return "MessageHeader"; 1962 1963 } 1964 1965 public MessageHeader copy() { 1966 MessageHeader dst = new MessageHeader(); 1967 copyValues(dst); 1968 return dst; 1969 } 1970 1971 public void copyValues(MessageHeader dst) { 1972 super.copyValues(dst); 1973 dst.event = event == null ? null : event.copy(); 1974 if (destination != null) { 1975 dst.destination = new ArrayList<MessageDestinationComponent>(); 1976 for (MessageDestinationComponent i : destination) 1977 dst.destination.add(i.copy()); 1978 }; 1979 dst.sender = sender == null ? null : sender.copy(); 1980 dst.enterer = enterer == null ? null : enterer.copy(); 1981 dst.author = author == null ? null : author.copy(); 1982 dst.source = source == null ? null : source.copy(); 1983 dst.responsible = responsible == null ? null : responsible.copy(); 1984 dst.reason = reason == null ? null : reason.copy(); 1985 dst.response = response == null ? null : response.copy(); 1986 if (focus != null) { 1987 dst.focus = new ArrayList<Reference>(); 1988 for (Reference i : focus) 1989 dst.focus.add(i.copy()); 1990 }; 1991 dst.definition = definition == null ? null : definition.copy(); 1992 } 1993 1994 protected MessageHeader typedCopy() { 1995 return copy(); 1996 } 1997 1998 @Override 1999 public boolean equalsDeep(Base other_) { 2000 if (!super.equalsDeep(other_)) 2001 return false; 2002 if (!(other_ instanceof MessageHeader)) 2003 return false; 2004 MessageHeader o = (MessageHeader) other_; 2005 return compareDeep(event, o.event, true) && compareDeep(destination, o.destination, true) && compareDeep(sender, o.sender, true) 2006 && compareDeep(enterer, o.enterer, true) && compareDeep(author, o.author, true) && compareDeep(source, o.source, true) 2007 && compareDeep(responsible, o.responsible, true) && compareDeep(reason, o.reason, true) && compareDeep(response, o.response, true) 2008 && compareDeep(focus, o.focus, true) && compareDeep(definition, o.definition, true); 2009 } 2010 2011 @Override 2012 public boolean equalsShallow(Base other_) { 2013 if (!super.equalsShallow(other_)) 2014 return false; 2015 if (!(other_ instanceof MessageHeader)) 2016 return false; 2017 MessageHeader o = (MessageHeader) other_; 2018 return true; 2019 } 2020 2021 public boolean isEmpty() { 2022 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(event, destination, sender 2023 , enterer, author, source, responsible, reason, response, focus, definition 2024 ); 2025 } 2026 2027 @Override 2028 public ResourceType getResourceType() { 2029 return ResourceType.MessageHeader; 2030 } 2031 2032 /** 2033 * Search parameter: <b>code</b> 2034 * <p> 2035 * Description: <b>ok | transient-error | fatal-error</b><br> 2036 * Type: <b>token</b><br> 2037 * Path: <b>MessageHeader.response.code</b><br> 2038 * </p> 2039 */ 2040 @SearchParamDefinition(name="code", path="MessageHeader.response.code", description="ok | transient-error | fatal-error", type="token" ) 2041 public static final String SP_CODE = "code"; 2042 /** 2043 * <b>Fluent Client</b> search parameter constant for <b>code</b> 2044 * <p> 2045 * Description: <b>ok | transient-error | fatal-error</b><br> 2046 * Type: <b>token</b><br> 2047 * Path: <b>MessageHeader.response.code</b><br> 2048 * </p> 2049 */ 2050 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); 2051 2052 /** 2053 * Search parameter: <b>receiver</b> 2054 * <p> 2055 * Description: <b>Intended "real-world" recipient for the data</b><br> 2056 * Type: <b>reference</b><br> 2057 * Path: <b>MessageHeader.destination.receiver</b><br> 2058 * </p> 2059 */ 2060 @SearchParamDefinition(name="receiver", path="MessageHeader.destination.receiver", description="Intended \"real-world\" recipient for the data", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") }, target={Organization.class, Practitioner.class, PractitionerRole.class } ) 2061 public static final String SP_RECEIVER = "receiver"; 2062 /** 2063 * <b>Fluent Client</b> search parameter constant for <b>receiver</b> 2064 * <p> 2065 * Description: <b>Intended "real-world" recipient for the data</b><br> 2066 * Type: <b>reference</b><br> 2067 * Path: <b>MessageHeader.destination.receiver</b><br> 2068 * </p> 2069 */ 2070 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RECEIVER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_RECEIVER); 2071 2072/** 2073 * Constant for fluent queries to be used to add include statements. Specifies 2074 * the path value of "<b>MessageHeader:receiver</b>". 2075 */ 2076 public static final ca.uhn.fhir.model.api.Include INCLUDE_RECEIVER = new ca.uhn.fhir.model.api.Include("MessageHeader:receiver").toLocked(); 2077 2078 /** 2079 * Search parameter: <b>author</b> 2080 * <p> 2081 * Description: <b>The source of the decision</b><br> 2082 * Type: <b>reference</b><br> 2083 * Path: <b>MessageHeader.author</b><br> 2084 * </p> 2085 */ 2086 @SearchParamDefinition(name="author", path="MessageHeader.author", description="The source of the decision", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") }, target={Practitioner.class, PractitionerRole.class } ) 2087 public static final String SP_AUTHOR = "author"; 2088 /** 2089 * <b>Fluent Client</b> search parameter constant for <b>author</b> 2090 * <p> 2091 * Description: <b>The source of the decision</b><br> 2092 * Type: <b>reference</b><br> 2093 * Path: <b>MessageHeader.author</b><br> 2094 * </p> 2095 */ 2096 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AUTHOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_AUTHOR); 2097 2098/** 2099 * Constant for fluent queries to be used to add include statements. Specifies 2100 * the path value of "<b>MessageHeader:author</b>". 2101 */ 2102 public static final ca.uhn.fhir.model.api.Include INCLUDE_AUTHOR = new ca.uhn.fhir.model.api.Include("MessageHeader:author").toLocked(); 2103 2104 /** 2105 * Search parameter: <b>destination</b> 2106 * <p> 2107 * Description: <b>Name of system</b><br> 2108 * Type: <b>string</b><br> 2109 * Path: <b>MessageHeader.destination.name</b><br> 2110 * </p> 2111 */ 2112 @SearchParamDefinition(name="destination", path="MessageHeader.destination.name", description="Name of system", type="string" ) 2113 public static final String SP_DESTINATION = "destination"; 2114 /** 2115 * <b>Fluent Client</b> search parameter constant for <b>destination</b> 2116 * <p> 2117 * Description: <b>Name of system</b><br> 2118 * Type: <b>string</b><br> 2119 * Path: <b>MessageHeader.destination.name</b><br> 2120 * </p> 2121 */ 2122 public static final ca.uhn.fhir.rest.gclient.StringClientParam DESTINATION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESTINATION); 2123 2124 /** 2125 * Search parameter: <b>focus</b> 2126 * <p> 2127 * Description: <b>The actual content of the message</b><br> 2128 * Type: <b>reference</b><br> 2129 * Path: <b>MessageHeader.focus</b><br> 2130 * </p> 2131 */ 2132 @SearchParamDefinition(name="focus", path="MessageHeader.focus", description="The actual content of the message", type="reference" ) 2133 public static final String SP_FOCUS = "focus"; 2134 /** 2135 * <b>Fluent Client</b> search parameter constant for <b>focus</b> 2136 * <p> 2137 * Description: <b>The actual content of the message</b><br> 2138 * Type: <b>reference</b><br> 2139 * Path: <b>MessageHeader.focus</b><br> 2140 * </p> 2141 */ 2142 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam FOCUS = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_FOCUS); 2143 2144/** 2145 * Constant for fluent queries to be used to add include statements. Specifies 2146 * the path value of "<b>MessageHeader:focus</b>". 2147 */ 2148 public static final ca.uhn.fhir.model.api.Include INCLUDE_FOCUS = new ca.uhn.fhir.model.api.Include("MessageHeader:focus").toLocked(); 2149 2150 /** 2151 * Search parameter: <b>source</b> 2152 * <p> 2153 * Description: <b>Name of system</b><br> 2154 * Type: <b>string</b><br> 2155 * Path: <b>MessageHeader.source.name</b><br> 2156 * </p> 2157 */ 2158 @SearchParamDefinition(name="source", path="MessageHeader.source.name", description="Name of system", type="string" ) 2159 public static final String SP_SOURCE = "source"; 2160 /** 2161 * <b>Fluent Client</b> search parameter constant for <b>source</b> 2162 * <p> 2163 * Description: <b>Name of system</b><br> 2164 * Type: <b>string</b><br> 2165 * Path: <b>MessageHeader.source.name</b><br> 2166 * </p> 2167 */ 2168 public static final ca.uhn.fhir.rest.gclient.StringClientParam SOURCE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_SOURCE); 2169 2170 /** 2171 * Search parameter: <b>target</b> 2172 * <p> 2173 * Description: <b>Particular delivery destination within the destination</b><br> 2174 * Type: <b>reference</b><br> 2175 * Path: <b>MessageHeader.destination.target</b><br> 2176 * </p> 2177 */ 2178 @SearchParamDefinition(name="target", path="MessageHeader.destination.target", description="Particular delivery destination within the destination", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device") }, target={Device.class } ) 2179 public static final String SP_TARGET = "target"; 2180 /** 2181 * <b>Fluent Client</b> search parameter constant for <b>target</b> 2182 * <p> 2183 * Description: <b>Particular delivery destination within the destination</b><br> 2184 * Type: <b>reference</b><br> 2185 * Path: <b>MessageHeader.destination.target</b><br> 2186 * </p> 2187 */ 2188 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam TARGET = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_TARGET); 2189 2190/** 2191 * Constant for fluent queries to be used to add include statements. Specifies 2192 * the path value of "<b>MessageHeader:target</b>". 2193 */ 2194 public static final ca.uhn.fhir.model.api.Include INCLUDE_TARGET = new ca.uhn.fhir.model.api.Include("MessageHeader:target").toLocked(); 2195 2196 /** 2197 * Search parameter: <b>destination-uri</b> 2198 * <p> 2199 * Description: <b>Actual destination address or id</b><br> 2200 * Type: <b>uri</b><br> 2201 * Path: <b>MessageHeader.destination.endpoint</b><br> 2202 * </p> 2203 */ 2204 @SearchParamDefinition(name="destination-uri", path="MessageHeader.destination.endpoint", description="Actual destination address or id", type="uri" ) 2205 public static final String SP_DESTINATION_URI = "destination-uri"; 2206 /** 2207 * <b>Fluent Client</b> search parameter constant for <b>destination-uri</b> 2208 * <p> 2209 * Description: <b>Actual destination address or id</b><br> 2210 * Type: <b>uri</b><br> 2211 * Path: <b>MessageHeader.destination.endpoint</b><br> 2212 * </p> 2213 */ 2214 public static final ca.uhn.fhir.rest.gclient.UriClientParam DESTINATION_URI = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_DESTINATION_URI); 2215 2216 /** 2217 * Search parameter: <b>source-uri</b> 2218 * <p> 2219 * Description: <b>Actual message source address or id</b><br> 2220 * Type: <b>uri</b><br> 2221 * Path: <b>MessageHeader.source.endpoint</b><br> 2222 * </p> 2223 */ 2224 @SearchParamDefinition(name="source-uri", path="MessageHeader.source.endpoint", description="Actual message source address or id", type="uri" ) 2225 public static final String SP_SOURCE_URI = "source-uri"; 2226 /** 2227 * <b>Fluent Client</b> search parameter constant for <b>source-uri</b> 2228 * <p> 2229 * Description: <b>Actual message source address or id</b><br> 2230 * Type: <b>uri</b><br> 2231 * Path: <b>MessageHeader.source.endpoint</b><br> 2232 * </p> 2233 */ 2234 public static final ca.uhn.fhir.rest.gclient.UriClientParam SOURCE_URI = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_SOURCE_URI); 2235 2236 /** 2237 * Search parameter: <b>sender</b> 2238 * <p> 2239 * Description: <b>Real world sender of the message</b><br> 2240 * Type: <b>reference</b><br> 2241 * Path: <b>MessageHeader.sender</b><br> 2242 * </p> 2243 */ 2244 @SearchParamDefinition(name="sender", path="MessageHeader.sender", description="Real world sender of the message", type="reference", target={Organization.class, Practitioner.class, PractitionerRole.class } ) 2245 public static final String SP_SENDER = "sender"; 2246 /** 2247 * <b>Fluent Client</b> search parameter constant for <b>sender</b> 2248 * <p> 2249 * Description: <b>Real world sender of the message</b><br> 2250 * Type: <b>reference</b><br> 2251 * Path: <b>MessageHeader.sender</b><br> 2252 * </p> 2253 */ 2254 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SENDER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SENDER); 2255 2256/** 2257 * Constant for fluent queries to be used to add include statements. Specifies 2258 * the path value of "<b>MessageHeader:sender</b>". 2259 */ 2260 public static final ca.uhn.fhir.model.api.Include INCLUDE_SENDER = new ca.uhn.fhir.model.api.Include("MessageHeader:sender").toLocked(); 2261 2262 /** 2263 * Search parameter: <b>responsible</b> 2264 * <p> 2265 * Description: <b>Final responsibility for event</b><br> 2266 * Type: <b>reference</b><br> 2267 * Path: <b>MessageHeader.responsible</b><br> 2268 * </p> 2269 */ 2270 @SearchParamDefinition(name="responsible", path="MessageHeader.responsible", description="Final responsibility for event", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") }, target={Organization.class, Practitioner.class, PractitionerRole.class } ) 2271 public static final String SP_RESPONSIBLE = "responsible"; 2272 /** 2273 * <b>Fluent Client</b> search parameter constant for <b>responsible</b> 2274 * <p> 2275 * Description: <b>Final responsibility for event</b><br> 2276 * Type: <b>reference</b><br> 2277 * Path: <b>MessageHeader.responsible</b><br> 2278 * </p> 2279 */ 2280 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RESPONSIBLE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_RESPONSIBLE); 2281 2282/** 2283 * Constant for fluent queries to be used to add include statements. Specifies 2284 * the path value of "<b>MessageHeader:responsible</b>". 2285 */ 2286 public static final ca.uhn.fhir.model.api.Include INCLUDE_RESPONSIBLE = new ca.uhn.fhir.model.api.Include("MessageHeader:responsible").toLocked(); 2287 2288 /** 2289 * Search parameter: <b>enterer</b> 2290 * <p> 2291 * Description: <b>The source of the data entry</b><br> 2292 * Type: <b>reference</b><br> 2293 * Path: <b>MessageHeader.enterer</b><br> 2294 * </p> 2295 */ 2296 @SearchParamDefinition(name="enterer", path="MessageHeader.enterer", description="The source of the data entry", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") }, target={Practitioner.class, PractitionerRole.class } ) 2297 public static final String SP_ENTERER = "enterer"; 2298 /** 2299 * <b>Fluent Client</b> search parameter constant for <b>enterer</b> 2300 * <p> 2301 * Description: <b>The source of the data entry</b><br> 2302 * Type: <b>reference</b><br> 2303 * Path: <b>MessageHeader.enterer</b><br> 2304 * </p> 2305 */ 2306 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENTERER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENTERER); 2307 2308/** 2309 * Constant for fluent queries to be used to add include statements. Specifies 2310 * the path value of "<b>MessageHeader:enterer</b>". 2311 */ 2312 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENTERER = new ca.uhn.fhir.model.api.Include("MessageHeader:enterer").toLocked(); 2313 2314 /** 2315 * Search parameter: <b>response-id</b> 2316 * <p> 2317 * Description: <b>Id of original message</b><br> 2318 * Type: <b>token</b><br> 2319 * Path: <b>MessageHeader.response.identifier</b><br> 2320 * </p> 2321 */ 2322 @SearchParamDefinition(name="response-id", path="MessageHeader.response.identifier", description="Id of original message", type="token" ) 2323 public static final String SP_RESPONSE_ID = "response-id"; 2324 /** 2325 * <b>Fluent Client</b> search parameter constant for <b>response-id</b> 2326 * <p> 2327 * Description: <b>Id of original message</b><br> 2328 * Type: <b>token</b><br> 2329 * Path: <b>MessageHeader.response.identifier</b><br> 2330 * </p> 2331 */ 2332 public static final ca.uhn.fhir.rest.gclient.TokenClientParam RESPONSE_ID = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RESPONSE_ID); 2333 2334 /** 2335 * Search parameter: <b>event</b> 2336 * <p> 2337 * Description: <b>Code for the event this message represents or link to event definition</b><br> 2338 * Type: <b>token</b><br> 2339 * Path: <b>MessageHeader.event[x]</b><br> 2340 * </p> 2341 */ 2342 @SearchParamDefinition(name="event", path="MessageHeader.event", description="Code for the event this message represents or link to event definition", type="token" ) 2343 public static final String SP_EVENT = "event"; 2344 /** 2345 * <b>Fluent Client</b> search parameter constant for <b>event</b> 2346 * <p> 2347 * Description: <b>Code for the event this message represents or link to event definition</b><br> 2348 * Type: <b>token</b><br> 2349 * Path: <b>MessageHeader.event[x]</b><br> 2350 * </p> 2351 */ 2352 public static final ca.uhn.fhir.rest.gclient.TokenClientParam EVENT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EVENT); 2353 2354 2355} 2356