oro-sdk 5.3.1 → 5.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +11 -0
- package/dist/helpers/consult.d.ts +9 -0
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/prescription-refill.d.ts +21 -0
- package/dist/oro-sdk.cjs.development.js +933 -694
- package/dist/oro-sdk.cjs.development.js.map +1 -1
- package/dist/oro-sdk.cjs.production.min.js +1 -1
- package/dist/oro-sdk.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk.esm.js +932 -695
- package/dist/oro-sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +22 -1
- package/src/helpers/consult.ts +29 -0
- package/src/helpers/index.ts +1 -0
- package/src/helpers/patient-registration.ts +1 -24
- package/src/helpers/prescription-refill.ts +176 -0
package/dist/client.d.ts
CHANGED
@@ -99,6 +99,17 @@ export declare class OroClient {
|
|
99
99
|
recoverySecurityQuestions: string[];
|
100
100
|
recoverySecurityAnswers: string[];
|
101
101
|
}, indexSearch?: boolean, onProgress?: (progress: number, descriptionKey: string) => void): Promise<RegisterPatientOutput>;
|
102
|
+
/**
|
103
|
+
* Creates and stores all relevant refill data
|
104
|
+
* - New consultation is created
|
105
|
+
* - Stores refill workflow data in the lockbox
|
106
|
+
* - Updates the consult to new
|
107
|
+
*
|
108
|
+
* @param consult
|
109
|
+
* @param populatedRefillWorkflow
|
110
|
+
* @returns
|
111
|
+
*/
|
112
|
+
createRefill(consult: ConsultRequest, populatedRefillWorkflow: WorkflowData): Promise<void>;
|
102
113
|
/**
|
103
114
|
* Fetches all grants, and consultations that exist in each lockbox
|
104
115
|
* Then updates the index for the current user with the lockbox consult relationship
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Consult, ConsultRequest } from 'oro-sdk-apis';
|
2
|
+
import { OroClient } from '..';
|
3
|
+
/**
|
4
|
+
* Creates a consultation if one has not been created and fails to be retrieved by the payment intent
|
5
|
+
* @param consult
|
6
|
+
* @param oroClient
|
7
|
+
* @returns the consult Uuid
|
8
|
+
*/
|
9
|
+
export declare function getOrCreatePatientConsultationUuid(consult: ConsultRequest, oroClient: OroClient): Promise<Consult>;
|
package/dist/helpers/index.d.ts
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
import { ConsultRequest, PlaceData, WorkflowData } from 'oro-sdk-apis';
|
2
|
+
import { OroClient } from '..';
|
3
|
+
/**
|
4
|
+
* Placeholder while the workflow interpreter for the refill flows is complete
|
5
|
+
*
|
6
|
+
* Creates a fake workflow in which the workflow data will reside
|
7
|
+
*
|
8
|
+
* @param isTreatmentWorking the value from the `is treatment working` question
|
9
|
+
* @param hasSideEffects the value from the `does the treatment have side effects` question
|
10
|
+
* @param deliveryAddress the provided delivery address
|
11
|
+
* @param pharmacy
|
12
|
+
* @returns a workflow
|
13
|
+
*/
|
14
|
+
export declare function getRefillAnswersAsWorkflow(isTreatmentWorking: string, hasSideEffects: string, deliveryAddress?: string, pharmacy?: PlaceData): WorkflowData;
|
15
|
+
/**
|
16
|
+
* Complete refill flow, creates a consult, stores refill data and updates consultation status
|
17
|
+
* @param consultRequest
|
18
|
+
* @param populatedRefillWorkflow the refill workflow data
|
19
|
+
* @param oroClient
|
20
|
+
*/
|
21
|
+
export declare function createRefill(consultRequest: ConsultRequest, populatedRefillWorkflow: WorkflowData, oroClient: OroClient): Promise<void>;
|