@Override public void setProperty(String name, Base value) throws FHIRException { if (name.equals("versionId")) this.versionId = castToId(value); // IdType else if (name.equals("lastUpdated")) this.lastUpdated = castToInstant(value); // InstantType else if (name.equals("profile")) this.getProfile().add(castToUri(value)); else if (name.equals("security")) this.getSecurity().add(castToCoding(value)); else if (name.equals("tag")) this.getTag().add(castToCoding(value)); else super.setProperty(name, value); }
public PaymentNotice copy() { PaymentNotice dst = new PaymentNotice(); copyValues(dst); if (identifier != null) { dst.identifier = new ArrayList<Identifier>(); for (Identifier i : identifier) dst.identifier.add(i.copy()); } ; dst.ruleset = ruleset == null ? null : ruleset.copy(); dst.originalRuleset = originalRuleset == null ? null : originalRuleset.copy(); dst.created = created == null ? null : created.copy(); dst.target = target == null ? null : target.copy(); dst.provider = provider == null ? null : provider.copy(); dst.organization = organization == null ? null : organization.copy(); dst.request = request == null ? null : request.copy(); dst.response = response == null ? null : response.copy(); dst.paymentStatus = paymentStatus == null ? null : paymentStatus.copy(); dst.statusDate = statusDate == null ? null : statusDate.copy(); return dst; }
protected void listChildren(List<Property> childrenList) { super.listChildren(childrenList); childrenList.add( new Property( "versionId", "id", "The version specific identifier, as it appears in the version portion of the URL. This values changes when the resource is created, updated, or deleted.", 0, java.lang.Integer.MAX_VALUE, versionId)); childrenList.add( new Property( "lastUpdated", "instant", "When the resource last changed - e.g. when the version changed.", 0, java.lang.Integer.MAX_VALUE, lastUpdated)); childrenList.add( new Property( "profile", "uri", "A list of profiles (references to [[[StructureDefinition]]] resources) that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]].", 0, java.lang.Integer.MAX_VALUE, profile)); childrenList.add( new Property( "security", "Coding", "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.", 0, java.lang.Integer.MAX_VALUE, security)); childrenList.add( new Property( "tag", "Coding", "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.", 0, java.lang.Integer.MAX_VALUE, tag)); }
@Override public void setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -1407102957: // versionId this.versionId = castToId(value); // IdType break; case 1649733957: // lastUpdated this.lastUpdated = castToInstant(value); // InstantType break; case -309425751: // profile this.getProfile().add(castToUri(value)); // UriType break; case 949122880: // security this.getSecurity().add(castToCoding(value)); // Coding break; case 114586: // tag this.getTag().add(castToCoding(value)); // Coding break; default: super.setProperty(hash, name, value); } }