oro-sdk 5.3.2 → 5.3.4

Sign up to get free protection for your applications and to get access to all the features.
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>;
@@ -2,3 +2,4 @@ export * from './client';
2
2
  export * from './workflow';
3
3
  export * from './patient-registration';
4
4
  export * from './vault-grants';
5
+ export * from './prescription-refill';
@@ -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>;