Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
gigincg committed Dec 14, 2024
1 parent 52fae76 commit 592096f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/types/questionnaire/questionnaireResponse.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { QuestionnaireResponse as Response } from "./form";
import { StructuredQuestionType } from "./question";
import { QuestionnaireDetail } from "./questionnaire";

export type StructuredResponseValue = {
id: "symptom" | "medication" | "diagnosis" | "procedure" | "note";
id: string;
submit_type: "CREATE" | "UPDATE";
};

Expand All @@ -15,7 +16,10 @@ export interface QuestionnaireResponse {
responses: Response[];
encounter: string;
patient: string;
structured_responses?: Record<string, StructuredResponseValue>;
structured_responses?: Record<
StructuredQuestionType,
StructuredResponseValue
>;
created_by: {
first_name: string;
last_name: string;
Expand Down

0 comments on commit 592096f

Please sign in to comment.