In many fields of the DCC schema, it is possible to assign an id to an element. This id is of type xs:ID and must be unique within the DCC. The id can be used to directly address a specific element.
An id may only be assigned once in the DCC.
To link two elements in the DCC, you can use a refId to reference an id, which can be done multiple times. However, nesting is not allowed.
A refId can be used to establish a connection to the element that carries the corresponding id.
The meaning of the connection must be clearly described. The following table lists such connections.
| Element with id [id_suggestion] | Element with refID | Description |
|---|---|---|
| item[item_xxx] | measurementResult | The measurementResult belongs exclusively to this item |
| usedMethod [uM_xxx] | (list/quantity) metaData | The method applies to this list or quantity |
| Software [uS_xxx] | (list/quantity) metaData | The software applies to this list or quantity |
| measuringEquipment [mE_xxx] | (list/quantity) metaData | The measuringEquipment applies to this list or quantity |
| influenceCondition [iC_xxx] | (list/quantity) metaData | The influenceCondition applies to this list or quantity |
| performanceLocation [id_performanceLocation] | statement; metaData (directly at the measurement values) | Condition: laboratoryBranch, customerBranch, Other GPRS and such |
Row 1: By using refId at the measurementResult, it is not possible to assign a measurementResult to two items, for example, in a combination of three items in items.
Here is a DCC with two items. There are two measurementResults: one is only for item 1, and the second one, since no refId is present, is for the combination of all items, i.e., for items.
<dcc:items>
<dcc:item id="item_01">
...this is the first Item
</dcc:item>
<dcc:item id="item_02">
...this is the second Item
</dcc:item>
</dcc:items>
<dcc:measurementResults>
<dcc:measurementResult refId="item1">
...this element is only for item1
</dcc:measurementResult>
<dcc:measurementResult>
...this element is for all items
</dcc:measurementResult>
</dcc:measurementResults>