/** * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist */ public Identifier getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { addIdentifier(); } return getIdentifier().get(0); }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("identifier")) { this.getIdentifier().add(castToIdentifier(value)); } else if (name.equals("basedOn")) { this.getBasedOn().add(castToReference(value)); } else if (name.equals("partOf")) { this.getPartOf().add(castToReference(value)); } else if (name.equals("status")) { value = new SupplyDeliveryStatusEnumFactory().fromType(castToCode(value)); this.status = (Enumeration) value; // Enumeration<SupplyDeliveryStatus> } else if (name.equals("patient")) { this.patient = castToReference(value); // Reference } else if (name.equals("type")) { this.type = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("suppliedItem")) { this.suppliedItem = (SupplyDeliverySuppliedItemComponent) value; // SupplyDeliverySuppliedItemComponent } else if (name.equals("occurrence[x]")) { this.occurrence = castToType(value); // Type } else if (name.equals("supplier")) { this.supplier = castToReference(value); // Reference } else if (name.equals("destination")) { this.destination = castToReference(value); // Reference } else if (name.equals("receiver")) { this.getReceiver().add(castToReference(value)); } else return super.setProperty(name, value); return value; }
switch (hash) { case -1618432855: // identifier this.getIdentifier().add(castToIdentifier(value)); // Identifier return value; case -332612366: // basedOn
/** * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist */ public Identifier getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { addIdentifier(); } return getIdentifier().get(0); }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("identifier")) { this.getIdentifier().add(castToIdentifier(value)); } else if (name.equals("basedOn")) { this.getBasedOn().add(castToReference(value)); } else if (name.equals("partOf")) { this.getPartOf().add(castToReference(value)); } else if (name.equals("status")) { value = new SupplyDeliveryStatusEnumFactory().fromType(castToCode(value)); this.status = (Enumeration) value; // Enumeration<SupplyDeliveryStatus> } else if (name.equals("patient")) { this.patient = castToReference(value); // Reference } else if (name.equals("type")) { this.type = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("suppliedItem")) { this.suppliedItem = (SupplyDeliverySuppliedItemComponent) value; // SupplyDeliverySuppliedItemComponent } else if (name.equals("occurrence[x]")) { this.occurrence = castToType(value); // Type } else if (name.equals("supplier")) { this.supplier = castToReference(value); // Reference } else if (name.equals("destination")) { this.destination = castToReference(value); // Reference } else if (name.equals("receiver")) { this.getReceiver().add(castToReference(value)); } else return super.setProperty(name, value); return value; }
switch (hash) { case -1618432855: // identifier this.getIdentifier().add(castToIdentifier(value)); // Identifier return value; case -332612366: // basedOn