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.
@@ -75,17 +75,58 @@ export declare enum TaskStatus {
75
75
  Done = "Done"
76
76
  }
77
77
  export declare enum ClosedReasonType {
78
+ /**
79
+ * A completed consultation
80
+ */
78
81
  Completed = "Completed",
82
+ /**
83
+ * The conclusion was that what the patient submitted was not a disease
84
+ */
79
85
  NotADisease = "NotADisease",
86
+ /**
87
+ * The consultation was not appropriate for virtual
88
+ */
80
89
  NotAppropriateForVirtual = "NotAppropriateForVirtual",
90
+ /**
91
+ * Any other reason why the consultation was closed
92
+ */
81
93
  Other = "Other",
94
+ /**
95
+ * A consultation that is required to be done in person
96
+ */
82
97
  RequiresInPerson = "RequiresInPerson"
83
98
  }
99
+ export interface ClosedConsultReasonInsertFields {
100
+ /**
101
+ * The uuid of the consultation
102
+ */
103
+ consult_uuid: string;
104
+ /**
105
+ * The reason why the consultation was closed
106
+ */
107
+ closed_reason_type: ClosedReasonType;
108
+ /**
109
+ * The description why the consultation was closed
110
+ */
111
+ closed_reason_description: string;
112
+ /**
113
+ * When the consultation was closed
114
+ */
115
+ created_at: string;
116
+ }
84
117
  export interface ConsultClosedReason {
85
- id?: number;
118
+ /**
119
+ * The reason why the consultation was closed
120
+ */
86
121
  closedReasonType: ClosedReasonType;
122
+ /**
123
+ * The description why the consultation was closed
124
+ */
87
125
  closedReasonDescription: string;
88
- createdAt?: string;
126
+ /**
127
+ * When the consultation was closed
128
+ */
129
+ createdAt: string;
89
130
  }
