UNPKG

@oystehr/sdk

Version:

Oystehr SDK

35 lines (31 loc) 1.49 kB
'use strict'; var client = require('../../client/client.cjs'); // AUTOGENERATED -- DO NOT EDIT class TransactionalSMS extends client.SDKResource { constructor(config) { super(config); } #baseUrlThunk() { return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1'; } /** * Send an SMS to any phone number. Oystehr's [Transactional SMS](https://docs.oystehr.com/oystehr/services/messaging/transactional-sms/) feature makes it easy to send a text message to your [Users](https://docs.oystehr.com/oystehr/services/app/users/) with a single API call. You can use this feature to send appointment reminders, prescription refill reminders, discharge information, and more. * * Access Policy Requirements: * Action: `Messaging:SendTransactionalSMS` * Access Policy Resource: `Messaging:TransactionalSMS` * Action: `FHIR:Create` * Access Policy Resource: `FHIR:Communication` * Action: `FHIR:Update` * Access Policy Resource: `FHIR:Communication` * * You also need Read access for the resource to which you are sending a message. For example: * Action: `FHIR:Read` * Access Policy Resource: `FHIR:Patient` */ send(params, request) { return this.request('/messaging/transactional-sms/send', 'post', this.#baseUrlThunk.bind(this))(params, request); } } exports.TransactionalSMS = TransactionalSMS; //# sourceMappingURL=transactionalSMS.cjs.map