By Anonymous - November 3, 2014

AHS2
> Baseline
> A4

Baseline Variable: ULCERY

Description

Number of years since diagnosed with: Ulcer of stomach or duodenum

Notes

* "Never Had" value, coded as 0, added as appropriate as part of the never_had_updates
.
* Located on page A4
in version 1, page A3
on versions 2/3.

Data Values

Current

Levels Value
(empty string) Missing
0 Never Had (derived from on A03Q7
/A04Q8
variables)
1 Less than 5 years ago
2 5-9 years ago
3 10-14 years ago
4 15-19 years ago
5 20+ years ago

Original

Levels Value
(empty string) Missing
1 Less than 5 years ago
2 5-9 years ago
3 10-14 years ago
4 15-19 years ago
5 20+ years ago

* A04Q8
- Version 1 - "never been told that you had any of the conditions listed below"
* A03Q7
- Version 2/3 - "never been told that you had any of the conditions listed below"
* ULCER
- Treated for this in the last 12 months: Ulcer of stomach or duodenum

Location

Questionnaires

Questionnaire Version Labeled Page Physical Page TIFF Image Index Scan Path
1 A4 info
/image
7 04 ''R:\Tiff_Quest_V1''
2 A3 info
/image
6 44 ''R:\Tiff_Quest_V2''
3 A3 info
/image
6 44 ''R:\Tiff_Quest_V3''

Database Tables

Table Name Description
image.dbo.part1 modified version 1 part 1 data
image.dbo.part1_unmodified original/raw version 1 part 1 data

Modifications

"Never Had" Update

For details see: "Never Had" updates
. This is a never_had_updates#Type 5
variable.

SQL Code:

-- Version 1
update image.dbo.part1
set ULCERY = '0'
where ULCERY = ''
and A04Q8 = '1';

-- Version 2
update image.dbo.v2part1
set ULCERY = '0'
where ULCERY = ''
and A03Q7 = '1';

-- Version 3
update image.dbo.v3part1
set ULCERY = '0'
where ULCERY = ''
and A03Q7 = '1';

Before / After Counts

Version 1

Before After
A04Q8 ULCERY Count A04Q8 ULCERY Count
2646 2646
1 66 1 66
2 59 2 59
3 42 3 42
4 32 4 32
5 225 5 225
1 1943 1 0 1943
1 1 2 1 1 2
1 2 1 1 2 1
1 4 1 1 4 1
1 5 8 1 5 8

Version 2

Before After
A03Q7 ULCERY Count A03Q7 ULCERY Count
15401 15401
1 440 1 440
2 269 2 269
3 242 3 242
4 280 4 280
5 1208 5 1208
0 4 0 4
1 11417 1 0 11417
1 1 2 1 1 2
1 2 4 1 2 4
1 3 3 1 3 3
1 4 6 1 4 6
1 5 14 1 5 14

Version 3

Before After
A03Q7 ULCERY Count A03Q7 ULCERY Count
31929 31929
* 7 * 7
1 849 1 849
2 520 2 520
3 572 3 572
4 484 4 484
5 1979 5 1979
1 25698 1 0 25698
1 1 19 1 1 19
1 2 2 1 2 2
1 3 6 1 3 6
1 4 3 1 4 3
1 5 14 1 5 14