Skip to content

Commit f43b475

Browse files
Use constants instead of strings for nch tables
1 parent 036d3e8 commit f43b475

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

apps/bfd-pipeline-idr/model/idr_claim_item_institutional_nch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from pydantic import BeforeValidator
55

66
from constants import (
7+
CLAIM_INSTITUTIONAL_ITEM_NCH_TABLE,
78
DEFAULT_MAX_DATE,
89
IDR_CLAIM_ANSI_SIGNATURE_TABLE,
910
IDR_CLAIM_LINE_INSTITUTIONAL_TABLE,
@@ -228,7 +229,7 @@ class IdrClaimItemInstitutionalNch(IdrBaseModel):
228229
@override
229230
@staticmethod
230231
def table() -> str:
231-
return "idr.claim_item_institutional_nch"
232+
return CLAIM_INSTITUTIONAL_ITEM_NCH_TABLE
232233

233234
@override
234235
@staticmethod

apps/bfd-pipeline-idr/model/idr_claim_item_professional_nch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from pydantic import BeforeValidator
55

66
from constants import (
7+
CLAIM_PROFESSIONAL_ITEM_NCH_TABLE,
78
DEFAULT_MAX_DATE,
89
IDR_CLAIM_LINE_DOCUMENTATION_TABLE,
910
IDR_CLAIM_LINE_PROFESSIONAL_TABLE,
@@ -250,7 +251,7 @@ class IdrClaimItemProfessionalNch(IdrBaseModel):
250251
@override
251252
@staticmethod
252253
def table() -> str:
253-
return "idr.claim_item_professional_nch"
254+
return CLAIM_PROFESSIONAL_ITEM_NCH_TABLE
254255

255256
@override
256257
@staticmethod

0 commit comments

Comments
 (0)