A MethodDef defines how a data value can be obtained from a collection of other data values.
Element Name | MethodDef |
---|---|
Parent Elements | MetaDataVersion |
Element XPath(s) | /ODM/Study/MetaDataVersion/MethodDef |
Element Textual Value | None |
Attributes | OID, Name, Type, CommentOID |
Child Elements | (Description, MethodSignature, FormalExpression*, Alias*, DocumentRef*) The Description element must be provided and should include a prose description. The MethodSignature element must also be provided and identifies the input parameter and return values for the MethodDef. The Description and MethodSignature are the normative content of the MethodDef. If a FormalExpression is provided, it must contain a machine-readable expression that implements the Description and MethodSignature. Multiple FormalExpressions can be provided if each has a different Context attribute, allowing the same expression to be represented in forms appropriate to multiple systems. A FormalExpression can reference an external code library such that it can be retrieved for execution at run-time. If MethodDef execution order must be specified then use workflows for this purpose. |
Usage/Business Rules |
|
Attribute | Schema Datatype or Enumeration | Usage | Definition | Business Rules |
---|---|---|---|---|
OID | oid | Required | Unique identifer for the MethodDef element. | The OID attribute value must be unique within the Study/MetaDataVersion. |
Name | name | Required | Human readable name for the method. | The Name attribute must be unique within the set of MethodDef elements within a Study/MetadataVersion. |
Type | (Computation | Imputation | Transpose | Preload) | Optional | Computation: derivation involving one or more variables. Imputation: derivation based on other observations. Transpose: conversion of rows to columns or vice versa. Preload: retrieve and populate data from an external source. | Type="Preload" is the default value when a MethodDef is referenced from an ItemGroup. |
CommentOID | oidref | Optional | Reference to a CommentDef with information related to this MethodDef. | Must match the OID attribute of a CommentDef element within in this Study/MetaDataVersion. |
The Description element must be provided and should include a prose description. The MethodSignature element must also be provided and identifies the input parameter and return values for the MethodDef. The Description and MethodSignature are the normative content of the MethodDef.
If a FormalExpression is provided, it must contain a machine-readable expression that implements the Description and MethodSignature. Multiple FormalExpressions can be provided if each has a different Context attribute, allowing the same expression to be represented in forms appropriate to multiple systems. A FormalExpression can reference an external code library such that it can be retrieved for execution at run-time. If MethodDef execution order must be specified then use workflows for this purpose.