@Override public void setProperty(String name, Base value) throws FHIRException { if (name.equals("masterIdentifier")) this.masterIdentifier = castToIdentifier(value); // Identifier else if (name.equals("identifier")) this.getIdentifier().add(castToIdentifier(value)); else if (name.equals("subject")) this.subject = castToReference(value); // Reference else if (name.equals("recipient")) this.getRecipient().add(castToReference(value)); else if (name.equals("type")) this.type = castToCodeableConcept(value); // CodeableConcept else if (name.equals("author")) this.getAuthor().add(castToReference(value)); else if (name.equals("created")) this.created = castToDateTime(value); // DateTimeType else if (name.equals("source")) this.source = castToUri(value); // UriType else if (name.equals("status")) this.status = new DocumentReferenceStatusEnumFactory().fromType(value); // Enumeration<DocumentReferenceStatus> else if (name.equals("description")) this.description = castToString(value); // StringType else if (name.equals("content")) this.getContent().add((DocumentManifestContentComponent) value); else if (name.equals("related")) this.getRelated().add((DocumentManifestRelatedComponent) value); else super.setProperty(name, value); }
@Override public void setProperty(String name, Base value) throws FHIRException { if (name.equals("masterIdentifier")) this.masterIdentifier = castToIdentifier(value); // Identifier else if (name.equals("identifier")) this.getIdentifier().add(castToIdentifier(value)); else if (name.equals("subject")) this.subject = castToReference(value); // Reference else if (name.equals("recipient")) this.getRecipient().add(castToReference(value)); else if (name.equals("type")) this.type = castToCodeableConcept(value); // CodeableConcept else if (name.equals("author")) this.getAuthor().add(castToReference(value)); else if (name.equals("created")) this.created = castToDateTime(value); // DateTimeType else if (name.equals("source")) this.source = castToUri(value); // UriType else if (name.equals("status")) this.status = new DocumentReferenceStatusEnumFactory().fromType(value); // Enumeration<DocumentReferenceStatus> else if (name.equals("description")) this.description = castToString(value); // StringType else if (name.equals("content")) this.getContent().add((DocumentManifestContentComponent) value); else if (name.equals("related")) this.getRelated().add((DocumentManifestRelatedComponent) value); else super.setProperty(name, value); }