001package org.hl7.fhir.dstu3.model; 002 003/* 004 Copyright (c) 2011+, HL7, Inc. 005 All rights reserved. 006 007 Redistribution and use in source and binary forms, with or without modification, 008 are permitted provided that the following conditions are met: 009 010 * Redistributions of source code must retain the above copyright notice, this 011 list of conditions and the following disclaimer. 012 * Redistributions in binary form must reproduce the above copyright notice, 013 this list of conditions and the following disclaimer in the documentation 014 and/or other materials provided with the distribution. 015 * Neither the name of HL7 nor the names of its contributors may be used to 016 endorse or promote products derived from this software without specific 017 prior written permission. 018 019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 020 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 021 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 022 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 023 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 024 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 025 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 026 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 027 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 028 POSSIBILITY OF SUCH DAMAGE. 029 030*/ 031 032// Generated on Fri, Mar 16, 2018 15:21+1100 for FHIR v3.0.1 033 034import java.util.*; 035 036import org.hl7.fhir.utilities.Utilities; 037import ca.uhn.fhir.model.api.annotation.ResourceDef; 038import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 039import ca.uhn.fhir.model.api.annotation.Child; 040import ca.uhn.fhir.model.api.annotation.ChildOrder; 041import ca.uhn.fhir.model.api.annotation.Description; 042import ca.uhn.fhir.model.api.annotation.Block; 043import org.hl7.fhir.instance.model.api.*; 044import org.hl7.fhir.exceptions.FHIRException; 045import org.hl7.fhir.exceptions.FHIRFormatError; 046/** 047 * The details of a healthcare service available at a location. 048 */ 049@ResourceDef(name="HealthcareService", profile="http://hl7.org/fhir/StructureDefinition/HealthcareService") 050public class HealthcareService extends DomainResource { 051 052 public enum DaysOfWeek { 053 /** 054 * Monday 055 */ 056 MON, 057 /** 058 * Tuesday 059 */ 060 TUE, 061 /** 062 * Wednesday 063 */ 064 WED, 065 /** 066 * Thursday 067 */ 068 THU, 069 /** 070 * Friday 071 */ 072 FRI, 073 /** 074 * Saturday 075 */ 076 SAT, 077 /** 078 * Sunday 079 */ 080 SUN, 081 /** 082 * added to help the parsers with the generic types 083 */ 084 NULL; 085 public static DaysOfWeek fromCode(String codeString) throws FHIRException { 086 if (codeString == null || "".equals(codeString)) 087 return null; 088 if ("mon".equals(codeString)) 089 return MON; 090 if ("tue".equals(codeString)) 091 return TUE; 092 if ("wed".equals(codeString)) 093 return WED; 094 if ("thu".equals(codeString)) 095 return THU; 096 if ("fri".equals(codeString)) 097 return FRI; 098 if ("sat".equals(codeString)) 099 return SAT; 100 if ("sun".equals(codeString)) 101 return SUN; 102 if (Configuration.isAcceptInvalidEnums()) 103 return null; 104 else 105 throw new FHIRException("Unknown DaysOfWeek code '"+codeString+"'"); 106 } 107 public String toCode() { 108 switch (this) { 109 case MON: return "mon"; 110 case TUE: return "tue"; 111 case WED: return "wed"; 112 case THU: return "thu"; 113 case FRI: return "fri"; 114 case SAT: return "sat"; 115 case SUN: return "sun"; 116 default: return "?"; 117 } 118 } 119 public String getSystem() { 120 switch (this) { 121 case MON: return "http://hl7.org/fhir/days-of-week"; 122 case TUE: return "http://hl7.org/fhir/days-of-week"; 123 case WED: return "http://hl7.org/fhir/days-of-week"; 124 case THU: return "http://hl7.org/fhir/days-of-week"; 125 case FRI: return "http://hl7.org/fhir/days-of-week"; 126 case SAT: return "http://hl7.org/fhir/days-of-week"; 127 case SUN: return "http://hl7.org/fhir/days-of-week"; 128 default: return "?"; 129 } 130 } 131 public String getDefinition() { 132 switch (this) { 133 case MON: return "Monday"; 134 case TUE: return "Tuesday"; 135 case WED: return "Wednesday"; 136 case THU: return "Thursday"; 137 case FRI: return "Friday"; 138 case SAT: return "Saturday"; 139 case SUN: return "Sunday"; 140 default: return "?"; 141 } 142 } 143 public String getDisplay() { 144 switch (this) { 145 case MON: return "Monday"; 146 case TUE: return "Tuesday"; 147 case WED: return "Wednesday"; 148 case THU: return "Thursday"; 149 case FRI: return "Friday"; 150 case SAT: return "Saturday"; 151 case SUN: return "Sunday"; 152 default: return "?"; 153 } 154 } 155 } 156 157 public static class DaysOfWeekEnumFactory implements EnumFactory<DaysOfWeek> { 158 public DaysOfWeek fromCode(String codeString) throws IllegalArgumentException { 159 if (codeString == null || "".equals(codeString)) 160 if (codeString == null || "".equals(codeString)) 161 return null; 162 if ("mon".equals(codeString)) 163 return DaysOfWeek.MON; 164 if ("tue".equals(codeString)) 165 return DaysOfWeek.TUE; 166 if ("wed".equals(codeString)) 167 return DaysOfWeek.WED; 168 if ("thu".equals(codeString)) 169 return DaysOfWeek.THU; 170 if ("fri".equals(codeString)) 171 return DaysOfWeek.FRI; 172 if ("sat".equals(codeString)) 173 return DaysOfWeek.SAT; 174 if ("sun".equals(codeString)) 175 return DaysOfWeek.SUN; 176 throw new IllegalArgumentException("Unknown DaysOfWeek code '"+codeString+"'"); 177 } 178 public Enumeration<DaysOfWeek> fromType(Base code) throws FHIRException { 179 if (code == null) 180 return null; 181 if (code.isEmpty()) 182 return new Enumeration<DaysOfWeek>(this); 183 String codeString = ((PrimitiveType) code).asStringValue(); 184 if (codeString == null || "".equals(codeString)) 185 return null; 186 if ("mon".equals(codeString)) 187 return new Enumeration<DaysOfWeek>(this, DaysOfWeek.MON); 188 if ("tue".equals(codeString)) 189 return new Enumeration<DaysOfWeek>(this, DaysOfWeek.TUE); 190 if ("wed".equals(codeString)) 191 return new Enumeration<DaysOfWeek>(this, DaysOfWeek.WED); 192 if ("thu".equals(codeString)) 193 return new Enumeration<DaysOfWeek>(this, DaysOfWeek.THU); 194 if ("fri".equals(codeString)) 195 return new Enumeration<DaysOfWeek>(this, DaysOfWeek.FRI); 196 if ("sat".equals(codeString)) 197 return new Enumeration<DaysOfWeek>(this, DaysOfWeek.SAT); 198 if ("sun".equals(codeString)) 199 return new Enumeration<DaysOfWeek>(this, DaysOfWeek.SUN); 200 throw new FHIRException("Unknown DaysOfWeek code '"+codeString+"'"); 201 } 202 public String toCode(DaysOfWeek code) { 203 if (code == DaysOfWeek.MON) 204 return "mon"; 205 if (code == DaysOfWeek.TUE) 206 return "tue"; 207 if (code == DaysOfWeek.WED) 208 return "wed"; 209 if (code == DaysOfWeek.THU) 210 return "thu"; 211 if (code == DaysOfWeek.FRI) 212 return "fri"; 213 if (code == DaysOfWeek.SAT) 214 return "sat"; 215 if (code == DaysOfWeek.SUN) 216 return "sun"; 217 return "?"; 218 } 219 public String toSystem(DaysOfWeek code) { 220 return code.getSystem(); 221 } 222 } 223 224 @Block() 225 public static class HealthcareServiceAvailableTimeComponent extends BackboneElement implements IBaseBackboneElement { 226 /** 227 * Indicates which days of the week are available between the start and end Times. 228 */ 229 @Child(name = "daysOfWeek", type = {CodeType.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 230 @Description(shortDefinition="mon | tue | wed | thu | fri | sat | sun", formalDefinition="Indicates which days of the week are available between the start and end Times." ) 231 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/days-of-week") 232 protected List<Enumeration<DaysOfWeek>> daysOfWeek; 233 234 /** 235 * Is this always available? (hence times are irrelevant) e.g. 24 hour service. 236 */ 237 @Child(name = "allDay", type = {BooleanType.class}, order=2, min=0, max=1, modifier=false, summary=false) 238 @Description(shortDefinition="Always available? e.g. 24 hour service", formalDefinition="Is this always available? (hence times are irrelevant) e.g. 24 hour service." ) 239 protected BooleanType allDay; 240 241 /** 242 * The opening time of day. Note: If the AllDay flag is set, then this time is ignored. 243 */ 244 @Child(name = "availableStartTime", type = {TimeType.class}, order=3, min=0, max=1, modifier=false, summary=false) 245 @Description(shortDefinition="Opening time of day (ignored if allDay = true)", formalDefinition="The opening time of day. Note: If the AllDay flag is set, then this time is ignored." ) 246 protected TimeType availableStartTime; 247 248 /** 249 * The closing time of day. Note: If the AllDay flag is set, then this time is ignored. 250 */ 251 @Child(name = "availableEndTime", type = {TimeType.class}, order=4, min=0, max=1, modifier=false, summary=false) 252 @Description(shortDefinition="Closing time of day (ignored if allDay = true)", formalDefinition="The closing time of day. Note: If the AllDay flag is set, then this time is ignored." ) 253 protected TimeType availableEndTime; 254 255 private static final long serialVersionUID = -2139510127L; 256 257 /** 258 * Constructor 259 */ 260 public HealthcareServiceAvailableTimeComponent() { 261 super(); 262 } 263 264 /** 265 * @return {@link #daysOfWeek} (Indicates which days of the week are available between the start and end Times.) 266 */ 267 public List<Enumeration<DaysOfWeek>> getDaysOfWeek() { 268 if (this.daysOfWeek == null) 269 this.daysOfWeek = new ArrayList<Enumeration<DaysOfWeek>>(); 270 return this.daysOfWeek; 271 } 272 273 /** 274 * @return Returns a reference to <code>this</code> for easy method chaining 275 */ 276 public HealthcareServiceAvailableTimeComponent setDaysOfWeek(List<Enumeration<DaysOfWeek>> theDaysOfWeek) { 277 this.daysOfWeek = theDaysOfWeek; 278 return this; 279 } 280 281 public boolean hasDaysOfWeek() { 282 if (this.daysOfWeek == null) 283 return false; 284 for (Enumeration<DaysOfWeek> item : this.daysOfWeek) 285 if (!item.isEmpty()) 286 return true; 287 return false; 288 } 289 290 /** 291 * @return {@link #daysOfWeek} (Indicates which days of the week are available between the start and end Times.) 292 */ 293 public Enumeration<DaysOfWeek> addDaysOfWeekElement() {//2 294 Enumeration<DaysOfWeek> t = new Enumeration<DaysOfWeek>(new DaysOfWeekEnumFactory()); 295 if (this.daysOfWeek == null) 296 this.daysOfWeek = new ArrayList<Enumeration<DaysOfWeek>>(); 297 this.daysOfWeek.add(t); 298 return t; 299 } 300 301 /** 302 * @param value {@link #daysOfWeek} (Indicates which days of the week are available between the start and end Times.) 303 */ 304 public HealthcareServiceAvailableTimeComponent addDaysOfWeek(DaysOfWeek value) { //1 305 Enumeration<DaysOfWeek> t = new Enumeration<DaysOfWeek>(new DaysOfWeekEnumFactory()); 306 t.setValue(value); 307 if (this.daysOfWeek == null) 308 this.daysOfWeek = new ArrayList<Enumeration<DaysOfWeek>>(); 309 this.daysOfWeek.add(t); 310 return this; 311 } 312 313 /** 314 * @param value {@link #daysOfWeek} (Indicates which days of the week are available between the start and end Times.) 315 */ 316 public boolean hasDaysOfWeek(DaysOfWeek value) { 317 if (this.daysOfWeek == null) 318 return false; 319 for (Enumeration<DaysOfWeek> v : this.daysOfWeek) 320 if (v.getValue().equals(value)) // code 321 return true; 322 return false; 323 } 324 325 /** 326 * @return {@link #allDay} (Is this always available? (hence times are irrelevant) e.g. 24 hour service.). This is the underlying object with id, value and extensions. The accessor "getAllDay" gives direct access to the value 327 */ 328 public BooleanType getAllDayElement() { 329 if (this.allDay == null) 330 if (Configuration.errorOnAutoCreate()) 331 throw new Error("Attempt to auto-create HealthcareServiceAvailableTimeComponent.allDay"); 332 else if (Configuration.doAutoCreate()) 333 this.allDay = new BooleanType(); // bb 334 return this.allDay; 335 } 336 337 public boolean hasAllDayElement() { 338 return this.allDay != null && !this.allDay.isEmpty(); 339 } 340 341 public boolean hasAllDay() { 342 return this.allDay != null && !this.allDay.isEmpty(); 343 } 344 345 /** 346 * @param value {@link #allDay} (Is this always available? (hence times are irrelevant) e.g. 24 hour service.). This is the underlying object with id, value and extensions. The accessor "getAllDay" gives direct access to the value 347 */ 348 public HealthcareServiceAvailableTimeComponent setAllDayElement(BooleanType value) { 349 this.allDay = value; 350 return this; 351 } 352 353 /** 354 * @return Is this always available? (hence times are irrelevant) e.g. 24 hour service. 355 */ 356 public boolean getAllDay() { 357 return this.allDay == null || this.allDay.isEmpty() ? false : this.allDay.getValue(); 358 } 359 360 /** 361 * @param value Is this always available? (hence times are irrelevant) e.g. 24 hour service. 362 */ 363 public HealthcareServiceAvailableTimeComponent setAllDay(boolean value) { 364 if (this.allDay == null) 365 this.allDay = new BooleanType(); 366 this.allDay.setValue(value); 367 return this; 368 } 369 370 /** 371 * @return {@link #availableStartTime} (The opening time of day. Note: If the AllDay flag is set, then this time is ignored.). This is the underlying object with id, value and extensions. The accessor "getAvailableStartTime" gives direct access to the value 372 */ 373 public TimeType getAvailableStartTimeElement() { 374 if (this.availableStartTime == null) 375 if (Configuration.errorOnAutoCreate()) 376 throw new Error("Attempt to auto-create HealthcareServiceAvailableTimeComponent.availableStartTime"); 377 else if (Configuration.doAutoCreate()) 378 this.availableStartTime = new TimeType(); // bb 379 return this.availableStartTime; 380 } 381 382 public boolean hasAvailableStartTimeElement() { 383 return this.availableStartTime != null && !this.availableStartTime.isEmpty(); 384 } 385 386 public boolean hasAvailableStartTime() { 387 return this.availableStartTime != null && !this.availableStartTime.isEmpty(); 388 } 389 390 /** 391 * @param value {@link #availableStartTime} (The opening time of day. Note: If the AllDay flag is set, then this time is ignored.). This is the underlying object with id, value and extensions. The accessor "getAvailableStartTime" gives direct access to the value 392 */ 393 public HealthcareServiceAvailableTimeComponent setAvailableStartTimeElement(TimeType value) { 394 this.availableStartTime = value; 395 return this; 396 } 397 398 /** 399 * @return The opening time of day. Note: If the AllDay flag is set, then this time is ignored. 400 */ 401 public String getAvailableStartTime() { 402 return this.availableStartTime == null ? null : this.availableStartTime.getValue(); 403 } 404 405 /** 406 * @param value The opening time of day. Note: If the AllDay flag is set, then this time is ignored. 407 */ 408 public HealthcareServiceAvailableTimeComponent setAvailableStartTime(String value) { 409 if (value == null) 410 this.availableStartTime = null; 411 else { 412 if (this.availableStartTime == null) 413 this.availableStartTime = new TimeType(); 414 this.availableStartTime.setValue(value); 415 } 416 return this; 417 } 418 419 /** 420 * @return {@link #availableEndTime} (The closing time of day. Note: If the AllDay flag is set, then this time is ignored.). This is the underlying object with id, value and extensions. The accessor "getAvailableEndTime" gives direct access to the value 421 */ 422 public TimeType getAvailableEndTimeElement() { 423 if (this.availableEndTime == null) 424 if (Configuration.errorOnAutoCreate()) 425 throw new Error("Attempt to auto-create HealthcareServiceAvailableTimeComponent.availableEndTime"); 426 else if (Configuration.doAutoCreate()) 427 this.availableEndTime = new TimeType(); // bb 428 return this.availableEndTime; 429 } 430 431 public boolean hasAvailableEndTimeElement() { 432 return this.availableEndTime != null && !this.availableEndTime.isEmpty(); 433 } 434 435 public boolean hasAvailableEndTime() { 436 return this.availableEndTime != null && !this.availableEndTime.isEmpty(); 437 } 438 439 /** 440 * @param value {@link #availableEndTime} (The closing time of day. Note: If the AllDay flag is set, then this time is ignored.). This is the underlying object with id, value and extensions. The accessor "getAvailableEndTime" gives direct access to the value 441 */ 442 public HealthcareServiceAvailableTimeComponent setAvailableEndTimeElement(TimeType value) { 443 this.availableEndTime = value; 444 return this; 445 } 446 447 /** 448 * @return The closing time of day. Note: If the AllDay flag is set, then this time is ignored. 449 */ 450 public String getAvailableEndTime() { 451 return this.availableEndTime == null ? null : this.availableEndTime.getValue(); 452 } 453 454 /** 455 * @param value The closing time of day. Note: If the AllDay flag is set, then this time is ignored. 456 */ 457 public HealthcareServiceAvailableTimeComponent setAvailableEndTime(String value) { 458 if (value == null) 459 this.availableEndTime = null; 460 else { 461 if (this.availableEndTime == null) 462 this.availableEndTime = new TimeType(); 463 this.availableEndTime.setValue(value); 464 } 465 return this; 466 } 467 468 protected void listChildren(List<Property> children) { 469 super.listChildren(children); 470 children.add(new Property("daysOfWeek", "code", "Indicates which days of the week are available between the start and end Times.", 0, java.lang.Integer.MAX_VALUE, daysOfWeek)); 471 children.add(new Property("allDay", "boolean", "Is this always available? (hence times are irrelevant) e.g. 24 hour service.", 0, 1, allDay)); 472 children.add(new Property("availableStartTime", "time", "The opening time of day. Note: If the AllDay flag is set, then this time is ignored.", 0, 1, availableStartTime)); 473 children.add(new Property("availableEndTime", "time", "The closing time of day. Note: If the AllDay flag is set, then this time is ignored.", 0, 1, availableEndTime)); 474 } 475 476 @Override 477 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 478 switch (_hash) { 479 case 68050338: /*daysOfWeek*/ return new Property("daysOfWeek", "code", "Indicates which days of the week are available between the start and end Times.", 0, java.lang.Integer.MAX_VALUE, daysOfWeek); 480 case -1414913477: /*allDay*/ return new Property("allDay", "boolean", "Is this always available? (hence times are irrelevant) e.g. 24 hour service.", 0, 1, allDay); 481 case -1039453818: /*availableStartTime*/ return new Property("availableStartTime", "time", "The opening time of day. Note: If the AllDay flag is set, then this time is ignored.", 0, 1, availableStartTime); 482 case 101151551: /*availableEndTime*/ return new Property("availableEndTime", "time", "The closing time of day. Note: If the AllDay flag is set, then this time is ignored.", 0, 1, availableEndTime); 483 default: return super.getNamedProperty(_hash, _name, _checkValid); 484 } 485 486 } 487 488 @Override 489 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 490 switch (hash) { 491 case 68050338: /*daysOfWeek*/ return this.daysOfWeek == null ? new Base[0] : this.daysOfWeek.toArray(new Base[this.daysOfWeek.size()]); // Enumeration<DaysOfWeek> 492 case -1414913477: /*allDay*/ return this.allDay == null ? new Base[0] : new Base[] {this.allDay}; // BooleanType 493 case -1039453818: /*availableStartTime*/ return this.availableStartTime == null ? new Base[0] : new Base[] {this.availableStartTime}; // TimeType 494 case 101151551: /*availableEndTime*/ return this.availableEndTime == null ? new Base[0] : new Base[] {this.availableEndTime}; // TimeType 495 default: return super.getProperty(hash, name, checkValid); 496 } 497 498 } 499 500 @Override 501 public Base setProperty(int hash, String name, Base value) throws FHIRException { 502 switch (hash) { 503 case 68050338: // daysOfWeek 504 value = new DaysOfWeekEnumFactory().fromType(castToCode(value)); 505 this.getDaysOfWeek().add((Enumeration) value); // Enumeration<DaysOfWeek> 506 return value; 507 case -1414913477: // allDay 508 this.allDay = castToBoolean(value); // BooleanType 509 return value; 510 case -1039453818: // availableStartTime 511 this.availableStartTime = castToTime(value); // TimeType 512 return value; 513 case 101151551: // availableEndTime 514 this.availableEndTime = castToTime(value); // TimeType 515 return value; 516 default: return super.setProperty(hash, name, value); 517 } 518 519 } 520 521 @Override 522 public Base setProperty(String name, Base value) throws FHIRException { 523 if (name.equals("daysOfWeek")) { 524 value = new DaysOfWeekEnumFactory().fromType(castToCode(value)); 525 this.getDaysOfWeek().add((Enumeration) value); 526 } else if (name.equals("allDay")) { 527 this.allDay = castToBoolean(value); // BooleanType 528 } else if (name.equals("availableStartTime")) { 529 this.availableStartTime = castToTime(value); // TimeType 530 } else if (name.equals("availableEndTime")) { 531 this.availableEndTime = castToTime(value); // TimeType 532 } else 533 return super.setProperty(name, value); 534 return value; 535 } 536 537 @Override 538 public Base makeProperty(int hash, String name) throws FHIRException { 539 switch (hash) { 540 case 68050338: return addDaysOfWeekElement(); 541 case -1414913477: return getAllDayElement(); 542 case -1039453818: return getAvailableStartTimeElement(); 543 case 101151551: return getAvailableEndTimeElement(); 544 default: return super.makeProperty(hash, name); 545 } 546 547 } 548 549 @Override 550 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 551 switch (hash) { 552 case 68050338: /*daysOfWeek*/ return new String[] {"code"}; 553 case -1414913477: /*allDay*/ return new String[] {"boolean"}; 554 case -1039453818: /*availableStartTime*/ return new String[] {"time"}; 555 case 101151551: /*availableEndTime*/ return new String[] {"time"}; 556 default: return super.getTypesForProperty(hash, name); 557 } 558 559 } 560 561 @Override 562 public Base addChild(String name) throws FHIRException { 563 if (name.equals("daysOfWeek")) { 564 throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.daysOfWeek"); 565 } 566 else if (name.equals("allDay")) { 567 throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.allDay"); 568 } 569 else if (name.equals("availableStartTime")) { 570 throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availableStartTime"); 571 } 572 else if (name.equals("availableEndTime")) { 573 throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availableEndTime"); 574 } 575 else 576 return super.addChild(name); 577 } 578 579 public HealthcareServiceAvailableTimeComponent copy() { 580 HealthcareServiceAvailableTimeComponent dst = new HealthcareServiceAvailableTimeComponent(); 581 copyValues(dst); 582 if (daysOfWeek != null) { 583 dst.daysOfWeek = new ArrayList<Enumeration<DaysOfWeek>>(); 584 for (Enumeration<DaysOfWeek> i : daysOfWeek) 585 dst.daysOfWeek.add(i.copy()); 586 }; 587 dst.allDay = allDay == null ? null : allDay.copy(); 588 dst.availableStartTime = availableStartTime == null ? null : availableStartTime.copy(); 589 dst.availableEndTime = availableEndTime == null ? null : availableEndTime.copy(); 590 return dst; 591 } 592 593 @Override 594 public boolean equalsDeep(Base other_) { 595 if (!super.equalsDeep(other_)) 596 return false; 597 if (!(other_ instanceof HealthcareServiceAvailableTimeComponent)) 598 return false; 599 HealthcareServiceAvailableTimeComponent o = (HealthcareServiceAvailableTimeComponent) other_; 600 return compareDeep(daysOfWeek, o.daysOfWeek, true) && compareDeep(allDay, o.allDay, true) && compareDeep(availableStartTime, o.availableStartTime, true) 601 && compareDeep(availableEndTime, o.availableEndTime, true); 602 } 603 604 @Override 605 public boolean equalsShallow(Base other_) { 606 if (!super.equalsShallow(other_)) 607 return false; 608 if (!(other_ instanceof HealthcareServiceAvailableTimeComponent)) 609 return false; 610 HealthcareServiceAvailableTimeComponent o = (HealthcareServiceAvailableTimeComponent) other_; 611 return compareValues(daysOfWeek, o.daysOfWeek, true) && compareValues(allDay, o.allDay, true) && compareValues(availableStartTime, o.availableStartTime, true) 612 && compareValues(availableEndTime, o.availableEndTime, true); 613 } 614 615 public boolean isEmpty() { 616 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(daysOfWeek, allDay, availableStartTime 617 , availableEndTime); 618 } 619 620 public String fhirType() { 621 return "HealthcareService.availableTime"; 622 623 } 624 625 } 626 627 @Block() 628 public static class HealthcareServiceNotAvailableComponent extends BackboneElement implements IBaseBackboneElement { 629 /** 630 * The reason that can be presented to the user as to why this time is not available. 631 */ 632 @Child(name = "description", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) 633 @Description(shortDefinition="Reason presented to the user explaining why time not available", formalDefinition="The reason that can be presented to the user as to why this time is not available." ) 634 protected StringType description; 635 636 /** 637 * Service is not available (seasonally or for a public holiday) from this date. 638 */ 639 @Child(name = "during", type = {Period.class}, order=2, min=0, max=1, modifier=false, summary=false) 640 @Description(shortDefinition="Service not availablefrom this date", formalDefinition="Service is not available (seasonally or for a public holiday) from this date." ) 641 protected Period during; 642 643 private static final long serialVersionUID = 310849929L; 644 645 /** 646 * Constructor 647 */ 648 public HealthcareServiceNotAvailableComponent() { 649 super(); 650 } 651 652 /** 653 * Constructor 654 */ 655 public HealthcareServiceNotAvailableComponent(StringType description) { 656 super(); 657 this.description = description; 658 } 659 660 /** 661 * @return {@link #description} (The reason that can be presented to the user as to why this time is not available.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 662 */ 663 public StringType getDescriptionElement() { 664 if (this.description == null) 665 if (Configuration.errorOnAutoCreate()) 666 throw new Error("Attempt to auto-create HealthcareServiceNotAvailableComponent.description"); 667 else if (Configuration.doAutoCreate()) 668 this.description = new StringType(); // bb 669 return this.description; 670 } 671 672 public boolean hasDescriptionElement() { 673 return this.description != null && !this.description.isEmpty(); 674 } 675 676 public boolean hasDescription() { 677 return this.description != null && !this.description.isEmpty(); 678 } 679 680 /** 681 * @param value {@link #description} (The reason that can be presented to the user as to why this time is not available.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 682 */ 683 public HealthcareServiceNotAvailableComponent setDescriptionElement(StringType value) { 684 this.description = value; 685 return this; 686 } 687 688 /** 689 * @return The reason that can be presented to the user as to why this time is not available. 690 */ 691 public String getDescription() { 692 return this.description == null ? null : this.description.getValue(); 693 } 694 695 /** 696 * @param value The reason that can be presented to the user as to why this time is not available. 697 */ 698 public HealthcareServiceNotAvailableComponent setDescription(String value) { 699 if (this.description == null) 700 this.description = new StringType(); 701 this.description.setValue(value); 702 return this; 703 } 704 705 /** 706 * @return {@link #during} (Service is not available (seasonally or for a public holiday) from this date.) 707 */ 708 public Period getDuring() { 709 if (this.during == null) 710 if (Configuration.errorOnAutoCreate()) 711 throw new Error("Attempt to auto-create HealthcareServiceNotAvailableComponent.during"); 712 else if (Configuration.doAutoCreate()) 713 this.during = new Period(); // cc 714 return this.during; 715 } 716 717 public boolean hasDuring() { 718 return this.during != null && !this.during.isEmpty(); 719 } 720 721 /** 722 * @param value {@link #during} (Service is not available (seasonally or for a public holiday) from this date.) 723 */ 724 public HealthcareServiceNotAvailableComponent setDuring(Period value) { 725 this.during = value; 726 return this; 727 } 728 729 protected void listChildren(List<Property> children) { 730 super.listChildren(children); 731 children.add(new Property("description", "string", "The reason that can be presented to the user as to why this time is not available.", 0, 1, description)); 732 children.add(new Property("during", "Period", "Service is not available (seasonally or for a public holiday) from this date.", 0, 1, during)); 733 } 734 735 @Override 736 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 737 switch (_hash) { 738 case -1724546052: /*description*/ return new Property("description", "string", "The reason that can be presented to the user as to why this time is not available.", 0, 1, description); 739 case -1320499647: /*during*/ return new Property("during", "Period", "Service is not available (seasonally or for a public holiday) from this date.", 0, 1, during); 740 default: return super.getNamedProperty(_hash, _name, _checkValid); 741 } 742 743 } 744 745 @Override 746 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 747 switch (hash) { 748 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 749 case -1320499647: /*during*/ return this.during == null ? new Base[0] : new Base[] {this.during}; // Period 750 default: return super.getProperty(hash, name, checkValid); 751 } 752 753 } 754 755 @Override 756 public Base setProperty(int hash, String name, Base value) throws FHIRException { 757 switch (hash) { 758 case -1724546052: // description 759 this.description = castToString(value); // StringType 760 return value; 761 case -1320499647: // during 762 this.during = castToPeriod(value); // Period 763 return value; 764 default: return super.setProperty(hash, name, value); 765 } 766 767 } 768 769 @Override 770 public Base setProperty(String name, Base value) throws FHIRException { 771 if (name.equals("description")) { 772 this.description = castToString(value); // StringType 773 } else if (name.equals("during")) { 774 this.during = castToPeriod(value); // Period 775 } else 776 return super.setProperty(name, value); 777 return value; 778 } 779 780 @Override 781 public Base makeProperty(int hash, String name) throws FHIRException { 782 switch (hash) { 783 case -1724546052: return getDescriptionElement(); 784 case -1320499647: return getDuring(); 785 default: return super.makeProperty(hash, name); 786 } 787 788 } 789 790 @Override 791 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 792 switch (hash) { 793 case -1724546052: /*description*/ return new String[] {"string"}; 794 case -1320499647: /*during*/ return new String[] {"Period"}; 795 default: return super.getTypesForProperty(hash, name); 796 } 797 798 } 799 800 @Override 801 public Base addChild(String name) throws FHIRException { 802 if (name.equals("description")) { 803 throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.description"); 804 } 805 else if (name.equals("during")) { 806 this.during = new Period(); 807 return this.during; 808 } 809 else 810 return super.addChild(name); 811 } 812 813 public HealthcareServiceNotAvailableComponent copy() { 814 HealthcareServiceNotAvailableComponent dst = new HealthcareServiceNotAvailableComponent(); 815 copyValues(dst); 816 dst.description = description == null ? null : description.copy(); 817 dst.during = during == null ? null : during.copy(); 818 return dst; 819 } 820 821 @Override 822 public boolean equalsDeep(Base other_) { 823 if (!super.equalsDeep(other_)) 824 return false; 825 if (!(other_ instanceof HealthcareServiceNotAvailableComponent)) 826 return false; 827 HealthcareServiceNotAvailableComponent o = (HealthcareServiceNotAvailableComponent) other_; 828 return compareDeep(description, o.description, true) && compareDeep(during, o.during, true); 829 } 830 831 @Override 832 public boolean equalsShallow(Base other_) { 833 if (!super.equalsShallow(other_)) 834 return false; 835 if (!(other_ instanceof HealthcareServiceNotAvailableComponent)) 836 return false; 837 HealthcareServiceNotAvailableComponent o = (HealthcareServiceNotAvailableComponent) other_; 838 return compareValues(description, o.description, true); 839 } 840 841 public boolean isEmpty() { 842 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(description, during); 843 } 844 845 public String fhirType() { 846 return "HealthcareService.notAvailable"; 847 848 } 849 850 } 851 852 /** 853 * External identifiers for this item. 854 */ 855 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 856 @Description(shortDefinition="External identifiers for this item", formalDefinition="External identifiers for this item." ) 857 protected List<Identifier> identifier; 858 859 /** 860 * Whether this healthcareservice record is in active use. 861 */ 862 @Child(name = "active", type = {BooleanType.class}, order=1, min=0, max=1, modifier=true, summary=true) 863 @Description(shortDefinition="Whether this healthcareservice is in active use", formalDefinition="Whether this healthcareservice record is in active use." ) 864 protected BooleanType active; 865 866 /** 867 * The organization that provides this healthcare service. 868 */ 869 @Child(name = "providedBy", type = {Organization.class}, order=2, min=0, max=1, modifier=false, summary=true) 870 @Description(shortDefinition="Organization that provides this service", formalDefinition="The organization that provides this healthcare service." ) 871 protected Reference providedBy; 872 873 /** 874 * The actual object that is the target of the reference (The organization that provides this healthcare service.) 875 */ 876 protected Organization providedByTarget; 877 878 /** 879 * Identifies the broad category of service being performed or delivered. 880 */ 881 @Child(name = "category", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=true) 882 @Description(shortDefinition="Broad category of service being performed or delivered", formalDefinition="Identifies the broad category of service being performed or delivered." ) 883 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/service-category") 884 protected CodeableConcept category; 885 886 /** 887 * The specific type of service that may be delivered or performed. 888 */ 889 @Child(name = "type", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 890 @Description(shortDefinition="Type of service that may be delivered or performed", formalDefinition="The specific type of service that may be delivered or performed." ) 891 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/service-type") 892 protected List<CodeableConcept> type; 893 894 /** 895 * Collection of specialties handled by the service site. This is more of a medical term. 896 */ 897 @Child(name = "specialty", type = {CodeableConcept.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 898 @Description(shortDefinition="Specialties handled by the HealthcareService", formalDefinition="Collection of specialties handled by the service site. This is more of a medical term." ) 899 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/c80-practice-codes") 900 protected List<CodeableConcept> specialty; 901 902 /** 903 * The location(s) where this healthcare service may be provided. 904 */ 905 @Child(name = "location", type = {Location.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 906 @Description(shortDefinition="Location(s) where service may be provided", formalDefinition="The location(s) where this healthcare service may be provided." ) 907 protected List<Reference> location; 908 /** 909 * The actual objects that are the target of the reference (The location(s) where this healthcare service may be provided.) 910 */ 911 protected List<Location> locationTarget; 912 913 914 /** 915 * Further description of the service as it would be presented to a consumer while searching. 916 */ 917 @Child(name = "name", type = {StringType.class}, order=7, min=0, max=1, modifier=false, summary=true) 918 @Description(shortDefinition="Description of service as presented to a consumer while searching", formalDefinition="Further description of the service as it would be presented to a consumer while searching." ) 919 protected StringType name; 920 921 /** 922 * Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName. 923 */ 924 @Child(name = "comment", type = {StringType.class}, order=8, min=0, max=1, modifier=false, summary=true) 925 @Description(shortDefinition="Additional description and/or any specific issues not covered elsewhere", formalDefinition="Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName." ) 926 protected StringType comment; 927 928 /** 929 * Extra details about the service that can't be placed in the other fields. 930 */ 931 @Child(name = "extraDetails", type = {StringType.class}, order=9, min=0, max=1, modifier=false, summary=false) 932 @Description(shortDefinition="Extra details about the service that can't be placed in the other fields", formalDefinition="Extra details about the service that can't be placed in the other fields." ) 933 protected StringType extraDetails; 934 935 /** 936 * If there is a photo/symbol associated with this HealthcareService, it may be included here to facilitate quick identification of the service in a list. 937 */ 938 @Child(name = "photo", type = {Attachment.class}, order=10, min=0, max=1, modifier=false, summary=true) 939 @Description(shortDefinition="Facilitates quick identification of the service", formalDefinition="If there is a photo/symbol associated with this HealthcareService, it may be included here to facilitate quick identification of the service in a list." ) 940 protected Attachment photo; 941 942 /** 943 * List of contacts related to this specific healthcare service. 944 */ 945 @Child(name = "telecom", type = {ContactPoint.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 946 @Description(shortDefinition="Contacts related to the healthcare service", formalDefinition="List of contacts related to this specific healthcare service." ) 947 protected List<ContactPoint> telecom; 948 949 /** 950 * The location(s) that this service is available to (not where the service is provided). 951 */ 952 @Child(name = "coverageArea", type = {Location.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 953 @Description(shortDefinition="Location(s) service is inteded for/available to", formalDefinition="The location(s) that this service is available to (not where the service is provided)." ) 954 protected List<Reference> coverageArea; 955 /** 956 * The actual objects that are the target of the reference (The location(s) that this service is available to (not where the service is provided).) 957 */ 958 protected List<Location> coverageAreaTarget; 959 960 961 /** 962 * The code(s) that detail the conditions under which the healthcare service is available/offered. 963 */ 964 @Child(name = "serviceProvisionCode", type = {CodeableConcept.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 965 @Description(shortDefinition="Conditions under which service is available/offered", formalDefinition="The code(s) that detail the conditions under which the healthcare service is available/offered." ) 966 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/service-provision-conditions") 967 protected List<CodeableConcept> serviceProvisionCode; 968 969 /** 970 * Does this service have specific eligibility requirements that need to be met in order to use the service? 971 */ 972 @Child(name = "eligibility", type = {CodeableConcept.class}, order=14, min=0, max=1, modifier=false, summary=false) 973 @Description(shortDefinition="Specific eligibility requirements required to use the service", formalDefinition="Does this service have specific eligibility requirements that need to be met in order to use the service?" ) 974 protected CodeableConcept eligibility; 975 976 /** 977 * Describes the eligibility conditions for the service. 978 */ 979 @Child(name = "eligibilityNote", type = {StringType.class}, order=15, min=0, max=1, modifier=false, summary=false) 980 @Description(shortDefinition="Describes the eligibility conditions for the service", formalDefinition="Describes the eligibility conditions for the service." ) 981 protected StringType eligibilityNote; 982 983 /** 984 * Program Names that can be used to categorize the service. 985 */ 986 @Child(name = "programName", type = {StringType.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 987 @Description(shortDefinition="Program Names that categorize the service", formalDefinition="Program Names that can be used to categorize the service." ) 988 protected List<StringType> programName; 989 990 /** 991 * Collection of characteristics (attributes). 992 */ 993 @Child(name = "characteristic", type = {CodeableConcept.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 994 @Description(shortDefinition="Collection of characteristics (attributes)", formalDefinition="Collection of characteristics (attributes)." ) 995 protected List<CodeableConcept> characteristic; 996 997 /** 998 * Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required. 999 */ 1000 @Child(name = "referralMethod", type = {CodeableConcept.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1001 @Description(shortDefinition="Ways that the service accepts referrals", formalDefinition="Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required." ) 1002 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/service-referral-method") 1003 protected List<CodeableConcept> referralMethod; 1004 1005 /** 1006 * Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service. 1007 */ 1008 @Child(name = "appointmentRequired", type = {BooleanType.class}, order=19, min=0, max=1, modifier=false, summary=false) 1009 @Description(shortDefinition="If an appointment is required for access to this service", formalDefinition="Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service." ) 1010 protected BooleanType appointmentRequired; 1011 1012 /** 1013 * A collection of times that the Service Site is available. 1014 */ 1015 @Child(name = "availableTime", type = {}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1016 @Description(shortDefinition="Times the Service Site is available", formalDefinition="A collection of times that the Service Site is available." ) 1017 protected List<HealthcareServiceAvailableTimeComponent> availableTime; 1018 1019 /** 1020 * The HealthcareService is not available during this period of time due to the provided reason. 1021 */ 1022 @Child(name = "notAvailable", type = {}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1023 @Description(shortDefinition="Not available during this time due to provided reason", formalDefinition="The HealthcareService is not available during this period of time due to the provided reason." ) 1024 protected List<HealthcareServiceNotAvailableComponent> notAvailable; 1025 1026 /** 1027 * A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times. 1028 */ 1029 @Child(name = "availabilityExceptions", type = {StringType.class}, order=22, min=0, max=1, modifier=false, summary=false) 1030 @Description(shortDefinition="Description of availability exceptions", formalDefinition="A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times." ) 1031 protected StringType availabilityExceptions; 1032 1033 /** 1034 * Technical endpoints providing access to services operated for the specific healthcare services defined at this resource. 1035 */ 1036 @Child(name = "endpoint", type = {Endpoint.class}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1037 @Description(shortDefinition="Technical endpoints providing access to services operated for the location", formalDefinition="Technical endpoints providing access to services operated for the specific healthcare services defined at this resource." ) 1038 protected List<Reference> endpoint; 1039 /** 1040 * The actual objects that are the target of the reference (Technical endpoints providing access to services operated for the specific healthcare services defined at this resource.) 1041 */ 1042 protected List<Endpoint> endpointTarget; 1043 1044 1045 private static final long serialVersionUID = -202805485L; 1046 1047 /** 1048 * Constructor 1049 */ 1050 public HealthcareService() { 1051 super(); 1052 } 1053 1054 /** 1055 * @return {@link #identifier} (External identifiers for this item.) 1056 */ 1057 public List<Identifier> getIdentifier() { 1058 if (this.identifier == null) 1059 this.identifier = new ArrayList<Identifier>(); 1060 return this.identifier; 1061 } 1062 1063 /** 1064 * @return Returns a reference to <code>this</code> for easy method chaining 1065 */ 1066 public HealthcareService setIdentifier(List<Identifier> theIdentifier) { 1067 this.identifier = theIdentifier; 1068 return this; 1069 } 1070 1071 public boolean hasIdentifier() { 1072 if (this.identifier == null) 1073 return false; 1074 for (Identifier item : this.identifier) 1075 if (!item.isEmpty()) 1076 return true; 1077 return false; 1078 } 1079 1080 public Identifier addIdentifier() { //3 1081 Identifier t = new Identifier(); 1082 if (this.identifier == null) 1083 this.identifier = new ArrayList<Identifier>(); 1084 this.identifier.add(t); 1085 return t; 1086 } 1087 1088 public HealthcareService addIdentifier(Identifier t) { //3 1089 if (t == null) 1090 return this; 1091 if (this.identifier == null) 1092 this.identifier = new ArrayList<Identifier>(); 1093 this.identifier.add(t); 1094 return this; 1095 } 1096 1097 /** 1098 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist 1099 */ 1100 public Identifier getIdentifierFirstRep() { 1101 if (getIdentifier().isEmpty()) { 1102 addIdentifier(); 1103 } 1104 return getIdentifier().get(0); 1105 } 1106 1107 /** 1108 * @return {@link #active} (Whether this healthcareservice record is in active use.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value 1109 */ 1110 public BooleanType getActiveElement() { 1111 if (this.active == null) 1112 if (Configuration.errorOnAutoCreate()) 1113 throw new Error("Attempt to auto-create HealthcareService.active"); 1114 else if (Configuration.doAutoCreate()) 1115 this.active = new BooleanType(); // bb 1116 return this.active; 1117 } 1118 1119 public boolean hasActiveElement() { 1120 return this.active != null && !this.active.isEmpty(); 1121 } 1122 1123 public boolean hasActive() { 1124 return this.active != null && !this.active.isEmpty(); 1125 } 1126 1127 /** 1128 * @param value {@link #active} (Whether this healthcareservice record is in active use.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value 1129 */ 1130 public HealthcareService setActiveElement(BooleanType value) { 1131 this.active = value; 1132 return this; 1133 } 1134 1135 /** 1136 * @return Whether this healthcareservice record is in active use. 1137 */ 1138 public boolean getActive() { 1139 return this.active == null || this.active.isEmpty() ? false : this.active.getValue(); 1140 } 1141 1142 /** 1143 * @param value Whether this healthcareservice record is in active use. 1144 */ 1145 public HealthcareService setActive(boolean value) { 1146 if (this.active == null) 1147 this.active = new BooleanType(); 1148 this.active.setValue(value); 1149 return this; 1150 } 1151 1152 /** 1153 * @return {@link #providedBy} (The organization that provides this healthcare service.) 1154 */ 1155 public Reference getProvidedBy() { 1156 if (this.providedBy == null) 1157 if (Configuration.errorOnAutoCreate()) 1158 throw new Error("Attempt to auto-create HealthcareService.providedBy"); 1159 else if (Configuration.doAutoCreate()) 1160 this.providedBy = new Reference(); // cc 1161 return this.providedBy; 1162 } 1163 1164 public boolean hasProvidedBy() { 1165 return this.providedBy != null && !this.providedBy.isEmpty(); 1166 } 1167 1168 /** 1169 * @param value {@link #providedBy} (The organization that provides this healthcare service.) 1170 */ 1171 public HealthcareService setProvidedBy(Reference value) { 1172 this.providedBy = value; 1173 return this; 1174 } 1175 1176 /** 1177 * @return {@link #providedBy} 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 that provides this healthcare service.) 1178 */ 1179 public Organization getProvidedByTarget() { 1180 if (this.providedByTarget == null) 1181 if (Configuration.errorOnAutoCreate()) 1182 throw new Error("Attempt to auto-create HealthcareService.providedBy"); 1183 else if (Configuration.doAutoCreate()) 1184 this.providedByTarget = new Organization(); // aa 1185 return this.providedByTarget; 1186 } 1187 1188 /** 1189 * @param value {@link #providedBy} 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 that provides this healthcare service.) 1190 */ 1191 public HealthcareService setProvidedByTarget(Organization value) { 1192 this.providedByTarget = value; 1193 return this; 1194 } 1195 1196 /** 1197 * @return {@link #category} (Identifies the broad category of service being performed or delivered.) 1198 */ 1199 public CodeableConcept getCategory() { 1200 if (this.category == null) 1201 if (Configuration.errorOnAutoCreate()) 1202 throw new Error("Attempt to auto-create HealthcareService.category"); 1203 else if (Configuration.doAutoCreate()) 1204 this.category = new CodeableConcept(); // cc 1205 return this.category; 1206 } 1207 1208 public boolean hasCategory() { 1209 return this.category != null && !this.category.isEmpty(); 1210 } 1211 1212 /** 1213 * @param value {@link #category} (Identifies the broad category of service being performed or delivered.) 1214 */ 1215 public HealthcareService setCategory(CodeableConcept value) { 1216 this.category = value; 1217 return this; 1218 } 1219 1220 /** 1221 * @return {@link #type} (The specific type of service that may be delivered or performed.) 1222 */ 1223 public List<CodeableConcept> getType() { 1224 if (this.type == null) 1225 this.type = new ArrayList<CodeableConcept>(); 1226 return this.type; 1227 } 1228 1229 /** 1230 * @return Returns a reference to <code>this</code> for easy method chaining 1231 */ 1232 public HealthcareService setType(List<CodeableConcept> theType) { 1233 this.type = theType; 1234 return this; 1235 } 1236 1237 public boolean hasType() { 1238 if (this.type == null) 1239 return false; 1240 for (CodeableConcept item : this.type) 1241 if (!item.isEmpty()) 1242 return true; 1243 return false; 1244 } 1245 1246 public CodeableConcept addType() { //3 1247 CodeableConcept t = new CodeableConcept(); 1248 if (this.type == null) 1249 this.type = new ArrayList<CodeableConcept>(); 1250 this.type.add(t); 1251 return t; 1252 } 1253 1254 public HealthcareService addType(CodeableConcept t) { //3 1255 if (t == null) 1256 return this; 1257 if (this.type == null) 1258 this.type = new ArrayList<CodeableConcept>(); 1259 this.type.add(t); 1260 return this; 1261 } 1262 1263 /** 1264 * @return The first repetition of repeating field {@link #type}, creating it if it does not already exist 1265 */ 1266 public CodeableConcept getTypeFirstRep() { 1267 if (getType().isEmpty()) { 1268 addType(); 1269 } 1270 return getType().get(0); 1271 } 1272 1273 /** 1274 * @return {@link #specialty} (Collection of specialties handled by the service site. This is more of a medical term.) 1275 */ 1276 public List<CodeableConcept> getSpecialty() { 1277 if (this.specialty == null) 1278 this.specialty = new ArrayList<CodeableConcept>(); 1279 return this.specialty; 1280 } 1281 1282 /** 1283 * @return Returns a reference to <code>this</code> for easy method chaining 1284 */ 1285 public HealthcareService setSpecialty(List<CodeableConcept> theSpecialty) { 1286 this.specialty = theSpecialty; 1287 return this; 1288 } 1289 1290 public boolean hasSpecialty() { 1291 if (this.specialty == null) 1292 return false; 1293 for (CodeableConcept item : this.specialty) 1294 if (!item.isEmpty()) 1295 return true; 1296 return false; 1297 } 1298 1299 public CodeableConcept addSpecialty() { //3 1300 CodeableConcept t = new CodeableConcept(); 1301 if (this.specialty == null) 1302 this.specialty = new ArrayList<CodeableConcept>(); 1303 this.specialty.add(t); 1304 return t; 1305 } 1306 1307 public HealthcareService addSpecialty(CodeableConcept t) { //3 1308 if (t == null) 1309 return this; 1310 if (this.specialty == null) 1311 this.specialty = new ArrayList<CodeableConcept>(); 1312 this.specialty.add(t); 1313 return this; 1314 } 1315 1316 /** 1317 * @return The first repetition of repeating field {@link #specialty}, creating it if it does not already exist 1318 */ 1319 public CodeableConcept getSpecialtyFirstRep() { 1320 if (getSpecialty().isEmpty()) { 1321 addSpecialty(); 1322 } 1323 return getSpecialty().get(0); 1324 } 1325 1326 /** 1327 * @return {@link #location} (The location(s) where this healthcare service may be provided.) 1328 */ 1329 public List<Reference> getLocation() { 1330 if (this.location == null) 1331 this.location = new ArrayList<Reference>(); 1332 return this.location; 1333 } 1334 1335 /** 1336 * @return Returns a reference to <code>this</code> for easy method chaining 1337 */ 1338 public HealthcareService setLocation(List<Reference> theLocation) { 1339 this.location = theLocation; 1340 return this; 1341 } 1342 1343 public boolean hasLocation() { 1344 if (this.location == null) 1345 return false; 1346 for (Reference item : this.location) 1347 if (!item.isEmpty()) 1348 return true; 1349 return false; 1350 } 1351 1352 public Reference addLocation() { //3 1353 Reference t = new Reference(); 1354 if (this.location == null) 1355 this.location = new ArrayList<Reference>(); 1356 this.location.add(t); 1357 return t; 1358 } 1359 1360 public HealthcareService addLocation(Reference t) { //3 1361 if (t == null) 1362 return this; 1363 if (this.location == null) 1364 this.location = new ArrayList<Reference>(); 1365 this.location.add(t); 1366 return this; 1367 } 1368 1369 /** 1370 * @return The first repetition of repeating field {@link #location}, creating it if it does not already exist 1371 */ 1372 public Reference getLocationFirstRep() { 1373 if (getLocation().isEmpty()) { 1374 addLocation(); 1375 } 1376 return getLocation().get(0); 1377 } 1378 1379 /** 1380 * @deprecated Use Reference#setResource(IBaseResource) instead 1381 */ 1382 @Deprecated 1383 public List<Location> getLocationTarget() { 1384 if (this.locationTarget == null) 1385 this.locationTarget = new ArrayList<Location>(); 1386 return this.locationTarget; 1387 } 1388 1389 /** 1390 * @deprecated Use Reference#setResource(IBaseResource) instead 1391 */ 1392 @Deprecated 1393 public Location addLocationTarget() { 1394 Location r = new Location(); 1395 if (this.locationTarget == null) 1396 this.locationTarget = new ArrayList<Location>(); 1397 this.locationTarget.add(r); 1398 return r; 1399 } 1400 1401 /** 1402 * @return {@link #name} (Further description of the service as it would be presented to a consumer while searching.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 1403 */ 1404 public StringType getNameElement() { 1405 if (this.name == null) 1406 if (Configuration.errorOnAutoCreate()) 1407 throw new Error("Attempt to auto-create HealthcareService.name"); 1408 else if (Configuration.doAutoCreate()) 1409 this.name = new StringType(); // bb 1410 return this.name; 1411 } 1412 1413 public boolean hasNameElement() { 1414 return this.name != null && !this.name.isEmpty(); 1415 } 1416 1417 public boolean hasName() { 1418 return this.name != null && !this.name.isEmpty(); 1419 } 1420 1421 /** 1422 * @param value {@link #name} (Further description of the service as it would be presented to a consumer while searching.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 1423 */ 1424 public HealthcareService setNameElement(StringType value) { 1425 this.name = value; 1426 return this; 1427 } 1428 1429 /** 1430 * @return Further description of the service as it would be presented to a consumer while searching. 1431 */ 1432 public String getName() { 1433 return this.name == null ? null : this.name.getValue(); 1434 } 1435 1436 /** 1437 * @param value Further description of the service as it would be presented to a consumer while searching. 1438 */ 1439 public HealthcareService setName(String value) { 1440 if (Utilities.noString(value)) 1441 this.name = null; 1442 else { 1443 if (this.name == null) 1444 this.name = new StringType(); 1445 this.name.setValue(value); 1446 } 1447 return this; 1448 } 1449 1450 /** 1451 * @return {@link #comment} (Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value 1452 */ 1453 public StringType getCommentElement() { 1454 if (this.comment == null) 1455 if (Configuration.errorOnAutoCreate()) 1456 throw new Error("Attempt to auto-create HealthcareService.comment"); 1457 else if (Configuration.doAutoCreate()) 1458 this.comment = new StringType(); // bb 1459 return this.comment; 1460 } 1461 1462 public boolean hasCommentElement() { 1463 return this.comment != null && !this.comment.isEmpty(); 1464 } 1465 1466 public boolean hasComment() { 1467 return this.comment != null && !this.comment.isEmpty(); 1468 } 1469 1470 /** 1471 * @param value {@link #comment} (Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value 1472 */ 1473 public HealthcareService setCommentElement(StringType value) { 1474 this.comment = value; 1475 return this; 1476 } 1477 1478 /** 1479 * @return Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName. 1480 */ 1481 public String getComment() { 1482 return this.comment == null ? null : this.comment.getValue(); 1483 } 1484 1485 /** 1486 * @param value Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName. 1487 */ 1488 public HealthcareService setComment(String value) { 1489 if (Utilities.noString(value)) 1490 this.comment = null; 1491 else { 1492 if (this.comment == null) 1493 this.comment = new StringType(); 1494 this.comment.setValue(value); 1495 } 1496 return this; 1497 } 1498 1499 /** 1500 * @return {@link #extraDetails} (Extra details about the service that can't be placed in the other fields.). This is the underlying object with id, value and extensions. The accessor "getExtraDetails" gives direct access to the value 1501 */ 1502 public StringType getExtraDetailsElement() { 1503 if (this.extraDetails == null) 1504 if (Configuration.errorOnAutoCreate()) 1505 throw new Error("Attempt to auto-create HealthcareService.extraDetails"); 1506 else if (Configuration.doAutoCreate()) 1507 this.extraDetails = new StringType(); // bb 1508 return this.extraDetails; 1509 } 1510 1511 public boolean hasExtraDetailsElement() { 1512 return this.extraDetails != null && !this.extraDetails.isEmpty(); 1513 } 1514 1515 public boolean hasExtraDetails() { 1516 return this.extraDetails != null && !this.extraDetails.isEmpty(); 1517 } 1518 1519 /** 1520 * @param value {@link #extraDetails} (Extra details about the service that can't be placed in the other fields.). This is the underlying object with id, value and extensions. The accessor "getExtraDetails" gives direct access to the value 1521 */ 1522 public HealthcareService setExtraDetailsElement(StringType value) { 1523 this.extraDetails = value; 1524 return this; 1525 } 1526 1527 /** 1528 * @return Extra details about the service that can't be placed in the other fields. 1529 */ 1530 public String getExtraDetails() { 1531 return this.extraDetails == null ? null : this.extraDetails.getValue(); 1532 } 1533 1534 /** 1535 * @param value Extra details about the service that can't be placed in the other fields. 1536 */ 1537 public HealthcareService setExtraDetails(String value) { 1538 if (Utilities.noString(value)) 1539 this.extraDetails = null; 1540 else { 1541 if (this.extraDetails == null) 1542 this.extraDetails = new StringType(); 1543 this.extraDetails.setValue(value); 1544 } 1545 return this; 1546 } 1547 1548 /** 1549 * @return {@link #photo} (If there is a photo/symbol associated with this HealthcareService, it may be included here to facilitate quick identification of the service in a list.) 1550 */ 1551 public Attachment getPhoto() { 1552 if (this.photo == null) 1553 if (Configuration.errorOnAutoCreate()) 1554 throw new Error("Attempt to auto-create HealthcareService.photo"); 1555 else if (Configuration.doAutoCreate()) 1556 this.photo = new Attachment(); // cc 1557 return this.photo; 1558 } 1559 1560 public boolean hasPhoto() { 1561 return this.photo != null && !this.photo.isEmpty(); 1562 } 1563 1564 /** 1565 * @param value {@link #photo} (If there is a photo/symbol associated with this HealthcareService, it may be included here to facilitate quick identification of the service in a list.) 1566 */ 1567 public HealthcareService setPhoto(Attachment value) { 1568 this.photo = value; 1569 return this; 1570 } 1571 1572 /** 1573 * @return {@link #telecom} (List of contacts related to this specific healthcare service.) 1574 */ 1575 public List<ContactPoint> getTelecom() { 1576 if (this.telecom == null) 1577 this.telecom = new ArrayList<ContactPoint>(); 1578 return this.telecom; 1579 } 1580 1581 /** 1582 * @return Returns a reference to <code>this</code> for easy method chaining 1583 */ 1584 public HealthcareService setTelecom(List<ContactPoint> theTelecom) { 1585 this.telecom = theTelecom; 1586 return this; 1587 } 1588 1589 public boolean hasTelecom() { 1590 if (this.telecom == null) 1591 return false; 1592 for (ContactPoint item : this.telecom) 1593 if (!item.isEmpty()) 1594 return true; 1595 return false; 1596 } 1597 1598 public ContactPoint addTelecom() { //3 1599 ContactPoint t = new ContactPoint(); 1600 if (this.telecom == null) 1601 this.telecom = new ArrayList<ContactPoint>(); 1602 this.telecom.add(t); 1603 return t; 1604 } 1605 1606 public HealthcareService addTelecom(ContactPoint t) { //3 1607 if (t == null) 1608 return this; 1609 if (this.telecom == null) 1610 this.telecom = new ArrayList<ContactPoint>(); 1611 this.telecom.add(t); 1612 return this; 1613 } 1614 1615 /** 1616 * @return The first repetition of repeating field {@link #telecom}, creating it if it does not already exist 1617 */ 1618 public ContactPoint getTelecomFirstRep() { 1619 if (getTelecom().isEmpty()) { 1620 addTelecom(); 1621 } 1622 return getTelecom().get(0); 1623 } 1624 1625 /** 1626 * @return {@link #coverageArea} (The location(s) that this service is available to (not where the service is provided).) 1627 */ 1628 public List<Reference> getCoverageArea() { 1629 if (this.coverageArea == null) 1630 this.coverageArea = new ArrayList<Reference>(); 1631 return this.coverageArea; 1632 } 1633 1634 /** 1635 * @return Returns a reference to <code>this</code> for easy method chaining 1636 */ 1637 public HealthcareService setCoverageArea(List<Reference> theCoverageArea) { 1638 this.coverageArea = theCoverageArea; 1639 return this; 1640 } 1641 1642 public boolean hasCoverageArea() { 1643 if (this.coverageArea == null) 1644 return false; 1645 for (Reference item : this.coverageArea) 1646 if (!item.isEmpty()) 1647 return true; 1648 return false; 1649 } 1650 1651 public Reference addCoverageArea() { //3 1652 Reference t = new Reference(); 1653 if (this.coverageArea == null) 1654 this.coverageArea = new ArrayList<Reference>(); 1655 this.coverageArea.add(t); 1656 return t; 1657 } 1658 1659 public HealthcareService addCoverageArea(Reference t) { //3 1660 if (t == null) 1661 return this; 1662 if (this.coverageArea == null) 1663 this.coverageArea = new ArrayList<Reference>(); 1664 this.coverageArea.add(t); 1665 return this; 1666 } 1667 1668 /** 1669 * @return The first repetition of repeating field {@link #coverageArea}, creating it if it does not already exist 1670 */ 1671 public Reference getCoverageAreaFirstRep() { 1672 if (getCoverageArea().isEmpty()) { 1673 addCoverageArea(); 1674 } 1675 return getCoverageArea().get(0); 1676 } 1677 1678 /** 1679 * @deprecated Use Reference#setResource(IBaseResource) instead 1680 */ 1681 @Deprecated 1682 public List<Location> getCoverageAreaTarget() { 1683 if (this.coverageAreaTarget == null) 1684 this.coverageAreaTarget = new ArrayList<Location>(); 1685 return this.coverageAreaTarget; 1686 } 1687 1688 /** 1689 * @deprecated Use Reference#setResource(IBaseResource) instead 1690 */ 1691 @Deprecated 1692 public Location addCoverageAreaTarget() { 1693 Location r = new Location(); 1694 if (this.coverageAreaTarget == null) 1695 this.coverageAreaTarget = new ArrayList<Location>(); 1696 this.coverageAreaTarget.add(r); 1697 return r; 1698 } 1699 1700 /** 1701 * @return {@link #serviceProvisionCode} (The code(s) that detail the conditions under which the healthcare service is available/offered.) 1702 */ 1703 public List<CodeableConcept> getServiceProvisionCode() { 1704 if (this.serviceProvisionCode == null) 1705 this.serviceProvisionCode = new ArrayList<CodeableConcept>(); 1706 return this.serviceProvisionCode; 1707 } 1708 1709 /** 1710 * @return Returns a reference to <code>this</code> for easy method chaining 1711 */ 1712 public HealthcareService setServiceProvisionCode(List<CodeableConcept> theServiceProvisionCode) { 1713 this.serviceProvisionCode = theServiceProvisionCode; 1714 return this; 1715 } 1716 1717 public boolean hasServiceProvisionCode() { 1718 if (this.serviceProvisionCode == null) 1719 return false; 1720 for (CodeableConcept item : this.serviceProvisionCode) 1721 if (!item.isEmpty()) 1722 return true; 1723 return false; 1724 } 1725 1726 public CodeableConcept addServiceProvisionCode() { //3 1727 CodeableConcept t = new CodeableConcept(); 1728 if (this.serviceProvisionCode == null) 1729 this.serviceProvisionCode = new ArrayList<CodeableConcept>(); 1730 this.serviceProvisionCode.add(t); 1731 return t; 1732 } 1733 1734 public HealthcareService addServiceProvisionCode(CodeableConcept t) { //3 1735 if (t == null) 1736 return this; 1737 if (this.serviceProvisionCode == null) 1738 this.serviceProvisionCode = new ArrayList<CodeableConcept>(); 1739 this.serviceProvisionCode.add(t); 1740 return this; 1741 } 1742 1743 /** 1744 * @return The first repetition of repeating field {@link #serviceProvisionCode}, creating it if it does not already exist 1745 */ 1746 public CodeableConcept getServiceProvisionCodeFirstRep() { 1747 if (getServiceProvisionCode().isEmpty()) { 1748 addServiceProvisionCode(); 1749 } 1750 return getServiceProvisionCode().get(0); 1751 } 1752 1753 /** 1754 * @return {@link #eligibility} (Does this service have specific eligibility requirements that need to be met in order to use the service?) 1755 */ 1756 public CodeableConcept getEligibility() { 1757 if (this.eligibility == null) 1758 if (Configuration.errorOnAutoCreate()) 1759 throw new Error("Attempt to auto-create HealthcareService.eligibility"); 1760 else if (Configuration.doAutoCreate()) 1761 this.eligibility = new CodeableConcept(); // cc 1762 return this.eligibility; 1763 } 1764 1765 public boolean hasEligibility() { 1766 return this.eligibility != null && !this.eligibility.isEmpty(); 1767 } 1768 1769 /** 1770 * @param value {@link #eligibility} (Does this service have specific eligibility requirements that need to be met in order to use the service?) 1771 */ 1772 public HealthcareService setEligibility(CodeableConcept value) { 1773 this.eligibility = value; 1774 return this; 1775 } 1776 1777 /** 1778 * @return {@link #eligibilityNote} (Describes the eligibility conditions for the service.). This is the underlying object with id, value and extensions. The accessor "getEligibilityNote" gives direct access to the value 1779 */ 1780 public StringType getEligibilityNoteElement() { 1781 if (this.eligibilityNote == null) 1782 if (Configuration.errorOnAutoCreate()) 1783 throw new Error("Attempt to auto-create HealthcareService.eligibilityNote"); 1784 else if (Configuration.doAutoCreate()) 1785 this.eligibilityNote = new StringType(); // bb 1786 return this.eligibilityNote; 1787 } 1788 1789 public boolean hasEligibilityNoteElement() { 1790 return this.eligibilityNote != null && !this.eligibilityNote.isEmpty(); 1791 } 1792 1793 public boolean hasEligibilityNote() { 1794 return this.eligibilityNote != null && !this.eligibilityNote.isEmpty(); 1795 } 1796 1797 /** 1798 * @param value {@link #eligibilityNote} (Describes the eligibility conditions for the service.). This is the underlying object with id, value and extensions. The accessor "getEligibilityNote" gives direct access to the value 1799 */ 1800 public HealthcareService setEligibilityNoteElement(StringType value) { 1801 this.eligibilityNote = value; 1802 return this; 1803 } 1804 1805 /** 1806 * @return Describes the eligibility conditions for the service. 1807 */ 1808 public String getEligibilityNote() { 1809 return this.eligibilityNote == null ? null : this.eligibilityNote.getValue(); 1810 } 1811 1812 /** 1813 * @param value Describes the eligibility conditions for the service. 1814 */ 1815 public HealthcareService setEligibilityNote(String value) { 1816 if (Utilities.noString(value)) 1817 this.eligibilityNote = null; 1818 else { 1819 if (this.eligibilityNote == null) 1820 this.eligibilityNote = new StringType(); 1821 this.eligibilityNote.setValue(value); 1822 } 1823 return this; 1824 } 1825 1826 /** 1827 * @return {@link #programName} (Program Names that can be used to categorize the service.) 1828 */ 1829 public List<StringType> getProgramName() { 1830 if (this.programName == null) 1831 this.programName = new ArrayList<StringType>(); 1832 return this.programName; 1833 } 1834 1835 /** 1836 * @return Returns a reference to <code>this</code> for easy method chaining 1837 */ 1838 public HealthcareService setProgramName(List<StringType> theProgramName) { 1839 this.programName = theProgramName; 1840 return this; 1841 } 1842 1843 public boolean hasProgramName() { 1844 if (this.programName == null) 1845 return false; 1846 for (StringType item : this.programName) 1847 if (!item.isEmpty()) 1848 return true; 1849 return false; 1850 } 1851 1852 /** 1853 * @return {@link #programName} (Program Names that can be used to categorize the service.) 1854 */ 1855 public StringType addProgramNameElement() {//2 1856 StringType t = new StringType(); 1857 if (this.programName == null) 1858 this.programName = new ArrayList<StringType>(); 1859 this.programName.add(t); 1860 return t; 1861 } 1862 1863 /** 1864 * @param value {@link #programName} (Program Names that can be used to categorize the service.) 1865 */ 1866 public HealthcareService addProgramName(String value) { //1 1867 StringType t = new StringType(); 1868 t.setValue(value); 1869 if (this.programName == null) 1870 this.programName = new ArrayList<StringType>(); 1871 this.programName.add(t); 1872 return this; 1873 } 1874 1875 /** 1876 * @param value {@link #programName} (Program Names that can be used to categorize the service.) 1877 */ 1878 public boolean hasProgramName(String value) { 1879 if (this.programName == null) 1880 return false; 1881 for (StringType v : this.programName) 1882 if (v.getValue().equals(value)) // string 1883 return true; 1884 return false; 1885 } 1886 1887 /** 1888 * @return {@link #characteristic} (Collection of characteristics (attributes).) 1889 */ 1890 public List<CodeableConcept> getCharacteristic() { 1891 if (this.characteristic == null) 1892 this.characteristic = new ArrayList<CodeableConcept>(); 1893 return this.characteristic; 1894 } 1895 1896 /** 1897 * @return Returns a reference to <code>this</code> for easy method chaining 1898 */ 1899 public HealthcareService setCharacteristic(List<CodeableConcept> theCharacteristic) { 1900 this.characteristic = theCharacteristic; 1901 return this; 1902 } 1903 1904 public boolean hasCharacteristic() { 1905 if (this.characteristic == null) 1906 return false; 1907 for (CodeableConcept item : this.characteristic) 1908 if (!item.isEmpty()) 1909 return true; 1910 return false; 1911 } 1912 1913 public CodeableConcept addCharacteristic() { //3 1914 CodeableConcept t = new CodeableConcept(); 1915 if (this.characteristic == null) 1916 this.characteristic = new ArrayList<CodeableConcept>(); 1917 this.characteristic.add(t); 1918 return t; 1919 } 1920 1921 public HealthcareService addCharacteristic(CodeableConcept t) { //3 1922 if (t == null) 1923 return this; 1924 if (this.characteristic == null) 1925 this.characteristic = new ArrayList<CodeableConcept>(); 1926 this.characteristic.add(t); 1927 return this; 1928 } 1929 1930 /** 1931 * @return The first repetition of repeating field {@link #characteristic}, creating it if it does not already exist 1932 */ 1933 public CodeableConcept getCharacteristicFirstRep() { 1934 if (getCharacteristic().isEmpty()) { 1935 addCharacteristic(); 1936 } 1937 return getCharacteristic().get(0); 1938 } 1939 1940 /** 1941 * @return {@link #referralMethod} (Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required.) 1942 */ 1943 public List<CodeableConcept> getReferralMethod() { 1944 if (this.referralMethod == null) 1945 this.referralMethod = new ArrayList<CodeableConcept>(); 1946 return this.referralMethod; 1947 } 1948 1949 /** 1950 * @return Returns a reference to <code>this</code> for easy method chaining 1951 */ 1952 public HealthcareService setReferralMethod(List<CodeableConcept> theReferralMethod) { 1953 this.referralMethod = theReferralMethod; 1954 return this; 1955 } 1956 1957 public boolean hasReferralMethod() { 1958 if (this.referralMethod == null) 1959 return false; 1960 for (CodeableConcept item : this.referralMethod) 1961 if (!item.isEmpty()) 1962 return true; 1963 return false; 1964 } 1965 1966 public CodeableConcept addReferralMethod() { //3 1967 CodeableConcept t = new CodeableConcept(); 1968 if (this.referralMethod == null) 1969 this.referralMethod = new ArrayList<CodeableConcept>(); 1970 this.referralMethod.add(t); 1971 return t; 1972 } 1973 1974 public HealthcareService addReferralMethod(CodeableConcept t) { //3 1975 if (t == null) 1976 return this; 1977 if (this.referralMethod == null) 1978 this.referralMethod = new ArrayList<CodeableConcept>(); 1979 this.referralMethod.add(t); 1980 return this; 1981 } 1982 1983 /** 1984 * @return The first repetition of repeating field {@link #referralMethod}, creating it if it does not already exist 1985 */ 1986 public CodeableConcept getReferralMethodFirstRep() { 1987 if (getReferralMethod().isEmpty()) { 1988 addReferralMethod(); 1989 } 1990 return getReferralMethod().get(0); 1991 } 1992 1993 /** 1994 * @return {@link #appointmentRequired} (Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service.). This is the underlying object with id, value and extensions. The accessor "getAppointmentRequired" gives direct access to the value 1995 */ 1996 public BooleanType getAppointmentRequiredElement() { 1997 if (this.appointmentRequired == null) 1998 if (Configuration.errorOnAutoCreate()) 1999 throw new Error("Attempt to auto-create HealthcareService.appointmentRequired"); 2000 else if (Configuration.doAutoCreate()) 2001 this.appointmentRequired = new BooleanType(); // bb 2002 return this.appointmentRequired; 2003 } 2004 2005 public boolean hasAppointmentRequiredElement() { 2006 return this.appointmentRequired != null && !this.appointmentRequired.isEmpty(); 2007 } 2008 2009 public boolean hasAppointmentRequired() { 2010 return this.appointmentRequired != null && !this.appointmentRequired.isEmpty(); 2011 } 2012 2013 /** 2014 * @param value {@link #appointmentRequired} (Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service.). This is the underlying object with id, value and extensions. The accessor "getAppointmentRequired" gives direct access to the value 2015 */ 2016 public HealthcareService setAppointmentRequiredElement(BooleanType value) { 2017 this.appointmentRequired = value; 2018 return this; 2019 } 2020 2021 /** 2022 * @return Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service. 2023 */ 2024 public boolean getAppointmentRequired() { 2025 return this.appointmentRequired == null || this.appointmentRequired.isEmpty() ? false : this.appointmentRequired.getValue(); 2026 } 2027 2028 /** 2029 * @param value Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service. 2030 */ 2031 public HealthcareService setAppointmentRequired(boolean value) { 2032 if (this.appointmentRequired == null) 2033 this.appointmentRequired = new BooleanType(); 2034 this.appointmentRequired.setValue(value); 2035 return this; 2036 } 2037 2038 /** 2039 * @return {@link #availableTime} (A collection of times that the Service Site is available.) 2040 */ 2041 public List<HealthcareServiceAvailableTimeComponent> getAvailableTime() { 2042 if (this.availableTime == null) 2043 this.availableTime = new ArrayList<HealthcareServiceAvailableTimeComponent>(); 2044 return this.availableTime; 2045 } 2046 2047 /** 2048 * @return Returns a reference to <code>this</code> for easy method chaining 2049 */ 2050 public HealthcareService setAvailableTime(List<HealthcareServiceAvailableTimeComponent> theAvailableTime) { 2051 this.availableTime = theAvailableTime; 2052 return this; 2053 } 2054 2055 public boolean hasAvailableTime() { 2056 if (this.availableTime == null) 2057 return false; 2058 for (HealthcareServiceAvailableTimeComponent item : this.availableTime) 2059 if (!item.isEmpty()) 2060 return true; 2061 return false; 2062 } 2063 2064 public HealthcareServiceAvailableTimeComponent addAvailableTime() { //3 2065 HealthcareServiceAvailableTimeComponent t = new HealthcareServiceAvailableTimeComponent(); 2066 if (this.availableTime == null) 2067 this.availableTime = new ArrayList<HealthcareServiceAvailableTimeComponent>(); 2068 this.availableTime.add(t); 2069 return t; 2070 } 2071 2072 public HealthcareService addAvailableTime(HealthcareServiceAvailableTimeComponent t) { //3 2073 if (t == null) 2074 return this; 2075 if (this.availableTime == null) 2076 this.availableTime = new ArrayList<HealthcareServiceAvailableTimeComponent>(); 2077 this.availableTime.add(t); 2078 return this; 2079 } 2080 2081 /** 2082 * @return The first repetition of repeating field {@link #availableTime}, creating it if it does not already exist 2083 */ 2084 public HealthcareServiceAvailableTimeComponent getAvailableTimeFirstRep() { 2085 if (getAvailableTime().isEmpty()) { 2086 addAvailableTime(); 2087 } 2088 return getAvailableTime().get(0); 2089 } 2090 2091 /** 2092 * @return {@link #notAvailable} (The HealthcareService is not available during this period of time due to the provided reason.) 2093 */ 2094 public List<HealthcareServiceNotAvailableComponent> getNotAvailable() { 2095 if (this.notAvailable == null) 2096 this.notAvailable = new ArrayList<HealthcareServiceNotAvailableComponent>(); 2097 return this.notAvailable; 2098 } 2099 2100 /** 2101 * @return Returns a reference to <code>this</code> for easy method chaining 2102 */ 2103 public HealthcareService setNotAvailable(List<HealthcareServiceNotAvailableComponent> theNotAvailable) { 2104 this.notAvailable = theNotAvailable; 2105 return this; 2106 } 2107 2108 public boolean hasNotAvailable() { 2109 if (this.notAvailable == null) 2110 return false; 2111 for (HealthcareServiceNotAvailableComponent item : this.notAvailable) 2112 if (!item.isEmpty()) 2113 return true; 2114 return false; 2115 } 2116 2117 public HealthcareServiceNotAvailableComponent addNotAvailable() { //3 2118 HealthcareServiceNotAvailableComponent t = new HealthcareServiceNotAvailableComponent(); 2119 if (this.notAvailable == null) 2120 this.notAvailable = new ArrayList<HealthcareServiceNotAvailableComponent>(); 2121 this.notAvailable.add(t); 2122 return t; 2123 } 2124 2125 public HealthcareService addNotAvailable(HealthcareServiceNotAvailableComponent t) { //3 2126 if (t == null) 2127 return this; 2128 if (this.notAvailable == null) 2129 this.notAvailable = new ArrayList<HealthcareServiceNotAvailableComponent>(); 2130 this.notAvailable.add(t); 2131 return this; 2132 } 2133 2134 /** 2135 * @return The first repetition of repeating field {@link #notAvailable}, creating it if it does not already exist 2136 */ 2137 public HealthcareServiceNotAvailableComponent getNotAvailableFirstRep() { 2138 if (getNotAvailable().isEmpty()) { 2139 addNotAvailable(); 2140 } 2141 return getNotAvailable().get(0); 2142 } 2143 2144 /** 2145 * @return {@link #availabilityExceptions} (A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times.). This is the underlying object with id, value and extensions. The accessor "getAvailabilityExceptions" gives direct access to the value 2146 */ 2147 public StringType getAvailabilityExceptionsElement() { 2148 if (this.availabilityExceptions == null) 2149 if (Configuration.errorOnAutoCreate()) 2150 throw new Error("Attempt to auto-create HealthcareService.availabilityExceptions"); 2151 else if (Configuration.doAutoCreate()) 2152 this.availabilityExceptions = new StringType(); // bb 2153 return this.availabilityExceptions; 2154 } 2155 2156 public boolean hasAvailabilityExceptionsElement() { 2157 return this.availabilityExceptions != null && !this.availabilityExceptions.isEmpty(); 2158 } 2159 2160 public boolean hasAvailabilityExceptions() { 2161 return this.availabilityExceptions != null && !this.availabilityExceptions.isEmpty(); 2162 } 2163 2164 /** 2165 * @param value {@link #availabilityExceptions} (A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times.). This is the underlying object with id, value and extensions. The accessor "getAvailabilityExceptions" gives direct access to the value 2166 */ 2167 public HealthcareService setAvailabilityExceptionsElement(StringType value) { 2168 this.availabilityExceptions = value; 2169 return this; 2170 } 2171 2172 /** 2173 * @return A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times. 2174 */ 2175 public String getAvailabilityExceptions() { 2176 return this.availabilityExceptions == null ? null : this.availabilityExceptions.getValue(); 2177 } 2178 2179 /** 2180 * @param value A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times. 2181 */ 2182 public HealthcareService setAvailabilityExceptions(String value) { 2183 if (Utilities.noString(value)) 2184 this.availabilityExceptions = null; 2185 else { 2186 if (this.availabilityExceptions == null) 2187 this.availabilityExceptions = new StringType(); 2188 this.availabilityExceptions.setValue(value); 2189 } 2190 return this; 2191 } 2192 2193 /** 2194 * @return {@link #endpoint} (Technical endpoints providing access to services operated for the specific healthcare services defined at this resource.) 2195 */ 2196 public List<Reference> getEndpoint() { 2197 if (this.endpoint == null) 2198 this.endpoint = new ArrayList<Reference>(); 2199 return this.endpoint; 2200 } 2201 2202 /** 2203 * @return Returns a reference to <code>this</code> for easy method chaining 2204 */ 2205 public HealthcareService setEndpoint(List<Reference> theEndpoint) { 2206 this.endpoint = theEndpoint; 2207 return this; 2208 } 2209 2210 public boolean hasEndpoint() { 2211 if (this.endpoint == null) 2212 return false; 2213 for (Reference item : this.endpoint) 2214 if (!item.isEmpty()) 2215 return true; 2216 return false; 2217 } 2218 2219 public Reference addEndpoint() { //3 2220 Reference t = new Reference(); 2221 if (this.endpoint == null) 2222 this.endpoint = new ArrayList<Reference>(); 2223 this.endpoint.add(t); 2224 return t; 2225 } 2226 2227 public HealthcareService addEndpoint(Reference t) { //3 2228 if (t == null) 2229 return this; 2230 if (this.endpoint == null) 2231 this.endpoint = new ArrayList<Reference>(); 2232 this.endpoint.add(t); 2233 return this; 2234 } 2235 2236 /** 2237 * @return The first repetition of repeating field {@link #endpoint}, creating it if it does not already exist 2238 */ 2239 public Reference getEndpointFirstRep() { 2240 if (getEndpoint().isEmpty()) { 2241 addEndpoint(); 2242 } 2243 return getEndpoint().get(0); 2244 } 2245 2246 /** 2247 * @deprecated Use Reference#setResource(IBaseResource) instead 2248 */ 2249 @Deprecated 2250 public List<Endpoint> getEndpointTarget() { 2251 if (this.endpointTarget == null) 2252 this.endpointTarget = new ArrayList<Endpoint>(); 2253 return this.endpointTarget; 2254 } 2255 2256 /** 2257 * @deprecated Use Reference#setResource(IBaseResource) instead 2258 */ 2259 @Deprecated 2260 public Endpoint addEndpointTarget() { 2261 Endpoint r = new Endpoint(); 2262 if (this.endpointTarget == null) 2263 this.endpointTarget = new ArrayList<Endpoint>(); 2264 this.endpointTarget.add(r); 2265 return r; 2266 } 2267 2268 protected void listChildren(List<Property> children) { 2269 super.listChildren(children); 2270 children.add(new Property("identifier", "Identifier", "External identifiers for this item.", 0, java.lang.Integer.MAX_VALUE, identifier)); 2271 children.add(new Property("active", "boolean", "Whether this healthcareservice record is in active use.", 0, 1, active)); 2272 children.add(new Property("providedBy", "Reference(Organization)", "The organization that provides this healthcare service.", 0, 1, providedBy)); 2273 children.add(new Property("category", "CodeableConcept", "Identifies the broad category of service being performed or delivered.", 0, 1, category)); 2274 children.add(new Property("type", "CodeableConcept", "The specific type of service that may be delivered or performed.", 0, java.lang.Integer.MAX_VALUE, type)); 2275 children.add(new Property("specialty", "CodeableConcept", "Collection of specialties handled by the service site. This is more of a medical term.", 0, java.lang.Integer.MAX_VALUE, specialty)); 2276 children.add(new Property("location", "Reference(Location)", "The location(s) where this healthcare service may be provided.", 0, java.lang.Integer.MAX_VALUE, location)); 2277 children.add(new Property("name", "string", "Further description of the service as it would be presented to a consumer while searching.", 0, 1, name)); 2278 children.add(new Property("comment", "string", "Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName.", 0, 1, comment)); 2279 children.add(new Property("extraDetails", "string", "Extra details about the service that can't be placed in the other fields.", 0, 1, extraDetails)); 2280 children.add(new Property("photo", "Attachment", "If there is a photo/symbol associated with this HealthcareService, it may be included here to facilitate quick identification of the service in a list.", 0, 1, photo)); 2281 children.add(new Property("telecom", "ContactPoint", "List of contacts related to this specific healthcare service.", 0, java.lang.Integer.MAX_VALUE, telecom)); 2282 children.add(new Property("coverageArea", "Reference(Location)", "The location(s) that this service is available to (not where the service is provided).", 0, java.lang.Integer.MAX_VALUE, coverageArea)); 2283 children.add(new Property("serviceProvisionCode", "CodeableConcept", "The code(s) that detail the conditions under which the healthcare service is available/offered.", 0, java.lang.Integer.MAX_VALUE, serviceProvisionCode)); 2284 children.add(new Property("eligibility", "CodeableConcept", "Does this service have specific eligibility requirements that need to be met in order to use the service?", 0, 1, eligibility)); 2285 children.add(new Property("eligibilityNote", "string", "Describes the eligibility conditions for the service.", 0, 1, eligibilityNote)); 2286 children.add(new Property("programName", "string", "Program Names that can be used to categorize the service.", 0, java.lang.Integer.MAX_VALUE, programName)); 2287 children.add(new Property("characteristic", "CodeableConcept", "Collection of characteristics (attributes).", 0, java.lang.Integer.MAX_VALUE, characteristic)); 2288 children.add(new Property("referralMethod", "CodeableConcept", "Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required.", 0, java.lang.Integer.MAX_VALUE, referralMethod)); 2289 children.add(new Property("appointmentRequired", "boolean", "Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service.", 0, 1, appointmentRequired)); 2290 children.add(new Property("availableTime", "", "A collection of times that the Service Site is available.", 0, java.lang.Integer.MAX_VALUE, availableTime)); 2291 children.add(new Property("notAvailable", "", "The HealthcareService is not available during this period of time due to the provided reason.", 0, java.lang.Integer.MAX_VALUE, notAvailable)); 2292 children.add(new Property("availabilityExceptions", "string", "A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times.", 0, 1, availabilityExceptions)); 2293 children.add(new Property("endpoint", "Reference(Endpoint)", "Technical endpoints providing access to services operated for the specific healthcare services defined at this resource.", 0, java.lang.Integer.MAX_VALUE, endpoint)); 2294 } 2295 2296 @Override 2297 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2298 switch (_hash) { 2299 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "External identifiers for this item.", 0, java.lang.Integer.MAX_VALUE, identifier); 2300 case -1422950650: /*active*/ return new Property("active", "boolean", "Whether this healthcareservice record is in active use.", 0, 1, active); 2301 case 205136282: /*providedBy*/ return new Property("providedBy", "Reference(Organization)", "The organization that provides this healthcare service.", 0, 1, providedBy); 2302 case 50511102: /*category*/ return new Property("category", "CodeableConcept", "Identifies the broad category of service being performed or delivered.", 0, 1, category); 2303 case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The specific type of service that may be delivered or performed.", 0, java.lang.Integer.MAX_VALUE, type); 2304 case -1694759682: /*specialty*/ return new Property("specialty", "CodeableConcept", "Collection of specialties handled by the service site. This is more of a medical term.", 0, java.lang.Integer.MAX_VALUE, specialty); 2305 case 1901043637: /*location*/ return new Property("location", "Reference(Location)", "The location(s) where this healthcare service may be provided.", 0, java.lang.Integer.MAX_VALUE, location); 2306 case 3373707: /*name*/ return new Property("name", "string", "Further description of the service as it would be presented to a consumer while searching.", 0, 1, name); 2307 case 950398559: /*comment*/ return new Property("comment", "string", "Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName.", 0, 1, comment); 2308 case -1469168622: /*extraDetails*/ return new Property("extraDetails", "string", "Extra details about the service that can't be placed in the other fields.", 0, 1, extraDetails); 2309 case 106642994: /*photo*/ return new Property("photo", "Attachment", "If there is a photo/symbol associated with this HealthcareService, it may be included here to facilitate quick identification of the service in a list.", 0, 1, photo); 2310 case -1429363305: /*telecom*/ return new Property("telecom", "ContactPoint", "List of contacts related to this specific healthcare service.", 0, java.lang.Integer.MAX_VALUE, telecom); 2311 case -1532328299: /*coverageArea*/ return new Property("coverageArea", "Reference(Location)", "The location(s) that this service is available to (not where the service is provided).", 0, java.lang.Integer.MAX_VALUE, coverageArea); 2312 case 1504575405: /*serviceProvisionCode*/ return new Property("serviceProvisionCode", "CodeableConcept", "The code(s) that detail the conditions under which the healthcare service is available/offered.", 0, java.lang.Integer.MAX_VALUE, serviceProvisionCode); 2313 case -930847859: /*eligibility*/ return new Property("eligibility", "CodeableConcept", "Does this service have specific eligibility requirements that need to be met in order to use the service?", 0, 1, eligibility); 2314 case 1635973407: /*eligibilityNote*/ return new Property("eligibilityNote", "string", "Describes the eligibility conditions for the service.", 0, 1, eligibilityNote); 2315 case 1010379567: /*programName*/ return new Property("programName", "string", "Program Names that can be used to categorize the service.", 0, java.lang.Integer.MAX_VALUE, programName); 2316 case 366313883: /*characteristic*/ return new Property("characteristic", "CodeableConcept", "Collection of characteristics (attributes).", 0, java.lang.Integer.MAX_VALUE, characteristic); 2317 case -2092740898: /*referralMethod*/ return new Property("referralMethod", "CodeableConcept", "Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required.", 0, java.lang.Integer.MAX_VALUE, referralMethod); 2318 case 427220062: /*appointmentRequired*/ return new Property("appointmentRequired", "boolean", "Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service.", 0, 1, appointmentRequired); 2319 case 1873069366: /*availableTime*/ return new Property("availableTime", "", "A collection of times that the Service Site is available.", 0, java.lang.Integer.MAX_VALUE, availableTime); 2320 case -629572298: /*notAvailable*/ return new Property("notAvailable", "", "The HealthcareService is not available during this period of time due to the provided reason.", 0, java.lang.Integer.MAX_VALUE, notAvailable); 2321 case -1149143617: /*availabilityExceptions*/ return new Property("availabilityExceptions", "string", "A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times.", 0, 1, availabilityExceptions); 2322 case 1741102485: /*endpoint*/ return new Property("endpoint", "Reference(Endpoint)", "Technical endpoints providing access to services operated for the specific healthcare services defined at this resource.", 0, java.lang.Integer.MAX_VALUE, endpoint); 2323 default: return super.getNamedProperty(_hash, _name, _checkValid); 2324 } 2325 2326 } 2327 2328 @Override 2329 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2330 switch (hash) { 2331 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 2332 case -1422950650: /*active*/ return this.active == null ? new Base[0] : new Base[] {this.active}; // BooleanType 2333 case 205136282: /*providedBy*/ return this.providedBy == null ? new Base[0] : new Base[] {this.providedBy}; // Reference 2334 case 50511102: /*category*/ return this.category == null ? new Base[0] : new Base[] {this.category}; // CodeableConcept 2335 case 3575610: /*type*/ return this.type == null ? new Base[0] : this.type.toArray(new Base[this.type.size()]); // CodeableConcept 2336 case -1694759682: /*specialty*/ return this.specialty == null ? new Base[0] : this.specialty.toArray(new Base[this.specialty.size()]); // CodeableConcept 2337 case 1901043637: /*location*/ return this.location == null ? new Base[0] : this.location.toArray(new Base[this.location.size()]); // Reference 2338 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 2339 case 950398559: /*comment*/ return this.comment == null ? new Base[0] : new Base[] {this.comment}; // StringType 2340 case -1469168622: /*extraDetails*/ return this.extraDetails == null ? new Base[0] : new Base[] {this.extraDetails}; // StringType 2341 case 106642994: /*photo*/ return this.photo == null ? new Base[0] : new Base[] {this.photo}; // Attachment 2342 case -1429363305: /*telecom*/ return this.telecom == null ? new Base[0] : this.telecom.toArray(new Base[this.telecom.size()]); // ContactPoint 2343 case -1532328299: /*coverageArea*/ return this.coverageArea == null ? new Base[0] : this.coverageArea.toArray(new Base[this.coverageArea.size()]); // Reference 2344 case 1504575405: /*serviceProvisionCode*/ return this.serviceProvisionCode == null ? new Base[0] : this.serviceProvisionCode.toArray(new Base[this.serviceProvisionCode.size()]); // CodeableConcept 2345 case -930847859: /*eligibility*/ return this.eligibility == null ? new Base[0] : new Base[] {this.eligibility}; // CodeableConcept 2346 case 1635973407: /*eligibilityNote*/ return this.eligibilityNote == null ? new Base[0] : new Base[] {this.eligibilityNote}; // StringType 2347 case 1010379567: /*programName*/ return this.programName == null ? new Base[0] : this.programName.toArray(new Base[this.programName.size()]); // StringType 2348 case 366313883: /*characteristic*/ return this.characteristic == null ? new Base[0] : this.characteristic.toArray(new Base[this.characteristic.size()]); // CodeableConcept 2349 case -2092740898: /*referralMethod*/ return this.referralMethod == null ? new Base[0] : this.referralMethod.toArray(new Base[this.referralMethod.size()]); // CodeableConcept 2350 case 427220062: /*appointmentRequired*/ return this.appointmentRequired == null ? new Base[0] : new Base[] {this.appointmentRequired}; // BooleanType 2351 case 1873069366: /*availableTime*/ return this.availableTime == null ? new Base[0] : this.availableTime.toArray(new Base[this.availableTime.size()]); // HealthcareServiceAvailableTimeComponent 2352 case -629572298: /*notAvailable*/ return this.notAvailable == null ? new Base[0] : this.notAvailable.toArray(new Base[this.notAvailable.size()]); // HealthcareServiceNotAvailableComponent 2353 case -1149143617: /*availabilityExceptions*/ return this.availabilityExceptions == null ? new Base[0] : new Base[] {this.availabilityExceptions}; // StringType 2354 case 1741102485: /*endpoint*/ return this.endpoint == null ? new Base[0] : this.endpoint.toArray(new Base[this.endpoint.size()]); // Reference 2355 default: return super.getProperty(hash, name, checkValid); 2356 } 2357 2358 } 2359 2360 @Override 2361 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2362 switch (hash) { 2363 case -1618432855: // identifier 2364 this.getIdentifier().add(castToIdentifier(value)); // Identifier 2365 return value; 2366 case -1422950650: // active 2367 this.active = castToBoolean(value); // BooleanType 2368 return value; 2369 case 205136282: // providedBy 2370 this.providedBy = castToReference(value); // Reference 2371 return value; 2372 case 50511102: // category 2373 this.category = castToCodeableConcept(value); // CodeableConcept 2374 return value; 2375 case 3575610: // type 2376 this.getType().add(castToCodeableConcept(value)); // CodeableConcept 2377 return value; 2378 case -1694759682: // specialty 2379 this.getSpecialty().add(castToCodeableConcept(value)); // CodeableConcept 2380 return value; 2381 case 1901043637: // location 2382 this.getLocation().add(castToReference(value)); // Reference 2383 return value; 2384 case 3373707: // name 2385 this.name = castToString(value); // StringType 2386 return value; 2387 case 950398559: // comment 2388 this.comment = castToString(value); // StringType 2389 return value; 2390 case -1469168622: // extraDetails 2391 this.extraDetails = castToString(value); // StringType 2392 return value; 2393 case 106642994: // photo 2394 this.photo = castToAttachment(value); // Attachment 2395 return value; 2396 case -1429363305: // telecom 2397 this.getTelecom().add(castToContactPoint(value)); // ContactPoint 2398 return value; 2399 case -1532328299: // coverageArea 2400 this.getCoverageArea().add(castToReference(value)); // Reference 2401 return value; 2402 case 1504575405: // serviceProvisionCode 2403 this.getServiceProvisionCode().add(castToCodeableConcept(value)); // CodeableConcept 2404 return value; 2405 case -930847859: // eligibility 2406 this.eligibility = castToCodeableConcept(value); // CodeableConcept 2407 return value; 2408 case 1635973407: // eligibilityNote 2409 this.eligibilityNote = castToString(value); // StringType 2410 return value; 2411 case 1010379567: // programName 2412 this.getProgramName().add(castToString(value)); // StringType 2413 return value; 2414 case 366313883: // characteristic 2415 this.getCharacteristic().add(castToCodeableConcept(value)); // CodeableConcept 2416 return value; 2417 case -2092740898: // referralMethod 2418 this.getReferralMethod().add(castToCodeableConcept(value)); // CodeableConcept 2419 return value; 2420 case 427220062: // appointmentRequired 2421 this.appointmentRequired = castToBoolean(value); // BooleanType 2422 return value; 2423 case 1873069366: // availableTime 2424 this.getAvailableTime().add((HealthcareServiceAvailableTimeComponent) value); // HealthcareServiceAvailableTimeComponent 2425 return value; 2426 case -629572298: // notAvailable 2427 this.getNotAvailable().add((HealthcareServiceNotAvailableComponent) value); // HealthcareServiceNotAvailableComponent 2428 return value; 2429 case -1149143617: // availabilityExceptions 2430 this.availabilityExceptions = castToString(value); // StringType 2431 return value; 2432 case 1741102485: // endpoint 2433 this.getEndpoint().add(castToReference(value)); // Reference 2434 return value; 2435 default: return super.setProperty(hash, name, value); 2436 } 2437 2438 } 2439 2440 @Override 2441 public Base setProperty(String name, Base value) throws FHIRException { 2442 if (name.equals("identifier")) { 2443 this.getIdentifier().add(castToIdentifier(value)); 2444 } else if (name.equals("active")) { 2445 this.active = castToBoolean(value); // BooleanType 2446 } else if (name.equals("providedBy")) { 2447 this.providedBy = castToReference(value); // Reference 2448 } else if (name.equals("category")) { 2449 this.category = castToCodeableConcept(value); // CodeableConcept 2450 } else if (name.equals("type")) { 2451 this.getType().add(castToCodeableConcept(value)); 2452 } else if (name.equals("specialty")) { 2453 this.getSpecialty().add(castToCodeableConcept(value)); 2454 } else if (name.equals("location")) { 2455 this.getLocation().add(castToReference(value)); 2456 } else if (name.equals("name")) { 2457 this.name = castToString(value); // StringType 2458 } else if (name.equals("comment")) { 2459 this.comment = castToString(value); // StringType 2460 } else if (name.equals("extraDetails")) { 2461 this.extraDetails = castToString(value); // StringType 2462 } else if (name.equals("photo")) { 2463 this.photo = castToAttachment(value); // Attachment 2464 } else if (name.equals("telecom")) { 2465 this.getTelecom().add(castToContactPoint(value)); 2466 } else if (name.equals("coverageArea")) { 2467 this.getCoverageArea().add(castToReference(value)); 2468 } else if (name.equals("serviceProvisionCode")) { 2469 this.getServiceProvisionCode().add(castToCodeableConcept(value)); 2470 } else if (name.equals("eligibility")) { 2471 this.eligibility = castToCodeableConcept(value); // CodeableConcept 2472 } else if (name.equals("eligibilityNote")) { 2473 this.eligibilityNote = castToString(value); // StringType 2474 } else if (name.equals("programName")) { 2475 this.getProgramName().add(castToString(value)); 2476 } else if (name.equals("characteristic")) { 2477 this.getCharacteristic().add(castToCodeableConcept(value)); 2478 } else if (name.equals("referralMethod")) { 2479 this.getReferralMethod().add(castToCodeableConcept(value)); 2480 } else if (name.equals("appointmentRequired")) { 2481 this.appointmentRequired = castToBoolean(value); // BooleanType 2482 } else if (name.equals("availableTime")) { 2483 this.getAvailableTime().add((HealthcareServiceAvailableTimeComponent) value); 2484 } else if (name.equals("notAvailable")) { 2485 this.getNotAvailable().add((HealthcareServiceNotAvailableComponent) value); 2486 } else if (name.equals("availabilityExceptions")) { 2487 this.availabilityExceptions = castToString(value); // StringType 2488 } else if (name.equals("endpoint")) { 2489 this.getEndpoint().add(castToReference(value)); 2490 } else 2491 return super.setProperty(name, value); 2492 return value; 2493 } 2494 2495 @Override 2496 public Base makeProperty(int hash, String name) throws FHIRException { 2497 switch (hash) { 2498 case -1618432855: return addIdentifier(); 2499 case -1422950650: return getActiveElement(); 2500 case 205136282: return getProvidedBy(); 2501 case 50511102: return getCategory(); 2502 case 3575610: return addType(); 2503 case -1694759682: return addSpecialty(); 2504 case 1901043637: return addLocation(); 2505 case 3373707: return getNameElement(); 2506 case 950398559: return getCommentElement(); 2507 case -1469168622: return getExtraDetailsElement(); 2508 case 106642994: return getPhoto(); 2509 case -1429363305: return addTelecom(); 2510 case -1532328299: return addCoverageArea(); 2511 case 1504575405: return addServiceProvisionCode(); 2512 case -930847859: return getEligibility(); 2513 case 1635973407: return getEligibilityNoteElement(); 2514 case 1010379567: return addProgramNameElement(); 2515 case 366313883: return addCharacteristic(); 2516 case -2092740898: return addReferralMethod(); 2517 case 427220062: return getAppointmentRequiredElement(); 2518 case 1873069366: return addAvailableTime(); 2519 case -629572298: return addNotAvailable(); 2520 case -1149143617: return getAvailabilityExceptionsElement(); 2521 case 1741102485: return addEndpoint(); 2522 default: return super.makeProperty(hash, name); 2523 } 2524 2525 } 2526 2527 @Override 2528 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2529 switch (hash) { 2530 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 2531 case -1422950650: /*active*/ return new String[] {"boolean"}; 2532 case 205136282: /*providedBy*/ return new String[] {"Reference"}; 2533 case 50511102: /*category*/ return new String[] {"CodeableConcept"}; 2534 case 3575610: /*type*/ return new String[] {"CodeableConcept"}; 2535 case -1694759682: /*specialty*/ return new String[] {"CodeableConcept"}; 2536 case 1901043637: /*location*/ return new String[] {"Reference"}; 2537 case 3373707: /*name*/ return new String[] {"string"}; 2538 case 950398559: /*comment*/ return new String[] {"string"}; 2539 case -1469168622: /*extraDetails*/ return new String[] {"string"}; 2540 case 106642994: /*photo*/ return new String[] {"Attachment"}; 2541 case -1429363305: /*telecom*/ return new String[] {"ContactPoint"}; 2542 case -1532328299: /*coverageArea*/ return new String[] {"Reference"}; 2543 case 1504575405: /*serviceProvisionCode*/ return new String[] {"CodeableConcept"}; 2544 case -930847859: /*eligibility*/ return new String[] {"CodeableConcept"}; 2545 case 1635973407: /*eligibilityNote*/ return new String[] {"string"}; 2546 case 1010379567: /*programName*/ return new String[] {"string"}; 2547 case 366313883: /*characteristic*/ return new String[] {"CodeableConcept"}; 2548 case -2092740898: /*referralMethod*/ return new String[] {"CodeableConcept"}; 2549 case 427220062: /*appointmentRequired*/ return new String[] {"boolean"}; 2550 case 1873069366: /*availableTime*/ return new String[] {}; 2551 case -629572298: /*notAvailable*/ return new String[] {}; 2552 case -1149143617: /*availabilityExceptions*/ return new String[] {"string"}; 2553 case 1741102485: /*endpoint*/ return new String[] {"Reference"}; 2554 default: return super.getTypesForProperty(hash, name); 2555 } 2556 2557 } 2558 2559 @Override 2560 public Base addChild(String name) throws FHIRException { 2561 if (name.equals("identifier")) { 2562 return addIdentifier(); 2563 } 2564 else if (name.equals("active")) { 2565 throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.active"); 2566 } 2567 else if (name.equals("providedBy")) { 2568 this.providedBy = new Reference(); 2569 return this.providedBy; 2570 } 2571 else if (name.equals("category")) { 2572 this.category = new CodeableConcept(); 2573 return this.category; 2574 } 2575 else if (name.equals("type")) { 2576 return addType(); 2577 } 2578 else if (name.equals("specialty")) { 2579 return addSpecialty(); 2580 } 2581 else if (name.equals("location")) { 2582 return addLocation(); 2583 } 2584 else if (name.equals("name")) { 2585 throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.name"); 2586 } 2587 else if (name.equals("comment")) { 2588 throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.comment"); 2589 } 2590 else if (name.equals("extraDetails")) { 2591 throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.extraDetails"); 2592 } 2593 else if (name.equals("photo")) { 2594 this.photo = new Attachment(); 2595 return this.photo; 2596 } 2597 else if (name.equals("telecom")) { 2598 return addTelecom(); 2599 } 2600 else if (name.equals("coverageArea")) { 2601 return addCoverageArea(); 2602 } 2603 else if (name.equals("serviceProvisionCode")) { 2604 return addServiceProvisionCode(); 2605 } 2606 else if (name.equals("eligibility")) { 2607 this.eligibility = new CodeableConcept(); 2608 return this.eligibility; 2609 } 2610 else if (name.equals("eligibilityNote")) { 2611 throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.eligibilityNote"); 2612 } 2613 else if (name.equals("programName")) { 2614 throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.programName"); 2615 } 2616 else if (name.equals("characteristic")) { 2617 return addCharacteristic(); 2618 } 2619 else if (name.equals("referralMethod")) { 2620 return addReferralMethod(); 2621 } 2622 else if (name.equals("appointmentRequired")) { 2623 throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.appointmentRequired"); 2624 } 2625 else if (name.equals("availableTime")) { 2626 return addAvailableTime(); 2627 } 2628 else if (name.equals("notAvailable")) { 2629 return addNotAvailable(); 2630 } 2631 else if (name.equals("availabilityExceptions")) { 2632 throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availabilityExceptions"); 2633 } 2634 else if (name.equals("endpoint")) { 2635 return addEndpoint(); 2636 } 2637 else 2638 return super.addChild(name); 2639 } 2640 2641 public String fhirType() { 2642 return "HealthcareService"; 2643 2644 } 2645 2646 public HealthcareService copy() { 2647 HealthcareService dst = new HealthcareService(); 2648 copyValues(dst); 2649 if (identifier != null) { 2650 dst.identifier = new ArrayList<Identifier>(); 2651 for (Identifier i : identifier) 2652 dst.identifier.add(i.copy()); 2653 }; 2654 dst.active = active == null ? null : active.copy(); 2655 dst.providedBy = providedBy == null ? null : providedBy.copy(); 2656 dst.category = category == null ? null : category.copy(); 2657 if (type != null) { 2658 dst.type = new ArrayList<CodeableConcept>(); 2659 for (CodeableConcept i : type) 2660 dst.type.add(i.copy()); 2661 }; 2662 if (specialty != null) { 2663 dst.specialty = new ArrayList<CodeableConcept>(); 2664 for (CodeableConcept i : specialty) 2665 dst.specialty.add(i.copy()); 2666 }; 2667 if (location != null) { 2668 dst.location = new ArrayList<Reference>(); 2669 for (Reference i : location) 2670 dst.location.add(i.copy()); 2671 }; 2672 dst.name = name == null ? null : name.copy(); 2673 dst.comment = comment == null ? null : comment.copy(); 2674 dst.extraDetails = extraDetails == null ? null : extraDetails.copy(); 2675 dst.photo = photo == null ? null : photo.copy(); 2676 if (telecom != null) { 2677 dst.telecom = new ArrayList<ContactPoint>(); 2678 for (ContactPoint i : telecom) 2679 dst.telecom.add(i.copy()); 2680 }; 2681 if (coverageArea != null) { 2682 dst.coverageArea = new ArrayList<Reference>(); 2683 for (Reference i : coverageArea) 2684 dst.coverageArea.add(i.copy()); 2685 }; 2686 if (serviceProvisionCode != null) { 2687 dst.serviceProvisionCode = new ArrayList<CodeableConcept>(); 2688 for (CodeableConcept i : serviceProvisionCode) 2689 dst.serviceProvisionCode.add(i.copy()); 2690 }; 2691 dst.eligibility = eligibility == null ? null : eligibility.copy(); 2692 dst.eligibilityNote = eligibilityNote == null ? null : eligibilityNote.copy(); 2693 if (programName != null) { 2694 dst.programName = new ArrayList<StringType>(); 2695 for (StringType i : programName) 2696 dst.programName.add(i.copy()); 2697 }; 2698 if (characteristic != null) { 2699 dst.characteristic = new ArrayList<CodeableConcept>(); 2700 for (CodeableConcept i : characteristic) 2701 dst.characteristic.add(i.copy()); 2702 }; 2703 if (referralMethod != null) { 2704 dst.referralMethod = new ArrayList<CodeableConcept>(); 2705 for (CodeableConcept i : referralMethod) 2706 dst.referralMethod.add(i.copy()); 2707 }; 2708 dst.appointmentRequired = appointmentRequired == null ? null : appointmentRequired.copy(); 2709 if (availableTime != null) { 2710 dst.availableTime = new ArrayList<HealthcareServiceAvailableTimeComponent>(); 2711 for (HealthcareServiceAvailableTimeComponent i : availableTime) 2712 dst.availableTime.add(i.copy()); 2713 }; 2714 if (notAvailable != null) { 2715 dst.notAvailable = new ArrayList<HealthcareServiceNotAvailableComponent>(); 2716 for (HealthcareServiceNotAvailableComponent i : notAvailable) 2717 dst.notAvailable.add(i.copy()); 2718 }; 2719 dst.availabilityExceptions = availabilityExceptions == null ? null : availabilityExceptions.copy(); 2720 if (endpoint != null) { 2721 dst.endpoint = new ArrayList<Reference>(); 2722 for (Reference i : endpoint) 2723 dst.endpoint.add(i.copy()); 2724 }; 2725 return dst; 2726 } 2727 2728 protected HealthcareService typedCopy() { 2729 return copy(); 2730 } 2731 2732 @Override 2733 public boolean equalsDeep(Base other_) { 2734 if (!super.equalsDeep(other_)) 2735 return false; 2736 if (!(other_ instanceof HealthcareService)) 2737 return false; 2738 HealthcareService o = (HealthcareService) other_; 2739 return compareDeep(identifier, o.identifier, true) && compareDeep(active, o.active, true) && compareDeep(providedBy, o.providedBy, true) 2740 && compareDeep(category, o.category, true) && compareDeep(type, o.type, true) && compareDeep(specialty, o.specialty, true) 2741 && compareDeep(location, o.location, true) && compareDeep(name, o.name, true) && compareDeep(comment, o.comment, true) 2742 && compareDeep(extraDetails, o.extraDetails, true) && compareDeep(photo, o.photo, true) && compareDeep(telecom, o.telecom, true) 2743 && compareDeep(coverageArea, o.coverageArea, true) && compareDeep(serviceProvisionCode, o.serviceProvisionCode, true) 2744 && compareDeep(eligibility, o.eligibility, true) && compareDeep(eligibilityNote, o.eligibilityNote, true) 2745 && compareDeep(programName, o.programName, true) && compareDeep(characteristic, o.characteristic, true) 2746 && compareDeep(referralMethod, o.referralMethod, true) && compareDeep(appointmentRequired, o.appointmentRequired, true) 2747 && compareDeep(availableTime, o.availableTime, true) && compareDeep(notAvailable, o.notAvailable, true) 2748 && compareDeep(availabilityExceptions, o.availabilityExceptions, true) && compareDeep(endpoint, o.endpoint, true) 2749 ; 2750 } 2751 2752 @Override 2753 public boolean equalsShallow(Base other_) { 2754 if (!super.equalsShallow(other_)) 2755 return false; 2756 if (!(other_ instanceof HealthcareService)) 2757 return false; 2758 HealthcareService o = (HealthcareService) other_; 2759 return compareValues(active, o.active, true) && compareValues(name, o.name, true) && compareValues(comment, o.comment, true) 2760 && compareValues(extraDetails, o.extraDetails, true) && compareValues(eligibilityNote, o.eligibilityNote, true) 2761 && compareValues(programName, o.programName, true) && compareValues(appointmentRequired, o.appointmentRequired, true) 2762 && compareValues(availabilityExceptions, o.availabilityExceptions, true); 2763 } 2764 2765 public boolean isEmpty() { 2766 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, active, providedBy 2767 , category, type, specialty, location, name, comment, extraDetails, photo, telecom 2768 , coverageArea, serviceProvisionCode, eligibility, eligibilityNote, programName, characteristic 2769 , referralMethod, appointmentRequired, availableTime, notAvailable, availabilityExceptions 2770 , endpoint); 2771 } 2772 2773 @Override 2774 public ResourceType getResourceType() { 2775 return ResourceType.HealthcareService; 2776 } 2777 2778 /** 2779 * Search parameter: <b>identifier</b> 2780 * <p> 2781 * Description: <b>External identifiers for this item</b><br> 2782 * Type: <b>token</b><br> 2783 * Path: <b>HealthcareService.identifier</b><br> 2784 * </p> 2785 */ 2786 @SearchParamDefinition(name="identifier", path="HealthcareService.identifier", description="External identifiers for this item", type="token" ) 2787 public static final String SP_IDENTIFIER = "identifier"; 2788 /** 2789 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 2790 * <p> 2791 * Description: <b>External identifiers for this item</b><br> 2792 * Type: <b>token</b><br> 2793 * Path: <b>HealthcareService.identifier</b><br> 2794 * </p> 2795 */ 2796 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 2797 2798 /** 2799 * Search parameter: <b>endpoint</b> 2800 * <p> 2801 * Description: <b>Technical endpoints providing access to services operated for the location</b><br> 2802 * Type: <b>reference</b><br> 2803 * Path: <b>HealthcareService.endpoint</b><br> 2804 * </p> 2805 */ 2806 @SearchParamDefinition(name="endpoint", path="HealthcareService.endpoint", description="Technical endpoints providing access to services operated for the location", type="reference", target={Endpoint.class } ) 2807 public static final String SP_ENDPOINT = "endpoint"; 2808 /** 2809 * <b>Fluent Client</b> search parameter constant for <b>endpoint</b> 2810 * <p> 2811 * Description: <b>Technical endpoints providing access to services operated for the location</b><br> 2812 * Type: <b>reference</b><br> 2813 * Path: <b>HealthcareService.endpoint</b><br> 2814 * </p> 2815 */ 2816 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENDPOINT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENDPOINT); 2817 2818/** 2819 * Constant for fluent queries to be used to add include statements. Specifies 2820 * the path value of "<b>HealthcareService:endpoint</b>". 2821 */ 2822 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENDPOINT = new ca.uhn.fhir.model.api.Include("HealthcareService:endpoint").toLocked(); 2823 2824 /** 2825 * Search parameter: <b>organization</b> 2826 * <p> 2827 * Description: <b>The organization that provides this Healthcare Service</b><br> 2828 * Type: <b>reference</b><br> 2829 * Path: <b>HealthcareService.providedBy</b><br> 2830 * </p> 2831 */ 2832 @SearchParamDefinition(name="organization", path="HealthcareService.providedBy", description="The organization that provides this Healthcare Service", type="reference", target={Organization.class } ) 2833 public static final String SP_ORGANIZATION = "organization"; 2834 /** 2835 * <b>Fluent Client</b> search parameter constant for <b>organization</b> 2836 * <p> 2837 * Description: <b>The organization that provides this Healthcare Service</b><br> 2838 * Type: <b>reference</b><br> 2839 * Path: <b>HealthcareService.providedBy</b><br> 2840 * </p> 2841 */ 2842 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORGANIZATION); 2843 2844/** 2845 * Constant for fluent queries to be used to add include statements. Specifies 2846 * the path value of "<b>HealthcareService:organization</b>". 2847 */ 2848 public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATION = new ca.uhn.fhir.model.api.Include("HealthcareService:organization").toLocked(); 2849 2850 /** 2851 * Search parameter: <b>name</b> 2852 * <p> 2853 * Description: <b>A portion of the Healthcare service name</b><br> 2854 * Type: <b>string</b><br> 2855 * Path: <b>HealthcareService.name</b><br> 2856 * </p> 2857 */ 2858 @SearchParamDefinition(name="name", path="HealthcareService.name", description="A portion of the Healthcare service name", type="string" ) 2859 public static final String SP_NAME = "name"; 2860 /** 2861 * <b>Fluent Client</b> search parameter constant for <b>name</b> 2862 * <p> 2863 * Description: <b>A portion of the Healthcare service name</b><br> 2864 * Type: <b>string</b><br> 2865 * Path: <b>HealthcareService.name</b><br> 2866 * </p> 2867 */ 2868 public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); 2869 2870 /** 2871 * Search parameter: <b>programname</b> 2872 * <p> 2873 * Description: <b>One of the Program Names serviced by this HealthcareService</b><br> 2874 * Type: <b>string</b><br> 2875 * Path: <b>HealthcareService.programName</b><br> 2876 * </p> 2877 */ 2878 @SearchParamDefinition(name="programname", path="HealthcareService.programName", description="One of the Program Names serviced by this HealthcareService", type="string" ) 2879 public static final String SP_PROGRAMNAME = "programname"; 2880 /** 2881 * <b>Fluent Client</b> search parameter constant for <b>programname</b> 2882 * <p> 2883 * Description: <b>One of the Program Names serviced by this HealthcareService</b><br> 2884 * Type: <b>string</b><br> 2885 * Path: <b>HealthcareService.programName</b><br> 2886 * </p> 2887 */ 2888 public static final ca.uhn.fhir.rest.gclient.StringClientParam PROGRAMNAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PROGRAMNAME); 2889 2890 /** 2891 * Search parameter: <b>active</b> 2892 * <p> 2893 * Description: <b>The Healthcare Service is currently marked as active</b><br> 2894 * Type: <b>token</b><br> 2895 * Path: <b>HealthcareService.active</b><br> 2896 * </p> 2897 */ 2898 @SearchParamDefinition(name="active", path="HealthcareService.active", description="The Healthcare Service is currently marked as active", type="token" ) 2899 public static final String SP_ACTIVE = "active"; 2900 /** 2901 * <b>Fluent Client</b> search parameter constant for <b>active</b> 2902 * <p> 2903 * Description: <b>The Healthcare Service is currently marked as active</b><br> 2904 * Type: <b>token</b><br> 2905 * Path: <b>HealthcareService.active</b><br> 2906 * </p> 2907 */ 2908 public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVE); 2909 2910 /** 2911 * Search parameter: <b>location</b> 2912 * <p> 2913 * Description: <b>The location of the Healthcare Service</b><br> 2914 * Type: <b>reference</b><br> 2915 * Path: <b>HealthcareService.location</b><br> 2916 * </p> 2917 */ 2918 @SearchParamDefinition(name="location", path="HealthcareService.location", description="The location of the Healthcare Service", type="reference", target={Location.class } ) 2919 public static final String SP_LOCATION = "location"; 2920 /** 2921 * <b>Fluent Client</b> search parameter constant for <b>location</b> 2922 * <p> 2923 * Description: <b>The location of the Healthcare Service</b><br> 2924 * Type: <b>reference</b><br> 2925 * Path: <b>HealthcareService.location</b><br> 2926 * </p> 2927 */ 2928 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam LOCATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_LOCATION); 2929 2930/** 2931 * Constant for fluent queries to be used to add include statements. Specifies 2932 * the path value of "<b>HealthcareService:location</b>". 2933 */ 2934 public static final ca.uhn.fhir.model.api.Include INCLUDE_LOCATION = new ca.uhn.fhir.model.api.Include("HealthcareService:location").toLocked(); 2935 2936 /** 2937 * Search parameter: <b>category</b> 2938 * <p> 2939 * Description: <b>Service Category of the Healthcare Service</b><br> 2940 * Type: <b>token</b><br> 2941 * Path: <b>HealthcareService.category</b><br> 2942 * </p> 2943 */ 2944 @SearchParamDefinition(name="category", path="HealthcareService.category", description="Service Category of the Healthcare Service", type="token" ) 2945 public static final String SP_CATEGORY = "category"; 2946 /** 2947 * <b>Fluent Client</b> search parameter constant for <b>category</b> 2948 * <p> 2949 * Description: <b>Service Category of the Healthcare Service</b><br> 2950 * Type: <b>token</b><br> 2951 * Path: <b>HealthcareService.category</b><br> 2952 * </p> 2953 */ 2954 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CATEGORY); 2955 2956 /** 2957 * Search parameter: <b>type</b> 2958 * <p> 2959 * Description: <b>The type of service provided by this healthcare service</b><br> 2960 * Type: <b>token</b><br> 2961 * Path: <b>HealthcareService.type</b><br> 2962 * </p> 2963 */ 2964 @SearchParamDefinition(name="type", path="HealthcareService.type", description="The type of service provided by this healthcare service", type="token" ) 2965 public static final String SP_TYPE = "type"; 2966 /** 2967 * <b>Fluent Client</b> search parameter constant for <b>type</b> 2968 * <p> 2969 * Description: <b>The type of service provided by this healthcare service</b><br> 2970 * Type: <b>token</b><br> 2971 * Path: <b>HealthcareService.type</b><br> 2972 * </p> 2973 */ 2974 public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); 2975 2976 /** 2977 * Search parameter: <b>characteristic</b> 2978 * <p> 2979 * Description: <b>One of the HealthcareService's characteristics</b><br> 2980 * Type: <b>token</b><br> 2981 * Path: <b>HealthcareService.characteristic</b><br> 2982 * </p> 2983 */ 2984 @SearchParamDefinition(name="characteristic", path="HealthcareService.characteristic", description="One of the HealthcareService's characteristics", type="token" ) 2985 public static final String SP_CHARACTERISTIC = "characteristic"; 2986 /** 2987 * <b>Fluent Client</b> search parameter constant for <b>characteristic</b> 2988 * <p> 2989 * Description: <b>One of the HealthcareService's characteristics</b><br> 2990 * Type: <b>token</b><br> 2991 * Path: <b>HealthcareService.characteristic</b><br> 2992 * </p> 2993 */ 2994 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CHARACTERISTIC = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CHARACTERISTIC); 2995 2996 2997} 2998