Skip to content

Commit

Permalink
diag and symp add func
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 committed Jan 30, 2025
1 parent adcdf7c commit e6e9967
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export function DiagnosisQuestion({
}, [patientDiagnoses]);

const handleAddDiagnosis = (code: Code) => {
if (diagnoses.some((d) => d.code.code === code.code)) return;
const newDiagnoses = [
...diagnoses,
{ ...DIAGNOSIS_INITIAL_VALUE, code },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ export function SymptomQuestion({
}, [patientSymptoms]);

const handleAddSymptom = (code: Code) => {
if (symptoms.some((s) => s.code.code === code.code)) return;
const newSymptoms = [
...symptoms,
{ ...SYMPTOM_INITIAL_VALUE, code },
Expand Down

0 comments on commit e6e9967

Please sign in to comment.