oro-sdk-apis 1.34.1-dev1 → 1.35.0-dev2

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.34.1-dev1",
2
+ "version": "1.35.0-dev2",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -83,18 +83,60 @@ export enum TaskStatus {
83
83
  }
84
84
 
85
85
  export enum ClosedReasonType {
86
- Completed = "Completed",
87
- NotADisease = "NotADisease",
88
- NotAppropriateForVirtual = "NotAppropriateForVirtual",
89
- Other = "Other",
90
- RequiresInPerson = "RequiresInPerson"
86
+ /**
87
+ * A completed consultation
88
+ */
89
+ Completed = "Completed",
90
+ /**
91
+ * The conclusion was that what the patient submitted was not a disease
92
+ */
93
+ NotADisease = "NotADisease",
94
+ /**
95
+ * The consultation was not appropriate for virtual
96
+ */
97
+ NotAppropriateForVirtual = "NotAppropriateForVirtual",
98
+ /**
99
+ * Any other reason why the consultation was closed
100
+ */
101
+ Other = "Other",
102
+ /**
103
+ * A consultation that is required to be done in person
104
+ */
105
+ RequiresInPerson = "RequiresInPerson"
106
+ }
107
+
108
+ export interface ClosedConsultReasonInsertFields {
109
+ /**
110
+ * The uuid of the consultation
111
+ */
112
+ consult_uuid: string
113
+ /**
114
+ * The reason why the consultation was closed
115
+ */
116
+ closed_reason_type: ClosedReasonType
117
+ /**
118
+ * The description why the consultation was closed
119
+ */
120
+ closed_reason_description: string
121
+ /**
122
+ * When the consultation was closed
123
+ */
124
+ created_at: string
91
125
  }
92
126
 
93
127
  export interface ConsultClosedReason {
94
- id?: number
128
+ /**
129
+ * The reason why the consultation was closed
130
+ */
95
131
  closedReasonType: ClosedReasonType
132
+ /**
133
+ * The description why the consultation was closed
134
+ */
96
135
  closedReasonDescription: string
97
- createdAt?: string
136
+ /**
137
+ * When the consultation was closed
138
+ */
139
+ createdAt: string
98
140
  }
99
141
 
100
142
  export interface ConsultRequest {
@@ -119,7 +161,7 @@ export interface Consult {
119
161
  statusTask?: TaskStatus
120
162
  hasTransmissions?: boolean
121
163
  assignedAssistant?: ConsultAssignedAssistant[]
122
- closeConsultReason?: any
164
+ closeConsultReason?: ConsultClosedReason
123
165
  shortId?: string
124
166
  createdAt?: string
125
167
  expiresAt?: string
@@ -151,7 +151,9 @@ export type RoleBasedScopes = AllRoleType
151
151
  export type PermissionBasedScopes =
152
152
  | 'consult.consults.get'
153
153
  | 'consult.consults.post'
154
+ | 'consult.consults.put'
154
155
  | 'practice.assignments.post'
156
+ | 'practice.emails.get'
155
157
  | 'practice.configs.get'
156
158
  | 'practice.invoices.get'
157
159
  | 'practice.payments.get'
@@ -141,8 +141,9 @@ export enum PracticeConfigKind {
141
141
  PracticeFontsLinks = 'PracticeFontsLinks',
142
142
  PracticeLocaleSwitcher = 'PracticeLocaleSwitcher',
143
143
  PracticePharmacyPicker = 'PracticePharmacyPicker',
144
+ PracticePrescriptionFields = 'PracticePrescriptionFields',
144
145
  PractitionerChatbox = 'PractitionerChatbox',
145
- PractitionerConsultList = 'PractitionerConsultList',
146
+ PractitionerConsultList = 'PractitionerConsultList'
146
147
  }
147
148
 
148
149
  /**
@@ -317,6 +318,19 @@ export type PracticeConfigPractitionerConsultList = PracticeConfig<
317
318
  }
318
319
  >
319
320
 
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
+
320
334
  export type PracticeConfigs =
321
335
  | PracticeConfigPractitionerConsultList
322
336
  | PracticeConfigPractitionerChatbox
@@ -325,6 +339,7 @@ export type PracticeConfigs =
325
339
  | PracticeConfigPracticeOnlinePharmacy
326
340
  | PracticeConfigPracticeCssVariables
327
341
  | PracticeConfigPracticeFontsLinks
342
+ | PracticeConfigPracticePrescriptionFields
328
343
  | PracticeConfigPracticeConfigExample // Here for integration tests only
329
344
 
330
345
  export interface PracticeWorkflow {
@@ -531,6 +546,7 @@ export interface HydratedPracticeConfigs {
531
546
  [PracticeConfigKind.PracticeFontsLinks]?: PracticeConfigPracticeFontsLinks
532
547
  [PracticeConfigKind.PracticeLocaleSwitcher]?: PracticeConfigPracticeLocaleSwitcher
533
548
  [PracticeConfigKind.PracticePharmacyPicker]?: PracticeConfigPracticeOnlinePharmacy
549
+ [PracticeConfigKind.PracticePrescriptionFields]?: PracticeConfigPracticePrescriptionFields
534
550
  [PracticeConfigKind.PractitionerChatbox]?: PracticeConfigPractitionerChatbox
535
551
  [PracticeConfigKind.PractitionerConsultList]?: PracticeConfigPractitionerConsultList
536
552
  }