-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to upload patient file in External Result #7101
Comments
Can you please describe what should be the expected behaviour? |
Hey, I think I get what's the problem. It won't let you save the records if there are no valid records. If that needs to be changed, I'll change it. @Sunilsubba please assign me this issue. I'll raise a PR. |
State admin should be able to upload the patient files of all the districts of that particular state. "Different District" must not come up for all the districts of the respective state. |
Hi, @gigincg, @nihal467, @khavinshankar, @mathew-alex, @aparnacoronasafe, This issue has been automatically marked as stale because it has not had any recent activity. |
Hey @rithviknishad , I'm interested to work on this issue, can I please get it assigned? |
Hey @rithviknishad , I'm interested to work on this issue, can I please get it assigned? |
Hey, @jainvedant392 are you working on the issue, or can I proceed with it. |
Hey @Sunilsubba , can you tell me if I'm correct or not, If the user is a StateAdmin then it may add patients of any district in the state, whereas if it is a district admin then the patient allowed should be of same district, and the rest other cases would throw an error. |
Hey @SinghYuvraj0506 , actually I am working on this issue. |
Hey @rithviknishad @Sunilsubba, I wanted once to discuss the approach of this issue. |
So when the logged in user has a "user_type": "StateAdmin", he should be able to upload the files such that, if the user and patient in the file has same state, "Different Districts" should not be visible. |
And if the states of both are different, then only we should set the "validationErrorCount". Right? |
@jainvedant392 Hey, if the user type is a state admin then it should be allowed to import patients of all the districts. |
----Describe the bug----
Restricted to import patients. CSV file, the error comes out as "Different District".
It will only work when the User's ( State admin) District from the location is the same as the District from the Patient. CSV File
----Steps to reproduce----
1- Log in
2- Go to External Result/ import Result/
3- Click on "Sample Format" and download.
4- Click on "Choose File" and Upload that sample format
https://care.coronasafe.in/external_results/upload
----Login Credentials----
Username: state_admin123
Password: Lilo@123
----Screenshots----
The text was updated successfully, but these errors were encountered: