Step 1: The variable hlf0108_h is replaced by the variable hlf0108_v1 for the years 1985 to 1996.
Step 2: The variable hlf0108_h is replaced with -2 for the years 1997 to 2013 and 2015 and 2017 to 2021.
Step 3: The variable hlf0108_h is replaced with 3 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v2 is 1 and !inlist(1, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 4: The variable hlf0108_h is replaced with 4 for the years 1997 to 2013 and 2015 and 2017 to 2021 if hlf0108_v4 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 5: The variable hlf0108_h is replaced with 5 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v6 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 6: The variable hlf0108_h is replaced with 5 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v5 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 7: The variable hlf0108_h is replaced with 5 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v8 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 8: The variable hlf0108_h is replaced with 6 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v9 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 9: The variable hlf0108_h is replaced with 6 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v10 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 10: The variable hlf0108_h is replaced with 7 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v12 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 11: The variable hlf0108_h is replaced with 7 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v11 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 12: The variable hlf0108_h is replaced with 7 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v14 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v15).
Step 13: The variable hlf0108_h is replaced with 7 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v13 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v14, hlf0108_v15).
Step 14: The variable hlf0108_h is replaced with 8 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v3 is 1 and !inlist(1, hlf0108_v2, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 15: The variable hlf0108_h is replaced with 8 for the years 1997 to 2013 and 2015 and 2017 to 2021 if hlf0108_v15 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14).
Step 16: The variable hlf0108_h is replaced with 8 for the years 1997 to 2013 and 2015 and 2017 to 2021 if hlf0108_v7 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 17: The variable hlf0108_h is replaced with 9 for the years 1997 to 2013 and 2015 and 2017 and 2018 if (hlf0108_v2 is 1 OR hlf0108_v3 is 1 OR hlf0108_v4 is 1 OR hlf0108_v5 is 1 OR hlf0108_v6 is 1 OR hlf0108_v7 is 1 OR hlf0108_v8 is 1 OR hlf0108_v9 is 1 OR hlf0108_v10 is 1 OR hlf0108_v11 is 1 OR hlf0108_v12 is 1 OR hlf0108_v13 is 1 OR hlf0108_v14 is 1 OR hlf0108_v15 is 1) and the variable hlf0108_h is not within the range of 1 to 8.
Step 18: The variable hlf0108_v16 is recoded (1=1) (2=4) (3=5) (4=7) (6=8) (5=7) for the years 2019 to 2023 and subsequently integrated into the harmonized variable hlf0108_h if.
Step 19: The variable hlf0108_v17 is recoded (1=1) (2=4) (3=5) (4=7) (6=8) (5=7) (7=8) for the years 2022 and 2023 and subsequently integrated into the harmonized variable hlf0108_h.
Step 1: The variable hlf0108_h is replaced by the variable hlf0108_v1 for the years 1985 to 1996.
Step 2: The variable hlf0108_h is replaced with -2 for the years 1997 to 2013 and 2015 and 2017 to 2021.
Step 3: The variable hlf0108_h is replaced with 3 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v2 is 1 and !inlist(1, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 4: The variable hlf0108_h is replaced with 4 for the years 1997 to 2013 and 2015 and 2017 to 2021 if hlf0108_v4 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 5: The variable hlf0108_h is replaced with 5 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v6 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 6: The variable hlf0108_h is replaced with 5 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v5 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 7: The variable hlf0108_h is replaced with 5 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v8 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 8: The variable hlf0108_h is replaced with 6 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v9 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 9: The variable hlf0108_h is replaced with 6 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v10 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 10: The variable hlf0108_h is replaced with 7 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v12 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 11: The variable hlf0108_h is replaced with 7 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v11 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 12: The variable hlf0108_h is replaced with 7 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v14 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v15).
Step 13: The variable hlf0108_h is replaced with 7 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v13 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v14, hlf0108_v15).
Step 14: The variable hlf0108_h is replaced with 8 for the years 1997 to 2013 and 2015 and 2017 if hlf0108_v3 is 1 and !inlist(1, hlf0108_v2, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 15: The variable hlf0108_h is replaced with 8 for the years 1997 to 2013 and 2015 and 2017 to 2021 if hlf0108_v15 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v7, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14).
Step 16: The variable hlf0108_h is replaced with 8 for the years 1997 to 2013 and 2015 and 2017 to 2021 if hlf0108_v7 is 1 and !inlist(1, hlf0108_v2, hlf0108_v3, hlf0108_v4, hlf0108_v5, hlf0108_v6, hlf0108_v8, hlf0108_v9, hlf0108_v10, hlf0108_v11, hlf0108_v12, hlf0108_v13, hlf0108_v14, hlf0108_v15).
Step 17: The variable hlf0108_h is replaced with 9 for the years 1997 to 2013 and 2015 and 2017 and 2018 if (hlf0108_v2 is 1 OR hlf0108_v3 is 1 OR hlf0108_v4 is 1 OR hlf0108_v5 is 1 OR hlf0108_v6 is 1 OR hlf0108_v7 is 1 OR hlf0108_v8 is 1 OR hlf0108_v9 is 1 OR hlf0108_v10 is 1 OR hlf0108_v11 is 1 OR hlf0108_v12 is 1 OR hlf0108_v13 is 1 OR hlf0108_v14 is 1 OR hlf0108_v15 is 1) and the variable hlf0108_h is not within the range of 1 to 8.
Step 18: The variable hlf0108_v16 is recoded (1=1) (2=4) (3=5) (4=7) (6=8) (5=7) for the years 2019 to 2023 and subsequently integrated into the harmonized variable hlf0108_h if.
Step 19: The variable hlf0108_v17 is recoded (1=1) (2=4) (3=5) (4=7) (6=8) (5=7) (7=8) for the years 2022 and 2023 and subsequently integrated into the harmonized variable hlf0108_h.