Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adds surescripts effect types and classes #246

Merged
merged 2 commits into from
Jan 2, 2025

Conversation

jrwils
Copy link
Contributor

@jrwils jrwils commented Dec 11, 2024

https://canvasmedical.atlassian.net/browse/KOALA-2307

This PR adds effect classes for firing Surescripts messages. Sample usages:

from canvas_sdk.effects.surescripts.surescripts_messages import SendSurescriptsEligibilityRequestEffect

eligibility_request_effect = SendSurescriptsEligibilityRequestEffect(
    patient_id="e448d691948a465ca118ee90fd031a3a",
    staff_id="4150cd20de8a470aa570a852859ac87e"
)
return [eligibility_request_effect.apply()]
from canvas_sdk.effects.surescripts.surescripts_messages import SendSurescriptsMedicationHistoryRequestEffect

medication_history_request_effect = SendSurescriptsMedicationHistoryRequestEffect(
    patient_id="e448d691948a465ca118ee90fd031a3a",
    staff_id="4150cd20de8a470aa570a852859ac87e"
)
return [medication_history_request_effect.apply()]
from canvas_sdk.effects.surescripts.surescripts_messages import SendSurescriptsBenefitsRequestEffect        

benefits_request = SendSurescriptsBenefitsRequestEffect(
    patient_id="e448d691948a465ca118ee90fd031a3a",
    staff_id="4150cd20de8a470aa570a852859ac87e",
    medication_description="Lisinopril 10 mg tablet",
    medication_ndc="00006010654",
    plan="My Plan"
)
return [benefits_request.apply()]

@jrwils jrwils requested a review from a team as a code owner December 11, 2024 01:17
@jrwils jrwils force-pushed the feature/jw-koala-2307-plugins branch from e426d65 to fa446ae Compare December 11, 2024 17:39
@kristenoneill kristenoneill force-pushed the feature/jw-koala-2307-plugins branch from fa446ae to 2718297 Compare December 30, 2024 15:54
@jamagalhaes jamagalhaes force-pushed the feature/jw-koala-2307-plugins branch from 2718297 to dc703c3 Compare January 2, 2025 16:35
@jamagalhaes jamagalhaes merged commit 500f38f into main Jan 2, 2025
5 checks passed
@jamagalhaes jamagalhaes deleted the feature/jw-koala-2307-plugins branch January 2, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants