Property Casualty Data Model
PCDM is a SQLAlchemy implementation of Object Management Group's Property Casualty Data Model. The Property Casualty Data Model is a relational database schema that closely resembles the backend of an insurance company. This package allows you to deploy a SQLite database within seconds for testing, and can be tweaked to support Postgres and other relational database systems.
PCDM contains 256 tables from 13 subject area models (SAMs):
- Party - all persons, organizations, and groups involved in the insurance agreement
- Account and Agreement - customer, insurer, and vendor agreements
- Policy - policy information
- Claim - claim information
- Assessment - information pertaining to assesment (credit scoring, appraisals)
- Agreement Role - roles involved in agreements (providers, producers, suppliers)
- Claim Role - roles involved in claims (claimaints, adjusters)
- Staffing Role - roles involved in staffing (employees and contractors)
- Party Subtype - groupings and subgroupings of parties
- Insurable Object - things that can be insured (vehicles, structures)
- Money - transaction information
- Event - event information
- Product - product information (line of business, limits, coverage)
According to the Object Management Group:
Anyone can download specifications from the OMG website for free, write software implementations that conform to the specifications, and use them, give them away, or sell them. Neither OMG membership nor license is required for this.
This repository requires sqlalchemy, so install it if you don't have it:
pip3 install sqlalchemy
or
pip3 install -r requirements.txt
The file deploy_sqlite contains a script that can be used to deploy a SQLite database:
git clone https://github.com/genedan/PCDM
cd PCDM
python3 deploy_sqlite.py
This package is also available on PyPI:
pip3 install pcdm