ohcnetwork / care_fe

Care is a Digital Public Good enabling TeleICU & Decentralised Administration of Healthcare Capacity across States.
https://care.ohc.network
MIT License
230 stars 417 forks source link

Allow Decimal places to ABG parameters (Pco2 , Po2 and pH) #8858

Open samholics opened 4 hours ago

samholics commented 4 hours ago

Describe the bug Need to allow two decimal places to Pco2 and Po2 parameters on ABG, currently on the input field its showing as decimal places are allowed but when you enter values with decimals and submit, its throwing the error saying decimal values are not allowed. usually these two above mentioned parameters are with two decimal places. But for pH it should be three decimal places.

Image

To Reproduce Steps to reproduce the behavior:

  1. Go to patient card
  2. Click on log update and select round type as Detailed Update
  3. select Arterial Blood Gas analysis parameter
  4. update the values to Pco2 , Po2 and pH fields with decimal places and submit
  5. see the error

Expected behavior

Image

Image

A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

abhip161 commented 4 hours ago

Hey @samholics @nihal467 i would like to work on this issue

VAIBHAVSING commented 3 hours ago

this response get from backend url patch request response :{"po2":["A valid integer is required."]} please raise issue on care repo for same .I please assign me this issue for frontend Image