oro-sdk 3.21.3 → 3.24.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -0
- package/dist/client.d.ts +2 -1
- package/dist/helpers/patient-registration.d.ts +5 -1
- package/dist/oro-sdk.cjs.development.js +1199 -734
- 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 +1199 -734
- package/dist/oro-sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +5 -3
- package/src/helpers/patient-registration.ts +63 -4
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2021 ORO Health Inc.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/dist/client.d.ts
CHANGED
@@ -92,12 +92,13 @@ export declare class OroClient {
|
|
92
92
|
* @param workflow
|
93
93
|
* @param recoveryQA
|
94
94
|
* @param indexSearch create search index for the consultation if true
|
95
|
+
* @param onProgress callback that is called whenever a new step of patient registration is executed. Note: progress ranges from 0 to 1, and descriptionKey is a description of the progress as a key so the app would use it to translate the description
|
95
96
|
* @returns
|
96
97
|
*/
|
97
98
|
registerPatient(patientUuid: Uuid, consult: ConsultRequest, workflow: WorkflowData, recoveryQA?: {
|
98
99
|
recoverySecurityQuestions: string[];
|
99
100
|
recoverySecurityAnswers: string[];
|
100
|
-
}, indexSearch?: boolean): Promise<RegisterPatientOutput>;
|
101
|
+
}, indexSearch?: boolean, onProgress?: (progress: number, descriptionKey: string) => void): Promise<RegisterPatientOutput>;
|
101
102
|
/**
|
102
103
|
* Fetches all grants, and consultations that exist in each lockbox
|
103
104
|
* Then updates the index for the current user with the lockbox consult relationship
|
@@ -19,12 +19,16 @@ import { OroClient, RegisterPatientOutput } from '..';
|
|
19
19
|
* @param masterKey
|
20
20
|
* @param recoveryQA
|
21
21
|
* @param indexSearch create search index for the consultation if true
|
22
|
+
* @param onProgress callback that is called whenever a new step of patient registration is executed. Note: progress ranges from 0 to 1, and descriptionKey is a description of the progress as a key so the app would use it to translate the description
|
22
23
|
* @returns the successful registration
|
23
24
|
*/
|
24
25
|
export declare function registerPatient(patientUuid: Uuid, consultRequest: ConsultRequest, workflow: WorkflowData, oroClient: OroClient, masterKey?: Uuid, recoveryQA?: {
|
25
26
|
recoverySecurityQuestions: string[];
|
26
27
|
recoverySecurityAnswers: string[];
|
27
|
-
}, indexSearch?: boolean
|
28
|
+
}, indexSearch?: boolean, onProgress?: (progress: number, descriptionKey: string, extraInfo?: {
|
29
|
+
storedImagesNum?: number;
|
30
|
+
totalImagesNum?: number;
|
31
|
+
}) => void): Promise<RegisterPatientOutput>;
|
28
32
|
/**
|
29
33
|
* Extracts the workflow MetadataCategory for Personal, ChildPersonal and OtherPersonal
|
30
34
|
* then stores it in the vault
|