-
Notifications
You must be signed in to change notification settings - Fork 12
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
EMS: User needs ability/option to enter temperature in Celsius #252
Comments
Apparently, the EPCR software has fields for both C and F, and entering in one automatically calculates the other. The paramedic entered Celsius into Routed, even though the field is labeled with F. |
@fwextensions @kretzbryan So, the question has arisen on how we actually handle this in the data model... Right now, the patientMetadata is used as a one-to-one mapping between a table column/model attribute/input field. For temperature, we have the Ideally, we'd store both the temperature as a decimal field, and the unit (C or F) as some form of enumerated type field (i.e. How can we special-case this so that, instead of showing a temperature decimal field and a unit field, we can show two separate inputs, one for F and one for C, and set the fields appropriately? |
Alternatively, we always just convert to what we expect in the db, in this case, for legacy reasons, in F, and avoid adding a separate unit column. |
I think having a unit column adds unnecessary complexity, and possibly confusion if you're looking at just the temperature column, since the values will look wildly different. Another way of mapping fields in the metadata would be to controls, rather than just types. So |
No description provided.
The text was updated successfully, but these errors were encountered: