Skip to content

Commit

Permalink
Rewamp UX for symptoms and diagnosis in EncounterQuestionnaire (#9644)
Browse files Browse the repository at this point in the history
* Refactor EncounterQuestionnaire and QuestionnaireForm components for improved layout and functionality; enhance SymptomQuestion with new dropdown menu and symptom management features.

* Refactor DiagnosisQuestion component to enhance diagnosis management with a new UI structure, including dropdown menus for clinical status and verification, and improved handling of diagnosis items. Introduce a new DiagnosisItem component for better code organization and maintainability. Update SymptomQuestion to improve symptom display with truncation for long text.
  • Loading branch information
bodhish authored Jan 2, 2025
1 parent f450310 commit 1f7410a
Show file tree
Hide file tree
Showing 4 changed files with 613 additions and 643 deletions.
42 changes: 20 additions & 22 deletions src/components/Patient/EncounterQuestionnaire.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,26 @@ export default function EncounterQuestionnaire({
title="Questionnaire"
backUrl={`/facility/${facilityId}/patient/${patientId}/encounter/${encounterId}`}
>
<div className="container mx-auto p-4">
<Card>
<CardContent className="pt-6">
<QuestionnaireForm
facilityId={facilityId}
patientId={patientId}
subjectType={subjectType}
encounterId={encounterId}
questionnaireSlug={questionnaireSlug}
onSubmit={() => {
if (encounterId) {
navigate(
`/facility/${facilityId}/encounter/${encounterId}/updates`,
);
} else {
navigate(`/patient/${patientId}/updates`);
}
}}
/>
</CardContent>
</Card>
</div>
<Card className="mt-2">
<CardContent className="lg:p-4 p-0">
<QuestionnaireForm
facilityId={facilityId}
patientId={patientId}
subjectType={subjectType}
encounterId={encounterId}
questionnaireSlug={questionnaireSlug}
onSubmit={() => {
if (encounterId) {
navigate(
`/facility/${facilityId}/encounter/${encounterId}/updates`,
);
} else {
navigate(`/patient/${patientId}/updates`);
}
}}
/>
</CardContent>
</Card>
</Page>
);
}
Loading

0 comments on commit 1f7410a

Please sign in to comment.