pokitdok-4.1.0.2: PokitDok Platform API Client for Haskell

Safe HaskellNone
LanguageHaskell98

PokitDok.Client

Contents

Description

This module contains everything you need to perform PokitDok Platform API calls.

Synopsis

Credentials

keyWithIdSecret :: String -> String -> OAuth2 Source

Generates a new key with the given id and secret.

keyModCallback :: OAuth2 -> Maybe String -> OAuth2 Source

Modifies the given key's callback url with the given Maybe String.

authorizationUrl :: OAuth2 -> String Source

A url where a user can obtain an access token. Throws an error unless keyModCallback is used on the credential first.

isExpired :: OAuth2 -> IO Bool Source

Checks if the given OAuth2's AccessToken is expired.

refresh :: OAuth2 -> IO OAuth2 Source

Takes an OAuth2 and returns an IO OAuth2 with a valid AccessToken.

authenticateCode :: OAuth2 -> String -> IO OAuth2 Source

Authenticate's an OAuth2 given an authorization code.

API Calls

activitiesWithId Source

Arguments

:: OAuth2

Credentials with a valid AccessToken

-> String

Activity identifier.

-> IO String

JSON formatted data.

Call the activities endpoint for a specific activityId. See docs here: https://platform.pokitdok.com/documentation/v4#/#activities

activities Source

Arguments

:: OAuth2 
-> Parameters

_id, name, callback_url, file_url, history, state, transition_path...

-> IO String 

Call the activities endpoint to get a listing of current activities, a query string parameter parent_id may also be used with this API to get information about sub-activities that were initiated from a batch file upload. See docs here: https://platform.pokitdok.com/documentation/v4#/#activities

pricesCash Source

Arguments

:: OAuth2 
-> Parameters

cpt_code, zip_code (wthin with to search)

-> IO String 

Return a list of cash prices for a given procedure code in a given region (by ZIP Code). See docs here: https://platform.pokitdok.com/documentation/v4#/#cashprices

pricesInsurance Source

Arguments

:: OAuth2 
-> Parameters

cpt_code, zip_code

-> IO String 

Return a list of insurance prices for a given procedure code in a given region (by ZIP Code). See docs here: https://platform.pokitdok.com/documentation/v4#/#insuranceprices

claims Source

Arguments

:: OAuth2 
-> String

Dictionary representing JSON post data.

-> IO String 

Create a new claim, via the filing of an EDI 837 Professional Claims, to the designated Payer. See docs here: https://platform.pokitdok.com/documentation/v4#/#claims

claimsStatus :: OAuth2 -> String -> IO String Source

Ascertain the status of the specified claim, via the filing of an EDI 276 Claims Status. See docs here: https://platform.pokitdok.com/documentation/v4#/#claimstatus

eligibility :: OAuth2 -> String -> IO String Source

Determine eligibility via an EDI 270 Request For Eligibility. See docs here: https://platform.pokitdok.com/documentation/v4#/#eligibility

enrollment Source

Arguments

:: OAuth2 
-> String

Post data, JSON.

-> IO String 

File an EDI 834 benefit enrollment. See docs here: https://platform.pokitdok.com/documentation/v4#/#enrollment

providers Source

Arguments

:: OAuth2 
-> Parameters

organization_name, first_name, last_name, specialty, city, state, radius...

-> IO String 

Retrieve providers data matching specified query parameters. See docs here: https://platform.pokitdok.com/documentation/v4#/#providers

providersWithNpi :: OAuth2 -> String -> IO String Source

Retrieve the data for a specified provider. See docs here: https://platform.pokitdok.com/documentation/v4#/#providers

plans Source

Arguments

:: OAuth2 
-> Parameters

trading_partner_id, country, state, plan_id, plan_type, plan_name...

-> IO String 

Retrieve data on plans based on the parameters given. See docs here: https://platform.pokitdok.com/documentation/v4#/#plans

payers :: OAuth2 -> IO String Source

Use the payers API to determine available payer_id values for use with other endpoints. This endpoint will be deprecated in v5. Use Trading Partners instead. See docs here: https://platform.pokitdok.com/documentation/v4#/#payers

tradingPartners :: OAuth2 -> String -> IO String Source

Retrieve a list of trading partners or submit an id to get info for a specific trading partner. Empty string is a valid parameter. See docs here: https://platform.pokitdok.com/documentation/v4#/#tradingpartners

files Source

Arguments

:: OAuth2 
-> String

Trading_partner_id.

-> String

Full filesytem path of file to be submitted.

-> IO String 

Submit an X12 formatted EDI file for batch processing. If the callback url is not nothing in the OAuth2, it will be included.

referrals :: OAuth2 -> String -> IO String Source

Request approval for a referral to another health care provider. See docs here: https://platform.pokitdok.com/documentation/v4#/#referrals

schedulers Source

Arguments

:: OAuth2 
-> String

Empty string valid, retrieve the data for a specified scheduling system.

-> IO String 

Get a list of supported scheduling systems and their UUIDs & descriptions.

appointmentTypes Source

Arguments

:: OAuth2 
-> String

Empty string valid, retrieve the data for a specified appointment type.

-> IO String 

Get a list of appointment types, their UUIDs, and descriptions.

createSlot Source

Arguments

:: OAuth2 
-> String

Available appointment slot details, JSON.

-> IO String 

Create an available appointment slot in the PokitDok scheduler system.

appointmentsWithId Source

Arguments

:: OAuth2 
-> String

The PokitDok unique appointment identifier.

-> IO String 

Query for an open appointment slot or a booked appointment given a specific pd_appointment_uuid, the PokitDok unique appointment identifier. See https://platform.pokitdok.com/documentation

appointments :: OAuth2 -> Parameters -> IO String Source

Query for open appointment slots (using pd_provider_uuid and location) or booked appointments (using patient_uuid2) given query parameters. See https://platform.pokitdok.com/documentation

bookAppointment Source

Arguments

:: OAuth2 
-> String

The PokitDok unique appointment identifier.

-> String

Put data, JSON.

-> IO String 

Book appointment for an open slot. Post data contains patient attributes and description. See https://platform.pokitdok.com/documentation

cancelAppointment :: OAuth2 -> String -> IO String Source

Cancel appointment given its pd_appointment_uuid. See https://platform.pokitdok.com/documentation