I created a new issue type and modify a little bit the add-edit-issue.php. I want the new text area that I inserted to be shown only to the new issue type. I try the if statement, but it didn’t work.
It shows up all the time, I tried to confine it to be shown only in my own issue type. Yes I already took care saving and database. I followed the whole structure of that file. When I tried to insert the code elsewhere I got blank page…
Do you know which part of the code is for the url openemr/interface/patient_file/summary/add_edit_issue.php?issue=9&thistype
because I notice that it doesn’t call the type of the issue and with the changes that I made, it is necessary, because it doesn’t appear the text area that I added.
Assuming that you are trying to edit the saved issue from patient dashboard section, you need to edit the code ‘$(".statrow").click(function() { dopclick(this.id,0); });’ and its related functionality in the file ‘/interface/patient_file/summary/stats_full.php’. This code provides the url to enable editing of a saved issue.
That is exactly what I was looking for. Does this function read from database? I notice it reads the id as it is in the database, but when I try to get this to read the type, ex. medical_problem, I fail. I try several ways, actually I change the line
The value id is passed dynamically when a saved issue of a patient is clicked. Similarly for the function dopclick() you need to pass the value for ‘category’ dynamically through the code ‘$(".statrow").click(function() { dopclick(this.id,0); });’ to receive it under the url parameter ‘thistype’.
but when I try to click to edit the saved issue the link doesn’t work, because the value category when is empty is undefined. Is there a way to retrieve its value from database where id = this.id?