# Path: nacc/ftld/ivp/forms.py
# CURRENT_YEAR = date.today().year
# def header_fields():
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
# class FormZ1X(nacc.uds3.FieldBag):
# class FormA3a(nacc.uds3.FieldBag):
# class FormB3F(nacc.uds3.FieldBag):
# class FormB9F(nacc.uds3.FieldBag):
# class FormC1F(nacc.uds3.FieldBag):
# class FormC2F(nacc.uds3.FieldBag):
# class FormC3F(nacc.uds3.FieldBag):
# class FormC4F(nacc.uds3.FieldBag):
# class FormC5F(nacc.uds3.FieldBag):
# class FormC6F(nacc.uds3.FieldBag):
# class FormE2F(nacc.uds3.FieldBag):
# class FormE3F(nacc.uds3.FieldBag):
# 
# Path: nacc/uds3/packet.py
# class Packet(list):
#     def __init__(self):
#     def __getitem__(self, key):


import sys
from nacc.ftld.ivp import forms as ftld_ivp_forms
from nacc.uds3 import packet as ftld_ivp_packet
    Z1X.LANGE3F  = record['lange3f']
    Z1X.LANGCLS  = record['langcls']
    Z1X.CLSSUB   = record['clssub']
    # for REDCap projects that don't have the LBD questions added to their Z1X,
    # we just see if there's info in the B2L and B6L forms and fill in
    # accordingly.
    try:
        Z1X.B2LSUB  = record['b2lsub']
        Z1X.B2LNOT  = record['b2lnot']
        Z1X.B6LSUB  = record['b6lsub']
        Z1X.B6LNOT  = record['b6lnot']
    except KeyError:
        try:
            if record['lbudspch'] is not None:
                Z1X.B2LSUB = '1'
                Z1X.B2LNOT = ''
            if record['lbspcgim'] is not None:
                Z1X.B2LSUB = '1'
                Z1X.B2LNOT = ''
        # And leave the LBD fields blank if the project does not contain the
        # LBD module
        except KeyError:
            Z1X.B2LSUB = ''
            Z1X.B2LNOT = ''
            Z1X.B6LSUB = ''
            Z1X.B6LNOT = ''
    packet.insert(0, Z1X)


def add_a3a(record, packet):

# Path: nacc/ftld/ivp/forms.py
# CURRENT_YEAR = date.today().year
# def header_fields():
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
# class FormZ1X(nacc.uds3.FieldBag):
# class FormA3a(nacc.uds3.FieldBag):
# class FormB3F(nacc.uds3.FieldBag):
# class FormB9F(nacc.uds3.FieldBag):
# class FormC1F(nacc.uds3.FieldBag):
# class FormC2F(nacc.uds3.FieldBag):
# class FormC3F(nacc.uds3.FieldBag):
# class FormC4F(nacc.uds3.FieldBag):
# class FormC5F(nacc.uds3.FieldBag):
# class FormC6F(nacc.uds3.FieldBag):
# class FormE2F(nacc.uds3.FieldBag):
# class FormE3F(nacc.uds3.FieldBag):
# 
# Path: nacc/uds3/packet.py
# class Packet(list):
#     def __init__(self):
#     def __getitem__(self, key):


# Path: nacc/ftld/ivp/builder.py
import sys
from nacc.ftld.ivp import forms as ftld_ivp_forms
from nacc.uds3 import packet as ftld_ivp_packet

    Z1X.LANGE3F  = record['lange3f']
    Z1X.LANGCLS  = record['langcls']
    Z1X.CLSSUB   = record['clssub']
    # for REDCap projects that don't have the LBD questions added to their Z1X,
    # we just see if there's info in the B2L and B6L forms and fill in
    # accordingly.
    try:
        Z1X.B2LSUB  = record['b2lsub']
        Z1X.B2LNOT  = record['b2lnot']
        Z1X.B6LSUB  = record['b6lsub']
        Z1X.B6LNOT  = record['b6lnot']
    except KeyError:
        try:
            if record['lbudspch'] is not None:
                Z1X.B2LSUB = '1'
                Z1X.B2LNOT = ''
            if record['lbspcgim'] is not None:
                Z1X.B2LSUB = '1'
                Z1X.B2LNOT = ''
        # And leave the LBD fields blank if the project does not contain the
        # LBD module
        except KeyError:
            Z1X.B2LSUB = ''
            Z1X.B2LNOT = ''
            Z1X.B6LSUB = ''
            Z1X.B6LNOT = ''
    packet.insert(0, Z1X)


def add_a3a(record, packet):

    A3a = ftld_ivp_forms.FormA3a()