Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

height in inches and feet #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions osler/workup/migrations/0011_auto_20230207_1917.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Generated by Django 3.2.10 on 2023-02-08 01:17

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('workup', '0010_alter_attestablebasicnote_signer_alter_workup_signer'),
]

operations = [
migrations.RemoveField(
model_name='historicalworkup',
name='height',
),
migrations.RemoveField(
model_name='workup',
name='height',
),
migrations.AddField(
model_name='historicalworkup',
name='height_feet',
field=models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='Height in Feet'),
),
migrations.AddField(
model_name='historicalworkup',
name='height_inches',
field=models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='Height in Inches'),
),
migrations.AddField(
model_name='workup',
name='height_feet',
field=models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='Height in Feet'),
),
migrations.AddField(
model_name='workup',
name='height_inches',
field=models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='Height in Inches'),
),
]
6 changes: 5 additions & 1 deletion osler/workup/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,12 @@ class Meta:
verbose_name=_("Temperature"))

# represented internally as inches
height = models.PositiveSmallIntegerField(verbose_name=_("Height"),
height_inches = models.PositiveSmallIntegerField(verbose_name=_("Height in Inches"),
blank=True, null=True)
# represented internally as inches
height_feet = models.PositiveSmallIntegerField(verbose_name=_("Height in Feet"),
blank=True, null=True)

# represented internally as kg
weight = models.DecimalField(verbose_name=_("Weight"),
max_digits=5, decimal_places=1,
Expand Down