oro-sdk-apis 1.57.0-dev1 → 1.58.1-dev1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.57.0-dev1",
2
+ "version": "1.58.1-dev1",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -54,4 +54,4 @@
54
54
  "buffer": "^6.0.3",
55
55
  "hash.js": "^1.1.7"
56
56
  }
57
- }
57
+ }
@@ -29,10 +29,11 @@ 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
- refillable: boolean
36
37
  type?: TreatmentType
37
38
  }
38
39
 
@@ -160,6 +161,7 @@ export interface TreatmentPlanUpdateRequest extends TreatmentPlansRequest {
160
161
  uuidConsult: string
161
162
  diagnosis: DiagnosisRequest
162
163
  plan: TreatmentAndDrugPrescriptionUpdateRequest
164
+ refill?: boolean
163
165
  }
164
166
 
165
167
  export interface TreatmentPlansResponseEntry {
@@ -167,4 +169,4 @@ export interface TreatmentPlansResponseEntry {
167
169
  treatmentPlan: TreatmentPlan
168
170
  }
169
171
 
170
- export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {}
172
+ export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {}
@@ -151,6 +151,7 @@ export enum PracticeConfigKind {
151
151
  PracticeExamsAndResults = 'PracticeExamsAndResults',
152
152
  PracticeLayout = 'PracticeLayout',
153
153
  PracticeAddressField = 'PracticeAddressField',
154
+ PracticeDiagnosisAndTreatment = 'PracticeDiagnosisAndTreatment',
154
155
  }
155
156
 
156
157
  /**
@@ -417,6 +418,19 @@ export type PracticeConfigPracticeAddressField = PracticeConfig<
417
418
  }
418
419
  >
419
420
 
421
+ /**
422
+ * This config is used for all configs related to the Diagnosis and Treatments module
423
+ */
424
+ export type PracticeConfigPracticeDiagnosisAndTreatment = PracticeConfig<
425
+ PracticeConfigKind.PracticeDiagnosisAndTreatment,
426
+ {
427
+ /**
428
+ * If true, then sort alphabetically the diagnoses, treatments, and drugs shown in their respective select dropdown
429
+ */
430
+ sortNames?: boolean
431
+ }
432
+ >
433
+
420
434
  export type PracticeConfigs =
421
435
  | PracticeConfigPractitionerSearch
422
436
  | PracticeConfigPractitionerConsultList
@@ -433,6 +447,7 @@ export type PracticeConfigs =
433
447
  | PracticeConfigPracticeExamsAndResults
434
448
  | PracticeConfigPracticeLayout
435
449
  | PracticeConfigPracticeAddressField
450
+ | PracticeConfigPracticeDiagnosisAndTreatment
436
451
 
437
452
  export interface PracticeWorkflow {
438
453
  id?: number ///optional for insertion
@@ -695,6 +710,7 @@ export interface HydratedPracticeConfigs {
695
710
  [PracticeConfigKind.PracticeExamsAndResults]?: PracticeConfigPracticeExamsAndResults
696
711
  [PracticeConfigKind.PracticeLayout]?: PracticeConfigPracticeLayout
697
712
  [PracticeConfigKind.PracticeAddressField]?: PracticeConfigPracticeAddressField
713
+ [PracticeConfigKind.PracticeDiagnosisAndTreatment]?: PracticeConfigPracticeDiagnosisAndTreatment
698
714
  }
699
715
 
700
716
  export interface Practice {
@@ -282,7 +282,7 @@ export interface HidePlanRule {
282
282
  /**
283
283
  * Questions to apply yup rules on in, if rules are met then hide the plan
284
284
  */
285
- rules: QuestionHidePlanRule | QuestionHidePlanRule[] | QuestionHidePlanRule[][]
285
+ rules: QuestionHidePlanRule[] | QuestionHidePlanRule[][]
286
286
  }
287
287
 
288
288
  export interface QuestionHidePlanRule {
@@ -330,4 +330,4 @@ export interface PopulatedWorkflowData {
330
330
  workflowCreatedAt: string // The workflow version
331
331
  locale?: string
332
332
  fields: Record<string, PopulatedWorkflowField> // key corresponds to the QuestionData key in the workflow
333
- }
333
+ }
@@ -297,6 +297,6 @@ export class GuardService {
297
297
 
298
298
  //The hash comes in base64 format but it isn't URL safe soe we have to convert
299
299
  //to base64URL (see https://en.wikipedia.org/wiki/Base64#The_URL_applications)
300
- return this.identityGet(b64Hash.replace('+', '-').replace('/', '_'))
300
+ return this.identityGet(b64Hash.replace(/\+/g, '-').replace(/\//g, '_'))
301
301
  }
302
302
  }