oro-sdk-apis 1.4.0 → 1.5.2
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/dist/models/diagnosis.d.ts +5 -0
- package/dist/models/workflow.d.ts +5 -1
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/models/diagnosis.ts +6 -0
- package/src/models/workflow.ts +11 -18
package/package.json
CHANGED
package/src/models/diagnosis.ts
CHANGED
|
@@ -38,6 +38,7 @@ export interface TreatmentRequest {
|
|
|
38
38
|
export interface Treatment extends TreatmentRequest {
|
|
39
39
|
uuid: string
|
|
40
40
|
uuidDiagnosis: string
|
|
41
|
+
uuidPractitioner?: string
|
|
41
42
|
createdAt: string
|
|
42
43
|
}
|
|
43
44
|
|
|
@@ -57,6 +58,7 @@ export interface DrugRequest {
|
|
|
57
58
|
parentUuid?: string // (optional) parent uuid of the drug. In case of DrugType.Instance
|
|
58
59
|
uuid?: string // uuid of the drug (will be used as parentUuid in case of creation of new drug)
|
|
59
60
|
}
|
|
61
|
+
|
|
60
62
|
export interface Drug extends DrugRequest {
|
|
61
63
|
uuid: string
|
|
62
64
|
uuidPractice: string
|
|
@@ -90,6 +92,7 @@ export interface TreatmentPlan {
|
|
|
90
92
|
uuidConsult: string
|
|
91
93
|
uuidDiagnosis: string
|
|
92
94
|
uuidTreatment?: string
|
|
95
|
+
notes?: string
|
|
93
96
|
status: PlanStatus
|
|
94
97
|
}
|
|
95
98
|
|
|
@@ -101,6 +104,7 @@ export interface DrugPrescription {
|
|
|
101
104
|
export interface TreatmentAndDrugPrescription {
|
|
102
105
|
treatment?: Treatment
|
|
103
106
|
prescriptionsAndDrugs?: DrugPrescription[]
|
|
107
|
+
notes?: string
|
|
104
108
|
status: PlanStatus
|
|
105
109
|
uuidTreatmentPlan: string
|
|
106
110
|
}
|
|
@@ -119,6 +123,7 @@ export interface TreatmentAndDrugPrescriptionRequest {
|
|
|
119
123
|
trackingId: string
|
|
120
124
|
treatment: TreatmentRequest
|
|
121
125
|
prescriptionsAndDrugs?: DrugPrescriptionRequest[]
|
|
126
|
+
notes?: string
|
|
122
127
|
}
|
|
123
128
|
|
|
124
129
|
export interface TreatmentPlansRequest {
|
|
@@ -130,6 +135,7 @@ export interface TreatmentPlansRequest {
|
|
|
130
135
|
export interface TreatmentAndDrugPrescriptionUpdateRequest {
|
|
131
136
|
treatment: Treatment
|
|
132
137
|
prescriptionsAndDrugs?: DrugPrescriptionRequest[]
|
|
138
|
+
notes?: string
|
|
133
139
|
}
|
|
134
140
|
|
|
135
141
|
export interface TreatmentPlanUpdateRequest extends TreatmentPlansRequest {
|
package/src/models/workflow.ts
CHANGED
|
@@ -23,6 +23,12 @@ export interface RadioInputData extends ChoiceInputData {
|
|
|
23
23
|
export interface RadioCardInputData extends RadioInputData {
|
|
24
24
|
bodyText: string
|
|
25
25
|
}
|
|
26
|
+
|
|
27
|
+
export interface LanguagePickerData extends ChoiceInputData {
|
|
28
|
+
flag: string // iso3166-1
|
|
29
|
+
locale: string
|
|
30
|
+
}
|
|
31
|
+
|
|
26
32
|
export interface EntryData {
|
|
27
33
|
id?: number
|
|
28
34
|
label?: string
|
|
@@ -46,8 +52,7 @@ export enum MetadataCategory { //these are generic metadata categories
|
|
|
46
52
|
Raw = 'Raw',
|
|
47
53
|
}
|
|
48
54
|
|
|
49
|
-
export interface GenericQuestionData<T, A = IndexedData<ChoiceInputData>>
|
|
50
|
-
extends EntryData {
|
|
55
|
+
export interface GenericQuestionData<T, A = IndexedData<ChoiceInputData>> extends EntryData {
|
|
51
56
|
kind: T
|
|
52
57
|
metaCategory: MetadataCategory
|
|
53
58
|
answers?: A
|
|
@@ -57,10 +62,7 @@ export interface GenericQuestionData<T, A = IndexedData<ChoiceInputData>>
|
|
|
57
62
|
value?: string
|
|
58
63
|
}
|
|
59
64
|
|
|
60
|
-
export interface GroupedGenericQuestionData<
|
|
61
|
-
T,
|
|
62
|
-
A = IndexedData<ChoiceInputData>
|
|
63
|
-
> extends GenericQuestionData<T, A> {
|
|
65
|
+
export interface GroupedGenericQuestionData<T, A = IndexedData<ChoiceInputData>> extends GenericQuestionData<T, A> {
|
|
64
66
|
inline?: boolean
|
|
65
67
|
inlineLabel?: boolean
|
|
66
68
|
order?: number
|
|
@@ -69,21 +71,12 @@ export interface GroupedGenericQuestionData<
|
|
|
69
71
|
export type QuestionData =
|
|
70
72
|
| GenericQuestionData<'title' | 'paragraph' | 'checkbox', void>
|
|
71
73
|
| GenericQuestionData<
|
|
72
|
-
| '
|
|
73
|
-
| 'date'
|
|
74
|
-
| 'number'
|
|
75
|
-
| 'images'
|
|
76
|
-
| 'images-alias'
|
|
77
|
-
| 'body-parts'
|
|
78
|
-
| 'pharmacy-picker'
|
|
79
|
-
| 'place-address'
|
|
80
|
-
>
|
|
81
|
-
| GenericQuestionData<
|
|
82
|
-
'checkbox-group' | 'select' | 'multiple',
|
|
83
|
-
IndexedData<ChoiceInputData>
|
|
74
|
+
'text' | 'date' | 'number' | 'images' | 'images-alias' | 'body-parts' | 'pharmacy-picker' | 'place-address'
|
|
84
75
|
>
|
|
76
|
+
| GenericQuestionData<'checkbox-group' | 'select' | 'multiple', IndexedData<ChoiceInputData>>
|
|
85
77
|
| GroupedGenericQuestionData<'radio', IndexedData<RadioInputData>>
|
|
86
78
|
| GroupedGenericQuestionData<'radio-card', IndexedData<RadioCardInputData>>
|
|
79
|
+
| GroupedGenericQuestionData<'language-picker', IndexedData<LanguagePickerData>>
|
|
87
80
|
|
|
88
81
|
export interface FieldData {
|
|
89
82
|
type: 'field'
|