Group control, with ODM metadata output
The item in the InForm study:
This example includes a group control (gp_WalkRange) that contains two children:
- A radio group (rd_4Digit_Meters) with one selection Meters:
- A text box (tx_Meters) with caption "meters."
- A text box (tx_2DigitMin) with caption "Number of minutes."
Issuing the DownloadMetadataODM method on the InForm study produces the following XML output for the item, which includes the extensions to ItemDef and CodeListItem that show control hierarchy and type.
<ItemDef
OID="fm_FSS2.sc_Ambulation.it_WalkRange.gp_WalkRange.rd_4Digit_Meters"
pf:ItemDefType="RadioGroup">
<CodeListRef
CodeListOID="fm_FSS2.sc_Ambulation.it_WalkRange.gp_WalkRange.rd_4Digit_Meters" />
</ItemDef>
<ItemDef
OID="fm_FSS2.sc_Ambulation.it_WalkRange.gp_WalkRange.rd_4Digit_Meters.tx_Meters"
pf:ParentOID=
"fm_FSS2.sc_Ambulation.it_WalkRange.gp_WalkRange.rd_4Digit_Meters.Meters"
pf:ParentType="CodeListItem"
pf:SelectionOwner="fm_FSS2.sc_Ambulation.it_WalkRange.gp_WalkRange.rd_4Digit_Meters"
pf:ItemDefType="Text">
</ItemDef>
<ItemDef
OID="fm_FSS2.sc_Ambulation.it_WalkRange.gp_WalkRange.tx_2DigitMin"
<!-- No pf:ParentOID or pf:ParentType, because it’s at the top -->
pf:ControlType="Text">
</ItemDef>
<CodeList
OID="fm_FSS2.sc_Ambulation.it_WalkRange.gp_WalkRange.rd_4Digit_Meters">
<CodeListItem
CodedValue="!pf!8829"
pf:SelectionOID=
"fm_FSS2.sc_Ambulation.it_WalkRange.gp_WalkRange.rd_4Digit_Meters.Meters"/>
<CodeListItem
CodedValue=""
pf:SelectionOID=
"fm_FSS2.sc_Ambulation.it_WalkRange.gp_WalkRange.rd_4Digit_Meters.BLANK" />
</CodeList>
<pf:InFormItemDef
OID="fm_FSS2.sc_Ambulation.it_WalkRange"
<!-- pf:RootItemOID was removed from the design because items can have multiple roots i.e. top level controls in this case fm_FSS2.sc_Ambulation.it_WalkRange.gp_WalkRange.tx_2DigitMin and fm_FSS2.sc_Ambulation.it_WalkRange.gp_WalkRange.rd_4Digit_Meters -->
<ItemRef
ItemOID="fm_FSS2.sc_Ambulation.it_WalkRange.gp_WalkRange.rd_4Digit_Meters" />
<ItemRef
ItemOID="fm_FSS2.sc_Ambulation.it_WalkRange.gp_WalkRange.rd_4Digit_Meters.tx_Meters" />
<ItemRef
ItemOID="fm_FSS2.sc_Ambulation.it_WalkRange.gp_WalkRange.tx_2DigitMin" />
</pf:InFormItemDef>