From 450c174ee9cbc2b46ea44e1efb995198123cb89e Mon Sep 17 00:00:00 2001 From: Aaron Zavora Date: Fri, 1 Nov 2024 21:16:01 -0400 Subject: [PATCH] Update claim.py --- databricksx12/hls/claim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/databricksx12/hls/claim.py b/databricksx12/hls/claim.py index 79665ed..8898141 100644 --- a/databricksx12/hls/claim.py +++ b/databricksx12/hls/claim.py @@ -172,7 +172,7 @@ def _populate_subscriber_loop(self): def _populate_patient_loop(self) -> Dict[str, str]: # Note - if this doesn't exist then it's the same as subscriber loop # 01 = Spouse; 18 = Self; 19 = Child; G8 = Other - return self._populate_subscriber_loop() if self._first(self.subscriber_loop, "SBR").element(1) == "18" else PatientIdentity( + return self._populate_subscriber_loop() if self._first(self.subscriber_loop, "SBR").element(2) == "18" else PatientIdentity( nm1 = self._first(self.patient_loop, "NM1"), n3 = self._first(self.patient_loop, "N3"), n4 = self._first(self.patient_loop, "N4"),