Study Definition module

 

Text/number question formats

When specifying a format for a text/number question, you must use the following conventions:

A

Use this character to represent a letter. For example, AAAA indicates that the response must consist of four letters.

9

Use this character to represent a digit. For example, 999 indicates that the response must consist of three digits. If you wish to allow negative numbers in a response then you must include the minus sign in the format. For example, -999 allows numbers from -999 to +999.

A9

Use a combination of these characters to represent both digits and letters. For example, A99A indicates that the response must consist of a letter followed by two digits followed by a letter.

#

Use this character to suppress leading zeroes. For example ###9 may result in a response of 4, whereas 9999 would result in a response of 0004.

The following characters may vary, for example if your computer is using different regional settings:

.

Use the full stop character to indicate a decimal place. For example, 99.99

You must include at least one digit before and after the decimal point.

,

Use the comma character to indicate the thousands separator. For example, 9,999

 

The maximum number of characters allowed for a text question response is 3800. The number of characters allowed can be limited by setting a maximum length in an individual question definition.

Decimal format

The decimal format for a real number question must correspond to that used in the regional settings on the computer running the SD module. e.g. if you are running SD on an English machine, the format for a real number should be 99.99. However, when entering a real number during data entry in the DE/DR module, the decimal must match the language settings specified in the web browser settings. It is independent of the settings used in the SD module.

Integers with leading zeroes in a text string

The value of a question with format 999 will only be formatted this way in the question field itself. To display leading zeroes in a text string, such as a subject label, then it's necessary to add the leading zeros to the Arezzo expression that defines the label.

For example, to create a subject label of the form ABC-001 where the question PID is a 3-digit integer patient ID, and the question INITS is the patient initials, the Arezzo expression would be:

INITS & '-' & case((PID < 10, '00'), (PID < 100, '0'), (else, '')) & PID

 

 

Related Topics