oro-sdk-apis 1.1.0 → 1.3.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/LICENSE +21 -0
- package/README.md +12 -1
- package/dist/models/diagnosis.d.ts +7 -3
- package/dist/oro-sdk-apis.cjs.development.js +5 -5
- 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 +7 -7
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/models/diagnosis.ts +9 -4
package/package.json
CHANGED
package/src/models/diagnosis.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
export enum
|
|
1
|
+
export enum VisibilityType {
|
|
2
2
|
Generic = 'Generic',
|
|
3
3
|
Private = 'Private',
|
|
4
4
|
Instance = 'Instance',
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
export type DiagnosisType = VisibilityType
|
|
8
|
+
|
|
9
|
+
export type TreatmentType = VisibilityType
|
|
10
|
+
|
|
7
11
|
export interface DiagnosisRequest {
|
|
8
12
|
uuid?: string
|
|
9
13
|
name: string
|
|
@@ -28,6 +32,7 @@ export interface TreatmentRequest {
|
|
|
28
32
|
name: string
|
|
29
33
|
description: string
|
|
30
34
|
urlMultimedia?: string
|
|
35
|
+
type?: TreatmentType
|
|
31
36
|
}
|
|
32
37
|
|
|
33
38
|
export interface Treatment extends TreatmentRequest {
|
|
@@ -43,15 +48,15 @@ export enum DrugType {
|
|
|
43
48
|
|
|
44
49
|
export interface DrugRequest {
|
|
45
50
|
name: string // name of the drug
|
|
46
|
-
description
|
|
51
|
+
description?: string // Description of the drug
|
|
47
52
|
type: DrugType // Entry type
|
|
48
53
|
language: string // drug locale
|
|
49
|
-
|
|
54
|
+
posology?: string // drug posology
|
|
55
|
+
sideEffects?: string // Side effects of the drug
|
|
50
56
|
imageUrl?: string // Image URL to the drug
|
|
51
57
|
parentUuid?: string // (optional) parent uuid of the drug. In case of DrugType.Instance
|
|
52
58
|
uuid?: string // uuid of the drug (will be used as parentUuid in case of creation of new drug)
|
|
53
59
|
}
|
|
54
|
-
|
|
55
60
|
export interface Drug extends DrugRequest {
|
|
56
61
|
uuid: string
|
|
57
62
|
uuidPractice: string
|