Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | from kerapu import clean_code, LEN_ZORG_INSTELLING_CODE |
||
2 | |||
3 | |||
4 | 1 | class ZorgInstelling: |
|
5 | """ |
||
6 | Klasse voor zorginstellingen. |
||
7 | 1 | """ |
|
8 | |||
9 | # ------------------------------------------------------------------------------------------------------------------ |
||
10 | def __init__(self, zorg_instelling_code: str): |
||
11 | """ |
||
12 | Object constructor. |
||
13 | 1 | ||
14 | :param str zorg_instelling_code: De code van deze zorginstelling. |
||
15 | """ |
||
16 | self.__zorg_instelling_code: str = clean_code(zorg_instelling_code, LEN_ZORG_INSTELLING_CODE) |
||
17 | """ |
||
18 | De code van deze zorginstelling. |
||
19 | 1 | """ |
|
20 | 1 | ||
21 | # ------------------------------------------------------------------------------------------------------------------ |
||
22 | def zorg_instelling_aantal(self, zorg_instelling_code: str) -> int: |
||
23 | """ |
||
24 | Geeft het aantal malen (met inachtneming van weegfactor) dat deze zorginstelling voldoet aan een |
||
25 | zorginstellingcode. |
||
26 | |||
27 | 1 | :param str zorg_instelling_code: De AGB-code van de zorginstelling. |
|
28 | |||
29 | :rtype: int |
||
30 | """ |
||
31 | return 1 if self.__zorg_instelling_code == clean_code(zorg_instelling_code, LEN_ZORG_INSTELLING_CODE) else 0 |
||
32 | |||
34 |