question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rsousajcommented, Dec 27, 2020

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.

  1. 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.

  2. 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.

1reaction
CreaTorAlexandercommented, Dec 11, 2020

I would like to take it

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found