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

Update range of diastolic blood pressure in detailed log update #8397

Closed
1 task done
rithviknishad opened this issue Aug 22, 2024 · 7 comments · Fixed by #8498
Closed
1 task done

Update range of diastolic blood pressure in detailed log update #8397

rithviknishad opened this issue Aug 22, 2024 · 7 comments · Fixed by #8498
Assignees

Comments

@rithviknishad
Copy link
Member

rithviknishad commented Aug 22, 2024

Describe the bug
Currently normal log update has 0-250 as the range for both systolic and diastolic blood pressure fields. However, detailed log update has range 30-180 for diastolic and 0-250 for systolic.

(Ranges confirmed with @aparnacoronasafe)

To Reproduce
Steps to reproduce the behavior:

  1. From the consultation dashboard, file a normal log update with blood pressure (observe the ranges).
  2. Also file a detailed log update, and enter vitals section. Observe the ranges for the blood pressure field.

https://care.ohc.network/facility/0c95c7f0-e1d2-4aff-83fa-933cef60d3a8/patient/7e8fc20f-02da-47f7-8c33-f2d8c7e52dd8/consultation/edfe0bd6-0f50-4a4c-8cd0-2d4ad0e9cea1/daily_rounds/06b17319-7ec3-4c56-a1f0-ffbceaa7d4a5/update

Expected behavior

  • Update range of diastolic blood pressure field in detailed log update to 0-250

Screenshots

image image
@rithviknishad
Copy link
Member Author

rithviknishad commented Aug 22, 2024

@aparnacoronasafe We decided to restrict the range to a more restrictive value than allowing 0 to 250 as it's very unlikely to fill a zero in dia/sys field. Can we get a more acceptable / useful range?

cc: @gigincg

@gigincg
Copy link
Member

gigincg commented Aug 22, 2024

@aparnacoronasafe Can we do

Systolic pressure between 50 and 250 mmHg.
Diastolic pressure between 20 and 180 mmHg.
Also, ensure that systolic pressure is always greater than diastolic pressure before submission.

@aparnacoronasafe
Copy link
Member

We can add validation to make sure that systolic pressure is always greater than diastolic pressure

However, Systolic BP can go below 50 in heart attack patients nearing death and other extreme cases. so it is not wise to only allow values above 50. Same with diastolic BP.

I believe we need to increase the higher ceiling of both systolic and diastolic BP.
A published in 1995 has recorded a maximum blood pressure of 370/360 mmHg.
I recommend we allow values between 0 to 400 for both systolic and diastobil BP

@rithviknishad
Copy link
Member Author

@aparnacoronasafe

Dr. @athulmanuel had mentioned the acceptable values for an EMR would be 30-300 mmHg for both systolic and diastolic and had also said that there would be scenarios where systolic or diastolic would be "non-recordable" and hence need the option to specify such instances explicitly.

@rithviknishad
Copy link
Member Author

rithviknishad commented Aug 27, 2024

@vigneshhari

Wanted to confirm if it'd be okay to store BP in the JSON column in the following way, or should non-recordable be stored as a separate attribute/field?

# Indicates BP was not measured by the client.
bp = None

# Indicates both sys. and dia. are "Non-recordable"
bp = { 
  "systolic": None,
  "diastolic": None,
}

# Indicates sys was measured with a value and dia was "Non-recordable"
bp = { 
  "systolic": 100,
  "diastolic": None,
}

cc: @sainak

@aparnacoronasafe
Copy link
Member

aparnacoronasafe commented Aug 27, 2024

We need to keep the range of values more liberal. We can't look at the majority use case and choose to not acknowledge the edge cases.

We must keep the range more open.

The issue here is the UI component - slider. Athul doc is worried that if the allowed range is too wide, the slider becomes extended where the usable (commonly used) range will be a small section within the slider.

So my recommendation is:

  • We keep the allowed range of input relaxed
  • Reimagine input modality. slider is not very usable. Scroll or any other modality may be considered
  • Athul doc also recommended to add fields for "modality of measuring BP" and if, IVBP, then "site of measurement"- filing this as separate issue.

@gigincg please comment

@rithviknishad
Copy link
Member Author

rithviknishad commented Aug 30, 2024

As discussed, we'll allow 30-300 mmHg (or a more frequently used range) through the slider, however, to input values beyond the range, we'll allow 0-400 mmHg through the numeric input field, and will add descriptive text to indicate "too low" or "too high" beside in the component.

Also would be adding a checkbox for marking either being "Non-recordable"

cc: @aparnacoronasafe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment