Safe Haskell | None |
---|---|
Language | Haskell98 |
This module contains everything you need to perform PokitDok Platform API calls.
- keyWithIdSecret :: String -> String -> OAuth2
- keyModCallback :: OAuth2 -> Maybe String -> OAuth2
- authorizationUrl :: OAuth2 -> String
- isExpired :: OAuth2 -> IO Bool
- refresh :: OAuth2 -> IO OAuth2
- authenticateCode :: OAuth2 -> String -> IO OAuth2
- activitiesWithId :: OAuth2 -> String -> IO String
- activities :: OAuth2 -> Parameters -> IO String
- pricesCash :: OAuth2 -> Parameters -> IO String
- pricesInsurance :: OAuth2 -> Parameters -> IO String
- claims :: OAuth2 -> String -> IO String
- claimsStatus :: OAuth2 -> String -> IO String
- eligibility :: OAuth2 -> String -> IO String
- enrollment :: OAuth2 -> String -> IO String
- providers :: OAuth2 -> Parameters -> IO String
- providersWithNpi :: OAuth2 -> String -> IO String
- plans :: OAuth2 -> Parameters -> IO String
- payers :: OAuth2 -> IO String
- tradingPartners :: OAuth2 -> String -> IO String
- files :: OAuth2 -> String -> String -> IO String
- referrals :: OAuth2 -> String -> IO String
- authorizations :: OAuth2 -> String -> IO String
- schedulers :: OAuth2 -> String -> IO String
- appointmentTypes :: OAuth2 -> String -> IO String
- createSlot :: OAuth2 -> String -> IO String
- appointmentsWithId :: OAuth2 -> String -> IO String
- appointments :: OAuth2 -> Parameters -> IO String
- bookAppointment :: OAuth2 -> String -> String -> IO String
- updateAppointment :: OAuth2 -> String -> String -> IO String
- cancelAppointment :: OAuth2 -> String -> IO String
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.
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
:: OAuth2 | Credentials with a valid |
-> 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
:: 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
:: 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
:: 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
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
File an EDI 834 benefit enrollment. See docs here: https://platform.pokitdok.com/documentation/v4#/#enrollment
:: 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
:: 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
:: 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
authorizations :: OAuth2 -> String -> IO String Source
Submit an authorization request. See docs here: https://platform.pokitdok.com/documentation/v4#/#authorizations
:: 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.
:: 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.
Create an available appointment slot in the PokitDok scheduler system.
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_uuid
2) given query parameters.
See https://platform.pokitdok.com/documentation
Book appointment for an open slot. Post data contains patient attributes and description. See https://platform.pokitdok.com/documentation
updateAppointment :: OAuth2 -> String -> String -> IO String Source
Update appointment 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