Skip to content

Commit

Permalink
Reorder fields in Daily Rounds (#7954)
Browse files Browse the repository at this point in the history
* move symptoms up

* move diagnosis up
  • Loading branch information
rithviknishad authored May 31, 2024
1 parent b46cbbd commit fa5e3e6
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/Components/Patient/DailyRounds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,11 @@ export const DailyRounds = (props: any) => {
</div>

<div className="grid grid-cols-1 gap-x-6 md:grid-cols-2">
<div className="pb-6 md:col-span-2">
<FieldLabel>Symptoms</FieldLabel>
<EncounterSymptomsBuilder />
</div>

<TextAreaFormField
{...field("physical_examination_info")}
label="Physical Examination Info"
Expand All @@ -513,11 +518,6 @@ export const DailyRounds = (props: any) => {
rows={5}
/>

<div className="pb-6 md:col-span-2">
<FieldLabel>Symptoms</FieldLabel>
<EncounterSymptomsBuilder />
</div>

{state.form.rounds_type !== "DOCTORS_LOG" && (
<>
<SelectFormField
Expand Down Expand Up @@ -674,6 +674,19 @@ export const DailyRounds = (props: any) => {
{state.form.rounds_type === "DOCTORS_LOG" && (
<>
<div className="flex flex-col gap-10 divide-y-2 divide-dashed divide-gray-600 border-t-2 border-dashed border-gray-600 pt-6 md:col-span-2">
<div>
<h3 className="mb-4 mt-8 text-lg font-semibold">
{t("diagnosis")}
</h3>
{/* */}
{diagnoses ? (
<EditDiagnosesBuilder value={diagnoses} />
) : (
<div className="flex animate-pulse justify-center py-4 text-center font-medium text-gray-800">
Fetching existing diagnosis of patient...
</div>
)}
</div>
<div>
<h3 className="my-4 text-lg font-semibold">
{t("investigations")}
Expand Down Expand Up @@ -701,19 +714,6 @@ export const DailyRounds = (props: any) => {
</h3>
<PrescriptionBuilder is_prn />
</div>
<div>
<h3 className="mb-4 mt-8 text-lg font-semibold">
{t("diagnosis")}
</h3>
{/* */}
{diagnoses ? (
<EditDiagnosesBuilder value={diagnoses} />
) : (
<div className="flex animate-pulse justify-center py-4 text-center font-medium text-gray-800">
Fetching existing diagnosis of patient...
</div>
)}
</div>
</div>
</>
)}
Expand Down

0 comments on commit fa5e3e6

Please sign in to comment.