A ConditionDef defines a boolean condition.
Element Name | ConditionDef |
---|---|
Parent Elements | MetaDataVersion |
Element XPath(s) | /ODM/Study/MetaDataVersion/ConditionDef |
Element Textual Value | None |
Attributes | OID, Name, CommentOID |
Child Elements | (Description, MethodSignature, FormalExpression*, Alias*)
|
Usage/Business Rules |
|
Attribute | Schema Datatype or Enumeration | Usage | Definition | Business Rules |
---|---|---|---|---|
OID | oid | Required | Unique identifier. | Must be unique within the Study/MetaDataVersion. |
Name | name | Required | Human-readable name for the Condition. | Must be unique with the set of ConditionDef elements in the Study. |
CommentOID | oidref | Optional | Reference to a CommentDef element. | Must match the OID attribute for a CommentDef element in this Study/MetaDataVersion. |
Example: ItemRef with ConditionDef
This example illustrates a data-collection instrument designed to collect data for an item IsPregnant for an item group InclusionCriteria, omitted for male subjects. The referenced ConditionDef would be defined as illustrated below. When the FormalExpression evaluates to True, the Item with OID IG.ISPREG need not be collected.
ItemRef with ConditionDef
<ItemGroupDef OID="INCLUSION" Name="Inclusion Criteria" Repeating="No" Type="Section"> <ItemRef ItemOID="ID.GENDER" Mandatory="Yes"> <Origin Type="Collected" Source="Sponsor"></Origin> </ItemRef> <ItemRef ItemOID="ID.ISPREG" Mandatory="Yes" CollectionExceptionConditionOID="CECID.ISMALE"/> <Origin Type="Collected" Source="Sponsor"> <SourceItems> <SourceItem> <Resource Type="ODM" Name="ItemDef" Label="Gender"> <Selection Path="../../ItemDef[@OID='ID.GENDER']/@Value"></Selection> </Resource> </SourceItem> </SourceItems> </Origin> </ItemGroupDef> ... <ConditionDef OID="CECID.ISMALE" Name="Subject's gender is Male"> <Description> <TranslatedText xml:lang="en" Type="text/plain">Do not collect data for Male subjects</TranslatedText> </Description> <MethodSignature> <Parameter Name="Gender" DataType="text"/> <ReturnValue Name="IsMale" DataType="boolean"/> </MethodSignature> <FormalExpression Context="PL/SQL"> <Code>IsMale = (Gender := 'Male')</Code> </FormalExpression> </ConditionDef>
Overview
Content Tools