001package org.hl7.fhir.r5.model; 002 003/*- 004 * #%L 005 * org.hl7.fhir.r5 006 * %% 007 * Copyright (C) 2014 - 2019 Health Level 7 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023/* 024 Copyright (c) 2011+, HL7, Inc. 025 All rights reserved. 026 027 Redistribution and use in source and binary forms, with or without modification, 028 are permitted provided that the following conditions are met: 029 030 * Redistributions of source code must retain the above copyright notice, this 031 list of conditions and the following disclaimer. 032 * Redistributions in binary form must reproduce the above copyright notice, 033 this list of conditions and the following disclaimer in the documentation 034 and/or other materials provided with the distribution. 035 * Neither the name of HL7 nor the names of its contributors may be used to 036 endorse or promote products derived from this software without specific 037 prior written permission. 038 039 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 040 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 041 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 042 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 043 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 044 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 045 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 046 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 047 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 048 POSSIBILITY OF SUCH DAMAGE. 049 050*/ 051 052// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0 053import java.util.ArrayList; 054import java.util.Date; 055import java.util.List; 056import org.hl7.fhir.exceptions.FHIRException; 057import org.hl7.fhir.instance.model.api.ICompositeType; 058 059import org.hl7.fhir.instance.model.api.IBaseDatatypeElement; 060import ca.uhn.fhir.model.api.annotation.ResourceDef; 061import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 062import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 063import ca.uhn.fhir.model.api.annotation.Child; 064import ca.uhn.fhir.model.api.annotation.ChildOrder; 065import ca.uhn.fhir.model.api.annotation.Description; 066import ca.uhn.fhir.model.api.annotation.Block; 067/** 068 * The manufactured item as contained in the packaged medicinal product. 069 */ 070@ResourceDef(name="ManufacturedItemDefinition", profile="http://hl7.org/fhir/StructureDefinition/ManufacturedItemDefinition") 071public class ManufacturedItemDefinition extends DomainResource { 072 073 /** 074 * Dose form as manufactured and before any transformation into the pharmaceutical product. 075 */ 076 @Child(name = "manufacturedDoseForm", type = {CodeableConcept.class}, order=0, min=1, max=1, modifier=false, summary=true) 077 @Description(shortDefinition="Dose form as manufactured and before any transformation into the pharmaceutical product", formalDefinition="Dose form as manufactured and before any transformation into the pharmaceutical product." ) 078 protected CodeableConcept manufacturedDoseForm; 079 080 /** 081 * The “real world” units in which the quantity of the manufactured item is described. 082 */ 083 @Child(name = "unitOfPresentation", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) 084 @Description(shortDefinition="The “real world” units in which the quantity of the manufactured item is described", formalDefinition="The “real world” units in which the quantity of the manufactured item is described." ) 085 protected CodeableConcept unitOfPresentation; 086 087 /** 088 * Manufacturer of the item (Note that this should be named "manufacturer" but it currently causes technical issues). 089 */ 090 @Child(name = "manufacturer", type = {Organization.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 091 @Description(shortDefinition="Manufacturer of the item (Note that this should be named \"manufacturer\" but it currently causes technical issues)", formalDefinition="Manufacturer of the item (Note that this should be named \"manufacturer\" but it currently causes technical issues)." ) 092 protected List<Reference> manufacturer; 093 094 /** 095 * Ingredient. 096 */ 097 @Child(name = "ingredient", type = {Ingredient.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 098 @Description(shortDefinition="Ingredient", formalDefinition="Ingredient." ) 099 protected List<Reference> ingredient; 100 101 /** 102 * Dimensions, color etc. 103 */ 104 @Child(name = "physicalCharacteristics", type = {ProdCharacteristic.class}, order=4, min=0, max=1, modifier=false, summary=true) 105 @Description(shortDefinition="Dimensions, color etc.", formalDefinition="Dimensions, color etc." ) 106 protected ProdCharacteristic physicalCharacteristics; 107 108 /** 109 * Other codeable characteristics. 110 */ 111 @Child(name = "otherCharacteristics", type = {CodeableConcept.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 112 @Description(shortDefinition="Other codeable characteristics", formalDefinition="Other codeable characteristics." ) 113 protected List<CodeableConcept> otherCharacteristics; 114 115 private static final long serialVersionUID = -533921707L; 116 117 /** 118 * Constructor 119 */ 120 public ManufacturedItemDefinition() { 121 super(); 122 } 123 124 /** 125 * Constructor 126 */ 127 public ManufacturedItemDefinition(CodeableConcept manufacturedDoseForm) { 128 super(); 129 this.manufacturedDoseForm = manufacturedDoseForm; 130 } 131 132 /** 133 * @return {@link #manufacturedDoseForm} (Dose form as manufactured and before any transformation into the pharmaceutical product.) 134 */ 135 public CodeableConcept getManufacturedDoseForm() { 136 if (this.manufacturedDoseForm == null) 137 if (Configuration.errorOnAutoCreate()) 138 throw new Error("Attempt to auto-create ManufacturedItemDefinition.manufacturedDoseForm"); 139 else if (Configuration.doAutoCreate()) 140 this.manufacturedDoseForm = new CodeableConcept(); // cc 141 return this.manufacturedDoseForm; 142 } 143 144 public boolean hasManufacturedDoseForm() { 145 return this.manufacturedDoseForm != null && !this.manufacturedDoseForm.isEmpty(); 146 } 147 148 /** 149 * @param value {@link #manufacturedDoseForm} (Dose form as manufactured and before any transformation into the pharmaceutical product.) 150 */ 151 public ManufacturedItemDefinition setManufacturedDoseForm(CodeableConcept value) { 152 this.manufacturedDoseForm = value; 153 return this; 154 } 155 156 /** 157 * @return {@link #unitOfPresentation} (The “real world” units in which the quantity of the manufactured item is described.) 158 */ 159 public CodeableConcept getUnitOfPresentation() { 160 if (this.unitOfPresentation == null) 161 if (Configuration.errorOnAutoCreate()) 162 throw new Error("Attempt to auto-create ManufacturedItemDefinition.unitOfPresentation"); 163 else if (Configuration.doAutoCreate()) 164 this.unitOfPresentation = new CodeableConcept(); // cc 165 return this.unitOfPresentation; 166 } 167 168 public boolean hasUnitOfPresentation() { 169 return this.unitOfPresentation != null && !this.unitOfPresentation.isEmpty(); 170 } 171 172 /** 173 * @param value {@link #unitOfPresentation} (The “real world” units in which the quantity of the manufactured item is described.) 174 */ 175 public ManufacturedItemDefinition setUnitOfPresentation(CodeableConcept value) { 176 this.unitOfPresentation = value; 177 return this; 178 } 179 180 /** 181 * @return {@link #manufacturer} (Manufacturer of the item (Note that this should be named "manufacturer" but it currently causes technical issues).) 182 */ 183 public List<Reference> getManufacturer() { 184 if (this.manufacturer == null) 185 this.manufacturer = new ArrayList<Reference>(); 186 return this.manufacturer; 187 } 188 189 /** 190 * @return Returns a reference to <code>this</code> for easy method chaining 191 */ 192 public ManufacturedItemDefinition setManufacturer(List<Reference> theManufacturer) { 193 this.manufacturer = theManufacturer; 194 return this; 195 } 196 197 public boolean hasManufacturer() { 198 if (this.manufacturer == null) 199 return false; 200 for (Reference item : this.manufacturer) 201 if (!item.isEmpty()) 202 return true; 203 return false; 204 } 205 206 public Reference addManufacturer() { //3 207 Reference t = new Reference(); 208 if (this.manufacturer == null) 209 this.manufacturer = new ArrayList<Reference>(); 210 this.manufacturer.add(t); 211 return t; 212 } 213 214 public ManufacturedItemDefinition addManufacturer(Reference t) { //3 215 if (t == null) 216 return this; 217 if (this.manufacturer == null) 218 this.manufacturer = new ArrayList<Reference>(); 219 this.manufacturer.add(t); 220 return this; 221 } 222 223 /** 224 * @return The first repetition of repeating field {@link #manufacturer}, creating it if it does not already exist 225 */ 226 public Reference getManufacturerFirstRep() { 227 if (getManufacturer().isEmpty()) { 228 addManufacturer(); 229 } 230 return getManufacturer().get(0); 231 } 232 233 /** 234 * @return {@link #ingredient} (Ingredient.) 235 */ 236 public List<Reference> getIngredient() { 237 if (this.ingredient == null) 238 this.ingredient = new ArrayList<Reference>(); 239 return this.ingredient; 240 } 241 242 /** 243 * @return Returns a reference to <code>this</code> for easy method chaining 244 */ 245 public ManufacturedItemDefinition setIngredient(List<Reference> theIngredient) { 246 this.ingredient = theIngredient; 247 return this; 248 } 249 250 public boolean hasIngredient() { 251 if (this.ingredient == null) 252 return false; 253 for (Reference item : this.ingredient) 254 if (!item.isEmpty()) 255 return true; 256 return false; 257 } 258 259 public Reference addIngredient() { //3 260 Reference t = new Reference(); 261 if (this.ingredient == null) 262 this.ingredient = new ArrayList<Reference>(); 263 this.ingredient.add(t); 264 return t; 265 } 266 267 public ManufacturedItemDefinition addIngredient(Reference t) { //3 268 if (t == null) 269 return this; 270 if (this.ingredient == null) 271 this.ingredient = new ArrayList<Reference>(); 272 this.ingredient.add(t); 273 return this; 274 } 275 276 /** 277 * @return The first repetition of repeating field {@link #ingredient}, creating it if it does not already exist 278 */ 279 public Reference getIngredientFirstRep() { 280 if (getIngredient().isEmpty()) { 281 addIngredient(); 282 } 283 return getIngredient().get(0); 284 } 285 286 /** 287 * @return {@link #physicalCharacteristics} (Dimensions, color etc.) 288 */ 289 public ProdCharacteristic getPhysicalCharacteristics() { 290 if (this.physicalCharacteristics == null) 291 if (Configuration.errorOnAutoCreate()) 292 throw new Error("Attempt to auto-create ManufacturedItemDefinition.physicalCharacteristics"); 293 else if (Configuration.doAutoCreate()) 294 this.physicalCharacteristics = new ProdCharacteristic(); // cc 295 return this.physicalCharacteristics; 296 } 297 298 public boolean hasPhysicalCharacteristics() { 299 return this.physicalCharacteristics != null && !this.physicalCharacteristics.isEmpty(); 300 } 301 302 /** 303 * @param value {@link #physicalCharacteristics} (Dimensions, color etc.) 304 */ 305 public ManufacturedItemDefinition setPhysicalCharacteristics(ProdCharacteristic value) { 306 this.physicalCharacteristics = value; 307 return this; 308 } 309 310 /** 311 * @return {@link #otherCharacteristics} (Other codeable characteristics.) 312 */ 313 public List<CodeableConcept> getOtherCharacteristics() { 314 if (this.otherCharacteristics == null) 315 this.otherCharacteristics = new ArrayList<CodeableConcept>(); 316 return this.otherCharacteristics; 317 } 318 319 /** 320 * @return Returns a reference to <code>this</code> for easy method chaining 321 */ 322 public ManufacturedItemDefinition setOtherCharacteristics(List<CodeableConcept> theOtherCharacteristics) { 323 this.otherCharacteristics = theOtherCharacteristics; 324 return this; 325 } 326 327 public boolean hasOtherCharacteristics() { 328 if (this.otherCharacteristics == null) 329 return false; 330 for (CodeableConcept item : this.otherCharacteristics) 331 if (!item.isEmpty()) 332 return true; 333 return false; 334 } 335 336 public CodeableConcept addOtherCharacteristics() { //3 337 CodeableConcept t = new CodeableConcept(); 338 if (this.otherCharacteristics == null) 339 this.otherCharacteristics = new ArrayList<CodeableConcept>(); 340 this.otherCharacteristics.add(t); 341 return t; 342 } 343 344 public ManufacturedItemDefinition addOtherCharacteristics(CodeableConcept t) { //3 345 if (t == null) 346 return this; 347 if (this.otherCharacteristics == null) 348 this.otherCharacteristics = new ArrayList<CodeableConcept>(); 349 this.otherCharacteristics.add(t); 350 return this; 351 } 352 353 /** 354 * @return The first repetition of repeating field {@link #otherCharacteristics}, creating it if it does not already exist 355 */ 356 public CodeableConcept getOtherCharacteristicsFirstRep() { 357 if (getOtherCharacteristics().isEmpty()) { 358 addOtherCharacteristics(); 359 } 360 return getOtherCharacteristics().get(0); 361 } 362 363 protected void listChildren(List<Property> children) { 364 super.listChildren(children); 365 children.add(new Property("manufacturedDoseForm", "CodeableConcept", "Dose form as manufactured and before any transformation into the pharmaceutical product.", 0, 1, manufacturedDoseForm)); 366 children.add(new Property("unitOfPresentation", "CodeableConcept", "The “real world” units in which the quantity of the manufactured item is described.", 0, 1, unitOfPresentation)); 367 children.add(new Property("manufacturer", "Reference(Organization)", "Manufacturer of the item (Note that this should be named \"manufacturer\" but it currently causes technical issues).", 0, java.lang.Integer.MAX_VALUE, manufacturer)); 368 children.add(new Property("ingredient", "Reference(Ingredient)", "Ingredient.", 0, java.lang.Integer.MAX_VALUE, ingredient)); 369 children.add(new Property("physicalCharacteristics", "ProdCharacteristic", "Dimensions, color etc.", 0, 1, physicalCharacteristics)); 370 children.add(new Property("otherCharacteristics", "CodeableConcept", "Other codeable characteristics.", 0, java.lang.Integer.MAX_VALUE, otherCharacteristics)); 371 } 372 373 @Override 374 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 375 switch (_hash) { 376 case -1451400348: /*manufacturedDoseForm*/ return new Property("manufacturedDoseForm", "CodeableConcept", "Dose form as manufactured and before any transformation into the pharmaceutical product.", 0, 1, manufacturedDoseForm); 377 case -1427765963: /*unitOfPresentation*/ return new Property("unitOfPresentation", "CodeableConcept", "The “real world” units in which the quantity of the manufactured item is described.", 0, 1, unitOfPresentation); 378 case -1969347631: /*manufacturer*/ return new Property("manufacturer", "Reference(Organization)", "Manufacturer of the item (Note that this should be named \"manufacturer\" but it currently causes technical issues).", 0, java.lang.Integer.MAX_VALUE, manufacturer); 379 case -206409263: /*ingredient*/ return new Property("ingredient", "Reference(Ingredient)", "Ingredient.", 0, java.lang.Integer.MAX_VALUE, ingredient); 380 case -1599676319: /*physicalCharacteristics*/ return new Property("physicalCharacteristics", "ProdCharacteristic", "Dimensions, color etc.", 0, 1, physicalCharacteristics); 381 case 722135304: /*otherCharacteristics*/ return new Property("otherCharacteristics", "CodeableConcept", "Other codeable characteristics.", 0, java.lang.Integer.MAX_VALUE, otherCharacteristics); 382 default: return super.getNamedProperty(_hash, _name, _checkValid); 383 } 384 385 } 386 387 @Override 388 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 389 switch (hash) { 390 case -1451400348: /*manufacturedDoseForm*/ return this.manufacturedDoseForm == null ? new Base[0] : new Base[] {this.manufacturedDoseForm}; // CodeableConcept 391 case -1427765963: /*unitOfPresentation*/ return this.unitOfPresentation == null ? new Base[0] : new Base[] {this.unitOfPresentation}; // CodeableConcept 392 case -1969347631: /*manufacturer*/ return this.manufacturer == null ? new Base[0] : this.manufacturer.toArray(new Base[this.manufacturer.size()]); // Reference 393 case -206409263: /*ingredient*/ return this.ingredient == null ? new Base[0] : this.ingredient.toArray(new Base[this.ingredient.size()]); // Reference 394 case -1599676319: /*physicalCharacteristics*/ return this.physicalCharacteristics == null ? new Base[0] : new Base[] {this.physicalCharacteristics}; // ProdCharacteristic 395 case 722135304: /*otherCharacteristics*/ return this.otherCharacteristics == null ? new Base[0] : this.otherCharacteristics.toArray(new Base[this.otherCharacteristics.size()]); // CodeableConcept 396 default: return super.getProperty(hash, name, checkValid); 397 } 398 399 } 400 401 @Override 402 public Base setProperty(int hash, String name, Base value) throws FHIRException { 403 switch (hash) { 404 case -1451400348: // manufacturedDoseForm 405 this.manufacturedDoseForm = castToCodeableConcept(value); // CodeableConcept 406 return value; 407 case -1427765963: // unitOfPresentation 408 this.unitOfPresentation = castToCodeableConcept(value); // CodeableConcept 409 return value; 410 case -1969347631: // manufacturer 411 this.getManufacturer().add(castToReference(value)); // Reference 412 return value; 413 case -206409263: // ingredient 414 this.getIngredient().add(castToReference(value)); // Reference 415 return value; 416 case -1599676319: // physicalCharacteristics 417 this.physicalCharacteristics = castToProdCharacteristic(value); // ProdCharacteristic 418 return value; 419 case 722135304: // otherCharacteristics 420 this.getOtherCharacteristics().add(castToCodeableConcept(value)); // CodeableConcept 421 return value; 422 default: return super.setProperty(hash, name, value); 423 } 424 425 } 426 427 @Override 428 public Base setProperty(String name, Base value) throws FHIRException { 429 if (name.equals("manufacturedDoseForm")) { 430 this.manufacturedDoseForm = castToCodeableConcept(value); // CodeableConcept 431 } else if (name.equals("unitOfPresentation")) { 432 this.unitOfPresentation = castToCodeableConcept(value); // CodeableConcept 433 } else if (name.equals("manufacturer")) { 434 this.getManufacturer().add(castToReference(value)); 435 } else if (name.equals("ingredient")) { 436 this.getIngredient().add(castToReference(value)); 437 } else if (name.equals("physicalCharacteristics")) { 438 this.physicalCharacteristics = castToProdCharacteristic(value); // ProdCharacteristic 439 } else if (name.equals("otherCharacteristics")) { 440 this.getOtherCharacteristics().add(castToCodeableConcept(value)); 441 } else 442 return super.setProperty(name, value); 443 return value; 444 } 445 446 @Override 447 public Base makeProperty(int hash, String name) throws FHIRException { 448 switch (hash) { 449 case -1451400348: return getManufacturedDoseForm(); 450 case -1427765963: return getUnitOfPresentation(); 451 case -1969347631: return addManufacturer(); 452 case -206409263: return addIngredient(); 453 case -1599676319: return getPhysicalCharacteristics(); 454 case 722135304: return addOtherCharacteristics(); 455 default: return super.makeProperty(hash, name); 456 } 457 458 } 459 460 @Override 461 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 462 switch (hash) { 463 case -1451400348: /*manufacturedDoseForm*/ return new String[] {"CodeableConcept"}; 464 case -1427765963: /*unitOfPresentation*/ return new String[] {"CodeableConcept"}; 465 case -1969347631: /*manufacturer*/ return new String[] {"Reference"}; 466 case -206409263: /*ingredient*/ return new String[] {"Reference"}; 467 case -1599676319: /*physicalCharacteristics*/ return new String[] {"ProdCharacteristic"}; 468 case 722135304: /*otherCharacteristics*/ return new String[] {"CodeableConcept"}; 469 default: return super.getTypesForProperty(hash, name); 470 } 471 472 } 473 474 @Override 475 public Base addChild(String name) throws FHIRException { 476 if (name.equals("manufacturedDoseForm")) { 477 this.manufacturedDoseForm = new CodeableConcept(); 478 return this.manufacturedDoseForm; 479 } 480 else if (name.equals("unitOfPresentation")) { 481 this.unitOfPresentation = new CodeableConcept(); 482 return this.unitOfPresentation; 483 } 484 else if (name.equals("manufacturer")) { 485 return addManufacturer(); 486 } 487 else if (name.equals("ingredient")) { 488 return addIngredient(); 489 } 490 else if (name.equals("physicalCharacteristics")) { 491 this.physicalCharacteristics = new ProdCharacteristic(); 492 return this.physicalCharacteristics; 493 } 494 else if (name.equals("otherCharacteristics")) { 495 return addOtherCharacteristics(); 496 } 497 else 498 return super.addChild(name); 499 } 500 501 public String fhirType() { 502 return "ManufacturedItemDefinition"; 503 504 } 505 506 public ManufacturedItemDefinition copy() { 507 ManufacturedItemDefinition dst = new ManufacturedItemDefinition(); 508 copyValues(dst); 509 return dst; 510 } 511 512 public void copyValues(ManufacturedItemDefinition dst) { 513 super.copyValues(dst); 514 dst.manufacturedDoseForm = manufacturedDoseForm == null ? null : manufacturedDoseForm.copy(); 515 dst.unitOfPresentation = unitOfPresentation == null ? null : unitOfPresentation.copy(); 516 if (manufacturer != null) { 517 dst.manufacturer = new ArrayList<Reference>(); 518 for (Reference i : manufacturer) 519 dst.manufacturer.add(i.copy()); 520 }; 521 if (ingredient != null) { 522 dst.ingredient = new ArrayList<Reference>(); 523 for (Reference i : ingredient) 524 dst.ingredient.add(i.copy()); 525 }; 526 dst.physicalCharacteristics = physicalCharacteristics == null ? null : physicalCharacteristics.copy(); 527 if (otherCharacteristics != null) { 528 dst.otherCharacteristics = new ArrayList<CodeableConcept>(); 529 for (CodeableConcept i : otherCharacteristics) 530 dst.otherCharacteristics.add(i.copy()); 531 }; 532 } 533 534 protected ManufacturedItemDefinition typedCopy() { 535 return copy(); 536 } 537 538 @Override 539 public boolean equalsDeep(Base other_) { 540 if (!super.equalsDeep(other_)) 541 return false; 542 if (!(other_ instanceof ManufacturedItemDefinition)) 543 return false; 544 ManufacturedItemDefinition o = (ManufacturedItemDefinition) other_; 545 return compareDeep(manufacturedDoseForm, o.manufacturedDoseForm, true) && compareDeep(unitOfPresentation, o.unitOfPresentation, true) 546 && compareDeep(manufacturer, o.manufacturer, true) && compareDeep(ingredient, o.ingredient, true) 547 && compareDeep(physicalCharacteristics, o.physicalCharacteristics, true) && compareDeep(otherCharacteristics, o.otherCharacteristics, true) 548 ; 549 } 550 551 @Override 552 public boolean equalsShallow(Base other_) { 553 if (!super.equalsShallow(other_)) 554 return false; 555 if (!(other_ instanceof ManufacturedItemDefinition)) 556 return false; 557 ManufacturedItemDefinition o = (ManufacturedItemDefinition) other_; 558 return true; 559 } 560 561 public boolean isEmpty() { 562 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(manufacturedDoseForm, unitOfPresentation 563 , manufacturer, ingredient, physicalCharacteristics, otherCharacteristics); 564 } 565 566 @Override 567 public ResourceType getResourceType() { 568 return ResourceType.ManufacturedItemDefinition; 569 } 570 571 572} 573