oro-sdk-apis 1.34.0 → 1.34.1-dev1
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/models/consult.d.ts +14 -0
- package/dist/models/practice.d.ts +1 -12
- package/dist/oro-sdk-apis.cjs.development.js +410 -818
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +413 -819
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/consult.d.ts +3 -1
- package/dist/services/teller.d.ts +2 -2
- package/package.json +1 -1
- package/src/models/consult.ts +16 -0
- package/src/models/practice.ts +1 -17
- package/src/services/consult.ts +3 -0
- package/src/services/teller.ts +6 -1
- package/LICENSE +0 -21
@@ -1,5 +1,5 @@
|
|
1
1
|
import { APIService } from './api';
|
2
|
-
import { Uuid, Consult, ConsultRequest, MedicalStatus, ConsultTransmission, TransmissionStatus } from '../models';
|
2
|
+
import { Uuid, Consult, ConsultRequest, MedicalStatus, ConsultTransmission, ClosedReasonType, TransmissionStatus } from '../models';
|
3
3
|
export declare class ConsultService {
|
4
4
|
private api;
|
5
5
|
private baseURL;
|
@@ -43,6 +43,8 @@ export declare class ConsultService {
|
|
43
43
|
getConsultByUUID(uuidConsult: Uuid, uuidPractice?: Uuid): Promise<Consult>;
|
44
44
|
updateConsultByUUID(uuidConsult: Uuid, consult: {
|
45
45
|
statusMedical?: MedicalStatus;
|
46
|
+
closedReasonType?: ClosedReasonType;
|
47
|
+
closedReasonDescription?: string;
|
46
48
|
uuidAssignedDoctor?: Uuid;
|
47
49
|
neverExpires?: boolean;
|
48
50
|
}, uuidPractice?: Uuid, uuidRequester?: Uuid): Promise<Consult>;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { APIService } from './api';
|
2
|
-
import { Consult, DataCreateResponse, LockboxDataRequest, MedicalStatus,
|
2
|
+
import { ClosedReasonType, Consult, DataCreateResponse, LockboxDataRequest, MedicalStatus, ResumeConsultEmailRequest, Uuid } from '../models';
|
3
3
|
export declare class TellerService {
|
4
4
|
private api;
|
5
5
|
private baseURL;
|
6
6
|
constructor(api: APIService, baseURL: string);
|
7
7
|
lockboxDataStore(lockboxUuid: Uuid, req: LockboxDataRequest, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid): Promise<DataCreateResponse>;
|
8
|
-
updateConsultByUUID(patientUuid: Uuid, uuidConsult: Uuid, statusMedical: MedicalStatus, neverExpires?: boolean): Promise<Consult>;
|
8
|
+
updateConsultByUUID(patientUuid: Uuid, uuidConsult: Uuid, statusMedical: MedicalStatus, closedReasonType?: ClosedReasonType, closedReasonDescription?: string, neverExpires?: boolean): Promise<Consult>;
|
9
9
|
/**
|
10
10
|
* This function notifies teller that the fax sent for a specific consult did not get through
|
11
11
|
* @todo - Make service only exposed route
|
package/package.json
CHANGED
package/src/models/consult.ts
CHANGED
@@ -82,6 +82,21 @@ export enum TaskStatus {
|
|
82
82
|
Done = 'Done',
|
83
83
|
}
|
84
84
|
|
85
|
+
export enum ClosedReasonType {
|
86
|
+
Completed = "Completed",
|
87
|
+
NotADisease = "NotADisease",
|
88
|
+
NotAppropriateForVirtual = "NotAppropriateForVirtual",
|
89
|
+
Other = "Other",
|
90
|
+
RequiresInPerson = "RequiresInPerson"
|
91
|
+
}
|
92
|
+
|
93
|
+
export interface ConsultClosedReason {
|
94
|
+
id?: number
|
95
|
+
closedReasonType: ClosedReasonType
|
96
|
+
closedReasonDescription: string
|
97
|
+
createdAt?: string
|
98
|
+
}
|
99
|
+
|
85
100
|
export interface ConsultRequest {
|
86
101
|
uuidPractice: string
|
87
102
|
tagSpecialtyRequired: string
|
@@ -104,6 +119,7 @@ export interface Consult {
|
|
104
119
|
statusTask?: TaskStatus
|
105
120
|
hasTransmissions?: boolean
|
106
121
|
assignedAssistant?: ConsultAssignedAssistant[]
|
122
|
+
closeConsultReason?: any
|
107
123
|
shortId?: string
|
108
124
|
createdAt?: string
|
109
125
|
expiresAt?: string
|
package/src/models/practice.ts
CHANGED
@@ -141,9 +141,8 @@ export enum PracticeConfigKind {
|
|
141
141
|
PracticeFontsLinks = 'PracticeFontsLinks',
|
142
142
|
PracticeLocaleSwitcher = 'PracticeLocaleSwitcher',
|
143
143
|
PracticePharmacyPicker = 'PracticePharmacyPicker',
|
144
|
-
PracticePrescriptionFields = 'PracticePrescriptionFields',
|
145
144
|
PractitionerChatbox = 'PractitionerChatbox',
|
146
|
-
PractitionerConsultList = 'PractitionerConsultList'
|
145
|
+
PractitionerConsultList = 'PractitionerConsultList',
|
147
146
|
}
|
148
147
|
|
149
148
|
/**
|
@@ -318,19 +317,6 @@ export type PracticeConfigPractitionerConsultList = PracticeConfig<
|
|
318
317
|
}
|
319
318
|
>
|
320
319
|
|
321
|
-
/**
|
322
|
-
* This config is used to configure the layout of the modular prescription fields
|
323
|
-
*/
|
324
|
-
export type PracticeConfigPracticePrescriptionFields = PracticeConfig<
|
325
|
-
PracticeConfigKind.PracticePrescriptionFields,
|
326
|
-
{
|
327
|
-
/**
|
328
|
-
* the y position in px of the first modular prescription
|
329
|
-
*/
|
330
|
-
yCoordinate?: number
|
331
|
-
}
|
332
|
-
>
|
333
|
-
|
334
320
|
export type PracticeConfigs =
|
335
321
|
| PracticeConfigPractitionerConsultList
|
336
322
|
| PracticeConfigPractitionerChatbox
|
@@ -339,7 +325,6 @@ export type PracticeConfigs =
|
|
339
325
|
| PracticeConfigPracticeOnlinePharmacy
|
340
326
|
| PracticeConfigPracticeCssVariables
|
341
327
|
| PracticeConfigPracticeFontsLinks
|
342
|
-
| PracticeConfigPracticePrescriptionFields
|
343
328
|
| PracticeConfigPracticeConfigExample // Here for integration tests only
|
344
329
|
|
345
330
|
export interface PracticeWorkflow {
|
@@ -546,7 +531,6 @@ export interface HydratedPracticeConfigs {
|
|
546
531
|
[PracticeConfigKind.PracticeFontsLinks]?: PracticeConfigPracticeFontsLinks
|
547
532
|
[PracticeConfigKind.PracticeLocaleSwitcher]?: PracticeConfigPracticeLocaleSwitcher
|
548
533
|
[PracticeConfigKind.PracticePharmacyPicker]?: PracticeConfigPracticeOnlinePharmacy
|
549
|
-
[PracticeConfigKind.PracticePrescriptionFields]?: PracticeConfigPracticePrescriptionFields
|
550
534
|
[PracticeConfigKind.PractitionerChatbox]?: PracticeConfigPractitionerChatbox
|
551
535
|
[PracticeConfigKind.PractitionerConsultList]?: PracticeConfigPractitionerConsultList
|
552
536
|
}
|
package/src/services/consult.ts
CHANGED
@@ -5,6 +5,7 @@ import {
|
|
5
5
|
ConsultRequest,
|
6
6
|
MedicalStatus,
|
7
7
|
ConsultTransmission,
|
8
|
+
ClosedReasonType,
|
8
9
|
TransmissionKind,
|
9
10
|
TransmissionStatus,
|
10
11
|
} from '../models'
|
@@ -141,6 +142,8 @@ export class ConsultService {
|
|
141
142
|
uuidConsult: Uuid,
|
142
143
|
consult: {
|
143
144
|
statusMedical?: MedicalStatus
|
145
|
+
closedReasonType?: ClosedReasonType
|
146
|
+
closedReasonDescription?: string
|
144
147
|
uuidAssignedDoctor?: Uuid
|
145
148
|
neverExpires?: boolean
|
146
149
|
},
|
package/src/services/teller.ts
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
import { APIService } from './api'
|
2
2
|
import {
|
3
|
+
ClosedReasonType,
|
3
4
|
Consult,
|
4
5
|
DataCreateResponse,
|
5
6
|
LockboxDataRequest,
|
6
7
|
MedicalStatus,
|
7
|
-
Uuid,
|
8
8
|
ResumeConsultEmailRequest,
|
9
|
+
Uuid,
|
9
10
|
} from '../models'
|
10
11
|
export class TellerService {
|
11
12
|
constructor(private api: APIService, private baseURL: string) {}
|
@@ -28,11 +29,15 @@ export class TellerService {
|
|
28
29
|
patientUuid: Uuid,
|
29
30
|
uuidConsult: Uuid,
|
30
31
|
statusMedical: MedicalStatus,
|
32
|
+
closedReasonType?: ClosedReasonType,
|
33
|
+
closedReasonDescription?: string,
|
31
34
|
neverExpires?: boolean
|
32
35
|
): Promise<Consult> {
|
33
36
|
return this.api.put<Consult>(`${this.baseURL}/v1/consults/${uuidConsult}`, {
|
34
37
|
patientUuid,
|
35
38
|
statusMedical,
|
39
|
+
closedReasonType,
|
40
|
+
closedReasonDescription,
|
36
41
|
neverExpires,
|
37
42
|
})
|
38
43
|
}
|
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.
|