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 * Measurements and simple assertions made about a patient, device or other subject. 072 */ 073@ResourceDef(name="Observation", profile="http://hl7.org/fhir/StructureDefinition/Observation") 074public class Observation extends DomainResource { 075 076 @Block() 077 public static class ObservationReferenceRangeComponent extends BackboneElement implements IBaseBackboneElement { 078 /** 079 * The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3). 080 */ 081 @Child(name = "low", type = {Quantity.class}, order=1, min=0, max=1, modifier=false, summary=false) 082 @Description(shortDefinition="Low Range, if relevant", formalDefinition="The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3)." ) 083 protected Quantity low; 084 085 /** 086 * The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3). 087 */ 088 @Child(name = "high", type = {Quantity.class}, order=2, min=0, max=1, modifier=false, summary=false) 089 @Description(shortDefinition="High Range, if relevant", formalDefinition="The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3)." ) 090 protected Quantity high; 091 092 /** 093 * Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range. 094 */ 095 @Child(name = "type", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false) 096 @Description(shortDefinition="Reference range qualifier", formalDefinition="Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range." ) 097 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/referencerange-meaning") 098 protected CodeableConcept type; 099 100 /** 101 * Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an "AND" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used. 102 */ 103 @Child(name = "appliesTo", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 104 @Description(shortDefinition="Reference range population", formalDefinition="Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used." ) 105 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/referencerange-appliesto") 106 protected List<CodeableConcept> appliesTo; 107 108 /** 109 * The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so. 110 */ 111 @Child(name = "age", type = {Range.class}, order=5, min=0, max=1, modifier=false, summary=false) 112 @Description(shortDefinition="Applicable age range, if relevant", formalDefinition="The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so." ) 113 protected Range age; 114 115 /** 116 * Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of "Negative" or a list or table of "normals". 117 */ 118 @Child(name = "text", type = {StringType.class}, order=6, min=0, max=1, modifier=false, summary=false) 119 @Description(shortDefinition="Text based reference range in an observation", formalDefinition="Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\"." ) 120 protected StringType text; 121 122 private static final long serialVersionUID = -305128879L; 123 124 /** 125 * Constructor 126 */ 127 public ObservationReferenceRangeComponent() { 128 super(); 129 } 130 131 /** 132 * @return {@link #low} (The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).) 133 */ 134 public Quantity getLow() { 135 if (this.low == null) 136 if (Configuration.errorOnAutoCreate()) 137 throw new Error("Attempt to auto-create ObservationReferenceRangeComponent.low"); 138 else if (Configuration.doAutoCreate()) 139 this.low = new Quantity(); // cc 140 return this.low; 141 } 142 143 public boolean hasLow() { 144 return this.low != null && !this.low.isEmpty(); 145 } 146 147 /** 148 * @param value {@link #low} (The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).) 149 */ 150 public ObservationReferenceRangeComponent setLow(Quantity value) { 151 this.low = value; 152 return this; 153 } 154 155 /** 156 * @return {@link #high} (The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).) 157 */ 158 public Quantity getHigh() { 159 if (this.high == null) 160 if (Configuration.errorOnAutoCreate()) 161 throw new Error("Attempt to auto-create ObservationReferenceRangeComponent.high"); 162 else if (Configuration.doAutoCreate()) 163 this.high = new Quantity(); // cc 164 return this.high; 165 } 166 167 public boolean hasHigh() { 168 return this.high != null && !this.high.isEmpty(); 169 } 170 171 /** 172 * @param value {@link #high} (The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).) 173 */ 174 public ObservationReferenceRangeComponent setHigh(Quantity value) { 175 this.high = value; 176 return this; 177 } 178 179 /** 180 * @return {@link #type} (Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.) 181 */ 182 public CodeableConcept getType() { 183 if (this.type == null) 184 if (Configuration.errorOnAutoCreate()) 185 throw new Error("Attempt to auto-create ObservationReferenceRangeComponent.type"); 186 else if (Configuration.doAutoCreate()) 187 this.type = new CodeableConcept(); // cc 188 return this.type; 189 } 190 191 public boolean hasType() { 192 return this.type != null && !this.type.isEmpty(); 193 } 194 195 /** 196 * @param value {@link #type} (Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.) 197 */ 198 public ObservationReferenceRangeComponent setType(CodeableConcept value) { 199 this.type = value; 200 return this; 201 } 202 203 /** 204 * @return {@link #appliesTo} (Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an "AND" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.) 205 */ 206 public List<CodeableConcept> getAppliesTo() { 207 if (this.appliesTo == null) 208 this.appliesTo = new ArrayList<CodeableConcept>(); 209 return this.appliesTo; 210 } 211 212 /** 213 * @return Returns a reference to <code>this</code> for easy method chaining 214 */ 215 public ObservationReferenceRangeComponent setAppliesTo(List<CodeableConcept> theAppliesTo) { 216 this.appliesTo = theAppliesTo; 217 return this; 218 } 219 220 public boolean hasAppliesTo() { 221 if (this.appliesTo == null) 222 return false; 223 for (CodeableConcept item : this.appliesTo) 224 if (!item.isEmpty()) 225 return true; 226 return false; 227 } 228 229 public CodeableConcept addAppliesTo() { //3 230 CodeableConcept t = new CodeableConcept(); 231 if (this.appliesTo == null) 232 this.appliesTo = new ArrayList<CodeableConcept>(); 233 this.appliesTo.add(t); 234 return t; 235 } 236 237 public ObservationReferenceRangeComponent addAppliesTo(CodeableConcept t) { //3 238 if (t == null) 239 return this; 240 if (this.appliesTo == null) 241 this.appliesTo = new ArrayList<CodeableConcept>(); 242 this.appliesTo.add(t); 243 return this; 244 } 245 246 /** 247 * @return The first repetition of repeating field {@link #appliesTo}, creating it if it does not already exist {3} 248 */ 249 public CodeableConcept getAppliesToFirstRep() { 250 if (getAppliesTo().isEmpty()) { 251 addAppliesTo(); 252 } 253 return getAppliesTo().get(0); 254 } 255 256 /** 257 * @return {@link #age} (The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.) 258 */ 259 public Range getAge() { 260 if (this.age == null) 261 if (Configuration.errorOnAutoCreate()) 262 throw new Error("Attempt to auto-create ObservationReferenceRangeComponent.age"); 263 else if (Configuration.doAutoCreate()) 264 this.age = new Range(); // cc 265 return this.age; 266 } 267 268 public boolean hasAge() { 269 return this.age != null && !this.age.isEmpty(); 270 } 271 272 /** 273 * @param value {@link #age} (The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.) 274 */ 275 public ObservationReferenceRangeComponent setAge(Range value) { 276 this.age = value; 277 return this; 278 } 279 280 /** 281 * @return {@link #text} (Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of "Negative" or a list or table of "normals".). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value 282 */ 283 public StringType getTextElement() { 284 if (this.text == null) 285 if (Configuration.errorOnAutoCreate()) 286 throw new Error("Attempt to auto-create ObservationReferenceRangeComponent.text"); 287 else if (Configuration.doAutoCreate()) 288 this.text = new StringType(); // bb 289 return this.text; 290 } 291 292 public boolean hasTextElement() { 293 return this.text != null && !this.text.isEmpty(); 294 } 295 296 public boolean hasText() { 297 return this.text != null && !this.text.isEmpty(); 298 } 299 300 /** 301 * @param value {@link #text} (Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of "Negative" or a list or table of "normals".). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value 302 */ 303 public ObservationReferenceRangeComponent setTextElement(StringType value) { 304 this.text = value; 305 return this; 306 } 307 308 /** 309 * @return Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of "Negative" or a list or table of "normals". 310 */ 311 public String getText() { 312 return this.text == null ? null : this.text.getValue(); 313 } 314 315 /** 316 * @param value Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of "Negative" or a list or table of "normals". 317 */ 318 public ObservationReferenceRangeComponent setText(String value) { 319 if (Utilities.noString(value)) 320 this.text = null; 321 else { 322 if (this.text == null) 323 this.text = new StringType(); 324 this.text.setValue(value); 325 } 326 return this; 327 } 328 329 protected void listChildren(List<Property> children) { 330 super.listChildren(children); 331 children.add(new Property("low", "Quantity", "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).", 0, 1, low)); 332 children.add(new Property("high", "Quantity", "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).", 0, 1, high)); 333 children.add(new Property("type", "CodeableConcept", "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.", 0, 1, type)); 334 children.add(new Property("appliesTo", "CodeableConcept", "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.", 0, java.lang.Integer.MAX_VALUE, appliesTo)); 335 children.add(new Property("age", "Range", "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.", 0, 1, age)); 336 children.add(new Property("text", "string", "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".", 0, 1, text)); 337 } 338 339 @Override 340 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 341 switch (_hash) { 342 case 107348: /*low*/ return new Property("low", "Quantity", "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).", 0, 1, low); 343 case 3202466: /*high*/ return new Property("high", "Quantity", "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).", 0, 1, high); 344 case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.", 0, 1, type); 345 case -2089924569: /*appliesTo*/ return new Property("appliesTo", "CodeableConcept", "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.", 0, java.lang.Integer.MAX_VALUE, appliesTo); 346 case 96511: /*age*/ return new Property("age", "Range", "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.", 0, 1, age); 347 case 3556653: /*text*/ return new Property("text", "string", "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".", 0, 1, text); 348 default: return super.getNamedProperty(_hash, _name, _checkValid); 349 } 350 351 } 352 353 @Override 354 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 355 switch (hash) { 356 case 107348: /*low*/ return this.low == null ? new Base[0] : new Base[] {this.low}; // Quantity 357 case 3202466: /*high*/ return this.high == null ? new Base[0] : new Base[] {this.high}; // Quantity 358 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept 359 case -2089924569: /*appliesTo*/ return this.appliesTo == null ? new Base[0] : this.appliesTo.toArray(new Base[this.appliesTo.size()]); // CodeableConcept 360 case 96511: /*age*/ return this.age == null ? new Base[0] : new Base[] {this.age}; // Range 361 case 3556653: /*text*/ return this.text == null ? new Base[0] : new Base[] {this.text}; // StringType 362 default: return super.getProperty(hash, name, checkValid); 363 } 364 365 } 366 367 @Override 368 public Base setProperty(int hash, String name, Base value) throws FHIRException { 369 switch (hash) { 370 case 107348: // low 371 this.low = TypeConvertor.castToQuantity(value); // Quantity 372 return value; 373 case 3202466: // high 374 this.high = TypeConvertor.castToQuantity(value); // Quantity 375 return value; 376 case 3575610: // type 377 this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 378 return value; 379 case -2089924569: // appliesTo 380 this.getAppliesTo().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 381 return value; 382 case 96511: // age 383 this.age = TypeConvertor.castToRange(value); // Range 384 return value; 385 case 3556653: // text 386 this.text = TypeConvertor.castToString(value); // StringType 387 return value; 388 default: return super.setProperty(hash, name, value); 389 } 390 391 } 392 393 @Override 394 public Base setProperty(String name, Base value) throws FHIRException { 395 if (name.equals("low")) { 396 this.low = TypeConvertor.castToQuantity(value); // Quantity 397 } else if (name.equals("high")) { 398 this.high = TypeConvertor.castToQuantity(value); // Quantity 399 } else if (name.equals("type")) { 400 this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 401 } else if (name.equals("appliesTo")) { 402 this.getAppliesTo().add(TypeConvertor.castToCodeableConcept(value)); 403 } else if (name.equals("age")) { 404 this.age = TypeConvertor.castToRange(value); // Range 405 } else if (name.equals("text")) { 406 this.text = TypeConvertor.castToString(value); // StringType 407 } else 408 return super.setProperty(name, value); 409 return value; 410 } 411 412 @Override 413 public Base makeProperty(int hash, String name) throws FHIRException { 414 switch (hash) { 415 case 107348: return getLow(); 416 case 3202466: return getHigh(); 417 case 3575610: return getType(); 418 case -2089924569: return addAppliesTo(); 419 case 96511: return getAge(); 420 case 3556653: return getTextElement(); 421 default: return super.makeProperty(hash, name); 422 } 423 424 } 425 426 @Override 427 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 428 switch (hash) { 429 case 107348: /*low*/ return new String[] {"Quantity"}; 430 case 3202466: /*high*/ return new String[] {"Quantity"}; 431 case 3575610: /*type*/ return new String[] {"CodeableConcept"}; 432 case -2089924569: /*appliesTo*/ return new String[] {"CodeableConcept"}; 433 case 96511: /*age*/ return new String[] {"Range"}; 434 case 3556653: /*text*/ return new String[] {"string"}; 435 default: return super.getTypesForProperty(hash, name); 436 } 437 438 } 439 440 @Override 441 public Base addChild(String name) throws FHIRException { 442 if (name.equals("low")) { 443 this.low = new Quantity(); 444 return this.low; 445 } 446 else if (name.equals("high")) { 447 this.high = new Quantity(); 448 return this.high; 449 } 450 else if (name.equals("type")) { 451 this.type = new CodeableConcept(); 452 return this.type; 453 } 454 else if (name.equals("appliesTo")) { 455 return addAppliesTo(); 456 } 457 else if (name.equals("age")) { 458 this.age = new Range(); 459 return this.age; 460 } 461 else if (name.equals("text")) { 462 throw new FHIRException("Cannot call addChild on a primitive type Observation.referenceRange.text"); 463 } 464 else 465 return super.addChild(name); 466 } 467 468 public ObservationReferenceRangeComponent copy() { 469 ObservationReferenceRangeComponent dst = new ObservationReferenceRangeComponent(); 470 copyValues(dst); 471 return dst; 472 } 473 474 public void copyValues(ObservationReferenceRangeComponent dst) { 475 super.copyValues(dst); 476 dst.low = low == null ? null : low.copy(); 477 dst.high = high == null ? null : high.copy(); 478 dst.type = type == null ? null : type.copy(); 479 if (appliesTo != null) { 480 dst.appliesTo = new ArrayList<CodeableConcept>(); 481 for (CodeableConcept i : appliesTo) 482 dst.appliesTo.add(i.copy()); 483 }; 484 dst.age = age == null ? null : age.copy(); 485 dst.text = text == null ? null : text.copy(); 486 } 487 488 @Override 489 public boolean equalsDeep(Base other_) { 490 if (!super.equalsDeep(other_)) 491 return false; 492 if (!(other_ instanceof ObservationReferenceRangeComponent)) 493 return false; 494 ObservationReferenceRangeComponent o = (ObservationReferenceRangeComponent) other_; 495 return compareDeep(low, o.low, true) && compareDeep(high, o.high, true) && compareDeep(type, o.type, true) 496 && compareDeep(appliesTo, o.appliesTo, true) && compareDeep(age, o.age, true) && compareDeep(text, o.text, true) 497 ; 498 } 499 500 @Override 501 public boolean equalsShallow(Base other_) { 502 if (!super.equalsShallow(other_)) 503 return false; 504 if (!(other_ instanceof ObservationReferenceRangeComponent)) 505 return false; 506 ObservationReferenceRangeComponent o = (ObservationReferenceRangeComponent) other_; 507 return compareValues(text, o.text, true); 508 } 509 510 public boolean isEmpty() { 511 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(low, high, type, appliesTo 512 , age, text); 513 } 514 515 public String fhirType() { 516 return "Observation.referenceRange"; 517 518 } 519 520 } 521 522 @Block() 523 public static class ObservationComponentComponent extends BackboneElement implements IBaseBackboneElement { 524 /** 525 * Describes what was observed. Sometimes this is called the observation "code". 526 */ 527 @Child(name = "code", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=true) 528 @Description(shortDefinition="Type of component observation (code / type)", formalDefinition="Describes what was observed. Sometimes this is called the observation \"code\"." ) 529 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-codes") 530 protected CodeableConcept code; 531 532 /** 533 * The information determined as a result of making the observation, if the information has a simple value. 534 */ 535 @Child(name = "value", type = {Quantity.class, CodeableConcept.class, StringType.class, BooleanType.class, IntegerType.class, Range.class, Ratio.class, SampledData.class, TimeType.class, DateTimeType.class, Period.class, Attachment.class}, order=2, min=0, max=1, modifier=false, summary=true) 536 @Description(shortDefinition="Actual component result", formalDefinition="The information determined as a result of making the observation, if the information has a simple value." ) 537 protected DataType value; 538 539 /** 540 * Provides a reason why the expected value in the element Observation.component.value[x] is missing. 541 */ 542 @Child(name = "dataAbsentReason", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false) 543 @Description(shortDefinition="Why the component result is missing", formalDefinition="Provides a reason why the expected value in the element Observation.component.value[x] is missing." ) 544 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/data-absent-reason") 545 protected CodeableConcept dataAbsentReason; 546 547 /** 548 * A categorical assessment of an observation value. For example, high, low, normal. 549 */ 550 @Child(name = "interpretation", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 551 @Description(shortDefinition="High, low, normal, etc.", formalDefinition="A categorical assessment of an observation value. For example, high, low, normal." ) 552 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-interpretation") 553 protected List<CodeableConcept> interpretation; 554 555 /** 556 * Guidance on how to interpret the value by comparison to a normal or recommended range. 557 */ 558 @Child(name = "referenceRange", type = {ObservationReferenceRangeComponent.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 559 @Description(shortDefinition="Provides guide for interpretation of component result", formalDefinition="Guidance on how to interpret the value by comparison to a normal or recommended range." ) 560 protected List<ObservationReferenceRangeComponent> referenceRange; 561 562 private static final long serialVersionUID = -1771757751L; 563 564 /** 565 * Constructor 566 */ 567 public ObservationComponentComponent() { 568 super(); 569 } 570 571 /** 572 * Constructor 573 */ 574 public ObservationComponentComponent(CodeableConcept code) { 575 super(); 576 this.setCode(code); 577 } 578 579 /** 580 * @return {@link #code} (Describes what was observed. Sometimes this is called the observation "code".) 581 */ 582 public CodeableConcept getCode() { 583 if (this.code == null) 584 if (Configuration.errorOnAutoCreate()) 585 throw new Error("Attempt to auto-create ObservationComponentComponent.code"); 586 else if (Configuration.doAutoCreate()) 587 this.code = new CodeableConcept(); // cc 588 return this.code; 589 } 590 591 public boolean hasCode() { 592 return this.code != null && !this.code.isEmpty(); 593 } 594 595 /** 596 * @param value {@link #code} (Describes what was observed. Sometimes this is called the observation "code".) 597 */ 598 public ObservationComponentComponent setCode(CodeableConcept value) { 599 this.code = value; 600 return this; 601 } 602 603 /** 604 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 605 */ 606 public DataType getValue() { 607 return this.value; 608 } 609 610 /** 611 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 612 */ 613 public Quantity getValueQuantity() throws FHIRException { 614 if (this.value == null) 615 this.value = new Quantity(); 616 if (!(this.value instanceof Quantity)) 617 throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.value.getClass().getName()+" was encountered"); 618 return (Quantity) this.value; 619 } 620 621 public boolean hasValueQuantity() { 622 return this != null && this.value instanceof Quantity; 623 } 624 625 /** 626 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 627 */ 628 public CodeableConcept getValueCodeableConcept() throws FHIRException { 629 if (this.value == null) 630 this.value = new CodeableConcept(); 631 if (!(this.value instanceof CodeableConcept)) 632 throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.value.getClass().getName()+" was encountered"); 633 return (CodeableConcept) this.value; 634 } 635 636 public boolean hasValueCodeableConcept() { 637 return this != null && this.value instanceof CodeableConcept; 638 } 639 640 /** 641 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 642 */ 643 public StringType getValueStringType() throws FHIRException { 644 if (this.value == null) 645 this.value = new StringType(); 646 if (!(this.value instanceof StringType)) 647 throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.value.getClass().getName()+" was encountered"); 648 return (StringType) this.value; 649 } 650 651 public boolean hasValueStringType() { 652 return this != null && this.value instanceof StringType; 653 } 654 655 /** 656 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 657 */ 658 public BooleanType getValueBooleanType() throws FHIRException { 659 if (this.value == null) 660 this.value = new BooleanType(); 661 if (!(this.value instanceof BooleanType)) 662 throw new FHIRException("Type mismatch: the type BooleanType was expected, but "+this.value.getClass().getName()+" was encountered"); 663 return (BooleanType) this.value; 664 } 665 666 public boolean hasValueBooleanType() { 667 return this != null && this.value instanceof BooleanType; 668 } 669 670 /** 671 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 672 */ 673 public IntegerType getValueIntegerType() throws FHIRException { 674 if (this.value == null) 675 this.value = new IntegerType(); 676 if (!(this.value instanceof IntegerType)) 677 throw new FHIRException("Type mismatch: the type IntegerType was expected, but "+this.value.getClass().getName()+" was encountered"); 678 return (IntegerType) this.value; 679 } 680 681 public boolean hasValueIntegerType() { 682 return this != null && this.value instanceof IntegerType; 683 } 684 685 /** 686 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 687 */ 688 public Range getValueRange() throws FHIRException { 689 if (this.value == null) 690 this.value = new Range(); 691 if (!(this.value instanceof Range)) 692 throw new FHIRException("Type mismatch: the type Range was expected, but "+this.value.getClass().getName()+" was encountered"); 693 return (Range) this.value; 694 } 695 696 public boolean hasValueRange() { 697 return this != null && this.value instanceof Range; 698 } 699 700 /** 701 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 702 */ 703 public Ratio getValueRatio() throws FHIRException { 704 if (this.value == null) 705 this.value = new Ratio(); 706 if (!(this.value instanceof Ratio)) 707 throw new FHIRException("Type mismatch: the type Ratio was expected, but "+this.value.getClass().getName()+" was encountered"); 708 return (Ratio) this.value; 709 } 710 711 public boolean hasValueRatio() { 712 return this != null && this.value instanceof Ratio; 713 } 714 715 /** 716 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 717 */ 718 public SampledData getValueSampledData() throws FHIRException { 719 if (this.value == null) 720 this.value = new SampledData(); 721 if (!(this.value instanceof SampledData)) 722 throw new FHIRException("Type mismatch: the type SampledData was expected, but "+this.value.getClass().getName()+" was encountered"); 723 return (SampledData) this.value; 724 } 725 726 public boolean hasValueSampledData() { 727 return this != null && this.value instanceof SampledData; 728 } 729 730 /** 731 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 732 */ 733 public TimeType getValueTimeType() throws FHIRException { 734 if (this.value == null) 735 this.value = new TimeType(); 736 if (!(this.value instanceof TimeType)) 737 throw new FHIRException("Type mismatch: the type TimeType was expected, but "+this.value.getClass().getName()+" was encountered"); 738 return (TimeType) this.value; 739 } 740 741 public boolean hasValueTimeType() { 742 return this != null && this.value instanceof TimeType; 743 } 744 745 /** 746 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 747 */ 748 public DateTimeType getValueDateTimeType() throws FHIRException { 749 if (this.value == null) 750 this.value = new DateTimeType(); 751 if (!(this.value instanceof DateTimeType)) 752 throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.value.getClass().getName()+" was encountered"); 753 return (DateTimeType) this.value; 754 } 755 756 public boolean hasValueDateTimeType() { 757 return this != null && this.value instanceof DateTimeType; 758 } 759 760 /** 761 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 762 */ 763 public Period getValuePeriod() throws FHIRException { 764 if (this.value == null) 765 this.value = new Period(); 766 if (!(this.value instanceof Period)) 767 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.value.getClass().getName()+" was encountered"); 768 return (Period) this.value; 769 } 770 771 public boolean hasValuePeriod() { 772 return this != null && this.value instanceof Period; 773 } 774 775 /** 776 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 777 */ 778 public Attachment getValueAttachment() throws FHIRException { 779 if (this.value == null) 780 this.value = new Attachment(); 781 if (!(this.value instanceof Attachment)) 782 throw new FHIRException("Type mismatch: the type Attachment was expected, but "+this.value.getClass().getName()+" was encountered"); 783 return (Attachment) this.value; 784 } 785 786 public boolean hasValueAttachment() { 787 return this != null && this.value instanceof Attachment; 788 } 789 790 public boolean hasValue() { 791 return this.value != null && !this.value.isEmpty(); 792 } 793 794 /** 795 * @param value {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 796 */ 797 public ObservationComponentComponent setValue(DataType value) { 798 if (value != null && !(value instanceof Quantity || value instanceof CodeableConcept || value instanceof StringType || value instanceof BooleanType || value instanceof IntegerType || value instanceof Range || value instanceof Ratio || value instanceof SampledData || value instanceof TimeType || value instanceof DateTimeType || value instanceof Period || value instanceof Attachment)) 799 throw new Error("Not the right type for Observation.component.value[x]: "+value.fhirType()); 800 this.value = value; 801 return this; 802 } 803 804 /** 805 * @return {@link #dataAbsentReason} (Provides a reason why the expected value in the element Observation.component.value[x] is missing.) 806 */ 807 public CodeableConcept getDataAbsentReason() { 808 if (this.dataAbsentReason == null) 809 if (Configuration.errorOnAutoCreate()) 810 throw new Error("Attempt to auto-create ObservationComponentComponent.dataAbsentReason"); 811 else if (Configuration.doAutoCreate()) 812 this.dataAbsentReason = new CodeableConcept(); // cc 813 return this.dataAbsentReason; 814 } 815 816 public boolean hasDataAbsentReason() { 817 return this.dataAbsentReason != null && !this.dataAbsentReason.isEmpty(); 818 } 819 820 /** 821 * @param value {@link #dataAbsentReason} (Provides a reason why the expected value in the element Observation.component.value[x] is missing.) 822 */ 823 public ObservationComponentComponent setDataAbsentReason(CodeableConcept value) { 824 this.dataAbsentReason = value; 825 return this; 826 } 827 828 /** 829 * @return {@link #interpretation} (A categorical assessment of an observation value. For example, high, low, normal.) 830 */ 831 public List<CodeableConcept> getInterpretation() { 832 if (this.interpretation == null) 833 this.interpretation = new ArrayList<CodeableConcept>(); 834 return this.interpretation; 835 } 836 837 /** 838 * @return Returns a reference to <code>this</code> for easy method chaining 839 */ 840 public ObservationComponentComponent setInterpretation(List<CodeableConcept> theInterpretation) { 841 this.interpretation = theInterpretation; 842 return this; 843 } 844 845 public boolean hasInterpretation() { 846 if (this.interpretation == null) 847 return false; 848 for (CodeableConcept item : this.interpretation) 849 if (!item.isEmpty()) 850 return true; 851 return false; 852 } 853 854 public CodeableConcept addInterpretation() { //3 855 CodeableConcept t = new CodeableConcept(); 856 if (this.interpretation == null) 857 this.interpretation = new ArrayList<CodeableConcept>(); 858 this.interpretation.add(t); 859 return t; 860 } 861 862 public ObservationComponentComponent addInterpretation(CodeableConcept t) { //3 863 if (t == null) 864 return this; 865 if (this.interpretation == null) 866 this.interpretation = new ArrayList<CodeableConcept>(); 867 this.interpretation.add(t); 868 return this; 869 } 870 871 /** 872 * @return The first repetition of repeating field {@link #interpretation}, creating it if it does not already exist {3} 873 */ 874 public CodeableConcept getInterpretationFirstRep() { 875 if (getInterpretation().isEmpty()) { 876 addInterpretation(); 877 } 878 return getInterpretation().get(0); 879 } 880 881 /** 882 * @return {@link #referenceRange} (Guidance on how to interpret the value by comparison to a normal or recommended range.) 883 */ 884 public List<ObservationReferenceRangeComponent> getReferenceRange() { 885 if (this.referenceRange == null) 886 this.referenceRange = new ArrayList<ObservationReferenceRangeComponent>(); 887 return this.referenceRange; 888 } 889 890 /** 891 * @return Returns a reference to <code>this</code> for easy method chaining 892 */ 893 public ObservationComponentComponent setReferenceRange(List<ObservationReferenceRangeComponent> theReferenceRange) { 894 this.referenceRange = theReferenceRange; 895 return this; 896 } 897 898 public boolean hasReferenceRange() { 899 if (this.referenceRange == null) 900 return false; 901 for (ObservationReferenceRangeComponent item : this.referenceRange) 902 if (!item.isEmpty()) 903 return true; 904 return false; 905 } 906 907 public ObservationReferenceRangeComponent addReferenceRange() { //3 908 ObservationReferenceRangeComponent t = new ObservationReferenceRangeComponent(); 909 if (this.referenceRange == null) 910 this.referenceRange = new ArrayList<ObservationReferenceRangeComponent>(); 911 this.referenceRange.add(t); 912 return t; 913 } 914 915 public ObservationComponentComponent addReferenceRange(ObservationReferenceRangeComponent t) { //3 916 if (t == null) 917 return this; 918 if (this.referenceRange == null) 919 this.referenceRange = new ArrayList<ObservationReferenceRangeComponent>(); 920 this.referenceRange.add(t); 921 return this; 922 } 923 924 /** 925 * @return The first repetition of repeating field {@link #referenceRange}, creating it if it does not already exist {3} 926 */ 927 public ObservationReferenceRangeComponent getReferenceRangeFirstRep() { 928 if (getReferenceRange().isEmpty()) { 929 addReferenceRange(); 930 } 931 return getReferenceRange().get(0); 932 } 933 934 protected void listChildren(List<Property> children) { 935 super.listChildren(children); 936 children.add(new Property("code", "CodeableConcept", "Describes what was observed. Sometimes this is called the observation \"code\".", 0, 1, code)); 937 children.add(new Property("value[x]", "Quantity|CodeableConcept|string|boolean|integer|Range|Ratio|SampledData|time|dateTime|Period|Attachment", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value)); 938 children.add(new Property("dataAbsentReason", "CodeableConcept", "Provides a reason why the expected value in the element Observation.component.value[x] is missing.", 0, 1, dataAbsentReason)); 939 children.add(new Property("interpretation", "CodeableConcept", "A categorical assessment of an observation value. For example, high, low, normal.", 0, java.lang.Integer.MAX_VALUE, interpretation)); 940 children.add(new Property("referenceRange", "@Observation.referenceRange", "Guidance on how to interpret the value by comparison to a normal or recommended range.", 0, java.lang.Integer.MAX_VALUE, referenceRange)); 941 } 942 943 @Override 944 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 945 switch (_hash) { 946 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "Describes what was observed. Sometimes this is called the observation \"code\".", 0, 1, code); 947 case -1410166417: /*value[x]*/ return new Property("value[x]", "Quantity|CodeableConcept|string|boolean|integer|Range|Ratio|SampledData|time|dateTime|Period|Attachment", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 948 case 111972721: /*value*/ return new Property("value[x]", "Quantity|CodeableConcept|string|boolean|integer|Range|Ratio|SampledData|time|dateTime|Period|Attachment", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 949 case -2029823716: /*valueQuantity*/ return new Property("value[x]", "Quantity", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 950 case 924902896: /*valueCodeableConcept*/ return new Property("value[x]", "CodeableConcept", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 951 case -1424603934: /*valueString*/ return new Property("value[x]", "string", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 952 case 733421943: /*valueBoolean*/ return new Property("value[x]", "boolean", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 953 case -1668204915: /*valueInteger*/ return new Property("value[x]", "integer", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 954 case 2030761548: /*valueRange*/ return new Property("value[x]", "Range", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 955 case 2030767386: /*valueRatio*/ return new Property("value[x]", "Ratio", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 956 case -962229101: /*valueSampledData*/ return new Property("value[x]", "SampledData", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 957 case -765708322: /*valueTime*/ return new Property("value[x]", "time", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 958 case 1047929900: /*valueDateTime*/ return new Property("value[x]", "dateTime", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 959 case -1524344174: /*valuePeriod*/ return new Property("value[x]", "Period", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 960 case -475566732: /*valueAttachment*/ return new Property("value[x]", "Attachment", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 961 case 1034315687: /*dataAbsentReason*/ return new Property("dataAbsentReason", "CodeableConcept", "Provides a reason why the expected value in the element Observation.component.value[x] is missing.", 0, 1, dataAbsentReason); 962 case -297950712: /*interpretation*/ return new Property("interpretation", "CodeableConcept", "A categorical assessment of an observation value. For example, high, low, normal.", 0, java.lang.Integer.MAX_VALUE, interpretation); 963 case -1912545102: /*referenceRange*/ return new Property("referenceRange", "@Observation.referenceRange", "Guidance on how to interpret the value by comparison to a normal or recommended range.", 0, java.lang.Integer.MAX_VALUE, referenceRange); 964 default: return super.getNamedProperty(_hash, _name, _checkValid); 965 } 966 967 } 968 969 @Override 970 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 971 switch (hash) { 972 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 973 case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // DataType 974 case 1034315687: /*dataAbsentReason*/ return this.dataAbsentReason == null ? new Base[0] : new Base[] {this.dataAbsentReason}; // CodeableConcept 975 case -297950712: /*interpretation*/ return this.interpretation == null ? new Base[0] : this.interpretation.toArray(new Base[this.interpretation.size()]); // CodeableConcept 976 case -1912545102: /*referenceRange*/ return this.referenceRange == null ? new Base[0] : this.referenceRange.toArray(new Base[this.referenceRange.size()]); // ObservationReferenceRangeComponent 977 default: return super.getProperty(hash, name, checkValid); 978 } 979 980 } 981 982 @Override 983 public Base setProperty(int hash, String name, Base value) throws FHIRException { 984 switch (hash) { 985 case 3059181: // code 986 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 987 return value; 988 case 111972721: // value 989 this.value = TypeConvertor.castToType(value); // DataType 990 return value; 991 case 1034315687: // dataAbsentReason 992 this.dataAbsentReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 993 return value; 994 case -297950712: // interpretation 995 this.getInterpretation().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 996 return value; 997 case -1912545102: // referenceRange 998 this.getReferenceRange().add((ObservationReferenceRangeComponent) value); // ObservationReferenceRangeComponent 999 return value; 1000 default: return super.setProperty(hash, name, value); 1001 } 1002 1003 } 1004 1005 @Override 1006 public Base setProperty(String name, Base value) throws FHIRException { 1007 if (name.equals("code")) { 1008 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1009 } else if (name.equals("value[x]")) { 1010 this.value = TypeConvertor.castToType(value); // DataType 1011 } else if (name.equals("dataAbsentReason")) { 1012 this.dataAbsentReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1013 } else if (name.equals("interpretation")) { 1014 this.getInterpretation().add(TypeConvertor.castToCodeableConcept(value)); 1015 } else if (name.equals("referenceRange")) { 1016 this.getReferenceRange().add((ObservationReferenceRangeComponent) value); 1017 } else 1018 return super.setProperty(name, value); 1019 return value; 1020 } 1021 1022 @Override 1023 public Base makeProperty(int hash, String name) throws FHIRException { 1024 switch (hash) { 1025 case 3059181: return getCode(); 1026 case -1410166417: return getValue(); 1027 case 111972721: return getValue(); 1028 case 1034315687: return getDataAbsentReason(); 1029 case -297950712: return addInterpretation(); 1030 case -1912545102: return addReferenceRange(); 1031 default: return super.makeProperty(hash, name); 1032 } 1033 1034 } 1035 1036 @Override 1037 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1038 switch (hash) { 1039 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 1040 case 111972721: /*value*/ return new String[] {"Quantity", "CodeableConcept", "string", "boolean", "integer", "Range", "Ratio", "SampledData", "time", "dateTime", "Period", "Attachment"}; 1041 case 1034315687: /*dataAbsentReason*/ return new String[] {"CodeableConcept"}; 1042 case -297950712: /*interpretation*/ return new String[] {"CodeableConcept"}; 1043 case -1912545102: /*referenceRange*/ return new String[] {"@Observation.referenceRange"}; 1044 default: return super.getTypesForProperty(hash, name); 1045 } 1046 1047 } 1048 1049 @Override 1050 public Base addChild(String name) throws FHIRException { 1051 if (name.equals("code")) { 1052 this.code = new CodeableConcept(); 1053 return this.code; 1054 } 1055 else if (name.equals("valueQuantity")) { 1056 this.value = new Quantity(); 1057 return this.value; 1058 } 1059 else if (name.equals("valueCodeableConcept")) { 1060 this.value = new CodeableConcept(); 1061 return this.value; 1062 } 1063 else if (name.equals("valueString")) { 1064 this.value = new StringType(); 1065 return this.value; 1066 } 1067 else if (name.equals("valueBoolean")) { 1068 this.value = new BooleanType(); 1069 return this.value; 1070 } 1071 else if (name.equals("valueInteger")) { 1072 this.value = new IntegerType(); 1073 return this.value; 1074 } 1075 else if (name.equals("valueRange")) { 1076 this.value = new Range(); 1077 return this.value; 1078 } 1079 else if (name.equals("valueRatio")) { 1080 this.value = new Ratio(); 1081 return this.value; 1082 } 1083 else if (name.equals("valueSampledData")) { 1084 this.value = new SampledData(); 1085 return this.value; 1086 } 1087 else if (name.equals("valueTime")) { 1088 this.value = new TimeType(); 1089 return this.value; 1090 } 1091 else if (name.equals("valueDateTime")) { 1092 this.value = new DateTimeType(); 1093 return this.value; 1094 } 1095 else if (name.equals("valuePeriod")) { 1096 this.value = new Period(); 1097 return this.value; 1098 } 1099 else if (name.equals("valueAttachment")) { 1100 this.value = new Attachment(); 1101 return this.value; 1102 } 1103 else if (name.equals("dataAbsentReason")) { 1104 this.dataAbsentReason = new CodeableConcept(); 1105 return this.dataAbsentReason; 1106 } 1107 else if (name.equals("interpretation")) { 1108 return addInterpretation(); 1109 } 1110 else if (name.equals("referenceRange")) { 1111 return addReferenceRange(); 1112 } 1113 else 1114 return super.addChild(name); 1115 } 1116 1117 public ObservationComponentComponent copy() { 1118 ObservationComponentComponent dst = new ObservationComponentComponent(); 1119 copyValues(dst); 1120 return dst; 1121 } 1122 1123 public void copyValues(ObservationComponentComponent dst) { 1124 super.copyValues(dst); 1125 dst.code = code == null ? null : code.copy(); 1126 dst.value = value == null ? null : value.copy(); 1127 dst.dataAbsentReason = dataAbsentReason == null ? null : dataAbsentReason.copy(); 1128 if (interpretation != null) { 1129 dst.interpretation = new ArrayList<CodeableConcept>(); 1130 for (CodeableConcept i : interpretation) 1131 dst.interpretation.add(i.copy()); 1132 }; 1133 if (referenceRange != null) { 1134 dst.referenceRange = new ArrayList<ObservationReferenceRangeComponent>(); 1135 for (ObservationReferenceRangeComponent i : referenceRange) 1136 dst.referenceRange.add(i.copy()); 1137 }; 1138 } 1139 1140 @Override 1141 public boolean equalsDeep(Base other_) { 1142 if (!super.equalsDeep(other_)) 1143 return false; 1144 if (!(other_ instanceof ObservationComponentComponent)) 1145 return false; 1146 ObservationComponentComponent o = (ObservationComponentComponent) other_; 1147 return compareDeep(code, o.code, true) && compareDeep(value, o.value, true) && compareDeep(dataAbsentReason, o.dataAbsentReason, true) 1148 && compareDeep(interpretation, o.interpretation, true) && compareDeep(referenceRange, o.referenceRange, true) 1149 ; 1150 } 1151 1152 @Override 1153 public boolean equalsShallow(Base other_) { 1154 if (!super.equalsShallow(other_)) 1155 return false; 1156 if (!(other_ instanceof ObservationComponentComponent)) 1157 return false; 1158 ObservationComponentComponent o = (ObservationComponentComponent) other_; 1159 return true; 1160 } 1161 1162 public boolean isEmpty() { 1163 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, value, dataAbsentReason 1164 , interpretation, referenceRange); 1165 } 1166 1167 public String fhirType() { 1168 return "Observation.component"; 1169 1170 } 1171 1172 } 1173 1174 /** 1175 * A unique identifier assigned to this observation. 1176 */ 1177 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1178 @Description(shortDefinition="Business Identifier for observation", formalDefinition="A unique identifier assigned to this observation." ) 1179 protected List<Identifier> identifier; 1180 1181 /** 1182 * A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed. 1183 */ 1184 @Child(name = "basedOn", type = {CarePlan.class, DeviceRequest.class, ImmunizationRecommendation.class, MedicationRequest.class, NutritionOrder.class, ServiceRequest.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1185 @Description(shortDefinition="Fulfills plan, proposal or order", formalDefinition="A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed." ) 1186 protected List<Reference> basedOn; 1187 1188 /** 1189 * A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure. 1190 */ 1191 @Child(name = "partOf", type = {MedicationAdministration.class, MedicationDispense.class, MedicationUsage.class, Procedure.class, Immunization.class, ImagingStudy.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1192 @Description(shortDefinition="Part of referenced event", formalDefinition="A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure." ) 1193 protected List<Reference> partOf; 1194 1195 /** 1196 * The status of the result value. 1197 */ 1198 @Child(name = "status", type = {CodeType.class}, order=3, min=1, max=1, modifier=true, summary=true) 1199 @Description(shortDefinition="registered | preliminary | final | amended +", formalDefinition="The status of the result value." ) 1200 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-status") 1201 protected Enumeration<ObservationStatus> status; 1202 1203 /** 1204 * A code that classifies the general type of observation being made. 1205 */ 1206 @Child(name = "category", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1207 @Description(shortDefinition="Classification of type of observation", formalDefinition="A code that classifies the general type of observation being made." ) 1208 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-category") 1209 protected List<CodeableConcept> category; 1210 1211 /** 1212 * Describes what was observed. Sometimes this is called the observation "name". 1213 */ 1214 @Child(name = "code", type = {CodeableConcept.class}, order=5, min=1, max=1, modifier=false, summary=true) 1215 @Description(shortDefinition="Type of observation (code / type)", formalDefinition="Describes what was observed. Sometimes this is called the observation \"name\"." ) 1216 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-codes") 1217 protected CodeableConcept code; 1218 1219 /** 1220 * The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation. 1221 */ 1222 @Child(name = "subject", type = {Patient.class, Group.class, Device.class, Location.class}, order=6, min=0, max=1, modifier=false, summary=true) 1223 @Description(shortDefinition="Who and/or what the observation is about", formalDefinition="The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation." ) 1224 protected Reference subject; 1225 1226 /** 1227 * The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus. 1228 */ 1229 @Child(name = "focus", type = {Reference.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1230 @Description(shortDefinition="What the observation is about, when it is not about the subject of record", formalDefinition="The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus." ) 1231 protected List<Reference> focus; 1232 1233 /** 1234 * The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made. 1235 */ 1236 @Child(name = "encounter", type = {Encounter.class}, order=8, min=0, max=1, modifier=false, summary=true) 1237 @Description(shortDefinition="Healthcare event during which this observation is made", formalDefinition="The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made." ) 1238 protected Reference encounter; 1239 1240 /** 1241 * The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the "physiologically relevant time". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself. 1242 */ 1243 @Child(name = "effective", type = {DateTimeType.class, Period.class, Timing.class, InstantType.class}, order=9, min=0, max=1, modifier=false, summary=true) 1244 @Description(shortDefinition="Clinically relevant time/time-period for observation", formalDefinition="The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself." ) 1245 protected DataType effective; 1246 1247 /** 1248 * The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified. 1249 */ 1250 @Child(name = "issued", type = {InstantType.class}, order=10, min=0, max=1, modifier=false, summary=true) 1251 @Description(shortDefinition="Date/Time this version was made available", formalDefinition="The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified." ) 1252 protected InstantType issued; 1253 1254 /** 1255 * Who was responsible for asserting the observed value as "true". 1256 */ 1257 @Child(name = "performer", type = {Practitioner.class, PractitionerRole.class, Organization.class, CareTeam.class, Patient.class, RelatedPerson.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1258 @Description(shortDefinition="Who is responsible for the observation", formalDefinition="Who was responsible for asserting the observed value as \"true\"." ) 1259 protected List<Reference> performer; 1260 1261 /** 1262 * The information determined as a result of making the observation, if the information has a simple value. 1263 */ 1264 @Child(name = "value", type = {Quantity.class, CodeableConcept.class, StringType.class, BooleanType.class, IntegerType.class, Range.class, Ratio.class, SampledData.class, TimeType.class, DateTimeType.class, Period.class, Attachment.class}, order=12, min=0, max=1, modifier=false, summary=true) 1265 @Description(shortDefinition="Actual result", formalDefinition="The information determined as a result of making the observation, if the information has a simple value." ) 1266 protected DataType value; 1267 1268 /** 1269 * Provides a reason why the expected value in the element Observation.value[x] is missing. 1270 */ 1271 @Child(name = "dataAbsentReason", type = {CodeableConcept.class}, order=13, min=0, max=1, modifier=false, summary=false) 1272 @Description(shortDefinition="Why the result is missing", formalDefinition="Provides a reason why the expected value in the element Observation.value[x] is missing." ) 1273 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/data-absent-reason") 1274 protected CodeableConcept dataAbsentReason; 1275 1276 /** 1277 * A categorical assessment of an observation value. For example, high, low, normal. 1278 */ 1279 @Child(name = "interpretation", type = {CodeableConcept.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1280 @Description(shortDefinition="High, low, normal, etc.", formalDefinition="A categorical assessment of an observation value. For example, high, low, normal." ) 1281 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-interpretation") 1282 protected List<CodeableConcept> interpretation; 1283 1284 /** 1285 * Comments about the observation or the results. 1286 */ 1287 @Child(name = "note", type = {Annotation.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1288 @Description(shortDefinition="Comments about the observation", formalDefinition="Comments about the observation or the results." ) 1289 protected List<Annotation> note; 1290 1291 /** 1292 * Indicates the site on the subject's body where the observation was made (i.e. the target site). 1293 */ 1294 @Child(name = "bodySite", type = {CodeableConcept.class}, order=16, min=0, max=1, modifier=false, summary=false) 1295 @Description(shortDefinition="Observed body part", formalDefinition="Indicates the site on the subject's body where the observation was made (i.e. the target site)." ) 1296 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/body-site") 1297 protected CodeableConcept bodySite; 1298 1299 /** 1300 * Indicates the mechanism used to perform the observation. 1301 */ 1302 @Child(name = "method", type = {CodeableConcept.class}, order=17, min=0, max=1, modifier=false, summary=false) 1303 @Description(shortDefinition="How it was done", formalDefinition="Indicates the mechanism used to perform the observation." ) 1304 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-methods") 1305 protected CodeableConcept method; 1306 1307 /** 1308 * The specimen that was used when this observation was made. 1309 */ 1310 @Child(name = "specimen", type = {Specimen.class}, order=18, min=0, max=1, modifier=false, summary=false) 1311 @Description(shortDefinition="Specimen used for this observation", formalDefinition="The specimen that was used when this observation was made." ) 1312 protected Reference specimen; 1313 1314 /** 1315 * The device used to generate the observation data. 1316 */ 1317 @Child(name = "device", type = {Device.class, DeviceMetric.class}, order=19, min=0, max=1, modifier=false, summary=false) 1318 @Description(shortDefinition="(Measurement) Device", formalDefinition="The device used to generate the observation data." ) 1319 protected Reference device; 1320 1321 /** 1322 * Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an "OR". In other words, to represent two distinct target populations, two `referenceRange` elements would be used. 1323 */ 1324 @Child(name = "referenceRange", type = {}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1325 @Description(shortDefinition="Provides guide for interpretation", formalDefinition="Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used." ) 1326 protected List<ObservationReferenceRangeComponent> referenceRange; 1327 1328 /** 1329 * This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group. 1330 */ 1331 @Child(name = "hasMember", type = {Observation.class, QuestionnaireResponse.class, MolecularSequence.class}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1332 @Description(shortDefinition="Related resource that belongs to the Observation group", formalDefinition="This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group." ) 1333 protected List<Reference> hasMember; 1334 1335 /** 1336 * The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image. 1337 */ 1338 @Child(name = "derivedFrom", type = {DocumentReference.class, ImagingStudy.class, QuestionnaireResponse.class, Observation.class, MolecularSequence.class}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1339 @Description(shortDefinition="Related measurements the observation is made from", formalDefinition="The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image." ) 1340 protected List<Reference> derivedFrom; 1341 1342 /** 1343 * Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations. 1344 */ 1345 @Child(name = "component", type = {}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1346 @Description(shortDefinition="Component results", formalDefinition="Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations." ) 1347 protected List<ObservationComponentComponent> component; 1348 1349 private static final long serialVersionUID = 141411618L; 1350 1351 /** 1352 * Constructor 1353 */ 1354 public Observation() { 1355 super(); 1356 } 1357 1358 /** 1359 * Constructor 1360 */ 1361 public Observation(ObservationStatus status, CodeableConcept code) { 1362 super(); 1363 this.setStatus(status); 1364 this.setCode(code); 1365 } 1366 1367 /** 1368 * @return {@link #identifier} (A unique identifier assigned to this observation.) 1369 */ 1370 public List<Identifier> getIdentifier() { 1371 if (this.identifier == null) 1372 this.identifier = new ArrayList<Identifier>(); 1373 return this.identifier; 1374 } 1375 1376 /** 1377 * @return Returns a reference to <code>this</code> for easy method chaining 1378 */ 1379 public Observation setIdentifier(List<Identifier> theIdentifier) { 1380 this.identifier = theIdentifier; 1381 return this; 1382 } 1383 1384 public boolean hasIdentifier() { 1385 if (this.identifier == null) 1386 return false; 1387 for (Identifier item : this.identifier) 1388 if (!item.isEmpty()) 1389 return true; 1390 return false; 1391 } 1392 1393 public Identifier addIdentifier() { //3 1394 Identifier t = new Identifier(); 1395 if (this.identifier == null) 1396 this.identifier = new ArrayList<Identifier>(); 1397 this.identifier.add(t); 1398 return t; 1399 } 1400 1401 public Observation addIdentifier(Identifier t) { //3 1402 if (t == null) 1403 return this; 1404 if (this.identifier == null) 1405 this.identifier = new ArrayList<Identifier>(); 1406 this.identifier.add(t); 1407 return this; 1408 } 1409 1410 /** 1411 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} 1412 */ 1413 public Identifier getIdentifierFirstRep() { 1414 if (getIdentifier().isEmpty()) { 1415 addIdentifier(); 1416 } 1417 return getIdentifier().get(0); 1418 } 1419 1420 /** 1421 * @return {@link #basedOn} (A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.) 1422 */ 1423 public List<Reference> getBasedOn() { 1424 if (this.basedOn == null) 1425 this.basedOn = new ArrayList<Reference>(); 1426 return this.basedOn; 1427 } 1428 1429 /** 1430 * @return Returns a reference to <code>this</code> for easy method chaining 1431 */ 1432 public Observation setBasedOn(List<Reference> theBasedOn) { 1433 this.basedOn = theBasedOn; 1434 return this; 1435 } 1436 1437 public boolean hasBasedOn() { 1438 if (this.basedOn == null) 1439 return false; 1440 for (Reference item : this.basedOn) 1441 if (!item.isEmpty()) 1442 return true; 1443 return false; 1444 } 1445 1446 public Reference addBasedOn() { //3 1447 Reference t = new Reference(); 1448 if (this.basedOn == null) 1449 this.basedOn = new ArrayList<Reference>(); 1450 this.basedOn.add(t); 1451 return t; 1452 } 1453 1454 public Observation addBasedOn(Reference t) { //3 1455 if (t == null) 1456 return this; 1457 if (this.basedOn == null) 1458 this.basedOn = new ArrayList<Reference>(); 1459 this.basedOn.add(t); 1460 return this; 1461 } 1462 1463 /** 1464 * @return The first repetition of repeating field {@link #basedOn}, creating it if it does not already exist {3} 1465 */ 1466 public Reference getBasedOnFirstRep() { 1467 if (getBasedOn().isEmpty()) { 1468 addBasedOn(); 1469 } 1470 return getBasedOn().get(0); 1471 } 1472 1473 /** 1474 * @return {@link #partOf} (A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.) 1475 */ 1476 public List<Reference> getPartOf() { 1477 if (this.partOf == null) 1478 this.partOf = new ArrayList<Reference>(); 1479 return this.partOf; 1480 } 1481 1482 /** 1483 * @return Returns a reference to <code>this</code> for easy method chaining 1484 */ 1485 public Observation setPartOf(List<Reference> thePartOf) { 1486 this.partOf = thePartOf; 1487 return this; 1488 } 1489 1490 public boolean hasPartOf() { 1491 if (this.partOf == null) 1492 return false; 1493 for (Reference item : this.partOf) 1494 if (!item.isEmpty()) 1495 return true; 1496 return false; 1497 } 1498 1499 public Reference addPartOf() { //3 1500 Reference t = new Reference(); 1501 if (this.partOf == null) 1502 this.partOf = new ArrayList<Reference>(); 1503 this.partOf.add(t); 1504 return t; 1505 } 1506 1507 public Observation addPartOf(Reference t) { //3 1508 if (t == null) 1509 return this; 1510 if (this.partOf == null) 1511 this.partOf = new ArrayList<Reference>(); 1512 this.partOf.add(t); 1513 return this; 1514 } 1515 1516 /** 1517 * @return The first repetition of repeating field {@link #partOf}, creating it if it does not already exist {3} 1518 */ 1519 public Reference getPartOfFirstRep() { 1520 if (getPartOf().isEmpty()) { 1521 addPartOf(); 1522 } 1523 return getPartOf().get(0); 1524 } 1525 1526 /** 1527 * @return {@link #status} (The status of the result value.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 1528 */ 1529 public Enumeration<ObservationStatus> getStatusElement() { 1530 if (this.status == null) 1531 if (Configuration.errorOnAutoCreate()) 1532 throw new Error("Attempt to auto-create Observation.status"); 1533 else if (Configuration.doAutoCreate()) 1534 this.status = new Enumeration<ObservationStatus>(new ObservationStatusEnumFactory()); // bb 1535 return this.status; 1536 } 1537 1538 public boolean hasStatusElement() { 1539 return this.status != null && !this.status.isEmpty(); 1540 } 1541 1542 public boolean hasStatus() { 1543 return this.status != null && !this.status.isEmpty(); 1544 } 1545 1546 /** 1547 * @param value {@link #status} (The status of the result value.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 1548 */ 1549 public Observation setStatusElement(Enumeration<ObservationStatus> value) { 1550 this.status = value; 1551 return this; 1552 } 1553 1554 /** 1555 * @return The status of the result value. 1556 */ 1557 public ObservationStatus getStatus() { 1558 return this.status == null ? null : this.status.getValue(); 1559 } 1560 1561 /** 1562 * @param value The status of the result value. 1563 */ 1564 public Observation setStatus(ObservationStatus value) { 1565 if (this.status == null) 1566 this.status = new Enumeration<ObservationStatus>(new ObservationStatusEnumFactory()); 1567 this.status.setValue(value); 1568 return this; 1569 } 1570 1571 /** 1572 * @return {@link #category} (A code that classifies the general type of observation being made.) 1573 */ 1574 public List<CodeableConcept> getCategory() { 1575 if (this.category == null) 1576 this.category = new ArrayList<CodeableConcept>(); 1577 return this.category; 1578 } 1579 1580 /** 1581 * @return Returns a reference to <code>this</code> for easy method chaining 1582 */ 1583 public Observation setCategory(List<CodeableConcept> theCategory) { 1584 this.category = theCategory; 1585 return this; 1586 } 1587 1588 public boolean hasCategory() { 1589 if (this.category == null) 1590 return false; 1591 for (CodeableConcept item : this.category) 1592 if (!item.isEmpty()) 1593 return true; 1594 return false; 1595 } 1596 1597 public CodeableConcept addCategory() { //3 1598 CodeableConcept t = new CodeableConcept(); 1599 if (this.category == null) 1600 this.category = new ArrayList<CodeableConcept>(); 1601 this.category.add(t); 1602 return t; 1603 } 1604 1605 public Observation addCategory(CodeableConcept t) { //3 1606 if (t == null) 1607 return this; 1608 if (this.category == null) 1609 this.category = new ArrayList<CodeableConcept>(); 1610 this.category.add(t); 1611 return this; 1612 } 1613 1614 /** 1615 * @return The first repetition of repeating field {@link #category}, creating it if it does not already exist {3} 1616 */ 1617 public CodeableConcept getCategoryFirstRep() { 1618 if (getCategory().isEmpty()) { 1619 addCategory(); 1620 } 1621 return getCategory().get(0); 1622 } 1623 1624 /** 1625 * @return {@link #code} (Describes what was observed. Sometimes this is called the observation "name".) 1626 */ 1627 public CodeableConcept getCode() { 1628 if (this.code == null) 1629 if (Configuration.errorOnAutoCreate()) 1630 throw new Error("Attempt to auto-create Observation.code"); 1631 else if (Configuration.doAutoCreate()) 1632 this.code = new CodeableConcept(); // cc 1633 return this.code; 1634 } 1635 1636 public boolean hasCode() { 1637 return this.code != null && !this.code.isEmpty(); 1638 } 1639 1640 /** 1641 * @param value {@link #code} (Describes what was observed. Sometimes this is called the observation "name".) 1642 */ 1643 public Observation setCode(CodeableConcept value) { 1644 this.code = value; 1645 return this; 1646 } 1647 1648 /** 1649 * @return {@link #subject} (The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.) 1650 */ 1651 public Reference getSubject() { 1652 if (this.subject == null) 1653 if (Configuration.errorOnAutoCreate()) 1654 throw new Error("Attempt to auto-create Observation.subject"); 1655 else if (Configuration.doAutoCreate()) 1656 this.subject = new Reference(); // cc 1657 return this.subject; 1658 } 1659 1660 public boolean hasSubject() { 1661 return this.subject != null && !this.subject.isEmpty(); 1662 } 1663 1664 /** 1665 * @param value {@link #subject} (The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.) 1666 */ 1667 public Observation setSubject(Reference value) { 1668 this.subject = value; 1669 return this; 1670 } 1671 1672 /** 1673 * @return {@link #focus} (The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.) 1674 */ 1675 public List<Reference> getFocus() { 1676 if (this.focus == null) 1677 this.focus = new ArrayList<Reference>(); 1678 return this.focus; 1679 } 1680 1681 /** 1682 * @return Returns a reference to <code>this</code> for easy method chaining 1683 */ 1684 public Observation setFocus(List<Reference> theFocus) { 1685 this.focus = theFocus; 1686 return this; 1687 } 1688 1689 public boolean hasFocus() { 1690 if (this.focus == null) 1691 return false; 1692 for (Reference item : this.focus) 1693 if (!item.isEmpty()) 1694 return true; 1695 return false; 1696 } 1697 1698 public Reference addFocus() { //3 1699 Reference t = new Reference(); 1700 if (this.focus == null) 1701 this.focus = new ArrayList<Reference>(); 1702 this.focus.add(t); 1703 return t; 1704 } 1705 1706 public Observation addFocus(Reference t) { //3 1707 if (t == null) 1708 return this; 1709 if (this.focus == null) 1710 this.focus = new ArrayList<Reference>(); 1711 this.focus.add(t); 1712 return this; 1713 } 1714 1715 /** 1716 * @return The first repetition of repeating field {@link #focus}, creating it if it does not already exist {3} 1717 */ 1718 public Reference getFocusFirstRep() { 1719 if (getFocus().isEmpty()) { 1720 addFocus(); 1721 } 1722 return getFocus().get(0); 1723 } 1724 1725 /** 1726 * @return {@link #encounter} (The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.) 1727 */ 1728 public Reference getEncounter() { 1729 if (this.encounter == null) 1730 if (Configuration.errorOnAutoCreate()) 1731 throw new Error("Attempt to auto-create Observation.encounter"); 1732 else if (Configuration.doAutoCreate()) 1733 this.encounter = new Reference(); // cc 1734 return this.encounter; 1735 } 1736 1737 public boolean hasEncounter() { 1738 return this.encounter != null && !this.encounter.isEmpty(); 1739 } 1740 1741 /** 1742 * @param value {@link #encounter} (The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.) 1743 */ 1744 public Observation setEncounter(Reference value) { 1745 this.encounter = value; 1746 return this; 1747 } 1748 1749 /** 1750 * @return {@link #effective} (The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the "physiologically relevant time". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.) 1751 */ 1752 public DataType getEffective() { 1753 return this.effective; 1754 } 1755 1756 /** 1757 * @return {@link #effective} (The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the "physiologically relevant time". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.) 1758 */ 1759 public DateTimeType getEffectiveDateTimeType() throws FHIRException { 1760 if (this.effective == null) 1761 this.effective = new DateTimeType(); 1762 if (!(this.effective instanceof DateTimeType)) 1763 throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.effective.getClass().getName()+" was encountered"); 1764 return (DateTimeType) this.effective; 1765 } 1766 1767 public boolean hasEffectiveDateTimeType() { 1768 return this != null && this.effective instanceof DateTimeType; 1769 } 1770 1771 /** 1772 * @return {@link #effective} (The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the "physiologically relevant time". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.) 1773 */ 1774 public Period getEffectivePeriod() throws FHIRException { 1775 if (this.effective == null) 1776 this.effective = new Period(); 1777 if (!(this.effective instanceof Period)) 1778 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.effective.getClass().getName()+" was encountered"); 1779 return (Period) this.effective; 1780 } 1781 1782 public boolean hasEffectivePeriod() { 1783 return this != null && this.effective instanceof Period; 1784 } 1785 1786 /** 1787 * @return {@link #effective} (The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the "physiologically relevant time". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.) 1788 */ 1789 public Timing getEffectiveTiming() throws FHIRException { 1790 if (this.effective == null) 1791 this.effective = new Timing(); 1792 if (!(this.effective instanceof Timing)) 1793 throw new FHIRException("Type mismatch: the type Timing was expected, but "+this.effective.getClass().getName()+" was encountered"); 1794 return (Timing) this.effective; 1795 } 1796 1797 public boolean hasEffectiveTiming() { 1798 return this != null && this.effective instanceof Timing; 1799 } 1800 1801 /** 1802 * @return {@link #effective} (The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the "physiologically relevant time". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.) 1803 */ 1804 public InstantType getEffectiveInstantType() throws FHIRException { 1805 if (this.effective == null) 1806 this.effective = new InstantType(); 1807 if (!(this.effective instanceof InstantType)) 1808 throw new FHIRException("Type mismatch: the type InstantType was expected, but "+this.effective.getClass().getName()+" was encountered"); 1809 return (InstantType) this.effective; 1810 } 1811 1812 public boolean hasEffectiveInstantType() { 1813 return this != null && this.effective instanceof InstantType; 1814 } 1815 1816 public boolean hasEffective() { 1817 return this.effective != null && !this.effective.isEmpty(); 1818 } 1819 1820 /** 1821 * @param value {@link #effective} (The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the "physiologically relevant time". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.) 1822 */ 1823 public Observation setEffective(DataType value) { 1824 if (value != null && !(value instanceof DateTimeType || value instanceof Period || value instanceof Timing || value instanceof InstantType)) 1825 throw new Error("Not the right type for Observation.effective[x]: "+value.fhirType()); 1826 this.effective = value; 1827 return this; 1828 } 1829 1830 /** 1831 * @return {@link #issued} (The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.). This is the underlying object with id, value and extensions. The accessor "getIssued" gives direct access to the value 1832 */ 1833 public InstantType getIssuedElement() { 1834 if (this.issued == null) 1835 if (Configuration.errorOnAutoCreate()) 1836 throw new Error("Attempt to auto-create Observation.issued"); 1837 else if (Configuration.doAutoCreate()) 1838 this.issued = new InstantType(); // bb 1839 return this.issued; 1840 } 1841 1842 public boolean hasIssuedElement() { 1843 return this.issued != null && !this.issued.isEmpty(); 1844 } 1845 1846 public boolean hasIssued() { 1847 return this.issued != null && !this.issued.isEmpty(); 1848 } 1849 1850 /** 1851 * @param value {@link #issued} (The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.). This is the underlying object with id, value and extensions. The accessor "getIssued" gives direct access to the value 1852 */ 1853 public Observation setIssuedElement(InstantType value) { 1854 this.issued = value; 1855 return this; 1856 } 1857 1858 /** 1859 * @return The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified. 1860 */ 1861 public Date getIssued() { 1862 return this.issued == null ? null : this.issued.getValue(); 1863 } 1864 1865 /** 1866 * @param value The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified. 1867 */ 1868 public Observation setIssued(Date value) { 1869 if (value == null) 1870 this.issued = null; 1871 else { 1872 if (this.issued == null) 1873 this.issued = new InstantType(); 1874 this.issued.setValue(value); 1875 } 1876 return this; 1877 } 1878 1879 /** 1880 * @return {@link #performer} (Who was responsible for asserting the observed value as "true".) 1881 */ 1882 public List<Reference> getPerformer() { 1883 if (this.performer == null) 1884 this.performer = new ArrayList<Reference>(); 1885 return this.performer; 1886 } 1887 1888 /** 1889 * @return Returns a reference to <code>this</code> for easy method chaining 1890 */ 1891 public Observation setPerformer(List<Reference> thePerformer) { 1892 this.performer = thePerformer; 1893 return this; 1894 } 1895 1896 public boolean hasPerformer() { 1897 if (this.performer == null) 1898 return false; 1899 for (Reference item : this.performer) 1900 if (!item.isEmpty()) 1901 return true; 1902 return false; 1903 } 1904 1905 public Reference addPerformer() { //3 1906 Reference t = new Reference(); 1907 if (this.performer == null) 1908 this.performer = new ArrayList<Reference>(); 1909 this.performer.add(t); 1910 return t; 1911 } 1912 1913 public Observation addPerformer(Reference t) { //3 1914 if (t == null) 1915 return this; 1916 if (this.performer == null) 1917 this.performer = new ArrayList<Reference>(); 1918 this.performer.add(t); 1919 return this; 1920 } 1921 1922 /** 1923 * @return The first repetition of repeating field {@link #performer}, creating it if it does not already exist {3} 1924 */ 1925 public Reference getPerformerFirstRep() { 1926 if (getPerformer().isEmpty()) { 1927 addPerformer(); 1928 } 1929 return getPerformer().get(0); 1930 } 1931 1932 /** 1933 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 1934 */ 1935 public DataType getValue() { 1936 return this.value; 1937 } 1938 1939 /** 1940 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 1941 */ 1942 public Quantity getValueQuantity() throws FHIRException { 1943 if (this.value == null) 1944 this.value = new Quantity(); 1945 if (!(this.value instanceof Quantity)) 1946 throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.value.getClass().getName()+" was encountered"); 1947 return (Quantity) this.value; 1948 } 1949 1950 public boolean hasValueQuantity() { 1951 return this != null && this.value instanceof Quantity; 1952 } 1953 1954 /** 1955 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 1956 */ 1957 public CodeableConcept getValueCodeableConcept() throws FHIRException { 1958 if (this.value == null) 1959 this.value = new CodeableConcept(); 1960 if (!(this.value instanceof CodeableConcept)) 1961 throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.value.getClass().getName()+" was encountered"); 1962 return (CodeableConcept) this.value; 1963 } 1964 1965 public boolean hasValueCodeableConcept() { 1966 return this != null && this.value instanceof CodeableConcept; 1967 } 1968 1969 /** 1970 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 1971 */ 1972 public StringType getValueStringType() throws FHIRException { 1973 if (this.value == null) 1974 this.value = new StringType(); 1975 if (!(this.value instanceof StringType)) 1976 throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.value.getClass().getName()+" was encountered"); 1977 return (StringType) this.value; 1978 } 1979 1980 public boolean hasValueStringType() { 1981 return this != null && this.value instanceof StringType; 1982 } 1983 1984 /** 1985 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 1986 */ 1987 public BooleanType getValueBooleanType() throws FHIRException { 1988 if (this.value == null) 1989 this.value = new BooleanType(); 1990 if (!(this.value instanceof BooleanType)) 1991 throw new FHIRException("Type mismatch: the type BooleanType was expected, but "+this.value.getClass().getName()+" was encountered"); 1992 return (BooleanType) this.value; 1993 } 1994 1995 public boolean hasValueBooleanType() { 1996 return this != null && this.value instanceof BooleanType; 1997 } 1998 1999 /** 2000 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 2001 */ 2002 public IntegerType getValueIntegerType() throws FHIRException { 2003 if (this.value == null) 2004 this.value = new IntegerType(); 2005 if (!(this.value instanceof IntegerType)) 2006 throw new FHIRException("Type mismatch: the type IntegerType was expected, but "+this.value.getClass().getName()+" was encountered"); 2007 return (IntegerType) this.value; 2008 } 2009 2010 public boolean hasValueIntegerType() { 2011 return this != null && this.value instanceof IntegerType; 2012 } 2013 2014 /** 2015 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 2016 */ 2017 public Range getValueRange() throws FHIRException { 2018 if (this.value == null) 2019 this.value = new Range(); 2020 if (!(this.value instanceof Range)) 2021 throw new FHIRException("Type mismatch: the type Range was expected, but "+this.value.getClass().getName()+" was encountered"); 2022 return (Range) this.value; 2023 } 2024 2025 public boolean hasValueRange() { 2026 return this != null && this.value instanceof Range; 2027 } 2028 2029 /** 2030 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 2031 */ 2032 public Ratio getValueRatio() throws FHIRException { 2033 if (this.value == null) 2034 this.value = new Ratio(); 2035 if (!(this.value instanceof Ratio)) 2036 throw new FHIRException("Type mismatch: the type Ratio was expected, but "+this.value.getClass().getName()+" was encountered"); 2037 return (Ratio) this.value; 2038 } 2039 2040 public boolean hasValueRatio() { 2041 return this != null && this.value instanceof Ratio; 2042 } 2043 2044 /** 2045 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 2046 */ 2047 public SampledData getValueSampledData() throws FHIRException { 2048 if (this.value == null) 2049 this.value = new SampledData(); 2050 if (!(this.value instanceof SampledData)) 2051 throw new FHIRException("Type mismatch: the type SampledData was expected, but "+this.value.getClass().getName()+" was encountered"); 2052 return (SampledData) this.value; 2053 } 2054 2055 public boolean hasValueSampledData() { 2056 return this != null && this.value instanceof SampledData; 2057 } 2058 2059 /** 2060 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 2061 */ 2062 public TimeType getValueTimeType() throws FHIRException { 2063 if (this.value == null) 2064 this.value = new TimeType(); 2065 if (!(this.value instanceof TimeType)) 2066 throw new FHIRException("Type mismatch: the type TimeType was expected, but "+this.value.getClass().getName()+" was encountered"); 2067 return (TimeType) this.value; 2068 } 2069 2070 public boolean hasValueTimeType() { 2071 return this != null && this.value instanceof TimeType; 2072 } 2073 2074 /** 2075 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 2076 */ 2077 public DateTimeType getValueDateTimeType() throws FHIRException { 2078 if (this.value == null) 2079 this.value = new DateTimeType(); 2080 if (!(this.value instanceof DateTimeType)) 2081 throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.value.getClass().getName()+" was encountered"); 2082 return (DateTimeType) this.value; 2083 } 2084 2085 public boolean hasValueDateTimeType() { 2086 return this != null && this.value instanceof DateTimeType; 2087 } 2088 2089 /** 2090 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 2091 */ 2092 public Period getValuePeriod() throws FHIRException { 2093 if (this.value == null) 2094 this.value = new Period(); 2095 if (!(this.value instanceof Period)) 2096 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.value.getClass().getName()+" was encountered"); 2097 return (Period) this.value; 2098 } 2099 2100 public boolean hasValuePeriod() { 2101 return this != null && this.value instanceof Period; 2102 } 2103 2104 /** 2105 * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 2106 */ 2107 public Attachment getValueAttachment() throws FHIRException { 2108 if (this.value == null) 2109 this.value = new Attachment(); 2110 if (!(this.value instanceof Attachment)) 2111 throw new FHIRException("Type mismatch: the type Attachment was expected, but "+this.value.getClass().getName()+" was encountered"); 2112 return (Attachment) this.value; 2113 } 2114 2115 public boolean hasValueAttachment() { 2116 return this != null && this.value instanceof Attachment; 2117 } 2118 2119 public boolean hasValue() { 2120 return this.value != null && !this.value.isEmpty(); 2121 } 2122 2123 /** 2124 * @param value {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) 2125 */ 2126 public Observation setValue(DataType value) { 2127 if (value != null && !(value instanceof Quantity || value instanceof CodeableConcept || value instanceof StringType || value instanceof BooleanType || value instanceof IntegerType || value instanceof Range || value instanceof Ratio || value instanceof SampledData || value instanceof TimeType || value instanceof DateTimeType || value instanceof Period || value instanceof Attachment)) 2128 throw new Error("Not the right type for Observation.value[x]: "+value.fhirType()); 2129 this.value = value; 2130 return this; 2131 } 2132 2133 /** 2134 * @return {@link #dataAbsentReason} (Provides a reason why the expected value in the element Observation.value[x] is missing.) 2135 */ 2136 public CodeableConcept getDataAbsentReason() { 2137 if (this.dataAbsentReason == null) 2138 if (Configuration.errorOnAutoCreate()) 2139 throw new Error("Attempt to auto-create Observation.dataAbsentReason"); 2140 else if (Configuration.doAutoCreate()) 2141 this.dataAbsentReason = new CodeableConcept(); // cc 2142 return this.dataAbsentReason; 2143 } 2144 2145 public boolean hasDataAbsentReason() { 2146 return this.dataAbsentReason != null && !this.dataAbsentReason.isEmpty(); 2147 } 2148 2149 /** 2150 * @param value {@link #dataAbsentReason} (Provides a reason why the expected value in the element Observation.value[x] is missing.) 2151 */ 2152 public Observation setDataAbsentReason(CodeableConcept value) { 2153 this.dataAbsentReason = value; 2154 return this; 2155 } 2156 2157 /** 2158 * @return {@link #interpretation} (A categorical assessment of an observation value. For example, high, low, normal.) 2159 */ 2160 public List<CodeableConcept> getInterpretation() { 2161 if (this.interpretation == null) 2162 this.interpretation = new ArrayList<CodeableConcept>(); 2163 return this.interpretation; 2164 } 2165 2166 /** 2167 * @return Returns a reference to <code>this</code> for easy method chaining 2168 */ 2169 public Observation setInterpretation(List<CodeableConcept> theInterpretation) { 2170 this.interpretation = theInterpretation; 2171 return this; 2172 } 2173 2174 public boolean hasInterpretation() { 2175 if (this.interpretation == null) 2176 return false; 2177 for (CodeableConcept item : this.interpretation) 2178 if (!item.isEmpty()) 2179 return true; 2180 return false; 2181 } 2182 2183 public CodeableConcept addInterpretation() { //3 2184 CodeableConcept t = new CodeableConcept(); 2185 if (this.interpretation == null) 2186 this.interpretation = new ArrayList<CodeableConcept>(); 2187 this.interpretation.add(t); 2188 return t; 2189 } 2190 2191 public Observation addInterpretation(CodeableConcept t) { //3 2192 if (t == null) 2193 return this; 2194 if (this.interpretation == null) 2195 this.interpretation = new ArrayList<CodeableConcept>(); 2196 this.interpretation.add(t); 2197 return this; 2198 } 2199 2200 /** 2201 * @return The first repetition of repeating field {@link #interpretation}, creating it if it does not already exist {3} 2202 */ 2203 public CodeableConcept getInterpretationFirstRep() { 2204 if (getInterpretation().isEmpty()) { 2205 addInterpretation(); 2206 } 2207 return getInterpretation().get(0); 2208 } 2209 2210 /** 2211 * @return {@link #note} (Comments about the observation or the results.) 2212 */ 2213 public List<Annotation> getNote() { 2214 if (this.note == null) 2215 this.note = new ArrayList<Annotation>(); 2216 return this.note; 2217 } 2218 2219 /** 2220 * @return Returns a reference to <code>this</code> for easy method chaining 2221 */ 2222 public Observation setNote(List<Annotation> theNote) { 2223 this.note = theNote; 2224 return this; 2225 } 2226 2227 public boolean hasNote() { 2228 if (this.note == null) 2229 return false; 2230 for (Annotation item : this.note) 2231 if (!item.isEmpty()) 2232 return true; 2233 return false; 2234 } 2235 2236 public Annotation addNote() { //3 2237 Annotation t = new Annotation(); 2238 if (this.note == null) 2239 this.note = new ArrayList<Annotation>(); 2240 this.note.add(t); 2241 return t; 2242 } 2243 2244 public Observation addNote(Annotation t) { //3 2245 if (t == null) 2246 return this; 2247 if (this.note == null) 2248 this.note = new ArrayList<Annotation>(); 2249 this.note.add(t); 2250 return this; 2251 } 2252 2253 /** 2254 * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist {3} 2255 */ 2256 public Annotation getNoteFirstRep() { 2257 if (getNote().isEmpty()) { 2258 addNote(); 2259 } 2260 return getNote().get(0); 2261 } 2262 2263 /** 2264 * @return {@link #bodySite} (Indicates the site on the subject's body where the observation was made (i.e. the target site).) 2265 */ 2266 public CodeableConcept getBodySite() { 2267 if (this.bodySite == null) 2268 if (Configuration.errorOnAutoCreate()) 2269 throw new Error("Attempt to auto-create Observation.bodySite"); 2270 else if (Configuration.doAutoCreate()) 2271 this.bodySite = new CodeableConcept(); // cc 2272 return this.bodySite; 2273 } 2274 2275 public boolean hasBodySite() { 2276 return this.bodySite != null && !this.bodySite.isEmpty(); 2277 } 2278 2279 /** 2280 * @param value {@link #bodySite} (Indicates the site on the subject's body where the observation was made (i.e. the target site).) 2281 */ 2282 public Observation setBodySite(CodeableConcept value) { 2283 this.bodySite = value; 2284 return this; 2285 } 2286 2287 /** 2288 * @return {@link #method} (Indicates the mechanism used to perform the observation.) 2289 */ 2290 public CodeableConcept getMethod() { 2291 if (this.method == null) 2292 if (Configuration.errorOnAutoCreate()) 2293 throw new Error("Attempt to auto-create Observation.method"); 2294 else if (Configuration.doAutoCreate()) 2295 this.method = new CodeableConcept(); // cc 2296 return this.method; 2297 } 2298 2299 public boolean hasMethod() { 2300 return this.method != null && !this.method.isEmpty(); 2301 } 2302 2303 /** 2304 * @param value {@link #method} (Indicates the mechanism used to perform the observation.) 2305 */ 2306 public Observation setMethod(CodeableConcept value) { 2307 this.method = value; 2308 return this; 2309 } 2310 2311 /** 2312 * @return {@link #specimen} (The specimen that was used when this observation was made.) 2313 */ 2314 public Reference getSpecimen() { 2315 if (this.specimen == null) 2316 if (Configuration.errorOnAutoCreate()) 2317 throw new Error("Attempt to auto-create Observation.specimen"); 2318 else if (Configuration.doAutoCreate()) 2319 this.specimen = new Reference(); // cc 2320 return this.specimen; 2321 } 2322 2323 public boolean hasSpecimen() { 2324 return this.specimen != null && !this.specimen.isEmpty(); 2325 } 2326 2327 /** 2328 * @param value {@link #specimen} (The specimen that was used when this observation was made.) 2329 */ 2330 public Observation setSpecimen(Reference value) { 2331 this.specimen = value; 2332 return this; 2333 } 2334 2335 /** 2336 * @return {@link #device} (The device used to generate the observation data.) 2337 */ 2338 public Reference getDevice() { 2339 if (this.device == null) 2340 if (Configuration.errorOnAutoCreate()) 2341 throw new Error("Attempt to auto-create Observation.device"); 2342 else if (Configuration.doAutoCreate()) 2343 this.device = new Reference(); // cc 2344 return this.device; 2345 } 2346 2347 public boolean hasDevice() { 2348 return this.device != null && !this.device.isEmpty(); 2349 } 2350 2351 /** 2352 * @param value {@link #device} (The device used to generate the observation data.) 2353 */ 2354 public Observation setDevice(Reference value) { 2355 this.device = value; 2356 return this; 2357 } 2358 2359 /** 2360 * @return {@link #referenceRange} (Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an "OR". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.) 2361 */ 2362 public List<ObservationReferenceRangeComponent> getReferenceRange() { 2363 if (this.referenceRange == null) 2364 this.referenceRange = new ArrayList<ObservationReferenceRangeComponent>(); 2365 return this.referenceRange; 2366 } 2367 2368 /** 2369 * @return Returns a reference to <code>this</code> for easy method chaining 2370 */ 2371 public Observation setReferenceRange(List<ObservationReferenceRangeComponent> theReferenceRange) { 2372 this.referenceRange = theReferenceRange; 2373 return this; 2374 } 2375 2376 public boolean hasReferenceRange() { 2377 if (this.referenceRange == null) 2378 return false; 2379 for (ObservationReferenceRangeComponent item : this.referenceRange) 2380 if (!item.isEmpty()) 2381 return true; 2382 return false; 2383 } 2384 2385 public ObservationReferenceRangeComponent addReferenceRange() { //3 2386 ObservationReferenceRangeComponent t = new ObservationReferenceRangeComponent(); 2387 if (this.referenceRange == null) 2388 this.referenceRange = new ArrayList<ObservationReferenceRangeComponent>(); 2389 this.referenceRange.add(t); 2390 return t; 2391 } 2392 2393 public Observation addReferenceRange(ObservationReferenceRangeComponent t) { //3 2394 if (t == null) 2395 return this; 2396 if (this.referenceRange == null) 2397 this.referenceRange = new ArrayList<ObservationReferenceRangeComponent>(); 2398 this.referenceRange.add(t); 2399 return this; 2400 } 2401 2402 /** 2403 * @return The first repetition of repeating field {@link #referenceRange}, creating it if it does not already exist {3} 2404 */ 2405 public ObservationReferenceRangeComponent getReferenceRangeFirstRep() { 2406 if (getReferenceRange().isEmpty()) { 2407 addReferenceRange(); 2408 } 2409 return getReferenceRange().get(0); 2410 } 2411 2412 /** 2413 * @return {@link #hasMember} (This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.) 2414 */ 2415 public List<Reference> getHasMember() { 2416 if (this.hasMember == null) 2417 this.hasMember = new ArrayList<Reference>(); 2418 return this.hasMember; 2419 } 2420 2421 /** 2422 * @return Returns a reference to <code>this</code> for easy method chaining 2423 */ 2424 public Observation setHasMember(List<Reference> theHasMember) { 2425 this.hasMember = theHasMember; 2426 return this; 2427 } 2428 2429 public boolean hasHasMember() { 2430 if (this.hasMember == null) 2431 return false; 2432 for (Reference item : this.hasMember) 2433 if (!item.isEmpty()) 2434 return true; 2435 return false; 2436 } 2437 2438 public Reference addHasMember() { //3 2439 Reference t = new Reference(); 2440 if (this.hasMember == null) 2441 this.hasMember = new ArrayList<Reference>(); 2442 this.hasMember.add(t); 2443 return t; 2444 } 2445 2446 public Observation addHasMember(Reference t) { //3 2447 if (t == null) 2448 return this; 2449 if (this.hasMember == null) 2450 this.hasMember = new ArrayList<Reference>(); 2451 this.hasMember.add(t); 2452 return this; 2453 } 2454 2455 /** 2456 * @return The first repetition of repeating field {@link #hasMember}, creating it if it does not already exist {3} 2457 */ 2458 public Reference getHasMemberFirstRep() { 2459 if (getHasMember().isEmpty()) { 2460 addHasMember(); 2461 } 2462 return getHasMember().get(0); 2463 } 2464 2465 /** 2466 * @return {@link #derivedFrom} (The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.) 2467 */ 2468 public List<Reference> getDerivedFrom() { 2469 if (this.derivedFrom == null) 2470 this.derivedFrom = new ArrayList<Reference>(); 2471 return this.derivedFrom; 2472 } 2473 2474 /** 2475 * @return Returns a reference to <code>this</code> for easy method chaining 2476 */ 2477 public Observation setDerivedFrom(List<Reference> theDerivedFrom) { 2478 this.derivedFrom = theDerivedFrom; 2479 return this; 2480 } 2481 2482 public boolean hasDerivedFrom() { 2483 if (this.derivedFrom == null) 2484 return false; 2485 for (Reference item : this.derivedFrom) 2486 if (!item.isEmpty()) 2487 return true; 2488 return false; 2489 } 2490 2491 public Reference addDerivedFrom() { //3 2492 Reference t = new Reference(); 2493 if (this.derivedFrom == null) 2494 this.derivedFrom = new ArrayList<Reference>(); 2495 this.derivedFrom.add(t); 2496 return t; 2497 } 2498 2499 public Observation addDerivedFrom(Reference t) { //3 2500 if (t == null) 2501 return this; 2502 if (this.derivedFrom == null) 2503 this.derivedFrom = new ArrayList<Reference>(); 2504 this.derivedFrom.add(t); 2505 return this; 2506 } 2507 2508 /** 2509 * @return The first repetition of repeating field {@link #derivedFrom}, creating it if it does not already exist {3} 2510 */ 2511 public Reference getDerivedFromFirstRep() { 2512 if (getDerivedFrom().isEmpty()) { 2513 addDerivedFrom(); 2514 } 2515 return getDerivedFrom().get(0); 2516 } 2517 2518 /** 2519 * @return {@link #component} (Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.) 2520 */ 2521 public List<ObservationComponentComponent> getComponent() { 2522 if (this.component == null) 2523 this.component = new ArrayList<ObservationComponentComponent>(); 2524 return this.component; 2525 } 2526 2527 /** 2528 * @return Returns a reference to <code>this</code> for easy method chaining 2529 */ 2530 public Observation setComponent(List<ObservationComponentComponent> theComponent) { 2531 this.component = theComponent; 2532 return this; 2533 } 2534 2535 public boolean hasComponent() { 2536 if (this.component == null) 2537 return false; 2538 for (ObservationComponentComponent item : this.component) 2539 if (!item.isEmpty()) 2540 return true; 2541 return false; 2542 } 2543 2544 public ObservationComponentComponent addComponent() { //3 2545 ObservationComponentComponent t = new ObservationComponentComponent(); 2546 if (this.component == null) 2547 this.component = new ArrayList<ObservationComponentComponent>(); 2548 this.component.add(t); 2549 return t; 2550 } 2551 2552 public Observation addComponent(ObservationComponentComponent t) { //3 2553 if (t == null) 2554 return this; 2555 if (this.component == null) 2556 this.component = new ArrayList<ObservationComponentComponent>(); 2557 this.component.add(t); 2558 return this; 2559 } 2560 2561 /** 2562 * @return The first repetition of repeating field {@link #component}, creating it if it does not already exist {3} 2563 */ 2564 public ObservationComponentComponent getComponentFirstRep() { 2565 if (getComponent().isEmpty()) { 2566 addComponent(); 2567 } 2568 return getComponent().get(0); 2569 } 2570 2571 protected void listChildren(List<Property> children) { 2572 super.listChildren(children); 2573 children.add(new Property("identifier", "Identifier", "A unique identifier assigned to this observation.", 0, java.lang.Integer.MAX_VALUE, identifier)); 2574 children.add(new Property("basedOn", "Reference(CarePlan|DeviceRequest|ImmunizationRecommendation|MedicationRequest|NutritionOrder|ServiceRequest)", "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.", 0, java.lang.Integer.MAX_VALUE, basedOn)); 2575 children.add(new Property("partOf", "Reference(MedicationAdministration|MedicationDispense|MedicationUsage|Procedure|Immunization|ImagingStudy)", "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.", 0, java.lang.Integer.MAX_VALUE, partOf)); 2576 children.add(new Property("status", "code", "The status of the result value.", 0, 1, status)); 2577 children.add(new Property("category", "CodeableConcept", "A code that classifies the general type of observation being made.", 0, java.lang.Integer.MAX_VALUE, category)); 2578 children.add(new Property("code", "CodeableConcept", "Describes what was observed. Sometimes this is called the observation \"name\".", 0, 1, code)); 2579 children.add(new Property("subject", "Reference(Patient|Group|Device|Location)", "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.", 0, 1, subject)); 2580 children.add(new Property("focus", "Reference(Any)", "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.", 0, java.lang.Integer.MAX_VALUE, focus)); 2581 children.add(new Property("encounter", "Reference(Encounter)", "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.", 0, 1, encounter)); 2582 children.add(new Property("effective[x]", "dateTime|Period|Timing|instant", "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.", 0, 1, effective)); 2583 children.add(new Property("issued", "instant", "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.", 0, 1, issued)); 2584 children.add(new Property("performer", "Reference(Practitioner|PractitionerRole|Organization|CareTeam|Patient|RelatedPerson)", "Who was responsible for asserting the observed value as \"true\".", 0, java.lang.Integer.MAX_VALUE, performer)); 2585 children.add(new Property("value[x]", "Quantity|CodeableConcept|string|boolean|integer|Range|Ratio|SampledData|time|dateTime|Period|Attachment", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value)); 2586 children.add(new Property("dataAbsentReason", "CodeableConcept", "Provides a reason why the expected value in the element Observation.value[x] is missing.", 0, 1, dataAbsentReason)); 2587 children.add(new Property("interpretation", "CodeableConcept", "A categorical assessment of an observation value. For example, high, low, normal.", 0, java.lang.Integer.MAX_VALUE, interpretation)); 2588 children.add(new Property("note", "Annotation", "Comments about the observation or the results.", 0, java.lang.Integer.MAX_VALUE, note)); 2589 children.add(new Property("bodySite", "CodeableConcept", "Indicates the site on the subject's body where the observation was made (i.e. the target site).", 0, 1, bodySite)); 2590 children.add(new Property("method", "CodeableConcept", "Indicates the mechanism used to perform the observation.", 0, 1, method)); 2591 children.add(new Property("specimen", "Reference(Specimen)", "The specimen that was used when this observation was made.", 0, 1, specimen)); 2592 children.add(new Property("device", "Reference(Device|DeviceMetric)", "The device used to generate the observation data.", 0, 1, device)); 2593 children.add(new Property("referenceRange", "", "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.", 0, java.lang.Integer.MAX_VALUE, referenceRange)); 2594 children.add(new Property("hasMember", "Reference(Observation|QuestionnaireResponse|MolecularSequence)", "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.", 0, java.lang.Integer.MAX_VALUE, hasMember)); 2595 children.add(new Property("derivedFrom", "Reference(DocumentReference|ImagingStudy|QuestionnaireResponse|Observation|MolecularSequence)", "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.", 0, java.lang.Integer.MAX_VALUE, derivedFrom)); 2596 children.add(new Property("component", "", "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.", 0, java.lang.Integer.MAX_VALUE, component)); 2597 } 2598 2599 @Override 2600 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2601 switch (_hash) { 2602 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A unique identifier assigned to this observation.", 0, java.lang.Integer.MAX_VALUE, identifier); 2603 case -332612366: /*basedOn*/ return new Property("basedOn", "Reference(CarePlan|DeviceRequest|ImmunizationRecommendation|MedicationRequest|NutritionOrder|ServiceRequest)", "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.", 0, java.lang.Integer.MAX_VALUE, basedOn); 2604 case -995410646: /*partOf*/ return new Property("partOf", "Reference(MedicationAdministration|MedicationDispense|MedicationUsage|Procedure|Immunization|ImagingStudy)", "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.", 0, java.lang.Integer.MAX_VALUE, partOf); 2605 case -892481550: /*status*/ return new Property("status", "code", "The status of the result value.", 0, 1, status); 2606 case 50511102: /*category*/ return new Property("category", "CodeableConcept", "A code that classifies the general type of observation being made.", 0, java.lang.Integer.MAX_VALUE, category); 2607 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "Describes what was observed. Sometimes this is called the observation \"name\".", 0, 1, code); 2608 case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group|Device|Location)", "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.", 0, 1, subject); 2609 case 97604824: /*focus*/ return new Property("focus", "Reference(Any)", "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.", 0, java.lang.Integer.MAX_VALUE, focus); 2610 case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.", 0, 1, encounter); 2611 case 247104889: /*effective[x]*/ return new Property("effective[x]", "dateTime|Period|Timing|instant", "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.", 0, 1, effective); 2612 case -1468651097: /*effective*/ return new Property("effective[x]", "dateTime|Period|Timing|instant", "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.", 0, 1, effective); 2613 case -275306910: /*effectiveDateTime*/ return new Property("effective[x]", "dateTime", "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.", 0, 1, effective); 2614 case -403934648: /*effectivePeriod*/ return new Property("effective[x]", "Period", "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.", 0, 1, effective); 2615 case -285872943: /*effectiveTiming*/ return new Property("effective[x]", "Timing", "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.", 0, 1, effective); 2616 case -1295730118: /*effectiveInstant*/ return new Property("effective[x]", "instant", "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.", 0, 1, effective); 2617 case -1179159893: /*issued*/ return new Property("issued", "instant", "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.", 0, 1, issued); 2618 case 481140686: /*performer*/ return new Property("performer", "Reference(Practitioner|PractitionerRole|Organization|CareTeam|Patient|RelatedPerson)", "Who was responsible for asserting the observed value as \"true\".", 0, java.lang.Integer.MAX_VALUE, performer); 2619 case -1410166417: /*value[x]*/ return new Property("value[x]", "Quantity|CodeableConcept|string|boolean|integer|Range|Ratio|SampledData|time|dateTime|Period|Attachment", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 2620 case 111972721: /*value*/ return new Property("value[x]", "Quantity|CodeableConcept|string|boolean|integer|Range|Ratio|SampledData|time|dateTime|Period|Attachment", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 2621 case -2029823716: /*valueQuantity*/ return new Property("value[x]", "Quantity", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 2622 case 924902896: /*valueCodeableConcept*/ return new Property("value[x]", "CodeableConcept", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 2623 case -1424603934: /*valueString*/ return new Property("value[x]", "string", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 2624 case 733421943: /*valueBoolean*/ return new Property("value[x]", "boolean", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 2625 case -1668204915: /*valueInteger*/ return new Property("value[x]", "integer", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 2626 case 2030761548: /*valueRange*/ return new Property("value[x]", "Range", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 2627 case 2030767386: /*valueRatio*/ return new Property("value[x]", "Ratio", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 2628 case -962229101: /*valueSampledData*/ return new Property("value[x]", "SampledData", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 2629 case -765708322: /*valueTime*/ return new Property("value[x]", "time", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 2630 case 1047929900: /*valueDateTime*/ return new Property("value[x]", "dateTime", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 2631 case -1524344174: /*valuePeriod*/ return new Property("value[x]", "Period", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 2632 case -475566732: /*valueAttachment*/ return new Property("value[x]", "Attachment", "The information determined as a result of making the observation, if the information has a simple value.", 0, 1, value); 2633 case 1034315687: /*dataAbsentReason*/ return new Property("dataAbsentReason", "CodeableConcept", "Provides a reason why the expected value in the element Observation.value[x] is missing.", 0, 1, dataAbsentReason); 2634 case -297950712: /*interpretation*/ return new Property("interpretation", "CodeableConcept", "A categorical assessment of an observation value. For example, high, low, normal.", 0, java.lang.Integer.MAX_VALUE, interpretation); 2635 case 3387378: /*note*/ return new Property("note", "Annotation", "Comments about the observation or the results.", 0, java.lang.Integer.MAX_VALUE, note); 2636 case 1702620169: /*bodySite*/ return new Property("bodySite", "CodeableConcept", "Indicates the site on the subject's body where the observation was made (i.e. the target site).", 0, 1, bodySite); 2637 case -1077554975: /*method*/ return new Property("method", "CodeableConcept", "Indicates the mechanism used to perform the observation.", 0, 1, method); 2638 case -2132868344: /*specimen*/ return new Property("specimen", "Reference(Specimen)", "The specimen that was used when this observation was made.", 0, 1, specimen); 2639 case -1335157162: /*device*/ return new Property("device", "Reference(Device|DeviceMetric)", "The device used to generate the observation data.", 0, 1, device); 2640 case -1912545102: /*referenceRange*/ return new Property("referenceRange", "", "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.", 0, java.lang.Integer.MAX_VALUE, referenceRange); 2641 case -458019372: /*hasMember*/ return new Property("hasMember", "Reference(Observation|QuestionnaireResponse|MolecularSequence)", "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.", 0, java.lang.Integer.MAX_VALUE, hasMember); 2642 case 1077922663: /*derivedFrom*/ return new Property("derivedFrom", "Reference(DocumentReference|ImagingStudy|QuestionnaireResponse|Observation|MolecularSequence)", "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.", 0, java.lang.Integer.MAX_VALUE, derivedFrom); 2643 case -1399907075: /*component*/ return new Property("component", "", "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.", 0, java.lang.Integer.MAX_VALUE, component); 2644 default: return super.getNamedProperty(_hash, _name, _checkValid); 2645 } 2646 2647 } 2648 2649 @Override 2650 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2651 switch (hash) { 2652 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 2653 case -332612366: /*basedOn*/ return this.basedOn == null ? new Base[0] : this.basedOn.toArray(new Base[this.basedOn.size()]); // Reference 2654 case -995410646: /*partOf*/ return this.partOf == null ? new Base[0] : this.partOf.toArray(new Base[this.partOf.size()]); // Reference 2655 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<ObservationStatus> 2656 case 50511102: /*category*/ return this.category == null ? new Base[0] : this.category.toArray(new Base[this.category.size()]); // CodeableConcept 2657 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 2658 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference 2659 case 97604824: /*focus*/ return this.focus == null ? new Base[0] : this.focus.toArray(new Base[this.focus.size()]); // Reference 2660 case 1524132147: /*encounter*/ return this.encounter == null ? new Base[0] : new Base[] {this.encounter}; // Reference 2661 case -1468651097: /*effective*/ return this.effective == null ? new Base[0] : new Base[] {this.effective}; // DataType 2662 case -1179159893: /*issued*/ return this.issued == null ? new Base[0] : new Base[] {this.issued}; // InstantType 2663 case 481140686: /*performer*/ return this.performer == null ? new Base[0] : this.performer.toArray(new Base[this.performer.size()]); // Reference 2664 case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // DataType 2665 case 1034315687: /*dataAbsentReason*/ return this.dataAbsentReason == null ? new Base[0] : new Base[] {this.dataAbsentReason}; // CodeableConcept 2666 case -297950712: /*interpretation*/ return this.interpretation == null ? new Base[0] : this.interpretation.toArray(new Base[this.interpretation.size()]); // CodeableConcept 2667 case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation 2668 case 1702620169: /*bodySite*/ return this.bodySite == null ? new Base[0] : new Base[] {this.bodySite}; // CodeableConcept 2669 case -1077554975: /*method*/ return this.method == null ? new Base[0] : new Base[] {this.method}; // CodeableConcept 2670 case -2132868344: /*specimen*/ return this.specimen == null ? new Base[0] : new Base[] {this.specimen}; // Reference 2671 case -1335157162: /*device*/ return this.device == null ? new Base[0] : new Base[] {this.device}; // Reference 2672 case -1912545102: /*referenceRange*/ return this.referenceRange == null ? new Base[0] : this.referenceRange.toArray(new Base[this.referenceRange.size()]); // ObservationReferenceRangeComponent 2673 case -458019372: /*hasMember*/ return this.hasMember == null ? new Base[0] : this.hasMember.toArray(new Base[this.hasMember.size()]); // Reference 2674 case 1077922663: /*derivedFrom*/ return this.derivedFrom == null ? new Base[0] : this.derivedFrom.toArray(new Base[this.derivedFrom.size()]); // Reference 2675 case -1399907075: /*component*/ return this.component == null ? new Base[0] : this.component.toArray(new Base[this.component.size()]); // ObservationComponentComponent 2676 default: return super.getProperty(hash, name, checkValid); 2677 } 2678 2679 } 2680 2681 @Override 2682 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2683 switch (hash) { 2684 case -1618432855: // identifier 2685 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier 2686 return value; 2687 case -332612366: // basedOn 2688 this.getBasedOn().add(TypeConvertor.castToReference(value)); // Reference 2689 return value; 2690 case -995410646: // partOf 2691 this.getPartOf().add(TypeConvertor.castToReference(value)); // Reference 2692 return value; 2693 case -892481550: // status 2694 value = new ObservationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 2695 this.status = (Enumeration) value; // Enumeration<ObservationStatus> 2696 return value; 2697 case 50511102: // category 2698 this.getCategory().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 2699 return value; 2700 case 3059181: // code 2701 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2702 return value; 2703 case -1867885268: // subject 2704 this.subject = TypeConvertor.castToReference(value); // Reference 2705 return value; 2706 case 97604824: // focus 2707 this.getFocus().add(TypeConvertor.castToReference(value)); // Reference 2708 return value; 2709 case 1524132147: // encounter 2710 this.encounter = TypeConvertor.castToReference(value); // Reference 2711 return value; 2712 case -1468651097: // effective 2713 this.effective = TypeConvertor.castToType(value); // DataType 2714 return value; 2715 case -1179159893: // issued 2716 this.issued = TypeConvertor.castToInstant(value); // InstantType 2717 return value; 2718 case 481140686: // performer 2719 this.getPerformer().add(TypeConvertor.castToReference(value)); // Reference 2720 return value; 2721 case 111972721: // value 2722 this.value = TypeConvertor.castToType(value); // DataType 2723 return value; 2724 case 1034315687: // dataAbsentReason 2725 this.dataAbsentReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2726 return value; 2727 case -297950712: // interpretation 2728 this.getInterpretation().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 2729 return value; 2730 case 3387378: // note 2731 this.getNote().add(TypeConvertor.castToAnnotation(value)); // Annotation 2732 return value; 2733 case 1702620169: // bodySite 2734 this.bodySite = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2735 return value; 2736 case -1077554975: // method 2737 this.method = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2738 return value; 2739 case -2132868344: // specimen 2740 this.specimen = TypeConvertor.castToReference(value); // Reference 2741 return value; 2742 case -1335157162: // device 2743 this.device = TypeConvertor.castToReference(value); // Reference 2744 return value; 2745 case -1912545102: // referenceRange 2746 this.getReferenceRange().add((ObservationReferenceRangeComponent) value); // ObservationReferenceRangeComponent 2747 return value; 2748 case -458019372: // hasMember 2749 this.getHasMember().add(TypeConvertor.castToReference(value)); // Reference 2750 return value; 2751 case 1077922663: // derivedFrom 2752 this.getDerivedFrom().add(TypeConvertor.castToReference(value)); // Reference 2753 return value; 2754 case -1399907075: // component 2755 this.getComponent().add((ObservationComponentComponent) value); // ObservationComponentComponent 2756 return value; 2757 default: return super.setProperty(hash, name, value); 2758 } 2759 2760 } 2761 2762 @Override 2763 public Base setProperty(String name, Base value) throws FHIRException { 2764 if (name.equals("identifier")) { 2765 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); 2766 } else if (name.equals("basedOn")) { 2767 this.getBasedOn().add(TypeConvertor.castToReference(value)); 2768 } else if (name.equals("partOf")) { 2769 this.getPartOf().add(TypeConvertor.castToReference(value)); 2770 } else if (name.equals("status")) { 2771 value = new ObservationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 2772 this.status = (Enumeration) value; // Enumeration<ObservationStatus> 2773 } else if (name.equals("category")) { 2774 this.getCategory().add(TypeConvertor.castToCodeableConcept(value)); 2775 } else if (name.equals("code")) { 2776 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2777 } else if (name.equals("subject")) { 2778 this.subject = TypeConvertor.castToReference(value); // Reference 2779 } else if (name.equals("focus")) { 2780 this.getFocus().add(TypeConvertor.castToReference(value)); 2781 } else if (name.equals("encounter")) { 2782 this.encounter = TypeConvertor.castToReference(value); // Reference 2783 } else if (name.equals("effective[x]")) { 2784 this.effective = TypeConvertor.castToType(value); // DataType 2785 } else if (name.equals("issued")) { 2786 this.issued = TypeConvertor.castToInstant(value); // InstantType 2787 } else if (name.equals("performer")) { 2788 this.getPerformer().add(TypeConvertor.castToReference(value)); 2789 } else if (name.equals("value[x]")) { 2790 this.value = TypeConvertor.castToType(value); // DataType 2791 } else if (name.equals("dataAbsentReason")) { 2792 this.dataAbsentReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2793 } else if (name.equals("interpretation")) { 2794 this.getInterpretation().add(TypeConvertor.castToCodeableConcept(value)); 2795 } else if (name.equals("note")) { 2796 this.getNote().add(TypeConvertor.castToAnnotation(value)); 2797 } else if (name.equals("bodySite")) { 2798 this.bodySite = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2799 } else if (name.equals("method")) { 2800 this.method = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2801 } else if (name.equals("specimen")) { 2802 this.specimen = TypeConvertor.castToReference(value); // Reference 2803 } else if (name.equals("device")) { 2804 this.device = TypeConvertor.castToReference(value); // Reference 2805 } else if (name.equals("referenceRange")) { 2806 this.getReferenceRange().add((ObservationReferenceRangeComponent) value); 2807 } else if (name.equals("hasMember")) { 2808 this.getHasMember().add(TypeConvertor.castToReference(value)); 2809 } else if (name.equals("derivedFrom")) { 2810 this.getDerivedFrom().add(TypeConvertor.castToReference(value)); 2811 } else if (name.equals("component")) { 2812 this.getComponent().add((ObservationComponentComponent) value); 2813 } else 2814 return super.setProperty(name, value); 2815 return value; 2816 } 2817 2818 @Override 2819 public Base makeProperty(int hash, String name) throws FHIRException { 2820 switch (hash) { 2821 case -1618432855: return addIdentifier(); 2822 case -332612366: return addBasedOn(); 2823 case -995410646: return addPartOf(); 2824 case -892481550: return getStatusElement(); 2825 case 50511102: return addCategory(); 2826 case 3059181: return getCode(); 2827 case -1867885268: return getSubject(); 2828 case 97604824: return addFocus(); 2829 case 1524132147: return getEncounter(); 2830 case 247104889: return getEffective(); 2831 case -1468651097: return getEffective(); 2832 case -1179159893: return getIssuedElement(); 2833 case 481140686: return addPerformer(); 2834 case -1410166417: return getValue(); 2835 case 111972721: return getValue(); 2836 case 1034315687: return getDataAbsentReason(); 2837 case -297950712: return addInterpretation(); 2838 case 3387378: return addNote(); 2839 case 1702620169: return getBodySite(); 2840 case -1077554975: return getMethod(); 2841 case -2132868344: return getSpecimen(); 2842 case -1335157162: return getDevice(); 2843 case -1912545102: return addReferenceRange(); 2844 case -458019372: return addHasMember(); 2845 case 1077922663: return addDerivedFrom(); 2846 case -1399907075: return addComponent(); 2847 default: return super.makeProperty(hash, name); 2848 } 2849 2850 } 2851 2852 @Override 2853 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2854 switch (hash) { 2855 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 2856 case -332612366: /*basedOn*/ return new String[] {"Reference"}; 2857 case -995410646: /*partOf*/ return new String[] {"Reference"}; 2858 case -892481550: /*status*/ return new String[] {"code"}; 2859 case 50511102: /*category*/ return new String[] {"CodeableConcept"}; 2860 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 2861 case -1867885268: /*subject*/ return new String[] {"Reference"}; 2862 case 97604824: /*focus*/ return new String[] {"Reference"}; 2863 case 1524132147: /*encounter*/ return new String[] {"Reference"}; 2864 case -1468651097: /*effective*/ return new String[] {"dateTime", "Period", "Timing", "instant"}; 2865 case -1179159893: /*issued*/ return new String[] {"instant"}; 2866 case 481140686: /*performer*/ return new String[] {"Reference"}; 2867 case 111972721: /*value*/ return new String[] {"Quantity", "CodeableConcept", "string", "boolean", "integer", "Range", "Ratio", "SampledData", "time", "dateTime", "Period", "Attachment"}; 2868 case 1034315687: /*dataAbsentReason*/ return new String[] {"CodeableConcept"}; 2869 case -297950712: /*interpretation*/ return new String[] {"CodeableConcept"}; 2870 case 3387378: /*note*/ return new String[] {"Annotation"}; 2871 case 1702620169: /*bodySite*/ return new String[] {"CodeableConcept"}; 2872 case -1077554975: /*method*/ return new String[] {"CodeableConcept"}; 2873 case -2132868344: /*specimen*/ return new String[] {"Reference"}; 2874 case -1335157162: /*device*/ return new String[] {"Reference"}; 2875 case -1912545102: /*referenceRange*/ return new String[] {}; 2876 case -458019372: /*hasMember*/ return new String[] {"Reference"}; 2877 case 1077922663: /*derivedFrom*/ return new String[] {"Reference"}; 2878 case -1399907075: /*component*/ return new String[] {}; 2879 default: return super.getTypesForProperty(hash, name); 2880 } 2881 2882 } 2883 2884 @Override 2885 public Base addChild(String name) throws FHIRException { 2886 if (name.equals("identifier")) { 2887 return addIdentifier(); 2888 } 2889 else if (name.equals("basedOn")) { 2890 return addBasedOn(); 2891 } 2892 else if (name.equals("partOf")) { 2893 return addPartOf(); 2894 } 2895 else if (name.equals("status")) { 2896 throw new FHIRException("Cannot call addChild on a primitive type Observation.status"); 2897 } 2898 else if (name.equals("category")) { 2899 return addCategory(); 2900 } 2901 else if (name.equals("code")) { 2902 this.code = new CodeableConcept(); 2903 return this.code; 2904 } 2905 else if (name.equals("subject")) { 2906 this.subject = new Reference(); 2907 return this.subject; 2908 } 2909 else if (name.equals("focus")) { 2910 return addFocus(); 2911 } 2912 else if (name.equals("encounter")) { 2913 this.encounter = new Reference(); 2914 return this.encounter; 2915 } 2916 else if (name.equals("effectiveDateTime")) { 2917 this.effective = new DateTimeType(); 2918 return this.effective; 2919 } 2920 else if (name.equals("effectivePeriod")) { 2921 this.effective = new Period(); 2922 return this.effective; 2923 } 2924 else if (name.equals("effectiveTiming")) { 2925 this.effective = new Timing(); 2926 return this.effective; 2927 } 2928 else if (name.equals("effectiveInstant")) { 2929 this.effective = new InstantType(); 2930 return this.effective; 2931 } 2932 else if (name.equals("issued")) { 2933 throw new FHIRException("Cannot call addChild on a primitive type Observation.issued"); 2934 } 2935 else if (name.equals("performer")) { 2936 return addPerformer(); 2937 } 2938 else if (name.equals("valueQuantity")) { 2939 this.value = new Quantity(); 2940 return this.value; 2941 } 2942 else if (name.equals("valueCodeableConcept")) { 2943 this.value = new CodeableConcept(); 2944 return this.value; 2945 } 2946 else if (name.equals("valueString")) { 2947 this.value = new StringType(); 2948 return this.value; 2949 } 2950 else if (name.equals("valueBoolean")) { 2951 this.value = new BooleanType(); 2952 return this.value; 2953 } 2954 else if (name.equals("valueInteger")) { 2955 this.value = new IntegerType(); 2956 return this.value; 2957 } 2958 else if (name.equals("valueRange")) { 2959 this.value = new Range(); 2960 return this.value; 2961 } 2962 else if (name.equals("valueRatio")) { 2963 this.value = new Ratio(); 2964 return this.value; 2965 } 2966 else if (name.equals("valueSampledData")) { 2967 this.value = new SampledData(); 2968 return this.value; 2969 } 2970 else if (name.equals("valueTime")) { 2971 this.value = new TimeType(); 2972 return this.value; 2973 } 2974 else if (name.equals("valueDateTime")) { 2975 this.value = new DateTimeType(); 2976 return this.value; 2977 } 2978 else if (name.equals("valuePeriod")) { 2979 this.value = new Period(); 2980 return this.value; 2981 } 2982 else if (name.equals("valueAttachment")) { 2983 this.value = new Attachment(); 2984 return this.value; 2985 } 2986 else if (name.equals("dataAbsentReason")) { 2987 this.dataAbsentReason = new CodeableConcept(); 2988 return this.dataAbsentReason; 2989 } 2990 else if (name.equals("interpretation")) { 2991 return addInterpretation(); 2992 } 2993 else if (name.equals("note")) { 2994 return addNote(); 2995 } 2996 else if (name.equals("bodySite")) { 2997 this.bodySite = new CodeableConcept(); 2998 return this.bodySite; 2999 } 3000 else if (name.equals("method")) { 3001 this.method = new CodeableConcept(); 3002 return this.method; 3003 } 3004 else if (name.equals("specimen")) { 3005 this.specimen = new Reference(); 3006 return this.specimen; 3007 } 3008 else if (name.equals("device")) { 3009 this.device = new Reference(); 3010 return this.device; 3011 } 3012 else if (name.equals("referenceRange")) { 3013 return addReferenceRange(); 3014 } 3015 else if (name.equals("hasMember")) { 3016 return addHasMember(); 3017 } 3018 else if (name.equals("derivedFrom")) { 3019 return addDerivedFrom(); 3020 } 3021 else if (name.equals("component")) { 3022 return addComponent(); 3023 } 3024 else 3025 return super.addChild(name); 3026 } 3027 3028 public String fhirType() { 3029 return "Observation"; 3030 3031 } 3032 3033 public Observation copy() { 3034 Observation dst = new Observation(); 3035 copyValues(dst); 3036 return dst; 3037 } 3038 3039 public void copyValues(Observation dst) { 3040 super.copyValues(dst); 3041 if (identifier != null) { 3042 dst.identifier = new ArrayList<Identifier>(); 3043 for (Identifier i : identifier) 3044 dst.identifier.add(i.copy()); 3045 }; 3046 if (basedOn != null) { 3047 dst.basedOn = new ArrayList<Reference>(); 3048 for (Reference i : basedOn) 3049 dst.basedOn.add(i.copy()); 3050 }; 3051 if (partOf != null) { 3052 dst.partOf = new ArrayList<Reference>(); 3053 for (Reference i : partOf) 3054 dst.partOf.add(i.copy()); 3055 }; 3056 dst.status = status == null ? null : status.copy(); 3057 if (category != null) { 3058 dst.category = new ArrayList<CodeableConcept>(); 3059 for (CodeableConcept i : category) 3060 dst.category.add(i.copy()); 3061 }; 3062 dst.code = code == null ? null : code.copy(); 3063 dst.subject = subject == null ? null : subject.copy(); 3064 if (focus != null) { 3065 dst.focus = new ArrayList<Reference>(); 3066 for (Reference i : focus) 3067 dst.focus.add(i.copy()); 3068 }; 3069 dst.encounter = encounter == null ? null : encounter.copy(); 3070 dst.effective = effective == null ? null : effective.copy(); 3071 dst.issued = issued == null ? null : issued.copy(); 3072 if (performer != null) { 3073 dst.performer = new ArrayList<Reference>(); 3074 for (Reference i : performer) 3075 dst.performer.add(i.copy()); 3076 }; 3077 dst.value = value == null ? null : value.copy(); 3078 dst.dataAbsentReason = dataAbsentReason == null ? null : dataAbsentReason.copy(); 3079 if (interpretation != null) { 3080 dst.interpretation = new ArrayList<CodeableConcept>(); 3081 for (CodeableConcept i : interpretation) 3082 dst.interpretation.add(i.copy()); 3083 }; 3084 if (note != null) { 3085 dst.note = new ArrayList<Annotation>(); 3086 for (Annotation i : note) 3087 dst.note.add(i.copy()); 3088 }; 3089 dst.bodySite = bodySite == null ? null : bodySite.copy(); 3090 dst.method = method == null ? null : method.copy(); 3091 dst.specimen = specimen == null ? null : specimen.copy(); 3092 dst.device = device == null ? null : device.copy(); 3093 if (referenceRange != null) { 3094 dst.referenceRange = new ArrayList<ObservationReferenceRangeComponent>(); 3095 for (ObservationReferenceRangeComponent i : referenceRange) 3096 dst.referenceRange.add(i.copy()); 3097 }; 3098 if (hasMember != null) { 3099 dst.hasMember = new ArrayList<Reference>(); 3100 for (Reference i : hasMember) 3101 dst.hasMember.add(i.copy()); 3102 }; 3103 if (derivedFrom != null) { 3104 dst.derivedFrom = new ArrayList<Reference>(); 3105 for (Reference i : derivedFrom) 3106 dst.derivedFrom.add(i.copy()); 3107 }; 3108 if (component != null) { 3109 dst.component = new ArrayList<ObservationComponentComponent>(); 3110 for (ObservationComponentComponent i : component) 3111 dst.component.add(i.copy()); 3112 }; 3113 } 3114 3115 protected Observation typedCopy() { 3116 return copy(); 3117 } 3118 3119 @Override 3120 public boolean equalsDeep(Base other_) { 3121 if (!super.equalsDeep(other_)) 3122 return false; 3123 if (!(other_ instanceof Observation)) 3124 return false; 3125 Observation o = (Observation) other_; 3126 return compareDeep(identifier, o.identifier, true) && compareDeep(basedOn, o.basedOn, true) && compareDeep(partOf, o.partOf, true) 3127 && compareDeep(status, o.status, true) && compareDeep(category, o.category, true) && compareDeep(code, o.code, true) 3128 && compareDeep(subject, o.subject, true) && compareDeep(focus, o.focus, true) && compareDeep(encounter, o.encounter, true) 3129 && compareDeep(effective, o.effective, true) && compareDeep(issued, o.issued, true) && compareDeep(performer, o.performer, true) 3130 && compareDeep(value, o.value, true) && compareDeep(dataAbsentReason, o.dataAbsentReason, true) 3131 && compareDeep(interpretation, o.interpretation, true) && compareDeep(note, o.note, true) && compareDeep(bodySite, o.bodySite, true) 3132 && compareDeep(method, o.method, true) && compareDeep(specimen, o.specimen, true) && compareDeep(device, o.device, true) 3133 && compareDeep(referenceRange, o.referenceRange, true) && compareDeep(hasMember, o.hasMember, true) 3134 && compareDeep(derivedFrom, o.derivedFrom, true) && compareDeep(component, o.component, true); 3135 } 3136 3137 @Override 3138 public boolean equalsShallow(Base other_) { 3139 if (!super.equalsShallow(other_)) 3140 return false; 3141 if (!(other_ instanceof Observation)) 3142 return false; 3143 Observation o = (Observation) other_; 3144 return compareValues(status, o.status, true) && compareValues(issued, o.issued, true); 3145 } 3146 3147 public boolean isEmpty() { 3148 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, basedOn, partOf 3149 , status, category, code, subject, focus, encounter, effective, issued, performer 3150 , value, dataAbsentReason, interpretation, note, bodySite, method, specimen, device 3151 , referenceRange, hasMember, derivedFrom, component); 3152 } 3153 3154 @Override 3155 public ResourceType getResourceType() { 3156 return ResourceType.Observation; 3157 } 3158 3159 /** 3160 * Search parameter: <b>based-on</b> 3161 * <p> 3162 * Description: <b>Reference to the service request.</b><br> 3163 * Type: <b>reference</b><br> 3164 * Path: <b>Observation.basedOn</b><br> 3165 * </p> 3166 */ 3167 @SearchParamDefinition(name="based-on", path="Observation.basedOn", description="Reference to the service request.", type="reference", target={CarePlan.class, DeviceRequest.class, ImmunizationRecommendation.class, MedicationRequest.class, NutritionOrder.class, ServiceRequest.class } ) 3168 public static final String SP_BASED_ON = "based-on"; 3169 /** 3170 * <b>Fluent Client</b> search parameter constant for <b>based-on</b> 3171 * <p> 3172 * Description: <b>Reference to the service request.</b><br> 3173 * Type: <b>reference</b><br> 3174 * Path: <b>Observation.basedOn</b><br> 3175 * </p> 3176 */ 3177 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASED_ON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BASED_ON); 3178 3179/** 3180 * Constant for fluent queries to be used to add include statements. Specifies 3181 * the path value of "<b>Observation:based-on</b>". 3182 */ 3183 public static final ca.uhn.fhir.model.api.Include INCLUDE_BASED_ON = new ca.uhn.fhir.model.api.Include("Observation:based-on").toLocked(); 3184 3185 /** 3186 * Search parameter: <b>category</b> 3187 * <p> 3188 * Description: <b>The classification of the type of observation</b><br> 3189 * Type: <b>token</b><br> 3190 * Path: <b>Observation.category</b><br> 3191 * </p> 3192 */ 3193 @SearchParamDefinition(name="category", path="Observation.category", description="The classification of the type of observation", type="token" ) 3194 public static final String SP_CATEGORY = "category"; 3195 /** 3196 * <b>Fluent Client</b> search parameter constant for <b>category</b> 3197 * <p> 3198 * Description: <b>The classification of the type of observation</b><br> 3199 * Type: <b>token</b><br> 3200 * Path: <b>Observation.category</b><br> 3201 * </p> 3202 */ 3203 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CATEGORY); 3204 3205 /** 3206 * Search parameter: <b>code-value-concept</b> 3207 * <p> 3208 * Description: <b>Code and coded value parameter pair</b><br> 3209 * Type: <b>composite</b><br> 3210 * Path: <b>Observation</b><br> 3211 * </p> 3212 */ 3213 @SearchParamDefinition(name="code-value-concept", path="Observation", description="Code and coded value parameter pair", type="composite", compositeOf={"code", "value-concept"} ) 3214 public static final String SP_CODE_VALUE_CONCEPT = "code-value-concept"; 3215 /** 3216 * <b>Fluent Client</b> search parameter constant for <b>code-value-concept</b> 3217 * <p> 3218 * Description: <b>Code and coded value parameter pair</b><br> 3219 * Type: <b>composite</b><br> 3220 * Path: <b>Observation</b><br> 3221 * </p> 3222 */ 3223 public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam> CODE_VALUE_CONCEPT = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam>(SP_CODE_VALUE_CONCEPT); 3224 3225 /** 3226 * Search parameter: <b>code-value-date</b> 3227 * <p> 3228 * Description: <b>Code and date/time value parameter pair</b><br> 3229 * Type: <b>composite</b><br> 3230 * Path: <b>Observation</b><br> 3231 * </p> 3232 */ 3233 @SearchParamDefinition(name="code-value-date", path="Observation", description="Code and date/time value parameter pair", type="composite", compositeOf={"code", "value-date"} ) 3234 public static final String SP_CODE_VALUE_DATE = "code-value-date"; 3235 /** 3236 * <b>Fluent Client</b> search parameter constant for <b>code-value-date</b> 3237 * <p> 3238 * Description: <b>Code and date/time value parameter pair</b><br> 3239 * Type: <b>composite</b><br> 3240 * Path: <b>Observation</b><br> 3241 * </p> 3242 */ 3243 public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.DateClientParam> CODE_VALUE_DATE = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.DateClientParam>(SP_CODE_VALUE_DATE); 3244 3245 /** 3246 * Search parameter: <b>code-value-quantity</b> 3247 * <p> 3248 * Description: <b>Code and quantity value parameter pair</b><br> 3249 * Type: <b>composite</b><br> 3250 * Path: <b>Observation</b><br> 3251 * </p> 3252 */ 3253 @SearchParamDefinition(name="code-value-quantity", path="Observation", description="Code and quantity value parameter pair", type="composite", compositeOf={"code", "value-quantity"} ) 3254 public static final String SP_CODE_VALUE_QUANTITY = "code-value-quantity"; 3255 /** 3256 * <b>Fluent Client</b> search parameter constant for <b>code-value-quantity</b> 3257 * <p> 3258 * Description: <b>Code and quantity value parameter pair</b><br> 3259 * Type: <b>composite</b><br> 3260 * Path: <b>Observation</b><br> 3261 * </p> 3262 */ 3263 public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam> CODE_VALUE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam>(SP_CODE_VALUE_QUANTITY); 3264 3265 /** 3266 * Search parameter: <b>code-value-string</b> 3267 * <p> 3268 * Description: <b>Code and string value parameter pair</b><br> 3269 * Type: <b>composite</b><br> 3270 * Path: <b>Observation</b><br> 3271 * </p> 3272 */ 3273 @SearchParamDefinition(name="code-value-string", path="Observation", description="Code and string value parameter pair", type="composite", compositeOf={"code", "value-string"} ) 3274 public static final String SP_CODE_VALUE_STRING = "code-value-string"; 3275 /** 3276 * <b>Fluent Client</b> search parameter constant for <b>code-value-string</b> 3277 * <p> 3278 * Description: <b>Code and string value parameter pair</b><br> 3279 * Type: <b>composite</b><br> 3280 * Path: <b>Observation</b><br> 3281 * </p> 3282 */ 3283 public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.StringClientParam> CODE_VALUE_STRING = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.StringClientParam>(SP_CODE_VALUE_STRING); 3284 3285 /** 3286 * Search parameter: <b>combo-code-value-concept</b> 3287 * <p> 3288 * Description: <b>Code and coded value parameter pair, including in components</b><br> 3289 * Type: <b>composite</b><br> 3290 * Path: <b>Observation | Observation.component</b><br> 3291 * </p> 3292 */ 3293 @SearchParamDefinition(name="combo-code-value-concept", path="Observation | Observation.component", description="Code and coded value parameter pair, including in components", type="composite", compositeOf={"combo-code", "combo-value-concept"} ) 3294 public static final String SP_COMBO_CODE_VALUE_CONCEPT = "combo-code-value-concept"; 3295 /** 3296 * <b>Fluent Client</b> search parameter constant for <b>combo-code-value-concept</b> 3297 * <p> 3298 * Description: <b>Code and coded value parameter pair, including in components</b><br> 3299 * Type: <b>composite</b><br> 3300 * Path: <b>Observation | Observation.component</b><br> 3301 * </p> 3302 */ 3303 public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam> COMBO_CODE_VALUE_CONCEPT = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam>(SP_COMBO_CODE_VALUE_CONCEPT); 3304 3305 /** 3306 * Search parameter: <b>combo-code-value-quantity</b> 3307 * <p> 3308 * Description: <b>Code and quantity value parameter pair, including in components</b><br> 3309 * Type: <b>composite</b><br> 3310 * Path: <b>Observation | Observation.component</b><br> 3311 * </p> 3312 */ 3313 @SearchParamDefinition(name="combo-code-value-quantity", path="Observation | Observation.component", description="Code and quantity value parameter pair, including in components", type="composite", compositeOf={"combo-code", "combo-value-quantity"} ) 3314 public static final String SP_COMBO_CODE_VALUE_QUANTITY = "combo-code-value-quantity"; 3315 /** 3316 * <b>Fluent Client</b> search parameter constant for <b>combo-code-value-quantity</b> 3317 * <p> 3318 * Description: <b>Code and quantity value parameter pair, including in components</b><br> 3319 * Type: <b>composite</b><br> 3320 * Path: <b>Observation | Observation.component</b><br> 3321 * </p> 3322 */ 3323 public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam> COMBO_CODE_VALUE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam>(SP_COMBO_CODE_VALUE_QUANTITY); 3324 3325 /** 3326 * Search parameter: <b>combo-code</b> 3327 * <p> 3328 * Description: <b>The code of the observation type or component type</b><br> 3329 * Type: <b>token</b><br> 3330 * Path: <b>Observation.code | Observation.component.code</b><br> 3331 * </p> 3332 */ 3333 @SearchParamDefinition(name="combo-code", path="Observation.code | Observation.component.code", description="The code of the observation type or component type", type="token" ) 3334 public static final String SP_COMBO_CODE = "combo-code"; 3335 /** 3336 * <b>Fluent Client</b> search parameter constant for <b>combo-code</b> 3337 * <p> 3338 * Description: <b>The code of the observation type or component type</b><br> 3339 * Type: <b>token</b><br> 3340 * Path: <b>Observation.code | Observation.component.code</b><br> 3341 * </p> 3342 */ 3343 public static final ca.uhn.fhir.rest.gclient.TokenClientParam COMBO_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_COMBO_CODE); 3344 3345 /** 3346 * Search parameter: <b>combo-data-absent-reason</b> 3347 * <p> 3348 * Description: <b>The reason why the expected value in the element Observation.value[x] or Observation.component.value[x] is missing.</b><br> 3349 * Type: <b>token</b><br> 3350 * Path: <b>Observation.dataAbsentReason | Observation.component.dataAbsentReason</b><br> 3351 * </p> 3352 */ 3353 @SearchParamDefinition(name="combo-data-absent-reason", path="Observation.dataAbsentReason | Observation.component.dataAbsentReason", description="The reason why the expected value in the element Observation.value[x] or Observation.component.value[x] is missing.", type="token" ) 3354 public static final String SP_COMBO_DATA_ABSENT_REASON = "combo-data-absent-reason"; 3355 /** 3356 * <b>Fluent Client</b> search parameter constant for <b>combo-data-absent-reason</b> 3357 * <p> 3358 * Description: <b>The reason why the expected value in the element Observation.value[x] or Observation.component.value[x] is missing.</b><br> 3359 * Type: <b>token</b><br> 3360 * Path: <b>Observation.dataAbsentReason | Observation.component.dataAbsentReason</b><br> 3361 * </p> 3362 */ 3363 public static final ca.uhn.fhir.rest.gclient.TokenClientParam COMBO_DATA_ABSENT_REASON = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_COMBO_DATA_ABSENT_REASON); 3364 3365 /** 3366 * Search parameter: <b>combo-value-concept</b> 3367 * <p> 3368 * Description: <b>The value or component value of the observation, if the value is a CodeableConcept</b><br> 3369 * Type: <b>token</b><br> 3370 * Path: <b>(Observation.value as CodeableConcept) | (Observation.component.value as CodeableConcept)</b><br> 3371 * </p> 3372 */ 3373 @SearchParamDefinition(name="combo-value-concept", path="(Observation.value as CodeableConcept) | (Observation.component.value as CodeableConcept)", description="The value or component value of the observation, if the value is a CodeableConcept", type="token" ) 3374 public static final String SP_COMBO_VALUE_CONCEPT = "combo-value-concept"; 3375 /** 3376 * <b>Fluent Client</b> search parameter constant for <b>combo-value-concept</b> 3377 * <p> 3378 * Description: <b>The value or component value of the observation, if the value is a CodeableConcept</b><br> 3379 * Type: <b>token</b><br> 3380 * Path: <b>(Observation.value as CodeableConcept) | (Observation.component.value as CodeableConcept)</b><br> 3381 * </p> 3382 */ 3383 public static final ca.uhn.fhir.rest.gclient.TokenClientParam COMBO_VALUE_CONCEPT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_COMBO_VALUE_CONCEPT); 3384 3385 /** 3386 * Search parameter: <b>combo-value-quantity</b> 3387 * <p> 3388 * Description: <b>The value or component value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)</b><br> 3389 * Type: <b>quantity</b><br> 3390 * Path: <b>(Observation.value as Quantity) | (Observation.value as SampledData) | (Observation.component.value as Quantity) | (Observation.component.value as SampledData)</b><br> 3391 * </p> 3392 */ 3393 @SearchParamDefinition(name="combo-value-quantity", path="(Observation.value as Quantity) | (Observation.value as SampledData) | (Observation.component.value as Quantity) | (Observation.component.value as SampledData)", description="The value or component value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)", type="quantity" ) 3394 public static final String SP_COMBO_VALUE_QUANTITY = "combo-value-quantity"; 3395 /** 3396 * <b>Fluent Client</b> search parameter constant for <b>combo-value-quantity</b> 3397 * <p> 3398 * Description: <b>The value or component value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)</b><br> 3399 * Type: <b>quantity</b><br> 3400 * Path: <b>(Observation.value as Quantity) | (Observation.value as SampledData) | (Observation.component.value as Quantity) | (Observation.component.value as SampledData)</b><br> 3401 * </p> 3402 */ 3403 public static final ca.uhn.fhir.rest.gclient.QuantityClientParam COMBO_VALUE_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_COMBO_VALUE_QUANTITY); 3404 3405 /** 3406 * Search parameter: <b>component-code-value-concept</b> 3407 * <p> 3408 * Description: <b>Component code and component coded value parameter pair</b><br> 3409 * Type: <b>composite</b><br> 3410 * Path: <b>Observation.component</b><br> 3411 * </p> 3412 */ 3413 @SearchParamDefinition(name="component-code-value-concept", path="Observation.component", description="Component code and component coded value parameter pair", type="composite", compositeOf={"component-code", "component-value-concept"} ) 3414 public static final String SP_COMPONENT_CODE_VALUE_CONCEPT = "component-code-value-concept"; 3415 /** 3416 * <b>Fluent Client</b> search parameter constant for <b>component-code-value-concept</b> 3417 * <p> 3418 * Description: <b>Component code and component coded value parameter pair</b><br> 3419 * Type: <b>composite</b><br> 3420 * Path: <b>Observation.component</b><br> 3421 * </p> 3422 */ 3423 public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam> COMPONENT_CODE_VALUE_CONCEPT = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam>(SP_COMPONENT_CODE_VALUE_CONCEPT); 3424 3425 /** 3426 * Search parameter: <b>component-code-value-quantity</b> 3427 * <p> 3428 * Description: <b>Component code and component quantity value parameter pair</b><br> 3429 * Type: <b>composite</b><br> 3430 * Path: <b>Observation.component</b><br> 3431 * </p> 3432 */ 3433 @SearchParamDefinition(name="component-code-value-quantity", path="Observation.component", description="Component code and component quantity value parameter pair", type="composite", compositeOf={"component-code", "component-value-quantity"} ) 3434 public static final String SP_COMPONENT_CODE_VALUE_QUANTITY = "component-code-value-quantity"; 3435 /** 3436 * <b>Fluent Client</b> search parameter constant for <b>component-code-value-quantity</b> 3437 * <p> 3438 * Description: <b>Component code and component quantity value parameter pair</b><br> 3439 * Type: <b>composite</b><br> 3440 * Path: <b>Observation.component</b><br> 3441 * </p> 3442 */ 3443 public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam> COMPONENT_CODE_VALUE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam>(SP_COMPONENT_CODE_VALUE_QUANTITY); 3444 3445 /** 3446 * Search parameter: <b>component-code</b> 3447 * <p> 3448 * Description: <b>The component code of the observation type</b><br> 3449 * Type: <b>token</b><br> 3450 * Path: <b>Observation.component.code</b><br> 3451 * </p> 3452 */ 3453 @SearchParamDefinition(name="component-code", path="Observation.component.code", description="The component code of the observation type", type="token" ) 3454 public static final String SP_COMPONENT_CODE = "component-code"; 3455 /** 3456 * <b>Fluent Client</b> search parameter constant for <b>component-code</b> 3457 * <p> 3458 * Description: <b>The component code of the observation type</b><br> 3459 * Type: <b>token</b><br> 3460 * Path: <b>Observation.component.code</b><br> 3461 * </p> 3462 */ 3463 public static final ca.uhn.fhir.rest.gclient.TokenClientParam COMPONENT_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_COMPONENT_CODE); 3464 3465 /** 3466 * Search parameter: <b>component-data-absent-reason</b> 3467 * <p> 3468 * Description: <b>The reason why the expected value in the element Observation.component.value[x] is missing.</b><br> 3469 * Type: <b>token</b><br> 3470 * Path: <b>Observation.component.dataAbsentReason</b><br> 3471 * </p> 3472 */ 3473 @SearchParamDefinition(name="component-data-absent-reason", path="Observation.component.dataAbsentReason", description="The reason why the expected value in the element Observation.component.value[x] is missing.", type="token" ) 3474 public static final String SP_COMPONENT_DATA_ABSENT_REASON = "component-data-absent-reason"; 3475 /** 3476 * <b>Fluent Client</b> search parameter constant for <b>component-data-absent-reason</b> 3477 * <p> 3478 * Description: <b>The reason why the expected value in the element Observation.component.value[x] is missing.</b><br> 3479 * Type: <b>token</b><br> 3480 * Path: <b>Observation.component.dataAbsentReason</b><br> 3481 * </p> 3482 */ 3483 public static final ca.uhn.fhir.rest.gclient.TokenClientParam COMPONENT_DATA_ABSENT_REASON = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_COMPONENT_DATA_ABSENT_REASON); 3484 3485 /** 3486 * Search parameter: <b>component-value-concept</b> 3487 * <p> 3488 * Description: <b>The value of the component observation, if the value is a CodeableConcept</b><br> 3489 * Type: <b>token</b><br> 3490 * Path: <b>(Observation.component.value as CodeableConcept)</b><br> 3491 * </p> 3492 */ 3493 @SearchParamDefinition(name="component-value-concept", path="(Observation.component.value as CodeableConcept)", description="The value of the component observation, if the value is a CodeableConcept", type="token" ) 3494 public static final String SP_COMPONENT_VALUE_CONCEPT = "component-value-concept"; 3495 /** 3496 * <b>Fluent Client</b> search parameter constant for <b>component-value-concept</b> 3497 * <p> 3498 * Description: <b>The value of the component observation, if the value is a CodeableConcept</b><br> 3499 * Type: <b>token</b><br> 3500 * Path: <b>(Observation.component.value as CodeableConcept)</b><br> 3501 * </p> 3502 */ 3503 public static final ca.uhn.fhir.rest.gclient.TokenClientParam COMPONENT_VALUE_CONCEPT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_COMPONENT_VALUE_CONCEPT); 3504 3505 /** 3506 * Search parameter: <b>component-value-quantity</b> 3507 * <p> 3508 * Description: <b>The value of the component observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)</b><br> 3509 * Type: <b>quantity</b><br> 3510 * Path: <b>(Observation.component.value as Quantity) | (Observation.component.value as SampledData)</b><br> 3511 * </p> 3512 */ 3513 @SearchParamDefinition(name="component-value-quantity", path="(Observation.component.value as Quantity) | (Observation.component.value as SampledData)", description="The value of the component observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)", type="quantity" ) 3514 public static final String SP_COMPONENT_VALUE_QUANTITY = "component-value-quantity"; 3515 /** 3516 * <b>Fluent Client</b> search parameter constant for <b>component-value-quantity</b> 3517 * <p> 3518 * Description: <b>The value of the component observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)</b><br> 3519 * Type: <b>quantity</b><br> 3520 * Path: <b>(Observation.component.value as Quantity) | (Observation.component.value as SampledData)</b><br> 3521 * </p> 3522 */ 3523 public static final ca.uhn.fhir.rest.gclient.QuantityClientParam COMPONENT_VALUE_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_COMPONENT_VALUE_QUANTITY); 3524 3525 /** 3526 * Search parameter: <b>data-absent-reason</b> 3527 * <p> 3528 * Description: <b>The reason why the expected value in the element Observation.value[x] is missing.</b><br> 3529 * Type: <b>token</b><br> 3530 * Path: <b>Observation.dataAbsentReason</b><br> 3531 * </p> 3532 */ 3533 @SearchParamDefinition(name="data-absent-reason", path="Observation.dataAbsentReason", description="The reason why the expected value in the element Observation.value[x] is missing.", type="token" ) 3534 public static final String SP_DATA_ABSENT_REASON = "data-absent-reason"; 3535 /** 3536 * <b>Fluent Client</b> search parameter constant for <b>data-absent-reason</b> 3537 * <p> 3538 * Description: <b>The reason why the expected value in the element Observation.value[x] is missing.</b><br> 3539 * Type: <b>token</b><br> 3540 * Path: <b>Observation.dataAbsentReason</b><br> 3541 * </p> 3542 */ 3543 public static final ca.uhn.fhir.rest.gclient.TokenClientParam DATA_ABSENT_REASON = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_DATA_ABSENT_REASON); 3544 3545 /** 3546 * Search parameter: <b>derived-from</b> 3547 * <p> 3548 * Description: <b>Related measurements the observation is made from</b><br> 3549 * Type: <b>reference</b><br> 3550 * Path: <b>Observation.derivedFrom</b><br> 3551 * </p> 3552 */ 3553 @SearchParamDefinition(name="derived-from", path="Observation.derivedFrom", description="Related measurements the observation is made from", type="reference", target={DocumentReference.class, ImagingStudy.class, MolecularSequence.class, Observation.class, QuestionnaireResponse.class } ) 3554 public static final String SP_DERIVED_FROM = "derived-from"; 3555 /** 3556 * <b>Fluent Client</b> search parameter constant for <b>derived-from</b> 3557 * <p> 3558 * Description: <b>Related measurements the observation is made from</b><br> 3559 * Type: <b>reference</b><br> 3560 * Path: <b>Observation.derivedFrom</b><br> 3561 * </p> 3562 */ 3563 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DERIVED_FROM = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DERIVED_FROM); 3564 3565/** 3566 * Constant for fluent queries to be used to add include statements. Specifies 3567 * the path value of "<b>Observation:derived-from</b>". 3568 */ 3569 public static final ca.uhn.fhir.model.api.Include INCLUDE_DERIVED_FROM = new ca.uhn.fhir.model.api.Include("Observation:derived-from").toLocked(); 3570 3571 /** 3572 * Search parameter: <b>device</b> 3573 * <p> 3574 * Description: <b>The Device that generated the observation data.</b><br> 3575 * Type: <b>reference</b><br> 3576 * Path: <b>Observation.device</b><br> 3577 * </p> 3578 */ 3579 @SearchParamDefinition(name="device", path="Observation.device", description="The Device that generated the observation data.", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device") }, target={Device.class, DeviceMetric.class } ) 3580 public static final String SP_DEVICE = "device"; 3581 /** 3582 * <b>Fluent Client</b> search parameter constant for <b>device</b> 3583 * <p> 3584 * Description: <b>The Device that generated the observation data.</b><br> 3585 * Type: <b>reference</b><br> 3586 * Path: <b>Observation.device</b><br> 3587 * </p> 3588 */ 3589 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DEVICE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DEVICE); 3590 3591/** 3592 * Constant for fluent queries to be used to add include statements. Specifies 3593 * the path value of "<b>Observation:device</b>". 3594 */ 3595 public static final ca.uhn.fhir.model.api.Include INCLUDE_DEVICE = new ca.uhn.fhir.model.api.Include("Observation:device").toLocked(); 3596 3597 /** 3598 * Search parameter: <b>focus</b> 3599 * <p> 3600 * Description: <b>The focus of an observation when the focus is not the patient of record.</b><br> 3601 * Type: <b>reference</b><br> 3602 * Path: <b>Observation.focus</b><br> 3603 * </p> 3604 */ 3605 @SearchParamDefinition(name="focus", path="Observation.focus", description="The focus of an observation when the focus is not the patient of record.", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, Topic.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) 3606 public static final String SP_FOCUS = "focus"; 3607 /** 3608 * <b>Fluent Client</b> search parameter constant for <b>focus</b> 3609 * <p> 3610 * Description: <b>The focus of an observation when the focus is not the patient of record.</b><br> 3611 * Type: <b>reference</b><br> 3612 * Path: <b>Observation.focus</b><br> 3613 * </p> 3614 */ 3615 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam FOCUS = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_FOCUS); 3616 3617/** 3618 * Constant for fluent queries to be used to add include statements. Specifies 3619 * the path value of "<b>Observation:focus</b>". 3620 */ 3621 public static final ca.uhn.fhir.model.api.Include INCLUDE_FOCUS = new ca.uhn.fhir.model.api.Include("Observation:focus").toLocked(); 3622 3623 /** 3624 * Search parameter: <b>has-member</b> 3625 * <p> 3626 * Description: <b>Related resource that belongs to the Observation group</b><br> 3627 * Type: <b>reference</b><br> 3628 * Path: <b>Observation.hasMember</b><br> 3629 * </p> 3630 */ 3631 @SearchParamDefinition(name="has-member", path="Observation.hasMember", description="Related resource that belongs to the Observation group", type="reference", target={MolecularSequence.class, Observation.class, QuestionnaireResponse.class } ) 3632 public static final String SP_HAS_MEMBER = "has-member"; 3633 /** 3634 * <b>Fluent Client</b> search parameter constant for <b>has-member</b> 3635 * <p> 3636 * Description: <b>Related resource that belongs to the Observation group</b><br> 3637 * Type: <b>reference</b><br> 3638 * Path: <b>Observation.hasMember</b><br> 3639 * </p> 3640 */ 3641 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam HAS_MEMBER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_HAS_MEMBER); 3642 3643/** 3644 * Constant for fluent queries to be used to add include statements. Specifies 3645 * the path value of "<b>Observation:has-member</b>". 3646 */ 3647 public static final ca.uhn.fhir.model.api.Include INCLUDE_HAS_MEMBER = new ca.uhn.fhir.model.api.Include("Observation:has-member").toLocked(); 3648 3649 /** 3650 * Search parameter: <b>method</b> 3651 * <p> 3652 * Description: <b>The method used for the observation</b><br> 3653 * Type: <b>token</b><br> 3654 * Path: <b>Observation.method</b><br> 3655 * </p> 3656 */ 3657 @SearchParamDefinition(name="method", path="Observation.method", description="The method used for the observation", type="token" ) 3658 public static final String SP_METHOD = "method"; 3659 /** 3660 * <b>Fluent Client</b> search parameter constant for <b>method</b> 3661 * <p> 3662 * Description: <b>The method used for the observation</b><br> 3663 * Type: <b>token</b><br> 3664 * Path: <b>Observation.method</b><br> 3665 * </p> 3666 */ 3667 public static final ca.uhn.fhir.rest.gclient.TokenClientParam METHOD = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_METHOD); 3668 3669 /** 3670 * Search parameter: <b>part-of</b> 3671 * <p> 3672 * Description: <b>Part of referenced event</b><br> 3673 * Type: <b>reference</b><br> 3674 * Path: <b>Observation.partOf</b><br> 3675 * </p> 3676 */ 3677 @SearchParamDefinition(name="part-of", path="Observation.partOf", description="Part of referenced event", type="reference", target={ImagingStudy.class, Immunization.class, MedicationAdministration.class, MedicationDispense.class, MedicationUsage.class, Procedure.class } ) 3678 public static final String SP_PART_OF = "part-of"; 3679 /** 3680 * <b>Fluent Client</b> search parameter constant for <b>part-of</b> 3681 * <p> 3682 * Description: <b>Part of referenced event</b><br> 3683 * Type: <b>reference</b><br> 3684 * Path: <b>Observation.partOf</b><br> 3685 * </p> 3686 */ 3687 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PART_OF = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PART_OF); 3688 3689/** 3690 * Constant for fluent queries to be used to add include statements. Specifies 3691 * the path value of "<b>Observation:part-of</b>". 3692 */ 3693 public static final ca.uhn.fhir.model.api.Include INCLUDE_PART_OF = new ca.uhn.fhir.model.api.Include("Observation:part-of").toLocked(); 3694 3695 /** 3696 * Search parameter: <b>performer</b> 3697 * <p> 3698 * Description: <b>Who performed the observation</b><br> 3699 * Type: <b>reference</b><br> 3700 * Path: <b>Observation.performer</b><br> 3701 * </p> 3702 */ 3703 @SearchParamDefinition(name="performer", path="Observation.performer", description="Who performed the observation", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={CareTeam.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) 3704 public static final String SP_PERFORMER = "performer"; 3705 /** 3706 * <b>Fluent Client</b> search parameter constant for <b>performer</b> 3707 * <p> 3708 * Description: <b>Who performed the observation</b><br> 3709 * Type: <b>reference</b><br> 3710 * Path: <b>Observation.performer</b><br> 3711 * </p> 3712 */ 3713 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PERFORMER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PERFORMER); 3714 3715/** 3716 * Constant for fluent queries to be used to add include statements. Specifies 3717 * the path value of "<b>Observation:performer</b>". 3718 */ 3719 public static final ca.uhn.fhir.model.api.Include INCLUDE_PERFORMER = new ca.uhn.fhir.model.api.Include("Observation:performer").toLocked(); 3720 3721 /** 3722 * Search parameter: <b>specimen</b> 3723 * <p> 3724 * Description: <b>Specimen used for this observation</b><br> 3725 * Type: <b>reference</b><br> 3726 * Path: <b>Observation.specimen</b><br> 3727 * </p> 3728 */ 3729 @SearchParamDefinition(name="specimen", path="Observation.specimen", description="Specimen used for this observation", type="reference", target={Specimen.class } ) 3730 public static final String SP_SPECIMEN = "specimen"; 3731 /** 3732 * <b>Fluent Client</b> search parameter constant for <b>specimen</b> 3733 * <p> 3734 * Description: <b>Specimen used for this observation</b><br> 3735 * Type: <b>reference</b><br> 3736 * Path: <b>Observation.specimen</b><br> 3737 * </p> 3738 */ 3739 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SPECIMEN = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SPECIMEN); 3740 3741/** 3742 * Constant for fluent queries to be used to add include statements. Specifies 3743 * the path value of "<b>Observation:specimen</b>". 3744 */ 3745 public static final ca.uhn.fhir.model.api.Include INCLUDE_SPECIMEN = new ca.uhn.fhir.model.api.Include("Observation:specimen").toLocked(); 3746 3747 /** 3748 * Search parameter: <b>status</b> 3749 * <p> 3750 * Description: <b>The status of the observation</b><br> 3751 * Type: <b>token</b><br> 3752 * Path: <b>Observation.status</b><br> 3753 * </p> 3754 */ 3755 @SearchParamDefinition(name="status", path="Observation.status", description="The status of the observation", type="token" ) 3756 public static final String SP_STATUS = "status"; 3757 /** 3758 * <b>Fluent Client</b> search parameter constant for <b>status</b> 3759 * <p> 3760 * Description: <b>The status of the observation</b><br> 3761 * Type: <b>token</b><br> 3762 * Path: <b>Observation.status</b><br> 3763 * </p> 3764 */ 3765 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 3766 3767 /** 3768 * Search parameter: <b>subject</b> 3769 * <p> 3770 * Description: <b>The subject that the observation is about</b><br> 3771 * Type: <b>reference</b><br> 3772 * Path: <b>Observation.subject</b><br> 3773 * </p> 3774 */ 3775 @SearchParamDefinition(name="subject", path="Observation.subject", description="The subject that the observation is about", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Device.class, Group.class, Location.class, Patient.class } ) 3776 public static final String SP_SUBJECT = "subject"; 3777 /** 3778 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 3779 * <p> 3780 * Description: <b>The subject that the observation is about</b><br> 3781 * Type: <b>reference</b><br> 3782 * Path: <b>Observation.subject</b><br> 3783 * </p> 3784 */ 3785 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); 3786 3787/** 3788 * Constant for fluent queries to be used to add include statements. Specifies 3789 * the path value of "<b>Observation:subject</b>". 3790 */ 3791 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("Observation:subject").toLocked(); 3792 3793 /** 3794 * Search parameter: <b>value-concept</b> 3795 * <p> 3796 * Description: <b>The value of the observation, if the value is a CodeableConcept</b><br> 3797 * Type: <b>token</b><br> 3798 * Path: <b>(Observation.value as CodeableConcept)</b><br> 3799 * </p> 3800 */ 3801 @SearchParamDefinition(name="value-concept", path="(Observation.value as CodeableConcept)", description="The value of the observation, if the value is a CodeableConcept", type="token" ) 3802 public static final String SP_VALUE_CONCEPT = "value-concept"; 3803 /** 3804 * <b>Fluent Client</b> search parameter constant for <b>value-concept</b> 3805 * <p> 3806 * Description: <b>The value of the observation, if the value is a CodeableConcept</b><br> 3807 * Type: <b>token</b><br> 3808 * Path: <b>(Observation.value as CodeableConcept)</b><br> 3809 * </p> 3810 */ 3811 public static final ca.uhn.fhir.rest.gclient.TokenClientParam VALUE_CONCEPT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VALUE_CONCEPT); 3812 3813 /** 3814 * Search parameter: <b>value-date</b> 3815 * <p> 3816 * Description: <b>The value of the observation, if the value is a date or period of time</b><br> 3817 * Type: <b>date</b><br> 3818 * Path: <b>(Observation.value as dateTime) | (Observation.value as Period)</b><br> 3819 * </p> 3820 */ 3821 @SearchParamDefinition(name="value-date", path="(Observation.value as dateTime) | (Observation.value as Period)", description="The value of the observation, if the value is a date or period of time", type="date" ) 3822 public static final String SP_VALUE_DATE = "value-date"; 3823 /** 3824 * <b>Fluent Client</b> search parameter constant for <b>value-date</b> 3825 * <p> 3826 * Description: <b>The value of the observation, if the value is a date or period of time</b><br> 3827 * Type: <b>date</b><br> 3828 * Path: <b>(Observation.value as dateTime) | (Observation.value as Period)</b><br> 3829 * </p> 3830 */ 3831 public static final ca.uhn.fhir.rest.gclient.DateClientParam VALUE_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_VALUE_DATE); 3832 3833 /** 3834 * Search parameter: <b>value-quantity</b> 3835 * <p> 3836 * Description: <b>The value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)</b><br> 3837 * Type: <b>quantity</b><br> 3838 * Path: <b>(Observation.value as Quantity) | (Observation.value as SampledData)</b><br> 3839 * </p> 3840 */ 3841 @SearchParamDefinition(name="value-quantity", path="(Observation.value as Quantity) | (Observation.value as SampledData)", description="The value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)", type="quantity" ) 3842 public static final String SP_VALUE_QUANTITY = "value-quantity"; 3843 /** 3844 * <b>Fluent Client</b> search parameter constant for <b>value-quantity</b> 3845 * <p> 3846 * Description: <b>The value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)</b><br> 3847 * Type: <b>quantity</b><br> 3848 * Path: <b>(Observation.value as Quantity) | (Observation.value as SampledData)</b><br> 3849 * </p> 3850 */ 3851 public static final ca.uhn.fhir.rest.gclient.QuantityClientParam VALUE_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_VALUE_QUANTITY); 3852 3853 /** 3854 * Search parameter: <b>value-string</b> 3855 * <p> 3856 * Description: <b>The value of the observation, if the value is a string, and also searches in CodeableConcept.text</b><br> 3857 * Type: <b>string</b><br> 3858 * Path: <b>(Observation.value as string) | (Observation.value as CodeableConcept).text</b><br> 3859 * </p> 3860 */ 3861 @SearchParamDefinition(name="value-string", path="(Observation.value as string) | (Observation.value as CodeableConcept).text", description="The value of the observation, if the value is a string, and also searches in CodeableConcept.text", type="string" ) 3862 public static final String SP_VALUE_STRING = "value-string"; 3863 /** 3864 * <b>Fluent Client</b> search parameter constant for <b>value-string</b> 3865 * <p> 3866 * Description: <b>The value of the observation, if the value is a string, and also searches in CodeableConcept.text</b><br> 3867 * Type: <b>string</b><br> 3868 * Path: <b>(Observation.value as string) | (Observation.value as CodeableConcept).text</b><br> 3869 * </p> 3870 */ 3871 public static final ca.uhn.fhir.rest.gclient.StringClientParam VALUE_STRING = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_VALUE_STRING); 3872 3873 /** 3874 * Search parameter: <b>code</b> 3875 * <p> 3876 * Description: <b>Multiple Resources: 3877 3878* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance 3879* [Condition](condition.html): Code for the condition 3880* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered 3881* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result 3882* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code 3883* [List](list.html): What the purpose of this list is 3884* [Medication](medication.html): Returns medications for a specific code 3885* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code 3886* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code 3887* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code 3888* [MedicationUsage](medicationusage.html): Return statements of this medication code 3889* [Observation](observation.html): The code of the observation type 3890* [Procedure](procedure.html): A code to identify a procedure 3891* [ServiceRequest](servicerequest.html): What is being requested/ordered 3892</b><br> 3893 * Type: <b>token</b><br> 3894 * Path: <b>AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationUsage.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code</b><br> 3895 * </p> 3896 */ 3897 @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationUsage.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) 3898 public static final String SP_CODE = "code"; 3899 /** 3900 * <b>Fluent Client</b> search parameter constant for <b>code</b> 3901 * <p> 3902 * Description: <b>Multiple Resources: 3903 3904* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance 3905* [Condition](condition.html): Code for the condition 3906* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered 3907* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result 3908* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code 3909* [List](list.html): What the purpose of this list is 3910* [Medication](medication.html): Returns medications for a specific code 3911* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code 3912* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code 3913* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code 3914* [MedicationUsage](medicationusage.html): Return statements of this medication code 3915* [Observation](observation.html): The code of the observation type 3916* [Procedure](procedure.html): A code to identify a procedure 3917* [ServiceRequest](servicerequest.html): What is being requested/ordered 3918</b><br> 3919 * Type: <b>token</b><br> 3920 * Path: <b>AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationUsage.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code</b><br> 3921 * </p> 3922 */ 3923 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); 3924 3925 /** 3926 * Search parameter: <b>date</b> 3927 * <p> 3928 * Description: <b>Multiple Resources: 3929 3930* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded 3931* [CarePlan](careplan.html): Time period plan covers 3932* [CareTeam](careteam.html): A date within the coverage time period. 3933* [ClinicalImpression](clinicalimpression.html): When the assessment was documented 3934* [Composition](composition.html): Composition editing time 3935* [Consent](consent.html): When consent was agreed to 3936* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report 3937* [Encounter](encounter.html): A date within the period the Encounter lasted 3938* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period 3939* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated 3940* [Flag](flag.html): Time period when flag is active 3941* [Immunization](immunization.html): Vaccination (non)-Administration Date 3942* [List](list.html): When the list was prepared 3943* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period 3944* [Procedure](procedure.html): When the procedure occurred or is occurring 3945* [RiskAssessment](riskassessment.html): When was assessment made? 3946* [SupplyRequest](supplyrequest.html): When the request was made 3947</b><br> 3948 * Type: <b>date</b><br> 3949 * Path: <b>AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn</b><br> 3950 * </p> 3951 */ 3952 @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) 3953 public static final String SP_DATE = "date"; 3954 /** 3955 * <b>Fluent Client</b> search parameter constant for <b>date</b> 3956 * <p> 3957 * Description: <b>Multiple Resources: 3958 3959* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded 3960* [CarePlan](careplan.html): Time period plan covers 3961* [CareTeam](careteam.html): A date within the coverage time period. 3962* [ClinicalImpression](clinicalimpression.html): When the assessment was documented 3963* [Composition](composition.html): Composition editing time 3964* [Consent](consent.html): When consent was agreed to 3965* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report 3966* [Encounter](encounter.html): A date within the period the Encounter lasted 3967* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period 3968* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated 3969* [Flag](flag.html): Time period when flag is active 3970* [Immunization](immunization.html): Vaccination (non)-Administration Date 3971* [List](list.html): When the list was prepared 3972* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period 3973* [Procedure](procedure.html): When the procedure occurred or is occurring 3974* [RiskAssessment](riskassessment.html): When was assessment made? 3975* [SupplyRequest](supplyrequest.html): When the request was made 3976</b><br> 3977 * Type: <b>date</b><br> 3978 * Path: <b>AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn</b><br> 3979 * </p> 3980 */ 3981 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 3982 3983 /** 3984 * Search parameter: <b>encounter</b> 3985 * <p> 3986 * Description: <b>Multiple Resources: 3987 3988* [Composition](composition.html): Context of the Composition 3989* [DeviceRequest](devicerequest.html): Encounter during which request was created 3990* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made 3991* [DocumentReference](documentreference.html): Context of the document content 3992* [Flag](flag.html): Alert relevant during encounter 3993* [List](list.html): Context in which list created 3994* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier 3995* [Observation](observation.html): Encounter related to the observation 3996* [Procedure](procedure.html): The Encounter during which this Procedure was created 3997* [RiskAssessment](riskassessment.html): Where was assessment performed? 3998* [ServiceRequest](servicerequest.html): An encounter in which this request is made 3999* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier 4000</b><br> 4001 * Type: <b>reference</b><br> 4002 * Path: <b>Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter</b><br> 4003 * </p> 4004 */ 4005 @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) 4006 public static final String SP_ENCOUNTER = "encounter"; 4007 /** 4008 * <b>Fluent Client</b> search parameter constant for <b>encounter</b> 4009 * <p> 4010 * Description: <b>Multiple Resources: 4011 4012* [Composition](composition.html): Context of the Composition 4013* [DeviceRequest](devicerequest.html): Encounter during which request was created 4014* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made 4015* [DocumentReference](documentreference.html): Context of the document content 4016* [Flag](flag.html): Alert relevant during encounter 4017* [List](list.html): Context in which list created 4018* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier 4019* [Observation](observation.html): Encounter related to the observation 4020* [Procedure](procedure.html): The Encounter during which this Procedure was created 4021* [RiskAssessment](riskassessment.html): Where was assessment performed? 4022* [ServiceRequest](servicerequest.html): An encounter in which this request is made 4023* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier 4024</b><br> 4025 * Type: <b>reference</b><br> 4026 * Path: <b>Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter</b><br> 4027 * </p> 4028 */ 4029 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); 4030 4031/** 4032 * Constant for fluent queries to be used to add include statements. Specifies 4033 * the path value of "<b>Observation:encounter</b>". 4034 */ 4035 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("Observation:encounter").toLocked(); 4036 4037 /** 4038 * Search parameter: <b>identifier</b> 4039 * <p> 4040 * Description: <b>Multiple Resources: 4041 4042* [AllergyIntolerance](allergyintolerance.html): External ids for this item 4043* [CarePlan](careplan.html): External Ids for this plan 4044* [CareTeam](careteam.html): External Ids for this team 4045* [Composition](composition.html): Version-independent identifier for the Composition 4046* [Condition](condition.html): A unique identifier of the condition record 4047* [Consent](consent.html): Identifier for this record (external references) 4048* [DetectedIssue](detectedissue.html): Unique id for the detected issue 4049* [DeviceRequest](devicerequest.html): Business identifier for request/order 4050* [DiagnosticReport](diagnosticreport.html): An identifier for the report 4051* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents 4052* [DocumentReference](documentreference.html): Master Version Specific Identifier 4053* [Encounter](encounter.html): Identifier(s) by which this encounter is known 4054* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare 4055* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier 4056* [Goal](goal.html): External Ids for this goal 4057* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number 4058* [Immunization](immunization.html): Business identifier 4059* [List](list.html): Business identifier 4060* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier 4061* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier 4062* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier 4063* [MedicationUsage](medicationusage.html): Return statements with this external identifier 4064* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier 4065* [Observation](observation.html): The unique id for a particular observation 4066* [Procedure](procedure.html): A unique identifier for a procedure 4067* [RiskAssessment](riskassessment.html): Unique identifier for the assessment 4068* [ServiceRequest](servicerequest.html): Identifiers assigned to this order 4069* [SupplyDelivery](supplydelivery.html): External identifier 4070* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest 4071* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier 4072</b><br> 4073 * Type: <b>token</b><br> 4074 * 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> 4075 * </p> 4076 */ 4077 @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" ) 4078 public static final String SP_IDENTIFIER = "identifier"; 4079 /** 4080 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 4081 * <p> 4082 * Description: <b>Multiple Resources: 4083 4084* [AllergyIntolerance](allergyintolerance.html): External ids for this item 4085* [CarePlan](careplan.html): External Ids for this plan 4086* [CareTeam](careteam.html): External Ids for this team 4087* [Composition](composition.html): Version-independent identifier for the Composition 4088* [Condition](condition.html): A unique identifier of the condition record 4089* [Consent](consent.html): Identifier for this record (external references) 4090* [DetectedIssue](detectedissue.html): Unique id for the detected issue 4091* [DeviceRequest](devicerequest.html): Business identifier for request/order 4092* [DiagnosticReport](diagnosticreport.html): An identifier for the report 4093* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents 4094* [DocumentReference](documentreference.html): Master Version Specific Identifier 4095* [Encounter](encounter.html): Identifier(s) by which this encounter is known 4096* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare 4097* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier 4098* [Goal](goal.html): External Ids for this goal 4099* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number 4100* [Immunization](immunization.html): Business identifier 4101* [List](list.html): Business identifier 4102* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier 4103* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier 4104* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier 4105* [MedicationUsage](medicationusage.html): Return statements with this external identifier 4106* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier 4107* [Observation](observation.html): The unique id for a particular observation 4108* [Procedure](procedure.html): A unique identifier for a procedure 4109* [RiskAssessment](riskassessment.html): Unique identifier for the assessment 4110* [ServiceRequest](servicerequest.html): Identifiers assigned to this order 4111* [SupplyDelivery](supplydelivery.html): External identifier 4112* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest 4113* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier 4114</b><br> 4115 * Type: <b>token</b><br> 4116 * 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> 4117 * </p> 4118 */ 4119 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 4120 4121 /** 4122 * Search parameter: <b>patient</b> 4123 * <p> 4124 * Description: <b>Multiple Resources: 4125 4126* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for 4127* [CarePlan](careplan.html): Who the care plan is for 4128* [CareTeam](careteam.html): Who care team is for 4129* [ClinicalImpression](clinicalimpression.html): Patient or group assessed 4130* [Composition](composition.html): Who and/or what the composition is about 4131* [Condition](condition.html): Who has the condition? 4132* [Consent](consent.html): Who the consent applies to 4133* [DetectedIssue](detectedissue.html): Associated patient 4134* [DeviceRequest](devicerequest.html): Individual the service is ordered for 4135* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient 4136* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient 4137* [DocumentManifest](documentmanifest.html): The subject of the set of documents 4138* [DocumentReference](documentreference.html): Who/what is the subject of the document 4139* [Encounter](encounter.html): The patient or group present at the encounter 4140* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care 4141* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for 4142* [Flag](flag.html): The identity of a subject to list flags for 4143* [Goal](goal.html): Who this goal is intended for 4144* [ImagingStudy](imagingstudy.html): Who the study is about 4145* [Immunization](immunization.html): The patient for the vaccination record 4146* [List](list.html): If all resources have the same subject 4147* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for 4148* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for 4149* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient 4150* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. 4151* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement 4152* [Observation](observation.html): The subject that the observation is about (if patient) 4153* [Procedure](procedure.html): Search by subject - a patient 4154* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? 4155* [ServiceRequest](servicerequest.html): Search by subject - a patient 4156* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied 4157* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for 4158</b><br> 4159 * Type: <b>reference</b><br> 4160 * 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> 4161 * </p> 4162 */ 4163 @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) 4164 public static final String SP_PATIENT = "patient"; 4165 /** 4166 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 4167 * <p> 4168 * Description: <b>Multiple Resources: 4169 4170* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for 4171* [CarePlan](careplan.html): Who the care plan is for 4172* [CareTeam](careteam.html): Who care team is for 4173* [ClinicalImpression](clinicalimpression.html): Patient or group assessed 4174* [Composition](composition.html): Who and/or what the composition is about 4175* [Condition](condition.html): Who has the condition? 4176* [Consent](consent.html): Who the consent applies to 4177* [DetectedIssue](detectedissue.html): Associated patient 4178* [DeviceRequest](devicerequest.html): Individual the service is ordered for 4179* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient 4180* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient 4181* [DocumentManifest](documentmanifest.html): The subject of the set of documents 4182* [DocumentReference](documentreference.html): Who/what is the subject of the document 4183* [Encounter](encounter.html): The patient or group present at the encounter 4184* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care 4185* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for 4186* [Flag](flag.html): The identity of a subject to list flags for 4187* [Goal](goal.html): Who this goal is intended for 4188* [ImagingStudy](imagingstudy.html): Who the study is about 4189* [Immunization](immunization.html): The patient for the vaccination record 4190* [List](list.html): If all resources have the same subject 4191* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for 4192* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for 4193* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient 4194* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. 4195* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement 4196* [Observation](observation.html): The subject that the observation is about (if patient) 4197* [Procedure](procedure.html): Search by subject - a patient 4198* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? 4199* [ServiceRequest](servicerequest.html): Search by subject - a patient 4200* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied 4201* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for 4202</b><br> 4203 * Type: <b>reference</b><br> 4204 * 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> 4205 * </p> 4206 */ 4207 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 4208 4209/** 4210 * Constant for fluent queries to be used to add include statements. Specifies 4211 * the path value of "<b>Observation:patient</b>". 4212 */ 4213 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Observation:patient").toLocked(); 4214 4215 /** 4216 * Search parameter: <b>amino-acid-change</b> 4217 * <p> 4218 * Description: <b>HGVS Protein Change</b><br> 4219 * Type: <b>string</b><br> 4220 * Path: <b>Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')</b><br> 4221 * </p> 4222 */ 4223 @SearchParamDefinition(name="amino-acid-change", path="Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')", description="HGVS Protein Change", type="string" ) 4224 public static final String SP_AMINO_ACID_CHANGE = "amino-acid-change"; 4225 /** 4226 * <b>Fluent Client</b> search parameter constant for <b>amino-acid-change</b> 4227 * <p> 4228 * Description: <b>HGVS Protein Change</b><br> 4229 * Type: <b>string</b><br> 4230 * Path: <b>Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')</b><br> 4231 * </p> 4232 */ 4233 public static final ca.uhn.fhir.rest.gclient.StringClientParam AMINO_ACID_CHANGE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_AMINO_ACID_CHANGE); 4234 4235 /** 4236 * Search parameter: <b>dna-variant</b> 4237 * <p> 4238 * Description: <b>HGVS DNA variant</b><br> 4239 * Type: <b>string</b><br> 4240 * Path: <b>Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')</b><br> 4241 * </p> 4242 */ 4243 @SearchParamDefinition(name="dna-variant", path="Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')", description="HGVS DNA variant", type="string" ) 4244 public static final String SP_DNA_VARIANT = "dna-variant"; 4245 /** 4246 * <b>Fluent Client</b> search parameter constant for <b>dna-variant</b> 4247 * <p> 4248 * Description: <b>HGVS DNA variant</b><br> 4249 * Type: <b>string</b><br> 4250 * Path: <b>Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')</b><br> 4251 * </p> 4252 */ 4253 public static final ca.uhn.fhir.rest.gclient.StringClientParam DNA_VARIANT = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DNA_VARIANT); 4254 4255 /** 4256 * Search parameter: <b>gene-amino-acid-change</b> 4257 * <p> 4258 * Description: <b>HGNC gene symbol and HGVS Protein change</b><br> 4259 * Type: <b>string</b><br> 4260 * Path: <b>Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')</b><br> 4261 * </p> 4262 */ 4263 @SearchParamDefinition(name="gene-amino-acid-change", path="Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')", description="HGNC gene symbol and HGVS Protein change", type="string" ) 4264 public static final String SP_GENE_AMINO_ACID_CHANGE = "gene-amino-acid-change"; 4265 /** 4266 * <b>Fluent Client</b> search parameter constant for <b>gene-amino-acid-change</b> 4267 * <p> 4268 * Description: <b>HGNC gene symbol and HGVS Protein change</b><br> 4269 * Type: <b>string</b><br> 4270 * Path: <b>Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName')</b><br> 4271 * </p> 4272 */ 4273 public static final ca.uhn.fhir.rest.gclient.StringClientParam GENE_AMINO_ACID_CHANGE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_GENE_AMINO_ACID_CHANGE); 4274 4275 /** 4276 * Search parameter: <b>gene-dnavariant</b> 4277 * <p> 4278 * Description: <b>HGNC gene symbol and HGVS DNA Variant</b><br> 4279 * Type: <b>string</b><br> 4280 * Path: <b>Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')</b><br> 4281 * </p> 4282 */ 4283 @SearchParamDefinition(name="gene-dnavariant", path="Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')", description="HGNC gene symbol and HGVS DNA Variant", type="string" ) 4284 public static final String SP_GENE_DNAVARIANT = "gene-dnavariant"; 4285 /** 4286 * <b>Fluent Client</b> search parameter constant for <b>gene-dnavariant</b> 4287 * <p> 4288 * Description: <b>HGNC gene symbol and HGVS DNA Variant</b><br> 4289 * Type: <b>string</b><br> 4290 * Path: <b>Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsDnaVariant')</b><br> 4291 * </p> 4292 */ 4293 public static final ca.uhn.fhir.rest.gclient.StringClientParam GENE_DNAVARIANT = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_GENE_DNAVARIANT); 4294 4295 /** 4296 * Search parameter: <b>gene-identifier</b> 4297 * <p> 4298 * Description: <b>HGNC gene symbol and identifier</b><br> 4299 * Type: <b>token</b><br> 4300 * Path: <b>Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsGene')</b><br> 4301 * </p> 4302 */ 4303 @SearchParamDefinition(name="gene-identifier", path="Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsGene')", description="HGNC gene symbol and identifier", type="token" ) 4304 public static final String SP_GENE_IDENTIFIER = "gene-identifier"; 4305 /** 4306 * <b>Fluent Client</b> search parameter constant for <b>gene-identifier</b> 4307 * <p> 4308 * Description: <b>HGNC gene symbol and identifier</b><br> 4309 * Type: <b>token</b><br> 4310 * Path: <b>Observation.extension('http://hl7.org/fhir/StructureDefinition/observation-geneticsGene')</b><br> 4311 * </p> 4312 */ 4313 public static final ca.uhn.fhir.rest.gclient.TokenClientParam GENE_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_GENE_IDENTIFIER); 4314 4315 4316} 4317