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