from .libsProject import *

def post_pars_concept(text):
    conceptId = []
    url = 'https://cs.socmedica.com/api/pars/ParsingConcept'
    param = {'key': '********************',
             'lib': [25],
             'text': text
             }

    nat_json = json.dumps(param)
    headers = {'Content-type': 'application/json'}
    response = requests.post(url, nat_json, headers=headers)
    outs = response.json()

    for out in outs['result']:
        conceptId.append(out['idConcept'])

    return conceptId
