From ac9119f407695f3af21742393a7613874360e94f Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Tue, 9 Mar 2021 10:36:11 -0600 Subject: [PATCH] enhancement: reference to the index of a container (new vocabulary) --- healthcareio/x12/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/healthcareio/x12/__init__.py b/healthcareio/x12/__init__.py index 4b43492..1040210 100644 --- a/healthcareio/x12/__init__.py +++ b/healthcareio/x12/__init__.py @@ -366,7 +366,7 @@ class Parser (Process): """ key = row[0] return self.cache[key] if key in self.cache else {} - pass + def apply(self,content,_code) : """ :content content of a file i.e a segment with the envelope @@ -487,6 +487,7 @@ class Parser (Process): logs = [] claims = [] try: + self.cache = {} file = open(filename.strip()) file = file.read().split('CLP') _code = '835'