Extraction of Knowledge Representations for Reasoning from Medical Questionnaires