-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added discharge_reason and discharge_notes in Patient Consultation (#902
) * feat (discharge_patient): added discharge_reason and discharge_notes * fix (serializers/patient_consultation): made discharge_notes and discharge_reason read only * fix (viewset/patient): added validation to ensure that the reason is within the choices specified * db: merged conflicting migrations * fix (viewset/patient): moved discharge reasons array outside of api function * db: merged migrations * clean migrations Co-authored-by: Vignesh Hari <vichuhari100@gmail.com>
- Loading branch information
1 parent
5a796bd
commit c5738df
Showing
5 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 2.2.11 on 2022-07-09 15:21 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('facility', '0300_merge_20220707_2339'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='patientconsultation', | ||
name='discharge_notes', | ||
field=models.TextField(blank=True, default='', null=True), | ||
), | ||
migrations.AddField( | ||
model_name='patientconsultation', | ||
name='discharge_reason', | ||
field=models.CharField(blank=True, choices=[('REC', 'Recovered'), ('REF', 'Referred'), ('EXP', 'Expired')], default=None, max_length=4, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters