medicafe 0.250725.6__tar.gz → 0.250725.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediBot/MediBot_UI.py +38 -3
- {medicafe-0.250725.6 → medicafe-0.250725.7}/PKG-INFO +1 -1
- {medicafe-0.250725.6 → medicafe-0.250725.7}/medicafe.egg-info/PKG-INFO +1 -1
- {medicafe-0.250725.6 → medicafe-0.250725.7}/setup.py +1 -1
- {medicafe-0.250725.6 → medicafe-0.250725.7}/LICENSE +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MANIFEST.in +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediBot/MediBot.bat +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediBot/MediBot.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediBot/MediBot_Charges.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediBot/MediBot_Crosswalk_Library.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediBot/MediBot_Post.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediBot/MediBot_Preprocessor.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediBot/MediBot_Preprocessor_lib.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediBot/MediBot_dataformat_library.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediBot/MediBot_docx_decoder.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediBot/PDF_to_CSV_Cleaner.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediBot/__init__.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediBot/update_json.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediBot/update_medicafe.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_837p_cob_library.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_837p_encoder.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_837p_encoder_library.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_837p_utilities.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_API_Generator.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_API_v2.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_API_v3.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_APIs.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_Azure.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_ClaimStatus.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_ConfigLoader.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_DataMgmt.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_Decoder.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_Deductible.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_Deductible_Validator.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_Down.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_Gmail.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_GraphQL.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_Mailer.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_Parser.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_Scan.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_Scheduler.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_UI.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_Up.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/MediLink_batch.bat +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/Soumit_api.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/__init__.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/openssl.cnf +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/test.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/test_cob_library.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/test_validation.py +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/MediLink/webapp.html +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/README.md +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/medicafe.egg-info/SOURCES.txt +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/medicafe.egg-info/dependency_links.txt +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/medicafe.egg-info/not-zip-safe +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/medicafe.egg-info/requires.txt +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/medicafe.egg-info/top_level.txt +0 -0
- {medicafe-0.250725.6 → medicafe-0.250725.7}/setup.cfg +0 -0
|
@@ -27,15 +27,38 @@ def flush_console_input_buffer():
|
|
|
27
27
|
if sys.platform != "win32":
|
|
28
28
|
return # no-op on non-Windows
|
|
29
29
|
|
|
30
|
+
print("DEBUG: Starting flush_console_input_buffer()")
|
|
31
|
+
|
|
32
|
+
# Check what's in the buffer before flushing
|
|
33
|
+
chars_in_buffer = []
|
|
34
|
+
while msvcrt.kbhit():
|
|
35
|
+
ch = msvcrt.getch()
|
|
36
|
+
chars_in_buffer.append(ch)
|
|
37
|
+
|
|
38
|
+
if chars_in_buffer:
|
|
39
|
+
print("DEBUG: Found {} chars in buffer before flush: {}".format(len(chars_in_buffer), chars_in_buffer))
|
|
40
|
+
else:
|
|
41
|
+
print("DEBUG: No chars found in buffer before flush")
|
|
42
|
+
|
|
30
43
|
try:
|
|
31
44
|
kernel32 = ctypes.WinDLL('kernel32', use_last_error=True)
|
|
32
45
|
STD_INPUT_HANDLE = -10
|
|
33
46
|
h_stdin = kernel32.GetStdHandle(STD_INPUT_HANDLE)
|
|
34
|
-
kernel32.FlushConsoleInputBuffer(h_stdin)
|
|
35
|
-
|
|
47
|
+
result = kernel32.FlushConsoleInputBuffer(h_stdin)
|
|
48
|
+
print("DEBUG: FlushConsoleInputBuffer API call result: {}".format(result))
|
|
49
|
+
except Exception as e:
|
|
50
|
+
print("DEBUG: FlushConsoleInputBuffer API failed: {}".format(e))
|
|
36
51
|
# Fallback: drain any leading newlines manually
|
|
52
|
+
fallback_chars = []
|
|
37
53
|
while msvcrt.kbhit():
|
|
38
|
-
msvcrt.getch()
|
|
54
|
+
ch = msvcrt.getch()
|
|
55
|
+
fallback_chars.append(ch)
|
|
56
|
+
if fallback_chars:
|
|
57
|
+
print("DEBUG: Fallback removed {} chars: {}".format(len(fallback_chars), fallback_chars))
|
|
58
|
+
else:
|
|
59
|
+
print("DEBUG: Fallback found no chars to remove")
|
|
60
|
+
|
|
61
|
+
print("DEBUG: flush_console_input_buffer() completed")
|
|
39
62
|
|
|
40
63
|
def discard_leading_blank():
|
|
41
64
|
"""
|
|
@@ -328,11 +351,23 @@ def user_interaction(csv_data, interaction_mode, error_message, reverse_mapping)
|
|
|
328
351
|
sys.stdout.flush()
|
|
329
352
|
time.sleep(0.2) # Increased delay for Windows XP
|
|
330
353
|
|
|
354
|
+
print("DEBUG: About to call input() - waiting for user...")
|
|
331
355
|
# Use input() for more reliable input on Windows XP
|
|
332
356
|
response = input().lower().strip()
|
|
333
357
|
|
|
334
358
|
# Debug: Print what we actually got
|
|
335
359
|
print("DEBUG: Got response: '{}' (length: {})".format(response, len(response)))
|
|
360
|
+
print("DEBUG: Response type: {}, repr: {}".format(type(response), repr(response)))
|
|
361
|
+
|
|
362
|
+
# If we got an empty response, it means there was a stray newline
|
|
363
|
+
# Let's try one more time after clearing the buffer again
|
|
364
|
+
if not response:
|
|
365
|
+
print("Empty response detected - clearing buffer and trying again...")
|
|
366
|
+
print("DEBUG: About to flush buffer again...")
|
|
367
|
+
flush_console_input_buffer()
|
|
368
|
+
print("DEBUG: About to call input() for second attempt...")
|
|
369
|
+
response = input().lower().strip()
|
|
370
|
+
print("DEBUG: Second attempt got: '{}' (length: {})".format(response, len(response)))
|
|
336
371
|
|
|
337
372
|
if response:
|
|
338
373
|
if response in ['yes', 'y']:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|