Metadata-Version: 2.4
Name: pac-stats
Version: 0.1.0
Summary: PAC analytics toolkit for primary care data processing and reporting
Author: James Roberts
Project-URL: Homepage, https://github.com/Defiancegames/PAC_Stats
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: pandas>=2.0
Requires-Dist: plotly
Requires-Dist: openpyxl


# pac-stats

PAC analytics toolkit for primary care (PCN) reporting.

## Install

```bash
pip install pac-stats
```


## Usage

```python

from pac_stats import full_process

practice_one = pd.read_html(r"X:\File Path\PAC & MDT Master Search.html") # r"<File Path for practice report from EMIS>"
practice_one = practice_one[0] # get the dataframe from list created by read html
practice_one = practice_one[~practice_one.isnull().all(axis=1)] # remove null rows caused by confidential hidden patients
practice_one['Practice'] = 'Practice Name' # Practice Name or Abbreviation

practice_two = pd.read_html(r"X:\File Path\PAC & MDT Master Search.html") # r"<File Path for practice report from EMIS>"
practice_two = practice_one[0] # get the dataframe from list created by read html
practice_two = practice_one[~practice_one.isnull().all(axis=1)] # remove null rows caused by confidential hidden patients
practice_two['Practice'] = 'Practice Name' # Practice Name or Abbreviation


reports = [practice_one, practice_two]

icb, extended = full_process(
    reports=reports,
    pac_staff=pac_staff,
    export_path=r"C:\exports\output.xlsx"
)

```
