# Path: nacc/uds3/fvp/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):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
# class FormA1(nacc.uds3.FieldBag):
# class FormA2(nacc.uds3.FieldBag):
# class FormA3(nacc.uds3.FieldBag):
# class FormA4D(nacc.uds3.FieldBag):
# class FormA4G(nacc.uds3.FieldBag):
# class FormB1(nacc.uds3.FieldBag):
# class FormB4(nacc.uds3.FieldBag):
# class FormB5(nacc.uds3.FieldBag):
# class FormB6(nacc.uds3.FieldBag):
# class FormB7(nacc.uds3.FieldBag):
# class FormB8(nacc.uds3.FieldBag):
# class FormB9(nacc.uds3.FieldBag):
# class FormC1S(nacc.uds3.FieldBag):
# class FormC2(nacc.uds3.FieldBag):
# class FormCLS(nacc.uds3.FieldBag):
# class FormD1(nacc.uds3.FieldBag):
# class FormD2(nacc.uds3.FieldBag):
# class FormZ1(nacc.uds3.FieldBag):
# class FormZ1X(nacc.uds3.FieldBag):
# 
# Path: nacc/uds3/clsform.py
# def add_cls(record, packet, forms, err=sys.stderr):
# 
# Path: nacc/uds3/packet.py
# class Packet(list):
#     def __init__(self):
#     def __getitem__(self, key):


import sys
from nacc.uds3.fvp import forms as fvp_forms
from nacc.uds3 import clsform
from nacc.uds3 import packet as fvp_packet
    # medication used, which we turn each one into a FormA4D object.
    a4g = fvp_forms.FormA4G()
    a4g.ANYMEDS = record['fu_anymeds']
    packet.append(a4g)

    for i in range(1, 51):
            key = 'fu_drugid_' + str(i)
            if record[key]:
                a4d = fvp_forms.FormA4D()
                a4d.DRUGID = record[key]
                packet.append(a4d)


def add_b1(record, packet):
    b1 = fvp_forms.FormB1()
    b1.HEIGHT    = record['fu_height']
    b1.WEIGHT    = record['fu_weight']
    b1.BPSYS     = record['fu_bpsys']
    b1.BPDIAS    = record['fu_bpdias']
    b1.HRATE     = record['fu_hrate']
    b1.VISION    = record['fu_vision']
    b1.VISCORR   = record['fu_viscorr']
    b1.VISWCORR  = record['fu_viswcorr']
    b1.HEARING   = record['fu_hearing']
    b1.HEARAID   = record['fu_hearaid']
    b1.HEARWAID  = record['fu_hearwaid']
    packet.append(b1)


def add_b4(record, packet):

# Path: nacc/uds3/fvp/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):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self):
# class FormA1(nacc.uds3.FieldBag):
# class FormA2(nacc.uds3.FieldBag):
# class FormA3(nacc.uds3.FieldBag):
# class FormA4D(nacc.uds3.FieldBag):
# class FormA4G(nacc.uds3.FieldBag):
# class FormB1(nacc.uds3.FieldBag):
# class FormB4(nacc.uds3.FieldBag):
# class FormB5(nacc.uds3.FieldBag):
# class FormB6(nacc.uds3.FieldBag):
# class FormB7(nacc.uds3.FieldBag):
# class FormB8(nacc.uds3.FieldBag):
# class FormB9(nacc.uds3.FieldBag):
# class FormC1S(nacc.uds3.FieldBag):
# class FormC2(nacc.uds3.FieldBag):
# class FormCLS(nacc.uds3.FieldBag):
# class FormD1(nacc.uds3.FieldBag):
# class FormD2(nacc.uds3.FieldBag):
# class FormZ1(nacc.uds3.FieldBag):
# class FormZ1X(nacc.uds3.FieldBag):
# 
# Path: nacc/uds3/clsform.py
# def add_cls(record, packet, forms, err=sys.stderr):
# 
# Path: nacc/uds3/packet.py
# class Packet(list):
#     def __init__(self):
#     def __getitem__(self, key):


# Path: nacc/uds3/fvp/builder.py
import sys
from nacc.uds3.fvp import forms as fvp_forms
from nacc.uds3 import clsform
from nacc.uds3 import packet as fvp_packet

    # medication used, which we turn each one into a FormA4D object.
    a4g = fvp_forms.FormA4G()
    a4g.ANYMEDS = record['fu_anymeds']
    packet.append(a4g)

    for i in range(1, 51):
            key = 'fu_drugid_' + str(i)
            if record[key]:
                a4d = fvp_forms.FormA4D()
                a4d.DRUGID = record[key]
                packet.append(a4d)


def add_b1(record, packet):
    b1 = fvp_forms.FormB1()
    b1.HEIGHT    = record['fu_height']
    b1.WEIGHT    = record['fu_weight']
    b1.BPSYS     = record['fu_bpsys']
    b1.BPDIAS    = record['fu_bpdias']
    b1.HRATE     = record['fu_hrate']
    b1.VISION    = record['fu_vision']
    b1.VISCORR   = record['fu_viscorr']
    b1.VISWCORR  = record['fu_viswcorr']
    b1.HEARING   = record['fu_hearing']
    b1.HEARAID   = record['fu_hearaid']
    b1.HEARWAID  = record['fu_hearwaid']
    packet.append(b1)


def add_b4(record, packet):

    b4 = fvp_forms.FormB4()