@@ -32,10 +32,12 @@ def __init__(self, valid_value_id: Optional[int], description: str):
3232
3333 @property
3434 def valid_value_id (self ) -> Optional [int ]:
35+ """Returns the valid value ID for the reason for diagnosis date."""
3536 return self ._valid_value_id
3637
3738 @property
3839 def description (self ) -> str :
40+ """Returns the description for the reason for diagnosis date."""
3941 return self ._description
4042
4143 @classmethod
@@ -51,25 +53,30 @@ def _build_maps(cls):
5153
5254 @classmethod
5355 def by_description (cls , description : str ) -> Optional ["DiagnosisDateReasonType" ]:
56+ """Returns the DiagnosisDateReasonType matching the given description."""
5457 cls ._build_maps ()
5558 return cls ._descriptions .get (description )
5659
5760 @classmethod
5861 def by_description_case_insensitive (
5962 cls , description : str
6063 ) -> Optional ["DiagnosisDateReasonType" ]:
64+ """Returns the DiagnosisDateReasonType matching the given description. (case-insensitive)"""
6165 cls ._build_maps ()
6266 return cls ._lowercase_descriptions .get (description .lower ())
6367
6468 @classmethod
6569 def by_valid_value_id (
6670 cls , valid_value_id : Optional [int ]
6771 ) -> Optional ["DiagnosisDateReasonType" ]:
72+ """Returns the DiagnosisDateReasonType matching the given valid value ID."""
6873 cls ._build_maps ()
6974 return cls ._valid_value_ids .get (valid_value_id )
7075
7176 def get_valid_value_id (self ) -> Optional [int ]:
77+ """Returns the valid value ID for the reason for diagnosis date reason."""
7278 return self ._valid_value_id
7379
7480 def get_description (self ) -> str :
81+ """Returns the description for the reason for diagnosis date reason."""
7582 return self ._description
0 commit comments