Incidents: Add optional patient impacted field
See original GitHub issueš 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:
patient?: string
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
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Are You Filing Incident Reports Properly? - NSO
Filling Out an Effective Incident Reportāā Include the full names of those involved and any witnesses, as well as any information you have...
Read more >ICS Form 209, Incident Status Summary - FEMA Training
Short Location or Area Description (list all affected areas or a ... While most of the āIncident Location Informationā in Blocks 16ā26 is...
Read more >The occurrence, types, consequences and preventability of in ...
Adverse events (AEs) seriously affect patient safety and quality of care, and remain a pressing global issue. This study had three objectives: (Ā ......
Read more >Instructions for Completing the CMS 1500 Claim Form
26 optional. Patient's Account Number -Enter the patient's medical record number or account number in this field. This number will be reflected on...
Read more >SNF PPS: Patient Driven Payment Model - CMS
The Patient Driven Payment Model (PDPM), effective October 1, 2019, ... increased therapy utilization also increased impact of the AIDS add-on, contrary to....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
onSearch you pass a function that receive a string as argument and you return a Promise of the Search of that string from the Database.
onChange is when the user select a Patient. In this case, this callback receive a Patient as argument (actually an array of Patient but with just one Patient) and then you update the incidente state.
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.
I would like to take it