Master Segment |
You will not always need a item to print for every possible record that could be produced from the data hierarchy in an IDoc.
The Master Segment is the segment whose data is the focus of interest with respect to your design needs.
Consider the data tree shown in the Understanding IDocs help page. If the hospital needs a label for every drug prescribed, then it would set the Master Segment at the fourth level. This would cause
Patient Name |
Diagnosis |
Visit |
Drug |
Johnson |
tibia fracture |
admission |
codeine |
Johnson |
tibia fracture |
admission |
amidol |
Johnson |
tibia fracture |
followup |
naprosin |
Suppose the hospital keeps separate files for every patient visit and wants to generate labels to be used for file folders. Only one label is needed for each visit. So the Master Segment is set to the third level, and
Patient Name |
Diagnosis |
Visit |
Drug |
Johnson |
tibia fracture |
admission |
codeine amidol |
Johnson |
tibia fracture |
followup |
naprosin |
In the first of these records,
Since
In the typical run of items built from this IDoc, I'll want one item to print for every _____________.
In the preceding example, if "visit" fills the blank, then the third level would probably be the best choice of Master Segment level, but if "prescribed drug" fills the blank, then the fourth level would probably be a better choice.