oro-sdk-apis 1.57.0 → 1.58.1-dev1.1
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/diagnosis.d.ts +13 -2
- package/dist/models/practice.d.ts +13 -2
- package/dist/oro-sdk-apis.cjs.development.js +2 -1
- 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 +2 -1
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/models/diagnosis.ts +16 -3
- package/src/models/practice.ts +16 -0
- package/src/services/guard.ts +1 -1
package/package.json
CHANGED
package/src/models/diagnosis.ts
CHANGED
@@ -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
|
-
|
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,7 @@ export interface TreatmentPlanUpdateRequest extends TreatmentPlansRequest {
|
|
159
171
|
uuidConsult: string
|
160
172
|
diagnosis: DiagnosisRequest
|
161
173
|
plan: TreatmentAndDrugPrescriptionUpdateRequest
|
174
|
+
refill?: boolean
|
162
175
|
}
|
163
176
|
|
164
177
|
export interface TreatmentPlansResponseEntry {
|
@@ -166,4 +179,4 @@ export interface TreatmentPlansResponseEntry {
|
|
166
179
|
treatmentPlan: TreatmentPlan
|
167
180
|
}
|
168
181
|
|
169
|
-
export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {}
|
182
|
+
export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {}
|
package/src/models/practice.ts
CHANGED
@@ -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 {
|
package/src/services/guard.ts
CHANGED
@@ -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(
|
300
|
+
return this.identityGet(b64Hash.replace(/\+/g, '-').replace(/\//g, '_'))
|
301
301
|
}
|
302
302
|
}
|