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

Download Discharge Summary, Medicine Administration Records and upgraded Prescriptions #5458

Merged
merged 55 commits into from
May 24, 2023

Conversation

rithviknishad
Copy link
Member

@rithviknishad rithviknishad commented May 10, 2023

Some parts were co-authored by @sainak, @shivankacker

Associated Backend PRs

Associated Issues

Proposed Changes

New FormField Component: NumericWithUnitsFormField

Example Usage:

<NumericWithUnitsFormField
  className="flex-1"
  label="Dosage"
  {...field("dosage", RequiredFieldValidator())}
  required
  units={["mg", "g", "ml", "drop(s)", "ampule(s)", "tsp"]}
  min={0}
/>

image

Create Prescription Form uses the new Form higher order component.

  1. Create a form context
  2. Pass onSubmit (async) and onCancel callbacks.
  3. Write validation
  4. Compose the parts of the form using the field method.
  5. And forget about managing the state by yourself from now on 😄

image

Manage Prescription Medications and PRN Prescriptions specific to a consultation

image
image
image

Administer a prescription

image

Discontinue a prescription

image

View list of Normal and PRN Prescriptions

image

Click on a row/entry to view detailed information about a prescription

image

View Medicine Administration History

image

Select multiple prescriptions to be administered at once

image

Prescriptions during Discharge

image

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

@rithviknishad rithviknishad removed the merge conflict pull requests with merge conflict label May 17, 2023
@nihal467
Copy link
Member

LGTM

@github-actions github-actions bot added the cypress failed pull request with cypress test failure label May 17, 2023
@nihal467
Copy link
Member

@rithviknishad
image

when i select the " Select for Administration " in the administer medicine,

@github-actions github-actions bot added the cypress failed pull request with cypress test failure label May 24, 2023
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@nihal467
Copy link
Member

LGTM

@khavinshankar khavinshankar merged commit 14f9547 into develop May 24, 2023
@khavinshankar khavinshankar deleted the prescriptions-v2 branch May 24, 2023 15:22
@github-actions
Copy link

@rithviknishad We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cypress failed pull request with cypress test failure Major Code Change This Tag represent PR, which will be causing major Code change in the platform tested
Projects
None yet
3 participants