oro-sdk 5.5.1 → 5.6.1-dev1.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 +15 -7
- package/dist/oro-sdk.cjs.development.js +99 -79
- 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 +99 -79
- package/dist/oro-sdk.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +41 -32
- package/src/helpers/patient-registration.ts +7 -7
- package/src/helpers/prescription-refill.ts +23 -14
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
@@ -140,7 +140,9 @@ export declare class OroClient {
|
|
140
140
|
* @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
|
141
141
|
* @returns the data uuid
|
142
142
|
*/
|
143
|
-
createMessageData(lockboxUuid: Uuid, message: string, consultationId: string, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid
|
143
|
+
createMessageData(lockboxUuid: Uuid, message: string, consultationId: string, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid, options?: {
|
144
|
+
updateMedicalStatus: boolean;
|
145
|
+
}): Promise<DataCreateResponse>;
|
144
146
|
/**
|
145
147
|
* @name createMessageAttachmentData
|
146
148
|
* @description Creates a Base64 encrypted Payload to send and store in the vault from a file
|
@@ -151,7 +153,9 @@ export declare class OroClient {
|
|
151
153
|
* @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
|
152
154
|
* @returns the data uuid
|
153
155
|
*/
|
154
|
-
createMessageAttachmentData(lockboxUuid: Uuid, data: File, consultationId: string, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid
|
156
|
+
createMessageAttachmentData(lockboxUuid: Uuid, data: File, consultationId: string, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid, options?: {
|
157
|
+
updateMedicalStatus: boolean;
|
158
|
+
}): Promise<DataCreateResponse>;
|
155
159
|
/**
|
156
160
|
* @name createAttachmentData
|
157
161
|
* @description Creates a Base64 encrypted Payload to send and store in the vault from a file
|
@@ -165,7 +169,8 @@ export declare class OroClient {
|
|
165
169
|
* @returns the data uuid
|
166
170
|
*/
|
167
171
|
createConsultationAttachmentData(lockboxUuid: Uuid, data: File, consultationId: string, documentType: DocumentType, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid, options?: {
|
168
|
-
withNotification
|
172
|
+
withNotification: boolean;
|
173
|
+
updateMedicalStatus: boolean;
|
169
174
|
}): Promise<DataCreateResponse>;
|
170
175
|
/**
|
171
176
|
* @name createJsonData
|
@@ -182,7 +187,8 @@ export declare class OroClient {
|
|
182
187
|
createJsonData<T extends Metadata>(lockboxUuid: Uuid, data: any, meta?: T, privateMeta?: {
|
183
188
|
[val: string]: any;
|
184
189
|
}, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid, options?: {
|
185
|
-
withNotification
|
190
|
+
withNotification: boolean;
|
191
|
+
updateMedicalStatus: boolean;
|
186
192
|
}): Promise<DataCreateResponse>;
|
187
193
|
/**
|
188
194
|
* Get or upsert a data in lockbox
|
@@ -195,8 +201,9 @@ export declare class OroClient {
|
|
195
201
|
* @returns the data uuid
|
196
202
|
*/
|
197
203
|
getOrInsertJsonData<M extends Metadata>(lockboxUuid: Uuid, data: any, publicMetadata: M, privateMetadata: Metadata, options?: {
|
198
|
-
withNotification
|
199
|
-
forceReplace
|
204
|
+
withNotification: boolean;
|
205
|
+
forceReplace: boolean;
|
206
|
+
updateMedicalStatus: boolean;
|
200
207
|
}): Promise<Uuid>;
|
201
208
|
/**
|
202
209
|
* @name createBytesData
|
@@ -213,7 +220,8 @@ export declare class OroClient {
|
|
213
220
|
createBytesData<T extends Metadata>(lockboxUuid: Uuid, data: Uint8Array, meta: T, privateMeta: {
|
214
221
|
[val: string]: any;
|
215
222
|
}, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid, options?: {
|
216
|
-
withNotification
|
223
|
+
withNotification: boolean;
|
224
|
+
updateMedicalStatus: boolean;
|
217
225
|
}): Promise<DataCreateResponse>;
|
218
226
|
/**
|
219
227
|
* @name getJsonData
|