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

Add additional fields in shifting form #1265

Merged
merged 1 commit into from
Apr 22, 2023

Conversation

Ashesh3
Copy link
Member

@Ashesh3 Ashesh3 commented Apr 22, 2023

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 values
  • ambulance_phone_number: a PhoneNumberIsPossibleField that allows blank and null values
  • ambulance_number: a CharField that allows blank and null values

In the Shifting Request model, the following fields are added:

  • ambulance_driver_name: a TextField that allows blank values
  • ambulance_phone_number: a CharField that allows blank values and is validated with a RegexValidator
  • ambulance_number: a TextField that allows blank values
  • patient_category: a CharField with the same options as the Shifting Serializer's patient_category field.

@coronasafe/code-reviewers

@Ashesh3 Ashesh3 requested a review from a team as a code owner April 22, 2023 16:40
@sonarcloud
Copy link

sonarcloud bot commented Apr 22, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

@codecov-commenter
Copy link

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.04 🎉

Comparison is base (6650b79) 56.28% compared to head (5301927) 56.33%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1265      +/-   ##
==========================================
+ Coverage   56.28%   56.33%   +0.04%     
==========================================
  Files         195      195              
  Lines        9565     9575      +10     
  Branches     1606     1606              
==========================================
+ Hits         5384     5394      +10     
  Misses       4126     4126              
  Partials       55       55              
Impacted Files Coverage Δ
care/facility/api/serializers/shifting.py 51.82% <100.00%> (+1.82%) ⬆️
care/facility/models/shifting.py 79.03% <100.00%> (+1.83%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@vigneshhari vigneshhari merged commit c208c46 into coronasafe:master Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants