One of the great things about a PDF is that it fully supports ECMA JavaScript standards so any combination of fields and data can be put together into the Barcode.
The "default" script that you show here is a simple XML example that updates "this.rawvalue" with the XML data of the form. If you are not familiar with the XFA model (how to control a form by using JavaScript) then the .rawValue property is the actual value of an object, and in this case, the Barcode value itself.
That being said, to map individual fields you can put together a Calculate Script like the following:
this.rawValue = Name.rawValue + "|" +
Address.rawValue + "|" +
City.rawValue + "|" +
State.rawValue + "|" +
ZipCode.rawValue + "|" +
Country.rawValue;
In this case the Barcode is on the same subform level as the other fields so we don't have to provide the fully qualified names.
If you are not sure of the full name of a field, while in the script, hold down the "Ctrl" key and then click on the field you wish to include in the script. This will provide you with the XFA resolve:
xfa.resolveNode("BarcodeSize.BarcodeandField.CustomCodeDataEntry.Country")
...then simply add ".rawValue" to the end to extract the value of the field.