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 * Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities. 072 */ 073@ResourceDef(name="ImagingStudy", profile="http://hl7.org/fhir/StructureDefinition/ImagingStudy") 074public class ImagingStudy extends DomainResource { 075 076 public enum ImagingStudyStatus { 077 /** 078 * The existence of the imaging study is registered, but there is nothing yet available. 079 */ 080 REGISTERED, 081 /** 082 * At least one instance has been associated with this imaging study. 083 */ 084 AVAILABLE, 085 /** 086 * The imaging study is unavailable because the imaging study was not started or not completed (also sometimes called \"aborted\"). 087 */ 088 CANCELLED, 089 /** 090 * The imaging study has been withdrawn following a previous final release. This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".). 091 */ 092 ENTEREDINERROR, 093 /** 094 * The system does not know which of the status values currently applies for this request. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, it's just not known which one. 095 */ 096 UNKNOWN, 097 /** 098 * added to help the parsers with the generic types 099 */ 100 NULL; 101 public static ImagingStudyStatus fromCode(String codeString) throws FHIRException { 102 if (codeString == null || "".equals(codeString)) 103 return null; 104 if ("registered".equals(codeString)) 105 return REGISTERED; 106 if ("available".equals(codeString)) 107 return AVAILABLE; 108 if ("cancelled".equals(codeString)) 109 return CANCELLED; 110 if ("entered-in-error".equals(codeString)) 111 return ENTEREDINERROR; 112 if ("unknown".equals(codeString)) 113 return UNKNOWN; 114 if (Configuration.isAcceptInvalidEnums()) 115 return null; 116 else 117 throw new FHIRException("Unknown ImagingStudyStatus code '"+codeString+"'"); 118 } 119 public String toCode() { 120 switch (this) { 121 case REGISTERED: return "registered"; 122 case AVAILABLE: return "available"; 123 case CANCELLED: return "cancelled"; 124 case ENTEREDINERROR: return "entered-in-error"; 125 case UNKNOWN: return "unknown"; 126 default: return "?"; 127 } 128 } 129 public String getSystem() { 130 switch (this) { 131 case REGISTERED: return "http://hl7.org/fhir/imagingstudy-status"; 132 case AVAILABLE: return "http://hl7.org/fhir/imagingstudy-status"; 133 case CANCELLED: return "http://hl7.org/fhir/imagingstudy-status"; 134 case ENTEREDINERROR: return "http://hl7.org/fhir/imagingstudy-status"; 135 case UNKNOWN: return "http://hl7.org/fhir/imagingstudy-status"; 136 default: return "?"; 137 } 138 } 139 public String getDefinition() { 140 switch (this) { 141 case REGISTERED: return "The existence of the imaging study is registered, but there is nothing yet available."; 142 case AVAILABLE: return "At least one instance has been associated with this imaging study."; 143 case CANCELLED: return "The imaging study is unavailable because the imaging study was not started or not completed (also sometimes called \"aborted\")."; 144 case ENTEREDINERROR: return "The imaging study has been withdrawn following a previous final release. This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)."; 145 case UNKNOWN: return "The system does not know which of the status values currently applies for this request. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, it's just not known which one."; 146 default: return "?"; 147 } 148 } 149 public String getDisplay() { 150 switch (this) { 151 case REGISTERED: return "Registered"; 152 case AVAILABLE: return "Available"; 153 case CANCELLED: return "Cancelled"; 154 case ENTEREDINERROR: return "Entered in Error"; 155 case UNKNOWN: return "Unknown"; 156 default: return "?"; 157 } 158 } 159 } 160 161 public static class ImagingStudyStatusEnumFactory implements EnumFactory<ImagingStudyStatus> { 162 public ImagingStudyStatus fromCode(String codeString) throws IllegalArgumentException { 163 if (codeString == null || "".equals(codeString)) 164 if (codeString == null || "".equals(codeString)) 165 return null; 166 if ("registered".equals(codeString)) 167 return ImagingStudyStatus.REGISTERED; 168 if ("available".equals(codeString)) 169 return ImagingStudyStatus.AVAILABLE; 170 if ("cancelled".equals(codeString)) 171 return ImagingStudyStatus.CANCELLED; 172 if ("entered-in-error".equals(codeString)) 173 return ImagingStudyStatus.ENTEREDINERROR; 174 if ("unknown".equals(codeString)) 175 return ImagingStudyStatus.UNKNOWN; 176 throw new IllegalArgumentException("Unknown ImagingStudyStatus code '"+codeString+"'"); 177 } 178 public Enumeration<ImagingStudyStatus> fromType(Base code) throws FHIRException { 179 if (code == null) 180 return null; 181 if (code.isEmpty()) 182 return new Enumeration<ImagingStudyStatus>(this); 183 String codeString = ((PrimitiveType) code).asStringValue(); 184 if (codeString == null || "".equals(codeString)) 185 return null; 186 if ("registered".equals(codeString)) 187 return new Enumeration<ImagingStudyStatus>(this, ImagingStudyStatus.REGISTERED); 188 if ("available".equals(codeString)) 189 return new Enumeration<ImagingStudyStatus>(this, ImagingStudyStatus.AVAILABLE); 190 if ("cancelled".equals(codeString)) 191 return new Enumeration<ImagingStudyStatus>(this, ImagingStudyStatus.CANCELLED); 192 if ("entered-in-error".equals(codeString)) 193 return new Enumeration<ImagingStudyStatus>(this, ImagingStudyStatus.ENTEREDINERROR); 194 if ("unknown".equals(codeString)) 195 return new Enumeration<ImagingStudyStatus>(this, ImagingStudyStatus.UNKNOWN); 196 throw new FHIRException("Unknown ImagingStudyStatus code '"+codeString+"'"); 197 } 198 public String toCode(ImagingStudyStatus code) { 199 if (code == ImagingStudyStatus.REGISTERED) 200 return "registered"; 201 if (code == ImagingStudyStatus.AVAILABLE) 202 return "available"; 203 if (code == ImagingStudyStatus.CANCELLED) 204 return "cancelled"; 205 if (code == ImagingStudyStatus.ENTEREDINERROR) 206 return "entered-in-error"; 207 if (code == ImagingStudyStatus.UNKNOWN) 208 return "unknown"; 209 return "?"; 210 } 211 public String toSystem(ImagingStudyStatus code) { 212 return code.getSystem(); 213 } 214 } 215 216 @Block() 217 public static class ImagingStudyProcedureComponent extends BackboneElement implements IBaseBackboneElement { 218 /** 219 * The procedure which this ImagingStudy was part of. 220 */ 221 @Child(name = "value", type = {Procedure.class, CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=true) 222 @Description(shortDefinition="The performed Procedure", formalDefinition="The procedure which this ImagingStudy was part of." ) 223 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://loinc.org/download/loincrsna-radiology-playbook-file/") 224 protected DataType value; 225 226 private static final long serialVersionUID = -1135414639L; 227 228 /** 229 * Constructor 230 */ 231 public ImagingStudyProcedureComponent() { 232 super(); 233 } 234 235 /** 236 * Constructor 237 */ 238 public ImagingStudyProcedureComponent(DataType value) { 239 super(); 240 this.setValue(value); 241 } 242 243 /** 244 * @return {@link #value} (The procedure which this ImagingStudy was part of.) 245 */ 246 public DataType getValue() { 247 return this.value; 248 } 249 250 /** 251 * @return {@link #value} (The procedure which this ImagingStudy was part of.) 252 */ 253 public Reference getValueReference() throws FHIRException { 254 if (this.value == null) 255 this.value = new Reference(); 256 if (!(this.value instanceof Reference)) 257 throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.value.getClass().getName()+" was encountered"); 258 return (Reference) this.value; 259 } 260 261 public boolean hasValueReference() { 262 return this != null && this.value instanceof Reference; 263 } 264 265 /** 266 * @return {@link #value} (The procedure which this ImagingStudy was part of.) 267 */ 268 public CodeableConcept getValueCodeableConcept() throws FHIRException { 269 if (this.value == null) 270 this.value = new CodeableConcept(); 271 if (!(this.value instanceof CodeableConcept)) 272 throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.value.getClass().getName()+" was encountered"); 273 return (CodeableConcept) this.value; 274 } 275 276 public boolean hasValueCodeableConcept() { 277 return this != null && this.value instanceof CodeableConcept; 278 } 279 280 public boolean hasValue() { 281 return this.value != null && !this.value.isEmpty(); 282 } 283 284 /** 285 * @param value {@link #value} (The procedure which this ImagingStudy was part of.) 286 */ 287 public ImagingStudyProcedureComponent setValue(DataType value) { 288 if (value != null && !(value instanceof Reference || value instanceof CodeableConcept)) 289 throw new Error("Not the right type for ImagingStudy.procedure.value[x]: "+value.fhirType()); 290 this.value = value; 291 return this; 292 } 293 294 protected void listChildren(List<Property> children) { 295 super.listChildren(children); 296 children.add(new Property("value[x]", "Reference(Procedure)|CodeableConcept", "The procedure which this ImagingStudy was part of.", 0, 1, value)); 297 } 298 299 @Override 300 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 301 switch (_hash) { 302 case -1410166417: /*value[x]*/ return new Property("value[x]", "Reference(Procedure)|CodeableConcept", "The procedure which this ImagingStudy was part of.", 0, 1, value); 303 case 111972721: /*value*/ return new Property("value[x]", "Reference(Procedure)|CodeableConcept", "The procedure which this ImagingStudy was part of.", 0, 1, value); 304 case 1755241690: /*valueReference*/ return new Property("value[x]", "Reference(Procedure)", "The procedure which this ImagingStudy was part of.", 0, 1, value); 305 case 924902896: /*valueCodeableConcept*/ return new Property("value[x]", "CodeableConcept", "The procedure which this ImagingStudy was part of.", 0, 1, value); 306 default: return super.getNamedProperty(_hash, _name, _checkValid); 307 } 308 309 } 310 311 @Override 312 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 313 switch (hash) { 314 case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // DataType 315 default: return super.getProperty(hash, name, checkValid); 316 } 317 318 } 319 320 @Override 321 public Base setProperty(int hash, String name, Base value) throws FHIRException { 322 switch (hash) { 323 case 111972721: // value 324 this.value = TypeConvertor.castToType(value); // DataType 325 return value; 326 default: return super.setProperty(hash, name, value); 327 } 328 329 } 330 331 @Override 332 public Base setProperty(String name, Base value) throws FHIRException { 333 if (name.equals("value[x]")) { 334 this.value = TypeConvertor.castToType(value); // DataType 335 } else 336 return super.setProperty(name, value); 337 return value; 338 } 339 340 @Override 341 public Base makeProperty(int hash, String name) throws FHIRException { 342 switch (hash) { 343 case -1410166417: return getValue(); 344 case 111972721: return getValue(); 345 default: return super.makeProperty(hash, name); 346 } 347 348 } 349 350 @Override 351 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 352 switch (hash) { 353 case 111972721: /*value*/ return new String[] {"Reference", "CodeableConcept"}; 354 default: return super.getTypesForProperty(hash, name); 355 } 356 357 } 358 359 @Override 360 public Base addChild(String name) throws FHIRException { 361 if (name.equals("valueReference")) { 362 this.value = new Reference(); 363 return this.value; 364 } 365 else if (name.equals("valueCodeableConcept")) { 366 this.value = new CodeableConcept(); 367 return this.value; 368 } 369 else 370 return super.addChild(name); 371 } 372 373 public ImagingStudyProcedureComponent copy() { 374 ImagingStudyProcedureComponent dst = new ImagingStudyProcedureComponent(); 375 copyValues(dst); 376 return dst; 377 } 378 379 public void copyValues(ImagingStudyProcedureComponent dst) { 380 super.copyValues(dst); 381 dst.value = value == null ? null : value.copy(); 382 } 383 384 @Override 385 public boolean equalsDeep(Base other_) { 386 if (!super.equalsDeep(other_)) 387 return false; 388 if (!(other_ instanceof ImagingStudyProcedureComponent)) 389 return false; 390 ImagingStudyProcedureComponent o = (ImagingStudyProcedureComponent) other_; 391 return compareDeep(value, o.value, true); 392 } 393 394 @Override 395 public boolean equalsShallow(Base other_) { 396 if (!super.equalsShallow(other_)) 397 return false; 398 if (!(other_ instanceof ImagingStudyProcedureComponent)) 399 return false; 400 ImagingStudyProcedureComponent o = (ImagingStudyProcedureComponent) other_; 401 return true; 402 } 403 404 public boolean isEmpty() { 405 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(value); 406 } 407 408 public String fhirType() { 409 return "ImagingStudy.procedure"; 410 411 } 412 413 } 414 415 @Block() 416 public static class ImagingStudySeriesComponent extends BackboneElement implements IBaseBackboneElement { 417 /** 418 * The DICOM Series Instance UID for the series. 419 */ 420 @Child(name = "uid", type = {IdType.class}, order=1, min=1, max=1, modifier=false, summary=true) 421 @Description(shortDefinition="DICOM Series Instance UID for the series", formalDefinition="The DICOM Series Instance UID for the series." ) 422 protected IdType uid; 423 424 /** 425 * The numeric identifier of this series in the study. 426 */ 427 @Child(name = "number", type = {UnsignedIntType.class}, order=2, min=0, max=1, modifier=false, summary=true) 428 @Description(shortDefinition="Numeric identifier of this series", formalDefinition="The numeric identifier of this series in the study." ) 429 protected UnsignedIntType number; 430 431 /** 432 * The distinct modality for this series. This may include both aquisition and non-aquisition modalities. 433 */ 434 @Child(name = "modality", type = {Coding.class}, order=3, min=1, max=1, modifier=false, summary=true) 435 @Description(shortDefinition="The modality used for this series", formalDefinition="The distinct modality for this series. This may include both aquisition and non-aquisition modalities." ) 436 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_33.html") 437 protected Coding modality; 438 439 /** 440 * A description of the series. 441 */ 442 @Child(name = "description", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=true) 443 @Description(shortDefinition="A short human readable summary of the series", formalDefinition="A description of the series." ) 444 protected StringType description; 445 446 /** 447 * Number of SOP Instances in the Study. The value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present. 448 */ 449 @Child(name = "numberOfInstances", type = {UnsignedIntType.class}, order=5, min=0, max=1, modifier=false, summary=true) 450 @Description(shortDefinition="Number of Series Related Instances", formalDefinition="Number of SOP Instances in the Study. The value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present." ) 451 protected UnsignedIntType numberOfInstances; 452 453 /** 454 * The network service providing access (e.g., query, view, or retrieval) for this series. See implementation notes for information about using DICOM endpoints. A series-level endpoint, if present, has precedence over a study-level endpoint with the same Endpoint.connectionType. 455 */ 456 @Child(name = "endpoint", type = {Endpoint.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 457 @Description(shortDefinition="Series access endpoint", formalDefinition="The network service providing access (e.g., query, view, or retrieval) for this series. See implementation notes for information about using DICOM endpoints. A series-level endpoint, if present, has precedence over a study-level endpoint with the same Endpoint.connectionType." ) 458 protected List<Reference> endpoint; 459 460 /** 461 * The anatomic structures examined. See DICOM Part 16 Annex L (http://dicom.nema.org/medical/dicom/current/output/chtml/part16/chapter_L.html) for DICOM to SNOMED-CT mappings. The bodySite may indicate the laterality of body part imaged; if so, it shall be consistent with any content of ImagingStudy.series.laterality. 462 */ 463 @Child(name = "bodySite", type = {Coding.class}, order=7, min=0, max=1, modifier=false, summary=true) 464 @Description(shortDefinition="Body part examined", formalDefinition="The anatomic structures examined. See DICOM Part 16 Annex L (http://dicom.nema.org/medical/dicom/current/output/chtml/part16/chapter_L.html) for DICOM to SNOMED-CT mappings. The bodySite may indicate the laterality of body part imaged; if so, it shall be consistent with any content of ImagingStudy.series.laterality." ) 465 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/body-site") 466 protected Coding bodySite; 467 468 /** 469 * The laterality of the (possibly paired) anatomic structures examined. E.g., the left knee, both lungs, or unpaired abdomen. If present, shall be consistent with any laterality information indicated in ImagingStudy.series.bodySite. 470 */ 471 @Child(name = "laterality", type = {Coding.class}, order=8, min=0, max=1, modifier=false, summary=true) 472 @Description(shortDefinition="Body part laterality", formalDefinition="The laterality of the (possibly paired) anatomic structures examined. E.g., the left knee, both lungs, or unpaired abdomen. If present, shall be consistent with any laterality information indicated in ImagingStudy.series.bodySite." ) 473 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/bodysite-laterality") 474 protected Coding laterality; 475 476 /** 477 * The specimen imaged, e.g., for whole slide imaging of a biopsy. 478 */ 479 @Child(name = "specimen", type = {Specimen.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 480 @Description(shortDefinition="Specimen imaged", formalDefinition="The specimen imaged, e.g., for whole slide imaging of a biopsy." ) 481 protected List<Reference> specimen; 482 483 /** 484 * The date and time the series was started. 485 */ 486 @Child(name = "started", type = {DateTimeType.class}, order=10, min=0, max=1, modifier=false, summary=true) 487 @Description(shortDefinition="When the series started", formalDefinition="The date and time the series was started." ) 488 protected DateTimeType started; 489 490 /** 491 * Indicates who or what performed the series and how they were involved. 492 */ 493 @Child(name = "performer", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 494 @Description(shortDefinition="Who performed the series", formalDefinition="Indicates who or what performed the series and how they were involved." ) 495 protected List<ImagingStudySeriesPerformerComponent> performer; 496 497 /** 498 * A single SOP instance within the series, e.g. an image, or presentation state. 499 */ 500 @Child(name = "instance", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 501 @Description(shortDefinition="A single SOP instance from the series", formalDefinition="A single SOP instance within the series, e.g. an image, or presentation state." ) 502 protected List<ImagingStudySeriesInstanceComponent> instance; 503 504 private static final long serialVersionUID = 198247349L; 505 506 /** 507 * Constructor 508 */ 509 public ImagingStudySeriesComponent() { 510 super(); 511 } 512 513 /** 514 * Constructor 515 */ 516 public ImagingStudySeriesComponent(String uid, Coding modality) { 517 super(); 518 this.setUid(uid); 519 this.setModality(modality); 520 } 521 522 /** 523 * @return {@link #uid} (The DICOM Series Instance UID for the series.). This is the underlying object with id, value and extensions. The accessor "getUid" gives direct access to the value 524 */ 525 public IdType getUidElement() { 526 if (this.uid == null) 527 if (Configuration.errorOnAutoCreate()) 528 throw new Error("Attempt to auto-create ImagingStudySeriesComponent.uid"); 529 else if (Configuration.doAutoCreate()) 530 this.uid = new IdType(); // bb 531 return this.uid; 532 } 533 534 public boolean hasUidElement() { 535 return this.uid != null && !this.uid.isEmpty(); 536 } 537 538 public boolean hasUid() { 539 return this.uid != null && !this.uid.isEmpty(); 540 } 541 542 /** 543 * @param value {@link #uid} (The DICOM Series Instance UID for the series.). This is the underlying object with id, value and extensions. The accessor "getUid" gives direct access to the value 544 */ 545 public ImagingStudySeriesComponent setUidElement(IdType value) { 546 this.uid = value; 547 return this; 548 } 549 550 /** 551 * @return The DICOM Series Instance UID for the series. 552 */ 553 public String getUid() { 554 return this.uid == null ? null : this.uid.getValue(); 555 } 556 557 /** 558 * @param value The DICOM Series Instance UID for the series. 559 */ 560 public ImagingStudySeriesComponent setUid(String value) { 561 if (this.uid == null) 562 this.uid = new IdType(); 563 this.uid.setValue(value); 564 return this; 565 } 566 567 /** 568 * @return {@link #number} (The numeric identifier of this series in the study.). This is the underlying object with id, value and extensions. The accessor "getNumber" gives direct access to the value 569 */ 570 public UnsignedIntType getNumberElement() { 571 if (this.number == null) 572 if (Configuration.errorOnAutoCreate()) 573 throw new Error("Attempt to auto-create ImagingStudySeriesComponent.number"); 574 else if (Configuration.doAutoCreate()) 575 this.number = new UnsignedIntType(); // bb 576 return this.number; 577 } 578 579 public boolean hasNumberElement() { 580 return this.number != null && !this.number.isEmpty(); 581 } 582 583 public boolean hasNumber() { 584 return this.number != null && !this.number.isEmpty(); 585 } 586 587 /** 588 * @param value {@link #number} (The numeric identifier of this series in the study.). This is the underlying object with id, value and extensions. The accessor "getNumber" gives direct access to the value 589 */ 590 public ImagingStudySeriesComponent setNumberElement(UnsignedIntType value) { 591 this.number = value; 592 return this; 593 } 594 595 /** 596 * @return The numeric identifier of this series in the study. 597 */ 598 public int getNumber() { 599 return this.number == null || this.number.isEmpty() ? 0 : this.number.getValue(); 600 } 601 602 /** 603 * @param value The numeric identifier of this series in the study. 604 */ 605 public ImagingStudySeriesComponent setNumber(int value) { 606 if (this.number == null) 607 this.number = new UnsignedIntType(); 608 this.number.setValue(value); 609 return this; 610 } 611 612 /** 613 * @return {@link #modality} (The distinct modality for this series. This may include both aquisition and non-aquisition modalities.) 614 */ 615 public Coding getModality() { 616 if (this.modality == null) 617 if (Configuration.errorOnAutoCreate()) 618 throw new Error("Attempt to auto-create ImagingStudySeriesComponent.modality"); 619 else if (Configuration.doAutoCreate()) 620 this.modality = new Coding(); // cc 621 return this.modality; 622 } 623 624 public boolean hasModality() { 625 return this.modality != null && !this.modality.isEmpty(); 626 } 627 628 /** 629 * @param value {@link #modality} (The distinct modality for this series. This may include both aquisition and non-aquisition modalities.) 630 */ 631 public ImagingStudySeriesComponent setModality(Coding value) { 632 this.modality = value; 633 return this; 634 } 635 636 /** 637 * @return {@link #description} (A description of the series.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 638 */ 639 public StringType getDescriptionElement() { 640 if (this.description == null) 641 if (Configuration.errorOnAutoCreate()) 642 throw new Error("Attempt to auto-create ImagingStudySeriesComponent.description"); 643 else if (Configuration.doAutoCreate()) 644 this.description = new StringType(); // bb 645 return this.description; 646 } 647 648 public boolean hasDescriptionElement() { 649 return this.description != null && !this.description.isEmpty(); 650 } 651 652 public boolean hasDescription() { 653 return this.description != null && !this.description.isEmpty(); 654 } 655 656 /** 657 * @param value {@link #description} (A description of the series.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 658 */ 659 public ImagingStudySeriesComponent setDescriptionElement(StringType value) { 660 this.description = value; 661 return this; 662 } 663 664 /** 665 * @return A description of the series. 666 */ 667 public String getDescription() { 668 return this.description == null ? null : this.description.getValue(); 669 } 670 671 /** 672 * @param value A description of the series. 673 */ 674 public ImagingStudySeriesComponent setDescription(String value) { 675 if (Utilities.noString(value)) 676 this.description = null; 677 else { 678 if (this.description == null) 679 this.description = new StringType(); 680 this.description.setValue(value); 681 } 682 return this; 683 } 684 685 /** 686 * @return {@link #numberOfInstances} (Number of SOP Instances in the Study. The value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present.). This is the underlying object with id, value and extensions. The accessor "getNumberOfInstances" gives direct access to the value 687 */ 688 public UnsignedIntType getNumberOfInstancesElement() { 689 if (this.numberOfInstances == null) 690 if (Configuration.errorOnAutoCreate()) 691 throw new Error("Attempt to auto-create ImagingStudySeriesComponent.numberOfInstances"); 692 else if (Configuration.doAutoCreate()) 693 this.numberOfInstances = new UnsignedIntType(); // bb 694 return this.numberOfInstances; 695 } 696 697 public boolean hasNumberOfInstancesElement() { 698 return this.numberOfInstances != null && !this.numberOfInstances.isEmpty(); 699 } 700 701 public boolean hasNumberOfInstances() { 702 return this.numberOfInstances != null && !this.numberOfInstances.isEmpty(); 703 } 704 705 /** 706 * @param value {@link #numberOfInstances} (Number of SOP Instances in the Study. The value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present.). This is the underlying object with id, value and extensions. The accessor "getNumberOfInstances" gives direct access to the value 707 */ 708 public ImagingStudySeriesComponent setNumberOfInstancesElement(UnsignedIntType value) { 709 this.numberOfInstances = value; 710 return this; 711 } 712 713 /** 714 * @return Number of SOP Instances in the Study. The value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present. 715 */ 716 public int getNumberOfInstances() { 717 return this.numberOfInstances == null || this.numberOfInstances.isEmpty() ? 0 : this.numberOfInstances.getValue(); 718 } 719 720 /** 721 * @param value Number of SOP Instances in the Study. The value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present. 722 */ 723 public ImagingStudySeriesComponent setNumberOfInstances(int value) { 724 if (this.numberOfInstances == null) 725 this.numberOfInstances = new UnsignedIntType(); 726 this.numberOfInstances.setValue(value); 727 return this; 728 } 729 730 /** 731 * @return {@link #endpoint} (The network service providing access (e.g., query, view, or retrieval) for this series. See implementation notes for information about using DICOM endpoints. A series-level endpoint, if present, has precedence over a study-level endpoint with the same Endpoint.connectionType.) 732 */ 733 public List<Reference> getEndpoint() { 734 if (this.endpoint == null) 735 this.endpoint = new ArrayList<Reference>(); 736 return this.endpoint; 737 } 738 739 /** 740 * @return Returns a reference to <code>this</code> for easy method chaining 741 */ 742 public ImagingStudySeriesComponent setEndpoint(List<Reference> theEndpoint) { 743 this.endpoint = theEndpoint; 744 return this; 745 } 746 747 public boolean hasEndpoint() { 748 if (this.endpoint == null) 749 return false; 750 for (Reference item : this.endpoint) 751 if (!item.isEmpty()) 752 return true; 753 return false; 754 } 755 756 public Reference addEndpoint() { //3 757 Reference t = new Reference(); 758 if (this.endpoint == null) 759 this.endpoint = new ArrayList<Reference>(); 760 this.endpoint.add(t); 761 return t; 762 } 763 764 public ImagingStudySeriesComponent addEndpoint(Reference t) { //3 765 if (t == null) 766 return this; 767 if (this.endpoint == null) 768 this.endpoint = new ArrayList<Reference>(); 769 this.endpoint.add(t); 770 return this; 771 } 772 773 /** 774 * @return The first repetition of repeating field {@link #endpoint}, creating it if it does not already exist {3} 775 */ 776 public Reference getEndpointFirstRep() { 777 if (getEndpoint().isEmpty()) { 778 addEndpoint(); 779 } 780 return getEndpoint().get(0); 781 } 782 783 /** 784 * @return {@link #bodySite} (The anatomic structures examined. See DICOM Part 16 Annex L (http://dicom.nema.org/medical/dicom/current/output/chtml/part16/chapter_L.html) for DICOM to SNOMED-CT mappings. The bodySite may indicate the laterality of body part imaged; if so, it shall be consistent with any content of ImagingStudy.series.laterality.) 785 */ 786 public Coding getBodySite() { 787 if (this.bodySite == null) 788 if (Configuration.errorOnAutoCreate()) 789 throw new Error("Attempt to auto-create ImagingStudySeriesComponent.bodySite"); 790 else if (Configuration.doAutoCreate()) 791 this.bodySite = new Coding(); // cc 792 return this.bodySite; 793 } 794 795 public boolean hasBodySite() { 796 return this.bodySite != null && !this.bodySite.isEmpty(); 797 } 798 799 /** 800 * @param value {@link #bodySite} (The anatomic structures examined. See DICOM Part 16 Annex L (http://dicom.nema.org/medical/dicom/current/output/chtml/part16/chapter_L.html) for DICOM to SNOMED-CT mappings. The bodySite may indicate the laterality of body part imaged; if so, it shall be consistent with any content of ImagingStudy.series.laterality.) 801 */ 802 public ImagingStudySeriesComponent setBodySite(Coding value) { 803 this.bodySite = value; 804 return this; 805 } 806 807 /** 808 * @return {@link #laterality} (The laterality of the (possibly paired) anatomic structures examined. E.g., the left knee, both lungs, or unpaired abdomen. If present, shall be consistent with any laterality information indicated in ImagingStudy.series.bodySite.) 809 */ 810 public Coding getLaterality() { 811 if (this.laterality == null) 812 if (Configuration.errorOnAutoCreate()) 813 throw new Error("Attempt to auto-create ImagingStudySeriesComponent.laterality"); 814 else if (Configuration.doAutoCreate()) 815 this.laterality = new Coding(); // cc 816 return this.laterality; 817 } 818 819 public boolean hasLaterality() { 820 return this.laterality != null && !this.laterality.isEmpty(); 821 } 822 823 /** 824 * @param value {@link #laterality} (The laterality of the (possibly paired) anatomic structures examined. E.g., the left knee, both lungs, or unpaired abdomen. If present, shall be consistent with any laterality information indicated in ImagingStudy.series.bodySite.) 825 */ 826 public ImagingStudySeriesComponent setLaterality(Coding value) { 827 this.laterality = value; 828 return this; 829 } 830 831 /** 832 * @return {@link #specimen} (The specimen imaged, e.g., for whole slide imaging of a biopsy.) 833 */ 834 public List<Reference> getSpecimen() { 835 if (this.specimen == null) 836 this.specimen = new ArrayList<Reference>(); 837 return this.specimen; 838 } 839 840 /** 841 * @return Returns a reference to <code>this</code> for easy method chaining 842 */ 843 public ImagingStudySeriesComponent setSpecimen(List<Reference> theSpecimen) { 844 this.specimen = theSpecimen; 845 return this; 846 } 847 848 public boolean hasSpecimen() { 849 if (this.specimen == null) 850 return false; 851 for (Reference item : this.specimen) 852 if (!item.isEmpty()) 853 return true; 854 return false; 855 } 856 857 public Reference addSpecimen() { //3 858 Reference t = new Reference(); 859 if (this.specimen == null) 860 this.specimen = new ArrayList<Reference>(); 861 this.specimen.add(t); 862 return t; 863 } 864 865 public ImagingStudySeriesComponent addSpecimen(Reference t) { //3 866 if (t == null) 867 return this; 868 if (this.specimen == null) 869 this.specimen = new ArrayList<Reference>(); 870 this.specimen.add(t); 871 return this; 872 } 873 874 /** 875 * @return The first repetition of repeating field {@link #specimen}, creating it if it does not already exist {3} 876 */ 877 public Reference getSpecimenFirstRep() { 878 if (getSpecimen().isEmpty()) { 879 addSpecimen(); 880 } 881 return getSpecimen().get(0); 882 } 883 884 /** 885 * @return {@link #started} (The date and time the series was started.). This is the underlying object with id, value and extensions. The accessor "getStarted" gives direct access to the value 886 */ 887 public DateTimeType getStartedElement() { 888 if (this.started == null) 889 if (Configuration.errorOnAutoCreate()) 890 throw new Error("Attempt to auto-create ImagingStudySeriesComponent.started"); 891 else if (Configuration.doAutoCreate()) 892 this.started = new DateTimeType(); // bb 893 return this.started; 894 } 895 896 public boolean hasStartedElement() { 897 return this.started != null && !this.started.isEmpty(); 898 } 899 900 public boolean hasStarted() { 901 return this.started != null && !this.started.isEmpty(); 902 } 903 904 /** 905 * @param value {@link #started} (The date and time the series was started.). This is the underlying object with id, value and extensions. The accessor "getStarted" gives direct access to the value 906 */ 907 public ImagingStudySeriesComponent setStartedElement(DateTimeType value) { 908 this.started = value; 909 return this; 910 } 911 912 /** 913 * @return The date and time the series was started. 914 */ 915 public Date getStarted() { 916 return this.started == null ? null : this.started.getValue(); 917 } 918 919 /** 920 * @param value The date and time the series was started. 921 */ 922 public ImagingStudySeriesComponent setStarted(Date value) { 923 if (value == null) 924 this.started = null; 925 else { 926 if (this.started == null) 927 this.started = new DateTimeType(); 928 this.started.setValue(value); 929 } 930 return this; 931 } 932 933 /** 934 * @return {@link #performer} (Indicates who or what performed the series and how they were involved.) 935 */ 936 public List<ImagingStudySeriesPerformerComponent> getPerformer() { 937 if (this.performer == null) 938 this.performer = new ArrayList<ImagingStudySeriesPerformerComponent>(); 939 return this.performer; 940 } 941 942 /** 943 * @return Returns a reference to <code>this</code> for easy method chaining 944 */ 945 public ImagingStudySeriesComponent setPerformer(List<ImagingStudySeriesPerformerComponent> thePerformer) { 946 this.performer = thePerformer; 947 return this; 948 } 949 950 public boolean hasPerformer() { 951 if (this.performer == null) 952 return false; 953 for (ImagingStudySeriesPerformerComponent item : this.performer) 954 if (!item.isEmpty()) 955 return true; 956 return false; 957 } 958 959 public ImagingStudySeriesPerformerComponent addPerformer() { //3 960 ImagingStudySeriesPerformerComponent t = new ImagingStudySeriesPerformerComponent(); 961 if (this.performer == null) 962 this.performer = new ArrayList<ImagingStudySeriesPerformerComponent>(); 963 this.performer.add(t); 964 return t; 965 } 966 967 public ImagingStudySeriesComponent addPerformer(ImagingStudySeriesPerformerComponent t) { //3 968 if (t == null) 969 return this; 970 if (this.performer == null) 971 this.performer = new ArrayList<ImagingStudySeriesPerformerComponent>(); 972 this.performer.add(t); 973 return this; 974 } 975 976 /** 977 * @return The first repetition of repeating field {@link #performer}, creating it if it does not already exist {3} 978 */ 979 public ImagingStudySeriesPerformerComponent getPerformerFirstRep() { 980 if (getPerformer().isEmpty()) { 981 addPerformer(); 982 } 983 return getPerformer().get(0); 984 } 985 986 /** 987 * @return {@link #instance} (A single SOP instance within the series, e.g. an image, or presentation state.) 988 */ 989 public List<ImagingStudySeriesInstanceComponent> getInstance() { 990 if (this.instance == null) 991 this.instance = new ArrayList<ImagingStudySeriesInstanceComponent>(); 992 return this.instance; 993 } 994 995 /** 996 * @return Returns a reference to <code>this</code> for easy method chaining 997 */ 998 public ImagingStudySeriesComponent setInstance(List<ImagingStudySeriesInstanceComponent> theInstance) { 999 this.instance = theInstance; 1000 return this; 1001 } 1002 1003 public boolean hasInstance() { 1004 if (this.instance == null) 1005 return false; 1006 for (ImagingStudySeriesInstanceComponent item : this.instance) 1007 if (!item.isEmpty()) 1008 return true; 1009 return false; 1010 } 1011 1012 public ImagingStudySeriesInstanceComponent addInstance() { //3 1013 ImagingStudySeriesInstanceComponent t = new ImagingStudySeriesInstanceComponent(); 1014 if (this.instance == null) 1015 this.instance = new ArrayList<ImagingStudySeriesInstanceComponent>(); 1016 this.instance.add(t); 1017 return t; 1018 } 1019 1020 public ImagingStudySeriesComponent addInstance(ImagingStudySeriesInstanceComponent t) { //3 1021 if (t == null) 1022 return this; 1023 if (this.instance == null) 1024 this.instance = new ArrayList<ImagingStudySeriesInstanceComponent>(); 1025 this.instance.add(t); 1026 return this; 1027 } 1028 1029 /** 1030 * @return The first repetition of repeating field {@link #instance}, creating it if it does not already exist {3} 1031 */ 1032 public ImagingStudySeriesInstanceComponent getInstanceFirstRep() { 1033 if (getInstance().isEmpty()) { 1034 addInstance(); 1035 } 1036 return getInstance().get(0); 1037 } 1038 1039 protected void listChildren(List<Property> children) { 1040 super.listChildren(children); 1041 children.add(new Property("uid", "id", "The DICOM Series Instance UID for the series.", 0, 1, uid)); 1042 children.add(new Property("number", "unsignedInt", "The numeric identifier of this series in the study.", 0, 1, number)); 1043 children.add(new Property("modality", "Coding", "The distinct modality for this series. This may include both aquisition and non-aquisition modalities.", 0, 1, modality)); 1044 children.add(new Property("description", "string", "A description of the series.", 0, 1, description)); 1045 children.add(new Property("numberOfInstances", "unsignedInt", "Number of SOP Instances in the Study. The value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present.", 0, 1, numberOfInstances)); 1046 children.add(new Property("endpoint", "Reference(Endpoint)", "The network service providing access (e.g., query, view, or retrieval) for this series. See implementation notes for information about using DICOM endpoints. A series-level endpoint, if present, has precedence over a study-level endpoint with the same Endpoint.connectionType.", 0, java.lang.Integer.MAX_VALUE, endpoint)); 1047 children.add(new Property("bodySite", "Coding", "The anatomic structures examined. See DICOM Part 16 Annex L (http://dicom.nema.org/medical/dicom/current/output/chtml/part16/chapter_L.html) for DICOM to SNOMED-CT mappings. The bodySite may indicate the laterality of body part imaged; if so, it shall be consistent with any content of ImagingStudy.series.laterality.", 0, 1, bodySite)); 1048 children.add(new Property("laterality", "Coding", "The laterality of the (possibly paired) anatomic structures examined. E.g., the left knee, both lungs, or unpaired abdomen. If present, shall be consistent with any laterality information indicated in ImagingStudy.series.bodySite.", 0, 1, laterality)); 1049 children.add(new Property("specimen", "Reference(Specimen)", "The specimen imaged, e.g., for whole slide imaging of a biopsy.", 0, java.lang.Integer.MAX_VALUE, specimen)); 1050 children.add(new Property("started", "dateTime", "The date and time the series was started.", 0, 1, started)); 1051 children.add(new Property("performer", "", "Indicates who or what performed the series and how they were involved.", 0, java.lang.Integer.MAX_VALUE, performer)); 1052 children.add(new Property("instance", "", "A single SOP instance within the series, e.g. an image, or presentation state.", 0, java.lang.Integer.MAX_VALUE, instance)); 1053 } 1054 1055 @Override 1056 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1057 switch (_hash) { 1058 case 115792: /*uid*/ return new Property("uid", "id", "The DICOM Series Instance UID for the series.", 0, 1, uid); 1059 case -1034364087: /*number*/ return new Property("number", "unsignedInt", "The numeric identifier of this series in the study.", 0, 1, number); 1060 case -622722335: /*modality*/ return new Property("modality", "Coding", "The distinct modality for this series. This may include both aquisition and non-aquisition modalities.", 0, 1, modality); 1061 case -1724546052: /*description*/ return new Property("description", "string", "A description of the series.", 0, 1, description); 1062 case -1043544226: /*numberOfInstances*/ return new Property("numberOfInstances", "unsignedInt", "Number of SOP Instances in the Study. The value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present.", 0, 1, numberOfInstances); 1063 case 1741102485: /*endpoint*/ return new Property("endpoint", "Reference(Endpoint)", "The network service providing access (e.g., query, view, or retrieval) for this series. See implementation notes for information about using DICOM endpoints. A series-level endpoint, if present, has precedence over a study-level endpoint with the same Endpoint.connectionType.", 0, java.lang.Integer.MAX_VALUE, endpoint); 1064 case 1702620169: /*bodySite*/ return new Property("bodySite", "Coding", "The anatomic structures examined. See DICOM Part 16 Annex L (http://dicom.nema.org/medical/dicom/current/output/chtml/part16/chapter_L.html) for DICOM to SNOMED-CT mappings. The bodySite may indicate the laterality of body part imaged; if so, it shall be consistent with any content of ImagingStudy.series.laterality.", 0, 1, bodySite); 1065 case -170291817: /*laterality*/ return new Property("laterality", "Coding", "The laterality of the (possibly paired) anatomic structures examined. E.g., the left knee, both lungs, or unpaired abdomen. If present, shall be consistent with any laterality information indicated in ImagingStudy.series.bodySite.", 0, 1, laterality); 1066 case -2132868344: /*specimen*/ return new Property("specimen", "Reference(Specimen)", "The specimen imaged, e.g., for whole slide imaging of a biopsy.", 0, java.lang.Integer.MAX_VALUE, specimen); 1067 case -1897185151: /*started*/ return new Property("started", "dateTime", "The date and time the series was started.", 0, 1, started); 1068 case 481140686: /*performer*/ return new Property("performer", "", "Indicates who or what performed the series and how they were involved.", 0, java.lang.Integer.MAX_VALUE, performer); 1069 case 555127957: /*instance*/ return new Property("instance", "", "A single SOP instance within the series, e.g. an image, or presentation state.", 0, java.lang.Integer.MAX_VALUE, instance); 1070 default: return super.getNamedProperty(_hash, _name, _checkValid); 1071 } 1072 1073 } 1074 1075 @Override 1076 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1077 switch (hash) { 1078 case 115792: /*uid*/ return this.uid == null ? new Base[0] : new Base[] {this.uid}; // IdType 1079 case -1034364087: /*number*/ return this.number == null ? new Base[0] : new Base[] {this.number}; // UnsignedIntType 1080 case -622722335: /*modality*/ return this.modality == null ? new Base[0] : new Base[] {this.modality}; // Coding 1081 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 1082 case -1043544226: /*numberOfInstances*/ return this.numberOfInstances == null ? new Base[0] : new Base[] {this.numberOfInstances}; // UnsignedIntType 1083 case 1741102485: /*endpoint*/ return this.endpoint == null ? new Base[0] : this.endpoint.toArray(new Base[this.endpoint.size()]); // Reference 1084 case 1702620169: /*bodySite*/ return this.bodySite == null ? new Base[0] : new Base[] {this.bodySite}; // Coding 1085 case -170291817: /*laterality*/ return this.laterality == null ? new Base[0] : new Base[] {this.laterality}; // Coding 1086 case -2132868344: /*specimen*/ return this.specimen == null ? new Base[0] : this.specimen.toArray(new Base[this.specimen.size()]); // Reference 1087 case -1897185151: /*started*/ return this.started == null ? new Base[0] : new Base[] {this.started}; // DateTimeType 1088 case 481140686: /*performer*/ return this.performer == null ? new Base[0] : this.performer.toArray(new Base[this.performer.size()]); // ImagingStudySeriesPerformerComponent 1089 case 555127957: /*instance*/ return this.instance == null ? new Base[0] : this.instance.toArray(new Base[this.instance.size()]); // ImagingStudySeriesInstanceComponent 1090 default: return super.getProperty(hash, name, checkValid); 1091 } 1092 1093 } 1094 1095 @Override 1096 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1097 switch (hash) { 1098 case 115792: // uid 1099 this.uid = TypeConvertor.castToId(value); // IdType 1100 return value; 1101 case -1034364087: // number 1102 this.number = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType 1103 return value; 1104 case -622722335: // modality 1105 this.modality = TypeConvertor.castToCoding(value); // Coding 1106 return value; 1107 case -1724546052: // description 1108 this.description = TypeConvertor.castToString(value); // StringType 1109 return value; 1110 case -1043544226: // numberOfInstances 1111 this.numberOfInstances = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType 1112 return value; 1113 case 1741102485: // endpoint 1114 this.getEndpoint().add(TypeConvertor.castToReference(value)); // Reference 1115 return value; 1116 case 1702620169: // bodySite 1117 this.bodySite = TypeConvertor.castToCoding(value); // Coding 1118 return value; 1119 case -170291817: // laterality 1120 this.laterality = TypeConvertor.castToCoding(value); // Coding 1121 return value; 1122 case -2132868344: // specimen 1123 this.getSpecimen().add(TypeConvertor.castToReference(value)); // Reference 1124 return value; 1125 case -1897185151: // started 1126 this.started = TypeConvertor.castToDateTime(value); // DateTimeType 1127 return value; 1128 case 481140686: // performer 1129 this.getPerformer().add((ImagingStudySeriesPerformerComponent) value); // ImagingStudySeriesPerformerComponent 1130 return value; 1131 case 555127957: // instance 1132 this.getInstance().add((ImagingStudySeriesInstanceComponent) value); // ImagingStudySeriesInstanceComponent 1133 return value; 1134 default: return super.setProperty(hash, name, value); 1135 } 1136 1137 } 1138 1139 @Override 1140 public Base setProperty(String name, Base value) throws FHIRException { 1141 if (name.equals("uid")) { 1142 this.uid = TypeConvertor.castToId(value); // IdType 1143 } else if (name.equals("number")) { 1144 this.number = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType 1145 } else if (name.equals("modality")) { 1146 this.modality = TypeConvertor.castToCoding(value); // Coding 1147 } else if (name.equals("description")) { 1148 this.description = TypeConvertor.castToString(value); // StringType 1149 } else if (name.equals("numberOfInstances")) { 1150 this.numberOfInstances = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType 1151 } else if (name.equals("endpoint")) { 1152 this.getEndpoint().add(TypeConvertor.castToReference(value)); 1153 } else if (name.equals("bodySite")) { 1154 this.bodySite = TypeConvertor.castToCoding(value); // Coding 1155 } else if (name.equals("laterality")) { 1156 this.laterality = TypeConvertor.castToCoding(value); // Coding 1157 } else if (name.equals("specimen")) { 1158 this.getSpecimen().add(TypeConvertor.castToReference(value)); 1159 } else if (name.equals("started")) { 1160 this.started = TypeConvertor.castToDateTime(value); // DateTimeType 1161 } else if (name.equals("performer")) { 1162 this.getPerformer().add((ImagingStudySeriesPerformerComponent) value); 1163 } else if (name.equals("instance")) { 1164 this.getInstance().add((ImagingStudySeriesInstanceComponent) value); 1165 } else 1166 return super.setProperty(name, value); 1167 return value; 1168 } 1169 1170 @Override 1171 public Base makeProperty(int hash, String name) throws FHIRException { 1172 switch (hash) { 1173 case 115792: return getUidElement(); 1174 case -1034364087: return getNumberElement(); 1175 case -622722335: return getModality(); 1176 case -1724546052: return getDescriptionElement(); 1177 case -1043544226: return getNumberOfInstancesElement(); 1178 case 1741102485: return addEndpoint(); 1179 case 1702620169: return getBodySite(); 1180 case -170291817: return getLaterality(); 1181 case -2132868344: return addSpecimen(); 1182 case -1897185151: return getStartedElement(); 1183 case 481140686: return addPerformer(); 1184 case 555127957: return addInstance(); 1185 default: return super.makeProperty(hash, name); 1186 } 1187 1188 } 1189 1190 @Override 1191 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1192 switch (hash) { 1193 case 115792: /*uid*/ return new String[] {"id"}; 1194 case -1034364087: /*number*/ return new String[] {"unsignedInt"}; 1195 case -622722335: /*modality*/ return new String[] {"Coding"}; 1196 case -1724546052: /*description*/ return new String[] {"string"}; 1197 case -1043544226: /*numberOfInstances*/ return new String[] {"unsignedInt"}; 1198 case 1741102485: /*endpoint*/ return new String[] {"Reference"}; 1199 case 1702620169: /*bodySite*/ return new String[] {"Coding"}; 1200 case -170291817: /*laterality*/ return new String[] {"Coding"}; 1201 case -2132868344: /*specimen*/ return new String[] {"Reference"}; 1202 case -1897185151: /*started*/ return new String[] {"dateTime"}; 1203 case 481140686: /*performer*/ return new String[] {}; 1204 case 555127957: /*instance*/ return new String[] {}; 1205 default: return super.getTypesForProperty(hash, name); 1206 } 1207 1208 } 1209 1210 @Override 1211 public Base addChild(String name) throws FHIRException { 1212 if (name.equals("uid")) { 1213 throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.uid"); 1214 } 1215 else if (name.equals("number")) { 1216 throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.number"); 1217 } 1218 else if (name.equals("modality")) { 1219 this.modality = new Coding(); 1220 return this.modality; 1221 } 1222 else if (name.equals("description")) { 1223 throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.description"); 1224 } 1225 else if (name.equals("numberOfInstances")) { 1226 throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.numberOfInstances"); 1227 } 1228 else if (name.equals("endpoint")) { 1229 return addEndpoint(); 1230 } 1231 else if (name.equals("bodySite")) { 1232 this.bodySite = new Coding(); 1233 return this.bodySite; 1234 } 1235 else if (name.equals("laterality")) { 1236 this.laterality = new Coding(); 1237 return this.laterality; 1238 } 1239 else if (name.equals("specimen")) { 1240 return addSpecimen(); 1241 } 1242 else if (name.equals("started")) { 1243 throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.started"); 1244 } 1245 else if (name.equals("performer")) { 1246 return addPerformer(); 1247 } 1248 else if (name.equals("instance")) { 1249 return addInstance(); 1250 } 1251 else 1252 return super.addChild(name); 1253 } 1254 1255 public ImagingStudySeriesComponent copy() { 1256 ImagingStudySeriesComponent dst = new ImagingStudySeriesComponent(); 1257 copyValues(dst); 1258 return dst; 1259 } 1260 1261 public void copyValues(ImagingStudySeriesComponent dst) { 1262 super.copyValues(dst); 1263 dst.uid = uid == null ? null : uid.copy(); 1264 dst.number = number == null ? null : number.copy(); 1265 dst.modality = modality == null ? null : modality.copy(); 1266 dst.description = description == null ? null : description.copy(); 1267 dst.numberOfInstances = numberOfInstances == null ? null : numberOfInstances.copy(); 1268 if (endpoint != null) { 1269 dst.endpoint = new ArrayList<Reference>(); 1270 for (Reference i : endpoint) 1271 dst.endpoint.add(i.copy()); 1272 }; 1273 dst.bodySite = bodySite == null ? null : bodySite.copy(); 1274 dst.laterality = laterality == null ? null : laterality.copy(); 1275 if (specimen != null) { 1276 dst.specimen = new ArrayList<Reference>(); 1277 for (Reference i : specimen) 1278 dst.specimen.add(i.copy()); 1279 }; 1280 dst.started = started == null ? null : started.copy(); 1281 if (performer != null) { 1282 dst.performer = new ArrayList<ImagingStudySeriesPerformerComponent>(); 1283 for (ImagingStudySeriesPerformerComponent i : performer) 1284 dst.performer.add(i.copy()); 1285 }; 1286 if (instance != null) { 1287 dst.instance = new ArrayList<ImagingStudySeriesInstanceComponent>(); 1288 for (ImagingStudySeriesInstanceComponent i : instance) 1289 dst.instance.add(i.copy()); 1290 }; 1291 } 1292 1293 @Override 1294 public boolean equalsDeep(Base other_) { 1295 if (!super.equalsDeep(other_)) 1296 return false; 1297 if (!(other_ instanceof ImagingStudySeriesComponent)) 1298 return false; 1299 ImagingStudySeriesComponent o = (ImagingStudySeriesComponent) other_; 1300 return compareDeep(uid, o.uid, true) && compareDeep(number, o.number, true) && compareDeep(modality, o.modality, true) 1301 && compareDeep(description, o.description, true) && compareDeep(numberOfInstances, o.numberOfInstances, true) 1302 && compareDeep(endpoint, o.endpoint, true) && compareDeep(bodySite, o.bodySite, true) && compareDeep(laterality, o.laterality, true) 1303 && compareDeep(specimen, o.specimen, true) && compareDeep(started, o.started, true) && compareDeep(performer, o.performer, true) 1304 && compareDeep(instance, o.instance, true); 1305 } 1306 1307 @Override 1308 public boolean equalsShallow(Base other_) { 1309 if (!super.equalsShallow(other_)) 1310 return false; 1311 if (!(other_ instanceof ImagingStudySeriesComponent)) 1312 return false; 1313 ImagingStudySeriesComponent o = (ImagingStudySeriesComponent) other_; 1314 return compareValues(uid, o.uid, true) && compareValues(number, o.number, true) && compareValues(description, o.description, true) 1315 && compareValues(numberOfInstances, o.numberOfInstances, true) && compareValues(started, o.started, true) 1316 ; 1317 } 1318 1319 public boolean isEmpty() { 1320 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(uid, number, modality, description 1321 , numberOfInstances, endpoint, bodySite, laterality, specimen, started, performer 1322 , instance); 1323 } 1324 1325 public String fhirType() { 1326 return "ImagingStudy.series"; 1327 1328 } 1329 1330 } 1331 1332 @Block() 1333 public static class ImagingStudySeriesPerformerComponent extends BackboneElement implements IBaseBackboneElement { 1334 /** 1335 * Distinguishes the type of involvement of the performer in the series. 1336 */ 1337 @Child(name = "function", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) 1338 @Description(shortDefinition="Type of performance", formalDefinition="Distinguishes the type of involvement of the performer in the series." ) 1339 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/series-performer-function") 1340 protected CodeableConcept function; 1341 1342 /** 1343 * Indicates who or what performed the series. 1344 */ 1345 @Child(name = "actor", type = {Practitioner.class, PractitionerRole.class, Organization.class, CareTeam.class, Patient.class, Device.class, RelatedPerson.class, HealthcareService.class}, order=2, min=1, max=1, modifier=false, summary=true) 1346 @Description(shortDefinition="Who performed the series", formalDefinition="Indicates who or what performed the series." ) 1347 protected Reference actor; 1348 1349 private static final long serialVersionUID = -576943815L; 1350 1351 /** 1352 * Constructor 1353 */ 1354 public ImagingStudySeriesPerformerComponent() { 1355 super(); 1356 } 1357 1358 /** 1359 * Constructor 1360 */ 1361 public ImagingStudySeriesPerformerComponent(Reference actor) { 1362 super(); 1363 this.setActor(actor); 1364 } 1365 1366 /** 1367 * @return {@link #function} (Distinguishes the type of involvement of the performer in the series.) 1368 */ 1369 public CodeableConcept getFunction() { 1370 if (this.function == null) 1371 if (Configuration.errorOnAutoCreate()) 1372 throw new Error("Attempt to auto-create ImagingStudySeriesPerformerComponent.function"); 1373 else if (Configuration.doAutoCreate()) 1374 this.function = new CodeableConcept(); // cc 1375 return this.function; 1376 } 1377 1378 public boolean hasFunction() { 1379 return this.function != null && !this.function.isEmpty(); 1380 } 1381 1382 /** 1383 * @param value {@link #function} (Distinguishes the type of involvement of the performer in the series.) 1384 */ 1385 public ImagingStudySeriesPerformerComponent setFunction(CodeableConcept value) { 1386 this.function = value; 1387 return this; 1388 } 1389 1390 /** 1391 * @return {@link #actor} (Indicates who or what performed the series.) 1392 */ 1393 public Reference getActor() { 1394 if (this.actor == null) 1395 if (Configuration.errorOnAutoCreate()) 1396 throw new Error("Attempt to auto-create ImagingStudySeriesPerformerComponent.actor"); 1397 else if (Configuration.doAutoCreate()) 1398 this.actor = new Reference(); // cc 1399 return this.actor; 1400 } 1401 1402 public boolean hasActor() { 1403 return this.actor != null && !this.actor.isEmpty(); 1404 } 1405 1406 /** 1407 * @param value {@link #actor} (Indicates who or what performed the series.) 1408 */ 1409 public ImagingStudySeriesPerformerComponent setActor(Reference value) { 1410 this.actor = value; 1411 return this; 1412 } 1413 1414 protected void listChildren(List<Property> children) { 1415 super.listChildren(children); 1416 children.add(new Property("function", "CodeableConcept", "Distinguishes the type of involvement of the performer in the series.", 0, 1, function)); 1417 children.add(new Property("actor", "Reference(Practitioner|PractitionerRole|Organization|CareTeam|Patient|Device|RelatedPerson|HealthcareService)", "Indicates who or what performed the series.", 0, 1, actor)); 1418 } 1419 1420 @Override 1421 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1422 switch (_hash) { 1423 case 1380938712: /*function*/ return new Property("function", "CodeableConcept", "Distinguishes the type of involvement of the performer in the series.", 0, 1, function); 1424 case 92645877: /*actor*/ return new Property("actor", "Reference(Practitioner|PractitionerRole|Organization|CareTeam|Patient|Device|RelatedPerson|HealthcareService)", "Indicates who or what performed the series.", 0, 1, actor); 1425 default: return super.getNamedProperty(_hash, _name, _checkValid); 1426 } 1427 1428 } 1429 1430 @Override 1431 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1432 switch (hash) { 1433 case 1380938712: /*function*/ return this.function == null ? new Base[0] : new Base[] {this.function}; // CodeableConcept 1434 case 92645877: /*actor*/ return this.actor == null ? new Base[0] : new Base[] {this.actor}; // Reference 1435 default: return super.getProperty(hash, name, checkValid); 1436 } 1437 1438 } 1439 1440 @Override 1441 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1442 switch (hash) { 1443 case 1380938712: // function 1444 this.function = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1445 return value; 1446 case 92645877: // actor 1447 this.actor = TypeConvertor.castToReference(value); // Reference 1448 return value; 1449 default: return super.setProperty(hash, name, value); 1450 } 1451 1452 } 1453 1454 @Override 1455 public Base setProperty(String name, Base value) throws FHIRException { 1456 if (name.equals("function")) { 1457 this.function = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1458 } else if (name.equals("actor")) { 1459 this.actor = TypeConvertor.castToReference(value); // Reference 1460 } else 1461 return super.setProperty(name, value); 1462 return value; 1463 } 1464 1465 @Override 1466 public Base makeProperty(int hash, String name) throws FHIRException { 1467 switch (hash) { 1468 case 1380938712: return getFunction(); 1469 case 92645877: return getActor(); 1470 default: return super.makeProperty(hash, name); 1471 } 1472 1473 } 1474 1475 @Override 1476 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1477 switch (hash) { 1478 case 1380938712: /*function*/ return new String[] {"CodeableConcept"}; 1479 case 92645877: /*actor*/ return new String[] {"Reference"}; 1480 default: return super.getTypesForProperty(hash, name); 1481 } 1482 1483 } 1484 1485 @Override 1486 public Base addChild(String name) throws FHIRException { 1487 if (name.equals("function")) { 1488 this.function = new CodeableConcept(); 1489 return this.function; 1490 } 1491 else if (name.equals("actor")) { 1492 this.actor = new Reference(); 1493 return this.actor; 1494 } 1495 else 1496 return super.addChild(name); 1497 } 1498 1499 public ImagingStudySeriesPerformerComponent copy() { 1500 ImagingStudySeriesPerformerComponent dst = new ImagingStudySeriesPerformerComponent(); 1501 copyValues(dst); 1502 return dst; 1503 } 1504 1505 public void copyValues(ImagingStudySeriesPerformerComponent dst) { 1506 super.copyValues(dst); 1507 dst.function = function == null ? null : function.copy(); 1508 dst.actor = actor == null ? null : actor.copy(); 1509 } 1510 1511 @Override 1512 public boolean equalsDeep(Base other_) { 1513 if (!super.equalsDeep(other_)) 1514 return false; 1515 if (!(other_ instanceof ImagingStudySeriesPerformerComponent)) 1516 return false; 1517 ImagingStudySeriesPerformerComponent o = (ImagingStudySeriesPerformerComponent) other_; 1518 return compareDeep(function, o.function, true) && compareDeep(actor, o.actor, true); 1519 } 1520 1521 @Override 1522 public boolean equalsShallow(Base other_) { 1523 if (!super.equalsShallow(other_)) 1524 return false; 1525 if (!(other_ instanceof ImagingStudySeriesPerformerComponent)) 1526 return false; 1527 ImagingStudySeriesPerformerComponent o = (ImagingStudySeriesPerformerComponent) other_; 1528 return true; 1529 } 1530 1531 public boolean isEmpty() { 1532 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(function, actor); 1533 } 1534 1535 public String fhirType() { 1536 return "ImagingStudy.series.performer"; 1537 1538 } 1539 1540 } 1541 1542 @Block() 1543 public static class ImagingStudySeriesInstanceComponent extends BackboneElement implements IBaseBackboneElement { 1544 /** 1545 * The DICOM SOP Instance UID for this image or other DICOM content. 1546 */ 1547 @Child(name = "uid", type = {IdType.class}, order=1, min=1, max=1, modifier=false, summary=false) 1548 @Description(shortDefinition="DICOM SOP Instance UID", formalDefinition="The DICOM SOP Instance UID for this image or other DICOM content." ) 1549 protected IdType uid; 1550 1551 /** 1552 * DICOM instance type. 1553 */ 1554 @Child(name = "sopClass", type = {Coding.class}, order=2, min=1, max=1, modifier=false, summary=false) 1555 @Description(shortDefinition="DICOM class type", formalDefinition="DICOM instance type." ) 1556 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://dicom.nema.org/medical/dicom/current/output/chtml/part04/sect_B.5.html#table_B.5-1") 1557 protected Coding sopClass; 1558 1559 /** 1560 * The number of instance in the series. 1561 */ 1562 @Child(name = "number", type = {UnsignedIntType.class}, order=3, min=0, max=1, modifier=false, summary=false) 1563 @Description(shortDefinition="The number of this instance in the series", formalDefinition="The number of instance in the series." ) 1564 protected UnsignedIntType number; 1565 1566 /** 1567 * The description of the instance. 1568 */ 1569 @Child(name = "title", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) 1570 @Description(shortDefinition="Description of instance", formalDefinition="The description of the instance." ) 1571 protected StringType title; 1572 1573 private static final long serialVersionUID = -888152445L; 1574 1575 /** 1576 * Constructor 1577 */ 1578 public ImagingStudySeriesInstanceComponent() { 1579 super(); 1580 } 1581 1582 /** 1583 * Constructor 1584 */ 1585 public ImagingStudySeriesInstanceComponent(String uid, Coding sopClass) { 1586 super(); 1587 this.setUid(uid); 1588 this.setSopClass(sopClass); 1589 } 1590 1591 /** 1592 * @return {@link #uid} (The DICOM SOP Instance UID for this image or other DICOM content.). This is the underlying object with id, value and extensions. The accessor "getUid" gives direct access to the value 1593 */ 1594 public IdType getUidElement() { 1595 if (this.uid == null) 1596 if (Configuration.errorOnAutoCreate()) 1597 throw new Error("Attempt to auto-create ImagingStudySeriesInstanceComponent.uid"); 1598 else if (Configuration.doAutoCreate()) 1599 this.uid = new IdType(); // bb 1600 return this.uid; 1601 } 1602 1603 public boolean hasUidElement() { 1604 return this.uid != null && !this.uid.isEmpty(); 1605 } 1606 1607 public boolean hasUid() { 1608 return this.uid != null && !this.uid.isEmpty(); 1609 } 1610 1611 /** 1612 * @param value {@link #uid} (The DICOM SOP Instance UID for this image or other DICOM content.). This is the underlying object with id, value and extensions. The accessor "getUid" gives direct access to the value 1613 */ 1614 public ImagingStudySeriesInstanceComponent setUidElement(IdType value) { 1615 this.uid = value; 1616 return this; 1617 } 1618 1619 /** 1620 * @return The DICOM SOP Instance UID for this image or other DICOM content. 1621 */ 1622 public String getUid() { 1623 return this.uid == null ? null : this.uid.getValue(); 1624 } 1625 1626 /** 1627 * @param value The DICOM SOP Instance UID for this image or other DICOM content. 1628 */ 1629 public ImagingStudySeriesInstanceComponent setUid(String value) { 1630 if (this.uid == null) 1631 this.uid = new IdType(); 1632 this.uid.setValue(value); 1633 return this; 1634 } 1635 1636 /** 1637 * @return {@link #sopClass} (DICOM instance type.) 1638 */ 1639 public Coding getSopClass() { 1640 if (this.sopClass == null) 1641 if (Configuration.errorOnAutoCreate()) 1642 throw new Error("Attempt to auto-create ImagingStudySeriesInstanceComponent.sopClass"); 1643 else if (Configuration.doAutoCreate()) 1644 this.sopClass = new Coding(); // cc 1645 return this.sopClass; 1646 } 1647 1648 public boolean hasSopClass() { 1649 return this.sopClass != null && !this.sopClass.isEmpty(); 1650 } 1651 1652 /** 1653 * @param value {@link #sopClass} (DICOM instance type.) 1654 */ 1655 public ImagingStudySeriesInstanceComponent setSopClass(Coding value) { 1656 this.sopClass = value; 1657 return this; 1658 } 1659 1660 /** 1661 * @return {@link #number} (The number of instance in the series.). This is the underlying object with id, value and extensions. The accessor "getNumber" gives direct access to the value 1662 */ 1663 public UnsignedIntType getNumberElement() { 1664 if (this.number == null) 1665 if (Configuration.errorOnAutoCreate()) 1666 throw new Error("Attempt to auto-create ImagingStudySeriesInstanceComponent.number"); 1667 else if (Configuration.doAutoCreate()) 1668 this.number = new UnsignedIntType(); // bb 1669 return this.number; 1670 } 1671 1672 public boolean hasNumberElement() { 1673 return this.number != null && !this.number.isEmpty(); 1674 } 1675 1676 public boolean hasNumber() { 1677 return this.number != null && !this.number.isEmpty(); 1678 } 1679 1680 /** 1681 * @param value {@link #number} (The number of instance in the series.). This is the underlying object with id, value and extensions. The accessor "getNumber" gives direct access to the value 1682 */ 1683 public ImagingStudySeriesInstanceComponent setNumberElement(UnsignedIntType value) { 1684 this.number = value; 1685 return this; 1686 } 1687 1688 /** 1689 * @return The number of instance in the series. 1690 */ 1691 public int getNumber() { 1692 return this.number == null || this.number.isEmpty() ? 0 : this.number.getValue(); 1693 } 1694 1695 /** 1696 * @param value The number of instance in the series. 1697 */ 1698 public ImagingStudySeriesInstanceComponent setNumber(int value) { 1699 if (this.number == null) 1700 this.number = new UnsignedIntType(); 1701 this.number.setValue(value); 1702 return this; 1703 } 1704 1705 /** 1706 * @return {@link #title} (The description of the instance.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 1707 */ 1708 public StringType getTitleElement() { 1709 if (this.title == null) 1710 if (Configuration.errorOnAutoCreate()) 1711 throw new Error("Attempt to auto-create ImagingStudySeriesInstanceComponent.title"); 1712 else if (Configuration.doAutoCreate()) 1713 this.title = new StringType(); // bb 1714 return this.title; 1715 } 1716 1717 public boolean hasTitleElement() { 1718 return this.title != null && !this.title.isEmpty(); 1719 } 1720 1721 public boolean hasTitle() { 1722 return this.title != null && !this.title.isEmpty(); 1723 } 1724 1725 /** 1726 * @param value {@link #title} (The description of the instance.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 1727 */ 1728 public ImagingStudySeriesInstanceComponent setTitleElement(StringType value) { 1729 this.title = value; 1730 return this; 1731 } 1732 1733 /** 1734 * @return The description of the instance. 1735 */ 1736 public String getTitle() { 1737 return this.title == null ? null : this.title.getValue(); 1738 } 1739 1740 /** 1741 * @param value The description of the instance. 1742 */ 1743 public ImagingStudySeriesInstanceComponent setTitle(String value) { 1744 if (Utilities.noString(value)) 1745 this.title = null; 1746 else { 1747 if (this.title == null) 1748 this.title = new StringType(); 1749 this.title.setValue(value); 1750 } 1751 return this; 1752 } 1753 1754 protected void listChildren(List<Property> children) { 1755 super.listChildren(children); 1756 children.add(new Property("uid", "id", "The DICOM SOP Instance UID for this image or other DICOM content.", 0, 1, uid)); 1757 children.add(new Property("sopClass", "Coding", "DICOM instance type.", 0, 1, sopClass)); 1758 children.add(new Property("number", "unsignedInt", "The number of instance in the series.", 0, 1, number)); 1759 children.add(new Property("title", "string", "The description of the instance.", 0, 1, title)); 1760 } 1761 1762 @Override 1763 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1764 switch (_hash) { 1765 case 115792: /*uid*/ return new Property("uid", "id", "The DICOM SOP Instance UID for this image or other DICOM content.", 0, 1, uid); 1766 case 1560041540: /*sopClass*/ return new Property("sopClass", "Coding", "DICOM instance type.", 0, 1, sopClass); 1767 case -1034364087: /*number*/ return new Property("number", "unsignedInt", "The number of instance in the series.", 0, 1, number); 1768 case 110371416: /*title*/ return new Property("title", "string", "The description of the instance.", 0, 1, title); 1769 default: return super.getNamedProperty(_hash, _name, _checkValid); 1770 } 1771 1772 } 1773 1774 @Override 1775 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1776 switch (hash) { 1777 case 115792: /*uid*/ return this.uid == null ? new Base[0] : new Base[] {this.uid}; // IdType 1778 case 1560041540: /*sopClass*/ return this.sopClass == null ? new Base[0] : new Base[] {this.sopClass}; // Coding 1779 case -1034364087: /*number*/ return this.number == null ? new Base[0] : new Base[] {this.number}; // UnsignedIntType 1780 case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType 1781 default: return super.getProperty(hash, name, checkValid); 1782 } 1783 1784 } 1785 1786 @Override 1787 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1788 switch (hash) { 1789 case 115792: // uid 1790 this.uid = TypeConvertor.castToId(value); // IdType 1791 return value; 1792 case 1560041540: // sopClass 1793 this.sopClass = TypeConvertor.castToCoding(value); // Coding 1794 return value; 1795 case -1034364087: // number 1796 this.number = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType 1797 return value; 1798 case 110371416: // title 1799 this.title = TypeConvertor.castToString(value); // StringType 1800 return value; 1801 default: return super.setProperty(hash, name, value); 1802 } 1803 1804 } 1805 1806 @Override 1807 public Base setProperty(String name, Base value) throws FHIRException { 1808 if (name.equals("uid")) { 1809 this.uid = TypeConvertor.castToId(value); // IdType 1810 } else if (name.equals("sopClass")) { 1811 this.sopClass = TypeConvertor.castToCoding(value); // Coding 1812 } else if (name.equals("number")) { 1813 this.number = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType 1814 } else if (name.equals("title")) { 1815 this.title = TypeConvertor.castToString(value); // StringType 1816 } else 1817 return super.setProperty(name, value); 1818 return value; 1819 } 1820 1821 @Override 1822 public Base makeProperty(int hash, String name) throws FHIRException { 1823 switch (hash) { 1824 case 115792: return getUidElement(); 1825 case 1560041540: return getSopClass(); 1826 case -1034364087: return getNumberElement(); 1827 case 110371416: return getTitleElement(); 1828 default: return super.makeProperty(hash, name); 1829 } 1830 1831 } 1832 1833 @Override 1834 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1835 switch (hash) { 1836 case 115792: /*uid*/ return new String[] {"id"}; 1837 case 1560041540: /*sopClass*/ return new String[] {"Coding"}; 1838 case -1034364087: /*number*/ return new String[] {"unsignedInt"}; 1839 case 110371416: /*title*/ return new String[] {"string"}; 1840 default: return super.getTypesForProperty(hash, name); 1841 } 1842 1843 } 1844 1845 @Override 1846 public Base addChild(String name) throws FHIRException { 1847 if (name.equals("uid")) { 1848 throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.instance.uid"); 1849 } 1850 else if (name.equals("sopClass")) { 1851 this.sopClass = new Coding(); 1852 return this.sopClass; 1853 } 1854 else if (name.equals("number")) { 1855 throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.instance.number"); 1856 } 1857 else if (name.equals("title")) { 1858 throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.series.instance.title"); 1859 } 1860 else 1861 return super.addChild(name); 1862 } 1863 1864 public ImagingStudySeriesInstanceComponent copy() { 1865 ImagingStudySeriesInstanceComponent dst = new ImagingStudySeriesInstanceComponent(); 1866 copyValues(dst); 1867 return dst; 1868 } 1869 1870 public void copyValues(ImagingStudySeriesInstanceComponent dst) { 1871 super.copyValues(dst); 1872 dst.uid = uid == null ? null : uid.copy(); 1873 dst.sopClass = sopClass == null ? null : sopClass.copy(); 1874 dst.number = number == null ? null : number.copy(); 1875 dst.title = title == null ? null : title.copy(); 1876 } 1877 1878 @Override 1879 public boolean equalsDeep(Base other_) { 1880 if (!super.equalsDeep(other_)) 1881 return false; 1882 if (!(other_ instanceof ImagingStudySeriesInstanceComponent)) 1883 return false; 1884 ImagingStudySeriesInstanceComponent o = (ImagingStudySeriesInstanceComponent) other_; 1885 return compareDeep(uid, o.uid, true) && compareDeep(sopClass, o.sopClass, true) && compareDeep(number, o.number, true) 1886 && compareDeep(title, o.title, true); 1887 } 1888 1889 @Override 1890 public boolean equalsShallow(Base other_) { 1891 if (!super.equalsShallow(other_)) 1892 return false; 1893 if (!(other_ instanceof ImagingStudySeriesInstanceComponent)) 1894 return false; 1895 ImagingStudySeriesInstanceComponent o = (ImagingStudySeriesInstanceComponent) other_; 1896 return compareValues(uid, o.uid, true) && compareValues(number, o.number, true) && compareValues(title, o.title, true) 1897 ; 1898 } 1899 1900 public boolean isEmpty() { 1901 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(uid, sopClass, number, title 1902 ); 1903 } 1904 1905 public String fhirType() { 1906 return "ImagingStudy.series.instance"; 1907 1908 } 1909 1910 } 1911 1912 /** 1913 * Identifiers for the ImagingStudy such as DICOM Study Instance UID, and Accession Number. 1914 */ 1915 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1916 @Description(shortDefinition="Identifiers for the whole study", formalDefinition="Identifiers for the ImagingStudy such as DICOM Study Instance UID, and Accession Number." ) 1917 protected List<Identifier> identifier; 1918 1919 /** 1920 * The current state of the ImagingStudy. 1921 */ 1922 @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) 1923 @Description(shortDefinition="registered | available | cancelled | entered-in-error | unknown", formalDefinition="The current state of the ImagingStudy." ) 1924 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/imagingstudy-status") 1925 protected Enumeration<ImagingStudyStatus> status; 1926 1927 /** 1928 * A list of all the distinct values of series.modality. This may include both aquisition and non-aquisition modalities. 1929 */ 1930 @Child(name = "modality", type = {Coding.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1931 @Description(shortDefinition="All of the distinct values for series' modalities", formalDefinition="A list of all the distinct values of series.modality. This may include both aquisition and non-aquisition modalities." ) 1932 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_33.html") 1933 protected List<Coding> modality; 1934 1935 /** 1936 * The subject, typically a patient, of the imaging study. 1937 */ 1938 @Child(name = "subject", type = {Patient.class, Device.class, Group.class}, order=3, min=1, max=1, modifier=false, summary=true) 1939 @Description(shortDefinition="Who or what is the subject of the study", formalDefinition="The subject, typically a patient, of the imaging study." ) 1940 protected Reference subject; 1941 1942 /** 1943 * The healthcare event (e.g. a patient and healthcare provider interaction) during which this ImagingStudy is made. 1944 */ 1945 @Child(name = "encounter", type = {Encounter.class}, order=4, min=0, max=1, modifier=false, summary=true) 1946 @Description(shortDefinition="Encounter with which this imaging study is associated", formalDefinition="The healthcare event (e.g. a patient and healthcare provider interaction) during which this ImagingStudy is made." ) 1947 protected Reference encounter; 1948 1949 /** 1950 * Date and time the study started. 1951 */ 1952 @Child(name = "started", type = {DateTimeType.class}, order=5, min=0, max=1, modifier=false, summary=true) 1953 @Description(shortDefinition="When the study was started", formalDefinition="Date and time the study started." ) 1954 protected DateTimeType started; 1955 1956 /** 1957 * A list of the diagnostic requests that resulted in this imaging study being performed. 1958 */ 1959 @Child(name = "basedOn", type = {CarePlan.class, ServiceRequest.class, Appointment.class, AppointmentResponse.class, Task.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1960 @Description(shortDefinition="Request fulfilled", formalDefinition="A list of the diagnostic requests that resulted in this imaging study being performed." ) 1961 protected List<Reference> basedOn; 1962 1963 /** 1964 * The requesting/referring physician. 1965 */ 1966 @Child(name = "referrer", type = {Practitioner.class, PractitionerRole.class}, order=7, min=0, max=1, modifier=false, summary=true) 1967 @Description(shortDefinition="Referring physician", formalDefinition="The requesting/referring physician." ) 1968 protected Reference referrer; 1969 1970 /** 1971 * Who read the study and interpreted the images or other content. 1972 */ 1973 @Child(name = "interpreter", type = {Practitioner.class, PractitionerRole.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1974 @Description(shortDefinition="Who interpreted images", formalDefinition="Who read the study and interpreted the images or other content." ) 1975 protected List<Reference> interpreter; 1976 1977 /** 1978 * The network service providing access (e.g., query, view, or retrieval) for the study. See implementation notes for information about using DICOM endpoints. A study-level endpoint applies to each series in the study, unless overridden by a series-level endpoint with the same Endpoint.connectionType. 1979 */ 1980 @Child(name = "endpoint", type = {Endpoint.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1981 @Description(shortDefinition="Study access endpoint", formalDefinition="The network service providing access (e.g., query, view, or retrieval) for the study. See implementation notes for information about using DICOM endpoints. A study-level endpoint applies to each series in the study, unless overridden by a series-level endpoint with the same Endpoint.connectionType." ) 1982 protected List<Reference> endpoint; 1983 1984 /** 1985 * Number of Series in the Study. This value given may be larger than the number of series elements this Resource contains due to resource availability, security, or other factors. This element should be present if any series elements are present. 1986 */ 1987 @Child(name = "numberOfSeries", type = {UnsignedIntType.class}, order=10, min=0, max=1, modifier=false, summary=true) 1988 @Description(shortDefinition="Number of Study Related Series", formalDefinition="Number of Series in the Study. This value given may be larger than the number of series elements this Resource contains due to resource availability, security, or other factors. This element should be present if any series elements are present." ) 1989 protected UnsignedIntType numberOfSeries; 1990 1991 /** 1992 * Number of SOP Instances in Study. This value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present. 1993 */ 1994 @Child(name = "numberOfInstances", type = {UnsignedIntType.class}, order=11, min=0, max=1, modifier=false, summary=true) 1995 @Description(shortDefinition="Number of Study Related Instances", formalDefinition="Number of SOP Instances in Study. This value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present." ) 1996 protected UnsignedIntType numberOfInstances; 1997 1998 /** 1999 * The procedure or code from which this ImagingStudy was part of. 2000 */ 2001 @Child(name = "procedure", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 2002 @Description(shortDefinition="The performed procedure or code", formalDefinition="The procedure or code from which this ImagingStudy was part of." ) 2003 protected List<ImagingStudyProcedureComponent> procedure; 2004 2005 /** 2006 * The principal physical location where the ImagingStudy was performed. 2007 */ 2008 @Child(name = "location", type = {Location.class}, order=13, min=0, max=1, modifier=false, summary=true) 2009 @Description(shortDefinition="Where ImagingStudy occurred", formalDefinition="The principal physical location where the ImagingStudy was performed." ) 2010 protected Reference location; 2011 2012 /** 2013 * Description of clinical condition indicating why the ImagingStudy was requested, and/or Indicates another resource whose existence justifies this Study. 2014 */ 2015 @Child(name = "reason", type = {CodeableReference.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 2016 @Description(shortDefinition="Why the study was requested / performed", formalDefinition="Description of clinical condition indicating why the ImagingStudy was requested, and/or Indicates another resource whose existence justifies this Study." ) 2017 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/procedure-reason") 2018 protected List<CodeableReference> reason; 2019 2020 /** 2021 * Per the recommended DICOM mapping, this element is derived from the Study Description attribute (0008,1030). Observations or findings about the imaging study should be recorded in another resource, e.g. Observation, and not in this element. 2022 */ 2023 @Child(name = "note", type = {Annotation.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 2024 @Description(shortDefinition="User-defined comments", formalDefinition="Per the recommended DICOM mapping, this element is derived from the Study Description attribute (0008,1030). Observations or findings about the imaging study should be recorded in another resource, e.g. Observation, and not in this element." ) 2025 protected List<Annotation> note; 2026 2027 /** 2028 * The Imaging Manager description of the study. Institution-generated description or classification of the Study (component) performed. 2029 */ 2030 @Child(name = "description", type = {StringType.class}, order=16, min=0, max=1, modifier=false, summary=true) 2031 @Description(shortDefinition="Institution-generated description", formalDefinition="The Imaging Manager description of the study. Institution-generated description or classification of the Study (component) performed." ) 2032 protected StringType description; 2033 2034 /** 2035 * Each study has one or more series of images or other content. 2036 */ 2037 @Child(name = "series", type = {}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 2038 @Description(shortDefinition="Each study has one or more series of instances", formalDefinition="Each study has one or more series of images or other content." ) 2039 protected List<ImagingStudySeriesComponent> series; 2040 2041 private static final long serialVersionUID = -564369223L; 2042 2043 /** 2044 * Constructor 2045 */ 2046 public ImagingStudy() { 2047 super(); 2048 } 2049 2050 /** 2051 * Constructor 2052 */ 2053 public ImagingStudy(ImagingStudyStatus status, Reference subject) { 2054 super(); 2055 this.setStatus(status); 2056 this.setSubject(subject); 2057 } 2058 2059 /** 2060 * @return {@link #identifier} (Identifiers for the ImagingStudy such as DICOM Study Instance UID, and Accession Number.) 2061 */ 2062 public List<Identifier> getIdentifier() { 2063 if (this.identifier == null) 2064 this.identifier = new ArrayList<Identifier>(); 2065 return this.identifier; 2066 } 2067 2068 /** 2069 * @return Returns a reference to <code>this</code> for easy method chaining 2070 */ 2071 public ImagingStudy setIdentifier(List<Identifier> theIdentifier) { 2072 this.identifier = theIdentifier; 2073 return this; 2074 } 2075 2076 public boolean hasIdentifier() { 2077 if (this.identifier == null) 2078 return false; 2079 for (Identifier item : this.identifier) 2080 if (!item.isEmpty()) 2081 return true; 2082 return false; 2083 } 2084 2085 public Identifier addIdentifier() { //3 2086 Identifier t = new Identifier(); 2087 if (this.identifier == null) 2088 this.identifier = new ArrayList<Identifier>(); 2089 this.identifier.add(t); 2090 return t; 2091 } 2092 2093 public ImagingStudy addIdentifier(Identifier t) { //3 2094 if (t == null) 2095 return this; 2096 if (this.identifier == null) 2097 this.identifier = new ArrayList<Identifier>(); 2098 this.identifier.add(t); 2099 return this; 2100 } 2101 2102 /** 2103 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} 2104 */ 2105 public Identifier getIdentifierFirstRep() { 2106 if (getIdentifier().isEmpty()) { 2107 addIdentifier(); 2108 } 2109 return getIdentifier().get(0); 2110 } 2111 2112 /** 2113 * @return {@link #status} (The current state of the ImagingStudy.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 2114 */ 2115 public Enumeration<ImagingStudyStatus> getStatusElement() { 2116 if (this.status == null) 2117 if (Configuration.errorOnAutoCreate()) 2118 throw new Error("Attempt to auto-create ImagingStudy.status"); 2119 else if (Configuration.doAutoCreate()) 2120 this.status = new Enumeration<ImagingStudyStatus>(new ImagingStudyStatusEnumFactory()); // bb 2121 return this.status; 2122 } 2123 2124 public boolean hasStatusElement() { 2125 return this.status != null && !this.status.isEmpty(); 2126 } 2127 2128 public boolean hasStatus() { 2129 return this.status != null && !this.status.isEmpty(); 2130 } 2131 2132 /** 2133 * @param value {@link #status} (The current state of the ImagingStudy.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 2134 */ 2135 public ImagingStudy setStatusElement(Enumeration<ImagingStudyStatus> value) { 2136 this.status = value; 2137 return this; 2138 } 2139 2140 /** 2141 * @return The current state of the ImagingStudy. 2142 */ 2143 public ImagingStudyStatus getStatus() { 2144 return this.status == null ? null : this.status.getValue(); 2145 } 2146 2147 /** 2148 * @param value The current state of the ImagingStudy. 2149 */ 2150 public ImagingStudy setStatus(ImagingStudyStatus value) { 2151 if (this.status == null) 2152 this.status = new Enumeration<ImagingStudyStatus>(new ImagingStudyStatusEnumFactory()); 2153 this.status.setValue(value); 2154 return this; 2155 } 2156 2157 /** 2158 * @return {@link #modality} (A list of all the distinct values of series.modality. This may include both aquisition and non-aquisition modalities.) 2159 */ 2160 public List<Coding> getModality() { 2161 if (this.modality == null) 2162 this.modality = new ArrayList<Coding>(); 2163 return this.modality; 2164 } 2165 2166 /** 2167 * @return Returns a reference to <code>this</code> for easy method chaining 2168 */ 2169 public ImagingStudy setModality(List<Coding> theModality) { 2170 this.modality = theModality; 2171 return this; 2172 } 2173 2174 public boolean hasModality() { 2175 if (this.modality == null) 2176 return false; 2177 for (Coding item : this.modality) 2178 if (!item.isEmpty()) 2179 return true; 2180 return false; 2181 } 2182 2183 public Coding addModality() { //3 2184 Coding t = new Coding(); 2185 if (this.modality == null) 2186 this.modality = new ArrayList<Coding>(); 2187 this.modality.add(t); 2188 return t; 2189 } 2190 2191 public ImagingStudy addModality(Coding t) { //3 2192 if (t == null) 2193 return this; 2194 if (this.modality == null) 2195 this.modality = new ArrayList<Coding>(); 2196 this.modality.add(t); 2197 return this; 2198 } 2199 2200 /** 2201 * @return The first repetition of repeating field {@link #modality}, creating it if it does not already exist {3} 2202 */ 2203 public Coding getModalityFirstRep() { 2204 if (getModality().isEmpty()) { 2205 addModality(); 2206 } 2207 return getModality().get(0); 2208 } 2209 2210 /** 2211 * @return {@link #subject} (The subject, typically a patient, of the imaging study.) 2212 */ 2213 public Reference getSubject() { 2214 if (this.subject == null) 2215 if (Configuration.errorOnAutoCreate()) 2216 throw new Error("Attempt to auto-create ImagingStudy.subject"); 2217 else if (Configuration.doAutoCreate()) 2218 this.subject = new Reference(); // cc 2219 return this.subject; 2220 } 2221 2222 public boolean hasSubject() { 2223 return this.subject != null && !this.subject.isEmpty(); 2224 } 2225 2226 /** 2227 * @param value {@link #subject} (The subject, typically a patient, of the imaging study.) 2228 */ 2229 public ImagingStudy setSubject(Reference value) { 2230 this.subject = value; 2231 return this; 2232 } 2233 2234 /** 2235 * @return {@link #encounter} (The healthcare event (e.g. a patient and healthcare provider interaction) during which this ImagingStudy is made.) 2236 */ 2237 public Reference getEncounter() { 2238 if (this.encounter == null) 2239 if (Configuration.errorOnAutoCreate()) 2240 throw new Error("Attempt to auto-create ImagingStudy.encounter"); 2241 else if (Configuration.doAutoCreate()) 2242 this.encounter = new Reference(); // cc 2243 return this.encounter; 2244 } 2245 2246 public boolean hasEncounter() { 2247 return this.encounter != null && !this.encounter.isEmpty(); 2248 } 2249 2250 /** 2251 * @param value {@link #encounter} (The healthcare event (e.g. a patient and healthcare provider interaction) during which this ImagingStudy is made.) 2252 */ 2253 public ImagingStudy setEncounter(Reference value) { 2254 this.encounter = value; 2255 return this; 2256 } 2257 2258 /** 2259 * @return {@link #started} (Date and time the study started.). This is the underlying object with id, value and extensions. The accessor "getStarted" gives direct access to the value 2260 */ 2261 public DateTimeType getStartedElement() { 2262 if (this.started == null) 2263 if (Configuration.errorOnAutoCreate()) 2264 throw new Error("Attempt to auto-create ImagingStudy.started"); 2265 else if (Configuration.doAutoCreate()) 2266 this.started = new DateTimeType(); // bb 2267 return this.started; 2268 } 2269 2270 public boolean hasStartedElement() { 2271 return this.started != null && !this.started.isEmpty(); 2272 } 2273 2274 public boolean hasStarted() { 2275 return this.started != null && !this.started.isEmpty(); 2276 } 2277 2278 /** 2279 * @param value {@link #started} (Date and time the study started.). This is the underlying object with id, value and extensions. The accessor "getStarted" gives direct access to the value 2280 */ 2281 public ImagingStudy setStartedElement(DateTimeType value) { 2282 this.started = value; 2283 return this; 2284 } 2285 2286 /** 2287 * @return Date and time the study started. 2288 */ 2289 public Date getStarted() { 2290 return this.started == null ? null : this.started.getValue(); 2291 } 2292 2293 /** 2294 * @param value Date and time the study started. 2295 */ 2296 public ImagingStudy setStarted(Date value) { 2297 if (value == null) 2298 this.started = null; 2299 else { 2300 if (this.started == null) 2301 this.started = new DateTimeType(); 2302 this.started.setValue(value); 2303 } 2304 return this; 2305 } 2306 2307 /** 2308 * @return {@link #basedOn} (A list of the diagnostic requests that resulted in this imaging study being performed.) 2309 */ 2310 public List<Reference> getBasedOn() { 2311 if (this.basedOn == null) 2312 this.basedOn = new ArrayList<Reference>(); 2313 return this.basedOn; 2314 } 2315 2316 /** 2317 * @return Returns a reference to <code>this</code> for easy method chaining 2318 */ 2319 public ImagingStudy setBasedOn(List<Reference> theBasedOn) { 2320 this.basedOn = theBasedOn; 2321 return this; 2322 } 2323 2324 public boolean hasBasedOn() { 2325 if (this.basedOn == null) 2326 return false; 2327 for (Reference item : this.basedOn) 2328 if (!item.isEmpty()) 2329 return true; 2330 return false; 2331 } 2332 2333 public Reference addBasedOn() { //3 2334 Reference t = new Reference(); 2335 if (this.basedOn == null) 2336 this.basedOn = new ArrayList<Reference>(); 2337 this.basedOn.add(t); 2338 return t; 2339 } 2340 2341 public ImagingStudy addBasedOn(Reference t) { //3 2342 if (t == null) 2343 return this; 2344 if (this.basedOn == null) 2345 this.basedOn = new ArrayList<Reference>(); 2346 this.basedOn.add(t); 2347 return this; 2348 } 2349 2350 /** 2351 * @return The first repetition of repeating field {@link #basedOn}, creating it if it does not already exist {3} 2352 */ 2353 public Reference getBasedOnFirstRep() { 2354 if (getBasedOn().isEmpty()) { 2355 addBasedOn(); 2356 } 2357 return getBasedOn().get(0); 2358 } 2359 2360 /** 2361 * @return {@link #referrer} (The requesting/referring physician.) 2362 */ 2363 public Reference getReferrer() { 2364 if (this.referrer == null) 2365 if (Configuration.errorOnAutoCreate()) 2366 throw new Error("Attempt to auto-create ImagingStudy.referrer"); 2367 else if (Configuration.doAutoCreate()) 2368 this.referrer = new Reference(); // cc 2369 return this.referrer; 2370 } 2371 2372 public boolean hasReferrer() { 2373 return this.referrer != null && !this.referrer.isEmpty(); 2374 } 2375 2376 /** 2377 * @param value {@link #referrer} (The requesting/referring physician.) 2378 */ 2379 public ImagingStudy setReferrer(Reference value) { 2380 this.referrer = value; 2381 return this; 2382 } 2383 2384 /** 2385 * @return {@link #interpreter} (Who read the study and interpreted the images or other content.) 2386 */ 2387 public List<Reference> getInterpreter() { 2388 if (this.interpreter == null) 2389 this.interpreter = new ArrayList<Reference>(); 2390 return this.interpreter; 2391 } 2392 2393 /** 2394 * @return Returns a reference to <code>this</code> for easy method chaining 2395 */ 2396 public ImagingStudy setInterpreter(List<Reference> theInterpreter) { 2397 this.interpreter = theInterpreter; 2398 return this; 2399 } 2400 2401 public boolean hasInterpreter() { 2402 if (this.interpreter == null) 2403 return false; 2404 for (Reference item : this.interpreter) 2405 if (!item.isEmpty()) 2406 return true; 2407 return false; 2408 } 2409 2410 public Reference addInterpreter() { //3 2411 Reference t = new Reference(); 2412 if (this.interpreter == null) 2413 this.interpreter = new ArrayList<Reference>(); 2414 this.interpreter.add(t); 2415 return t; 2416 } 2417 2418 public ImagingStudy addInterpreter(Reference t) { //3 2419 if (t == null) 2420 return this; 2421 if (this.interpreter == null) 2422 this.interpreter = new ArrayList<Reference>(); 2423 this.interpreter.add(t); 2424 return this; 2425 } 2426 2427 /** 2428 * @return The first repetition of repeating field {@link #interpreter}, creating it if it does not already exist {3} 2429 */ 2430 public Reference getInterpreterFirstRep() { 2431 if (getInterpreter().isEmpty()) { 2432 addInterpreter(); 2433 } 2434 return getInterpreter().get(0); 2435 } 2436 2437 /** 2438 * @return {@link #endpoint} (The network service providing access (e.g., query, view, or retrieval) for the study. See implementation notes for information about using DICOM endpoints. A study-level endpoint applies to each series in the study, unless overridden by a series-level endpoint with the same Endpoint.connectionType.) 2439 */ 2440 public List<Reference> getEndpoint() { 2441 if (this.endpoint == null) 2442 this.endpoint = new ArrayList<Reference>(); 2443 return this.endpoint; 2444 } 2445 2446 /** 2447 * @return Returns a reference to <code>this</code> for easy method chaining 2448 */ 2449 public ImagingStudy setEndpoint(List<Reference> theEndpoint) { 2450 this.endpoint = theEndpoint; 2451 return this; 2452 } 2453 2454 public boolean hasEndpoint() { 2455 if (this.endpoint == null) 2456 return false; 2457 for (Reference item : this.endpoint) 2458 if (!item.isEmpty()) 2459 return true; 2460 return false; 2461 } 2462 2463 public Reference addEndpoint() { //3 2464 Reference t = new Reference(); 2465 if (this.endpoint == null) 2466 this.endpoint = new ArrayList<Reference>(); 2467 this.endpoint.add(t); 2468 return t; 2469 } 2470 2471 public ImagingStudy addEndpoint(Reference t) { //3 2472 if (t == null) 2473 return this; 2474 if (this.endpoint == null) 2475 this.endpoint = new ArrayList<Reference>(); 2476 this.endpoint.add(t); 2477 return this; 2478 } 2479 2480 /** 2481 * @return The first repetition of repeating field {@link #endpoint}, creating it if it does not already exist {3} 2482 */ 2483 public Reference getEndpointFirstRep() { 2484 if (getEndpoint().isEmpty()) { 2485 addEndpoint(); 2486 } 2487 return getEndpoint().get(0); 2488 } 2489 2490 /** 2491 * @return {@link #numberOfSeries} (Number of Series in the Study. This value given may be larger than the number of series elements this Resource contains due to resource availability, security, or other factors. This element should be present if any series elements are present.). This is the underlying object with id, value and extensions. The accessor "getNumberOfSeries" gives direct access to the value 2492 */ 2493 public UnsignedIntType getNumberOfSeriesElement() { 2494 if (this.numberOfSeries == null) 2495 if (Configuration.errorOnAutoCreate()) 2496 throw new Error("Attempt to auto-create ImagingStudy.numberOfSeries"); 2497 else if (Configuration.doAutoCreate()) 2498 this.numberOfSeries = new UnsignedIntType(); // bb 2499 return this.numberOfSeries; 2500 } 2501 2502 public boolean hasNumberOfSeriesElement() { 2503 return this.numberOfSeries != null && !this.numberOfSeries.isEmpty(); 2504 } 2505 2506 public boolean hasNumberOfSeries() { 2507 return this.numberOfSeries != null && !this.numberOfSeries.isEmpty(); 2508 } 2509 2510 /** 2511 * @param value {@link #numberOfSeries} (Number of Series in the Study. This value given may be larger than the number of series elements this Resource contains due to resource availability, security, or other factors. This element should be present if any series elements are present.). This is the underlying object with id, value and extensions. The accessor "getNumberOfSeries" gives direct access to the value 2512 */ 2513 public ImagingStudy setNumberOfSeriesElement(UnsignedIntType value) { 2514 this.numberOfSeries = value; 2515 return this; 2516 } 2517 2518 /** 2519 * @return Number of Series in the Study. This value given may be larger than the number of series elements this Resource contains due to resource availability, security, or other factors. This element should be present if any series elements are present. 2520 */ 2521 public int getNumberOfSeries() { 2522 return this.numberOfSeries == null || this.numberOfSeries.isEmpty() ? 0 : this.numberOfSeries.getValue(); 2523 } 2524 2525 /** 2526 * @param value Number of Series in the Study. This value given may be larger than the number of series elements this Resource contains due to resource availability, security, or other factors. This element should be present if any series elements are present. 2527 */ 2528 public ImagingStudy setNumberOfSeries(int value) { 2529 if (this.numberOfSeries == null) 2530 this.numberOfSeries = new UnsignedIntType(); 2531 this.numberOfSeries.setValue(value); 2532 return this; 2533 } 2534 2535 /** 2536 * @return {@link #numberOfInstances} (Number of SOP Instances in Study. This value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present.). This is the underlying object with id, value and extensions. The accessor "getNumberOfInstances" gives direct access to the value 2537 */ 2538 public UnsignedIntType getNumberOfInstancesElement() { 2539 if (this.numberOfInstances == null) 2540 if (Configuration.errorOnAutoCreate()) 2541 throw new Error("Attempt to auto-create ImagingStudy.numberOfInstances"); 2542 else if (Configuration.doAutoCreate()) 2543 this.numberOfInstances = new UnsignedIntType(); // bb 2544 return this.numberOfInstances; 2545 } 2546 2547 public boolean hasNumberOfInstancesElement() { 2548 return this.numberOfInstances != null && !this.numberOfInstances.isEmpty(); 2549 } 2550 2551 public boolean hasNumberOfInstances() { 2552 return this.numberOfInstances != null && !this.numberOfInstances.isEmpty(); 2553 } 2554 2555 /** 2556 * @param value {@link #numberOfInstances} (Number of SOP Instances in Study. This value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present.). This is the underlying object with id, value and extensions. The accessor "getNumberOfInstances" gives direct access to the value 2557 */ 2558 public ImagingStudy setNumberOfInstancesElement(UnsignedIntType value) { 2559 this.numberOfInstances = value; 2560 return this; 2561 } 2562 2563 /** 2564 * @return Number of SOP Instances in Study. This value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present. 2565 */ 2566 public int getNumberOfInstances() { 2567 return this.numberOfInstances == null || this.numberOfInstances.isEmpty() ? 0 : this.numberOfInstances.getValue(); 2568 } 2569 2570 /** 2571 * @param value Number of SOP Instances in Study. This value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present. 2572 */ 2573 public ImagingStudy setNumberOfInstances(int value) { 2574 if (this.numberOfInstances == null) 2575 this.numberOfInstances = new UnsignedIntType(); 2576 this.numberOfInstances.setValue(value); 2577 return this; 2578 } 2579 2580 /** 2581 * @return {@link #procedure} (The procedure or code from which this ImagingStudy was part of.) 2582 */ 2583 public List<ImagingStudyProcedureComponent> getProcedure() { 2584 if (this.procedure == null) 2585 this.procedure = new ArrayList<ImagingStudyProcedureComponent>(); 2586 return this.procedure; 2587 } 2588 2589 /** 2590 * @return Returns a reference to <code>this</code> for easy method chaining 2591 */ 2592 public ImagingStudy setProcedure(List<ImagingStudyProcedureComponent> theProcedure) { 2593 this.procedure = theProcedure; 2594 return this; 2595 } 2596 2597 public boolean hasProcedure() { 2598 if (this.procedure == null) 2599 return false; 2600 for (ImagingStudyProcedureComponent item : this.procedure) 2601 if (!item.isEmpty()) 2602 return true; 2603 return false; 2604 } 2605 2606 public ImagingStudyProcedureComponent addProcedure() { //3 2607 ImagingStudyProcedureComponent t = new ImagingStudyProcedureComponent(); 2608 if (this.procedure == null) 2609 this.procedure = new ArrayList<ImagingStudyProcedureComponent>(); 2610 this.procedure.add(t); 2611 return t; 2612 } 2613 2614 public ImagingStudy addProcedure(ImagingStudyProcedureComponent t) { //3 2615 if (t == null) 2616 return this; 2617 if (this.procedure == null) 2618 this.procedure = new ArrayList<ImagingStudyProcedureComponent>(); 2619 this.procedure.add(t); 2620 return this; 2621 } 2622 2623 /** 2624 * @return The first repetition of repeating field {@link #procedure}, creating it if it does not already exist {3} 2625 */ 2626 public ImagingStudyProcedureComponent getProcedureFirstRep() { 2627 if (getProcedure().isEmpty()) { 2628 addProcedure(); 2629 } 2630 return getProcedure().get(0); 2631 } 2632 2633 /** 2634 * @return {@link #location} (The principal physical location where the ImagingStudy was performed.) 2635 */ 2636 public Reference getLocation() { 2637 if (this.location == null) 2638 if (Configuration.errorOnAutoCreate()) 2639 throw new Error("Attempt to auto-create ImagingStudy.location"); 2640 else if (Configuration.doAutoCreate()) 2641 this.location = new Reference(); // cc 2642 return this.location; 2643 } 2644 2645 public boolean hasLocation() { 2646 return this.location != null && !this.location.isEmpty(); 2647 } 2648 2649 /** 2650 * @param value {@link #location} (The principal physical location where the ImagingStudy was performed.) 2651 */ 2652 public ImagingStudy setLocation(Reference value) { 2653 this.location = value; 2654 return this; 2655 } 2656 2657 /** 2658 * @return {@link #reason} (Description of clinical condition indicating why the ImagingStudy was requested, and/or Indicates another resource whose existence justifies this Study.) 2659 */ 2660 public List<CodeableReference> getReason() { 2661 if (this.reason == null) 2662 this.reason = new ArrayList<CodeableReference>(); 2663 return this.reason; 2664 } 2665 2666 /** 2667 * @return Returns a reference to <code>this</code> for easy method chaining 2668 */ 2669 public ImagingStudy setReason(List<CodeableReference> theReason) { 2670 this.reason = theReason; 2671 return this; 2672 } 2673 2674 public boolean hasReason() { 2675 if (this.reason == null) 2676 return false; 2677 for (CodeableReference item : this.reason) 2678 if (!item.isEmpty()) 2679 return true; 2680 return false; 2681 } 2682 2683 public CodeableReference addReason() { //3 2684 CodeableReference t = new CodeableReference(); 2685 if (this.reason == null) 2686 this.reason = new ArrayList<CodeableReference>(); 2687 this.reason.add(t); 2688 return t; 2689 } 2690 2691 public ImagingStudy addReason(CodeableReference t) { //3 2692 if (t == null) 2693 return this; 2694 if (this.reason == null) 2695 this.reason = new ArrayList<CodeableReference>(); 2696 this.reason.add(t); 2697 return this; 2698 } 2699 2700 /** 2701 * @return The first repetition of repeating field {@link #reason}, creating it if it does not already exist {3} 2702 */ 2703 public CodeableReference getReasonFirstRep() { 2704 if (getReason().isEmpty()) { 2705 addReason(); 2706 } 2707 return getReason().get(0); 2708 } 2709 2710 /** 2711 * @return {@link #note} (Per the recommended DICOM mapping, this element is derived from the Study Description attribute (0008,1030). Observations or findings about the imaging study should be recorded in another resource, e.g. Observation, and not in this element.) 2712 */ 2713 public List<Annotation> getNote() { 2714 if (this.note == null) 2715 this.note = new ArrayList<Annotation>(); 2716 return this.note; 2717 } 2718 2719 /** 2720 * @return Returns a reference to <code>this</code> for easy method chaining 2721 */ 2722 public ImagingStudy setNote(List<Annotation> theNote) { 2723 this.note = theNote; 2724 return this; 2725 } 2726 2727 public boolean hasNote() { 2728 if (this.note == null) 2729 return false; 2730 for (Annotation item : this.note) 2731 if (!item.isEmpty()) 2732 return true; 2733 return false; 2734 } 2735 2736 public Annotation addNote() { //3 2737 Annotation t = new Annotation(); 2738 if (this.note == null) 2739 this.note = new ArrayList<Annotation>(); 2740 this.note.add(t); 2741 return t; 2742 } 2743 2744 public ImagingStudy addNote(Annotation t) { //3 2745 if (t == null) 2746 return this; 2747 if (this.note == null) 2748 this.note = new ArrayList<Annotation>(); 2749 this.note.add(t); 2750 return this; 2751 } 2752 2753 /** 2754 * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist {3} 2755 */ 2756 public Annotation getNoteFirstRep() { 2757 if (getNote().isEmpty()) { 2758 addNote(); 2759 } 2760 return getNote().get(0); 2761 } 2762 2763 /** 2764 * @return {@link #description} (The Imaging Manager description of the study. Institution-generated description or classification of the Study (component) performed.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 2765 */ 2766 public StringType getDescriptionElement() { 2767 if (this.description == null) 2768 if (Configuration.errorOnAutoCreate()) 2769 throw new Error("Attempt to auto-create ImagingStudy.description"); 2770 else if (Configuration.doAutoCreate()) 2771 this.description = new StringType(); // bb 2772 return this.description; 2773 } 2774 2775 public boolean hasDescriptionElement() { 2776 return this.description != null && !this.description.isEmpty(); 2777 } 2778 2779 public boolean hasDescription() { 2780 return this.description != null && !this.description.isEmpty(); 2781 } 2782 2783 /** 2784 * @param value {@link #description} (The Imaging Manager description of the study. Institution-generated description or classification of the Study (component) performed.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 2785 */ 2786 public ImagingStudy setDescriptionElement(StringType value) { 2787 this.description = value; 2788 return this; 2789 } 2790 2791 /** 2792 * @return The Imaging Manager description of the study. Institution-generated description or classification of the Study (component) performed. 2793 */ 2794 public String getDescription() { 2795 return this.description == null ? null : this.description.getValue(); 2796 } 2797 2798 /** 2799 * @param value The Imaging Manager description of the study. Institution-generated description or classification of the Study (component) performed. 2800 */ 2801 public ImagingStudy setDescription(String value) { 2802 if (Utilities.noString(value)) 2803 this.description = null; 2804 else { 2805 if (this.description == null) 2806 this.description = new StringType(); 2807 this.description.setValue(value); 2808 } 2809 return this; 2810 } 2811 2812 /** 2813 * @return {@link #series} (Each study has one or more series of images or other content.) 2814 */ 2815 public List<ImagingStudySeriesComponent> getSeries() { 2816 if (this.series == null) 2817 this.series = new ArrayList<ImagingStudySeriesComponent>(); 2818 return this.series; 2819 } 2820 2821 /** 2822 * @return Returns a reference to <code>this</code> for easy method chaining 2823 */ 2824 public ImagingStudy setSeries(List<ImagingStudySeriesComponent> theSeries) { 2825 this.series = theSeries; 2826 return this; 2827 } 2828 2829 public boolean hasSeries() { 2830 if (this.series == null) 2831 return false; 2832 for (ImagingStudySeriesComponent item : this.series) 2833 if (!item.isEmpty()) 2834 return true; 2835 return false; 2836 } 2837 2838 public ImagingStudySeriesComponent addSeries() { //3 2839 ImagingStudySeriesComponent t = new ImagingStudySeriesComponent(); 2840 if (this.series == null) 2841 this.series = new ArrayList<ImagingStudySeriesComponent>(); 2842 this.series.add(t); 2843 return t; 2844 } 2845 2846 public ImagingStudy addSeries(ImagingStudySeriesComponent t) { //3 2847 if (t == null) 2848 return this; 2849 if (this.series == null) 2850 this.series = new ArrayList<ImagingStudySeriesComponent>(); 2851 this.series.add(t); 2852 return this; 2853 } 2854 2855 /** 2856 * @return The first repetition of repeating field {@link #series}, creating it if it does not already exist {3} 2857 */ 2858 public ImagingStudySeriesComponent getSeriesFirstRep() { 2859 if (getSeries().isEmpty()) { 2860 addSeries(); 2861 } 2862 return getSeries().get(0); 2863 } 2864 2865 protected void listChildren(List<Property> children) { 2866 super.listChildren(children); 2867 children.add(new Property("identifier", "Identifier", "Identifiers for the ImagingStudy such as DICOM Study Instance UID, and Accession Number.", 0, java.lang.Integer.MAX_VALUE, identifier)); 2868 children.add(new Property("status", "code", "The current state of the ImagingStudy.", 0, 1, status)); 2869 children.add(new Property("modality", "Coding", "A list of all the distinct values of series.modality. This may include both aquisition and non-aquisition modalities.", 0, java.lang.Integer.MAX_VALUE, modality)); 2870 children.add(new Property("subject", "Reference(Patient|Device|Group)", "The subject, typically a patient, of the imaging study.", 0, 1, subject)); 2871 children.add(new Property("encounter", "Reference(Encounter)", "The healthcare event (e.g. a patient and healthcare provider interaction) during which this ImagingStudy is made.", 0, 1, encounter)); 2872 children.add(new Property("started", "dateTime", "Date and time the study started.", 0, 1, started)); 2873 children.add(new Property("basedOn", "Reference(CarePlan|ServiceRequest|Appointment|AppointmentResponse|Task)", "A list of the diagnostic requests that resulted in this imaging study being performed.", 0, java.lang.Integer.MAX_VALUE, basedOn)); 2874 children.add(new Property("referrer", "Reference(Practitioner|PractitionerRole)", "The requesting/referring physician.", 0, 1, referrer)); 2875 children.add(new Property("interpreter", "Reference(Practitioner|PractitionerRole)", "Who read the study and interpreted the images or other content.", 0, java.lang.Integer.MAX_VALUE, interpreter)); 2876 children.add(new Property("endpoint", "Reference(Endpoint)", "The network service providing access (e.g., query, view, or retrieval) for the study. See implementation notes for information about using DICOM endpoints. A study-level endpoint applies to each series in the study, unless overridden by a series-level endpoint with the same Endpoint.connectionType.", 0, java.lang.Integer.MAX_VALUE, endpoint)); 2877 children.add(new Property("numberOfSeries", "unsignedInt", "Number of Series in the Study. This value given may be larger than the number of series elements this Resource contains due to resource availability, security, or other factors. This element should be present if any series elements are present.", 0, 1, numberOfSeries)); 2878 children.add(new Property("numberOfInstances", "unsignedInt", "Number of SOP Instances in Study. This value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present.", 0, 1, numberOfInstances)); 2879 children.add(new Property("procedure", "", "The procedure or code from which this ImagingStudy was part of.", 0, java.lang.Integer.MAX_VALUE, procedure)); 2880 children.add(new Property("location", "Reference(Location)", "The principal physical location where the ImagingStudy was performed.", 0, 1, location)); 2881 children.add(new Property("reason", "CodeableReference(Condition|Observation|DiagnosticReport|DocumentReference)", "Description of clinical condition indicating why the ImagingStudy was requested, and/or Indicates another resource whose existence justifies this Study.", 0, java.lang.Integer.MAX_VALUE, reason)); 2882 children.add(new Property("note", "Annotation", "Per the recommended DICOM mapping, this element is derived from the Study Description attribute (0008,1030). Observations or findings about the imaging study should be recorded in another resource, e.g. Observation, and not in this element.", 0, java.lang.Integer.MAX_VALUE, note)); 2883 children.add(new Property("description", "string", "The Imaging Manager description of the study. Institution-generated description or classification of the Study (component) performed.", 0, 1, description)); 2884 children.add(new Property("series", "", "Each study has one or more series of images or other content.", 0, java.lang.Integer.MAX_VALUE, series)); 2885 } 2886 2887 @Override 2888 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2889 switch (_hash) { 2890 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Identifiers for the ImagingStudy such as DICOM Study Instance UID, and Accession Number.", 0, java.lang.Integer.MAX_VALUE, identifier); 2891 case -892481550: /*status*/ return new Property("status", "code", "The current state of the ImagingStudy.", 0, 1, status); 2892 case -622722335: /*modality*/ return new Property("modality", "Coding", "A list of all the distinct values of series.modality. This may include both aquisition and non-aquisition modalities.", 0, java.lang.Integer.MAX_VALUE, modality); 2893 case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Device|Group)", "The subject, typically a patient, of the imaging study.", 0, 1, subject); 2894 case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "The healthcare event (e.g. a patient and healthcare provider interaction) during which this ImagingStudy is made.", 0, 1, encounter); 2895 case -1897185151: /*started*/ return new Property("started", "dateTime", "Date and time the study started.", 0, 1, started); 2896 case -332612366: /*basedOn*/ return new Property("basedOn", "Reference(CarePlan|ServiceRequest|Appointment|AppointmentResponse|Task)", "A list of the diagnostic requests that resulted in this imaging study being performed.", 0, java.lang.Integer.MAX_VALUE, basedOn); 2897 case -722568161: /*referrer*/ return new Property("referrer", "Reference(Practitioner|PractitionerRole)", "The requesting/referring physician.", 0, 1, referrer); 2898 case -2008009094: /*interpreter*/ return new Property("interpreter", "Reference(Practitioner|PractitionerRole)", "Who read the study and interpreted the images or other content.", 0, java.lang.Integer.MAX_VALUE, interpreter); 2899 case 1741102485: /*endpoint*/ return new Property("endpoint", "Reference(Endpoint)", "The network service providing access (e.g., query, view, or retrieval) for the study. See implementation notes for information about using DICOM endpoints. A study-level endpoint applies to each series in the study, unless overridden by a series-level endpoint with the same Endpoint.connectionType.", 0, java.lang.Integer.MAX_VALUE, endpoint); 2900 case 1920000407: /*numberOfSeries*/ return new Property("numberOfSeries", "unsignedInt", "Number of Series in the Study. This value given may be larger than the number of series elements this Resource contains due to resource availability, security, or other factors. This element should be present if any series elements are present.", 0, 1, numberOfSeries); 2901 case -1043544226: /*numberOfInstances*/ return new Property("numberOfInstances", "unsignedInt", "Number of SOP Instances in Study. This value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present.", 0, 1, numberOfInstances); 2902 case -1095204141: /*procedure*/ return new Property("procedure", "", "The procedure or code from which this ImagingStudy was part of.", 0, java.lang.Integer.MAX_VALUE, procedure); 2903 case 1901043637: /*location*/ return new Property("location", "Reference(Location)", "The principal physical location where the ImagingStudy was performed.", 0, 1, location); 2904 case -934964668: /*reason*/ return new Property("reason", "CodeableReference(Condition|Observation|DiagnosticReport|DocumentReference)", "Description of clinical condition indicating why the ImagingStudy was requested, and/or Indicates another resource whose existence justifies this Study.", 0, java.lang.Integer.MAX_VALUE, reason); 2905 case 3387378: /*note*/ return new Property("note", "Annotation", "Per the recommended DICOM mapping, this element is derived from the Study Description attribute (0008,1030). Observations or findings about the imaging study should be recorded in another resource, e.g. Observation, and not in this element.", 0, java.lang.Integer.MAX_VALUE, note); 2906 case -1724546052: /*description*/ return new Property("description", "string", "The Imaging Manager description of the study. Institution-generated description or classification of the Study (component) performed.", 0, 1, description); 2907 case -905838985: /*series*/ return new Property("series", "", "Each study has one or more series of images or other content.", 0, java.lang.Integer.MAX_VALUE, series); 2908 default: return super.getNamedProperty(_hash, _name, _checkValid); 2909 } 2910 2911 } 2912 2913 @Override 2914 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2915 switch (hash) { 2916 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 2917 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<ImagingStudyStatus> 2918 case -622722335: /*modality*/ return this.modality == null ? new Base[0] : this.modality.toArray(new Base[this.modality.size()]); // Coding 2919 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference 2920 case 1524132147: /*encounter*/ return this.encounter == null ? new Base[0] : new Base[] {this.encounter}; // Reference 2921 case -1897185151: /*started*/ return this.started == null ? new Base[0] : new Base[] {this.started}; // DateTimeType 2922 case -332612366: /*basedOn*/ return this.basedOn == null ? new Base[0] : this.basedOn.toArray(new Base[this.basedOn.size()]); // Reference 2923 case -722568161: /*referrer*/ return this.referrer == null ? new Base[0] : new Base[] {this.referrer}; // Reference 2924 case -2008009094: /*interpreter*/ return this.interpreter == null ? new Base[0] : this.interpreter.toArray(new Base[this.interpreter.size()]); // Reference 2925 case 1741102485: /*endpoint*/ return this.endpoint == null ? new Base[0] : this.endpoint.toArray(new Base[this.endpoint.size()]); // Reference 2926 case 1920000407: /*numberOfSeries*/ return this.numberOfSeries == null ? new Base[0] : new Base[] {this.numberOfSeries}; // UnsignedIntType 2927 case -1043544226: /*numberOfInstances*/ return this.numberOfInstances == null ? new Base[0] : new Base[] {this.numberOfInstances}; // UnsignedIntType 2928 case -1095204141: /*procedure*/ return this.procedure == null ? new Base[0] : this.procedure.toArray(new Base[this.procedure.size()]); // ImagingStudyProcedureComponent 2929 case 1901043637: /*location*/ return this.location == null ? new Base[0] : new Base[] {this.location}; // Reference 2930 case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // CodeableReference 2931 case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation 2932 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 2933 case -905838985: /*series*/ return this.series == null ? new Base[0] : this.series.toArray(new Base[this.series.size()]); // ImagingStudySeriesComponent 2934 default: return super.getProperty(hash, name, checkValid); 2935 } 2936 2937 } 2938 2939 @Override 2940 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2941 switch (hash) { 2942 case -1618432855: // identifier 2943 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier 2944 return value; 2945 case -892481550: // status 2946 value = new ImagingStudyStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 2947 this.status = (Enumeration) value; // Enumeration<ImagingStudyStatus> 2948 return value; 2949 case -622722335: // modality 2950 this.getModality().add(TypeConvertor.castToCoding(value)); // Coding 2951 return value; 2952 case -1867885268: // subject 2953 this.subject = TypeConvertor.castToReference(value); // Reference 2954 return value; 2955 case 1524132147: // encounter 2956 this.encounter = TypeConvertor.castToReference(value); // Reference 2957 return value; 2958 case -1897185151: // started 2959 this.started = TypeConvertor.castToDateTime(value); // DateTimeType 2960 return value; 2961 case -332612366: // basedOn 2962 this.getBasedOn().add(TypeConvertor.castToReference(value)); // Reference 2963 return value; 2964 case -722568161: // referrer 2965 this.referrer = TypeConvertor.castToReference(value); // Reference 2966 return value; 2967 case -2008009094: // interpreter 2968 this.getInterpreter().add(TypeConvertor.castToReference(value)); // Reference 2969 return value; 2970 case 1741102485: // endpoint 2971 this.getEndpoint().add(TypeConvertor.castToReference(value)); // Reference 2972 return value; 2973 case 1920000407: // numberOfSeries 2974 this.numberOfSeries = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType 2975 return value; 2976 case -1043544226: // numberOfInstances 2977 this.numberOfInstances = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType 2978 return value; 2979 case -1095204141: // procedure 2980 this.getProcedure().add((ImagingStudyProcedureComponent) value); // ImagingStudyProcedureComponent 2981 return value; 2982 case 1901043637: // location 2983 this.location = TypeConvertor.castToReference(value); // Reference 2984 return value; 2985 case -934964668: // reason 2986 this.getReason().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference 2987 return value; 2988 case 3387378: // note 2989 this.getNote().add(TypeConvertor.castToAnnotation(value)); // Annotation 2990 return value; 2991 case -1724546052: // description 2992 this.description = TypeConvertor.castToString(value); // StringType 2993 return value; 2994 case -905838985: // series 2995 this.getSeries().add((ImagingStudySeriesComponent) value); // ImagingStudySeriesComponent 2996 return value; 2997 default: return super.setProperty(hash, name, value); 2998 } 2999 3000 } 3001 3002 @Override 3003 public Base setProperty(String name, Base value) throws FHIRException { 3004 if (name.equals("identifier")) { 3005 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); 3006 } else if (name.equals("status")) { 3007 value = new ImagingStudyStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 3008 this.status = (Enumeration) value; // Enumeration<ImagingStudyStatus> 3009 } else if (name.equals("modality")) { 3010 this.getModality().add(TypeConvertor.castToCoding(value)); 3011 } else if (name.equals("subject")) { 3012 this.subject = TypeConvertor.castToReference(value); // Reference 3013 } else if (name.equals("encounter")) { 3014 this.encounter = TypeConvertor.castToReference(value); // Reference 3015 } else if (name.equals("started")) { 3016 this.started = TypeConvertor.castToDateTime(value); // DateTimeType 3017 } else if (name.equals("basedOn")) { 3018 this.getBasedOn().add(TypeConvertor.castToReference(value)); 3019 } else if (name.equals("referrer")) { 3020 this.referrer = TypeConvertor.castToReference(value); // Reference 3021 } else if (name.equals("interpreter")) { 3022 this.getInterpreter().add(TypeConvertor.castToReference(value)); 3023 } else if (name.equals("endpoint")) { 3024 this.getEndpoint().add(TypeConvertor.castToReference(value)); 3025 } else if (name.equals("numberOfSeries")) { 3026 this.numberOfSeries = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType 3027 } else if (name.equals("numberOfInstances")) { 3028 this.numberOfInstances = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType 3029 } else if (name.equals("procedure")) { 3030 this.getProcedure().add((ImagingStudyProcedureComponent) value); 3031 } else if (name.equals("location")) { 3032 this.location = TypeConvertor.castToReference(value); // Reference 3033 } else if (name.equals("reason")) { 3034 this.getReason().add(TypeConvertor.castToCodeableReference(value)); 3035 } else if (name.equals("note")) { 3036 this.getNote().add(TypeConvertor.castToAnnotation(value)); 3037 } else if (name.equals("description")) { 3038 this.description = TypeConvertor.castToString(value); // StringType 3039 } else if (name.equals("series")) { 3040 this.getSeries().add((ImagingStudySeriesComponent) value); 3041 } else 3042 return super.setProperty(name, value); 3043 return value; 3044 } 3045 3046 @Override 3047 public Base makeProperty(int hash, String name) throws FHIRException { 3048 switch (hash) { 3049 case -1618432855: return addIdentifier(); 3050 case -892481550: return getStatusElement(); 3051 case -622722335: return addModality(); 3052 case -1867885268: return getSubject(); 3053 case 1524132147: return getEncounter(); 3054 case -1897185151: return getStartedElement(); 3055 case -332612366: return addBasedOn(); 3056 case -722568161: return getReferrer(); 3057 case -2008009094: return addInterpreter(); 3058 case 1741102485: return addEndpoint(); 3059 case 1920000407: return getNumberOfSeriesElement(); 3060 case -1043544226: return getNumberOfInstancesElement(); 3061 case -1095204141: return addProcedure(); 3062 case 1901043637: return getLocation(); 3063 case -934964668: return addReason(); 3064 case 3387378: return addNote(); 3065 case -1724546052: return getDescriptionElement(); 3066 case -905838985: return addSeries(); 3067 default: return super.makeProperty(hash, name); 3068 } 3069 3070 } 3071 3072 @Override 3073 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 3074 switch (hash) { 3075 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 3076 case -892481550: /*status*/ return new String[] {"code"}; 3077 case -622722335: /*modality*/ return new String[] {"Coding"}; 3078 case -1867885268: /*subject*/ return new String[] {"Reference"}; 3079 case 1524132147: /*encounter*/ return new String[] {"Reference"}; 3080 case -1897185151: /*started*/ return new String[] {"dateTime"}; 3081 case -332612366: /*basedOn*/ return new String[] {"Reference"}; 3082 case -722568161: /*referrer*/ return new String[] {"Reference"}; 3083 case -2008009094: /*interpreter*/ return new String[] {"Reference"}; 3084 case 1741102485: /*endpoint*/ return new String[] {"Reference"}; 3085 case 1920000407: /*numberOfSeries*/ return new String[] {"unsignedInt"}; 3086 case -1043544226: /*numberOfInstances*/ return new String[] {"unsignedInt"}; 3087 case -1095204141: /*procedure*/ return new String[] {}; 3088 case 1901043637: /*location*/ return new String[] {"Reference"}; 3089 case -934964668: /*reason*/ return new String[] {"CodeableReference"}; 3090 case 3387378: /*note*/ return new String[] {"Annotation"}; 3091 case -1724546052: /*description*/ return new String[] {"string"}; 3092 case -905838985: /*series*/ return new String[] {}; 3093 default: return super.getTypesForProperty(hash, name); 3094 } 3095 3096 } 3097 3098 @Override 3099 public Base addChild(String name) throws FHIRException { 3100 if (name.equals("identifier")) { 3101 return addIdentifier(); 3102 } 3103 else if (name.equals("status")) { 3104 throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.status"); 3105 } 3106 else if (name.equals("modality")) { 3107 return addModality(); 3108 } 3109 else if (name.equals("subject")) { 3110 this.subject = new Reference(); 3111 return this.subject; 3112 } 3113 else if (name.equals("encounter")) { 3114 this.encounter = new Reference(); 3115 return this.encounter; 3116 } 3117 else if (name.equals("started")) { 3118 throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.started"); 3119 } 3120 else if (name.equals("basedOn")) { 3121 return addBasedOn(); 3122 } 3123 else if (name.equals("referrer")) { 3124 this.referrer = new Reference(); 3125 return this.referrer; 3126 } 3127 else if (name.equals("interpreter")) { 3128 return addInterpreter(); 3129 } 3130 else if (name.equals("endpoint")) { 3131 return addEndpoint(); 3132 } 3133 else if (name.equals("numberOfSeries")) { 3134 throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfSeries"); 3135 } 3136 else if (name.equals("numberOfInstances")) { 3137 throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfInstances"); 3138 } 3139 else if (name.equals("procedure")) { 3140 return addProcedure(); 3141 } 3142 else if (name.equals("location")) { 3143 this.location = new Reference(); 3144 return this.location; 3145 } 3146 else if (name.equals("reason")) { 3147 return addReason(); 3148 } 3149 else if (name.equals("note")) { 3150 return addNote(); 3151 } 3152 else if (name.equals("description")) { 3153 throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.description"); 3154 } 3155 else if (name.equals("series")) { 3156 return addSeries(); 3157 } 3158 else 3159 return super.addChild(name); 3160 } 3161 3162 public String fhirType() { 3163 return "ImagingStudy"; 3164 3165 } 3166 3167 public ImagingStudy copy() { 3168 ImagingStudy dst = new ImagingStudy(); 3169 copyValues(dst); 3170 return dst; 3171 } 3172 3173 public void copyValues(ImagingStudy dst) { 3174 super.copyValues(dst); 3175 if (identifier != null) { 3176 dst.identifier = new ArrayList<Identifier>(); 3177 for (Identifier i : identifier) 3178 dst.identifier.add(i.copy()); 3179 }; 3180 dst.status = status == null ? null : status.copy(); 3181 if (modality != null) { 3182 dst.modality = new ArrayList<Coding>(); 3183 for (Coding i : modality) 3184 dst.modality.add(i.copy()); 3185 }; 3186 dst.subject = subject == null ? null : subject.copy(); 3187 dst.encounter = encounter == null ? null : encounter.copy(); 3188 dst.started = started == null ? null : started.copy(); 3189 if (basedOn != null) { 3190 dst.basedOn = new ArrayList<Reference>(); 3191 for (Reference i : basedOn) 3192 dst.basedOn.add(i.copy()); 3193 }; 3194 dst.referrer = referrer == null ? null : referrer.copy(); 3195 if (interpreter != null) { 3196 dst.interpreter = new ArrayList<Reference>(); 3197 for (Reference i : interpreter) 3198 dst.interpreter.add(i.copy()); 3199 }; 3200 if (endpoint != null) { 3201 dst.endpoint = new ArrayList<Reference>(); 3202 for (Reference i : endpoint) 3203 dst.endpoint.add(i.copy()); 3204 }; 3205 dst.numberOfSeries = numberOfSeries == null ? null : numberOfSeries.copy(); 3206 dst.numberOfInstances = numberOfInstances == null ? null : numberOfInstances.copy(); 3207 if (procedure != null) { 3208 dst.procedure = new ArrayList<ImagingStudyProcedureComponent>(); 3209 for (ImagingStudyProcedureComponent i : procedure) 3210 dst.procedure.add(i.copy()); 3211 }; 3212 dst.location = location == null ? null : location.copy(); 3213 if (reason != null) { 3214 dst.reason = new ArrayList<CodeableReference>(); 3215 for (CodeableReference i : reason) 3216 dst.reason.add(i.copy()); 3217 }; 3218 if (note != null) { 3219 dst.note = new ArrayList<Annotation>(); 3220 for (Annotation i : note) 3221 dst.note.add(i.copy()); 3222 }; 3223 dst.description = description == null ? null : description.copy(); 3224 if (series != null) { 3225 dst.series = new ArrayList<ImagingStudySeriesComponent>(); 3226 for (ImagingStudySeriesComponent i : series) 3227 dst.series.add(i.copy()); 3228 }; 3229 } 3230 3231 protected ImagingStudy typedCopy() { 3232 return copy(); 3233 } 3234 3235 @Override 3236 public boolean equalsDeep(Base other_) { 3237 if (!super.equalsDeep(other_)) 3238 return false; 3239 if (!(other_ instanceof ImagingStudy)) 3240 return false; 3241 ImagingStudy o = (ImagingStudy) other_; 3242 return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(modality, o.modality, true) 3243 && compareDeep(subject, o.subject, true) && compareDeep(encounter, o.encounter, true) && compareDeep(started, o.started, true) 3244 && compareDeep(basedOn, o.basedOn, true) && compareDeep(referrer, o.referrer, true) && compareDeep(interpreter, o.interpreter, true) 3245 && compareDeep(endpoint, o.endpoint, true) && compareDeep(numberOfSeries, o.numberOfSeries, true) 3246 && compareDeep(numberOfInstances, o.numberOfInstances, true) && compareDeep(procedure, o.procedure, true) 3247 && compareDeep(location, o.location, true) && compareDeep(reason, o.reason, true) && compareDeep(note, o.note, true) 3248 && compareDeep(description, o.description, true) && compareDeep(series, o.series, true); 3249 } 3250 3251 @Override 3252 public boolean equalsShallow(Base other_) { 3253 if (!super.equalsShallow(other_)) 3254 return false; 3255 if (!(other_ instanceof ImagingStudy)) 3256 return false; 3257 ImagingStudy o = (ImagingStudy) other_; 3258 return compareValues(status, o.status, true) && compareValues(started, o.started, true) && compareValues(numberOfSeries, o.numberOfSeries, true) 3259 && compareValues(numberOfInstances, o.numberOfInstances, true) && compareValues(description, o.description, true) 3260 ; 3261 } 3262 3263 public boolean isEmpty() { 3264 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, modality 3265 , subject, encounter, started, basedOn, referrer, interpreter, endpoint, numberOfSeries 3266 , numberOfInstances, procedure, location, reason, note, description, series); 3267 } 3268 3269 @Override 3270 public ResourceType getResourceType() { 3271 return ResourceType.ImagingStudy; 3272 } 3273 3274 /** 3275 * Search parameter: <b>basedon</b> 3276 * <p> 3277 * Description: <b>The order for the image</b><br> 3278 * Type: <b>reference</b><br> 3279 * Path: <b>ImagingStudy.basedOn</b><br> 3280 * </p> 3281 */ 3282 @SearchParamDefinition(name="basedon", path="ImagingStudy.basedOn", description="The order for the image", type="reference", target={Appointment.class, AppointmentResponse.class, CarePlan.class, ServiceRequest.class, Task.class } ) 3283 public static final String SP_BASEDON = "basedon"; 3284 /** 3285 * <b>Fluent Client</b> search parameter constant for <b>basedon</b> 3286 * <p> 3287 * Description: <b>The order for the image</b><br> 3288 * Type: <b>reference</b><br> 3289 * Path: <b>ImagingStudy.basedOn</b><br> 3290 * </p> 3291 */ 3292 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASEDON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BASEDON); 3293 3294/** 3295 * Constant for fluent queries to be used to add include statements. Specifies 3296 * the path value of "<b>ImagingStudy:basedon</b>". 3297 */ 3298 public static final ca.uhn.fhir.model.api.Include INCLUDE_BASEDON = new ca.uhn.fhir.model.api.Include("ImagingStudy:basedon").toLocked(); 3299 3300 /** 3301 * Search parameter: <b>bodysite</b> 3302 * <p> 3303 * Description: <b>The body site studied</b><br> 3304 * Type: <b>token</b><br> 3305 * Path: <b>ImagingStudy.series.bodySite</b><br> 3306 * </p> 3307 */ 3308 @SearchParamDefinition(name="bodysite", path="ImagingStudy.series.bodySite", description="The body site studied", type="token" ) 3309 public static final String SP_BODYSITE = "bodysite"; 3310 /** 3311 * <b>Fluent Client</b> search parameter constant for <b>bodysite</b> 3312 * <p> 3313 * Description: <b>The body site studied</b><br> 3314 * Type: <b>token</b><br> 3315 * Path: <b>ImagingStudy.series.bodySite</b><br> 3316 * </p> 3317 */ 3318 public static final ca.uhn.fhir.rest.gclient.TokenClientParam BODYSITE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_BODYSITE); 3319 3320 /** 3321 * Search parameter: <b>dicom-class</b> 3322 * <p> 3323 * Description: <b>The type of the instance</b><br> 3324 * Type: <b>token</b><br> 3325 * Path: <b>ImagingStudy.series.instance.sopClass</b><br> 3326 * </p> 3327 */ 3328 @SearchParamDefinition(name="dicom-class", path="ImagingStudy.series.instance.sopClass", description="The type of the instance", type="token" ) 3329 public static final String SP_DICOM_CLASS = "dicom-class"; 3330 /** 3331 * <b>Fluent Client</b> search parameter constant for <b>dicom-class</b> 3332 * <p> 3333 * Description: <b>The type of the instance</b><br> 3334 * Type: <b>token</b><br> 3335 * Path: <b>ImagingStudy.series.instance.sopClass</b><br> 3336 * </p> 3337 */ 3338 public static final ca.uhn.fhir.rest.gclient.TokenClientParam DICOM_CLASS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_DICOM_CLASS); 3339 3340 /** 3341 * Search parameter: <b>encounter</b> 3342 * <p> 3343 * Description: <b>The context of the study</b><br> 3344 * Type: <b>reference</b><br> 3345 * Path: <b>ImagingStudy.encounter</b><br> 3346 * </p> 3347 */ 3348 @SearchParamDefinition(name="encounter", path="ImagingStudy.encounter", description="The context of the study", type="reference", target={Encounter.class } ) 3349 public static final String SP_ENCOUNTER = "encounter"; 3350 /** 3351 * <b>Fluent Client</b> search parameter constant for <b>encounter</b> 3352 * <p> 3353 * Description: <b>The context of the study</b><br> 3354 * Type: <b>reference</b><br> 3355 * Path: <b>ImagingStudy.encounter</b><br> 3356 * </p> 3357 */ 3358 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); 3359 3360/** 3361 * Constant for fluent queries to be used to add include statements. Specifies 3362 * the path value of "<b>ImagingStudy:encounter</b>". 3363 */ 3364 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("ImagingStudy:encounter").toLocked(); 3365 3366 /** 3367 * Search parameter: <b>endpoint</b> 3368 * <p> 3369 * Description: <b>The endpoint for the study or series</b><br> 3370 * Type: <b>reference</b><br> 3371 * Path: <b>ImagingStudy.endpoint | ImagingStudy.series.endpoint</b><br> 3372 * </p> 3373 */ 3374 @SearchParamDefinition(name="endpoint", path="ImagingStudy.endpoint | ImagingStudy.series.endpoint", description="The endpoint for the study or series", type="reference", target={Endpoint.class } ) 3375 public static final String SP_ENDPOINT = "endpoint"; 3376 /** 3377 * <b>Fluent Client</b> search parameter constant for <b>endpoint</b> 3378 * <p> 3379 * Description: <b>The endpoint for the study or series</b><br> 3380 * Type: <b>reference</b><br> 3381 * Path: <b>ImagingStudy.endpoint | ImagingStudy.series.endpoint</b><br> 3382 * </p> 3383 */ 3384 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENDPOINT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENDPOINT); 3385 3386/** 3387 * Constant for fluent queries to be used to add include statements. Specifies 3388 * the path value of "<b>ImagingStudy:endpoint</b>". 3389 */ 3390 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENDPOINT = new ca.uhn.fhir.model.api.Include("ImagingStudy:endpoint").toLocked(); 3391 3392 /** 3393 * Search parameter: <b>instance</b> 3394 * <p> 3395 * Description: <b>SOP Instance UID for an instance</b><br> 3396 * Type: <b>token</b><br> 3397 * Path: <b>ImagingStudy.series.instance.uid</b><br> 3398 * </p> 3399 */ 3400 @SearchParamDefinition(name="instance", path="ImagingStudy.series.instance.uid", description="SOP Instance UID for an instance", type="token" ) 3401 public static final String SP_INSTANCE = "instance"; 3402 /** 3403 * <b>Fluent Client</b> search parameter constant for <b>instance</b> 3404 * <p> 3405 * Description: <b>SOP Instance UID for an instance</b><br> 3406 * Type: <b>token</b><br> 3407 * Path: <b>ImagingStudy.series.instance.uid</b><br> 3408 * </p> 3409 */ 3410 public static final ca.uhn.fhir.rest.gclient.TokenClientParam INSTANCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_INSTANCE); 3411 3412 /** 3413 * Search parameter: <b>interpreter</b> 3414 * <p> 3415 * Description: <b>Who interpreted the images</b><br> 3416 * Type: <b>reference</b><br> 3417 * Path: <b>ImagingStudy.interpreter</b><br> 3418 * </p> 3419 */ 3420 @SearchParamDefinition(name="interpreter", path="ImagingStudy.interpreter", description="Who interpreted the images", type="reference", target={Practitioner.class, PractitionerRole.class } ) 3421 public static final String SP_INTERPRETER = "interpreter"; 3422 /** 3423 * <b>Fluent Client</b> search parameter constant for <b>interpreter</b> 3424 * <p> 3425 * Description: <b>Who interpreted the images</b><br> 3426 * Type: <b>reference</b><br> 3427 * Path: <b>ImagingStudy.interpreter</b><br> 3428 * </p> 3429 */ 3430 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INTERPRETER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INTERPRETER); 3431 3432/** 3433 * Constant for fluent queries to be used to add include statements. Specifies 3434 * the path value of "<b>ImagingStudy:interpreter</b>". 3435 */ 3436 public static final ca.uhn.fhir.model.api.Include INCLUDE_INTERPRETER = new ca.uhn.fhir.model.api.Include("ImagingStudy:interpreter").toLocked(); 3437 3438 /** 3439 * Search parameter: <b>modality</b> 3440 * <p> 3441 * Description: <b>The modality of the series</b><br> 3442 * Type: <b>token</b><br> 3443 * Path: <b>ImagingStudy.series.modality</b><br> 3444 * </p> 3445 */ 3446 @SearchParamDefinition(name="modality", path="ImagingStudy.series.modality", description="The modality of the series", type="token" ) 3447 public static final String SP_MODALITY = "modality"; 3448 /** 3449 * <b>Fluent Client</b> search parameter constant for <b>modality</b> 3450 * <p> 3451 * Description: <b>The modality of the series</b><br> 3452 * Type: <b>token</b><br> 3453 * Path: <b>ImagingStudy.series.modality</b><br> 3454 * </p> 3455 */ 3456 public static final ca.uhn.fhir.rest.gclient.TokenClientParam MODALITY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_MODALITY); 3457 3458 /** 3459 * Search parameter: <b>performer</b> 3460 * <p> 3461 * Description: <b>The person who performed the study</b><br> 3462 * Type: <b>reference</b><br> 3463 * Path: <b>ImagingStudy.series.performer.actor</b><br> 3464 * </p> 3465 */ 3466 @SearchParamDefinition(name="performer", path="ImagingStudy.series.performer.actor", description="The person who performed the study", type="reference", target={CareTeam.class, Device.class, HealthcareService.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) 3467 public static final String SP_PERFORMER = "performer"; 3468 /** 3469 * <b>Fluent Client</b> search parameter constant for <b>performer</b> 3470 * <p> 3471 * Description: <b>The person who performed the study</b><br> 3472 * Type: <b>reference</b><br> 3473 * Path: <b>ImagingStudy.series.performer.actor</b><br> 3474 * </p> 3475 */ 3476 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PERFORMER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PERFORMER); 3477 3478/** 3479 * Constant for fluent queries to be used to add include statements. Specifies 3480 * the path value of "<b>ImagingStudy:performer</b>". 3481 */ 3482 public static final ca.uhn.fhir.model.api.Include INCLUDE_PERFORMER = new ca.uhn.fhir.model.api.Include("ImagingStudy:performer").toLocked(); 3483 3484 /** 3485 * Search parameter: <b>reason</b> 3486 * <p> 3487 * Description: <b>The reason for the study</b><br> 3488 * Type: <b>token</b><br> 3489 * Path: <b>null</b><br> 3490 * </p> 3491 */ 3492 @SearchParamDefinition(name="reason", path="", description="The reason for the study", type="token" ) 3493 public static final String SP_REASON = "reason"; 3494 /** 3495 * <b>Fluent Client</b> search parameter constant for <b>reason</b> 3496 * <p> 3497 * Description: <b>The reason for the study</b><br> 3498 * Type: <b>token</b><br> 3499 * Path: <b>null</b><br> 3500 * </p> 3501 */ 3502 public static final ca.uhn.fhir.rest.gclient.TokenClientParam REASON = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REASON); 3503 3504 /** 3505 * Search parameter: <b>referrer</b> 3506 * <p> 3507 * Description: <b>The referring physician</b><br> 3508 * Type: <b>reference</b><br> 3509 * Path: <b>ImagingStudy.referrer</b><br> 3510 * </p> 3511 */ 3512 @SearchParamDefinition(name="referrer", path="ImagingStudy.referrer", description="The referring physician", type="reference", target={Practitioner.class, PractitionerRole.class } ) 3513 public static final String SP_REFERRER = "referrer"; 3514 /** 3515 * <b>Fluent Client</b> search parameter constant for <b>referrer</b> 3516 * <p> 3517 * Description: <b>The referring physician</b><br> 3518 * Type: <b>reference</b><br> 3519 * Path: <b>ImagingStudy.referrer</b><br> 3520 * </p> 3521 */ 3522 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REFERRER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REFERRER); 3523 3524/** 3525 * Constant for fluent queries to be used to add include statements. Specifies 3526 * the path value of "<b>ImagingStudy:referrer</b>". 3527 */ 3528 public static final ca.uhn.fhir.model.api.Include INCLUDE_REFERRER = new ca.uhn.fhir.model.api.Include("ImagingStudy:referrer").toLocked(); 3529 3530 /** 3531 * Search parameter: <b>series</b> 3532 * <p> 3533 * Description: <b>DICOM Series Instance UID for a series</b><br> 3534 * Type: <b>token</b><br> 3535 * Path: <b>ImagingStudy.series.uid</b><br> 3536 * </p> 3537 */ 3538 @SearchParamDefinition(name="series", path="ImagingStudy.series.uid", description="DICOM Series Instance UID for a series", type="token" ) 3539 public static final String SP_SERIES = "series"; 3540 /** 3541 * <b>Fluent Client</b> search parameter constant for <b>series</b> 3542 * <p> 3543 * Description: <b>DICOM Series Instance UID for a series</b><br> 3544 * Type: <b>token</b><br> 3545 * Path: <b>ImagingStudy.series.uid</b><br> 3546 * </p> 3547 */ 3548 public static final ca.uhn.fhir.rest.gclient.TokenClientParam SERIES = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SERIES); 3549 3550 /** 3551 * Search parameter: <b>started</b> 3552 * <p> 3553 * Description: <b>When the study was started</b><br> 3554 * Type: <b>date</b><br> 3555 * Path: <b>ImagingStudy.started</b><br> 3556 * </p> 3557 */ 3558 @SearchParamDefinition(name="started", path="ImagingStudy.started", description="When the study was started", type="date" ) 3559 public static final String SP_STARTED = "started"; 3560 /** 3561 * <b>Fluent Client</b> search parameter constant for <b>started</b> 3562 * <p> 3563 * Description: <b>When the study was started</b><br> 3564 * Type: <b>date</b><br> 3565 * Path: <b>ImagingStudy.started</b><br> 3566 * </p> 3567 */ 3568 public static final ca.uhn.fhir.rest.gclient.DateClientParam STARTED = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_STARTED); 3569 3570 /** 3571 * Search parameter: <b>status</b> 3572 * <p> 3573 * Description: <b>The status of the study</b><br> 3574 * Type: <b>token</b><br> 3575 * Path: <b>ImagingStudy.status</b><br> 3576 * </p> 3577 */ 3578 @SearchParamDefinition(name="status", path="ImagingStudy.status", description="The status of the study", type="token" ) 3579 public static final String SP_STATUS = "status"; 3580 /** 3581 * <b>Fluent Client</b> search parameter constant for <b>status</b> 3582 * <p> 3583 * Description: <b>The status of the study</b><br> 3584 * Type: <b>token</b><br> 3585 * Path: <b>ImagingStudy.status</b><br> 3586 * </p> 3587 */ 3588 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 3589 3590 /** 3591 * Search parameter: <b>subject</b> 3592 * <p> 3593 * Description: <b>Who the study is about</b><br> 3594 * Type: <b>reference</b><br> 3595 * Path: <b>ImagingStudy.subject</b><br> 3596 * </p> 3597 */ 3598 @SearchParamDefinition(name="subject", path="ImagingStudy.subject", description="Who the study is about", type="reference", target={Device.class, Group.class, Patient.class } ) 3599 public static final String SP_SUBJECT = "subject"; 3600 /** 3601 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 3602 * <p> 3603 * Description: <b>Who the study is about</b><br> 3604 * Type: <b>reference</b><br> 3605 * Path: <b>ImagingStudy.subject</b><br> 3606 * </p> 3607 */ 3608 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); 3609 3610/** 3611 * Constant for fluent queries to be used to add include statements. Specifies 3612 * the path value of "<b>ImagingStudy:subject</b>". 3613 */ 3614 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("ImagingStudy:subject").toLocked(); 3615 3616 /** 3617 * Search parameter: <b>identifier</b> 3618 * <p> 3619 * Description: <b>Multiple Resources: 3620 3621* [AllergyIntolerance](allergyintolerance.html): External ids for this item 3622* [CarePlan](careplan.html): External Ids for this plan 3623* [CareTeam](careteam.html): External Ids for this team 3624* [Composition](composition.html): Version-independent identifier for the Composition 3625* [Condition](condition.html): A unique identifier of the condition record 3626* [Consent](consent.html): Identifier for this record (external references) 3627* [DetectedIssue](detectedissue.html): Unique id for the detected issue 3628* [DeviceRequest](devicerequest.html): Business identifier for request/order 3629* [DiagnosticReport](diagnosticreport.html): An identifier for the report 3630* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents 3631* [DocumentReference](documentreference.html): Master Version Specific Identifier 3632* [Encounter](encounter.html): Identifier(s) by which this encounter is known 3633* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare 3634* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier 3635* [Goal](goal.html): External Ids for this goal 3636* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number 3637* [Immunization](immunization.html): Business identifier 3638* [List](list.html): Business identifier 3639* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier 3640* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier 3641* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier 3642* [MedicationUsage](medicationusage.html): Return statements with this external identifier 3643* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier 3644* [Observation](observation.html): The unique id for a particular observation 3645* [Procedure](procedure.html): A unique identifier for a procedure 3646* [RiskAssessment](riskassessment.html): Unique identifier for the assessment 3647* [ServiceRequest](servicerequest.html): Identifiers assigned to this order 3648* [SupplyDelivery](supplydelivery.html): External identifier 3649* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest 3650* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier 3651</b><br> 3652 * Type: <b>token</b><br> 3653 * 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> 3654 * </p> 3655 */ 3656 @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" ) 3657 public static final String SP_IDENTIFIER = "identifier"; 3658 /** 3659 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 3660 * <p> 3661 * Description: <b>Multiple Resources: 3662 3663* [AllergyIntolerance](allergyintolerance.html): External ids for this item 3664* [CarePlan](careplan.html): External Ids for this plan 3665* [CareTeam](careteam.html): External Ids for this team 3666* [Composition](composition.html): Version-independent identifier for the Composition 3667* [Condition](condition.html): A unique identifier of the condition record 3668* [Consent](consent.html): Identifier for this record (external references) 3669* [DetectedIssue](detectedissue.html): Unique id for the detected issue 3670* [DeviceRequest](devicerequest.html): Business identifier for request/order 3671* [DiagnosticReport](diagnosticreport.html): An identifier for the report 3672* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents 3673* [DocumentReference](documentreference.html): Master Version Specific Identifier 3674* [Encounter](encounter.html): Identifier(s) by which this encounter is known 3675* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare 3676* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier 3677* [Goal](goal.html): External Ids for this goal 3678* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number 3679* [Immunization](immunization.html): Business identifier 3680* [List](list.html): Business identifier 3681* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier 3682* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier 3683* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier 3684* [MedicationUsage](medicationusage.html): Return statements with this external identifier 3685* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier 3686* [Observation](observation.html): The unique id for a particular observation 3687* [Procedure](procedure.html): A unique identifier for a procedure 3688* [RiskAssessment](riskassessment.html): Unique identifier for the assessment 3689* [ServiceRequest](servicerequest.html): Identifiers assigned to this order 3690* [SupplyDelivery](supplydelivery.html): External identifier 3691* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest 3692* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier 3693</b><br> 3694 * Type: <b>token</b><br> 3695 * 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> 3696 * </p> 3697 */ 3698 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 3699 3700 /** 3701 * Search parameter: <b>patient</b> 3702 * <p> 3703 * Description: <b>Multiple Resources: 3704 3705* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for 3706* [CarePlan](careplan.html): Who the care plan is for 3707* [CareTeam](careteam.html): Who care team is for 3708* [ClinicalImpression](clinicalimpression.html): Patient or group assessed 3709* [Composition](composition.html): Who and/or what the composition is about 3710* [Condition](condition.html): Who has the condition? 3711* [Consent](consent.html): Who the consent applies to 3712* [DetectedIssue](detectedissue.html): Associated patient 3713* [DeviceRequest](devicerequest.html): Individual the service is ordered for 3714* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient 3715* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient 3716* [DocumentManifest](documentmanifest.html): The subject of the set of documents 3717* [DocumentReference](documentreference.html): Who/what is the subject of the document 3718* [Encounter](encounter.html): The patient or group present at the encounter 3719* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care 3720* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for 3721* [Flag](flag.html): The identity of a subject to list flags for 3722* [Goal](goal.html): Who this goal is intended for 3723* [ImagingStudy](imagingstudy.html): Who the study is about 3724* [Immunization](immunization.html): The patient for the vaccination record 3725* [List](list.html): If all resources have the same subject 3726* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for 3727* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for 3728* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient 3729* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. 3730* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement 3731* [Observation](observation.html): The subject that the observation is about (if patient) 3732* [Procedure](procedure.html): Search by subject - a patient 3733* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? 3734* [ServiceRequest](servicerequest.html): Search by subject - a patient 3735* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied 3736* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for 3737</b><br> 3738 * Type: <b>reference</b><br> 3739 * 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> 3740 * </p> 3741 */ 3742 @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", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) 3743 public static final String SP_PATIENT = "patient"; 3744 /** 3745 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 3746 * <p> 3747 * Description: <b>Multiple Resources: 3748 3749* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for 3750* [CarePlan](careplan.html): Who the care plan is for 3751* [CareTeam](careteam.html): Who care team is for 3752* [ClinicalImpression](clinicalimpression.html): Patient or group assessed 3753* [Composition](composition.html): Who and/or what the composition is about 3754* [Condition](condition.html): Who has the condition? 3755* [Consent](consent.html): Who the consent applies to 3756* [DetectedIssue](detectedissue.html): Associated patient 3757* [DeviceRequest](devicerequest.html): Individual the service is ordered for 3758* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient 3759* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient 3760* [DocumentManifest](documentmanifest.html): The subject of the set of documents 3761* [DocumentReference](documentreference.html): Who/what is the subject of the document 3762* [Encounter](encounter.html): The patient or group present at the encounter 3763* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care 3764* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for 3765* [Flag](flag.html): The identity of a subject to list flags for 3766* [Goal](goal.html): Who this goal is intended for 3767* [ImagingStudy](imagingstudy.html): Who the study is about 3768* [Immunization](immunization.html): The patient for the vaccination record 3769* [List](list.html): If all resources have the same subject 3770* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for 3771* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for 3772* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient 3773* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. 3774* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement 3775* [Observation](observation.html): The subject that the observation is about (if patient) 3776* [Procedure](procedure.html): Search by subject - a patient 3777* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? 3778* [ServiceRequest](servicerequest.html): Search by subject - a patient 3779* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied 3780* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for 3781</b><br> 3782 * Type: <b>reference</b><br> 3783 * 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> 3784 * </p> 3785 */ 3786 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 3787 3788/** 3789 * Constant for fluent queries to be used to add include statements. Specifies 3790 * the path value of "<b>ImagingStudy:patient</b>". 3791 */ 3792 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("ImagingStudy:patient").toLocked(); 3793 3794 3795} 3796