Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Patient ID can be made the same #572

Closed
ghost opened this issue Jul 15, 2016 · 12 comments
Closed

Patient ID can be made the same #572

ghost opened this issue Jul 15, 2016 · 12 comments
Labels
🐛bug issue/pull request that documents/fixes a bug in progress indicates that issue/pull request is currently being worked on

Comments

@ghost
Copy link

ghost commented Jul 15, 2016

Expected behavior:
The Patient ID should be completely unique to the patient. Although the database has its own unique id for each patient and the patient ID is just a user-friendly one, it should still be completely unique to avoid mixing up patients.

Actual behavior:
When making a new patient the Patient ID can be edited to a patient ID that already exists.

Steps to reproduce:

  • Make a new patient and take note of the ID
  • Make another patient and edit the ID to be the same

Screenshots (if applicable):
patient id

OS and Browser:
OS - Windows 10
Browser - Version 51.0.2704.103 m

@tangollama tangollama added 🐛bug issue/pull request that documents/fixes a bug Patient help wanted indicates that an issue is open for contributions labels Jul 22, 2016
@JSchneidler
Copy link

I'll see if I can tackle this. Would it be acceptable to just make an API request when the Id field is changed to check if it has already been used?

@jkleinsc
Copy link
Member

Thanks @JSchneidler ! If you look at app/mixins/patient-id, there is code there that generates this id on a new record via the generateFriendlyId function. That function queries a couch view called patient_by_display_id. You can query this same view to find out if an id is being used.

@taras
Copy link
Contributor

taras commented Sep 24, 2016

@JSchneidler are you able to look at this issue? If you are, I'd like to assign it to you. Otherwise, we'll assign it to someone else.

Please, let us know if you're able to work on it.

@gnowoel
Copy link
Contributor

gnowoel commented Sep 24, 2016

@taras Since I'm working on a related issue (#485) , I'd be happy to take this if no one else does.

@mdarmanin
Copy link
Contributor

mdarmanin commented Oct 8, 2016

Is this assigned? I don't see anyone assigned yet. I am looking into it now.

@jkleinsc
Copy link
Member

@mdarmani @gnowoel is working on this.

@yasirunilan
Copy link

is this one assigned? I would like to work on this.

@jkleinsc
Copy link
Member

@yasirunilan @gnowoel is working on this one.

@mdarmanin
Copy link
Contributor

mdarmanin commented Oct 10, 2016

@jkleinsc Shouldn't they be assigned to this? I am looking for a Hackathon story to pick up. Or can we work on this as a trio?

@jkleinsc jkleinsc added the in progress indicates that issue/pull request is currently being worked on label Oct 10, 2016
@jkleinsc
Copy link
Member

@mdarmani I can't assign issues to outside contributors, so our workflow for issues is to remove the help wanted tag once someone starts working on it, so if you are looking for something to work on, take a look at the help wanted issues:
https://github.com/HospitalRun/hospitalrun-frontend/issues?q=is%3Aopen+is%3Aissue+label%3A%22Help+Wanted%22

@mdarmanin
Copy link
Contributor

@jkleinsc Right thanks for the reply. Is this software currently being used by Cure International in Dubai? Is it ready to use? Seems like more development is necessary.

@jkleinsc
Copy link
Member

@mdarmani This software is currently being used by some CURE International Hospitals, but not the one in the UAE. As far as ready to use, from our perspective, we are trying to get to a 1.0 by the end of the year, which we would consider in a state for general use. You can use it as is right now, but we are actively adding new features.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛bug issue/pull request that documents/fixes a bug in progress indicates that issue/pull request is currently being worked on
Projects
None yet
Development

No branches or pull requests

8 participants