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
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rcm_contact-0.1.1.tar.gz.
File metadata
- Download URL: rcm_contact-0.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1aacfbf6e5754f2f6a4738b4284717822be99f8031b5813e0cd39560e8318b8
|
|
| MD5 |
8bc638cdf002acc98973908ba54a8aaf
|
|
| BLAKE2b-256 |
fbfd9bb175a6ae3c276fc76501373eef201dbe4063d8fe49c9c7cfb9793ae90b
|
File details
Details for the file rcm_contact-0.1.1-py3-none-any.whl.
File metadata
- Download URL: rcm_contact-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a215c637082fba407d90a122a0a63b818a0cdd3c679dce4ecfd5cc131de1038
|
|
| MD5 |
38a8e671ed74937dc08642ba58ba4926
|
|
| BLAKE2b-256 |
d80e6e8b6e2559e79e4440aca35db000d10fc77d162dd28fef57fcf06518d366
|