-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Secondary, tertiary (etc) addresses, phone numbers, and emails for a patient #1920
Comments
May I help on this? |
I've assigned this to you, @alti21. Please reach out if you have any questions! |
@jackcmeyer I'm having some trouble with this. I'm quite new to typescript just to let you know. I'm having trouble with this: Will require changes to the Patient model to support a list of addresses, phone numbers, emails. I changed phoneNumber into an array in ContactInformation.ts:
But then when I try to access patient.phonenumber[0] in GeneralInformation.ts, I get an error saying that patient.phoneNumber is undefined |
You have the right idea for adding how to define the phone numbers as an array. I'm guessing that the patient that you are looking at has no phone numbers defined for them. If that's the case, then When using an array accessor on undefined, you'll receive the error that you are getting. Before accessing the patient's phoneNumber you'll want to check first its not |
@jackcmeyer thanks for the help, I got that part figured out now. I do need some help with the translations, as I want to have different labels for the new fields. Is there a file that has the translations? |
Hi @jackcmeyer, May I work on this issue? |
@sourabbanka22 I've assigned this to you! |
Hi , @jackcmeyer I have implemented the feature to define secondary, tertiary, etc. phone numbers, addresses, and emails for a patient. Following are some screenshots of the implemented functionality: After Adding PhoneNumber and Email: Adding Multiple PhoneNumbers, etc Does this look OK to you? |
@sourabbanka22 could you open a PR that can build so we can play around on the preview? |
@jackcmeyer as I have made quite a few number of changes in the Patient model to support a list of addresses, phone numbers, emails also some additional changes to some models to support the label of the phone number, address, or email because of which some tests requires to be updated accordingly, I would require some help with that. Should I open a PR with these Test Cases failing? |
A Feature that adds the ability to define secondary, tertiary, etc. phone numbers, addresses, and emails for a patient. New Feature HospitalRun#1920
@jackcmeyer I just opened a PR, Currently I have commented out a few tests related to newly created Phone Number, Email and Address Models Please let me know if there are any Modifications or Changes required. |
Design Changes for Phone Number, Email and Address Model fix HospitalRun#1920
Some Bug Fixes and Tests Updated fix HospitalRun#1920
Issue relating to Saved and UnSaved Phone Numbers, Emails, Adresses when the user does not click the Add Button fix HospitalRun#1920
Improved Input Validation for PhoneNumbers, Emails, Adresses by checking if the user input is Valid or Invalid also whether the input is empty or not fix HospitalRun#1920
Adding Missing Tests and corrected Existing Tests for Phone Number, Email and Address Model fix HospitalRun#1920
Adding Missing Tests and corrected Existing Tests for Phone Number, Email and Address Model fix HospitalRun#1920
Screenshots look good. |
Component Instances for Phone Numbers, Addresses and Emails re HospitalRun#1920
Hi, PR is ready for your review at #2113. Thank you! |
🚀 Feature Proposal
I would like the ability to define secondary, tertiary, etc. phone numbers, addresses, and emails for a patient.
When creating a new patient or editing patient, I should be able to add these extra fields.
It should also be able to label what kind of phone number, address, or email it is.
Phone numbers can be one of the following:
Email can be one of the following:
Addresses can one of the following:
Motivation
We should be flexible in the type of data that can handle.
Example
Technical notes
The text was updated successfully, but these errors were encountered: