Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shivankacker committed Aug 8, 2024
1 parent b709a42 commit 6aef631
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Components/Scribe/formDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,11 @@ const DAILY_ROUND_FORM_SCRIBE_DATA: Field[] = [
type: "{ systolic?: number, diastolic?: number }",
example: "{ systolic: 120 }",
description:
"An object to store the blood pressure of the patient. It may contain two integers, systolic and diastolic. Output mean is calculated from these two.",
"An object to store the blood pressure of the patient. It may contain two integers, systolic and diastolic.",
validator: (value) => {
if (typeof value !== "object") return false;
if (value.systolic && typeof value.systolic !== "number") return false;
if (value.diastolic && typeof value.diastolic !== "number") return false;
if (value.mean && typeof value.mean !== "number") return false;
return true;
},
},
Expand Down

0 comments on commit 6aef631

Please sign in to comment.