oro-sdk-apis 1.58.1 → 3.0.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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.58.1",
2
+ "version": "3.0.0",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -13,13 +13,14 @@
13
13
  "scripts": {
14
14
  "link:watch": "npm link && tsdx watch",
15
15
  "start": "tsdx watch",
16
- "build": "tsdx build",
16
+ "build:dep": "npm install tsdx@\"^0.14.1\"",
17
+ "build": "npm run build:dep && tsdx build",
17
18
  "test": "tsdx test",
18
19
  "lint": "tsdx lint",
19
- "prepare": "tsdx build",
20
+ "prepare": "npm run build",
20
21
  "size": "size-limit",
21
22
  "analyze": "size-limit --why",
22
- "package": "tsdx build && npm publish",
23
+ "package": "npm run build && npm publish",
23
24
  "pretty": "prettier --config ../../.prettierrc.yaml --write './src/**/*.{ts,js,json,md}' && prettier --write './*.md'"
24
25
  },
25
26
  "name": "oro-sdk-apis",
@@ -54,4 +55,4 @@
54
55
  "buffer": "^6.0.3",
55
56
  "hash.js": "^1.1.7"
56
57
  }
57
- }
58
+ }
@@ -72,6 +72,7 @@ export enum MedicalStatus {
72
72
  Closed = 'Closed',
73
73
  Reopened = 'Reopened',
74
74
  Archived = 'Archived',
75
+ Failed = 'Failed',
75
76
  }
76
77
 
77
78
  export enum TaskStatus {
@@ -29,8 +29,10 @@ export interface Diagnosis extends DiagnosisRequest {
29
29
  export interface TreatmentRequest {
30
30
  uuid?: string
31
31
  uuidDiagnosis?: string
32
+ uuidParentTreatment?: string
32
33
  name: string
33
34
  description: string
35
+ refillable?: boolean
34
36
  urlMultimedia?: string
35
37
  type?: TreatmentType
36
38
  }
@@ -114,8 +116,7 @@ export interface DrugPrescription {
114
116
  }
115
117
 
116
118
  export interface TreatmentAndDrugPrescription {
117
- treatment?: Treatment
118
- prescriptionsAndDrugs?: DrugPrescription[]
119
+ treatmentsHistory?: TreatmentHistory[]
119
120
  notes?: string
120
121
  status: PlanStatus
121
122
  uuidTreatmentPlan: string
@@ -125,6 +126,17 @@ export interface TreatmentAndDrugPrescription {
125
126
  decidedAt?: string
126
127
  createdAt: string
127
128
  }
129
+
130
+ /**
131
+ * An entry in the history of the treatments of the patient.
132
+ * The history entry consists of the treatment and the prescriptions and the drugs
133
+ * that were prescribed to the patient at that point of history
134
+ */
135
+ export interface TreatmentHistory {
136
+ treatment: Treatment
137
+ prescriptionsAndDrugs: DrugPrescription[]
138
+ }
139
+
128
140
  export interface TreatmentPlans {
129
141
  uuidConsult: string
130
142
  diagnosis: Diagnosis
@@ -159,6 +171,10 @@ export interface TreatmentPlanUpdateRequest extends TreatmentPlansRequest {
159
171
  uuidConsult: string
160
172
  diagnosis: DiagnosisRequest
161
173
  plan: TreatmentAndDrugPrescriptionUpdateRequest
174
+ /**
175
+ * request to refill the treatment plan
176
+ */
177
+ refill?: boolean
162
178
  }
163
179
 
164
180
  export interface TreatmentPlansResponseEntry {
@@ -166,4 +182,4 @@ export interface TreatmentPlansResponseEntry {
166
182
  treatmentPlan: TreatmentPlan
167
183
  }
168
184
 
169
- export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {}
185
+ export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {}
@@ -356,13 +356,13 @@ export type PracticeConfigPractitionerSearch = PracticeConfig<
356
356
  PracticeConfigKind.PractitionerSearch,
357
357
  {
358
358
  /**
359
- * Enables search indexing a consultation on its creation
359
+ * Disable search indexing a consultation on its creation
360
360
  */
361
- enableSearchIndexing?: boolean
361
+ disableSearchIndexing?: boolean
362
362
  /**
363
- * Enables to search for consultations from the ConsultList
363
+ * Disable search for consultations from the ConsultList
364
364
  */
365
- enableSearch?: boolean
365
+ disableSearch?: boolean
366
366
  }
367
367
  >
368
368