Files
stack/src/aco/table/ed_classification.py
kert 8f99eeb154
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
ci/woodpecker/push/ci Pipeline failed
add comprehensive test suite, CI/CD quality gates, and package publishing
- 5519 unit tests covering all modules (aco, bcda, bls, cms, pfs, rex, bib)
- ruff lint + format enforcement across entire codebase (377 files reformatted)
- pre-commit hook: ruff check, ruff format, pytest
- Woodpecker CI split into ci.yml (quality gate) and deploy.yml (package + images)
- ci.yml: lint → test → validate-compose, runs on every push/PR
- deploy.yml: build + publish Python package to Gitea PyPI registry, then
  container image builds, Trivy scans, and registry push (main branch only)
- Gitea branch protection on main: requires CI status checks to pass
- .gitignore updated for .coverage, dist/, *.egg-info/
- grafana config moved to dev/grafana/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 14:58:48 -05:00

153 lines
4.8 KiB
Python

from __future__ import annotations
from datetime import date
from decimal import Decimal
from aco.table.base import SQLTable
class EdClassificationIntByProviderParentOrganization(SQLTable):
"""Schema: ed_classification / Table: _int_by_provider_parent_organization"""
__schema__ = "ed_classification"
__tablename__ = "_int_by_provider_parent_organization"
encounter_id: str | None = None
encounter_type: str | None = None
person_id: str | None = None
encounter_end_date: date | None = None
facility_id: str | None = None
primary_diagnosis_code_type: str | None = None
primary_diagnosis_code: str | None = None
primary_diagnosis_description: str | None = None
paid_amount: Decimal | None = None
allowed_amount: Decimal | None = None
charge_amount: Decimal | None = None
edcnnpa: str | None = None
edcnpa: str | None = None
epct: str | None = None
noner: str | None = None
injury: str | None = None
psych: str | None = None
alcohol: str | None = None
drug: str | None = None
ed_classification_capture: int | None = None
class EdClassificationIntFilterEncounterWithClassification(SQLTable):
"""Schema: ed_classification / Table: _int_filter_encounter_with_classification"""
__schema__ = "ed_classification"
__tablename__ = "_int_filter_encounter_with_classification"
encounter_id: str | None = None
encounter_type: str | None = None
person_id: str | None = None
encounter_end_date: date | None = None
facility_id: str | None = None
primary_diagnosis_code_type: str | None = None
primary_diagnosis_code: str | None = None
primary_diagnosis_description: str | None = None
paid_amount: Decimal | None = None
allowed_amount: Decimal | None = None
charge_amount: Decimal | None = None
edcnnpa: str | None = None
edcnpa: str | None = None
epct: str | None = None
noner: str | None = None
injury: str | None = None
psych: str | None = None
alcohol: str | None = None
drug: str | None = None
ed_classification_capture: int | None = None
classification: str | None = None
class EdClassificationValueSetCategories(SQLTable):
"""Schema: ed_classification / Table: _value_set_categories"""
__schema__ = "ed_classification"
__tablename__ = "_value_set_categories"
classification: str | None = None
classification_name: str | None = None
classification_order: str | None = None
classification_column: str | None = None
class EdClassificationValueSetIcd10CmToCcs(SQLTable):
"""Schema: ed_classification / Table: _value_set_icd_10_cm_to_ccs"""
__schema__ = "ed_classification"
__tablename__ = "_value_set_icd_10_cm_to_ccs"
icd_10_cm: str | None = None
description: str | None = None
ccs_diagnosis_category: str | None = None
ccs_description: str | None = None
class EdClassificationValueSetJohnstonIcd10(SQLTable):
"""Schema: ed_classification / Table: _value_set_johnston_icd10"""
__schema__ = "ed_classification"
__tablename__ = "_value_set_johnston_icd10"
icd10: str | None = None
edcnnpa: str | None = None
edcnpa: str | None = None
epct: str | None = None
noner: str | None = None
injury: str | None = None
psych: str | None = None
alcohol: str | None = None
drug: str | None = None
class EdClassificationValueSetJohnstonIcd9(SQLTable):
"""Schema: ed_classification / Table: _value_set_johnston_icd9"""
__schema__ = "ed_classification"
__tablename__ = "_value_set_johnston_icd9"
icd9: str | None = None
edcnnpa: str | None = None
edcnpa: str | None = None
epct: str | None = None
noner: str | None = None
injury: str | None = None
psych: str | None = None
alcohol: str | None = None
drug: str | None = None
class EdClassificationSummary(SQLTable):
"""Schema: ed_classification / Table: summary"""
__schema__ = "ed_classification"
__tablename__ = "summary"
encounter_id: str | None = None
ed_classification_description: str | None = None
ed_classification_order: str | None = None
person_id: str | None = None
encounter_end_date: date | None = None
year_month: str | None = None
primary_diagnosis_code: str | None = None
primary_diagnosis_description: str | None = None
paid_amount: Decimal | None = None
allowed_amount: Decimal | None = None
charge_amount: Decimal | None = None
facility_id: str | None = None
facility_name: str | None = None
facility_state: str | None = None
facility_city: str | None = None
facility_zip_code: str | None = None
patient_sex: str | None = None
patient_age: float | None = None
patient_zip_code: str | None = None
patient_latitude: float | None = None
patient_longitude: float | None = None
patient_race: str | None = None
data_source: str | None = None