About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Last updated: Feb 11, 2025
The Restructure node converts a nominal or flag field into
a group of fields that can be populated with the values of yet another field. For example, given a
field named
, with values of payment type
,
credit
, and cash
, three new fields would be created
(debit
, credit
, cash
), each of which might
contain the value of the actual payment made.debit
Example
node = stream.create("restructure", "My node") node.setKeyedPropertyValue("fields_from", "Drug", ["drugA", "drugX"]) node.setPropertyValue("include_field_name", True) node.setPropertyValue("value_mode", "OtherFields") node.setPropertyValue("value_fields", ["Age", "BP"])
properties |
Data type | Property description |
---|---|---|
|
[category category category]
|
|
|
flag | Indicates whether to use the field name in the restructured field name. |
|
|
Indicates the mode for specifying the values for the restructured fields. With
, you must specify which fields to use. With , the
values are numeric flags. |
|
list | Required if is . Specifies which
fields to use as value fields. |
Was the topic helpful?
0/1000