3
4[b                 @   s   d Z ddlZG dd dZdS )zH
Hereditary pathologies of the individual.

@author: Vertigo BioSystems
    Nc               @   s   e Zd Zdd Zedd Zejdd Zedd Zejdd Zed	d
 Zejdd
 Zedd Z	e	jdd Z	edd Z
e
jdd Z
edd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zd d! Zd"S )#HereditaryPathologiesc             C   s:   d | _ d | _d | _d | _d | _d | _d | _d | _d | _d S )N)	hypercholesterolemiaparents_diagnosed_hypertensionthyroidobesitydiabetesparental_diabetescardiovascular	alzheimerrehumatoid_arthritis)self r   `/var/www/vitahealth/hygea.vitahealth/riskmap/src/vbs_riskmap/healthinfo/HereditaryPathologies.py__init__   s    zHereditaryPathologies.__init__c             C   s   | j S )z
False/True),_HereditaryPathologies__hypercholesterolemia)r   r   r   r   r      s    z*HereditaryPathologies.hypercholesterolemiac             C   s
   || _ dS )z
False/TrueN)r   )r   r   r   r   r   r      s    c             C   s   | j S )z/Number of parents with hypertension (0, 1 or 2))6_HereditaryPathologies__parents_diagnosed_hypertension)r   r   r   r   r   "   s    z4HereditaryPathologies.parents_diagnosed_hypertensionc             C   s*   |dk	r |dks|dkr || _ nd| _ dS )z/Number of parents with hypertension (0, 1 or 2)Nr      )r   )r   r   r   r   r   r   '   s
    c             C   s   | j S )z
False/True)_HereditaryPathologies__thyroid)r   r   r   r   r   2   s    zHereditaryPathologies.thyroidc             C   s
   || _ dS )z
False/TrueN)r   )r   r   r   r   r   r   7   s    c             C   s   | j S )z
False/True)_HereditaryPathologies__obesity)r   r   r   r   r   <   s    zHereditaryPathologies.obesityc             C   s
   || _ dS )z
False/TrueN)r   )r   r   r   r   r   r   A   s    c             C   s   | j S )z
False/True) _HereditaryPathologies__diabetes)r   r   r   r   r   F   s    zHereditaryPathologies.diabetesc             C   s
   || _ dS )z
False/TrueN)r   )r   r   r   r   r   r   K   s    c             C   s   | j S )zParental history of diabetes))_HereditaryPathologies__parental_diabetes)r   r   r   r   r   P   s    z'HereditaryPathologies.parental_diabetesc             C   s
   || _ d S )N)r   )r   r   r   r   r   r   U   s    c             C   s   | j S )z
False/True)r   )r   r   r   r   r   Y   s    c             C   s
   || _ dS )z
False/TrueN)r   )r   r   r   r   r   r   ^   s    c             C   s   | j S )z
False/True)&_HereditaryPathologies__cardiovascular)r   r   r   r   r	   c   s    z$HereditaryPathologies.cardiovascularc             C   s
   || _ dS )z
False/TrueN)r   )r   r	   r   r   r   r	   h   s    c             C   s   | j S )z
False/True)!_HereditaryPathologies__alzheimer)r   r   r   r   r
   m   s    zHereditaryPathologies.alzheimerc             C   s
   || _ dS )z
False/TrueN)r   )r   r
   r   r   r   r
   r   s    c             C   s   | j S )z
False/True),_HereditaryPathologies__rehumatoid_arthritis)r   r   r   r   r   w   s    z*HereditaryPathologies.rehumatoid_arthritisc             C   s
   || _ dS )z
False/TrueN)r   )r   r   r   r   r   r   |   s    c             C   sz   |j d| _|j d| _|j d| _|j d| _|j d| _|j d| _|j d| _|j d| _|j d	| _	t
jd
 dS )z>
        Sets the input parameters in the attributes.
        r   r   r   r   r   r   r	   r
   r   z(HEREDITARY PATHOLOGIES parameters ended.N)getr   r   r   r   r   r   r	   r
   r   logginginfo)r   paramsr   r   r   
set_params   s    z HereditaryPathologies.set_paramsN)__name__
__module____qualname__r   propertyr   setterr   r   r   r   r   r	   r
   r   r   r   r   r   r   r      s,   r   )__doc__r   r   r   r   r   r   <module>   s   