def collect(conf, conn):
    'Collect ICD-XX-PCS procedures.\n    '
    URL = 'https://www.cms.gov/Medicare/Coding/ICD10/Downloads/2016-PCS-Long-Abbrev-Titles.zip'
    FILE = 'icd10pcs_order_2016.txt'
    VERSION = 'ICD-10-PCS'
    LAST_UPDATED = '2015-10-01'
    zip = requests.get(URL).content
    file = zipfile.ZipFile(io.BytesIO(zip)).open(FILE)
    count = 0
    for line in file:
        data = {'code': line[6:(6 + 7)].strip(), 'is_header': line[14:(14 + 1)].strip(), 'short_description': line[16:(16 + 60)].strip(), 'long_description': line[77:].strip(), 'version': VERSION, 'last_updated': LAST_UPDATED}
        record = Record.create(URL, data)
        record.write(conf, conn)
        count += 1
        if (not (count % 100)):
            logger.info('Collected %s "%s" interventions', count, record.table)
Collect ICD-XX-PCS procedures.
def collect(conf, conn):
    '\n    '
    URL = 'https://www.cms.gov/Medicare/Coding/ICD10/Downloads/2016-PCS-Long-Abbrev-Titles.zip'
    FILE = 'icd10pcs_order_2016.txt'
    VERSION = 'ICD-10-PCS'
    LAST_UPDATED = '2015-10-01'
    zip = requests.get(URL).content
    file = zipfile.ZipFile(io.BytesIO(zip)).open(FILE)
    count = 0
    for line in file:
        data = {'code': line[6:(6 + 7)].strip(), 'is_header': line[14:(14 + 1)].strip(), 'short_description': line[16:(16 + 60)].strip(), 'long_description': line[77:].strip(), 'version': VERSION, 'last_updated': LAST_UPDATED}
        record = Record.create(URL, data)
        record.write(conf, conn)
        count += 1
        if (not (count % 100)):
            logger.info('Collected %s "%s" interventions', count, record.table)