oro-sdk 5.14.0-dev1.0 → 5.14.0
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/oro-sdk.cjs.development.js +35 -25
- 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 +35 -25
- package/dist/oro-sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/helpers/consult.ts +2 -2
- package/src/helpers/patient-registration.ts +4 -0
- package/src/helpers/prescription-refill.ts +5 -0
- package/LICENSE +0 -21
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "5.14.0
|
2
|
+
"version": "5.14.0",
|
3
3
|
"main": "dist/index.js",
|
4
4
|
"typings": "dist/index.d.ts",
|
5
5
|
"files": [
|
@@ -55,7 +55,7 @@
|
|
55
55
|
"form-data": "^4.0.0",
|
56
56
|
"formdata-node": "^4.3.1",
|
57
57
|
"idb-keyval": "^5.0.6",
|
58
|
-
"oro-sdk-apis": "^5.14.0
|
58
|
+
"oro-sdk-apis": "^5.14.0",
|
59
59
|
"oro-toolbox": "0.0.6",
|
60
60
|
"uuid": "^8.3.2"
|
61
61
|
}
|
package/src/helpers/consult.ts
CHANGED
@@ -17,12 +17,12 @@ export async function getOrCreatePatientConsultationUuid(
|
|
17
17
|
)
|
18
18
|
if (payment && payment.uuidConsult) {
|
19
19
|
return oroClient.consultClient.getConsultByUUID(payment.uuidConsult).catch((err) => {
|
20
|
-
console.error('Error while retrieving consult', err)
|
20
|
+
console.error('Error while retrieving consult from linked payment infos', err)
|
21
21
|
throw err
|
22
22
|
})
|
23
23
|
} else {
|
24
24
|
return await oroClient.consultClient.consultCreate(consult).catch((err) => {
|
25
|
-
console.error('Error while creating consult', err)
|
25
|
+
console.error('Error while creating consult after a payment found with no consult linked', err)
|
26
26
|
throw err
|
27
27
|
})
|
28
28
|
}
|
@@ -246,6 +246,10 @@ export async function registerPatient(
|
|
246
246
|
|
247
247
|
if (errorsThrown.length > 0) throw errorsThrown
|
248
248
|
|
249
|
+
if( consult.statusMedical === MedicalStatus.Assigning ){
|
250
|
+
//hopefully svelte query received all updates
|
251
|
+
console.warn( 'Consult assignation took too much time, moving to new anyway')
|
252
|
+
}
|
249
253
|
// Deem the consultation as ready
|
250
254
|
await oroClient.consultClient.updateConsultByUUID(consult.uuid, {
|
251
255
|
statusMedical: MedicalStatus.New,
|
@@ -212,6 +212,11 @@ export async function createRefill(
|
|
212
212
|
|
213
213
|
if (errorsThrown.length > 0) throw errorsThrown
|
214
214
|
|
215
|
+
if( newConsult.statusMedical === MedicalStatus.Assigning ){
|
216
|
+
//hopefully svelte query received all updates
|
217
|
+
console.warn( 'Consult Refill assignation took too much time, moving to new anyway')
|
218
|
+
}
|
219
|
+
|
215
220
|
// Deem the consultation as ready
|
216
221
|
await oroClient.consultClient.updateConsultByUUID(newConsult.uuid, {
|
217
222
|
statusMedical: MedicalStatus.New,
|
package/LICENSE
DELETED
@@ -1,21 +0,0 @@
|
|
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.
|