-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Incidents: Add optional patient impacted field #2493
Comments
I would like to take it |
Absolutely @CreaTorAlexander, thanks |
Hi, I think I can handle this one if its not under someone else development |
Hi, can I be assigned to this issue? |
Wait a minute. Is anyone working on this? @blestab? |
Looks like @CreaTorAlexander removed themself as an assignee, I am guessing that means they are no longer looking at it? I think @mattkuzco or @rsousaj could be assigned to take over this one. |
Yeah @mattkuzco, go ahead buddy |
Hey, sorry to bother :( I don't know if this is the best place to ask, but I'm having some trouble with the Typeahead component. I think I need the onInputChange callback to detect if the user is trying to enter a patient (to check if the field is blank, or in the case the patient doesn't exist to display an error message) but I'm not so confident with typescript so I'm not really sure how to add the callback. I tried editing the Typeahead.d.ts file and adding it there hoping it would be called from the typeahead.js but of course that's not the way |
I don't think I'm the best here to help you but I'd like to try. From what I've used, the component receives onChange and onSearch as callbacks.
So, I didn't understand why you need to display an error message. If the user type a search string that does not return a Patient, the field will be empty and perhaps its fine. I hope I've helped. Ps.: The Typeahead component is based on AsyncTypeahead from 'react-bootstrap-typeahead', if you want to know more. |
Oh I thought about doing that, yeah for that onSearch and onChange are perfectly fine. It's just I wasn't sure if I had to it this way (pass a null patient on partial input) or prohibit inserting an incident when patient field contains invalid input. Thank you! |
🚀 Feature Proposal
When recording a new incident or editing an existing one, add the ability to specify the impacted patient. This field will be optional.
Motivation
Some incidents impact patients while others will not. The system should provide a way to specify an impacted patient (if any)
Technical Details
Incident Model
Add an optional patient field:
Report Incident Form
Add an optional "Impacted Patient" field which updates the new patient field on the incident model
The user must either specify an existing patient or leave the field blank
NOTE; See the Request Lab form for an example of how to add the patient form element to the report incident form
The text was updated successfully, but these errors were encountered: