001package org.hl7.fhir.dstu3.model; 002 003/* 004 Copyright (c) 2011+, HL7, Inc. 005 All rights reserved. 006 007 Redistribution and use in source and binary forms, with or without modification, 008 are permitted provided that the following conditions are met: 009 010 * Redistributions of source code must retain the above copyright notice, this 011 list of conditions and the following disclaimer. 012 * Redistributions in binary form must reproduce the above copyright notice, 013 this list of conditions and the following disclaimer in the documentation 014 and/or other materials provided with the distribution. 015 * Neither the name of HL7 nor the names of its contributors may be used to 016 endorse or promote products derived from this software without specific 017 prior written permission. 018 019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 020 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 021 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 022 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 023 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 024 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 025 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 026 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 027 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 028 POSSIBILITY OF SUCH DAMAGE. 029 030*/ 031 032// Generated on Fri, Mar 16, 2018 15:21+1100 for FHIR v3.0.1 033 034import java.util.*; 035 036import java.math.*; 037import org.hl7.fhir.utilities.Utilities; 038import ca.uhn.fhir.model.api.annotation.ResourceDef; 039import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 040import ca.uhn.fhir.model.api.annotation.Child; 041import ca.uhn.fhir.model.api.annotation.ChildOrder; 042import ca.uhn.fhir.model.api.annotation.Description; 043import ca.uhn.fhir.model.api.annotation.Block; 044import org.hl7.fhir.instance.model.api.*; 045import org.hl7.fhir.exceptions.FHIRException; 046import org.hl7.fhir.exceptions.FHIRFormatError; 047/** 048 * Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained or accommodated. 049 */ 050@ResourceDef(name="Location", profile="http://hl7.org/fhir/StructureDefinition/Location") 051public class Location extends DomainResource { 052 053 public enum LocationStatus { 054 /** 055 * The location is operational. 056 */ 057 ACTIVE, 058 /** 059 * The location is temporarily closed. 060 */ 061 SUSPENDED, 062 /** 063 * The location is no longer used. 064 */ 065 INACTIVE, 066 /** 067 * added to help the parsers with the generic types 068 */ 069 NULL; 070 public static LocationStatus fromCode(String codeString) throws FHIRException { 071 if (codeString == null || "".equals(codeString)) 072 return null; 073 if ("active".equals(codeString)) 074 return ACTIVE; 075 if ("suspended".equals(codeString)) 076 return SUSPENDED; 077 if ("inactive".equals(codeString)) 078 return INACTIVE; 079 if (Configuration.isAcceptInvalidEnums()) 080 return null; 081 else 082 throw new FHIRException("Unknown LocationStatus code '"+codeString+"'"); 083 } 084 public String toCode() { 085 switch (this) { 086 case ACTIVE: return "active"; 087 case SUSPENDED: return "suspended"; 088 case INACTIVE: return "inactive"; 089 default: return "?"; 090 } 091 } 092 public String getSystem() { 093 switch (this) { 094 case ACTIVE: return "http://hl7.org/fhir/location-status"; 095 case SUSPENDED: return "http://hl7.org/fhir/location-status"; 096 case INACTIVE: return "http://hl7.org/fhir/location-status"; 097 default: return "?"; 098 } 099 } 100 public String getDefinition() { 101 switch (this) { 102 case ACTIVE: return "The location is operational."; 103 case SUSPENDED: return "The location is temporarily closed."; 104 case INACTIVE: return "The location is no longer used."; 105 default: return "?"; 106 } 107 } 108 public String getDisplay() { 109 switch (this) { 110 case ACTIVE: return "Active"; 111 case SUSPENDED: return "Suspended"; 112 case INACTIVE: return "Inactive"; 113 default: return "?"; 114 } 115 } 116 } 117 118 public static class LocationStatusEnumFactory implements EnumFactory<LocationStatus> { 119 public LocationStatus fromCode(String codeString) throws IllegalArgumentException { 120 if (codeString == null || "".equals(codeString)) 121 if (codeString == null || "".equals(codeString)) 122 return null; 123 if ("active".equals(codeString)) 124 return LocationStatus.ACTIVE; 125 if ("suspended".equals(codeString)) 126 return LocationStatus.SUSPENDED; 127 if ("inactive".equals(codeString)) 128 return LocationStatus.INACTIVE; 129 throw new IllegalArgumentException("Unknown LocationStatus code '"+codeString+"'"); 130 } 131 public Enumeration<LocationStatus> fromType(Base code) throws FHIRException { 132 if (code == null) 133 return null; 134 if (code.isEmpty()) 135 return new Enumeration<LocationStatus>(this); 136 String codeString = ((PrimitiveType) code).asStringValue(); 137 if (codeString == null || "".equals(codeString)) 138 return null; 139 if ("active".equals(codeString)) 140 return new Enumeration<LocationStatus>(this, LocationStatus.ACTIVE); 141 if ("suspended".equals(codeString)) 142 return new Enumeration<LocationStatus>(this, LocationStatus.SUSPENDED); 143 if ("inactive".equals(codeString)) 144 return new Enumeration<LocationStatus>(this, LocationStatus.INACTIVE); 145 throw new FHIRException("Unknown LocationStatus code '"+codeString+"'"); 146 } 147 public String toCode(LocationStatus code) { 148 if (code == LocationStatus.ACTIVE) 149 return "active"; 150 if (code == LocationStatus.SUSPENDED) 151 return "suspended"; 152 if (code == LocationStatus.INACTIVE) 153 return "inactive"; 154 return "?"; 155 } 156 public String toSystem(LocationStatus code) { 157 return code.getSystem(); 158 } 159 } 160 161 public enum LocationMode { 162 /** 163 * The Location resource represents a specific instance of a location (e.g. Operating Theatre 1A). 164 */ 165 INSTANCE, 166 /** 167 * The Location represents a class of locations (e.g. Any Operating Theatre) although this class of locations could be constrained within a specific boundary (such as organization, or parent location, address etc.). 168 */ 169 KIND, 170 /** 171 * added to help the parsers with the generic types 172 */ 173 NULL; 174 public static LocationMode fromCode(String codeString) throws FHIRException { 175 if (codeString == null || "".equals(codeString)) 176 return null; 177 if ("instance".equals(codeString)) 178 return INSTANCE; 179 if ("kind".equals(codeString)) 180 return KIND; 181 if (Configuration.isAcceptInvalidEnums()) 182 return null; 183 else 184 throw new FHIRException("Unknown LocationMode code '"+codeString+"'"); 185 } 186 public String toCode() { 187 switch (this) { 188 case INSTANCE: return "instance"; 189 case KIND: return "kind"; 190 default: return "?"; 191 } 192 } 193 public String getSystem() { 194 switch (this) { 195 case INSTANCE: return "http://hl7.org/fhir/location-mode"; 196 case KIND: return "http://hl7.org/fhir/location-mode"; 197 default: return "?"; 198 } 199 } 200 public String getDefinition() { 201 switch (this) { 202 case INSTANCE: return "The Location resource represents a specific instance of a location (e.g. Operating Theatre 1A)."; 203 case KIND: return "The Location represents a class of locations (e.g. Any Operating Theatre) although this class of locations could be constrained within a specific boundary (such as organization, or parent location, address etc.)."; 204 default: return "?"; 205 } 206 } 207 public String getDisplay() { 208 switch (this) { 209 case INSTANCE: return "Instance"; 210 case KIND: return "Kind"; 211 default: return "?"; 212 } 213 } 214 } 215 216 public static class LocationModeEnumFactory implements EnumFactory<LocationMode> { 217 public LocationMode fromCode(String codeString) throws IllegalArgumentException { 218 if (codeString == null || "".equals(codeString)) 219 if (codeString == null || "".equals(codeString)) 220 return null; 221 if ("instance".equals(codeString)) 222 return LocationMode.INSTANCE; 223 if ("kind".equals(codeString)) 224 return LocationMode.KIND; 225 throw new IllegalArgumentException("Unknown LocationMode code '"+codeString+"'"); 226 } 227 public Enumeration<LocationMode> fromType(Base code) throws FHIRException { 228 if (code == null) 229 return null; 230 if (code.isEmpty()) 231 return new Enumeration<LocationMode>(this); 232 String codeString = ((PrimitiveType) code).asStringValue(); 233 if (codeString == null || "".equals(codeString)) 234 return null; 235 if ("instance".equals(codeString)) 236 return new Enumeration<LocationMode>(this, LocationMode.INSTANCE); 237 if ("kind".equals(codeString)) 238 return new Enumeration<LocationMode>(this, LocationMode.KIND); 239 throw new FHIRException("Unknown LocationMode code '"+codeString+"'"); 240 } 241 public String toCode(LocationMode code) { 242 if (code == LocationMode.INSTANCE) 243 return "instance"; 244 if (code == LocationMode.KIND) 245 return "kind"; 246 return "?"; 247 } 248 public String toSystem(LocationMode code) { 249 return code.getSystem(); 250 } 251 } 252 253 @Block() 254 public static class LocationPositionComponent extends BackboneElement implements IBaseBackboneElement { 255 /** 256 * Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below). 257 */ 258 @Child(name = "longitude", type = {DecimalType.class}, order=1, min=1, max=1, modifier=false, summary=false) 259 @Description(shortDefinition="Longitude with WGS84 datum", formalDefinition="Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below)." ) 260 protected DecimalType longitude; 261 262 /** 263 * Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below). 264 */ 265 @Child(name = "latitude", type = {DecimalType.class}, order=2, min=1, max=1, modifier=false, summary=false) 266 @Description(shortDefinition="Latitude with WGS84 datum", formalDefinition="Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below)." ) 267 protected DecimalType latitude; 268 269 /** 270 * Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below). 271 */ 272 @Child(name = "altitude", type = {DecimalType.class}, order=3, min=0, max=1, modifier=false, summary=false) 273 @Description(shortDefinition="Altitude with WGS84 datum", formalDefinition="Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below)." ) 274 protected DecimalType altitude; 275 276 private static final long serialVersionUID = -74276134L; 277 278 /** 279 * Constructor 280 */ 281 public LocationPositionComponent() { 282 super(); 283 } 284 285 /** 286 * Constructor 287 */ 288 public LocationPositionComponent(DecimalType longitude, DecimalType latitude) { 289 super(); 290 this.longitude = longitude; 291 this.latitude = latitude; 292 } 293 294 /** 295 * @return {@link #longitude} (Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below).). This is the underlying object with id, value and extensions. The accessor "getLongitude" gives direct access to the value 296 */ 297 public DecimalType getLongitudeElement() { 298 if (this.longitude == null) 299 if (Configuration.errorOnAutoCreate()) 300 throw new Error("Attempt to auto-create LocationPositionComponent.longitude"); 301 else if (Configuration.doAutoCreate()) 302 this.longitude = new DecimalType(); // bb 303 return this.longitude; 304 } 305 306 public boolean hasLongitudeElement() { 307 return this.longitude != null && !this.longitude.isEmpty(); 308 } 309 310 public boolean hasLongitude() { 311 return this.longitude != null && !this.longitude.isEmpty(); 312 } 313 314 /** 315 * @param value {@link #longitude} (Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below).). This is the underlying object with id, value and extensions. The accessor "getLongitude" gives direct access to the value 316 */ 317 public LocationPositionComponent setLongitudeElement(DecimalType value) { 318 this.longitude = value; 319 return this; 320 } 321 322 /** 323 * @return Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below). 324 */ 325 public BigDecimal getLongitude() { 326 return this.longitude == null ? null : this.longitude.getValue(); 327 } 328 329 /** 330 * @param value Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below). 331 */ 332 public LocationPositionComponent setLongitude(BigDecimal value) { 333 if (this.longitude == null) 334 this.longitude = new DecimalType(); 335 this.longitude.setValue(value); 336 return this; 337 } 338 339 /** 340 * @param value Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below). 341 */ 342 public LocationPositionComponent setLongitude(long value) { 343 this.longitude = new DecimalType(); 344 this.longitude.setValue(value); 345 return this; 346 } 347 348 /** 349 * @param value Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below). 350 */ 351 public LocationPositionComponent setLongitude(double value) { 352 this.longitude = new DecimalType(); 353 this.longitude.setValue(value); 354 return this; 355 } 356 357 /** 358 * @return {@link #latitude} (Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below).). This is the underlying object with id, value and extensions. The accessor "getLatitude" gives direct access to the value 359 */ 360 public DecimalType getLatitudeElement() { 361 if (this.latitude == null) 362 if (Configuration.errorOnAutoCreate()) 363 throw new Error("Attempt to auto-create LocationPositionComponent.latitude"); 364 else if (Configuration.doAutoCreate()) 365 this.latitude = new DecimalType(); // bb 366 return this.latitude; 367 } 368 369 public boolean hasLatitudeElement() { 370 return this.latitude != null && !this.latitude.isEmpty(); 371 } 372 373 public boolean hasLatitude() { 374 return this.latitude != null && !this.latitude.isEmpty(); 375 } 376 377 /** 378 * @param value {@link #latitude} (Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below).). This is the underlying object with id, value and extensions. The accessor "getLatitude" gives direct access to the value 379 */ 380 public LocationPositionComponent setLatitudeElement(DecimalType value) { 381 this.latitude = value; 382 return this; 383 } 384 385 /** 386 * @return Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below). 387 */ 388 public BigDecimal getLatitude() { 389 return this.latitude == null ? null : this.latitude.getValue(); 390 } 391 392 /** 393 * @param value Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below). 394 */ 395 public LocationPositionComponent setLatitude(BigDecimal value) { 396 if (this.latitude == null) 397 this.latitude = new DecimalType(); 398 this.latitude.setValue(value); 399 return this; 400 } 401 402 /** 403 * @param value Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below). 404 */ 405 public LocationPositionComponent setLatitude(long value) { 406 this.latitude = new DecimalType(); 407 this.latitude.setValue(value); 408 return this; 409 } 410 411 /** 412 * @param value Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below). 413 */ 414 public LocationPositionComponent setLatitude(double value) { 415 this.latitude = new DecimalType(); 416 this.latitude.setValue(value); 417 return this; 418 } 419 420 /** 421 * @return {@link #altitude} (Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below).). This is the underlying object with id, value and extensions. The accessor "getAltitude" gives direct access to the value 422 */ 423 public DecimalType getAltitudeElement() { 424 if (this.altitude == null) 425 if (Configuration.errorOnAutoCreate()) 426 throw new Error("Attempt to auto-create LocationPositionComponent.altitude"); 427 else if (Configuration.doAutoCreate()) 428 this.altitude = new DecimalType(); // bb 429 return this.altitude; 430 } 431 432 public boolean hasAltitudeElement() { 433 return this.altitude != null && !this.altitude.isEmpty(); 434 } 435 436 public boolean hasAltitude() { 437 return this.altitude != null && !this.altitude.isEmpty(); 438 } 439 440 /** 441 * @param value {@link #altitude} (Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below).). This is the underlying object with id, value and extensions. The accessor "getAltitude" gives direct access to the value 442 */ 443 public LocationPositionComponent setAltitudeElement(DecimalType value) { 444 this.altitude = value; 445 return this; 446 } 447 448 /** 449 * @return Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below). 450 */ 451 public BigDecimal getAltitude() { 452 return this.altitude == null ? null : this.altitude.getValue(); 453 } 454 455 /** 456 * @param value Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below). 457 */ 458 public LocationPositionComponent setAltitude(BigDecimal value) { 459 if (value == null) 460 this.altitude = null; 461 else { 462 if (this.altitude == null) 463 this.altitude = new DecimalType(); 464 this.altitude.setValue(value); 465 } 466 return this; 467 } 468 469 /** 470 * @param value Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below). 471 */ 472 public LocationPositionComponent setAltitude(long value) { 473 this.altitude = new DecimalType(); 474 this.altitude.setValue(value); 475 return this; 476 } 477 478 /** 479 * @param value Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below). 480 */ 481 public LocationPositionComponent setAltitude(double value) { 482 this.altitude = new DecimalType(); 483 this.altitude.setValue(value); 484 return this; 485 } 486 487 protected void listChildren(List<Property> children) { 488 super.listChildren(children); 489 children.add(new Property("longitude", "decimal", "Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below).", 0, 1, longitude)); 490 children.add(new Property("latitude", "decimal", "Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below).", 0, 1, latitude)); 491 children.add(new Property("altitude", "decimal", "Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below).", 0, 1, altitude)); 492 } 493 494 @Override 495 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 496 switch (_hash) { 497 case 137365935: /*longitude*/ return new Property("longitude", "decimal", "Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below).", 0, 1, longitude); 498 case -1439978388: /*latitude*/ return new Property("latitude", "decimal", "Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below).", 0, 1, latitude); 499 case 2036550306: /*altitude*/ return new Property("altitude", "decimal", "Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below).", 0, 1, altitude); 500 default: return super.getNamedProperty(_hash, _name, _checkValid); 501 } 502 503 } 504 505 @Override 506 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 507 switch (hash) { 508 case 137365935: /*longitude*/ return this.longitude == null ? new Base[0] : new Base[] {this.longitude}; // DecimalType 509 case -1439978388: /*latitude*/ return this.latitude == null ? new Base[0] : new Base[] {this.latitude}; // DecimalType 510 case 2036550306: /*altitude*/ return this.altitude == null ? new Base[0] : new Base[] {this.altitude}; // DecimalType 511 default: return super.getProperty(hash, name, checkValid); 512 } 513 514 } 515 516 @Override 517 public Base setProperty(int hash, String name, Base value) throws FHIRException { 518 switch (hash) { 519 case 137365935: // longitude 520 this.longitude = castToDecimal(value); // DecimalType 521 return value; 522 case -1439978388: // latitude 523 this.latitude = castToDecimal(value); // DecimalType 524 return value; 525 case 2036550306: // altitude 526 this.altitude = castToDecimal(value); // DecimalType 527 return value; 528 default: return super.setProperty(hash, name, value); 529 } 530 531 } 532 533 @Override 534 public Base setProperty(String name, Base value) throws FHIRException { 535 if (name.equals("longitude")) { 536 this.longitude = castToDecimal(value); // DecimalType 537 } else if (name.equals("latitude")) { 538 this.latitude = castToDecimal(value); // DecimalType 539 } else if (name.equals("altitude")) { 540 this.altitude = castToDecimal(value); // DecimalType 541 } else 542 return super.setProperty(name, value); 543 return value; 544 } 545 546 @Override 547 public Base makeProperty(int hash, String name) throws FHIRException { 548 switch (hash) { 549 case 137365935: return getLongitudeElement(); 550 case -1439978388: return getLatitudeElement(); 551 case 2036550306: return getAltitudeElement(); 552 default: return super.makeProperty(hash, name); 553 } 554 555 } 556 557 @Override 558 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 559 switch (hash) { 560 case 137365935: /*longitude*/ return new String[] {"decimal"}; 561 case -1439978388: /*latitude*/ return new String[] {"decimal"}; 562 case 2036550306: /*altitude*/ return new String[] {"decimal"}; 563 default: return super.getTypesForProperty(hash, name); 564 } 565 566 } 567 568 @Override 569 public Base addChild(String name) throws FHIRException { 570 if (name.equals("longitude")) { 571 throw new FHIRException("Cannot call addChild on a primitive type Location.longitude"); 572 } 573 else if (name.equals("latitude")) { 574 throw new FHIRException("Cannot call addChild on a primitive type Location.latitude"); 575 } 576 else if (name.equals("altitude")) { 577 throw new FHIRException("Cannot call addChild on a primitive type Location.altitude"); 578 } 579 else 580 return super.addChild(name); 581 } 582 583 public LocationPositionComponent copy() { 584 LocationPositionComponent dst = new LocationPositionComponent(); 585 copyValues(dst); 586 dst.longitude = longitude == null ? null : longitude.copy(); 587 dst.latitude = latitude == null ? null : latitude.copy(); 588 dst.altitude = altitude == null ? null : altitude.copy(); 589 return dst; 590 } 591 592 @Override 593 public boolean equalsDeep(Base other_) { 594 if (!super.equalsDeep(other_)) 595 return false; 596 if (!(other_ instanceof LocationPositionComponent)) 597 return false; 598 LocationPositionComponent o = (LocationPositionComponent) other_; 599 return compareDeep(longitude, o.longitude, true) && compareDeep(latitude, o.latitude, true) && compareDeep(altitude, o.altitude, true) 600 ; 601 } 602 603 @Override 604 public boolean equalsShallow(Base other_) { 605 if (!super.equalsShallow(other_)) 606 return false; 607 if (!(other_ instanceof LocationPositionComponent)) 608 return false; 609 LocationPositionComponent o = (LocationPositionComponent) other_; 610 return compareValues(longitude, o.longitude, true) && compareValues(latitude, o.latitude, true) && compareValues(altitude, o.altitude, true) 611 ; 612 } 613 614 public boolean isEmpty() { 615 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(longitude, latitude, altitude 616 ); 617 } 618 619 public String fhirType() { 620 return "Location.position"; 621 622 } 623 624 } 625 626 /** 627 * Unique code or number identifying the location to its users. 628 */ 629 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 630 @Description(shortDefinition="Unique code or number identifying the location to its users", formalDefinition="Unique code or number identifying the location to its users." ) 631 protected List<Identifier> identifier; 632 633 /** 634 * The status property covers the general availability of the resource, not the current value which may be covered by the operationStatus, or by a schedule/slots if they are configured for the location. 635 */ 636 @Child(name = "status", type = {CodeType.class}, order=1, min=0, max=1, modifier=true, summary=true) 637 @Description(shortDefinition="active | suspended | inactive", formalDefinition="The status property covers the general availability of the resource, not the current value which may be covered by the operationStatus, or by a schedule/slots if they are configured for the location." ) 638 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/location-status") 639 protected Enumeration<LocationStatus> status; 640 641 /** 642 * The Operational status covers operation values most relevant to beds (but can also apply to rooms/units/chair/etc such as an isolation unit/dialisys chair). This typically covers concepts such as contamination, housekeeping and other activities like maintenance. 643 */ 644 @Child(name = "operationalStatus", type = {Coding.class}, order=2, min=0, max=1, modifier=false, summary=true) 645 @Description(shortDefinition="The Operational status of the location (typically only for a bed/room)", formalDefinition="The Operational status covers operation values most relevant to beds (but can also apply to rooms/units/chair/etc such as an isolation unit/dialisys chair). This typically covers concepts such as contamination, housekeeping and other activities like maintenance." ) 646 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/v2-0116") 647 protected Coding operationalStatus; 648 649 /** 650 * Name of the location as used by humans. Does not need to be unique. 651 */ 652 @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) 653 @Description(shortDefinition="Name of the location as used by humans", formalDefinition="Name of the location as used by humans. Does not need to be unique." ) 654 protected StringType name; 655 656 /** 657 * A list of alternate names that the location is known as, or was known as in the past. 658 */ 659 @Child(name = "alias", type = {StringType.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 660 @Description(shortDefinition="A list of alternate names that the location is known as, or was known as in the past", formalDefinition="A list of alternate names that the location is known as, or was known as in the past." ) 661 protected List<StringType> alias; 662 663 /** 664 * Description of the Location, which helps in finding or referencing the place. 665 */ 666 @Child(name = "description", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=true) 667 @Description(shortDefinition="Additional details about the location that could be displayed as further information to identify the location beyond its name", formalDefinition="Description of the Location, which helps in finding or referencing the place." ) 668 protected StringType description; 669 670 /** 671 * Indicates whether a resource instance represents a specific location or a class of locations. 672 */ 673 @Child(name = "mode", type = {CodeType.class}, order=6, min=0, max=1, modifier=true, summary=true) 674 @Description(shortDefinition="instance | kind", formalDefinition="Indicates whether a resource instance represents a specific location or a class of locations." ) 675 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/location-mode") 676 protected Enumeration<LocationMode> mode; 677 678 /** 679 * Indicates the type of function performed at the location. 680 */ 681 @Child(name = "type", type = {CodeableConcept.class}, order=7, min=0, max=1, modifier=false, summary=true) 682 @Description(shortDefinition="Type of function performed", formalDefinition="Indicates the type of function performed at the location." ) 683 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/v3-ServiceDeliveryLocationRoleType") 684 protected CodeableConcept type; 685 686 /** 687 * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites. 688 */ 689 @Child(name = "telecom", type = {ContactPoint.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 690 @Description(shortDefinition="Contact details of the location", formalDefinition="The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites." ) 691 protected List<ContactPoint> telecom; 692 693 /** 694 * Physical location. 695 */ 696 @Child(name = "address", type = {Address.class}, order=9, min=0, max=1, modifier=false, summary=false) 697 @Description(shortDefinition="Physical location", formalDefinition="Physical location." ) 698 protected Address address; 699 700 /** 701 * Physical form of the location, e.g. building, room, vehicle, road. 702 */ 703 @Child(name = "physicalType", type = {CodeableConcept.class}, order=10, min=0, max=1, modifier=false, summary=true) 704 @Description(shortDefinition="Physical form of the location", formalDefinition="Physical form of the location, e.g. building, room, vehicle, road." ) 705 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/location-physical-type") 706 protected CodeableConcept physicalType; 707 708 /** 709 * The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML). 710 */ 711 @Child(name = "position", type = {}, order=11, min=0, max=1, modifier=false, summary=false) 712 @Description(shortDefinition="The absolute geographic location", formalDefinition="The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML)." ) 713 protected LocationPositionComponent position; 714 715 /** 716 * The organization responsible for the provisioning and upkeep of the location. 717 */ 718 @Child(name = "managingOrganization", type = {Organization.class}, order=12, min=0, max=1, modifier=false, summary=true) 719 @Description(shortDefinition="Organization responsible for provisioning and upkeep", formalDefinition="The organization responsible for the provisioning and upkeep of the location." ) 720 protected Reference managingOrganization; 721 722 /** 723 * The actual object that is the target of the reference (The organization responsible for the provisioning and upkeep of the location.) 724 */ 725 protected Organization managingOrganizationTarget; 726 727 /** 728 * Another Location which this Location is physically part of. 729 */ 730 @Child(name = "partOf", type = {Location.class}, order=13, min=0, max=1, modifier=false, summary=false) 731 @Description(shortDefinition="Another Location this one is physically part of", formalDefinition="Another Location which this Location is physically part of." ) 732 protected Reference partOf; 733 734 /** 735 * The actual object that is the target of the reference (Another Location which this Location is physically part of.) 736 */ 737 protected Location partOfTarget; 738 739 /** 740 * Technical endpoints providing access to services operated for the location. 741 */ 742 @Child(name = "endpoint", type = {Endpoint.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 743 @Description(shortDefinition="Technical endpoints providing access to services operated for the location", formalDefinition="Technical endpoints providing access to services operated for the location." ) 744 protected List<Reference> endpoint; 745 /** 746 * The actual objects that are the target of the reference (Technical endpoints providing access to services operated for the location.) 747 */ 748 protected List<Endpoint> endpointTarget; 749 750 751 private static final long serialVersionUID = -1603579027L; 752 753 /** 754 * Constructor 755 */ 756 public Location() { 757 super(); 758 } 759 760 /** 761 * @return {@link #identifier} (Unique code or number identifying the location to its users.) 762 */ 763 public List<Identifier> getIdentifier() { 764 if (this.identifier == null) 765 this.identifier = new ArrayList<Identifier>(); 766 return this.identifier; 767 } 768 769 /** 770 * @return Returns a reference to <code>this</code> for easy method chaining 771 */ 772 public Location setIdentifier(List<Identifier> theIdentifier) { 773 this.identifier = theIdentifier; 774 return this; 775 } 776 777 public boolean hasIdentifier() { 778 if (this.identifier == null) 779 return false; 780 for (Identifier item : this.identifier) 781 if (!item.isEmpty()) 782 return true; 783 return false; 784 } 785 786 public Identifier addIdentifier() { //3 787 Identifier t = new Identifier(); 788 if (this.identifier == null) 789 this.identifier = new ArrayList<Identifier>(); 790 this.identifier.add(t); 791 return t; 792 } 793 794 public Location addIdentifier(Identifier t) { //3 795 if (t == null) 796 return this; 797 if (this.identifier == null) 798 this.identifier = new ArrayList<Identifier>(); 799 this.identifier.add(t); 800 return this; 801 } 802 803 /** 804 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist 805 */ 806 public Identifier getIdentifierFirstRep() { 807 if (getIdentifier().isEmpty()) { 808 addIdentifier(); 809 } 810 return getIdentifier().get(0); 811 } 812 813 /** 814 * @return {@link #status} (The status property covers the general availability of the resource, not the current value which may be covered by the operationStatus, or by a schedule/slots if they are configured for the location.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 815 */ 816 public Enumeration<LocationStatus> getStatusElement() { 817 if (this.status == null) 818 if (Configuration.errorOnAutoCreate()) 819 throw new Error("Attempt to auto-create Location.status"); 820 else if (Configuration.doAutoCreate()) 821 this.status = new Enumeration<LocationStatus>(new LocationStatusEnumFactory()); // bb 822 return this.status; 823 } 824 825 public boolean hasStatusElement() { 826 return this.status != null && !this.status.isEmpty(); 827 } 828 829 public boolean hasStatus() { 830 return this.status != null && !this.status.isEmpty(); 831 } 832 833 /** 834 * @param value {@link #status} (The status property covers the general availability of the resource, not the current value which may be covered by the operationStatus, or by a schedule/slots if they are configured for the location.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 835 */ 836 public Location setStatusElement(Enumeration<LocationStatus> value) { 837 this.status = value; 838 return this; 839 } 840 841 /** 842 * @return The status property covers the general availability of the resource, not the current value which may be covered by the operationStatus, or by a schedule/slots if they are configured for the location. 843 */ 844 public LocationStatus getStatus() { 845 return this.status == null ? null : this.status.getValue(); 846 } 847 848 /** 849 * @param value The status property covers the general availability of the resource, not the current value which may be covered by the operationStatus, or by a schedule/slots if they are configured for the location. 850 */ 851 public Location setStatus(LocationStatus value) { 852 if (value == null) 853 this.status = null; 854 else { 855 if (this.status == null) 856 this.status = new Enumeration<LocationStatus>(new LocationStatusEnumFactory()); 857 this.status.setValue(value); 858 } 859 return this; 860 } 861 862 /** 863 * @return {@link #operationalStatus} (The Operational status covers operation values most relevant to beds (but can also apply to rooms/units/chair/etc such as an isolation unit/dialisys chair). This typically covers concepts such as contamination, housekeeping and other activities like maintenance.) 864 */ 865 public Coding getOperationalStatus() { 866 if (this.operationalStatus == null) 867 if (Configuration.errorOnAutoCreate()) 868 throw new Error("Attempt to auto-create Location.operationalStatus"); 869 else if (Configuration.doAutoCreate()) 870 this.operationalStatus = new Coding(); // cc 871 return this.operationalStatus; 872 } 873 874 public boolean hasOperationalStatus() { 875 return this.operationalStatus != null && !this.operationalStatus.isEmpty(); 876 } 877 878 /** 879 * @param value {@link #operationalStatus} (The Operational status covers operation values most relevant to beds (but can also apply to rooms/units/chair/etc such as an isolation unit/dialisys chair). This typically covers concepts such as contamination, housekeeping and other activities like maintenance.) 880 */ 881 public Location setOperationalStatus(Coding value) { 882 this.operationalStatus = value; 883 return this; 884 } 885 886 /** 887 * @return {@link #name} (Name of the location as used by humans. Does not need to be unique.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 888 */ 889 public StringType getNameElement() { 890 if (this.name == null) 891 if (Configuration.errorOnAutoCreate()) 892 throw new Error("Attempt to auto-create Location.name"); 893 else if (Configuration.doAutoCreate()) 894 this.name = new StringType(); // bb 895 return this.name; 896 } 897 898 public boolean hasNameElement() { 899 return this.name != null && !this.name.isEmpty(); 900 } 901 902 public boolean hasName() { 903 return this.name != null && !this.name.isEmpty(); 904 } 905 906 /** 907 * @param value {@link #name} (Name of the location as used by humans. Does not need to be unique.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 908 */ 909 public Location setNameElement(StringType value) { 910 this.name = value; 911 return this; 912 } 913 914 /** 915 * @return Name of the location as used by humans. Does not need to be unique. 916 */ 917 public String getName() { 918 return this.name == null ? null : this.name.getValue(); 919 } 920 921 /** 922 * @param value Name of the location as used by humans. Does not need to be unique. 923 */ 924 public Location setName(String value) { 925 if (Utilities.noString(value)) 926 this.name = null; 927 else { 928 if (this.name == null) 929 this.name = new StringType(); 930 this.name.setValue(value); 931 } 932 return this; 933 } 934 935 /** 936 * @return {@link #alias} (A list of alternate names that the location is known as, or was known as in the past.) 937 */ 938 public List<StringType> getAlias() { 939 if (this.alias == null) 940 this.alias = new ArrayList<StringType>(); 941 return this.alias; 942 } 943 944 /** 945 * @return Returns a reference to <code>this</code> for easy method chaining 946 */ 947 public Location setAlias(List<StringType> theAlias) { 948 this.alias = theAlias; 949 return this; 950 } 951 952 public boolean hasAlias() { 953 if (this.alias == null) 954 return false; 955 for (StringType item : this.alias) 956 if (!item.isEmpty()) 957 return true; 958 return false; 959 } 960 961 /** 962 * @return {@link #alias} (A list of alternate names that the location is known as, or was known as in the past.) 963 */ 964 public StringType addAliasElement() {//2 965 StringType t = new StringType(); 966 if (this.alias == null) 967 this.alias = new ArrayList<StringType>(); 968 this.alias.add(t); 969 return t; 970 } 971 972 /** 973 * @param value {@link #alias} (A list of alternate names that the location is known as, or was known as in the past.) 974 */ 975 public Location addAlias(String value) { //1 976 StringType t = new StringType(); 977 t.setValue(value); 978 if (this.alias == null) 979 this.alias = new ArrayList<StringType>(); 980 this.alias.add(t); 981 return this; 982 } 983 984 /** 985 * @param value {@link #alias} (A list of alternate names that the location is known as, or was known as in the past.) 986 */ 987 public boolean hasAlias(String value) { 988 if (this.alias == null) 989 return false; 990 for (StringType v : this.alias) 991 if (v.getValue().equals(value)) // string 992 return true; 993 return false; 994 } 995 996 /** 997 * @return {@link #description} (Description of the Location, which helps in finding or referencing the place.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 998 */ 999 public StringType getDescriptionElement() { 1000 if (this.description == null) 1001 if (Configuration.errorOnAutoCreate()) 1002 throw new Error("Attempt to auto-create Location.description"); 1003 else if (Configuration.doAutoCreate()) 1004 this.description = new StringType(); // bb 1005 return this.description; 1006 } 1007 1008 public boolean hasDescriptionElement() { 1009 return this.description != null && !this.description.isEmpty(); 1010 } 1011 1012 public boolean hasDescription() { 1013 return this.description != null && !this.description.isEmpty(); 1014 } 1015 1016 /** 1017 * @param value {@link #description} (Description of the Location, which helps in finding or referencing the place.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 1018 */ 1019 public Location setDescriptionElement(StringType value) { 1020 this.description = value; 1021 return this; 1022 } 1023 1024 /** 1025 * @return Description of the Location, which helps in finding or referencing the place. 1026 */ 1027 public String getDescription() { 1028 return this.description == null ? null : this.description.getValue(); 1029 } 1030 1031 /** 1032 * @param value Description of the Location, which helps in finding or referencing the place. 1033 */ 1034 public Location setDescription(String value) { 1035 if (Utilities.noString(value)) 1036 this.description = null; 1037 else { 1038 if (this.description == null) 1039 this.description = new StringType(); 1040 this.description.setValue(value); 1041 } 1042 return this; 1043 } 1044 1045 /** 1046 * @return {@link #mode} (Indicates whether a resource instance represents a specific location or a class of locations.). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value 1047 */ 1048 public Enumeration<LocationMode> getModeElement() { 1049 if (this.mode == null) 1050 if (Configuration.errorOnAutoCreate()) 1051 throw new Error("Attempt to auto-create Location.mode"); 1052 else if (Configuration.doAutoCreate()) 1053 this.mode = new Enumeration<LocationMode>(new LocationModeEnumFactory()); // bb 1054 return this.mode; 1055 } 1056 1057 public boolean hasModeElement() { 1058 return this.mode != null && !this.mode.isEmpty(); 1059 } 1060 1061 public boolean hasMode() { 1062 return this.mode != null && !this.mode.isEmpty(); 1063 } 1064 1065 /** 1066 * @param value {@link #mode} (Indicates whether a resource instance represents a specific location or a class of locations.). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value 1067 */ 1068 public Location setModeElement(Enumeration<LocationMode> value) { 1069 this.mode = value; 1070 return this; 1071 } 1072 1073 /** 1074 * @return Indicates whether a resource instance represents a specific location or a class of locations. 1075 */ 1076 public LocationMode getMode() { 1077 return this.mode == null ? null : this.mode.getValue(); 1078 } 1079 1080 /** 1081 * @param value Indicates whether a resource instance represents a specific location or a class of locations. 1082 */ 1083 public Location setMode(LocationMode value) { 1084 if (value == null) 1085 this.mode = null; 1086 else { 1087 if (this.mode == null) 1088 this.mode = new Enumeration<LocationMode>(new LocationModeEnumFactory()); 1089 this.mode.setValue(value); 1090 } 1091 return this; 1092 } 1093 1094 /** 1095 * @return {@link #type} (Indicates the type of function performed at the location.) 1096 */ 1097 public CodeableConcept getType() { 1098 if (this.type == null) 1099 if (Configuration.errorOnAutoCreate()) 1100 throw new Error("Attempt to auto-create Location.type"); 1101 else if (Configuration.doAutoCreate()) 1102 this.type = new CodeableConcept(); // cc 1103 return this.type; 1104 } 1105 1106 public boolean hasType() { 1107 return this.type != null && !this.type.isEmpty(); 1108 } 1109 1110 /** 1111 * @param value {@link #type} (Indicates the type of function performed at the location.) 1112 */ 1113 public Location setType(CodeableConcept value) { 1114 this.type = value; 1115 return this; 1116 } 1117 1118 /** 1119 * @return {@link #telecom} (The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites.) 1120 */ 1121 public List<ContactPoint> getTelecom() { 1122 if (this.telecom == null) 1123 this.telecom = new ArrayList<ContactPoint>(); 1124 return this.telecom; 1125 } 1126 1127 /** 1128 * @return Returns a reference to <code>this</code> for easy method chaining 1129 */ 1130 public Location setTelecom(List<ContactPoint> theTelecom) { 1131 this.telecom = theTelecom; 1132 return this; 1133 } 1134 1135 public boolean hasTelecom() { 1136 if (this.telecom == null) 1137 return false; 1138 for (ContactPoint item : this.telecom) 1139 if (!item.isEmpty()) 1140 return true; 1141 return false; 1142 } 1143 1144 public ContactPoint addTelecom() { //3 1145 ContactPoint t = new ContactPoint(); 1146 if (this.telecom == null) 1147 this.telecom = new ArrayList<ContactPoint>(); 1148 this.telecom.add(t); 1149 return t; 1150 } 1151 1152 public Location addTelecom(ContactPoint t) { //3 1153 if (t == null) 1154 return this; 1155 if (this.telecom == null) 1156 this.telecom = new ArrayList<ContactPoint>(); 1157 this.telecom.add(t); 1158 return this; 1159 } 1160 1161 /** 1162 * @return The first repetition of repeating field {@link #telecom}, creating it if it does not already exist 1163 */ 1164 public ContactPoint getTelecomFirstRep() { 1165 if (getTelecom().isEmpty()) { 1166 addTelecom(); 1167 } 1168 return getTelecom().get(0); 1169 } 1170 1171 /** 1172 * @return {@link #address} (Physical location.) 1173 */ 1174 public Address getAddress() { 1175 if (this.address == null) 1176 if (Configuration.errorOnAutoCreate()) 1177 throw new Error("Attempt to auto-create Location.address"); 1178 else if (Configuration.doAutoCreate()) 1179 this.address = new Address(); // cc 1180 return this.address; 1181 } 1182 1183 public boolean hasAddress() { 1184 return this.address != null && !this.address.isEmpty(); 1185 } 1186 1187 /** 1188 * @param value {@link #address} (Physical location.) 1189 */ 1190 public Location setAddress(Address value) { 1191 this.address = value; 1192 return this; 1193 } 1194 1195 /** 1196 * @return {@link #physicalType} (Physical form of the location, e.g. building, room, vehicle, road.) 1197 */ 1198 public CodeableConcept getPhysicalType() { 1199 if (this.physicalType == null) 1200 if (Configuration.errorOnAutoCreate()) 1201 throw new Error("Attempt to auto-create Location.physicalType"); 1202 else if (Configuration.doAutoCreate()) 1203 this.physicalType = new CodeableConcept(); // cc 1204 return this.physicalType; 1205 } 1206 1207 public boolean hasPhysicalType() { 1208 return this.physicalType != null && !this.physicalType.isEmpty(); 1209 } 1210 1211 /** 1212 * @param value {@link #physicalType} (Physical form of the location, e.g. building, room, vehicle, road.) 1213 */ 1214 public Location setPhysicalType(CodeableConcept value) { 1215 this.physicalType = value; 1216 return this; 1217 } 1218 1219 /** 1220 * @return {@link #position} (The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML).) 1221 */ 1222 public LocationPositionComponent getPosition() { 1223 if (this.position == null) 1224 if (Configuration.errorOnAutoCreate()) 1225 throw new Error("Attempt to auto-create Location.position"); 1226 else if (Configuration.doAutoCreate()) 1227 this.position = new LocationPositionComponent(); // cc 1228 return this.position; 1229 } 1230 1231 public boolean hasPosition() { 1232 return this.position != null && !this.position.isEmpty(); 1233 } 1234 1235 /** 1236 * @param value {@link #position} (The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML).) 1237 */ 1238 public Location setPosition(LocationPositionComponent value) { 1239 this.position = value; 1240 return this; 1241 } 1242 1243 /** 1244 * @return {@link #managingOrganization} (The organization responsible for the provisioning and upkeep of the location.) 1245 */ 1246 public Reference getManagingOrganization() { 1247 if (this.managingOrganization == null) 1248 if (Configuration.errorOnAutoCreate()) 1249 throw new Error("Attempt to auto-create Location.managingOrganization"); 1250 else if (Configuration.doAutoCreate()) 1251 this.managingOrganization = new Reference(); // cc 1252 return this.managingOrganization; 1253 } 1254 1255 public boolean hasManagingOrganization() { 1256 return this.managingOrganization != null && !this.managingOrganization.isEmpty(); 1257 } 1258 1259 /** 1260 * @param value {@link #managingOrganization} (The organization responsible for the provisioning and upkeep of the location.) 1261 */ 1262 public Location setManagingOrganization(Reference value) { 1263 this.managingOrganization = value; 1264 return this; 1265 } 1266 1267 /** 1268 * @return {@link #managingOrganization} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The organization responsible for the provisioning and upkeep of the location.) 1269 */ 1270 public Organization getManagingOrganizationTarget() { 1271 if (this.managingOrganizationTarget == null) 1272 if (Configuration.errorOnAutoCreate()) 1273 throw new Error("Attempt to auto-create Location.managingOrganization"); 1274 else if (Configuration.doAutoCreate()) 1275 this.managingOrganizationTarget = new Organization(); // aa 1276 return this.managingOrganizationTarget; 1277 } 1278 1279 /** 1280 * @param value {@link #managingOrganization} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The organization responsible for the provisioning and upkeep of the location.) 1281 */ 1282 public Location setManagingOrganizationTarget(Organization value) { 1283 this.managingOrganizationTarget = value; 1284 return this; 1285 } 1286 1287 /** 1288 * @return {@link #partOf} (Another Location which this Location is physically part of.) 1289 */ 1290 public Reference getPartOf() { 1291 if (this.partOf == null) 1292 if (Configuration.errorOnAutoCreate()) 1293 throw new Error("Attempt to auto-create Location.partOf"); 1294 else if (Configuration.doAutoCreate()) 1295 this.partOf = new Reference(); // cc 1296 return this.partOf; 1297 } 1298 1299 public boolean hasPartOf() { 1300 return this.partOf != null && !this.partOf.isEmpty(); 1301 } 1302 1303 /** 1304 * @param value {@link #partOf} (Another Location which this Location is physically part of.) 1305 */ 1306 public Location setPartOf(Reference value) { 1307 this.partOf = value; 1308 return this; 1309 } 1310 1311 /** 1312 * @return {@link #partOf} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Another Location which this Location is physically part of.) 1313 */ 1314 public Location getPartOfTarget() { 1315 if (this.partOfTarget == null) 1316 if (Configuration.errorOnAutoCreate()) 1317 throw new Error("Attempt to auto-create Location.partOf"); 1318 else if (Configuration.doAutoCreate()) 1319 this.partOfTarget = new Location(); // aa 1320 return this.partOfTarget; 1321 } 1322 1323 /** 1324 * @param value {@link #partOf} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Another Location which this Location is physically part of.) 1325 */ 1326 public Location setPartOfTarget(Location value) { 1327 this.partOfTarget = value; 1328 return this; 1329 } 1330 1331 /** 1332 * @return {@link #endpoint} (Technical endpoints providing access to services operated for the location.) 1333 */ 1334 public List<Reference> getEndpoint() { 1335 if (this.endpoint == null) 1336 this.endpoint = new ArrayList<Reference>(); 1337 return this.endpoint; 1338 } 1339 1340 /** 1341 * @return Returns a reference to <code>this</code> for easy method chaining 1342 */ 1343 public Location setEndpoint(List<Reference> theEndpoint) { 1344 this.endpoint = theEndpoint; 1345 return this; 1346 } 1347 1348 public boolean hasEndpoint() { 1349 if (this.endpoint == null) 1350 return false; 1351 for (Reference item : this.endpoint) 1352 if (!item.isEmpty()) 1353 return true; 1354 return false; 1355 } 1356 1357 public Reference addEndpoint() { //3 1358 Reference t = new Reference(); 1359 if (this.endpoint == null) 1360 this.endpoint = new ArrayList<Reference>(); 1361 this.endpoint.add(t); 1362 return t; 1363 } 1364 1365 public Location addEndpoint(Reference t) { //3 1366 if (t == null) 1367 return this; 1368 if (this.endpoint == null) 1369 this.endpoint = new ArrayList<Reference>(); 1370 this.endpoint.add(t); 1371 return this; 1372 } 1373 1374 /** 1375 * @return The first repetition of repeating field {@link #endpoint}, creating it if it does not already exist 1376 */ 1377 public Reference getEndpointFirstRep() { 1378 if (getEndpoint().isEmpty()) { 1379 addEndpoint(); 1380 } 1381 return getEndpoint().get(0); 1382 } 1383 1384 /** 1385 * @deprecated Use Reference#setResource(IBaseResource) instead 1386 */ 1387 @Deprecated 1388 public List<Endpoint> getEndpointTarget() { 1389 if (this.endpointTarget == null) 1390 this.endpointTarget = new ArrayList<Endpoint>(); 1391 return this.endpointTarget; 1392 } 1393 1394 /** 1395 * @deprecated Use Reference#setResource(IBaseResource) instead 1396 */ 1397 @Deprecated 1398 public Endpoint addEndpointTarget() { 1399 Endpoint r = new Endpoint(); 1400 if (this.endpointTarget == null) 1401 this.endpointTarget = new ArrayList<Endpoint>(); 1402 this.endpointTarget.add(r); 1403 return r; 1404 } 1405 1406 protected void listChildren(List<Property> children) { 1407 super.listChildren(children); 1408 children.add(new Property("identifier", "Identifier", "Unique code or number identifying the location to its users.", 0, java.lang.Integer.MAX_VALUE, identifier)); 1409 children.add(new Property("status", "code", "The status property covers the general availability of the resource, not the current value which may be covered by the operationStatus, or by a schedule/slots if they are configured for the location.", 0, 1, status)); 1410 children.add(new Property("operationalStatus", "Coding", "The Operational status covers operation values most relevant to beds (but can also apply to rooms/units/chair/etc such as an isolation unit/dialisys chair). This typically covers concepts such as contamination, housekeeping and other activities like maintenance.", 0, 1, operationalStatus)); 1411 children.add(new Property("name", "string", "Name of the location as used by humans. Does not need to be unique.", 0, 1, name)); 1412 children.add(new Property("alias", "string", "A list of alternate names that the location is known as, or was known as in the past.", 0, java.lang.Integer.MAX_VALUE, alias)); 1413 children.add(new Property("description", "string", "Description of the Location, which helps in finding or referencing the place.", 0, 1, description)); 1414 children.add(new Property("mode", "code", "Indicates whether a resource instance represents a specific location or a class of locations.", 0, 1, mode)); 1415 children.add(new Property("type", "CodeableConcept", "Indicates the type of function performed at the location.", 0, 1, type)); 1416 children.add(new Property("telecom", "ContactPoint", "The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites.", 0, java.lang.Integer.MAX_VALUE, telecom)); 1417 children.add(new Property("address", "Address", "Physical location.", 0, 1, address)); 1418 children.add(new Property("physicalType", "CodeableConcept", "Physical form of the location, e.g. building, room, vehicle, road.", 0, 1, physicalType)); 1419 children.add(new Property("position", "", "The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML).", 0, 1, position)); 1420 children.add(new Property("managingOrganization", "Reference(Organization)", "The organization responsible for the provisioning and upkeep of the location.", 0, 1, managingOrganization)); 1421 children.add(new Property("partOf", "Reference(Location)", "Another Location which this Location is physically part of.", 0, 1, partOf)); 1422 children.add(new Property("endpoint", "Reference(Endpoint)", "Technical endpoints providing access to services operated for the location.", 0, java.lang.Integer.MAX_VALUE, endpoint)); 1423 } 1424 1425 @Override 1426 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1427 switch (_hash) { 1428 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Unique code or number identifying the location to its users.", 0, java.lang.Integer.MAX_VALUE, identifier); 1429 case -892481550: /*status*/ return new Property("status", "code", "The status property covers the general availability of the resource, not the current value which may be covered by the operationStatus, or by a schedule/slots if they are configured for the location.", 0, 1, status); 1430 case -2103166364: /*operationalStatus*/ return new Property("operationalStatus", "Coding", "The Operational status covers operation values most relevant to beds (but can also apply to rooms/units/chair/etc such as an isolation unit/dialisys chair). This typically covers concepts such as contamination, housekeeping and other activities like maintenance.", 0, 1, operationalStatus); 1431 case 3373707: /*name*/ return new Property("name", "string", "Name of the location as used by humans. Does not need to be unique.", 0, 1, name); 1432 case 92902992: /*alias*/ return new Property("alias", "string", "A list of alternate names that the location is known as, or was known as in the past.", 0, java.lang.Integer.MAX_VALUE, alias); 1433 case -1724546052: /*description*/ return new Property("description", "string", "Description of the Location, which helps in finding or referencing the place.", 0, 1, description); 1434 case 3357091: /*mode*/ return new Property("mode", "code", "Indicates whether a resource instance represents a specific location or a class of locations.", 0, 1, mode); 1435 case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Indicates the type of function performed at the location.", 0, 1, type); 1436 case -1429363305: /*telecom*/ return new Property("telecom", "ContactPoint", "The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites.", 0, java.lang.Integer.MAX_VALUE, telecom); 1437 case -1147692044: /*address*/ return new Property("address", "Address", "Physical location.", 0, 1, address); 1438 case -1474715471: /*physicalType*/ return new Property("physicalType", "CodeableConcept", "Physical form of the location, e.g. building, room, vehicle, road.", 0, 1, physicalType); 1439 case 747804969: /*position*/ return new Property("position", "", "The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML).", 0, 1, position); 1440 case -2058947787: /*managingOrganization*/ return new Property("managingOrganization", "Reference(Organization)", "The organization responsible for the provisioning and upkeep of the location.", 0, 1, managingOrganization); 1441 case -995410646: /*partOf*/ return new Property("partOf", "Reference(Location)", "Another Location which this Location is physically part of.", 0, 1, partOf); 1442 case 1741102485: /*endpoint*/ return new Property("endpoint", "Reference(Endpoint)", "Technical endpoints providing access to services operated for the location.", 0, java.lang.Integer.MAX_VALUE, endpoint); 1443 default: return super.getNamedProperty(_hash, _name, _checkValid); 1444 } 1445 1446 } 1447 1448 @Override 1449 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1450 switch (hash) { 1451 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 1452 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<LocationStatus> 1453 case -2103166364: /*operationalStatus*/ return this.operationalStatus == null ? new Base[0] : new Base[] {this.operationalStatus}; // Coding 1454 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 1455 case 92902992: /*alias*/ return this.alias == null ? new Base[0] : this.alias.toArray(new Base[this.alias.size()]); // StringType 1456 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 1457 case 3357091: /*mode*/ return this.mode == null ? new Base[0] : new Base[] {this.mode}; // Enumeration<LocationMode> 1458 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept 1459 case -1429363305: /*telecom*/ return this.telecom == null ? new Base[0] : this.telecom.toArray(new Base[this.telecom.size()]); // ContactPoint 1460 case -1147692044: /*address*/ return this.address == null ? new Base[0] : new Base[] {this.address}; // Address 1461 case -1474715471: /*physicalType*/ return this.physicalType == null ? new Base[0] : new Base[] {this.physicalType}; // CodeableConcept 1462 case 747804969: /*position*/ return this.position == null ? new Base[0] : new Base[] {this.position}; // LocationPositionComponent 1463 case -2058947787: /*managingOrganization*/ return this.managingOrganization == null ? new Base[0] : new Base[] {this.managingOrganization}; // Reference 1464 case -995410646: /*partOf*/ return this.partOf == null ? new Base[0] : new Base[] {this.partOf}; // Reference 1465 case 1741102485: /*endpoint*/ return this.endpoint == null ? new Base[0] : this.endpoint.toArray(new Base[this.endpoint.size()]); // Reference 1466 default: return super.getProperty(hash, name, checkValid); 1467 } 1468 1469 } 1470 1471 @Override 1472 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1473 switch (hash) { 1474 case -1618432855: // identifier 1475 this.getIdentifier().add(castToIdentifier(value)); // Identifier 1476 return value; 1477 case -892481550: // status 1478 value = new LocationStatusEnumFactory().fromType(castToCode(value)); 1479 this.status = (Enumeration) value; // Enumeration<LocationStatus> 1480 return value; 1481 case -2103166364: // operationalStatus 1482 this.operationalStatus = castToCoding(value); // Coding 1483 return value; 1484 case 3373707: // name 1485 this.name = castToString(value); // StringType 1486 return value; 1487 case 92902992: // alias 1488 this.getAlias().add(castToString(value)); // StringType 1489 return value; 1490 case -1724546052: // description 1491 this.description = castToString(value); // StringType 1492 return value; 1493 case 3357091: // mode 1494 value = new LocationModeEnumFactory().fromType(castToCode(value)); 1495 this.mode = (Enumeration) value; // Enumeration<LocationMode> 1496 return value; 1497 case 3575610: // type 1498 this.type = castToCodeableConcept(value); // CodeableConcept 1499 return value; 1500 case -1429363305: // telecom 1501 this.getTelecom().add(castToContactPoint(value)); // ContactPoint 1502 return value; 1503 case -1147692044: // address 1504 this.address = castToAddress(value); // Address 1505 return value; 1506 case -1474715471: // physicalType 1507 this.physicalType = castToCodeableConcept(value); // CodeableConcept 1508 return value; 1509 case 747804969: // position 1510 this.position = (LocationPositionComponent) value; // LocationPositionComponent 1511 return value; 1512 case -2058947787: // managingOrganization 1513 this.managingOrganization = castToReference(value); // Reference 1514 return value; 1515 case -995410646: // partOf 1516 this.partOf = castToReference(value); // Reference 1517 return value; 1518 case 1741102485: // endpoint 1519 this.getEndpoint().add(castToReference(value)); // Reference 1520 return value; 1521 default: return super.setProperty(hash, name, value); 1522 } 1523 1524 } 1525 1526 @Override 1527 public Base setProperty(String name, Base value) throws FHIRException { 1528 if (name.equals("identifier")) { 1529 this.getIdentifier().add(castToIdentifier(value)); 1530 } else if (name.equals("status")) { 1531 value = new LocationStatusEnumFactory().fromType(castToCode(value)); 1532 this.status = (Enumeration) value; // Enumeration<LocationStatus> 1533 } else if (name.equals("operationalStatus")) { 1534 this.operationalStatus = castToCoding(value); // Coding 1535 } else if (name.equals("name")) { 1536 this.name = castToString(value); // StringType 1537 } else if (name.equals("alias")) { 1538 this.getAlias().add(castToString(value)); 1539 } else if (name.equals("description")) { 1540 this.description = castToString(value); // StringType 1541 } else if (name.equals("mode")) { 1542 value = new LocationModeEnumFactory().fromType(castToCode(value)); 1543 this.mode = (Enumeration) value; // Enumeration<LocationMode> 1544 } else if (name.equals("type")) { 1545 this.type = castToCodeableConcept(value); // CodeableConcept 1546 } else if (name.equals("telecom")) { 1547 this.getTelecom().add(castToContactPoint(value)); 1548 } else if (name.equals("address")) { 1549 this.address = castToAddress(value); // Address 1550 } else if (name.equals("physicalType")) { 1551 this.physicalType = castToCodeableConcept(value); // CodeableConcept 1552 } else if (name.equals("position")) { 1553 this.position = (LocationPositionComponent) value; // LocationPositionComponent 1554 } else if (name.equals("managingOrganization")) { 1555 this.managingOrganization = castToReference(value); // Reference 1556 } else if (name.equals("partOf")) { 1557 this.partOf = castToReference(value); // Reference 1558 } else if (name.equals("endpoint")) { 1559 this.getEndpoint().add(castToReference(value)); 1560 } else 1561 return super.setProperty(name, value); 1562 return value; 1563 } 1564 1565 @Override 1566 public Base makeProperty(int hash, String name) throws FHIRException { 1567 switch (hash) { 1568 case -1618432855: return addIdentifier(); 1569 case -892481550: return getStatusElement(); 1570 case -2103166364: return getOperationalStatus(); 1571 case 3373707: return getNameElement(); 1572 case 92902992: return addAliasElement(); 1573 case -1724546052: return getDescriptionElement(); 1574 case 3357091: return getModeElement(); 1575 case 3575610: return getType(); 1576 case -1429363305: return addTelecom(); 1577 case -1147692044: return getAddress(); 1578 case -1474715471: return getPhysicalType(); 1579 case 747804969: return getPosition(); 1580 case -2058947787: return getManagingOrganization(); 1581 case -995410646: return getPartOf(); 1582 case 1741102485: return addEndpoint(); 1583 default: return super.makeProperty(hash, name); 1584 } 1585 1586 } 1587 1588 @Override 1589 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1590 switch (hash) { 1591 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 1592 case -892481550: /*status*/ return new String[] {"code"}; 1593 case -2103166364: /*operationalStatus*/ return new String[] {"Coding"}; 1594 case 3373707: /*name*/ return new String[] {"string"}; 1595 case 92902992: /*alias*/ return new String[] {"string"}; 1596 case -1724546052: /*description*/ return new String[] {"string"}; 1597 case 3357091: /*mode*/ return new String[] {"code"}; 1598 case 3575610: /*type*/ return new String[] {"CodeableConcept"}; 1599 case -1429363305: /*telecom*/ return new String[] {"ContactPoint"}; 1600 case -1147692044: /*address*/ return new String[] {"Address"}; 1601 case -1474715471: /*physicalType*/ return new String[] {"CodeableConcept"}; 1602 case 747804969: /*position*/ return new String[] {}; 1603 case -2058947787: /*managingOrganization*/ return new String[] {"Reference"}; 1604 case -995410646: /*partOf*/ return new String[] {"Reference"}; 1605 case 1741102485: /*endpoint*/ return new String[] {"Reference"}; 1606 default: return super.getTypesForProperty(hash, name); 1607 } 1608 1609 } 1610 1611 @Override 1612 public Base addChild(String name) throws FHIRException { 1613 if (name.equals("identifier")) { 1614 return addIdentifier(); 1615 } 1616 else if (name.equals("status")) { 1617 throw new FHIRException("Cannot call addChild on a primitive type Location.status"); 1618 } 1619 else if (name.equals("operationalStatus")) { 1620 this.operationalStatus = new Coding(); 1621 return this.operationalStatus; 1622 } 1623 else if (name.equals("name")) { 1624 throw new FHIRException("Cannot call addChild on a primitive type Location.name"); 1625 } 1626 else if (name.equals("alias")) { 1627 throw new FHIRException("Cannot call addChild on a primitive type Location.alias"); 1628 } 1629 else if (name.equals("description")) { 1630 throw new FHIRException("Cannot call addChild on a primitive type Location.description"); 1631 } 1632 else if (name.equals("mode")) { 1633 throw new FHIRException("Cannot call addChild on a primitive type Location.mode"); 1634 } 1635 else if (name.equals("type")) { 1636 this.type = new CodeableConcept(); 1637 return this.type; 1638 } 1639 else if (name.equals("telecom")) { 1640 return addTelecom(); 1641 } 1642 else if (name.equals("address")) { 1643 this.address = new Address(); 1644 return this.address; 1645 } 1646 else if (name.equals("physicalType")) { 1647 this.physicalType = new CodeableConcept(); 1648 return this.physicalType; 1649 } 1650 else if (name.equals("position")) { 1651 this.position = new LocationPositionComponent(); 1652 return this.position; 1653 } 1654 else if (name.equals("managingOrganization")) { 1655 this.managingOrganization = new Reference(); 1656 return this.managingOrganization; 1657 } 1658 else if (name.equals("partOf")) { 1659 this.partOf = new Reference(); 1660 return this.partOf; 1661 } 1662 else if (name.equals("endpoint")) { 1663 return addEndpoint(); 1664 } 1665 else 1666 return super.addChild(name); 1667 } 1668 1669 public String fhirType() { 1670 return "Location"; 1671 1672 } 1673 1674 public Location copy() { 1675 Location dst = new Location(); 1676 copyValues(dst); 1677 if (identifier != null) { 1678 dst.identifier = new ArrayList<Identifier>(); 1679 for (Identifier i : identifier) 1680 dst.identifier.add(i.copy()); 1681 }; 1682 dst.status = status == null ? null : status.copy(); 1683 dst.operationalStatus = operationalStatus == null ? null : operationalStatus.copy(); 1684 dst.name = name == null ? null : name.copy(); 1685 if (alias != null) { 1686 dst.alias = new ArrayList<StringType>(); 1687 for (StringType i : alias) 1688 dst.alias.add(i.copy()); 1689 }; 1690 dst.description = description == null ? null : description.copy(); 1691 dst.mode = mode == null ? null : mode.copy(); 1692 dst.type = type == null ? null : type.copy(); 1693 if (telecom != null) { 1694 dst.telecom = new ArrayList<ContactPoint>(); 1695 for (ContactPoint i : telecom) 1696 dst.telecom.add(i.copy()); 1697 }; 1698 dst.address = address == null ? null : address.copy(); 1699 dst.physicalType = physicalType == null ? null : physicalType.copy(); 1700 dst.position = position == null ? null : position.copy(); 1701 dst.managingOrganization = managingOrganization == null ? null : managingOrganization.copy(); 1702 dst.partOf = partOf == null ? null : partOf.copy(); 1703 if (endpoint != null) { 1704 dst.endpoint = new ArrayList<Reference>(); 1705 for (Reference i : endpoint) 1706 dst.endpoint.add(i.copy()); 1707 }; 1708 return dst; 1709 } 1710 1711 protected Location typedCopy() { 1712 return copy(); 1713 } 1714 1715 @Override 1716 public boolean equalsDeep(Base other_) { 1717 if (!super.equalsDeep(other_)) 1718 return false; 1719 if (!(other_ instanceof Location)) 1720 return false; 1721 Location o = (Location) other_; 1722 return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(operationalStatus, o.operationalStatus, true) 1723 && compareDeep(name, o.name, true) && compareDeep(alias, o.alias, true) && compareDeep(description, o.description, true) 1724 && compareDeep(mode, o.mode, true) && compareDeep(type, o.type, true) && compareDeep(telecom, o.telecom, true) 1725 && compareDeep(address, o.address, true) && compareDeep(physicalType, o.physicalType, true) && compareDeep(position, o.position, true) 1726 && compareDeep(managingOrganization, o.managingOrganization, true) && compareDeep(partOf, o.partOf, true) 1727 && compareDeep(endpoint, o.endpoint, true); 1728 } 1729 1730 @Override 1731 public boolean equalsShallow(Base other_) { 1732 if (!super.equalsShallow(other_)) 1733 return false; 1734 if (!(other_ instanceof Location)) 1735 return false; 1736 Location o = (Location) other_; 1737 return compareValues(status, o.status, true) && compareValues(name, o.name, true) && compareValues(alias, o.alias, true) 1738 && compareValues(description, o.description, true) && compareValues(mode, o.mode, true); 1739 } 1740 1741 public boolean isEmpty() { 1742 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, operationalStatus 1743 , name, alias, description, mode, type, telecom, address, physicalType, position 1744 , managingOrganization, partOf, endpoint); 1745 } 1746 1747 @Override 1748 public ResourceType getResourceType() { 1749 return ResourceType.Location; 1750 } 1751 1752 /** 1753 * Search parameter: <b>identifier</b> 1754 * <p> 1755 * Description: <b>An identifier for the location</b><br> 1756 * Type: <b>token</b><br> 1757 * Path: <b>Location.identifier</b><br> 1758 * </p> 1759 */ 1760 @SearchParamDefinition(name="identifier", path="Location.identifier", description="An identifier for the location", type="token" ) 1761 public static final String SP_IDENTIFIER = "identifier"; 1762 /** 1763 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 1764 * <p> 1765 * Description: <b>An identifier for the location</b><br> 1766 * Type: <b>token</b><br> 1767 * Path: <b>Location.identifier</b><br> 1768 * </p> 1769 */ 1770 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 1771 1772 /** 1773 * Search parameter: <b>partof</b> 1774 * <p> 1775 * Description: <b>A location of which this location is a part</b><br> 1776 * Type: <b>reference</b><br> 1777 * Path: <b>Location.partOf</b><br> 1778 * </p> 1779 */ 1780 @SearchParamDefinition(name="partof", path="Location.partOf", description="A location of which this location is a part", type="reference", target={Location.class } ) 1781 public static final String SP_PARTOF = "partof"; 1782 /** 1783 * <b>Fluent Client</b> search parameter constant for <b>partof</b> 1784 * <p> 1785 * Description: <b>A location of which this location is a part</b><br> 1786 * Type: <b>reference</b><br> 1787 * Path: <b>Location.partOf</b><br> 1788 * </p> 1789 */ 1790 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARTOF = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PARTOF); 1791 1792/** 1793 * Constant for fluent queries to be used to add include statements. Specifies 1794 * the path value of "<b>Location:partof</b>". 1795 */ 1796 public static final ca.uhn.fhir.model.api.Include INCLUDE_PARTOF = new ca.uhn.fhir.model.api.Include("Location:partof").toLocked(); 1797 1798 /** 1799 * Search parameter: <b>near-distance</b> 1800 * <p> 1801 * Description: <b>A distance quantity to limit the near search to locations within a specific distance 1802 1803Requires the near parameter to also be included</b><br> 1804 * Type: <b>quantity</b><br> 1805 * Path: <b>Location.position</b><br> 1806 * </p> 1807 */ 1808 @SearchParamDefinition(name="near-distance", path="Location.position", description="A distance quantity to limit the near search to locations within a specific distance\n\nRequires the near parameter to also be included", type="quantity" ) 1809 public static final String SP_NEAR_DISTANCE = "near-distance"; 1810 /** 1811 * <b>Fluent Client</b> search parameter constant for <b>near-distance</b> 1812 * <p> 1813 * Description: <b>A distance quantity to limit the near search to locations within a specific distance 1814 1815Requires the near parameter to also be included</b><br> 1816 * Type: <b>quantity</b><br> 1817 * Path: <b>Location.position</b><br> 1818 * </p> 1819 */ 1820 public static final ca.uhn.fhir.rest.gclient.QuantityClientParam NEAR_DISTANCE = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_NEAR_DISTANCE); 1821 1822 /** 1823 * Search parameter: <b>address</b> 1824 * <p> 1825 * Description: <b>A (part of the) address of the location</b><br> 1826 * Type: <b>string</b><br> 1827 * Path: <b>Location.address</b><br> 1828 * </p> 1829 */ 1830 @SearchParamDefinition(name="address", path="Location.address", description="A (part of the) address of the location", type="string" ) 1831 public static final String SP_ADDRESS = "address"; 1832 /** 1833 * <b>Fluent Client</b> search parameter constant for <b>address</b> 1834 * <p> 1835 * Description: <b>A (part of the) address of the location</b><br> 1836 * Type: <b>string</b><br> 1837 * Path: <b>Location.address</b><br> 1838 * </p> 1839 */ 1840 public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); 1841 1842 /** 1843 * Search parameter: <b>address-state</b> 1844 * <p> 1845 * Description: <b>A state specified in an address</b><br> 1846 * Type: <b>string</b><br> 1847 * Path: <b>Location.address.state</b><br> 1848 * </p> 1849 */ 1850 @SearchParamDefinition(name="address-state", path="Location.address.state", description="A state specified in an address", type="string" ) 1851 public static final String SP_ADDRESS_STATE = "address-state"; 1852 /** 1853 * <b>Fluent Client</b> search parameter constant for <b>address-state</b> 1854 * <p> 1855 * Description: <b>A state specified in an address</b><br> 1856 * Type: <b>string</b><br> 1857 * Path: <b>Location.address.state</b><br> 1858 * </p> 1859 */ 1860 public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_STATE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS_STATE); 1861 1862 /** 1863 * Search parameter: <b>operational-status</b> 1864 * <p> 1865 * Description: <b>Searches for locations (typically bed/room) that have an operational status (e.g. contaminated, housekeeping)</b><br> 1866 * Type: <b>token</b><br> 1867 * Path: <b>Location.operationalStatus</b><br> 1868 * </p> 1869 */ 1870 @SearchParamDefinition(name="operational-status", path="Location.operationalStatus", description="Searches for locations (typically bed/room) that have an operational status (e.g. contaminated, housekeeping)", type="token" ) 1871 public static final String SP_OPERATIONAL_STATUS = "operational-status"; 1872 /** 1873 * <b>Fluent Client</b> search parameter constant for <b>operational-status</b> 1874 * <p> 1875 * Description: <b>Searches for locations (typically bed/room) that have an operational status (e.g. contaminated, housekeeping)</b><br> 1876 * Type: <b>token</b><br> 1877 * Path: <b>Location.operationalStatus</b><br> 1878 * </p> 1879 */ 1880 public static final ca.uhn.fhir.rest.gclient.TokenClientParam OPERATIONAL_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_OPERATIONAL_STATUS); 1881 1882 /** 1883 * Search parameter: <b>type</b> 1884 * <p> 1885 * Description: <b>A code for the type of location</b><br> 1886 * Type: <b>token</b><br> 1887 * Path: <b>Location.type</b><br> 1888 * </p> 1889 */ 1890 @SearchParamDefinition(name="type", path="Location.type", description="A code for the type of location", type="token" ) 1891 public static final String SP_TYPE = "type"; 1892 /** 1893 * <b>Fluent Client</b> search parameter constant for <b>type</b> 1894 * <p> 1895 * Description: <b>A code for the type of location</b><br> 1896 * Type: <b>token</b><br> 1897 * Path: <b>Location.type</b><br> 1898 * </p> 1899 */ 1900 public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); 1901 1902 /** 1903 * Search parameter: <b>address-postalcode</b> 1904 * <p> 1905 * Description: <b>A postal code specified in an address</b><br> 1906 * Type: <b>string</b><br> 1907 * Path: <b>Location.address.postalCode</b><br> 1908 * </p> 1909 */ 1910 @SearchParamDefinition(name="address-postalcode", path="Location.address.postalCode", description="A postal code specified in an address", type="string" ) 1911 public static final String SP_ADDRESS_POSTALCODE = "address-postalcode"; 1912 /** 1913 * <b>Fluent Client</b> search parameter constant for <b>address-postalcode</b> 1914 * <p> 1915 * Description: <b>A postal code specified in an address</b><br> 1916 * Type: <b>string</b><br> 1917 * Path: <b>Location.address.postalCode</b><br> 1918 * </p> 1919 */ 1920 public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_POSTALCODE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS_POSTALCODE); 1921 1922 /** 1923 * Search parameter: <b>address-country</b> 1924 * <p> 1925 * Description: <b>A country specified in an address</b><br> 1926 * Type: <b>string</b><br> 1927 * Path: <b>Location.address.country</b><br> 1928 * </p> 1929 */ 1930 @SearchParamDefinition(name="address-country", path="Location.address.country", description="A country specified in an address", type="string" ) 1931 public static final String SP_ADDRESS_COUNTRY = "address-country"; 1932 /** 1933 * <b>Fluent Client</b> search parameter constant for <b>address-country</b> 1934 * <p> 1935 * Description: <b>A country specified in an address</b><br> 1936 * Type: <b>string</b><br> 1937 * Path: <b>Location.address.country</b><br> 1938 * </p> 1939 */ 1940 public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_COUNTRY = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS_COUNTRY); 1941 1942 /** 1943 * Search parameter: <b>endpoint</b> 1944 * <p> 1945 * Description: <b>Technical endpoints providing access to services operated for the location</b><br> 1946 * Type: <b>reference</b><br> 1947 * Path: <b>Location.endpoint</b><br> 1948 * </p> 1949 */ 1950 @SearchParamDefinition(name="endpoint", path="Location.endpoint", description="Technical endpoints providing access to services operated for the location", type="reference", target={Endpoint.class } ) 1951 public static final String SP_ENDPOINT = "endpoint"; 1952 /** 1953 * <b>Fluent Client</b> search parameter constant for <b>endpoint</b> 1954 * <p> 1955 * Description: <b>Technical endpoints providing access to services operated for the location</b><br> 1956 * Type: <b>reference</b><br> 1957 * Path: <b>Location.endpoint</b><br> 1958 * </p> 1959 */ 1960 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENDPOINT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENDPOINT); 1961 1962/** 1963 * Constant for fluent queries to be used to add include statements. Specifies 1964 * the path value of "<b>Location:endpoint</b>". 1965 */ 1966 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENDPOINT = new ca.uhn.fhir.model.api.Include("Location:endpoint").toLocked(); 1967 1968 /** 1969 * Search parameter: <b>organization</b> 1970 * <p> 1971 * Description: <b>Searches for locations that are managed by the provided organization</b><br> 1972 * Type: <b>reference</b><br> 1973 * Path: <b>Location.managingOrganization</b><br> 1974 * </p> 1975 */ 1976 @SearchParamDefinition(name="organization", path="Location.managingOrganization", description="Searches for locations that are managed by the provided organization", type="reference", target={Organization.class } ) 1977 public static final String SP_ORGANIZATION = "organization"; 1978 /** 1979 * <b>Fluent Client</b> search parameter constant for <b>organization</b> 1980 * <p> 1981 * Description: <b>Searches for locations that are managed by the provided organization</b><br> 1982 * Type: <b>reference</b><br> 1983 * Path: <b>Location.managingOrganization</b><br> 1984 * </p> 1985 */ 1986 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORGANIZATION); 1987 1988/** 1989 * Constant for fluent queries to be used to add include statements. Specifies 1990 * the path value of "<b>Location:organization</b>". 1991 */ 1992 public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATION = new ca.uhn.fhir.model.api.Include("Location:organization").toLocked(); 1993 1994 /** 1995 * Search parameter: <b>name</b> 1996 * <p> 1997 * Description: <b>A portion of the location's name or alias</b><br> 1998 * Type: <b>string</b><br> 1999 * Path: <b>Location.name, Location.alias</b><br> 2000 * </p> 2001 */ 2002 @SearchParamDefinition(name="name", path="Location.name | Location.alias", description="A portion of the location's name or alias", type="string" ) 2003 public static final String SP_NAME = "name"; 2004 /** 2005 * <b>Fluent Client</b> search parameter constant for <b>name</b> 2006 * <p> 2007 * Description: <b>A portion of the location's name or alias</b><br> 2008 * Type: <b>string</b><br> 2009 * Path: <b>Location.name, Location.alias</b><br> 2010 * </p> 2011 */ 2012 public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); 2013 2014 /** 2015 * Search parameter: <b>address-use</b> 2016 * <p> 2017 * Description: <b>A use code specified in an address</b><br> 2018 * Type: <b>token</b><br> 2019 * Path: <b>Location.address.use</b><br> 2020 * </p> 2021 */ 2022 @SearchParamDefinition(name="address-use", path="Location.address.use", description="A use code specified in an address", type="token" ) 2023 public static final String SP_ADDRESS_USE = "address-use"; 2024 /** 2025 * <b>Fluent Client</b> search parameter constant for <b>address-use</b> 2026 * <p> 2027 * Description: <b>A use code specified in an address</b><br> 2028 * Type: <b>token</b><br> 2029 * Path: <b>Location.address.use</b><br> 2030 * </p> 2031 */ 2032 public static final ca.uhn.fhir.rest.gclient.TokenClientParam ADDRESS_USE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ADDRESS_USE); 2033 2034 /** 2035 * Search parameter: <b>near</b> 2036 * <p> 2037 * Description: <b>The coordinates expressed as [latitude]:[longitude] (using the WGS84 datum, see notes) to find locations near to (servers may search using a square rather than a circle for efficiency) 2038 2039Requires the near-distance parameter to be provided also</b><br> 2040 * Type: <b>token</b><br> 2041 * Path: <b>Location.position</b><br> 2042 * </p> 2043 */ 2044 @SearchParamDefinition(name="near", path="Location.position", description="The coordinates expressed as [latitude]:[longitude] (using the WGS84 datum, see notes) to find locations near to (servers may search using a square rather than a circle for efficiency)\n\nRequires the near-distance parameter to be provided also", type="token" ) 2045 public static final String SP_NEAR = "near"; 2046 /** 2047 * <b>Fluent Client</b> search parameter constant for <b>near</b> 2048 * <p> 2049 * Description: <b>The coordinates expressed as [latitude]:[longitude] (using the WGS84 datum, see notes) to find locations near to (servers may search using a square rather than a circle for efficiency) 2050 2051Requires the near-distance parameter to be provided also</b><br> 2052 * Type: <b>token</b><br> 2053 * Path: <b>Location.position</b><br> 2054 * </p> 2055 */ 2056 public static final ca.uhn.fhir.rest.gclient.TokenClientParam NEAR = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_NEAR); 2057 2058 /** 2059 * Search parameter: <b>address-city</b> 2060 * <p> 2061 * Description: <b>A city specified in an address</b><br> 2062 * Type: <b>string</b><br> 2063 * Path: <b>Location.address.city</b><br> 2064 * </p> 2065 */ 2066 @SearchParamDefinition(name="address-city", path="Location.address.city", description="A city specified in an address", type="string" ) 2067 public static final String SP_ADDRESS_CITY = "address-city"; 2068 /** 2069 * <b>Fluent Client</b> search parameter constant for <b>address-city</b> 2070 * <p> 2071 * Description: <b>A city specified in an address</b><br> 2072 * Type: <b>string</b><br> 2073 * Path: <b>Location.address.city</b><br> 2074 * </p> 2075 */ 2076 public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_CITY = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS_CITY); 2077 2078 /** 2079 * Search parameter: <b>status</b> 2080 * <p> 2081 * Description: <b>Searches for locations with a specific kind of status</b><br> 2082 * Type: <b>token</b><br> 2083 * Path: <b>Location.status</b><br> 2084 * </p> 2085 */ 2086 @SearchParamDefinition(name="status", path="Location.status", description="Searches for locations with a specific kind of status", type="token" ) 2087 public static final String SP_STATUS = "status"; 2088 /** 2089 * <b>Fluent Client</b> search parameter constant for <b>status</b> 2090 * <p> 2091 * Description: <b>Searches for locations with a specific kind of status</b><br> 2092 * Type: <b>token</b><br> 2093 * Path: <b>Location.status</b><br> 2094 * </p> 2095 */ 2096 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 2097 2098 2099} 2100