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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0",
2
+ "version": "1.3.0",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -1,9 +1,13 @@
1
- export enum DiagnosisType {
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: string // Description of the drug
51
+ description?: string // Description of the drug
47
52
  type: DrugType // Entry type
48
53
  language: string // drug locale
49
- sideEffects: string // Side effects of the drug
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