-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Warn for possible duplicates when adding New Patient #461
Comments
@tangollama waiting for first name and family name to be provided is a tricky if you really want to perform a fuzzy (aka smart search), because how do you know when the user is completely done filling out these fields? I think there are two different ways to accomplish this functionality:
|
If we went with option 2, here are some details as to what would need to be done;
let searchText = 'joe';
let queryParams = {
containsValue: {
value: searchText,
keys: [{
name: 'firstName',
type: 'fuzzy' //Do a fuzzy search (only is fuzzy when ElasticSearch is used)
}, {
name: 'lastName',
type: 'contains' //Do a contains search (eg lastName contains joe somewhere in the name).
}],
}
};
this.store.query('patient', queryParams).then((response) => {
// response contains search results
}, (error) =>{
// error executing search
}); More information about DS.Store.query can be found here: http://emberjs.com/api/data/classes/DS.Store.html let queryParams = {
containsValue: {
value: searchText,
keys: [{
name: 'firstName',
value: 'joe',
type: 'fuzzy' //Do a fuzzy search (only is fuzzy when ElasticSearch is used)
}, {
name: 'lastName',
value: 'donuts',
type: 'contains' //Do a contains search (eg lastName contains donuts somewhere in the name).
}],
}
}; In order to do this, you will need to modify
|
I think this makes sense as a feature- though I wonder if it violates privacy. Is there a recommended way of implementing this so that the patient is not confirmed via name (for instance, if a possible duplicate is found, prompts for DOB). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
When entering a new patient, the system would wait for the first name and family name to be provided and then send a callback to the system to determine if there are possible matches.
If a match(es) are found, present those in an alert with the option to navigate to that patient record.
Ideally, this search would be smart, examining best match scenarios.
Optional: the ability to configure the system to include birthdate as part of the required fields for a search.
TODO
The text was updated successfully, but these errors were encountered: