001package org.hl7.fhir.r5.model; 002 003 004/* 005 * #%L 006 * org.hl7.fhir.r5 007 * %% 008 * Copyright (C) 2014 - 2019 Health Level 7 009 * %% 010 * Licensed under the Apache License, Version 2.0 (the \"License\"); 011 * you may not use this file except in compliance with the License. 012 * You may obtain a copy of the License at 013 * 014 * http://www.apache.org/licenses/LICENSE-2.0 015 * 016 * Unless required by applicable law or agreed to in writing, software 017 * distributed under the License is distributed on an \"AS IS\" BASIS, 018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 019 * See the License for the specific language governing permissions and 020 * limitations under the License. 021 * #L% 022 */ 023 024/* 025 Copyright (c) 2011+, HL7, Inc. 026 All rights reserved. 027 028 Redistribution and use in source and binary forms, with or without modification, \ 029 are permitted provided that the following conditions are met: 030 031 * Redistributions of source code must retain the above copyright notice, this \ 032 list of conditions and the following disclaimer. 033 * Redistributions in binary form must reproduce the above copyright notice, \ 034 this list of conditions and the following disclaimer in the documentation \ 035 and/or other materials provided with the distribution. 036 * Neither the name of HL7 nor the names of its contributors may be used to 037 endorse or promote products derived from this software without specific 038 prior written permission. 039 040 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \ 041 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \ 042 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \ 043 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \ 044 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \ 045 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \ 046 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \ 047 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \ 048 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \ 049 POSSIBILITY OF SUCH DAMAGE. 050 */ 051 052// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent 053 054import java.util.ArrayList; 055import java.util.Date; 056import java.util.List; 057import org.hl7.fhir.utilities.Utilities; 058import org.hl7.fhir.r5.model.Enumerations.*; 059import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 060import org.hl7.fhir.exceptions.FHIRException; 061import org.hl7.fhir.instance.model.api.ICompositeType; 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/** 071 * A collection of documents compiled for a purpose together with metadata that applies to the collection. 072 */ 073@ResourceDef(name="DocumentManifest", profile="http://hl7.org/fhir/StructureDefinition/DocumentManifest") 074public class DocumentManifest extends DomainResource { 075 076 @Block() 077 public static class DocumentManifestRelatedComponent extends BackboneElement implements IBaseBackboneElement { 078 /** 079 * Related identifier to this DocumentManifest. For example, Order numbers, accession numbers, XDW workflow numbers. 080 */ 081 @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=1, modifier=false, summary=false) 082 @Description(shortDefinition="Identifiers of things that are related", formalDefinition="Related identifier to this DocumentManifest. For example, Order numbers, accession numbers, XDW workflow numbers." ) 083 protected Identifier identifier; 084 085 /** 086 * Related Resource to this DocumentManifest. For example, Order, ServiceRequest, Procedure, EligibilityRequest, etc. 087 */ 088 @Child(name = "ref", type = {Reference.class}, order=2, min=0, max=1, modifier=false, summary=false) 089 @Description(shortDefinition="Related Resource", formalDefinition="Related Resource to this DocumentManifest. For example, Order, ServiceRequest, Procedure, EligibilityRequest, etc." ) 090 protected Reference ref; 091 092 private static final long serialVersionUID = -1464616234L; 093 094 /** 095 * Constructor 096 */ 097 public DocumentManifestRelatedComponent() { 098 super(); 099 } 100 101 /** 102 * @return {@link #identifier} (Related identifier to this DocumentManifest. For example, Order numbers, accession numbers, XDW workflow numbers.) 103 */ 104 public Identifier getIdentifier() { 105 if (this.identifier == null) 106 if (Configuration.errorOnAutoCreate()) 107 throw new Error("Attempt to auto-create DocumentManifestRelatedComponent.identifier"); 108 else if (Configuration.doAutoCreate()) 109 this.identifier = new Identifier(); // cc 110 return this.identifier; 111 } 112 113 public boolean hasIdentifier() { 114 return this.identifier != null && !this.identifier.isEmpty(); 115 } 116 117 /** 118 * @param value {@link #identifier} (Related identifier to this DocumentManifest. For example, Order numbers, accession numbers, XDW workflow numbers.) 119 */ 120 public DocumentManifestRelatedComponent setIdentifier(Identifier value) { 121 this.identifier = value; 122 return this; 123 } 124 125 /** 126 * @return {@link #ref} (Related Resource to this DocumentManifest. For example, Order, ServiceRequest, Procedure, EligibilityRequest, etc.) 127 */ 128 public Reference getRef() { 129 if (this.ref == null) 130 if (Configuration.errorOnAutoCreate()) 131 throw new Error("Attempt to auto-create DocumentManifestRelatedComponent.ref"); 132 else if (Configuration.doAutoCreate()) 133 this.ref = new Reference(); // cc 134 return this.ref; 135 } 136 137 public boolean hasRef() { 138 return this.ref != null && !this.ref.isEmpty(); 139 } 140 141 /** 142 * @param value {@link #ref} (Related Resource to this DocumentManifest. For example, Order, ServiceRequest, Procedure, EligibilityRequest, etc.) 143 */ 144 public DocumentManifestRelatedComponent setRef(Reference value) { 145 this.ref = value; 146 return this; 147 } 148 149 protected void listChildren(List<Property> children) { 150 super.listChildren(children); 151 children.add(new Property("identifier", "Identifier", "Related identifier to this DocumentManifest. For example, Order numbers, accession numbers, XDW workflow numbers.", 0, 1, identifier)); 152 children.add(new Property("ref", "Reference(Any)", "Related Resource to this DocumentManifest. For example, Order, ServiceRequest, Procedure, EligibilityRequest, etc.", 0, 1, ref)); 153 } 154 155 @Override 156 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 157 switch (_hash) { 158 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Related identifier to this DocumentManifest. For example, Order numbers, accession numbers, XDW workflow numbers.", 0, 1, identifier); 159 case 112787: /*ref*/ return new Property("ref", "Reference(Any)", "Related Resource to this DocumentManifest. For example, Order, ServiceRequest, Procedure, EligibilityRequest, etc.", 0, 1, ref); 160 default: return super.getNamedProperty(_hash, _name, _checkValid); 161 } 162 163 } 164 165 @Override 166 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 167 switch (hash) { 168 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // Identifier 169 case 112787: /*ref*/ return this.ref == null ? new Base[0] : new Base[] {this.ref}; // Reference 170 default: return super.getProperty(hash, name, checkValid); 171 } 172 173 } 174 175 @Override 176 public Base setProperty(int hash, String name, Base value) throws FHIRException { 177 switch (hash) { 178 case -1618432855: // identifier 179 this.identifier = TypeConvertor.castToIdentifier(value); // Identifier 180 return value; 181 case 112787: // ref 182 this.ref = TypeConvertor.castToReference(value); // Reference 183 return value; 184 default: return super.setProperty(hash, name, value); 185 } 186 187 } 188 189 @Override 190 public Base setProperty(String name, Base value) throws FHIRException { 191 if (name.equals("identifier")) { 192 this.identifier = TypeConvertor.castToIdentifier(value); // Identifier 193 } else if (name.equals("ref")) { 194 this.ref = TypeConvertor.castToReference(value); // Reference 195 } else 196 return super.setProperty(name, value); 197 return value; 198 } 199 200 @Override 201 public Base makeProperty(int hash, String name) throws FHIRException { 202 switch (hash) { 203 case -1618432855: return getIdentifier(); 204 case 112787: return getRef(); 205 default: return super.makeProperty(hash, name); 206 } 207 208 } 209 210 @Override 211 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 212 switch (hash) { 213 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 214 case 112787: /*ref*/ return new String[] {"Reference"}; 215 default: return super.getTypesForProperty(hash, name); 216 } 217 218 } 219 220 @Override 221 public Base addChild(String name) throws FHIRException { 222 if (name.equals("identifier")) { 223 this.identifier = new Identifier(); 224 return this.identifier; 225 } 226 else if (name.equals("ref")) { 227 this.ref = new Reference(); 228 return this.ref; 229 } 230 else 231 return super.addChild(name); 232 } 233 234 public DocumentManifestRelatedComponent copy() { 235 DocumentManifestRelatedComponent dst = new DocumentManifestRelatedComponent(); 236 copyValues(dst); 237 return dst; 238 } 239 240 public void copyValues(DocumentManifestRelatedComponent dst) { 241 super.copyValues(dst); 242 dst.identifier = identifier == null ? null : identifier.copy(); 243 dst.ref = ref == null ? null : ref.copy(); 244 } 245 246 @Override 247 public boolean equalsDeep(Base other_) { 248 if (!super.equalsDeep(other_)) 249 return false; 250 if (!(other_ instanceof DocumentManifestRelatedComponent)) 251 return false; 252 DocumentManifestRelatedComponent o = (DocumentManifestRelatedComponent) other_; 253 return compareDeep(identifier, o.identifier, true) && compareDeep(ref, o.ref, true); 254 } 255 256 @Override 257 public boolean equalsShallow(Base other_) { 258 if (!super.equalsShallow(other_)) 259 return false; 260 if (!(other_ instanceof DocumentManifestRelatedComponent)) 261 return false; 262 DocumentManifestRelatedComponent o = (DocumentManifestRelatedComponent) other_; 263 return true; 264 } 265 266 public boolean isEmpty() { 267 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, ref); 268 } 269 270 public String fhirType() { 271 return "DocumentManifest.related"; 272 273 } 274 275 } 276 277 /** 278 * A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts. 279 */ 280 @Child(name = "masterIdentifier", type = {Identifier.class}, order=0, min=0, max=1, modifier=false, summary=true) 281 @Description(shortDefinition="Unique Identifier for the set of documents", formalDefinition="A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts." ) 282 protected Identifier masterIdentifier; 283 284 /** 285 * Other identifiers associated with the document manifest, including version independent identifiers. 286 */ 287 @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 288 @Description(shortDefinition="Other identifiers for the manifest", formalDefinition="Other identifiers associated with the document manifest, including version independent identifiers." ) 289 protected List<Identifier> identifier; 290 291 /** 292 * The status of this document manifest. 293 */ 294 @Child(name = "status", type = {CodeType.class}, order=2, min=1, max=1, modifier=true, summary=true) 295 @Description(shortDefinition="current | superseded | entered-in-error", formalDefinition="The status of this document manifest." ) 296 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/document-reference-status") 297 protected Enumeration<DocumentReferenceStatus> status; 298 299 /** 300 * The code specifying the type of clinical activity that resulted in placing the associated content into the DocumentManifest. 301 */ 302 @Child(name = "type", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=true) 303 @Description(shortDefinition="Kind of document set", formalDefinition="The code specifying the type of clinical activity that resulted in placing the associated content into the DocumentManifest." ) 304 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/v3-ActCode") 305 protected CodeableConcept type; 306 307 /** 308 * Who or what the set of documents is about. The documents can be about a person, (patient or healthcare practitioner), a device (i.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). If the documents cross more than one subject, then more than one subject is allowed here (unusual use case). 309 */ 310 @Child(name = "subject", type = {Patient.class, Practitioner.class, Group.class, Device.class}, order=4, min=0, max=1, modifier=false, summary=true) 311 @Description(shortDefinition="The subject of the set of documents", formalDefinition="Who or what the set of documents is about. The documents can be about a person, (patient or healthcare practitioner), a device (i.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). If the documents cross more than one subject, then more than one subject is allowed here (unusual use case)." ) 312 protected Reference subject; 313 314 /** 315 * When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated, etc.). 316 */ 317 @Child(name = "created", type = {DateTimeType.class}, order=5, min=0, max=1, modifier=false, summary=false) 318 @Description(shortDefinition="When this document manifest created", formalDefinition="When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated, etc.)." ) 319 protected DateTimeType created; 320 321 /** 322 * Identifies who is the author of the manifest. Manifest author is not necessarly the author of the references included. 323 */ 324 @Child(name = "author", type = {Practitioner.class, PractitionerRole.class, Organization.class, Device.class, Patient.class, RelatedPerson.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 325 @Description(shortDefinition="Who and/or what authored the DocumentManifest", formalDefinition="Identifies who is the author of the manifest. Manifest author is not necessarly the author of the references included." ) 326 protected List<Reference> author; 327 328 /** 329 * A patient, practitioner, or organization for which this set of documents is intended. 330 */ 331 @Child(name = "recipient", type = {Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class, Organization.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 332 @Description(shortDefinition="Intended to get notified about this set of documents", formalDefinition="A patient, practitioner, or organization for which this set of documents is intended." ) 333 protected List<Reference> recipient; 334 335 /** 336 * Identifies the source system, application, or software that produced the document manifest. 337 */ 338 @Child(name = "source", type = {UriType.class}, order=8, min=0, max=1, modifier=false, summary=false) 339 @Description(shortDefinition="The source system/application/software", formalDefinition="Identifies the source system, application, or software that produced the document manifest." ) 340 protected UriType source; 341 342 /** 343 * Human-readable description of the source document. This is sometimes known as the "title". 344 */ 345 @Child(name = "description", type = {StringType.class}, order=9, min=0, max=1, modifier=false, summary=true) 346 @Description(shortDefinition="Human-readable description (title)", formalDefinition="Human-readable description of the source document. This is sometimes known as the \"title\"." ) 347 protected StringType description; 348 349 /** 350 * The list of Resources that consist of the parts of this manifest. 351 */ 352 @Child(name = "content", type = {Reference.class}, order=10, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 353 @Description(shortDefinition="Items in manifest", formalDefinition="The list of Resources that consist of the parts of this manifest." ) 354 protected List<Reference> content; 355 356 /** 357 * Related identifiers or resources associated with the DocumentManifest. 358 */ 359 @Child(name = "related", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 360 @Description(shortDefinition="Related things", formalDefinition="Related identifiers or resources associated with the DocumentManifest." ) 361 protected List<DocumentManifestRelatedComponent> related; 362 363 private static final long serialVersionUID = -1695559473L; 364 365 /** 366 * Constructor 367 */ 368 public DocumentManifest() { 369 super(); 370 } 371 372 /** 373 * Constructor 374 */ 375 public DocumentManifest(DocumentReferenceStatus status, Reference content) { 376 super(); 377 this.setStatus(status); 378 this.addContent(content); 379 } 380 381 /** 382 * @return {@link #masterIdentifier} (A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts.) 383 */ 384 public Identifier getMasterIdentifier() { 385 if (this.masterIdentifier == null) 386 if (Configuration.errorOnAutoCreate()) 387 throw new Error("Attempt to auto-create DocumentManifest.masterIdentifier"); 388 else if (Configuration.doAutoCreate()) 389 this.masterIdentifier = new Identifier(); // cc 390 return this.masterIdentifier; 391 } 392 393 public boolean hasMasterIdentifier() { 394 return this.masterIdentifier != null && !this.masterIdentifier.isEmpty(); 395 } 396 397 /** 398 * @param value {@link #masterIdentifier} (A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts.) 399 */ 400 public DocumentManifest setMasterIdentifier(Identifier value) { 401 this.masterIdentifier = value; 402 return this; 403 } 404 405 /** 406 * @return {@link #identifier} (Other identifiers associated with the document manifest, including version independent identifiers.) 407 */ 408 public List<Identifier> getIdentifier() { 409 if (this.identifier == null) 410 this.identifier = new ArrayList<Identifier>(); 411 return this.identifier; 412 } 413 414 /** 415 * @return Returns a reference to <code>this</code> for easy method chaining 416 */ 417 public DocumentManifest setIdentifier(List<Identifier> theIdentifier) { 418 this.identifier = theIdentifier; 419 return this; 420 } 421 422 public boolean hasIdentifier() { 423 if (this.identifier == null) 424 return false; 425 for (Identifier item : this.identifier) 426 if (!item.isEmpty()) 427 return true; 428 return false; 429 } 430 431 public Identifier addIdentifier() { //3 432 Identifier t = new Identifier(); 433 if (this.identifier == null) 434 this.identifier = new ArrayList<Identifier>(); 435 this.identifier.add(t); 436 return t; 437 } 438 439 public DocumentManifest addIdentifier(Identifier t) { //3 440 if (t == null) 441 return this; 442 if (this.identifier == null) 443 this.identifier = new ArrayList<Identifier>(); 444 this.identifier.add(t); 445 return this; 446 } 447 448 /** 449 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} 450 */ 451 public Identifier getIdentifierFirstRep() { 452 if (getIdentifier().isEmpty()) { 453 addIdentifier(); 454 } 455 return getIdentifier().get(0); 456 } 457 458 /** 459 * @return {@link #status} (The status of this document manifest.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 460 */ 461 public Enumeration<DocumentReferenceStatus> getStatusElement() { 462 if (this.status == null) 463 if (Configuration.errorOnAutoCreate()) 464 throw new Error("Attempt to auto-create DocumentManifest.status"); 465 else if (Configuration.doAutoCreate()) 466 this.status = new Enumeration<DocumentReferenceStatus>(new DocumentReferenceStatusEnumFactory()); // bb 467 return this.status; 468 } 469 470 public boolean hasStatusElement() { 471 return this.status != null && !this.status.isEmpty(); 472 } 473 474 public boolean hasStatus() { 475 return this.status != null && !this.status.isEmpty(); 476 } 477 478 /** 479 * @param value {@link #status} (The status of this document manifest.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 480 */ 481 public DocumentManifest setStatusElement(Enumeration<DocumentReferenceStatus> value) { 482 this.status = value; 483 return this; 484 } 485 486 /** 487 * @return The status of this document manifest. 488 */ 489 public DocumentReferenceStatus getStatus() { 490 return this.status == null ? null : this.status.getValue(); 491 } 492 493 /** 494 * @param value The status of this document manifest. 495 */ 496 public DocumentManifest setStatus(DocumentReferenceStatus value) { 497 if (this.status == null) 498 this.status = new Enumeration<DocumentReferenceStatus>(new DocumentReferenceStatusEnumFactory()); 499 this.status.setValue(value); 500 return this; 501 } 502 503 /** 504 * @return {@link #type} (The code specifying the type of clinical activity that resulted in placing the associated content into the DocumentManifest.) 505 */ 506 public CodeableConcept getType() { 507 if (this.type == null) 508 if (Configuration.errorOnAutoCreate()) 509 throw new Error("Attempt to auto-create DocumentManifest.type"); 510 else if (Configuration.doAutoCreate()) 511 this.type = new CodeableConcept(); // cc 512 return this.type; 513 } 514 515 public boolean hasType() { 516 return this.type != null && !this.type.isEmpty(); 517 } 518 519 /** 520 * @param value {@link #type} (The code specifying the type of clinical activity that resulted in placing the associated content into the DocumentManifest.) 521 */ 522 public DocumentManifest setType(CodeableConcept value) { 523 this.type = value; 524 return this; 525 } 526 527 /** 528 * @return {@link #subject} (Who or what the set of documents is about. The documents can be about a person, (patient or healthcare practitioner), a device (i.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). If the documents cross more than one subject, then more than one subject is allowed here (unusual use case).) 529 */ 530 public Reference getSubject() { 531 if (this.subject == null) 532 if (Configuration.errorOnAutoCreate()) 533 throw new Error("Attempt to auto-create DocumentManifest.subject"); 534 else if (Configuration.doAutoCreate()) 535 this.subject = new Reference(); // cc 536 return this.subject; 537 } 538 539 public boolean hasSubject() { 540 return this.subject != null && !this.subject.isEmpty(); 541 } 542 543 /** 544 * @param value {@link #subject} (Who or what the set of documents is about. The documents can be about a person, (patient or healthcare practitioner), a device (i.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). If the documents cross more than one subject, then more than one subject is allowed here (unusual use case).) 545 */ 546 public DocumentManifest setSubject(Reference value) { 547 this.subject = value; 548 return this; 549 } 550 551 /** 552 * @return {@link #created} (When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated, etc.).). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value 553 */ 554 public DateTimeType getCreatedElement() { 555 if (this.created == null) 556 if (Configuration.errorOnAutoCreate()) 557 throw new Error("Attempt to auto-create DocumentManifest.created"); 558 else if (Configuration.doAutoCreate()) 559 this.created = new DateTimeType(); // bb 560 return this.created; 561 } 562 563 public boolean hasCreatedElement() { 564 return this.created != null && !this.created.isEmpty(); 565 } 566 567 public boolean hasCreated() { 568 return this.created != null && !this.created.isEmpty(); 569 } 570 571 /** 572 * @param value {@link #created} (When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated, etc.).). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value 573 */ 574 public DocumentManifest setCreatedElement(DateTimeType value) { 575 this.created = value; 576 return this; 577 } 578 579 /** 580 * @return When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated, etc.). 581 */ 582 public Date getCreated() { 583 return this.created == null ? null : this.created.getValue(); 584 } 585 586 /** 587 * @param value When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated, etc.). 588 */ 589 public DocumentManifest setCreated(Date value) { 590 if (value == null) 591 this.created = null; 592 else { 593 if (this.created == null) 594 this.created = new DateTimeType(); 595 this.created.setValue(value); 596 } 597 return this; 598 } 599 600 /** 601 * @return {@link #author} (Identifies who is the author of the manifest. Manifest author is not necessarly the author of the references included.) 602 */ 603 public List<Reference> getAuthor() { 604 if (this.author == null) 605 this.author = new ArrayList<Reference>(); 606 return this.author; 607 } 608 609 /** 610 * @return Returns a reference to <code>this</code> for easy method chaining 611 */ 612 public DocumentManifest setAuthor(List<Reference> theAuthor) { 613 this.author = theAuthor; 614 return this; 615 } 616 617 public boolean hasAuthor() { 618 if (this.author == null) 619 return false; 620 for (Reference item : this.author) 621 if (!item.isEmpty()) 622 return true; 623 return false; 624 } 625 626 public Reference addAuthor() { //3 627 Reference t = new Reference(); 628 if (this.author == null) 629 this.author = new ArrayList<Reference>(); 630 this.author.add(t); 631 return t; 632 } 633 634 public DocumentManifest addAuthor(Reference t) { //3 635 if (t == null) 636 return this; 637 if (this.author == null) 638 this.author = new ArrayList<Reference>(); 639 this.author.add(t); 640 return this; 641 } 642 643 /** 644 * @return The first repetition of repeating field {@link #author}, creating it if it does not already exist {3} 645 */ 646 public Reference getAuthorFirstRep() { 647 if (getAuthor().isEmpty()) { 648 addAuthor(); 649 } 650 return getAuthor().get(0); 651 } 652 653 /** 654 * @return {@link #recipient} (A patient, practitioner, or organization for which this set of documents is intended.) 655 */ 656 public List<Reference> getRecipient() { 657 if (this.recipient == null) 658 this.recipient = new ArrayList<Reference>(); 659 return this.recipient; 660 } 661 662 /** 663 * @return Returns a reference to <code>this</code> for easy method chaining 664 */ 665 public DocumentManifest setRecipient(List<Reference> theRecipient) { 666 this.recipient = theRecipient; 667 return this; 668 } 669 670 public boolean hasRecipient() { 671 if (this.recipient == null) 672 return false; 673 for (Reference item : this.recipient) 674 if (!item.isEmpty()) 675 return true; 676 return false; 677 } 678 679 public Reference addRecipient() { //3 680 Reference t = new Reference(); 681 if (this.recipient == null) 682 this.recipient = new ArrayList<Reference>(); 683 this.recipient.add(t); 684 return t; 685 } 686 687 public DocumentManifest addRecipient(Reference t) { //3 688 if (t == null) 689 return this; 690 if (this.recipient == null) 691 this.recipient = new ArrayList<Reference>(); 692 this.recipient.add(t); 693 return this; 694 } 695 696 /** 697 * @return The first repetition of repeating field {@link #recipient}, creating it if it does not already exist {3} 698 */ 699 public Reference getRecipientFirstRep() { 700 if (getRecipient().isEmpty()) { 701 addRecipient(); 702 } 703 return getRecipient().get(0); 704 } 705 706 /** 707 * @return {@link #source} (Identifies the source system, application, or software that produced the document manifest.). This is the underlying object with id, value and extensions. The accessor "getSource" gives direct access to the value 708 */ 709 public UriType getSourceElement() { 710 if (this.source == null) 711 if (Configuration.errorOnAutoCreate()) 712 throw new Error("Attempt to auto-create DocumentManifest.source"); 713 else if (Configuration.doAutoCreate()) 714 this.source = new UriType(); // bb 715 return this.source; 716 } 717 718 public boolean hasSourceElement() { 719 return this.source != null && !this.source.isEmpty(); 720 } 721 722 public boolean hasSource() { 723 return this.source != null && !this.source.isEmpty(); 724 } 725 726 /** 727 * @param value {@link #source} (Identifies the source system, application, or software that produced the document manifest.). This is the underlying object with id, value and extensions. The accessor "getSource" gives direct access to the value 728 */ 729 public DocumentManifest setSourceElement(UriType value) { 730 this.source = value; 731 return this; 732 } 733 734 /** 735 * @return Identifies the source system, application, or software that produced the document manifest. 736 */ 737 public String getSource() { 738 return this.source == null ? null : this.source.getValue(); 739 } 740 741 /** 742 * @param value Identifies the source system, application, or software that produced the document manifest. 743 */ 744 public DocumentManifest setSource(String value) { 745 if (Utilities.noString(value)) 746 this.source = null; 747 else { 748 if (this.source == null) 749 this.source = new UriType(); 750 this.source.setValue(value); 751 } 752 return this; 753 } 754 755 /** 756 * @return {@link #description} (Human-readable description of the source document. This is sometimes known as the "title".). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 757 */ 758 public StringType getDescriptionElement() { 759 if (this.description == null) 760 if (Configuration.errorOnAutoCreate()) 761 throw new Error("Attempt to auto-create DocumentManifest.description"); 762 else if (Configuration.doAutoCreate()) 763 this.description = new StringType(); // bb 764 return this.description; 765 } 766 767 public boolean hasDescriptionElement() { 768 return this.description != null && !this.description.isEmpty(); 769 } 770 771 public boolean hasDescription() { 772 return this.description != null && !this.description.isEmpty(); 773 } 774 775 /** 776 * @param value {@link #description} (Human-readable description of the source document. This is sometimes known as the "title".). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 777 */ 778 public DocumentManifest setDescriptionElement(StringType value) { 779 this.description = value; 780 return this; 781 } 782 783 /** 784 * @return Human-readable description of the source document. This is sometimes known as the "title". 785 */ 786 public String getDescription() { 787 return this.description == null ? null : this.description.getValue(); 788 } 789 790 /** 791 * @param value Human-readable description of the source document. This is sometimes known as the "title". 792 */ 793 public DocumentManifest setDescription(String value) { 794 if (Utilities.noString(value)) 795 this.description = null; 796 else { 797 if (this.description == null) 798 this.description = new StringType(); 799 this.description.setValue(value); 800 } 801 return this; 802 } 803 804 /** 805 * @return {@link #content} (The list of Resources that consist of the parts of this manifest.) 806 */ 807 public List<Reference> getContent() { 808 if (this.content == null) 809 this.content = new ArrayList<Reference>(); 810 return this.content; 811 } 812 813 /** 814 * @return Returns a reference to <code>this</code> for easy method chaining 815 */ 816 public DocumentManifest setContent(List<Reference> theContent) { 817 this.content = theContent; 818 return this; 819 } 820 821 public boolean hasContent() { 822 if (this.content == null) 823 return false; 824 for (Reference item : this.content) 825 if (!item.isEmpty()) 826 return true; 827 return false; 828 } 829 830 public Reference addContent() { //3 831 Reference t = new Reference(); 832 if (this.content == null) 833 this.content = new ArrayList<Reference>(); 834 this.content.add(t); 835 return t; 836 } 837 838 public DocumentManifest addContent(Reference t) { //3 839 if (t == null) 840 return this; 841 if (this.content == null) 842 this.content = new ArrayList<Reference>(); 843 this.content.add(t); 844 return this; 845 } 846 847 /** 848 * @return The first repetition of repeating field {@link #content}, creating it if it does not already exist {3} 849 */ 850 public Reference getContentFirstRep() { 851 if (getContent().isEmpty()) { 852 addContent(); 853 } 854 return getContent().get(0); 855 } 856 857 /** 858 * @return {@link #related} (Related identifiers or resources associated with the DocumentManifest.) 859 */ 860 public List<DocumentManifestRelatedComponent> getRelated() { 861 if (this.related == null) 862 this.related = new ArrayList<DocumentManifestRelatedComponent>(); 863 return this.related; 864 } 865 866 /** 867 * @return Returns a reference to <code>this</code> for easy method chaining 868 */ 869 public DocumentManifest setRelated(List<DocumentManifestRelatedComponent> theRelated) { 870 this.related = theRelated; 871 return this; 872 } 873 874 public boolean hasRelated() { 875 if (this.related == null) 876 return false; 877 for (DocumentManifestRelatedComponent item : this.related) 878 if (!item.isEmpty()) 879 return true; 880 return false; 881 } 882 883 public DocumentManifestRelatedComponent addRelated() { //3 884 DocumentManifestRelatedComponent t = new DocumentManifestRelatedComponent(); 885 if (this.related == null) 886 this.related = new ArrayList<DocumentManifestRelatedComponent>(); 887 this.related.add(t); 888 return t; 889 } 890 891 public DocumentManifest addRelated(DocumentManifestRelatedComponent t) { //3 892 if (t == null) 893 return this; 894 if (this.related == null) 895 this.related = new ArrayList<DocumentManifestRelatedComponent>(); 896 this.related.add(t); 897 return this; 898 } 899 900 /** 901 * @return The first repetition of repeating field {@link #related}, creating it if it does not already exist {3} 902 */ 903 public DocumentManifestRelatedComponent getRelatedFirstRep() { 904 if (getRelated().isEmpty()) { 905 addRelated(); 906 } 907 return getRelated().get(0); 908 } 909 910 protected void listChildren(List<Property> children) { 911 super.listChildren(children); 912 children.add(new Property("masterIdentifier", "Identifier", "A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts.", 0, 1, masterIdentifier)); 913 children.add(new Property("identifier", "Identifier", "Other identifiers associated with the document manifest, including version independent identifiers.", 0, java.lang.Integer.MAX_VALUE, identifier)); 914 children.add(new Property("status", "code", "The status of this document manifest.", 0, 1, status)); 915 children.add(new Property("type", "CodeableConcept", "The code specifying the type of clinical activity that resulted in placing the associated content into the DocumentManifest.", 0, 1, type)); 916 children.add(new Property("subject", "Reference(Patient|Practitioner|Group|Device)", "Who or what the set of documents is about. The documents can be about a person, (patient or healthcare practitioner), a device (i.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). If the documents cross more than one subject, then more than one subject is allowed here (unusual use case).", 0, 1, subject)); 917 children.add(new Property("created", "dateTime", "When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated, etc.).", 0, 1, created)); 918 children.add(new Property("author", "Reference(Practitioner|PractitionerRole|Organization|Device|Patient|RelatedPerson)", "Identifies who is the author of the manifest. Manifest author is not necessarly the author of the references included.", 0, java.lang.Integer.MAX_VALUE, author)); 919 children.add(new Property("recipient", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson|Organization)", "A patient, practitioner, or organization for which this set of documents is intended.", 0, java.lang.Integer.MAX_VALUE, recipient)); 920 children.add(new Property("source", "uri", "Identifies the source system, application, or software that produced the document manifest.", 0, 1, source)); 921 children.add(new Property("description", "string", "Human-readable description of the source document. This is sometimes known as the \"title\".", 0, 1, description)); 922 children.add(new Property("content", "Reference(Any)", "The list of Resources that consist of the parts of this manifest.", 0, java.lang.Integer.MAX_VALUE, content)); 923 children.add(new Property("related", "", "Related identifiers or resources associated with the DocumentManifest.", 0, java.lang.Integer.MAX_VALUE, related)); 924 } 925 926 @Override 927 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 928 switch (_hash) { 929 case 243769515: /*masterIdentifier*/ return new Property("masterIdentifier", "Identifier", "A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts.", 0, 1, masterIdentifier); 930 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Other identifiers associated with the document manifest, including version independent identifiers.", 0, java.lang.Integer.MAX_VALUE, identifier); 931 case -892481550: /*status*/ return new Property("status", "code", "The status of this document manifest.", 0, 1, status); 932 case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The code specifying the type of clinical activity that resulted in placing the associated content into the DocumentManifest.", 0, 1, type); 933 case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Practitioner|Group|Device)", "Who or what the set of documents is about. The documents can be about a person, (patient or healthcare practitioner), a device (i.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). If the documents cross more than one subject, then more than one subject is allowed here (unusual use case).", 0, 1, subject); 934 case 1028554472: /*created*/ return new Property("created", "dateTime", "When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated, etc.).", 0, 1, created); 935 case -1406328437: /*author*/ return new Property("author", "Reference(Practitioner|PractitionerRole|Organization|Device|Patient|RelatedPerson)", "Identifies who is the author of the manifest. Manifest author is not necessarly the author of the references included.", 0, java.lang.Integer.MAX_VALUE, author); 936 case 820081177: /*recipient*/ return new Property("recipient", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson|Organization)", "A patient, practitioner, or organization for which this set of documents is intended.", 0, java.lang.Integer.MAX_VALUE, recipient); 937 case -896505829: /*source*/ return new Property("source", "uri", "Identifies the source system, application, or software that produced the document manifest.", 0, 1, source); 938 case -1724546052: /*description*/ return new Property("description", "string", "Human-readable description of the source document. This is sometimes known as the \"title\".", 0, 1, description); 939 case 951530617: /*content*/ return new Property("content", "Reference(Any)", "The list of Resources that consist of the parts of this manifest.", 0, java.lang.Integer.MAX_VALUE, content); 940 case 1090493483: /*related*/ return new Property("related", "", "Related identifiers or resources associated with the DocumentManifest.", 0, java.lang.Integer.MAX_VALUE, related); 941 default: return super.getNamedProperty(_hash, _name, _checkValid); 942 } 943 944 } 945 946 @Override 947 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 948 switch (hash) { 949 case 243769515: /*masterIdentifier*/ return this.masterIdentifier == null ? new Base[0] : new Base[] {this.masterIdentifier}; // Identifier 950 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 951 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<DocumentReferenceStatus> 952 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept 953 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference 954 case 1028554472: /*created*/ return this.created == null ? new Base[0] : new Base[] {this.created}; // DateTimeType 955 case -1406328437: /*author*/ return this.author == null ? new Base[0] : this.author.toArray(new Base[this.author.size()]); // Reference 956 case 820081177: /*recipient*/ return this.recipient == null ? new Base[0] : this.recipient.toArray(new Base[this.recipient.size()]); // Reference 957 case -896505829: /*source*/ return this.source == null ? new Base[0] : new Base[] {this.source}; // UriType 958 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 959 case 951530617: /*content*/ return this.content == null ? new Base[0] : this.content.toArray(new Base[this.content.size()]); // Reference 960 case 1090493483: /*related*/ return this.related == null ? new Base[0] : this.related.toArray(new Base[this.related.size()]); // DocumentManifestRelatedComponent 961 default: return super.getProperty(hash, name, checkValid); 962 } 963 964 } 965 966 @Override 967 public Base setProperty(int hash, String name, Base value) throws FHIRException { 968 switch (hash) { 969 case 243769515: // masterIdentifier 970 this.masterIdentifier = TypeConvertor.castToIdentifier(value); // Identifier 971 return value; 972 case -1618432855: // identifier 973 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier 974 return value; 975 case -892481550: // status 976 value = new DocumentReferenceStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 977 this.status = (Enumeration) value; // Enumeration<DocumentReferenceStatus> 978 return value; 979 case 3575610: // type 980 this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 981 return value; 982 case -1867885268: // subject 983 this.subject = TypeConvertor.castToReference(value); // Reference 984 return value; 985 case 1028554472: // created 986 this.created = TypeConvertor.castToDateTime(value); // DateTimeType 987 return value; 988 case -1406328437: // author 989 this.getAuthor().add(TypeConvertor.castToReference(value)); // Reference 990 return value; 991 case 820081177: // recipient 992 this.getRecipient().add(TypeConvertor.castToReference(value)); // Reference 993 return value; 994 case -896505829: // source 995 this.source = TypeConvertor.castToUri(value); // UriType 996 return value; 997 case -1724546052: // description 998 this.description = TypeConvertor.castToString(value); // StringType 999 return value; 1000 case 951530617: // content 1001 this.getContent().add(TypeConvertor.castToReference(value)); // Reference 1002 return value; 1003 case 1090493483: // related 1004 this.getRelated().add((DocumentManifestRelatedComponent) value); // DocumentManifestRelatedComponent 1005 return value; 1006 default: return super.setProperty(hash, name, value); 1007 } 1008 1009 } 1010 1011 @Override 1012 public Base setProperty(String name, Base value) throws FHIRException { 1013 if (name.equals("masterIdentifier")) { 1014 this.masterIdentifier = TypeConvertor.castToIdentifier(value); // Identifier 1015 } else if (name.equals("identifier")) { 1016 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); 1017 } else if (name.equals("status")) { 1018 value = new DocumentReferenceStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 1019 this.status = (Enumeration) value; // Enumeration<DocumentReferenceStatus> 1020 } else if (name.equals("type")) { 1021 this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1022 } else if (name.equals("subject")) { 1023 this.subject = TypeConvertor.castToReference(value); // Reference 1024 } else if (name.equals("created")) { 1025 this.created = TypeConvertor.castToDateTime(value); // DateTimeType 1026 } else if (name.equals("author")) { 1027 this.getAuthor().add(TypeConvertor.castToReference(value)); 1028 } else if (name.equals("recipient")) { 1029 this.getRecipient().add(TypeConvertor.castToReference(value)); 1030 } else if (name.equals("source")) { 1031 this.source = TypeConvertor.castToUri(value); // UriType 1032 } else if (name.equals("description")) { 1033 this.description = TypeConvertor.castToString(value); // StringType 1034 } else if (name.equals("content")) { 1035 this.getContent().add(TypeConvertor.castToReference(value)); 1036 } else if (name.equals("related")) { 1037 this.getRelated().add((DocumentManifestRelatedComponent) value); 1038 } else 1039 return super.setProperty(name, value); 1040 return value; 1041 } 1042 1043 @Override 1044 public Base makeProperty(int hash, String name) throws FHIRException { 1045 switch (hash) { 1046 case 243769515: return getMasterIdentifier(); 1047 case -1618432855: return addIdentifier(); 1048 case -892481550: return getStatusElement(); 1049 case 3575610: return getType(); 1050 case -1867885268: return getSubject(); 1051 case 1028554472: return getCreatedElement(); 1052 case -1406328437: return addAuthor(); 1053 case 820081177: return addRecipient(); 1054 case -896505829: return getSourceElement(); 1055 case -1724546052: return getDescriptionElement(); 1056 case 951530617: return addContent(); 1057 case 1090493483: return addRelated(); 1058 default: return super.makeProperty(hash, name); 1059 } 1060 1061 } 1062 1063 @Override 1064 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1065 switch (hash) { 1066 case 243769515: /*masterIdentifier*/ return new String[] {"Identifier"}; 1067 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 1068 case -892481550: /*status*/ return new String[] {"code"}; 1069 case 3575610: /*type*/ return new String[] {"CodeableConcept"}; 1070 case -1867885268: /*subject*/ return new String[] {"Reference"}; 1071 case 1028554472: /*created*/ return new String[] {"dateTime"}; 1072 case -1406328437: /*author*/ return new String[] {"Reference"}; 1073 case 820081177: /*recipient*/ return new String[] {"Reference"}; 1074 case -896505829: /*source*/ return new String[] {"uri"}; 1075 case -1724546052: /*description*/ return new String[] {"string"}; 1076 case 951530617: /*content*/ return new String[] {"Reference"}; 1077 case 1090493483: /*related*/ return new String[] {}; 1078 default: return super.getTypesForProperty(hash, name); 1079 } 1080 1081 } 1082 1083 @Override 1084 public Base addChild(String name) throws FHIRException { 1085 if (name.equals("masterIdentifier")) { 1086 this.masterIdentifier = new Identifier(); 1087 return this.masterIdentifier; 1088 } 1089 else if (name.equals("identifier")) { 1090 return addIdentifier(); 1091 } 1092 else if (name.equals("status")) { 1093 throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.status"); 1094 } 1095 else if (name.equals("type")) { 1096 this.type = new CodeableConcept(); 1097 return this.type; 1098 } 1099 else if (name.equals("subject")) { 1100 this.subject = new Reference(); 1101 return this.subject; 1102 } 1103 else if (name.equals("created")) { 1104 throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.created"); 1105 } 1106 else if (name.equals("author")) { 1107 return addAuthor(); 1108 } 1109 else if (name.equals("recipient")) { 1110 return addRecipient(); 1111 } 1112 else if (name.equals("source")) { 1113 throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.source"); 1114 } 1115 else if (name.equals("description")) { 1116 throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.description"); 1117 } 1118 else if (name.equals("content")) { 1119 return addContent(); 1120 } 1121 else if (name.equals("related")) { 1122 return addRelated(); 1123 } 1124 else 1125 return super.addChild(name); 1126 } 1127 1128 public String fhirType() { 1129 return "DocumentManifest"; 1130 1131 } 1132 1133 public DocumentManifest copy() { 1134 DocumentManifest dst = new DocumentManifest(); 1135 copyValues(dst); 1136 return dst; 1137 } 1138 1139 public void copyValues(DocumentManifest dst) { 1140 super.copyValues(dst); 1141 dst.masterIdentifier = masterIdentifier == null ? null : masterIdentifier.copy(); 1142 if (identifier != null) { 1143 dst.identifier = new ArrayList<Identifier>(); 1144 for (Identifier i : identifier) 1145 dst.identifier.add(i.copy()); 1146 }; 1147 dst.status = status == null ? null : status.copy(); 1148 dst.type = type == null ? null : type.copy(); 1149 dst.subject = subject == null ? null : subject.copy(); 1150 dst.created = created == null ? null : created.copy(); 1151 if (author != null) { 1152 dst.author = new ArrayList<Reference>(); 1153 for (Reference i : author) 1154 dst.author.add(i.copy()); 1155 }; 1156 if (recipient != null) { 1157 dst.recipient = new ArrayList<Reference>(); 1158 for (Reference i : recipient) 1159 dst.recipient.add(i.copy()); 1160 }; 1161 dst.source = source == null ? null : source.copy(); 1162 dst.description = description == null ? null : description.copy(); 1163 if (content != null) { 1164 dst.content = new ArrayList<Reference>(); 1165 for (Reference i : content) 1166 dst.content.add(i.copy()); 1167 }; 1168 if (related != null) { 1169 dst.related = new ArrayList<DocumentManifestRelatedComponent>(); 1170 for (DocumentManifestRelatedComponent i : related) 1171 dst.related.add(i.copy()); 1172 }; 1173 } 1174 1175 protected DocumentManifest typedCopy() { 1176 return copy(); 1177 } 1178 1179 @Override 1180 public boolean equalsDeep(Base other_) { 1181 if (!super.equalsDeep(other_)) 1182 return false; 1183 if (!(other_ instanceof DocumentManifest)) 1184 return false; 1185 DocumentManifest o = (DocumentManifest) other_; 1186 return compareDeep(masterIdentifier, o.masterIdentifier, true) && compareDeep(identifier, o.identifier, true) 1187 && compareDeep(status, o.status, true) && compareDeep(type, o.type, true) && compareDeep(subject, o.subject, true) 1188 && compareDeep(created, o.created, true) && compareDeep(author, o.author, true) && compareDeep(recipient, o.recipient, true) 1189 && compareDeep(source, o.source, true) && compareDeep(description, o.description, true) && compareDeep(content, o.content, true) 1190 && compareDeep(related, o.related, true); 1191 } 1192 1193 @Override 1194 public boolean equalsShallow(Base other_) { 1195 if (!super.equalsShallow(other_)) 1196 return false; 1197 if (!(other_ instanceof DocumentManifest)) 1198 return false; 1199 DocumentManifest o = (DocumentManifest) other_; 1200 return compareValues(status, o.status, true) && compareValues(created, o.created, true) && compareValues(source, o.source, true) 1201 && compareValues(description, o.description, true); 1202 } 1203 1204 public boolean isEmpty() { 1205 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(masterIdentifier, identifier 1206 , status, type, subject, created, author, recipient, source, description, content 1207 , related); 1208 } 1209 1210 @Override 1211 public ResourceType getResourceType() { 1212 return ResourceType.DocumentManifest; 1213 } 1214 1215 /** 1216 * Search parameter: <b>author</b> 1217 * <p> 1218 * Description: <b>Who and/or what authored the DocumentManifest</b><br> 1219 * Type: <b>reference</b><br> 1220 * Path: <b>DocumentManifest.author</b><br> 1221 * </p> 1222 */ 1223 @SearchParamDefinition(name="author", path="DocumentManifest.author", description="Who and/or what authored the DocumentManifest", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) 1224 public static final String SP_AUTHOR = "author"; 1225 /** 1226 * <b>Fluent Client</b> search parameter constant for <b>author</b> 1227 * <p> 1228 * Description: <b>Who and/or what authored the DocumentManifest</b><br> 1229 * Type: <b>reference</b><br> 1230 * Path: <b>DocumentManifest.author</b><br> 1231 * </p> 1232 */ 1233 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AUTHOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_AUTHOR); 1234 1235/** 1236 * Constant for fluent queries to be used to add include statements. Specifies 1237 * the path value of "<b>DocumentManifest:author</b>". 1238 */ 1239 public static final ca.uhn.fhir.model.api.Include INCLUDE_AUTHOR = new ca.uhn.fhir.model.api.Include("DocumentManifest:author").toLocked(); 1240 1241 /** 1242 * Search parameter: <b>created</b> 1243 * <p> 1244 * Description: <b>When this document manifest created</b><br> 1245 * Type: <b>date</b><br> 1246 * Path: <b>DocumentManifest.created</b><br> 1247 * </p> 1248 */ 1249 @SearchParamDefinition(name="created", path="DocumentManifest.created", description="When this document manifest created", type="date" ) 1250 public static final String SP_CREATED = "created"; 1251 /** 1252 * <b>Fluent Client</b> search parameter constant for <b>created</b> 1253 * <p> 1254 * Description: <b>When this document manifest created</b><br> 1255 * Type: <b>date</b><br> 1256 * Path: <b>DocumentManifest.created</b><br> 1257 * </p> 1258 */ 1259 public static final ca.uhn.fhir.rest.gclient.DateClientParam CREATED = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_CREATED); 1260 1261 /** 1262 * Search parameter: <b>description</b> 1263 * <p> 1264 * Description: <b>Human-readable description (title)</b><br> 1265 * Type: <b>string</b><br> 1266 * Path: <b>DocumentManifest.description</b><br> 1267 * </p> 1268 */ 1269 @SearchParamDefinition(name="description", path="DocumentManifest.description", description="Human-readable description (title)", type="string" ) 1270 public static final String SP_DESCRIPTION = "description"; 1271 /** 1272 * <b>Fluent Client</b> search parameter constant for <b>description</b> 1273 * <p> 1274 * Description: <b>Human-readable description (title)</b><br> 1275 * Type: <b>string</b><br> 1276 * Path: <b>DocumentManifest.description</b><br> 1277 * </p> 1278 */ 1279 public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); 1280 1281 /** 1282 * Search parameter: <b>item</b> 1283 * <p> 1284 * Description: <b>Items in manifest</b><br> 1285 * Type: <b>reference</b><br> 1286 * Path: <b>DocumentManifest.content</b><br> 1287 * </p> 1288 */ 1289 @SearchParamDefinition(name="item", path="DocumentManifest.content", description="Items in manifest", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, Topic.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) 1290 public static final String SP_ITEM = "item"; 1291 /** 1292 * <b>Fluent Client</b> search parameter constant for <b>item</b> 1293 * <p> 1294 * Description: <b>Items in manifest</b><br> 1295 * Type: <b>reference</b><br> 1296 * Path: <b>DocumentManifest.content</b><br> 1297 * </p> 1298 */ 1299 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ITEM = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ITEM); 1300 1301/** 1302 * Constant for fluent queries to be used to add include statements. Specifies 1303 * the path value of "<b>DocumentManifest:item</b>". 1304 */ 1305 public static final ca.uhn.fhir.model.api.Include INCLUDE_ITEM = new ca.uhn.fhir.model.api.Include("DocumentManifest:item").toLocked(); 1306 1307 /** 1308 * Search parameter: <b>recipient</b> 1309 * <p> 1310 * Description: <b>Intended to get notified about this set of documents</b><br> 1311 * Type: <b>reference</b><br> 1312 * Path: <b>DocumentManifest.recipient</b><br> 1313 * </p> 1314 */ 1315 @SearchParamDefinition(name="recipient", path="DocumentManifest.recipient", description="Intended to get notified about this set of documents", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) 1316 public static final String SP_RECIPIENT = "recipient"; 1317 /** 1318 * <b>Fluent Client</b> search parameter constant for <b>recipient</b> 1319 * <p> 1320 * Description: <b>Intended to get notified about this set of documents</b><br> 1321 * Type: <b>reference</b><br> 1322 * Path: <b>DocumentManifest.recipient</b><br> 1323 * </p> 1324 */ 1325 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RECIPIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_RECIPIENT); 1326 1327/** 1328 * Constant for fluent queries to be used to add include statements. Specifies 1329 * the path value of "<b>DocumentManifest:recipient</b>". 1330 */ 1331 public static final ca.uhn.fhir.model.api.Include INCLUDE_RECIPIENT = new ca.uhn.fhir.model.api.Include("DocumentManifest:recipient").toLocked(); 1332 1333 /** 1334 * Search parameter: <b>related-id</b> 1335 * <p> 1336 * Description: <b>Identifiers of things that are related</b><br> 1337 * Type: <b>token</b><br> 1338 * Path: <b>DocumentManifest.related.identifier</b><br> 1339 * </p> 1340 */ 1341 @SearchParamDefinition(name="related-id", path="DocumentManifest.related.identifier", description="Identifiers of things that are related", type="token" ) 1342 public static final String SP_RELATED_ID = "related-id"; 1343 /** 1344 * <b>Fluent Client</b> search parameter constant for <b>related-id</b> 1345 * <p> 1346 * Description: <b>Identifiers of things that are related</b><br> 1347 * Type: <b>token</b><br> 1348 * Path: <b>DocumentManifest.related.identifier</b><br> 1349 * </p> 1350 */ 1351 public static final ca.uhn.fhir.rest.gclient.TokenClientParam RELATED_ID = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RELATED_ID); 1352 1353 /** 1354 * Search parameter: <b>related-ref</b> 1355 * <p> 1356 * Description: <b>Related Resource</b><br> 1357 * Type: <b>reference</b><br> 1358 * Path: <b>DocumentManifest.related.ref</b><br> 1359 * </p> 1360 */ 1361 @SearchParamDefinition(name="related-ref", path="DocumentManifest.related.ref", description="Related Resource", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, Topic.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) 1362 public static final String SP_RELATED_REF = "related-ref"; 1363 /** 1364 * <b>Fluent Client</b> search parameter constant for <b>related-ref</b> 1365 * <p> 1366 * Description: <b>Related Resource</b><br> 1367 * Type: <b>reference</b><br> 1368 * Path: <b>DocumentManifest.related.ref</b><br> 1369 * </p> 1370 */ 1371 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RELATED_REF = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_RELATED_REF); 1372 1373/** 1374 * Constant for fluent queries to be used to add include statements. Specifies 1375 * the path value of "<b>DocumentManifest:related-ref</b>". 1376 */ 1377 public static final ca.uhn.fhir.model.api.Include INCLUDE_RELATED_REF = new ca.uhn.fhir.model.api.Include("DocumentManifest:related-ref").toLocked(); 1378 1379 /** 1380 * Search parameter: <b>source</b> 1381 * <p> 1382 * Description: <b>The source system/application/software</b><br> 1383 * Type: <b>uri</b><br> 1384 * Path: <b>DocumentManifest.source</b><br> 1385 * </p> 1386 */ 1387 @SearchParamDefinition(name="source", path="DocumentManifest.source", description="The source system/application/software", type="uri" ) 1388 public static final String SP_SOURCE = "source"; 1389 /** 1390 * <b>Fluent Client</b> search parameter constant for <b>source</b> 1391 * <p> 1392 * Description: <b>The source system/application/software</b><br> 1393 * Type: <b>uri</b><br> 1394 * Path: <b>DocumentManifest.source</b><br> 1395 * </p> 1396 */ 1397 public static final ca.uhn.fhir.rest.gclient.UriClientParam SOURCE = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_SOURCE); 1398 1399 /** 1400 * Search parameter: <b>status</b> 1401 * <p> 1402 * Description: <b>current | superseded | entered-in-error</b><br> 1403 * Type: <b>token</b><br> 1404 * Path: <b>DocumentManifest.status</b><br> 1405 * </p> 1406 */ 1407 @SearchParamDefinition(name="status", path="DocumentManifest.status", description="current | superseded | entered-in-error", type="token" ) 1408 public static final String SP_STATUS = "status"; 1409 /** 1410 * <b>Fluent Client</b> search parameter constant for <b>status</b> 1411 * <p> 1412 * Description: <b>current | superseded | entered-in-error</b><br> 1413 * Type: <b>token</b><br> 1414 * Path: <b>DocumentManifest.status</b><br> 1415 * </p> 1416 */ 1417 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 1418 1419 /** 1420 * Search parameter: <b>subject</b> 1421 * <p> 1422 * Description: <b>The subject of the set of documents</b><br> 1423 * Type: <b>reference</b><br> 1424 * Path: <b>DocumentManifest.subject</b><br> 1425 * </p> 1426 */ 1427 @SearchParamDefinition(name="subject", path="DocumentManifest.subject", description="The subject of the set of documents", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Device.class, Group.class, Patient.class, Practitioner.class } ) 1428 public static final String SP_SUBJECT = "subject"; 1429 /** 1430 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 1431 * <p> 1432 * Description: <b>The subject of the set of documents</b><br> 1433 * Type: <b>reference</b><br> 1434 * Path: <b>DocumentManifest.subject</b><br> 1435 * </p> 1436 */ 1437 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); 1438 1439/** 1440 * Constant for fluent queries to be used to add include statements. Specifies 1441 * the path value of "<b>DocumentManifest:subject</b>". 1442 */ 1443 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("DocumentManifest:subject").toLocked(); 1444 1445 /** 1446 * Search parameter: <b>identifier</b> 1447 * <p> 1448 * Description: <b>Multiple Resources: 1449 1450* [AllergyIntolerance](allergyintolerance.html): External ids for this item 1451* [CarePlan](careplan.html): External Ids for this plan 1452* [CareTeam](careteam.html): External Ids for this team 1453* [Composition](composition.html): Version-independent identifier for the Composition 1454* [Condition](condition.html): A unique identifier of the condition record 1455* [Consent](consent.html): Identifier for this record (external references) 1456* [DetectedIssue](detectedissue.html): Unique id for the detected issue 1457* [DeviceRequest](devicerequest.html): Business identifier for request/order 1458* [DiagnosticReport](diagnosticreport.html): An identifier for the report 1459* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents 1460* [DocumentReference](documentreference.html): Master Version Specific Identifier 1461* [Encounter](encounter.html): Identifier(s) by which this encounter is known 1462* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare 1463* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier 1464* [Goal](goal.html): External Ids for this goal 1465* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number 1466* [Immunization](immunization.html): Business identifier 1467* [List](list.html): Business identifier 1468* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier 1469* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier 1470* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier 1471* [MedicationUsage](medicationusage.html): Return statements with this external identifier 1472* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier 1473* [Observation](observation.html): The unique id for a particular observation 1474* [Procedure](procedure.html): A unique identifier for a procedure 1475* [RiskAssessment](riskassessment.html): Unique identifier for the assessment 1476* [ServiceRequest](servicerequest.html): Identifiers assigned to this order 1477* [SupplyDelivery](supplydelivery.html): External identifier 1478* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest 1479* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier 1480</b><br> 1481 * Type: <b>token</b><br> 1482 * Path: <b>AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier</b><br> 1483 * </p> 1484 */ 1485 @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Master Version Specific Identifier\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) 1486 public static final String SP_IDENTIFIER = "identifier"; 1487 /** 1488 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 1489 * <p> 1490 * Description: <b>Multiple Resources: 1491 1492* [AllergyIntolerance](allergyintolerance.html): External ids for this item 1493* [CarePlan](careplan.html): External Ids for this plan 1494* [CareTeam](careteam.html): External Ids for this team 1495* [Composition](composition.html): Version-independent identifier for the Composition 1496* [Condition](condition.html): A unique identifier of the condition record 1497* [Consent](consent.html): Identifier for this record (external references) 1498* [DetectedIssue](detectedissue.html): Unique id for the detected issue 1499* [DeviceRequest](devicerequest.html): Business identifier for request/order 1500* [DiagnosticReport](diagnosticreport.html): An identifier for the report 1501* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents 1502* [DocumentReference](documentreference.html): Master Version Specific Identifier 1503* [Encounter](encounter.html): Identifier(s) by which this encounter is known 1504* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare 1505* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier 1506* [Goal](goal.html): External Ids for this goal 1507* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number 1508* [Immunization](immunization.html): Business identifier 1509* [List](list.html): Business identifier 1510* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier 1511* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier 1512* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier 1513* [MedicationUsage](medicationusage.html): Return statements with this external identifier 1514* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier 1515* [Observation](observation.html): The unique id for a particular observation 1516* [Procedure](procedure.html): A unique identifier for a procedure 1517* [RiskAssessment](riskassessment.html): Unique identifier for the assessment 1518* [ServiceRequest](servicerequest.html): Identifiers assigned to this order 1519* [SupplyDelivery](supplydelivery.html): External identifier 1520* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest 1521* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier 1522</b><br> 1523 * Type: <b>token</b><br> 1524 * Path: <b>AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier</b><br> 1525 * </p> 1526 */ 1527 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 1528 1529 /** 1530 * Search parameter: <b>patient</b> 1531 * <p> 1532 * Description: <b>Multiple Resources: 1533 1534* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for 1535* [CarePlan](careplan.html): Who the care plan is for 1536* [CareTeam](careteam.html): Who care team is for 1537* [ClinicalImpression](clinicalimpression.html): Patient or group assessed 1538* [Composition](composition.html): Who and/or what the composition is about 1539* [Condition](condition.html): Who has the condition? 1540* [Consent](consent.html): Who the consent applies to 1541* [DetectedIssue](detectedissue.html): Associated patient 1542* [DeviceRequest](devicerequest.html): Individual the service is ordered for 1543* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient 1544* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient 1545* [DocumentManifest](documentmanifest.html): The subject of the set of documents 1546* [DocumentReference](documentreference.html): Who/what is the subject of the document 1547* [Encounter](encounter.html): The patient or group present at the encounter 1548* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care 1549* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for 1550* [Flag](flag.html): The identity of a subject to list flags for 1551* [Goal](goal.html): Who this goal is intended for 1552* [ImagingStudy](imagingstudy.html): Who the study is about 1553* [Immunization](immunization.html): The patient for the vaccination record 1554* [List](list.html): If all resources have the same subject 1555* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for 1556* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for 1557* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient 1558* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. 1559* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement 1560* [Observation](observation.html): The subject that the observation is about (if patient) 1561* [Procedure](procedure.html): Search by subject - a patient 1562* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? 1563* [ServiceRequest](servicerequest.html): Search by subject - a patient 1564* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied 1565* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for 1566</b><br> 1567 * Type: <b>reference</b><br> 1568 * Path: <b>AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient</b><br> 1569 * </p> 1570 */ 1571 @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) 1572 public static final String SP_PATIENT = "patient"; 1573 /** 1574 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 1575 * <p> 1576 * Description: <b>Multiple Resources: 1577 1578* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for 1579* [CarePlan](careplan.html): Who the care plan is for 1580* [CareTeam](careteam.html): Who care team is for 1581* [ClinicalImpression](clinicalimpression.html): Patient or group assessed 1582* [Composition](composition.html): Who and/or what the composition is about 1583* [Condition](condition.html): Who has the condition? 1584* [Consent](consent.html): Who the consent applies to 1585* [DetectedIssue](detectedissue.html): Associated patient 1586* [DeviceRequest](devicerequest.html): Individual the service is ordered for 1587* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient 1588* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient 1589* [DocumentManifest](documentmanifest.html): The subject of the set of documents 1590* [DocumentReference](documentreference.html): Who/what is the subject of the document 1591* [Encounter](encounter.html): The patient or group present at the encounter 1592* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care 1593* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for 1594* [Flag](flag.html): The identity of a subject to list flags for 1595* [Goal](goal.html): Who this goal is intended for 1596* [ImagingStudy](imagingstudy.html): Who the study is about 1597* [Immunization](immunization.html): The patient for the vaccination record 1598* [List](list.html): If all resources have the same subject 1599* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for 1600* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for 1601* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient 1602* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. 1603* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement 1604* [Observation](observation.html): The subject that the observation is about (if patient) 1605* [Procedure](procedure.html): Search by subject - a patient 1606* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? 1607* [ServiceRequest](servicerequest.html): Search by subject - a patient 1608* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied 1609* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for 1610</b><br> 1611 * Type: <b>reference</b><br> 1612 * Path: <b>AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient</b><br> 1613 * </p> 1614 */ 1615 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 1616 1617/** 1618 * Constant for fluent queries to be used to add include statements. Specifies 1619 * the path value of "<b>DocumentManifest:patient</b>". 1620 */ 1621 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("DocumentManifest:patient").toLocked(); 1622 1623 /** 1624 * Search parameter: <b>type</b> 1625 * <p> 1626 * Description: <b>Multiple Resources: 1627 1628* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) 1629* [Composition](composition.html): Kind of composition (LOINC if possible) 1630* [DocumentManifest](documentmanifest.html): Kind of document set 1631* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) 1632* [Encounter](encounter.html): Specific type of encounter 1633* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management 1634</b><br> 1635 * Type: <b>token</b><br> 1636 * Path: <b>AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type</b><br> 1637 * </p> 1638 */ 1639 @SearchParamDefinition(name="type", path="AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known)\r\n* [Composition](composition.html): Kind of composition (LOINC if possible)\r\n* [DocumentManifest](documentmanifest.html): Kind of document set\r\n* [DocumentReference](documentreference.html): Kind of document (LOINC if possible)\r\n* [Encounter](encounter.html): Specific type of encounter\r\n* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management\r\n", type="token" ) 1640 public static final String SP_TYPE = "type"; 1641 /** 1642 * <b>Fluent Client</b> search parameter constant for <b>type</b> 1643 * <p> 1644 * Description: <b>Multiple Resources: 1645 1646* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) 1647* [Composition](composition.html): Kind of composition (LOINC if possible) 1648* [DocumentManifest](documentmanifest.html): Kind of document set 1649* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) 1650* [Encounter](encounter.html): Specific type of encounter 1651* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management 1652</b><br> 1653 * Type: <b>token</b><br> 1654 * Path: <b>AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type</b><br> 1655 * </p> 1656 */ 1657 public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); 1658 1659 1660} 1661