| Literature DB >> 22682616 |
Fenglian Xu1, Lisa Hilder, Marie-Paule Austin, Elizabeth A Sullivan.
Abstract
BACKGROUND: In recent years there has been an increase in the use of population-based linked data. However, there is little literature that describes the method of linked data preparation. This paper describes the method for merging data, calculating the statistical variable (SV), recoding psychiatric diagnoses and summarizing hospital admissions for a perinatal psychiatric study.Entities:
Mesh:
Year: 2012 PMID: 22682616 PMCID: PMC3445825 DOI: 10.1186/1471-2288-12-71
Source DB: PubMed Journal: BMC Med Res Methodol ISSN: 1471-2288 Impact factor: 4.615
The steps and SPSS syntax to calculate and recode the statistical variable of Admmonth
| Step | Variable and label | SPSS syntax | Explanation |
|---|---|---|---|
| 1 | Admdays: number of days between hospital admission and birth. | COMPUTE Admdays = AGEAdmMum – AgeBirthMum.VARIABLE LABELS Admdays 'Hospital admission days before and after birth'.EXECUTE. | If the value of Admdays is less than 0, it means the hospital admission is before birth.A positive value means the admission is after birth. |
| 2 | Admmonth: admission month before pregnancyGage : gestational age in days | IF (Admdays < 0) Admmonth = Admdays + Gage.EXECUTE.RECODE Admmonth (lowest thru −361 = 0)(−360 thru −331 = 1)(−330 thru −301 = 2)……(−60 thru −31 = 11) (−30 thru −1 = 12).EXECUTE. | Value 0 refers to the admission before the 12th month before pregnancy.1: the admission in the 12th month before pregnancy……11: the admission in the second month before pregnancy.12: the admission in the first month before pregnancy. |
| 3 | Admmonth: admission month during pregnancy | RECODE Admmonth (0 thru 29 = 13) (30 thru 59 = 14)…… (300 thru 329 = 23).EXECUTE. | 13: the admission in the first month of pregnancy.14: the admission in the second month of pregnancy……23: the admission in the 11th month of pregnancy. |
| 4 | Admmonth: admission month after birth | DO IF (Admdays > = 0).RECODE Admdays (0 thru 29 = 24 | 24: refers to the admission in the first month after birth.25: refers to the admission in the second month after birth……35: refers to the admission in the 12th month after birth.36: refers to the admission after the 12th month after birth. |
Figure 1 The hospital admissions of low prevalent psychiatric disorders before and after birth.
Figure 2 The data merged on MDC,RCC, mothers’ APDC and PHDAS.
Classification of principal diagnoses for mental illness
| Category | ICD-10-AM | Diagnosis | SPSS syntax |
|---|---|---|---|
| Prin1: Schizophrenia and schizophrenia-like disorder | F20 | Schizophrenia | COMPUTE Prin1 = 0.if ( icd10d1 GE 'F20' AND icd10d1 LE 'F22.9' ) Prin1 = 1.if ( icd10d1 GE 'F24' AND icd10d1 LE 'F29' ) Prin1 = 1.EXECUTE.VARIABLE LABELS Prin1' principal diagnoses of Schizophrenia and schizophrenia-like disorder F20-22, F24-29'. |
| | F21 | Schizotypal disorder | |
| | F22 | Persistent delusional disorders | |
| | F24 | Induced delusional disorder | |
| | F25 | Schizoaffective disorders | |
| | F28 | Other nonorganic psychotic disorders | |
| | F29 | Unspecified nonorganic psychosis | |
| Prin2: Unipolar depressions | F32 | Depressive episode except F32.3 see below (psychotic). | COMPUTE Prin2 = 0.if ( icd10d1 GE 'F32' AND icd10d1 LE 'F32.21' ) Prin2 = 1.if ( icd10d1 GE 'F32.8' AND icd10d1 LE 'F32.91' ) Prin2 = 1.if ( icd10d1 EQ 'F53.0' ) Prin2 = 1.if ( icd10d1 EQ 'F34.1' ) Prin2 = 1.if ( icd10d1 EQ 'F38.1' ) Prin2 = 1.if ( icd10d1 EQ 'F38.8' ) Prin2 = 1.EXECUTE.VARIABLE LABELS Prin2 ' principal diagnoses of unipolar depressions F32 (exclude 32.3), F53.0, F34.1, F38 (exclude 38.0)'. |
| | F53.0 | Mild disorders associated with the puerperium, not elsewhere classified | |
| | F34.1 | Persistent mood [affective] disorders: Dysthymia | |
| | F38 | Other mood [affective] disorders except F38.0 see below (bipolar affective episode) | |
| Prin3: Acute Psychotic episodes : reactive, brief, affective | F23 | Acute and transient psychotic disorders | COMPUTE Prin3 = 0.if ( icd10d1 GE 'F23' AND icd10d1 LE 'F23.91' ) Prin3 = 1.if ( icd10d1 GE 'F32.3' AND icd10d1 LE 'F32.31' ) Prin3 = 1.if ( icd10d1 EQ 'F30.2' ) Prin3 = 1.if ( icd10d1 EQ 'F33.3' ) Prin3 = 1.if ( icd10d1 EQ 'F39' ) Prin3 = 1.if ( icd10d1 EQ 'F53.1' ) Prin3 = 1.EXECUTE.VARIABLE LABELS Prin3' principal diagnoses of acute psychotic episodes: reactive, brief, affective F23, 30.2,32.3, 33.3, 39, 53.1'. |
| | F30.2 | Mania with psychotic features | |
| | F32.3 | Severe depressive episode with psychotic symptoms | |
| | F33.3 | Recurrent depressive disorder, current severe with psychotic symptoms | |
| | F39 | Unspecified mood [affective] disorder | |
| | F53.1 | Severe MH disorders associated with the puerperium, not elsewhere classified | |
| Prin4: Bipolar affective disorders | F30.0 | Hypomania | COMPUTE Prin4 = 0.if ( icd10d1 GE 'F30.8' AND icd10d1 LE 'F30.9' )Prin4 = 1.if ( icd10d1 GE 'F31' AND icd10d1 LE 'F31.6' ) Prin4 = 1.if ( icd10d1 GE 'F31.8' AND icd10d1 LE 'F31.9' ) Prin4 = 1.if ( icd10d1 EQ 'F30.0' ) Prin4 = 1.if ( icd10d1 EQ 'F34.0' ) Prin4 = 1.if ( icd10d1 EQ 'F38.0' ) Prin4 = 1.EXECUTE.VARIABLE LABELS Prin4' principal diagnoses of bipolar affective disorders F30 (exclude 30.2), 31(exclude 31.7),34.0,38.0 '. |
| | F30.8 | Other manic episodes | |
| | F30.9 | Manic episode, unspecified | |
| | F31 | Bipolar affective disorder F31.0-31.9 excluding F31.7 (remission). | |
| | F34.0 | Persistent mood [affective] disorders: Cyclothymia | |
| | F38.0 | Other single mood [affective] disorders | |
| Prin5: Adjustment disorders | F43 | Reaction to severe stress and adjustment disorders | COMPUTE Prin5 = 0.if ( icd10d1 GE 'F43' AND icd10d1 LE 'F43.9' ) Prin5 = 1.EXECUTE.VARIABLE LABELS Prin5' principal diagnoses of adjustment disorders F43 '. |
| Prin6: Anxiety disorders | F40 | Phobic anxiety disorders | COMPUTE Prin6 = 0.if ( icd10d1 GE 'F40' AND icd10d1 LE 'F42.9' ) Prin6 = 1.EXECUTE.VARIABLE LABELS Prin6' principal diagnosis of anxiety disorders F40-42'. |
| | F41 | Other anxiety disorders | |
| | F42 | Obsessive-compulsive disorder | |
| Prin7: Personality disorders | F60-69 | Personality disorders | COMPUTE Prin7 = 0.if ( icd10d1 GE 'F60' AND icd10d1 LE 'F69' ) Prin7 = 1.EXECUTE.VARIABLE LABELS Prin7' principal diagnoses of personality disorders F60-69'. |
| Prin8: Mental illness due to substance use | F10-F19 | Mental illness due to substance use | COMPUTE Prin8 = 0.if ( icd10d1 GE 'F10' AND icd10d1 LE 'F19.8' ) Prin8 = 1.EXECUTE.VARIABLE LABELS Prin8 ' principal diagnoses of mental illness due to substance use F10-19. '. |
| Prin9: Remaining diagnoses | F00-99 Exclude the diagnoses above | Remaining diagnoses | COMPUTE Prin9 = 0.if ( icd10d1 GE 'F00' AND icd10d1 LE 'F09' ) Prin9 = 1.if ( icd10d1 EQ 'F30.1' ) Prin9 = 1.if ( icd10d1 EQ 'F31.7' ) Prin9 = 1.if ( icd10d1 GE 'F33.1' AND icd10d1 LE 'F33.2' ) Prin9 = 1.if ( icd10d1 GE 'F33.8' AND icd10d1 LE 'F33.9' ) Prin9 = 1.if ( icd10d1 EQ 'F34.9' ) Prin9 = 1.if ( icd10d1 GE 'F44.5' AND icd10d1 LE 'F52.9' ) Prin9 = 1.if ( icd10d1 GE 'F53.8' AND icd10d1 LE 'F59' ) Prin9 = 1.if ( icd10d1 GE 'F70.1' AND icd10d1 LE 'F99' ) Prin9 = 1.EXECUTE.VARIABLE LABELS Prin9 ' remaining principal diagnoses F00-99 exclude diagnosis above'. |
| Prin10: Overall diagnoses of mental illness | F00-99 | Overall diagnoses of mental illness | COMPUTE Prin10 = 0.if ( icd10d1 GE 'F00' AND icd10d1 LE 'F99' ) Prin10 = 1EXECUTE.VARIABLE LABELS Prin10 ' principal diagnoses of mental illness F00-99.’. |
| Prin1-10 | Value labels | VALUE LABELS Prin1 Prin2 Prin3 Prin4 Prin5 Prin6 Prin7 Prin8 Prin9 Prin10 0'no' 1'yes'. |
The steps and SPSS syntax to aggregate hospital admissions for mental illness during pregnancy
| Step | SPSS Syntax | |
|---|---|---|
| Summarize hospital admissions of all principal diagnoses of mental illness during pregnancy | Select the period of pregnancy and sort record according to hospital admission date.PPN_mum: mother’s Project Person Number AGEAdmMum: mother’s age in days at hospital admission | USE ALL.COMPUTE filter_$ = ( Admmonth > = 13 Admmonth < = 23).VARIABLE LABELS filter_$ ' Admmonth >= 13 Admmonth < = 23 (FILTER)'.VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.FORMATS filter_$ (f1.0).FILTER BY filter_$.EXECUTE.SORT CASES BY PPN_mum (A) AGEAdmMum(A). |
| | Prin10_sum: the total hospital admissions for principal diagnosis of mental illness during pregnancy | AGGREGATE/OUTFILE = * MODE = ADDVARIABLES/BREAK = PPN_mum /Prin10_sum = SUM(Prin10). |
| Order the principal diagnoses of mental illness during pregnancy in sequence | Select and sort the records during pregnancy | FILTER OFF.USE ALL.SELECT IF (Admmonth > = 13 & Admmonth < = 23).EXECUTE.SORT CASES BY PPN_mum(A) AGEAdmMum(A). |
| | Morder: The sequent order of mother’s hospital admission | compute Morder = 1.if ( PPN_mum = lag(PPN_mum )) Morder = lag(Morder ) + 1.format Morder (F2).VARIABLE LABELS Morder 'Mother’s hospital admission order (during pregnancy)'.EXECUTE. |
| Order the principal diagnosis of mental illness. Prin10order: the order of mother’s hospital admissions for principal diagnosis of mental illness (F00-99) during pregnancy | IF ( Morder EQ 1) #counter = 0.IF (Prin10 EQ 1 AND #counter GE 1) #counter = #counter + 1.IF (Prin10 EQ 1 AND #counter GE 1) Prin10order = #counter.IF (Prin10 EQ 1 AND #counter EQ 0) Prin10order = 1.IF (Prin10 EQ 1 AND #counter EQ 0) #counter = 1.FORMATS Prin10order (F2).VARIABLE LABELS Prin10order 'The order of mother’s hospital admissions for principal diagnosis of mental illness (F00-99) during pregnancy'.EXECUTE. |