@openmrs/esm-form-engine-lib 3.0.1 → 3.1.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.
@@ -12,6 +12,7 @@ export interface OpenmrsEncounter {
12
12
  visit?: OpenmrsResource | string;
13
13
  encounterProviders?: Array<Record<string, any>>;
14
14
  form?: OpenmrsFormResource;
15
+ diagnoses?: Array<Diagnosis>;
15
16
  }
16
17
 
17
18
  export interface OpenmrsObs extends OpenmrsResource {
@@ -165,6 +166,10 @@ export interface PatientProgram extends OpenmrsResource {
165
166
  states?: Array<ProgramWorkflowState>;
166
167
  }
167
168
 
169
+ export interface ProgramsFetchResponse {
170
+ results: Array<PatientProgram>;
171
+ }
172
+
168
173
  export interface PatientProgramPayload {
169
174
  program?: string;
170
175
  uuid?: string;
@@ -187,3 +192,34 @@ export interface PatientIdentifier {
187
192
  location?: string;
188
193
  preferred?: boolean;
189
194
  }
195
+
196
+ export interface DiagnosisPayload {
197
+ patient: string;
198
+ condition: null;
199
+ diagnosis: {
200
+ coded: string;
201
+ };
202
+ certainty: string;
203
+ rank: number;
204
+ formFieldNamespace?: string;
205
+ formFieldPath?: string;
206
+ uuid?: string;
207
+ encounter?: string;
208
+ }
209
+
210
+ export interface Diagnosis {
211
+ encounter: string;
212
+ patient: string;
213
+ diagnosis: {
214
+ coded: {
215
+ uuid: string;
216
+ };
217
+ };
218
+ certainty: string;
219
+ rank: number;
220
+ display: string;
221
+ voided: boolean;
222
+ uuid: string;
223
+ formFieldNamespace?: string;
224
+ formFieldPath?: string;
225
+ }
@@ -192,6 +192,12 @@ export interface FormQuestionOptions {
192
192
  comment?: string;
193
193
  orientation?: 'vertical' | 'horizontal';
194
194
  shownCommentOptions?: { validators?: Array<Record<string, any>>; hide?: { hideWhenExpression: string } };
195
+ diagnosis?: {
196
+ rank?: number;
197
+ isConfirmed?: boolean;
198
+ conceptClasses?: Array<string>;
199
+ conceptSet?: string;
200
+ };
195
201
  }
196
202
 
197
203
  export interface QuestionAnswerOption {