Skip to content

Commit 2d7e103

Browse files
authored
Merge pull request #16 from shartrooper/standalone-py
tweaked glossary and ph search regex
2 parents 309cda6 + 0271223 commit 2d7e103

File tree

7 files changed

+11
-5
lines changed

7 files changed

+11
-5
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@ Use both PyPDF2 and openpyxl third party modules. Descriptive header in .py file
99
- Read and extract data streams from even corrupted Pdfs.
1010
- Directory route file search, avoid unintentional file overwriting.
1111
- Openpyxl data inserting and format.
12-
- If the column threshold is reached, the app switches into another worksheet or create a new worksheet if there's none without empty available columns, and rename Its title with the reports date range.
12+
- If the column threshold is reached, the app switches into another worksheet or create a new worksheet if there's none without empty available columns, and rename Its title with the reports date range.
13+
14+
15+
16+
**TODO:**
17+
18+
- After loading a workbook from the user input prompt (not from script exec), create a new worksheet if current report's date is well over a month of difference to prior worksheet's dates with available column space.

getDatafromFiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __appendStringToCollection(self):
6868
if intoList:
6969
category = "undefined category"
7070
categoryRegex = re.compile(r"[\wáíúéó\s]+(?=\*)", re.IGNORECASE)
71-
labelAndKeyRegex = re.compile(r"([\w\d\.\s%ñáíúéó\(\)]+)\s*:\s*([\w\d\.\s%ñáíúéó\(\)]+)", re.IGNORECASE)
71+
labelAndKeyRegex = re.compile(r"([+\w\d\.\s%ñáíúéó\(\)]+)\s*:\s*([+\w\d\.\s%ñáíúéó\(\)]+)", re.IGNORECASE)
7272
for i in range(0, len(intoList)):
7373
categ = categoryRegex.search(intoList[i])
7474
if categ:

glossary.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ INR: inr
6161
TTPA: ttpa
6262
Dimero D: Dimero D
6363
GASES EN SANGRE*
64-
pH: gases en sangre ph
64+
pH: gases +en +sangre +ph
6565
PCO2: p co2
6666
PO2: p o2
6767
HCO3: hco3
Binary file not shown.
Binary file not shown.

standalone(non-beta-tweaks)/getDatafromFiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __appendStringToCollection(self):
6868
if intoList:
6969
category = "undefined category"
7070
categoryRegex = re.compile(r"[\wáíúéó\s]+(?=\*)", re.IGNORECASE)
71-
labelAndKeyRegex = re.compile(r"([\w\d\.\s%ñáíúéó\(\)]+)\s*:\s*([\w\d\.\s%ñáíúéó\(\)]+)", re.IGNORECASE)
71+
labelAndKeyRegex = re.compile(r"([+\w\d\.\s%ñáíúéó\(\)]+)\s*:\s*([+\w\d\.\s%ñáíúéó\(\)]+)", re.IGNORECASE)
7272
for i in range(0, len(intoList)):
7373
categ = categoryRegex.search(intoList[i])
7474
if categ:

standalone(non-beta-tweaks)/glossary.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ INR: inr
6161
TTPA: ttpa
6262
Dimero D: Dimero D
6363
GASES EN SANGRE*
64-
pH: gases en sangre ph
64+
pH: gases +en +sangre +ph
6565
PCO2: p co2
6666
PO2: p o2
6767
HCO3: hco3

0 commit comments

Comments
 (0)