def monitorDocFromRequestSchema(schema):
    """
    prun and convert
    """
    doc = {}
    doc['_id'] = schema['RequestName']
    doc['workflow'] = schema['RequestName']
    doc['requestor'] = schema['Requestor']
    doc['campaign'] = schema['Campaign']
    doc['request_type'] = schema['RequestType']
    doc['priority'] = schema['RequestPriority']
    doc['group'] = schema['Group']
    doc['request_date'] = schema['RequestDate']
    doc['type'] = 'reqmgr_request'
    doc['inputdataset'] = schema.get('InputDataset', '')
    doc['vo_group'] = schema.get('VoGroup', '')
    doc['vo_role'] = schema.get('VoRole', '')
    doc['user_dn'] = schema.get('RequestorDN', '')
    doc['async_dest'] = schema.get('asyncDest', '')
    doc['dbs_url'] = schema.get('DbsUrl', '')
    doc['publish_dbs_url'] = schema.get('PublishDbsUrl', '')
    doc['outputdatasets'] = schema.get('OutputDatasets', [])
    doc['cmssw'] = schema.get('CMSSWVersion', [])
    doc['prep_id'] = schema.get('PrepID', None)
    return doc
