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.5.tar.gz (8.6 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.5-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rcm_contact-0.1.5.tar.gz
  • Upload date:
  • Size: 8.6 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.5.tar.gz
Algorithm Hash digest
SHA256 39e602896d94c0e7ff51c2267bc1c8f4d7c859f6d247cdac2149670d2d1525a1
MD5 d7c273cde7eccf82486ecf6dd3e4b500
BLAKE2b-256 c05ef6e2360e4abe205cb1f7df9c531caaed5249b112d9ff2122cf5c63e04d18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rcm_contact-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e3821a00fae6b442e8873164642721746683ab940422bd6ca86bf8a67764af62
MD5 de7dead997cde8ec780e519bf320dea2
BLAKE2b-256 05e6c48628eb6948a745ead3d153302f6340f6145e43e7d1009c527a776e8a50

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