Add additional fields in shifting form #1265
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Required for coronasafe/care_fe#5323
Related Issue: coronasafe/care_fe#5300
This pull request adds new fields to the Shifting Serializer and the Shifting Request model.
In the Shifting Serializer, the following changes the made:
patient_category
: a ChoiceField with the following options: 'Comfort Care', 'Stable', 'Abnormal' and 'Critical'ambulance_driver_name
: a CharField that allows blank and null valuesambulance_phone_number
: a PhoneNumberIsPossibleField that allows blank and null valuesambulance_number
: a CharField that allows blank and null valuesIn the Shifting Request model, the following fields are added:
ambulance_driver_name
: a TextField that allows blank valuesambulance_phone_number
: a CharField that allows blank values and is validated with a RegexValidatorambulance_number
: a TextField that allows blank valuespatient_category
: a CharField with the same options as the Shifting Serializer's patient_category field.@coronasafe/code-reviewers