Skip to main content

RCM Contact Connector for managing contacts and communication channels

Project description

RCM Contact Connector

A reusable Python library for managing non-patient contacts and their communication channels (fax, phone, email, etc.) for RCM workflows.


Features

  • Create and manage contacts (payors, hospitals, labs, etc.)
  • Support multiple communication channels per contact
  • Smart search by:
    • name
    • phone/fax
    • email
  • Automatic normalization of values
  • Retrieve preferred contact method based on purpose and priority

Installation

pip install rcm-contact


Requirements

  • Python 3.8+
  • MySQL database
  • Environment variables:

export RCM_DB_HOST=localhost
export RCM_DB_USER=root
export RCM_DB_PASSWORD=vipin2002
export RCM_DB_NAME=rcm_contact


Usage

from rcm_contact import (
    create_contact,
    add_contact_channel,
    search_contact_channels,
    get_preferred_channel
)

from rcm_contact.models import ContactCreate, ContactChannelCreate

# Create contact
contact_id = create_contact(ContactCreate(
    contact_type=1,
    name="Aetna"
))

# Add channel
add_contact_channel(ContactChannelCreate(
    contact_id=contact_id,
    channel_type=1,
    value_raw="800-555-1111",
    is_primary=True
))

# Search
results = search_contact_channels("Aetna")
print(results)

# Get preferred channel
preferred = get_preferred_channel(contact_id, 1)
print(preferred)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rcm_contact-0.1.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rcm_contact-0.1.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file rcm_contact-0.1.2.tar.gz.

File metadata

  • Download URL: rcm_contact-0.1.2.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for rcm_contact-0.1.2.tar.gz
Algorithm Hash digest
SHA256 37b687c68822bd75298c0f35fbd92e8ecd3f41a2f015a287a9f63895e8511fbc
MD5 31c8938c14675f91e1b359074aaea348
BLAKE2b-256 4cdae1f9868c17f6ebc6641498df5454898f592fa5b9a8b50d13bcdd9ca4ebf5

See more details on using hashes here.

File details

Details for the file rcm_contact-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: rcm_contact-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for rcm_contact-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ce56f403319bd66db97ae8748fd07ef50a2add938e606ac32e2956b954ffc6a9
MD5 c3fe30d65c169c64cf50796aea2e8e3f
BLAKE2b-256 cc5381096159e6c4f46d0e7dcb53d6396357205fec3db371c6c1ee5fd408af9c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page