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

Consider using a composite field for vitals like blood pressue #273

Open
fwextensions opened this issue Feb 17, 2023 · 1 comment
Open
Assignees
Labels
question Further information is requested

Comments

@fwextensions
Copy link
Collaborator

Postgres has a notion of composite types that might better model some vitals like blood pressure, which always has two components. Right now, those are independent columns in the database, but it never makes sense to include a systolic pressure without a diastolic one, or vice versa. This would also make it easier to have a single "BP field" component that handles entry, rather than two independent input fields.

This could also be used for temperature, if we wanted to include the selection of units with the value.

@fwextensions fwextensions added the question Further information is requested label Feb 17, 2023
@fwextensions
Copy link
Collaborator Author

This might make sense for the SpO2 field as well, since the Room Air and O2 sub-fields only apply when the O2 saturation has been filled in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants