Skip to content

Commit

Permalink
restored the enum type and MedsToCehrBertConversion class check
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaoPang committed Sep 7, 2024
1 parent bc6a9eb commit 9e7b01f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_meds_to_cehrbert_conversion_cls(
meds_to_cehrbert_conversion_type: MedsToCehrBertConversionType,
) -> MedsToCehrBertConversion:
for cls in MedsToCehrBertConversion.__subclasses__():
if meds_to_cehrbert_conversion_type.__name__ == cls.__name__:
if meds_to_cehrbert_conversion_type.name == cls.__name__:
return cls()
raise RuntimeError(f"{meds_to_cehrbert_conversion_type} is not a valid MedsToCehrBertConversionType")

Expand Down

0 comments on commit 9e7b01f

Please sign in to comment.