By Anonymous - November 3, 2014

AHS2
> Baseline
> A4

Baseline Variable: STONESY

Description

Number of years since diagnosed with: Gallstones

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"
* STONES
- Treated for this in the last 12 months: Gallstones

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 STONESY = '0'
where STONESY = ''
and A04Q8 = '1';

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

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

Before / After Counts

Version 1

Before After
A04Q8 STONESY Count A04Q8 STONESY Count
2602 2602
1 107 1 107
2 91 2 91
3 55 3 55
4 48 4 48
5 167 5 167
1 1946 1 0 1946
1 1 3 1 1 3
1 2 1 1 2 1
1 3 4 1 3 4
1 4 1 1 4 1

Version 2

Before After
A03Q7 STONESY Count A03Q7 STONESY Count
15003 15003
1 681 1 681
2 516 2 516
3 397 3 397
4 310 4 310
5 933 5 933
0 4 0 4
1 11423 1 0 11423
1 1 7 1 1 7
1 2 5 1 2 5
1 3 3 1 3 3
1 5 8 1 5 8

Version 3

Before After
A03Q7 STONESY Count A03Q7 STONESY Count
31073 31073
* 10 * 10
1 1294 1 1294
2 887 2 887
3 786 3 786
4 621 4 621
5 1669 5 1669
1 25691 1 0 25691
1 1 14 1 1 14
1 2 10 1 2 10
1 3 4 1 3 4
1 4 4 1 4 4
1 5 19 1 5 19