90
131
  export interface ConsultRequest {
91
132
  uuidPractice: string;
@@ -109,7 +150,7 @@ export interface Consult {
109
150
  statusTask?: TaskStatus;
110
151
  hasTransmissions?: boolean;
111
152
  assignedAssistant?: ConsultAssignedAssistant[];
112
- closeConsultReason?: any;
153
+ closeConsultReason?: ConsultClosedReason;
113
154
  shortId?: string;
114
155
  createdAt?: string;
115
156
  expiresAt?: string;
@@ -130,5 +130,5 @@ export interface LegalData {
130
130
  rpAcceptedAtIP?: string;
131
131
  }
132
132
  export declare type RoleBasedScopes = AllRoleType;
133
- export declare type PermissionBasedScopes = 'consult.consults.get' | 'consult.consults.post' | 'practice.assignments.post' | 'practice.configs.get' | 'practice.invoices.get' | 'practice.payments.get' | 'teller.emails.post';
133
+ export declare type PermissionBasedScopes = 'consult.consults.get' | 'consult.consults.post' | 'consult.consults.put' | 'practice.assignments.post' | 'practice.emails.get' | 'practice.configs.get' | 'practice.invoices.get' | 'practice.payments.get' | 'teller.emails.post';
134
134
  export declare type AllScopes = RoleBasedScopes | PermissionBasedScopes;
@@ -126,6 +126,7 @@ export declare enum PracticeConfigKind {
126
126
  PracticeFontsLinks = "PracticeFontsLinks",
127
127
  PracticeLocaleSwitcher = "PracticeLocaleSwitcher",
128
128
  PracticePharmacyPicker = "PracticePharmacyPicker",
129
+ PracticePrescriptionFields = "PracticePrescriptionFields",
129
130
  PractitionerChatbox = "PractitionerChatbox",
130
131
  PractitionerConsultList = "PractitionerConsultList"
131
132
  }
@@ -268,7 +269,16 @@ export declare type PracticeConfigPractitionerConsultList = PracticeConfig<Pract
268
269
  */
269
270
  hideExpiresAt?: boolean;
270
271
  }>;
271
- export declare type PracticeConfigs = PracticeConfigPractitionerConsultList | PracticeConfigPractitionerChatbox | PracticeConfigPracticeLocaleSwitcher | PracticeConfigPracticeCookieBanner | PracticeConfigPracticeOnlinePharmacy | PracticeConfigPracticeCssVariables | PracticeConfigPracticeFontsLinks | PracticeConfigPracticeConfigExample;
272
+ /**
273
+ * This config is used to configure the layout of the modular prescription fields
274
+ */
275
+ export declare type PracticeConfigPracticePrescriptionFields = PracticeConfig<PracticeConfigKind.PracticePrescriptionFields, {
276
+ /**
277
+ * the y position in px of the first modular prescription
278
+ */
279
+ yCoordinate?: number;
280
+ }>;
281
+ export declare type PracticeConfigs = PracticeConfigPractitionerConsultList | PracticeConfigPractitionerChatbox | PracticeConfigPracticeLocaleSwitcher | PracticeConfigPracticeCookieBanner | PracticeConfigPracticeOnlinePharmacy | PracticeConfigPracticeCssVariables | PracticeConfigPracticeFontsLinks | PracticeConfigPracticePrescriptionFields | PracticeConfigPracticeConfigExample;
272
282
  export interface PracticeWorkflow {
273
283
  id?: number;
274
284
  uuidPractice: string;
@@ -454,6 +464,7 @@ export interface HydratedPracticeConfigs {
454
464
  [PracticeConfigKind.PracticeFontsLinks]?: PracticeConfigPracticeFontsLinks;
455
465
  [PracticeConfigKind.PracticeLocaleSwitcher]?: PracticeConfigPracticeLocaleSwitcher;
456
466
  [PracticeConfigKind.PracticePharmacyPicker]?: PracticeConfigPracticeOnlinePharmacy;
467
+ [PracticeConfigKind.PracticePrescriptionFields]?: PracticeConfigPracticePrescriptionFields;
457
468
  [PracticeConfigKind.PractitionerChatbox]?: PracticeConfigPractitionerChatbox;
458
469
  [PracticeConfigKind.PractitionerConsultList]?: PracticeConfigPractitionerConsultList;
459
470
  }
@@ -917,10 +917,29 @@ var ApisPracticeManager = /*#__PURE__*/function () {
917
917
  })(exports.TaskStatus || (exports.TaskStatus = {}));
918
918
 
919
919
  (function (ClosedReasonType) {
920
+ /**
921
+ * A completed consultation
922
+ */
920
923
  ClosedReasonType["Completed"] = "Completed";
924
+ /**
925
+ * The conclusion was that what the patient submitted was not a disease
926
+ */
927
+
921
928
  ClosedReasonType["NotADisease"] = "NotADisease";
929
+ /**
930
+ * The consultation was not appropriate for virtual
931
+ */
932
+
922
933
  ClosedReasonType["NotAppropriateForVirtual"] = "NotAppropriateForVirtual";
934
+ /**
935
+ * Any other reason why the consultation was closed
936
+ */
937
+
923
938
  ClosedReasonType["Other"] = "Other";
939
+ /**
940
+ * A consultation that is required to be done in person
941
+ */
942
+
924
943
  ClosedReasonType["RequiresInPerson"] = "RequiresInPerson";
925
944
  })(exports.ClosedReasonType || (exports.ClosedReasonType = {}));
926
945
 
@@ -1124,6 +1143,7 @@ var IdentityCreationConflict = /*#__PURE__*/function (_Error7) {
1124
1143
  PracticeConfigKind["PracticeFontsLinks"] = "PracticeFontsLinks";
1125
1144
  PracticeConfigKind["PracticeLocaleSwitcher"] = "PracticeLocaleSwitcher";
1126
1145
  PracticeConfigKind["PracticePharmacyPicker"] = "PracticePharmacyPicker";
1146
+ PracticeConfigKind["PracticePrescriptionFields"] = "PracticePrescriptionFields";
1127
1147
  PracticeConfigKind["PractitionerChatbox"] = "PractitionerChatbox";
1128
1148
  PracticeConfigKind["PractitionerConsultList"] = "PractitionerConsultList";
1129
1149
  })(exports.PracticeConfigKind || (exports.PracticeConfigKind = {}));