Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diet preference options with kebab case value #9821

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,9 @@ export function EncounterQuestion({
</SelectTrigger>
<SelectContent>
<SelectItem value="vegetarian">Vegetarian</SelectItem>
<SelectItem value="diary_free">Dairy Free</SelectItem>
<SelectItem value="nut_free">Nut Free</SelectItem>
<SelectItem value="gluten_free">Gluten Free</SelectItem>
<SelectItem value="diary-free">Dairy Free</SelectItem>
<SelectItem value="nut-free">Nut Free</SelectItem>
<SelectItem value="gluten-free">Gluten Free</SelectItem>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of these should be moved to constans

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rithviknishad Shall I create a new PR as you have closed the issues as Not Planned

<SelectItem value="vegan">Vegan</SelectItem>
<SelectItem value="halal">Halal</SelectItem>
<SelectItem value="kosher">Kosher</SelectItem>
Expand Down
6 changes: 3 additions & 3 deletions src/types/emr/encounter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ export type EncounterDischargeDisposition =

export type EncounterDietPreference =
| "vegetarian"
| "diary_free"
| "nut_free"
| "gluten_free"
| "diary-free"
| "nut-free"
| "gluten-free"
| "vegan"
| "halal"
| "kosher"
Expand Down
Loading