diff --git a/src/common/constants.tsx b/src/common/constants.tsx index 64af8d373ac..2083be70f40 100644 --- a/src/common/constants.tsx +++ b/src/common/constants.tsx @@ -1757,3 +1757,19 @@ export const HEADER_CONTENT_TYPES = { } as const; export const ADMIN_USER_TYPES = ["DistrictAdmin", "StateAdmin"] as const; + +/** + * @deprecated use `LocalStorageKeys.patientTokenKey` instead + */ +export const CarePatientTokenKey = LocalStorageKeys.patientTokenKey; + +export const DIET_PREFERENCE_OPTIONS = [ + { label: "Vegetarian", value: "vegetarian" }, + { label: "Dairy Free", value: "diary_free" }, + { label: "Nut Free", value: "nut_free" }, + { label: "Gluten Free", value: "gluten_free" }, + { label: "Vegan", value: "vegan" }, + { label: "Halal", value: "halal" }, + { label: "Kosher", value: "kosher" }, + { label: "None", value: "none" }, +] as const; diff --git a/src/components/Questionnaire/QuestionTypes/EncounterQuestion.tsx b/src/components/Questionnaire/QuestionTypes/EncounterQuestion.tsx index 00ba6ce0536..583ed9f3786 100644 --- a/src/components/Questionnaire/QuestionTypes/EncounterQuestion.tsx +++ b/src/components/Questionnaire/QuestionTypes/EncounterQuestion.tsx @@ -11,6 +11,8 @@ import { SelectValue, } from "@/components/ui/select"; +import { DIET_PREFERENCE_OPTIONS } from "@/common/constants"; + import routes from "@/Utils/request/api"; import query from "@/Utils/request/query"; import { @@ -391,14 +393,11 @@ export function EncounterQuestion({ - Vegetarian - Dairy Free - Nut Free - Gluten Free - Vegan - Halal - Kosher - None + {DIET_PREFERENCE_OPTIONS.map((option) => ( + + {option.label} + + ))}