oro-sdk 5.13.5 → 5.13.7
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 +33 -23
- 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 +33 -23
- package/dist/oro-sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/helpers/patient-registration.ts +4 -0
- package/src/helpers/prescription-refill.ts +5 -0
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "5.13.
|
2
|
+
"version": "5.13.7",
|
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.13.
|
58
|
+
"oro-sdk-apis": "^5.13.7",
|
59
59
|
"oro-toolbox": "0.0.6",
|
60
60
|
"uuid": "^8.3.2"
|
61
61
|
}
|
@@ -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,
|