{
"fields": [
{
/* source field, suppressed from output.
vehicle info to add to Insurer A table */
"id": "_vin",
"anchor": "vin:",
"method": {
"id": "label",
"position": "right"
}
},
{
/* source field, suppressed from output.
vehicle info to add to Insurer A table */
"id": "_model",
"anchor": "model:",
"method": {
"id": "label",
"position": "right"
}
},
{
/* source table, suppressed from output */
"id": "_raw_insurer_a_table",
"anchor": "insurer a",
"type": "table",
"method": {
"id": "fixedTable",
"columnCount": 3,
"startOnRow": 1,
"columns": [
{
"id": "policy_start",
"index": 0
},
{
"id": "limits",
"index": 1
},
{
"id": "amount",
"index": 2
}
],
"stop": {
"type": "startsWith",
"text": "see appendix"
}
}
},
{
/* source table, suppressed from output */
"id": "_raw_insurer_b_table",
"anchor": "insurer b",
"type": "table",
"method": {
"id": "fixedTable",
"columnCount": 5,
"startOnRow": 1,
"columns": [
{
/* source column, suppressed from output */
"id": "_make_model_column",
"index": 0
},
{
"id": "vin",
"index": 1
},
{
"id": "policy_start",
"index": 2
},
{
"id": "limits",
"index": 3
},
{
"id": "amount",
"index": 4
}
],
"stop": {
"type": "startsWith",
"text": "per person"
}
}
}
],
"computed_fields": [
{
"id": "insurer_a_transformed",
"method": {
"id": "addComputedFields",
"source_id": "_raw_insurer_a_table",
"fields": [
{
"id": "vin",
"method": {
/* copy in the VIN positioned above the table
so the information is accessible to this computed fields array
and is outputted in the transformed table */
"id": "copy_to_section",
"source_id": "_vin"
}
},
{
/* copy in model positioned above the table
so the information is accessible to this computed fields array
and is outputted in the transformed table */
"id": "model",
"method": {
"id": "copy_to_section",
"source_id": "_model"
}
}
]
}
},
{
"id": "insurer_b_transformed",
"method": {
"id": "addComputedFields",
"source_id": "_raw_insurer_b_table",
"fields": [
{
/* split the make from the model, for consistency with insurer A */
"id": "model",
"method": {
"id": "split",
"source_id": "_make_model_column",
"separator": " ",
"index": 1
}
},
{
/* remove make and model field;
output only the transformed model field */
"id": "cleanup",
"method": {
"id": "suppressOutput",
"source_ids": [
"_make_model_column"
]
}
}
]
}
},
{
/* output only transformed tables */
"id": "cleanup",
"method": {
"id": "suppressOutput",
"source_ids": [
"_vin",
"_model",
"_raw_insurer_a_table",
"_raw_insurer_b_table"
]
}
}
]
}