{ "cells": [ { "cell_type": "code", "execution_count": 8, "id": "5eea34d8-6b0b-492c-93f3-0b64ee1227b5", "metadata": {}, "outputs": [], "source": [ "import os\n", "import zipfile\n", "import tempfile\n", "import xml.etree.ElementTree as ET\n", "import pandas as pd\n", "from tqdm import tqdm\n", "from HCFA_XML_to_DF import *" ] }, { "cell_type": "code", "execution_count": 9, "id": "264d945a-b788-4067-b126-a441db61fc28", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "167" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import gc\n", "gc.collect()" ] }, { "cell_type": "code", "execution_count": 10, "id": "069d96ca-bdd2-47c4-9cc8-5adc6ea41a1c", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Key_Name
010A_PatConditionEmpN
110A_PatConditionEmpY
210B_PatAAState
\n", "
" ], "text/plain": [ " Key_Name\n", "0 10A_PatConditionEmpN\n", "1 10A_PatConditionEmpY\n", "2 10B_PatAAState" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "Hcfa_key_list = pd.read_excel(\"/Data/XELP_Experiments/Notebooks/HCFA_Keys_list_verification.xlsx\", sheet_name='Field_Names from KEY file')\n", "Hcfa_key_list.head(3)" ] }, { "cell_type": "code", "execution_count": null, "id": "30211bac-0657-4b05-9276-71911ca5bf47", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": 11, "id": "44c0655c-47fc-4142-9ccf-62a882a87ad9", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "3" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "key_list = Hcfa_key_list['Key_Name'].unique()\n", "key_list = ['31_RenDateSigned','11B_PriInsEmpName','24J_RenProvFullName']\n", "len(key_list)" ] }, { "cell_type": "code", "execution_count": 12, "id": "975660a7-b65c-4d88-a9b7-084b8705d38b", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "34971\n" ] } ], "source": [ "keys_dir = \"/Data/XELP_Experiments/Training_Data/HCFA_KEY_TR_TIF/KEY\"\n", "key_files_list = os.listdir(keys_dir)\n", "print(len(key_files_list))" ] }, { "cell_type": "code", "execution_count": 13, "id": "08db9fe5-31be-4844-80ab-065080486d75", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "931" ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "gc.collect()" ] }, { "cell_type": "code", "execution_count": 14, "id": "3c02f8c9-b822-4b32-9c4e-992c6d637478", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "100%|█████████████████████████████████████| 34971/34971 [30:53<00:00, 18.87it/s]\n" ] } ], "source": [ "data = pd.DataFrame()\n", "i = 0\n", "for each_key_file in tqdm(key_files_list):\n", " each_key_path = os.path.join(keys_dir, each_key_file)\n", " #print(each_key_path)\n", " df, im_names = OCR_XML_to_DataFrame(each_key_path, key_list)\n", " #print(df.shape)\n", "\n", " i += 1\n", " df[\"Key_file_name\"] = each_key_file\n", " #print(im_names)\n", " df[\"img_details\"] = [im_names] * len(df)\n", " data = pd.concat([data, df], ignore_index=True)\n", "\n", " if i%200 == 0:\n", " gc.collect()\n" ] }, { "cell_type": "code", "execution_count": 15, "id": "0f45c370-8699-4e4c-ae85-59ed61444594", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
DataTRANS_ValueGroup_nameImage_widthImage_heightField_Namex1x2y1y2PageOCR_OMNIOCR_IGEAROCR_ATOCR_OptimizerKey_file_nameimg_detailsComments
0NoneNone11B_PriInsEmpName1715223711B_PriInsEmpName106617267528201NoneNoneNoneNoneBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]NaN
1NoneNone24J_RenProvFullName1715223724J_RenProvFullName12421267149015091NoneNoneNoneNoneBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]NaN
2NoneNone24J_RenProvFullName1715223724J_RenProvFullName12451270155515751NoneNoneNoneNoneBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]NaN
3NoneNone24J_RenProvFullName1715223724J_RenProvFullName12411266162116401NoneNoneNoneNoneBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]NaN
4NoneNone24J_RenProvFullName1715223724J_RenProvFullName12441269168617051NoneNoneNoneNoneBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]NaN
.........................................................
140936NoneNone24J_RenProvFullName1719223724J_RenProvFullName12471272155515721NaNNaNNaNNaNBSC7T6W5O011_000_HCFA.KEY[BSC7T6W5O011_001.tiff]NaN
14093707242024NoneBox31Group1719223731_RenDateSigned31645920332054107242024072420240724202407242024BSC7T6W5O011_000_HCFA.KEY[BSC7T6W5O011_001.tiff]NaN
140938NoneNone11B_PriInsEmpName1761223511B_PriInsEmpName110417647448121NoneNoneNoneNoneBSC86449O026_000_HCFA.KEY[BSC86449O026_001.tiff]NaN
140939NoneNone24J_RenProvFullName1761223524J_RenProvFullName13241349149315091NaNNaNNaNNaNBSC86449O026_000_HCFA.KEY[BSC86449O026_001.tiff]NaN
14094007272024NoneBox31Group1761223531_RenDateSigned3064402027205010727202407272024?07272024BSC86449O026_000_HCFA.KEY[BSC86449O026_001.tiff]NaN
\n", "

140941 rows × 18 columns

\n", "
" ], "text/plain": [ " Data TRANS_Value Group_name Image_width Image_height \\\n", "0 None None 11B_PriInsEmpName 1715 2237 \n", "1 None None 24J_RenProvFullName 1715 2237 \n", "2 None None 24J_RenProvFullName 1715 2237 \n", "3 None None 24J_RenProvFullName 1715 2237 \n", "4 None None 24J_RenProvFullName 1715 2237 \n", "... ... ... ... ... ... \n", "140936 None None 24J_RenProvFullName 1719 2237 \n", "140937 07242024 None Box31Group 1719 2237 \n", "140938 None None 11B_PriInsEmpName 1761 2235 \n", "140939 None None 24J_RenProvFullName 1761 2235 \n", "140940 07272024 None Box31Group 1761 2235 \n", "\n", " Field_Name x1 x2 y1 y2 Page OCR_OMNI OCR_IGEAR \\\n", "0 11B_PriInsEmpName 1066 1726 752 820 1 None None \n", "1 24J_RenProvFullName 1242 1267 1490 1509 1 None None \n", "2 24J_RenProvFullName 1245 1270 1555 1575 1 None None \n", "3 24J_RenProvFullName 1241 1266 1621 1640 1 None None \n", "4 24J_RenProvFullName 1244 1269 1686 1705 1 None None \n", "... ... ... ... ... ... ... ... ... \n", "140936 24J_RenProvFullName 1247 1272 1555 1572 1 NaN NaN \n", "140937 31_RenDateSigned 316 459 2033 2054 1 07242024 07242024 \n", "140938 11B_PriInsEmpName 1104 1764 744 812 1 None None \n", "140939 24J_RenProvFullName 1324 1349 1493 1509 1 NaN NaN \n", "140940 31_RenDateSigned 306 440 2027 2050 1 07272024 07272024 \n", "\n", " OCR_AT OCR_Optimizer Key_file_name \\\n", "0 None None BSC85480O042_000_HCFA.KEY \n", "1 None None BSC85480O042_000_HCFA.KEY \n", "2 None None BSC85480O042_000_HCFA.KEY \n", "3 None None BSC85480O042_000_HCFA.KEY \n", "4 None None BSC85480O042_000_HCFA.KEY \n", "... ... ... ... \n", "140936 NaN NaN BSC7T6W5O011_000_HCFA.KEY \n", "140937 07242024 07242024 BSC7T6W5O011_000_HCFA.KEY \n", "140938 None None BSC86449O026_000_HCFA.KEY \n", "140939 NaN NaN BSC86449O026_000_HCFA.KEY \n", "140940 ? 07272024 BSC86449O026_000_HCFA.KEY \n", "\n", " img_details Comments \n", "0 [BSC85480O042_001.tiff] NaN \n", "1 [BSC85480O042_001.tiff] NaN \n", "2 [BSC85480O042_001.tiff] NaN \n", "3 [BSC85480O042_001.tiff] NaN \n", "4 [BSC85480O042_001.tiff] NaN \n", "... ... ... \n", "140936 [BSC7T6W5O011_001.tiff] NaN \n", "140937 [BSC7T6W5O011_001.tiff] NaN \n", "140938 [BSC86449O026_001.tiff] NaN \n", "140939 [BSC86449O026_001.tiff] NaN \n", "140940 [BSC86449O026_001.tiff] NaN \n", "\n", "[140941 rows x 18 columns]" ] }, "execution_count": 15, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data" ] }, { "cell_type": "code", "execution_count": 16, "id": "e2bcbaee-e907-41bd-9313-84ce5b2975be", "metadata": {}, "outputs": [], "source": [ "data.to_parquet(\"/Data/XELP_Experiments/Training_Data/HCFA/EDA_Analysis/HCFA_keyfiles_extended_metadata_2.parquet\", index=False)" ] }, { "cell_type": "code", "execution_count": 10, "id": "7a53f87b-3fb3-4dcf-9d64-627bc377d108", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(5993836, 18)" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data.shape" ] }, { "cell_type": "code", "execution_count": 11, "id": "f67df4ba-ba89-4f71-8aa6-40fd10137fa3", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
DataTRANS_ValueGroup_nameImage_widthImage_heightField_Namex1x2y1y2PageOCR_OMNIOCR_IGEAROCR_ATOCR_OptimizerCommentsKey_file_nameimg_details
0PBO905474129None1A_PriInsIDNumber171522371A_PriInsIDNumber107112653013221P5O905474129PB0905474129PBO905474129P??905474129nanBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
1MORALES RICARDONone2_PatFullName171522372_PatFullName773693673891MORALES RICARDOMORALES RICARDOMORALES RICARDOMORALES RICARDOnanBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
208201958None3_PatDOB171522373_PatDOB681831367388108201958082019580820195808201958nanBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
321971 DOLORES STREETNonePatGroup171522375_PatAddr175414433454121971 DOLORES STREET21971 DOLORES STREET21971 DOLORES STREET21971 DOLORES STREETnanBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
4CASTRO VALLEYNonePatGroup171522375_PatCity753034985201CASTRO VALLEYCASTRO VALLEYCASTRO VALLEYCASTRO VALLEYnanBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
\n", "
" ], "text/plain": [ " Data TRANS_Value Group_name Image_width \\\n", "0 PBO905474129 None 1A_PriInsIDNumber 1715 \n", "1 MORALES RICARDO None 2_PatFullName 1715 \n", "2 08201958 None 3_PatDOB 1715 \n", "3 21971 DOLORES STREET None PatGroup 1715 \n", "4 CASTRO VALLEY None PatGroup 1715 \n", "\n", " Image_height Field_Name x1 x2 y1 y2 Page \\\n", "0 2237 1A_PriInsIDNumber 1071 1265 301 322 1 \n", "1 2237 2_PatFullName 77 369 367 389 1 \n", "2 2237 3_PatDOB 681 831 367 388 1 \n", "3 2237 5_PatAddr1 75 414 433 454 1 \n", "4 2237 5_PatCity 75 303 498 520 1 \n", "\n", " OCR_OMNI OCR_IGEAR OCR_AT \\\n", "0 P5O905474129 PB0905474129 PBO905474129 \n", "1 MORALES RICARDO MORALES RICARDO MORALES RICARDO \n", "2 08201958 08201958 08201958 \n", "3 21971 DOLORES STREET 21971 DOLORES STREET 21971 DOLORES STREET \n", "4 CASTRO VALLEY CASTRO VALLEY CASTRO VALLEY \n", "\n", " OCR_Optimizer Comments Key_file_name \\\n", "0 P??905474129 nan BSC85480O042_000_HCFA.KEY \n", "1 MORALES RICARDO nan BSC85480O042_000_HCFA.KEY \n", "2 08201958 nan BSC85480O042_000_HCFA.KEY \n", "3 21971 DOLORES STREET nan BSC85480O042_000_HCFA.KEY \n", "4 CASTRO VALLEY nan BSC85480O042_000_HCFA.KEY \n", "\n", " img_details \n", "0 [BSC85480O042_001.tiff] \n", "1 [BSC85480O042_001.tiff] \n", "2 [BSC85480O042_001.tiff] \n", "3 [BSC85480O042_001.tiff] \n", "4 [BSC85480O042_001.tiff] " ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data.head()" ] }, { "cell_type": "code", "execution_count": 12, "id": "984c28f5-ef47-4b13-9d9d-9f5552b23fe4", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "154" ] }, "execution_count": 12, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data['Field_Name'].nunique()" ] }, { "cell_type": "code", "execution_count": 13, "id": "238734c3-beb0-489d-9e5f-633c75697022", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "Index(['Data', 'TRANS_Value', 'Group_name', 'Image_width', 'Image_height',\n", " 'Field_Name', 'x1', 'x2', 'y1', 'y2', 'Page', 'OCR_OMNI', 'OCR_IGEAR',\n", " 'OCR_AT', 'OCR_Optimizer', 'Comments', 'Key_file_name', 'img_details'],\n", " dtype='object')" ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data.columns" ] }, { "cell_type": "code", "execution_count": 15, "id": "2fac8d35-c03d-4558-b385-169fb75eccac", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "34913" ] }, "execution_count": 15, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data['Key_file_name'].nunique()" ] }, { "cell_type": "code", "execution_count": 21, "id": "0a6b9b43-6db3-4896-bd6e-81f6470e84ed", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "array(['BSC85480O042_000_HCFA.KEY', 'BSC7T4NPO019_000_HCFA.KEY',\n", " 'BSC85580O044_000_HCFA.KEY', 'BSC8845MO040_000_HCFA.KEY',\n", " 'BSC884A9O013_000_HCFA.KEY', 'BSC7T6XQO001_000_HCFA.KEY',\n", " 'BSC81477O020_000_HCFA.KEY', 'BSC7U4O9O044_000_HCFA.KEY',\n", " 'PHP7O432O017_000_HCFA.KEY', 'BSC7T4EIO007_000_HCFA.KEY'],\n", " dtype=object)" ] }, "execution_count": 21, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data['Key_file_name'].unique()[:10]" ] }, { "cell_type": "code", "execution_count": 22, "id": "cb976f76-382b-4deb-8811-442e54d5c1b0", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
DataTRANS_ValueGroup_nameImage_widthImage_heightField_Namex1x2y1y2PageOCR_OMNIOCR_IGEAROCR_ATOCR_OptimizerCommentsKey_file_nameimg_details
0PBO905474129None1A_PriInsIDNumber171522371A_PriInsIDNumber107112653013221P5O905474129PB0905474129PBO905474129P??905474129nanBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
1MORALES RICARDONone2_PatFullName171522372_PatFullName773693673891MORALES RICARDOMORALES RICARDOMORALES RICARDOMORALES RICARDOnanBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
208201958None3_PatDOB171522373_PatDOB681831367388108201958082019580820195808201958nanBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
321971 DOLORES STREETNonePatGroup171522375_PatAddr175414433454121971 DOLORES STREET21971 DOLORES STREET21971 DOLORES STREET21971 DOLORES STREETnanBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
4CASTRO VALLEYNonePatGroup171522375_PatCity753034985201CASTRO VALLEYCASTRO VALLEYCASTRO VALLEYCASTRO VALLEYnanBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
.........................................................
245NoneNone20_OSLabN1715223720_OSLabN11641261123412891NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
246NoneNone25_BillProvSSN1715223725_BillProvSSN406425187919151NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
247XNone25_BillProvEIN1715223725_BillProvEIN426443188919091XXXXNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
248XNone27_AcceptAssignmentY1715223727_AcceptAssignmentY812829189119111XXXXNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
249NoneNone27_AcceptAssignmentN1715223727_AcceptAssignmentN863973187919151NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
\n", "

250 rows × 18 columns

\n", "
" ], "text/plain": [ " Data TRANS_Value Group_name Image_width \\\n", "0 PBO905474129 None 1A_PriInsIDNumber 1715 \n", "1 MORALES RICARDO None 2_PatFullName 1715 \n", "2 08201958 None 3_PatDOB 1715 \n", "3 21971 DOLORES STREET None PatGroup 1715 \n", "4 CASTRO VALLEY None PatGroup 1715 \n", ".. ... ... ... ... \n", "245 None None 20_OSLabN 1715 \n", "246 None None 25_BillProvSSN 1715 \n", "247 X None 25_BillProvEIN 1715 \n", "248 X None 27_AcceptAssignmentY 1715 \n", "249 None None 27_AcceptAssignmentN 1715 \n", "\n", " Image_height Field_Name x1 x2 y1 y2 Page \\\n", "0 2237 1A_PriInsIDNumber 1071 1265 301 322 1 \n", "1 2237 2_PatFullName 77 369 367 389 1 \n", "2 2237 3_PatDOB 681 831 367 388 1 \n", "3 2237 5_PatAddr1 75 414 433 454 1 \n", "4 2237 5_PatCity 75 303 498 520 1 \n", ".. ... ... ... ... ... ... ... \n", "245 2237 20_OSLabN 1164 1261 1234 1289 1 \n", "246 2237 25_BillProvSSN 406 425 1879 1915 1 \n", "247 2237 25_BillProvEIN 426 443 1889 1909 1 \n", "248 2237 27_AcceptAssignmentY 812 829 1891 1911 1 \n", "249 2237 27_AcceptAssignmentN 863 973 1879 1915 1 \n", "\n", " OCR_OMNI OCR_IGEAR OCR_AT \\\n", "0 P5O905474129 PB0905474129 PBO905474129 \n", "1 MORALES RICARDO MORALES RICARDO MORALES RICARDO \n", "2 08201958 08201958 08201958 \n", "3 21971 DOLORES STREET 21971 DOLORES STREET 21971 DOLORES STREET \n", "4 CASTRO VALLEY CASTRO VALLEY CASTRO VALLEY \n", ".. ... ... ... \n", "245 NaN NaN NaN \n", "246 None None None \n", "247 X X X \n", "248 X X X \n", "249 None None None \n", "\n", " OCR_Optimizer Comments Key_file_name \\\n", "0 P??905474129 nan BSC85480O042_000_HCFA.KEY \n", "1 MORALES RICARDO nan BSC85480O042_000_HCFA.KEY \n", "2 08201958 nan BSC85480O042_000_HCFA.KEY \n", "3 21971 DOLORES STREET nan BSC85480O042_000_HCFA.KEY \n", "4 CASTRO VALLEY nan BSC85480O042_000_HCFA.KEY \n", ".. ... ... ... \n", "245 NaN NaN BSC85480O042_000_HCFA.KEY \n", "246 None NaN BSC85480O042_000_HCFA.KEY \n", "247 X NaN BSC85480O042_000_HCFA.KEY \n", "248 X NaN BSC85480O042_000_HCFA.KEY \n", "249 None NaN BSC85480O042_000_HCFA.KEY \n", "\n", " img_details \n", "0 [BSC85480O042_001.tiff] \n", "1 [BSC85480O042_001.tiff] \n", "2 [BSC85480O042_001.tiff] \n", "3 [BSC85480O042_001.tiff] \n", "4 [BSC85480O042_001.tiff] \n", ".. ... \n", "245 [BSC85480O042_001.tiff] \n", "246 [BSC85480O042_001.tiff] \n", "247 [BSC85480O042_001.tiff] \n", "248 [BSC85480O042_001.tiff] \n", "249 [BSC85480O042_001.tiff] \n", "\n", "[250 rows x 18 columns]" ] }, "execution_count": 22, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data[data['Key_file_name'] == 'BSC85480O042_000_HCFA.KEY']" ] }, { "cell_type": "code", "execution_count": 36, "id": "bcae3552-894a-4a79-a2d1-d3c14834b0eb", "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
DataTRANS_ValueGroup_nameImage_widthImage_heightField_Namex1x2y1y2PageOCR_OMNIOCR_IGEAROCR_ATOCR_OptimizerCommentsKey_file_nameimg_details
14MORALES RICARDONone9_SecInsFullName171522379_SecInsFullName753686316531MORALES RICARDOMORALES RICARDOMORALES RICARDOMORALES RICARDOnanBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
264NoneNone9_SecInsFullName175922399_SecInsFullName526426226901NoneNoneNoneNonenanBSC7T4NPO019_000_HCFA.KEY[BSC7T4NPO019_001.tiff]
414NoneNone9_SecInsFullName173322459_SecInsFullName606506006681NoneNoneNoneNonenanBSC85580O044_000_HCFA.KEY[BSC85580O044_001.tiff]
674NoneNone9_SecInsFullName176522379_SecInsFullName636535966641NoneNoneNoneNonenanBSC8845MO040_000_HCFA.KEY[BSC8845MO040_001.tiff]
822NoneNone9_SecInsFullName176722399_SecInsFullName966866226901NoneNoneNoneNonenanBSC884A9O013_000_HCFA.KEY[BSC884A9O013_001.tiff]
.........................................................
5993056NoneNone9_SecInsFullName173922439_SecInsFullName906805966641NoneNoneNoneNonenanPHP864ETO011_000_HCFA.KEY[PHP864ETO011_001.tiff]
5993224NoneNone9_SecInsFullName173122469_SecInsFullName306206006681NoneNoneNoneNonenanPHP724B4O049_000_HCFA.KEY[PHP724B4O049_001.tiff]
5993372SAMENone9_SecInsFullName176722379_SecInsFullName631446336531SAMESAIVIESAMESAMENaNBSC8744KO026_000_HCFA.KEY[BSC8744KO026_001.tiff]
5993534NoneNone9_SecInsFullName171922379_SecInsFullName726626086761NoneNoneNoneNonenanBSC7T6W5O011_000_HCFA.KEY[BSC7T6W5O011_001.tiff]
5993702NoneNone9_SecInsFullName176122359_SecInsFullName576476066741NoneNoneNoneNoneNaNBSC86449O026_000_HCFA.KEY[BSC86449O026_001.tiff]
\n", "

34913 rows × 18 columns

\n", "
" ], "text/plain": [ " Data TRANS_Value Group_name Image_width \\\n", "14 MORALES RICARDO None 9_SecInsFullName 1715 \n", "264 None None 9_SecInsFullName 1759 \n", "414 None None 9_SecInsFullName 1733 \n", "674 None None 9_SecInsFullName 1765 \n", "822 None None 9_SecInsFullName 1767 \n", "... ... ... ... ... \n", "5993056 None None 9_SecInsFullName 1739 \n", "5993224 None None 9_SecInsFullName 1731 \n", "5993372 SAME None 9_SecInsFullName 1767 \n", "5993534 None None 9_SecInsFullName 1719 \n", "5993702 None None 9_SecInsFullName 1761 \n", "\n", " Image_height Field_Name x1 x2 y1 y2 Page \\\n", "14 2237 9_SecInsFullName 75 368 631 653 1 \n", "264 2239 9_SecInsFullName 52 642 622 690 1 \n", "414 2245 9_SecInsFullName 60 650 600 668 1 \n", "674 2237 9_SecInsFullName 63 653 596 664 1 \n", "822 2239 9_SecInsFullName 96 686 622 690 1 \n", "... ... ... .. ... ... ... ... \n", "5993056 2243 9_SecInsFullName 90 680 596 664 1 \n", "5993224 2246 9_SecInsFullName 30 620 600 668 1 \n", "5993372 2237 9_SecInsFullName 63 144 633 653 1 \n", "5993534 2237 9_SecInsFullName 72 662 608 676 1 \n", "5993702 2235 9_SecInsFullName 57 647 606 674 1 \n", "\n", " OCR_OMNI OCR_IGEAR OCR_AT OCR_Optimizer \\\n", "14 MORALES RICARDO MORALES RICARDO MORALES RICARDO MORALES RICARDO \n", "264 None None None None \n", "414 None None None None \n", "674 None None None None \n", "822 None None None None \n", "... ... ... ... ... \n", "5993056 None None None None \n", "5993224 None None None None \n", "5993372 SAME SAIVIE SAME SAME \n", "5993534 None None None None \n", "5993702 None None None None \n", "\n", " Comments Key_file_name img_details \n", "14 nan BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "264 nan BSC7T4NPO019_000_HCFA.KEY [BSC7T4NPO019_001.tiff] \n", "414 nan BSC85580O044_000_HCFA.KEY [BSC85580O044_001.tiff] \n", "674 nan BSC8845MO040_000_HCFA.KEY [BSC8845MO040_001.tiff] \n", "822 nan BSC884A9O013_000_HCFA.KEY [BSC884A9O013_001.tiff] \n", "... ... ... ... \n", "5993056 nan PHP864ETO011_000_HCFA.KEY [PHP864ETO011_001.tiff] \n", "5993224 nan PHP724B4O049_000_HCFA.KEY [PHP724B4O049_001.tiff] \n", "5993372 NaN BSC8744KO026_000_HCFA.KEY [BSC8744KO026_001.tiff] \n", "5993534 nan BSC7T6W5O011_000_HCFA.KEY [BSC7T6W5O011_001.tiff] \n", "5993702 NaN BSC86449O026_000_HCFA.KEY [BSC86449O026_001.tiff] \n", "\n", "[34913 rows x 18 columns]" ] }, "execution_count": 36, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data[data['Field_Name'] == '9_SecInsFullName']" ] }, { "cell_type": "code", "execution_count": 44, "id": "a1664bfc-a085-435b-9c64-fa3259adf7e1", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
DataTRANS_ValueGroup_nameImage_widthImage_heightField_Namex1x2y1y2PageOCR_OMNIOCR_IGEAROCR_ATOCR_OptimizerCommentsKey_file_nameimg_details
180NoneNoneBox31Group1715223731_RenProvTaxonomyCode68530192020701NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
181PACIFIC PHYSICAL THERAPYNoneBox32Group1715223732_FacProvOrgName539842194619731PACIFIC PHYSICAL THERAPYPACIFIC PHYSICAL THERAPYPACIFIC PHYSICAL THERAPYPACIFIC PHYSICAL THERAPYNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
182NoneNoneBox32Group1715223732_FacProvFullName5401078192821331NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
1831260 B STREET 250NoneBox32Group1715223732_FacProvAddr15407741982200311260 B STREET 2501260 B STREET 2501260 B STREET 2501260 B STREET 250NaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
184HAYWARDNoneBox32Group1715223732_FacProvCity539637201920451HAYWARDHAYWARD?94225829?????????NaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
185CANoneBox32Group1715223732_FacProvState655676201820391CACA???NaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
18694541NoneBox32Group1715223732_FacProvPostCode6937902018203919454194541?942258298?94??5????NaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
1871942258298NoneBox32Group1715223732_FacProvNPIId54069020562077119422582981942258298?1942258298NaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
188NoneNoneBox32Group1715223732_FacProvOtherIdFull740750205620771NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
189NoneNoneBox32_AmbToGroup1715223732_AmbToFacProvOrgName5401078192821331NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
190NoneNoneBox32_AmbToGroup1715223732_AmbToFacProvFullName5401078192821331NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
191NoneNoneBox32_AmbToGroup1715223732_AmbToFacProvAddr15401078192821331NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
192NoneNoneBox32_AmbToGroup1715223732_AmbToFacProvCity5401078192821331NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
193NoneNoneBox32_AmbToGroup1715223732_AmbToFacProvState5401078192821331NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
194NoneNoneBox32_AmbToGroup1715223732_AmbToFacProvPostCode5401078192821331NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
195NoneNoneBox32_AmbToGroup1715223732_AmbToFacProvPostCodeExt5401078192821331NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
196NoneNoneBox32_AmbToGroup1715223732_AmbToFacProvNPIId5401078192821331NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
197NoneNoneBox32_AmbToGroup1715223732_AmbToFacProvOtherIdFull5401078192821331NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
198RYNZ CORP DBA PACIFIC PTNoneBox33Group1715223733_BillProvOrgName10831443194719681RYNZ CORP DBA PACIFIC PTRYNZ CORP DBA PACIFIC PTRYNZ CORP DBA PACIFIC PTRYNZ CORP DBA PACIFIC PTNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
199NoneNoneBox33Group1715223733_BillProvFullName10831690191821951NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
2006937 VILLAGE PKWY BOX 2160NoneBox33Group1715223733_BillProvAddr1108214411983201016937 VILLAGE PKWY BOX 21606937 VILLAGE PKWY BOX 21606937 VILLAGE PKWY BOX 21606937 VILLAGE PKWY BOX 2160NaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
201DUBLINNoneBox33Group1715223733_BillProvCity10831159201920401DUBLINDUBLINDUBLINDUBLINNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
202CANoneBox33Group1715223733_BillProvState11701207201920401CACACACANaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
203945682405NoneBox33Group1715223733_BillProvPostCode12161360201920401945682405945682405945682405945682405NaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
204NoneNoneBox33Group1715223733_BillProvPhone13911566192319441NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
2051942258298NoneBox33Group1715223733_BillProvNPIId108412352057207811942258298194225829819422582981942258298NaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
206NoneNoneBox33Group1715223733_BillProvOtherIdFull12851295205720781NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
207NoneNoneMediBox33Group1715223733_MediBillProvOrgName10831690191821951NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
208NoneNoneMediBox33Group1715223733_MediBillProvAddr110831690191821951NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
209NoneNoneMediBox33Group1715223733_MediBillProvCity10831690191821951NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
210NoneNoneMediBox33Group1715223733_MediBillProvState10831690191821951NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
211NoneNoneMediBox33Group1715223733_MediBillProvPostCode10831690191821951NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
212NoneNoneMediBox33Group1715223733_MediBillProvPhone10831690191821951NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
213NoneNoneMediBox33Group1715223733_MediBillProvNPIId10831690191821951NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
214NoneNoneMediBox33Group1715223733_MediBillProvOtherIdFull10831690191821951NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
215NoneNone32_MedicaidTaxId1715223732_MedicaidTaxId11714122361NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
216NoneNone33_MedicaidTaxId1715223733_MedicaidTaxId10831690191821951NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
217NoneNone24_MedicaidPaidAmount1715223724_MedicaidPaidAmount11714148818371NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
218XNone3_PatSexM171522373_PatSexM8949113663861XXXXNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
219NoneNone3_PatSexF171522373_PatSexF9139323664241NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
220XNone6_PatRelShipSelf171522376_PatRelShipSelf7147314314511XXXXNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
221NoneNone6_PatRelShipSpouse171522376_PatRelShipSpouse7948734304881NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
222NoneNone6_PatRelShipChild171522376_PatRelShipChild8749534304881NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
223NoneNone6_PatRelShipOther171522376_PatRelShipOther95410334304881NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
224NoneNone8_PatStatusSingle171522378_PatStatusSingle6818005015681NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
225NoneNone8_PatStatusMarried171522378_PatStatusMarried8019205015681NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
226NoneNone8_PatStatusOther171522378_PatStatusOther92110405015681NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
227NoneNone8_PatEmpStatusCode171522378_PatEmpStatusCode6818005746381NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
228NoneNone8_PatStudentStatusCodeFT171522378_PatStudentStatusCodeFT8019205746381NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
229NoneNone8_PatStudentStatusCodePT171522378_PatStudentStatusCodePT92110405746381NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
230NoneNone9B_SecInsSexM171522379B_SecInsSexM3884887528201NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
231NoneNone9B_SecInsSexF171522379B_SecInsSexF4895897528201NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
232NoneNone10A_PatConditionEmpY1715223710A_PatConditionEmpY8238706977581NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
233XNone10A_PatConditionEmpN1715223710A_PatConditionEmpN8808976997201XXXXNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
234NoneNone10B_PatConditionAutoY1715223710B_PatConditionAutoY8248707598221NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
235XNone10B_PatConditionAutoN1715223710B_PatConditionAutoN8808967657851XXXXNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
236NoneNone10C_PatConditionOtherY1715223710C_PatConditionOtherY8228698268891NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
237XNone10C_PatConditionOtherN1715223710C_PatConditionOtherN8798968308511XXXXNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
238XNone11A_PriInsSexM1715223711A_PriInsSexM141614336957161XXXXNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
239NoneNone11A_PriInsSexF1715223711A_PriInsSexF154816986837511NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
\n", "
" ], "text/plain": [ " Data TRANS_Value Group_name \\\n", "180 None None Box31Group \n", "181 PACIFIC PHYSICAL THERAPY None Box32Group \n", "182 None None Box32Group \n", "183 1260 B STREET 250 None Box32Group \n", "184 HAYWARD None Box32Group \n", "185 CA None Box32Group \n", "186 94541 None Box32Group \n", "187 1942258298 None Box32Group \n", "188 None None Box32Group \n", "189 None None Box32_AmbToGroup \n", "190 None None Box32_AmbToGroup \n", "191 None None Box32_AmbToGroup \n", "192 None None Box32_AmbToGroup \n", "193 None None Box32_AmbToGroup \n", "194 None None Box32_AmbToGroup \n", "195 None None Box32_AmbToGroup \n", "196 None None Box32_AmbToGroup \n", "197 None None Box32_AmbToGroup \n", "198 RYNZ CORP DBA PACIFIC PT None Box33Group \n", "199 None None Box33Group \n", "200 6937 VILLAGE PKWY BOX 2160 None Box33Group \n", "201 DUBLIN None Box33Group \n", "202 CA None Box33Group \n", "203 945682405 None Box33Group \n", "204 None None Box33Group \n", "205 1942258298 None Box33Group \n", "206 None None Box33Group \n", "207 None None MediBox33Group \n", "208 None None MediBox33Group \n", "209 None None MediBox33Group \n", "210 None None MediBox33Group \n", "211 None None MediBox33Group \n", "212 None None MediBox33Group \n", "213 None None MediBox33Group \n", "214 None None MediBox33Group \n", "215 None None 32_MedicaidTaxId \n", "216 None None 33_MedicaidTaxId \n", "217 None None 24_MedicaidPaidAmount \n", "218 X None 3_PatSexM \n", "219 None None 3_PatSexF \n", "220 X None 6_PatRelShipSelf \n", "221 None None 6_PatRelShipSpouse \n", "222 None None 6_PatRelShipChild \n", "223 None None 6_PatRelShipOther \n", "224 None None 8_PatStatusSingle \n", "225 None None 8_PatStatusMarried \n", "226 None None 8_PatStatusOther \n", "227 None None 8_PatEmpStatusCode \n", "228 None None 8_PatStudentStatusCodeFT \n", "229 None None 8_PatStudentStatusCodePT \n", "230 None None 9B_SecInsSexM \n", "231 None None 9B_SecInsSexF \n", "232 None None 10A_PatConditionEmpY \n", "233 X None 10A_PatConditionEmpN \n", "234 None None 10B_PatConditionAutoY \n", "235 X None 10B_PatConditionAutoN \n", "236 None None 10C_PatConditionOtherY \n", "237 X None 10C_PatConditionOtherN \n", "238 X None 11A_PriInsSexM \n", "239 None None 11A_PriInsSexF \n", "\n", " Image_width Image_height Field_Name x1 x2 y1 \\\n", "180 1715 2237 31_RenProvTaxonomyCode 68 530 1920 \n", "181 1715 2237 32_FacProvOrgName 539 842 1946 \n", "182 1715 2237 32_FacProvFullName 540 1078 1928 \n", "183 1715 2237 32_FacProvAddr1 540 774 1982 \n", "184 1715 2237 32_FacProvCity 539 637 2019 \n", "185 1715 2237 32_FacProvState 655 676 2018 \n", "186 1715 2237 32_FacProvPostCode 693 790 2018 \n", "187 1715 2237 32_FacProvNPIId 540 690 2056 \n", "188 1715 2237 32_FacProvOtherIdFull 740 750 2056 \n", "189 1715 2237 32_AmbToFacProvOrgName 540 1078 1928 \n", "190 1715 2237 32_AmbToFacProvFullName 540 1078 1928 \n", "191 1715 2237 32_AmbToFacProvAddr1 540 1078 1928 \n", "192 1715 2237 32_AmbToFacProvCity 540 1078 1928 \n", "193 1715 2237 32_AmbToFacProvState 540 1078 1928 \n", "194 1715 2237 32_AmbToFacProvPostCode 540 1078 1928 \n", "195 1715 2237 32_AmbToFacProvPostCodeExt 540 1078 1928 \n", "196 1715 2237 32_AmbToFacProvNPIId 540 1078 1928 \n", "197 1715 2237 32_AmbToFacProvOtherIdFull 540 1078 1928 \n", "198 1715 2237 33_BillProvOrgName 1083 1443 1947 \n", "199 1715 2237 33_BillProvFullName 1083 1690 1918 \n", "200 1715 2237 33_BillProvAddr1 1082 1441 1983 \n", "201 1715 2237 33_BillProvCity 1083 1159 2019 \n", "202 1715 2237 33_BillProvState 1170 1207 2019 \n", "203 1715 2237 33_BillProvPostCode 1216 1360 2019 \n", "204 1715 2237 33_BillProvPhone 1391 1566 1923 \n", "205 1715 2237 33_BillProvNPIId 1084 1235 2057 \n", "206 1715 2237 33_BillProvOtherIdFull 1285 1295 2057 \n", "207 1715 2237 33_MediBillProvOrgName 1083 1690 1918 \n", "208 1715 2237 33_MediBillProvAddr1 1083 1690 1918 \n", "209 1715 2237 33_MediBillProvCity 1083 1690 1918 \n", "210 1715 2237 33_MediBillProvState 1083 1690 1918 \n", "211 1715 2237 33_MediBillProvPostCode 1083 1690 1918 \n", "212 1715 2237 33_MediBillProvPhone 1083 1690 1918 \n", "213 1715 2237 33_MediBillProvNPIId 1083 1690 1918 \n", "214 1715 2237 33_MediBillProvOtherIdFull 1083 1690 1918 \n", "215 1715 2237 32_MedicaidTaxId 1 1714 1 \n", "216 1715 2237 33_MedicaidTaxId 1083 1690 1918 \n", "217 1715 2237 24_MedicaidPaidAmount 1 1714 1488 \n", "218 1715 2237 3_PatSexM 894 911 366 \n", "219 1715 2237 3_PatSexF 913 932 366 \n", "220 1715 2237 6_PatRelShipSelf 714 731 431 \n", "221 1715 2237 6_PatRelShipSpouse 794 873 430 \n", "222 1715 2237 6_PatRelShipChild 874 953 430 \n", "223 1715 2237 6_PatRelShipOther 954 1033 430 \n", "224 1715 2237 8_PatStatusSingle 681 800 501 \n", "225 1715 2237 8_PatStatusMarried 801 920 501 \n", "226 1715 2237 8_PatStatusOther 921 1040 501 \n", "227 1715 2237 8_PatEmpStatusCode 681 800 574 \n", "228 1715 2237 8_PatStudentStatusCodeFT 801 920 574 \n", "229 1715 2237 8_PatStudentStatusCodePT 921 1040 574 \n", "230 1715 2237 9B_SecInsSexM 388 488 752 \n", "231 1715 2237 9B_SecInsSexF 489 589 752 \n", "232 1715 2237 10A_PatConditionEmpY 823 870 697 \n", "233 1715 2237 10A_PatConditionEmpN 880 897 699 \n", "234 1715 2237 10B_PatConditionAutoY 824 870 759 \n", "235 1715 2237 10B_PatConditionAutoN 880 896 765 \n", "236 1715 2237 10C_PatConditionOtherY 822 869 826 \n", "237 1715 2237 10C_PatConditionOtherN 879 896 830 \n", "238 1715 2237 11A_PriInsSexM 1416 1433 695 \n", "239 1715 2237 11A_PriInsSexF 1548 1698 683 \n", "\n", " y2 Page OCR_OMNI OCR_IGEAR \\\n", "180 2070 1 NaN NaN \n", "181 1973 1 PACIFIC PHYSICAL THERAPY PACIFIC PHYSICAL THERAPY \n", "182 2133 1 None None \n", "183 2003 1 1260 B STREET 250 1260 B STREET 250 \n", "184 2045 1 HAYWARD HAYWARD \n", "185 2039 1 CA CA \n", "186 2039 1 94541 94541 \n", "187 2077 1 1942258298 1942258298 \n", "188 2077 1 None None \n", "189 2133 1 None None \n", "190 2133 1 None None \n", "191 2133 1 None None \n", "192 2133 1 None None \n", "193 2133 1 None None \n", "194 2133 1 None None \n", "195 2133 1 NaN NaN \n", "196 2133 1 None None \n", "197 2133 1 None None \n", "198 1968 1 RYNZ CORP DBA PACIFIC PT RYNZ CORP DBA PACIFIC PT \n", "199 2195 1 None None \n", "200 2010 1 6937 VILLAGE PKWY BOX 2160 6937 VILLAGE PKWY BOX 2160 \n", "201 2040 1 DUBLIN DUBLIN \n", "202 2040 1 CA CA \n", "203 2040 1 945682405 945682405 \n", "204 1944 1 NaN NaN \n", "205 2078 1 1942258298 1942258298 \n", "206 2078 1 None None \n", "207 2195 1 NaN NaN \n", "208 2195 1 NaN NaN \n", "209 2195 1 NaN NaN \n", "210 2195 1 NaN NaN \n", "211 2195 1 NaN NaN \n", "212 2195 1 NaN NaN \n", "213 2195 1 NaN NaN \n", "214 2195 1 NaN NaN \n", "215 2236 1 NaN NaN \n", "216 2195 1 None None \n", "217 1837 1 NaN NaN \n", "218 386 1 X X \n", "219 424 1 None None \n", "220 451 1 X X \n", "221 488 1 None None \n", "222 488 1 None None \n", "223 488 1 None None \n", "224 568 1 NaN NaN \n", "225 568 1 NaN NaN \n", "226 568 1 NaN NaN \n", "227 638 1 NaN NaN \n", "228 638 1 NaN NaN \n", "229 638 1 NaN NaN \n", "230 820 1 NaN NaN \n", "231 820 1 NaN NaN \n", "232 758 1 None None \n", "233 720 1 X X \n", "234 822 1 None None \n", "235 785 1 X X \n", "236 889 1 None None \n", "237 851 1 X X \n", "238 716 1 X X \n", "239 751 1 None None \n", "\n", " OCR_AT OCR_Optimizer Comments \\\n", "180 NaN NaN NaN \n", "181 PACIFIC PHYSICAL THERAPY PACIFIC PHYSICAL THERAPY NaN \n", "182 None None NaN \n", "183 1260 B STREET 250 1260 B STREET 250 NaN \n", "184 ?94225829 ????????? NaN \n", "185 ? ?? NaN \n", "186 ?942258298 ?94??5???? NaN \n", "187 ? 1942258298 NaN \n", "188 None None NaN \n", "189 None None NaN \n", "190 None None NaN \n", "191 None None NaN \n", "192 None None NaN \n", "193 None None NaN \n", "194 None None NaN \n", "195 NaN NaN NaN \n", "196 None None NaN \n", "197 None None NaN \n", "198 RYNZ CORP DBA PACIFIC PT RYNZ CORP DBA PACIFIC PT NaN \n", "199 None None NaN \n", "200 6937 VILLAGE PKWY BOX 2160 6937 VILLAGE PKWY BOX 2160 NaN \n", "201 DUBLIN DUBLIN NaN \n", "202 CA CA NaN \n", "203 945682405 945682405 NaN \n", "204 NaN NaN NaN \n", "205 1942258298 1942258298 NaN \n", "206 None None NaN \n", "207 NaN NaN NaN \n", "208 NaN NaN NaN \n", "209 NaN NaN NaN \n", "210 NaN NaN NaN \n", "211 NaN NaN NaN \n", "212 NaN NaN NaN \n", "213 NaN NaN NaN \n", "214 NaN NaN NaN \n", "215 NaN NaN NaN \n", "216 None None NaN \n", "217 NaN NaN NaN \n", "218 X X NaN \n", "219 None None NaN \n", "220 X X NaN \n", "221 None None NaN \n", "222 None None NaN \n", "223 None None NaN \n", "224 NaN NaN NaN \n", "225 NaN NaN NaN \n", "226 NaN NaN NaN \n", "227 NaN NaN NaN \n", "228 NaN NaN NaN \n", "229 NaN NaN NaN \n", "230 NaN NaN NaN \n", "231 NaN NaN NaN \n", "232 None None NaN \n", "233 X X NaN \n", "234 None None NaN \n", "235 X X NaN \n", "236 None None NaN \n", "237 X X NaN \n", "238 X X NaN \n", "239 None None NaN \n", "\n", " Key_file_name img_details \n", "180 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "181 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "182 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "183 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "184 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "185 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "186 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "187 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "188 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "189 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "190 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "191 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "192 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "193 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "194 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "195 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "196 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "197 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "198 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "199 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "200 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "201 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "202 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "203 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "204 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "205 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "206 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "207 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "208 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "209 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "210 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "211 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "212 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "213 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "214 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "215 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "216 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "217 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "218 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "219 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "220 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "221 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "222 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "223 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "224 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "225 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "226 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "227 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "228 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "229 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "230 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "231 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "232 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "233 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "234 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "235 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "236 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "237 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "238 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] \n", "239 BSC85480O042_000_HCFA.KEY [BSC85480O042_001.tiff] " ] }, "execution_count": 44, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data[data['Key_file_name'] =='BSC85480O042_000_HCFA.KEY'][180:240]" ] }, { "cell_type": "code", "execution_count": 27, "id": "cb0369c8-602f-4b44-8a02-5ec18dbdac81", "metadata": {}, "outputs": [], "source": [ "key_list = Hcfa_key_list['Key_Name'].unique()" ] }, { "cell_type": "code", "execution_count": 28, "id": "3e0c2c53-3086-4411-8a89-153a3abdfb9e", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "210" ] }, "execution_count": 28, "metadata": {}, "output_type": "execute_result" } ], "source": [ "len(key_list)" ] }, { "cell_type": "code", "execution_count": 29, "id": "dc8a6a9c-b4dc-44ad-84f4-740dcec52c39", "metadata": {}, "outputs": [], "source": [ "extracted_keys = data['Field_Name'].unique()" ] }, { "cell_type": "code", "execution_count": 31, "id": "8fbe4f29-0632-4726-85b1-cf73af007b0d", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "set()" ] }, "execution_count": 31, "metadata": {}, "output_type": "execute_result" } ], "source": [ "set(data['Field_Name'].unique()) - set(key_list)" ] }, { "cell_type": "code", "execution_count": 32, "id": "ddc46c20-03eb-4a4b-8a45-5579855c1643", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "56" ] }, "execution_count": 32, "metadata": {}, "output_type": "execute_result" } ], "source": [ "len(set(key_list) - set(data['Field_Name'].unique()))" ] }, { "cell_type": "code", "execution_count": 100, "id": "b6254331-417a-476e-97be-d12984ffabc2", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
DataTRANS_ValueGroup_nameImage_widthImage_heightField_Namex1x2y1y2PageOCR_OMNIOCR_IGEAROCR_ATOCR_OptimizerCommentsKey_file_nameimg_details
63NoneNone24_ProcDesc1715223724_ProcDesc15801605149015091NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
64NoneNone24_NDCQualifier1715223724_NDCQualifier711579149015091NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
65NoneNone24_NDC1715223724_NDC711579149015091NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
66NoneNone24_NDCUnitsQual1715223724_NDCUnitsQual711579149015091NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
67NoneNone24_NDCUnits1715223724_NDCUnits711579149015091NoneNoneNoneNoneNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
.........................................................
5993755NoneNone24_HCT1761223524_HCT16231648149315091NoneNoneNoneNoneNaNBSC86449O026_000_HCFA.KEY[BSC86449O026_001.tiff]
5993761NoneNoneBox24AmtGroup1761223524_ClmDiscountAmount571690145118751NoneNoneNoneNoneNaNBSC86449O026_000_HCFA.KEY[BSC86449O026_001.tiff]
5993762NoneNoneBox24AmtGroup1761223524_ClmTaxAmount571690145118751NoneNoneNoneNoneNaNBSC86449O026_000_HCFA.KEY[BSC86449O026_001.tiff]
5993763NoneNoneBox24AmtGroup1761223524_ClmNYSurChargeAmount571690145118751NoneNoneNoneNoneNaNBSC86449O026_000_HCFA.KEY[BSC86449O026_001.tiff]
5993803NoneNone24_MedicaidPaidAmount1761223524_MedicaidPaidAmount11760145915131NoneNoneNoneNoneNaNBSC86449O026_000_HCFA.KEY[BSC86449O026_001.tiff]
\n", "

646367 rows × 18 columns

\n", "
" ], "text/plain": [ " Data TRANS_Value Group_name Image_width Image_height \\\n", "63 None None 24_ProcDesc 1715 2237 \n", "64 None None 24_NDCQualifier 1715 2237 \n", "65 None None 24_NDC 1715 2237 \n", "66 None None 24_NDCUnitsQual 1715 2237 \n", "67 None None 24_NDCUnits 1715 2237 \n", "... ... ... ... ... ... \n", "5993755 None None 24_HCT 1761 2235 \n", "5993761 None None Box24AmtGroup 1761 2235 \n", "5993762 None None Box24AmtGroup 1761 2235 \n", "5993763 None None Box24AmtGroup 1761 2235 \n", "5993803 None None 24_MedicaidPaidAmount 1761 2235 \n", "\n", " Field_Name x1 x2 y1 y2 Page OCR_OMNI \\\n", "63 24_ProcDesc 1580 1605 1490 1509 1 None \n", "64 24_NDCQualifier 71 1579 1490 1509 1 None \n", "65 24_NDC 71 1579 1490 1509 1 None \n", "66 24_NDCUnitsQual 71 1579 1490 1509 1 None \n", "67 24_NDCUnits 71 1579 1490 1509 1 None \n", "... ... ... ... ... ... ... ... \n", "5993755 24_HCT 1623 1648 1493 1509 1 None \n", "5993761 24_ClmDiscountAmount 57 1690 1451 1875 1 None \n", "5993762 24_ClmTaxAmount 57 1690 1451 1875 1 None \n", "5993763 24_ClmNYSurChargeAmount 57 1690 1451 1875 1 None \n", "5993803 24_MedicaidPaidAmount 1 1760 1459 1513 1 None \n", "\n", " OCR_IGEAR OCR_AT OCR_Optimizer Comments Key_file_name \\\n", "63 None None None NaN BSC85480O042_000_HCFA.KEY \n", "64 None None None NaN BSC85480O042_000_HCFA.KEY \n", "65 None None None NaN BSC85480O042_000_HCFA.KEY \n", "66 None None None NaN BSC85480O042_000_HCFA.KEY \n", "67 None None None NaN BSC85480O042_000_HCFA.KEY \n", "... ... ... ... ... ... \n", "5993755 None None None NaN BSC86449O026_000_HCFA.KEY \n", "5993761 None None None NaN BSC86449O026_000_HCFA.KEY \n", "5993762 None None None NaN BSC86449O026_000_HCFA.KEY \n", "5993763 None None None NaN BSC86449O026_000_HCFA.KEY \n", "5993803 None None None NaN BSC86449O026_000_HCFA.KEY \n", "\n", " img_details \n", "63 [BSC85480O042_001.tiff] \n", "64 [BSC85480O042_001.tiff] \n", "65 [BSC85480O042_001.tiff] \n", "66 [BSC85480O042_001.tiff] \n", "67 [BSC85480O042_001.tiff] \n", "... ... \n", "5993755 [BSC86449O026_001.tiff] \n", "5993761 [BSC86449O026_001.tiff] \n", "5993762 [BSC86449O026_001.tiff] \n", "5993763 [BSC86449O026_001.tiff] \n", "5993803 [BSC86449O026_001.tiff] \n", "\n", "[646367 rows x 18 columns]" ] }, "execution_count": 100, "metadata": {}, "output_type": "execute_result" } ], "source": [ "columns = [\n", " \"24_AnesEndTime\",\n", " \"24_AnesMod\",\n", " \"24_AnesStartTime\",\n", " \"24_AnesTotalMin\",\n", " \"24_AnesTotalTime\",\n", " \"24_AnesUnits\",\n", " \"24_ClmDiscountAmount\",\n", " \"24_ClmNYSurChargeAmount\",\n", " \"24_ClmTaxAmount\",\n", " \"24_HCT\",\n", " \"24_MedicaidPaidAmount\",\n", " \"24_NDC\",\n", " \"24_NDCCharges\",\n", " \"24_NDCQualifier\",\n", " \"24_NDCUnits\",\n", " \"24_NDCUnitsQual\",\n", " \"24_ProcDesc\"\n", "]\n", "is_8_present = data[data['Field_Name'].isin(columns)]\n", "is_8_present" ] }, { "cell_type": "code", "execution_count": 101, "id": "e4cca218-07d4-4453-ae54-8cb6528a8b3f", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "Data\n", "ML 1043\n", "1 311\n", "UN 305\n", "ME 232\n", "0000000500 153\n", " ... \n", "177 1\n", "N416714015001 1\n", "05816082052 1\n", "N472266011801 1\n", "N463323016530 1\n", "Name: count, Length: 1588, dtype: int64" ] }, "execution_count": 101, "metadata": {}, "output_type": "execute_result" } ], "source": [ "is_8_present['Data'].value_counts()" ] }, { "cell_type": "code", "execution_count": 93, "id": "c7636863-cb98-4812-bd51-8ec938268e32", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
DataTRANS_ValueGroup_nameImage_widthImage_heightField_Namex1x2y1y2PageOCR_OMNIOCR_IGEAROCR_ATOCR_OptimizerCommentsKey_file_nameimg_details
20724020None21_ICDInd1736223521_ICDInd740950124012801SI10NoneNone????NaNBSC8244TO036_000_HCFA.KEY[BSC8244TO036_001.tiff]
\n", "
" ], "text/plain": [ " Data TRANS_Value Group_name Image_width Image_height Field_Name x1 \\\n", "2072402 0 None 21_ICDInd 1736 2235 21_ICDInd 740 \n", "\n", " x2 y1 y2 Page OCR_OMNI OCR_IGEAR OCR_AT OCR_Optimizer \\\n", "2072402 950 1240 1280 1 SI10 None None ???? \n", "\n", " Comments Key_file_name img_details \n", "2072402 NaN BSC8244TO036_000_HCFA.KEY [BSC8244TO036_001.tiff] " ] }, "execution_count": 93, "metadata": {}, "output_type": "execute_result" } ], "source": [ "is_8_present[is_8_present['OCR_OMNI'] == 'SI10']" ] }, { "cell_type": "code", "execution_count": 61, "id": "18281e18-25f1-4cd9-9402-a7d2ada98776", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
DataTRANS_ValueGroup_nameImage_widthImage_heightField_Namex1x2y1y2PageOCR_OMNIOCR_IGEAROCR_ATOCR_OptimizerCommentsKey_file_nameimg_details
224NoneNone8_PatStatusSingle171522378_PatStatusSingle6818005015681NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
225NoneNone8_PatStatusMarried171522378_PatStatusMarried8019205015681NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
226NoneNone8_PatStatusOther171522378_PatStatusOther92110405015681NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
227NoneNone8_PatEmpStatusCode171522378_PatEmpStatusCode6818005746381NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
228NoneNone8_PatStudentStatusCodeFT171522378_PatStudentStatusCodeFT8019205746381NaNNaNNaNNaNNaNBSC85480O042_000_HCFA.KEY[BSC85480O042_001.tiff]
.........................................................
5993811NoneNone8_PatStatusMarried176122358_PatStatusMarried8119264935601NaNNaNNaNNaNNaNBSC86449O026_000_HCFA.KEY[BSC86449O026_001.tiff]
5993812NoneNone8_PatStatusOther176122358_PatStatusOther92710424935601NaNNaNNaNNaNNaNBSC86449O026_000_HCFA.KEY[BSC86449O026_001.tiff]
5993813NoneNone8_PatEmpStatusCode176122358_PatEmpStatusCode6958105666301NaNNaNNaNNaNNaNBSC86449O026_000_HCFA.KEY[BSC86449O026_001.tiff]
5993814NoneNone8_PatStudentStatusCodeFT176122358_PatStudentStatusCodeFT8119265666301NaNNaNNaNNaNNaNBSC86449O026_000_HCFA.KEY[BSC86449O026_001.tiff]
5993815NoneNone8_PatStudentStatusCodePT176122358_PatStudentStatusCodePT92710425666301NaNNaNNaNNaNNaNBSC86449O026_000_HCFA.KEY[BSC86449O026_001.tiff]
\n", "

209478 rows × 18 columns

\n", "
" ], "text/plain": [ " Data TRANS_Value Group_name Image_width Image_height \\\n", "224 None None 8_PatStatusSingle 1715 2237 \n", "225 None None 8_PatStatusMarried 1715 2237 \n", "226 None None 8_PatStatusOther 1715 2237 \n", "227 None None 8_PatEmpStatusCode 1715 2237 \n", "228 None None 8_PatStudentStatusCodeFT 1715 2237 \n", "... ... ... ... ... ... \n", "5993811 None None 8_PatStatusMarried 1761 2235 \n", "5993812 None None 8_PatStatusOther 1761 2235 \n", "5993813 None None 8_PatEmpStatusCode 1761 2235 \n", "5993814 None None 8_PatStudentStatusCodeFT 1761 2235 \n", "5993815 None None 8_PatStudentStatusCodePT 1761 2235 \n", "\n", " Field_Name x1 x2 y1 y2 Page OCR_OMNI \\\n", "224 8_PatStatusSingle 681 800 501 568 1 NaN \n", "225 8_PatStatusMarried 801 920 501 568 1 NaN \n", "226 8_PatStatusOther 921 1040 501 568 1 NaN \n", "227 8_PatEmpStatusCode 681 800 574 638 1 NaN \n", "228 8_PatStudentStatusCodeFT 801 920 574 638 1 NaN \n", "... ... ... ... ... ... ... ... \n", "5993811 8_PatStatusMarried 811 926 493 560 1 NaN \n", "5993812 8_PatStatusOther 927 1042 493 560 1 NaN \n", "5993813 8_PatEmpStatusCode 695 810 566 630 1 NaN \n", "5993814 8_PatStudentStatusCodeFT 811 926 566 630 1 NaN \n", "5993815 8_PatStudentStatusCodePT 927 1042 566 630 1 NaN \n", "\n", " OCR_IGEAR OCR_AT OCR_Optimizer Comments Key_file_name \\\n", "224 NaN NaN NaN NaN BSC85480O042_000_HCFA.KEY \n", "225 NaN NaN NaN NaN BSC85480O042_000_HCFA.KEY \n", "226 NaN NaN NaN NaN BSC85480O042_000_HCFA.KEY \n", "227 NaN NaN NaN NaN BSC85480O042_000_HCFA.KEY \n", "228 NaN NaN NaN NaN BSC85480O042_000_HCFA.KEY \n", "... ... ... ... ... ... \n", "5993811 NaN NaN NaN NaN BSC86449O026_000_HCFA.KEY \n", "5993812 NaN NaN NaN NaN BSC86449O026_000_HCFA.KEY \n", "5993813 NaN NaN NaN NaN BSC86449O026_000_HCFA.KEY \n", "5993814 NaN NaN NaN NaN BSC86449O026_000_HCFA.KEY \n", "5993815 NaN NaN NaN NaN BSC86449O026_000_HCFA.KEY \n", "\n", " img_details \n", "224 [BSC85480O042_001.tiff] \n", "225 [BSC85480O042_001.tiff] \n", "226 [BSC85480O042_001.tiff] \n", "227 [BSC85480O042_001.tiff] \n", "228 [BSC85480O042_001.tiff] \n", "... ... \n", "5993811 [BSC86449O026_001.tiff] \n", "5993812 [BSC86449O026_001.tiff] \n", "5993813 [BSC86449O026_001.tiff] \n", "5993814 [BSC86449O026_001.tiff] \n", "5993815 [BSC86449O026_001.tiff] \n", "\n", "[209478 rows x 18 columns]" ] }, "execution_count": 61, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data.loc[is_8_present.index]" ] }, { "cell_type": "code", "execution_count": 73, "id": "a357437d-e95e-4498-9c0b-d8fcda604414", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "nan" ] }, "execution_count": 73, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import numpy as np\n", "\n", "is_8_present[is_8_present[\"OCR_Optimizer\"] != np.nan]" ] }, { "cell_type": "code", "execution_count": 79, "id": "8afabca1-2f63-4f24-bcf2-89dea9c9c538", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "Series([], Name: count, dtype: int64)" ] }, "execution_count": 79, "metadata": {}, "output_type": "execute_result" } ], "source": [ "is_8_present['OCR_OMNI'].value_counts()" ] }, { "cell_type": "code", "execution_count": 74, "id": "2b814fc3-b41f-4652-9391-d43dd813b75e", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "nan" ] }, "execution_count": 74, "metadata": {}, "output_type": "execute_result" } ], "source": [ "np.nan" ] }, { "cell_type": "code", "execution_count": 35, "id": "d46bbad6-f742-4923-91ba-0b83b078c02d", "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/plain": [ "array(['MissApp', 'Box19B_Provider', 'Box19B_NPI', 'Box19A_QQ',\n", " 'Box19A_Provider', 'Box19A_NPI', '9_SecInsSuffix',\n", " '9_SecInsPrefix', '9_SecInsMI', '9_SecInsLName',\n", " '9_SecInsFullName', '9_SecInsFName', '9D_SecInsPlanName',\n", " '9B_SecInsSexM', '9B_SecInsSexF', '9B_SecInsDOB',\n", " '9A_SecInsPolGrpNumber', '8_PatStudentStatusCodePT',\n", " '8_PatStudentStatusCodeFT', '8_PatStudent', '8_PatStatusSingle',\n", " '8_PatStatusOther', '8_PatStatusMarried', '8_PatStatus',\n", " '8_PatEmpStatusCode', '7_PriInsState', '7_PriInsPostCode',\n", " '7_PriInsPhoneNumber', '7_PriInsCity', '7_PriInsAddr1',\n", " '6_PatRelShipSpouse', '6_PatRelShipSelf', '6_PatRelShipOther',\n", " '6_PatRelShipChild', '5_PatState', '5_PatPostCode',\n", " '5_PatPhoneNumber', '5_PatCity', '5_PatAddr1', '4_PriInsFullName',\n", " '3_PatDOB', '3_PatSexM', '3_PatSexF', '30_BalanceDue',\n", " '33_BillProvState', '33_BillProvPostCode', '33_BillProvPhone',\n", " '33_BillProvOtherIdFull', '33_BillProvOrgName', '33_BillProvNPIId',\n", " '33_MediBillProvSuffix', '33_MediBillProvState',\n", " '33_MediBillProvPrefix', '33_MediBillProvPostCodeExt',\n", " '33_MediBillProvPostCode5', '33_MediBillProvPostCode',\n", " '33_MediBillProvPhone', '33_MediBillProvOtherIdFull',\n", " '33_MediBillProvOtherId', '33_MediBillProvOrgName',\n", " '33_MediBillProvNPIId', '33_MediBillProvMI',\n", " '33_MediBillProvLName', '33_MediBillProvFullPost',\n", " '33_MediBillProvFName', '33_MediBillProvCredential',\n", " '33_MediBillProvCity', '33_MediBillProvAddr2',\n", " '33_MediBillProvAddr1', '33_MedicaidTaxId', '33_BillProvFullName',\n", " '33_BillProvCity', '33_BillProvAddr1', '32_AmbToFacProvSuffix',\n", " '32_AmbToFacProvState', '32_FacProvSuffix', '32_FacProvState',\n", " '32_FacProvPrefix', '32_FacProvPostCode', '32_FacProvOtherIdFull',\n", " '32_FacProvOtherId', '32_FacProvNPIId', '32_FacProvMI',\n", " '32_FacProvLName', '32_FacProvFName', '32_FacProvCredential',\n", " '32_FacProvCity', '32_FacProvAddr1', '32_FacProvOrgName',\n", " '32_AmbToFacProvPrefix', '32_AmbToFacProvPostCodeExt',\n", " '32_AmbToFacProvPostCode5', '32_AmbToFacProvPostCode',\n", " '32_AmbToFacProvOtherIdFull', '32_AmbToFacProvOtherId',\n", " '32_AmbToFacProvOrgName', '32_AmbToFacProvNPIId',\n", " '32_MedicaidTaxId', '32_AmbToFacProvMI', '32_AmbToFacProvLName',\n", " '32_AmbToFacProvFullPost', '32_AmbToFacProvFName',\n", " '32_AmbToFacProvCredential', '32_AmbToFacProvCity',\n", " '32_AmbToFacProvAddr2', '32_AmbToFacProvAddr1',\n", " '31_RenProvOrgName', '31_PrnRenProvFullName',\n", " '31_RenProvTaxonomyCode', '2_PatFullName', '29_AmountPaid',\n", " '28_TotalCharges', '27_AcceptAssignmentY', '27_AcceptAssignmentN',\n", " '26_PatAcctNo', '25_BillProvSSN', '25_BillProvEIN',\n", " '25_BillProvFedIdCode', '24_ClmTaxAmount', '24_ProcDesc',\n", " '24_NDCUnitsQual', '24_NDCUnits', '24_NDC',\n", " '24_MedicaidPaidAmount', '24_HCT', '24_ClmNYSurChargeAmount',\n", " '24_ClmDiscountAmount', '24J_RenProvOtherId', '24J_RenProvNPIId',\n", " '24H_EPSDT1', '24H_EPSDT', '24G_Units', '24F_LineCharges',\n", " '24E_DiagPtr', '24D_ProcCode', '24D_Modifier', '24C_EMG',\n", " '24B_POS', '24A_ToDate', '24A_FromDate', '23_PriorAuthNum',\n", " '22_MedicaidRefNum', '22_MedicaidCode', '21_ICDInd',\n", " '1A_PriInsIDNumber', '19_LocalUse', '19B_ProvSuffix',\n", " '19B_ProvFullNameQual', '19B_ProvPrefix', '19B_ProvMI',\n", " '19B_ProvLName', '19B_ProvFName', '19B_ProvCredential',\n", " '19A_ProvSuffix', '19A_ProvFullNameQual', '19A_ProvPrefix',\n", " '19A_ProvMI', '19A_ProvLName', '19A_ProvFName',\n", " '19A_ProvCredential', '17_RefProvOrgName', '17_RefProvFullName',\n", " '17B_RefProvNPI', '17A_RefProvOtherIdQual', '17A_RefProvOtherId',\n", " '15_PatFirstDateOfIllQual', '14_PatCurrentDateQual',\n", " '14_PatCurrentDate', '13_PriSignonFileList', '12_PatSignonFile',\n", " '11_PriInsPolGrpNumber', '11D_PriInsOtherPlanY',\n", " '11D_PriInsOtherPlanN', '11C_PriInsPlanName',\n", " '11B_OtherClaimIdCodeQual', '11B_OtherClaimIdCode',\n", " '11A_PriInsDOB', '10D_ClaimCodes', '10C_PatConditionOtherY',\n", " '10C_PatConditionOtherN', '10B_PatConditionAutoY',\n", " '10B_PatConditionAutoN', '10A_PatConditionEmpY',\n", " '10A_PatConditionEmpN', '21_DiagCode', '21_DiagDescription',\n", " '10B_PatAAState', '11A_PriInsSexF', '11A_PriInsSexM',\n", " '15_PatFirstDateOfIll', '16_PatUTWFromDate', '16_PatUTWToDate',\n", " '17_RefProvFullNameQual', '18_PatHospFromDate', '18_PatHospToDate',\n", " '19_LocalUsePrefix', '20_OSLabCharges', '20_OSLabN', '20_OSLabY',\n", " '24_AnesEndTime', '24_AnesMod', '24_AnesStartTime',\n", " '24_AnesTotalMin', '24_AnesTotalTime', '24_AnesUnits',\n", " '24_NDCCharges', '24_NDCQualifier', '24J_RenProvOtherIdQual',\n", " '32_AmbToFacProvFullName', '32_FacProvFullName'], dtype=object)" ] }, "execution_count": 35, "metadata": {}, "output_type": "execute_result" } ], "source": [ "key_list" ] }, { "cell_type": "code", "execution_count": 45, "id": "21a0a6f7-9d43-4eb6-ae23-75fc8485b6bc", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "array(['1A_PriInsIDNumber', '2_PatFullName', '3_PatDOB', '5_PatAddr1',\n", " '5_PatCity', '5_PatState', '5_PatPostCode', '5_PatPhoneNumber',\n", " '4_PriInsFullName', '7_PriInsAddr1', '7_PriInsCity',\n", " '7_PriInsState', '7_PriInsPostCode', '7_PriInsPhoneNumber',\n", " '9_SecInsFullName', '9A_SecInsPolGrpNumber', '9B_SecInsDOB',\n", " '9D_SecInsPlanName', '10B_PatAAState', '10D_ClaimCodes',\n", " '11_PriInsPolGrpNumber', '11A_PriInsDOB', '11C_PriInsPlanName',\n", " '11B_OtherClaimIdCodeQual', '11B_OtherClaimIdCode',\n", " '12_PatSignonFile', '13_PriSignonFileList', '14_PatCurrentDate',\n", " '14_PatCurrentDateQual', '15_PatFirstDateOfIll',\n", " '15_PatFirstDateOfIllQual', '16_PatUTWFromDate', '16_PatUTWToDate',\n", " '18_PatHospFromDate', '18_PatHospToDate', '17_RefProvFullNameQual',\n", " '17_RefProvFullName', '17_RefProvOrgName',\n", " '17A_RefProvOtherIdQual', '17A_RefProvOtherId', '17B_RefProvNPI',\n", " '20_OSLabCharges', '21_ICDInd', '21_DiagCode',\n", " '21_DiagDescription', '22_MedicaidCode', '22_MedicaidRefNum',\n", " '23_PriorAuthNum', '24A_FromDate', '24A_ToDate', '24B_POS',\n", " '24C_EMG', '24D_ProcCode', '24D_Modifier', '24E_DiagPtr',\n", " '24F_LineCharges', '24G_Units', '24H_EPSDT',\n", " '24J_RenProvOtherIdQual', '24J_RenProvOtherId', '24J_RenProvNPIId',\n", " '24_ProcDesc', '24_NDCQualifier', '24_NDC', '24_NDCUnitsQual',\n", " '24_NDCUnits', '24_NDCCharges', '24_HCT', '25_BillProvFedIdCode',\n", " '26_PatAcctNo', '28_TotalCharges', '29_AmountPaid',\n", " '30_BalanceDue', '24_ClmDiscountAmount', '24_ClmTaxAmount',\n", " '24_ClmNYSurChargeAmount', '31_PrnRenProvFullName',\n", " '31_RenProvOrgName', '31_RenProvTaxonomyCode', '32_FacProvOrgName',\n", " '32_FacProvFullName', '32_FacProvAddr1', '32_FacProvCity',\n", " '32_FacProvState', '32_FacProvPostCode', '32_FacProvNPIId',\n", " '32_FacProvOtherIdFull', '32_AmbToFacProvOrgName',\n", " '32_AmbToFacProvFullName', '32_AmbToFacProvAddr1',\n", " '32_AmbToFacProvCity', '32_AmbToFacProvState',\n", " '32_AmbToFacProvPostCode', '32_AmbToFacProvPostCodeExt',\n", " '32_AmbToFacProvNPIId', '32_AmbToFacProvOtherIdFull',\n", " '33_BillProvOrgName', '33_BillProvFullName', '33_BillProvAddr1',\n", " '33_BillProvCity', '33_BillProvState', '33_BillProvPostCode',\n", " '33_BillProvPhone', '33_BillProvNPIId', '33_BillProvOtherIdFull',\n", " '33_MediBillProvOrgName', '33_MediBillProvAddr1',\n", " '33_MediBillProvCity', '33_MediBillProvState',\n", " '33_MediBillProvPostCode', '33_MediBillProvPhone',\n", " '33_MediBillProvNPIId', '33_MediBillProvOtherIdFull',\n", " '32_MedicaidTaxId', '33_MedicaidTaxId', '24_MedicaidPaidAmount',\n", " '3_PatSexM', '3_PatSexF', '6_PatRelShipSelf', '6_PatRelShipSpouse',\n", " '6_PatRelShipChild', '6_PatRelShipOther', '8_PatStatusSingle',\n", " '8_PatStatusMarried', '8_PatStatusOther', '8_PatEmpStatusCode',\n", " '8_PatStudentStatusCodeFT', '8_PatStudentStatusCodePT',\n", " '9B_SecInsSexM', '9B_SecInsSexF', '10A_PatConditionEmpY',\n", " '10A_PatConditionEmpN', '10B_PatConditionAutoY',\n", " '10B_PatConditionAutoN', '10C_PatConditionOtherY',\n", " '10C_PatConditionOtherN', '11A_PriInsSexM', '11A_PriInsSexF',\n", " '11D_PriInsOtherPlanY', '11D_PriInsOtherPlanN', '19_LocalUse',\n", " '19_LocalUsePrefix', '20_OSLabY', '20_OSLabN', '25_BillProvSSN',\n", " '25_BillProvEIN', '27_AcceptAssignmentY', '27_AcceptAssignmentN',\n", " '24_AnesStartTime', '24_AnesEndTime', '24_AnesTotalTime',\n", " '24_AnesTotalMin', '24_AnesMod', '24_AnesUnits'], dtype=object)" ] }, "execution_count": 45, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data['Field_Name'].unique()" ] }, { "cell_type": "code", "execution_count": 34, "id": "f9944633-df19-4d84-bf54-670f9cc38841", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'19A_ProvCredential',\n", " '19A_ProvFName',\n", " '19A_ProvFullNameQual',\n", " '19A_ProvLName',\n", " '19A_ProvMI',\n", " '19A_ProvPrefix',\n", " '19A_ProvSuffix',\n", " '19B_ProvCredential',\n", " '19B_ProvFName',\n", " '19B_ProvFullNameQual',\n", " '19B_ProvLName',\n", " '19B_ProvMI',\n", " '19B_ProvPrefix',\n", " '19B_ProvSuffix',\n", " '24H_EPSDT1',\n", " '32_AmbToFacProvAddr2',\n", " '32_AmbToFacProvCredential',\n", " '32_AmbToFacProvFName',\n", " '32_AmbToFacProvFullPost',\n", " '32_AmbToFacProvLName',\n", " '32_AmbToFacProvMI',\n", " '32_AmbToFacProvOtherId',\n", " '32_AmbToFacProvPostCode5',\n", " '32_AmbToFacProvPrefix',\n", " '32_AmbToFacProvSuffix',\n", " '32_FacProvCredential',\n", " '32_FacProvFName',\n", " '32_FacProvLName',\n", " '32_FacProvMI',\n", " '32_FacProvOtherId',\n", " '32_FacProvPrefix',\n", " '32_FacProvSuffix',\n", " '33_MediBillProvAddr2',\n", " '33_MediBillProvCredential',\n", " '33_MediBillProvFName',\n", " '33_MediBillProvFullPost',\n", " '33_MediBillProvLName',\n", " '33_MediBillProvMI',\n", " '33_MediBillProvOtherId',\n", " '33_MediBillProvPostCode5',\n", " '33_MediBillProvPostCodeExt',\n", " '33_MediBillProvPrefix',\n", " '33_MediBillProvSuffix',\n", " '8_PatStatus',\n", " '8_PatStudent',\n", " '9_SecInsFName',\n", " '9_SecInsLName',\n", " '9_SecInsMI',\n", " '9_SecInsPrefix',\n", " '9_SecInsSuffix',\n", " 'Box19A_NPI',\n", " 'Box19A_Provider',\n", " 'Box19A_QQ',\n", " 'Box19B_NPI',\n", " 'Box19B_Provider',\n", " 'MissApp'}" ] }, "execution_count": 34, "metadata": {}, "output_type": "execute_result" } ], "source": [ "set(key_list) - set(data['Field_Name'].unique())" ] }, { "cell_type": "code", "execution_count": 33, "id": "80fbdc77-5d4d-4107-800e-f01f6455b3c4", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "154" ] }, "execution_count": 33, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data['Field_Name'].nunique()" ] }, { "cell_type": "code", "execution_count": null, "id": "80fd2395-6f15-4c38-bc4b-93788cf6bf47", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.7" } }, "nbformat": 4, "nbformat_minor": 5 }