Can AppGini do this?
Posted: 2013-05-17 21:07
Hi all!
So I’m totally new to AppGini but already I love it. I don’t have much experience with sql so or php so this might be just the thing to help with the project I’m working on. Im a doctor and im trying to create a website for nurses in my hospital to record patient observations. The idea is that the nurse can enter the patient’s hospital number into a search field, return the patient’s name and date of birth (to ensure they have entered the correct number), and then add a new record for that patient of their blood pressure, heart rate, and other data (including date and time which would automatically add as read-only fields). This information can then be accessed by the doctor.
I’ve been playing around with AppGini and it seems like it can probably do this, am I right?
Here’s what I have so far:
I need two tables. Table 1 will contain fields: ID, Hospital number, DOB, Name. Table 2 will contain fields: ID, Hospital number, Date, Time, Heart rate, Blood pressure, etc…
The Hospital number field in table 2 will be a foreign key so that doctors know which patient the records are from.
The place I’ve got stuck so far is:
1) I only want to search using one filter: hospital number, is equal to. I would like to hide the other filter options to clean up the page and make it easy to use. Is there maybe a way to post to this from an external HTML form so as not to make too many changes to the php? (something like “table1_view.php?hospital_number=123456†– although that doesn’t actually work, I’ve tried!) or maybe this can be done with ‘hooks’?
2) Once the nurses have located the record in table 1, and confirmed they have the right patient from the name and date of birth, I want them to be able to click on a button to take them to an input form for table 2, to enter that patient’s observations (heart rate, BP, etc…). At the moment, clicking the record takes them into the record for table 1 that they just searched for. It would also be very useful if there was some way to pass the hospital number to the form to add a record to table 2, rather than using a lookup field which produces a drop down menu which would contain thousands of patients, and runs the risk selecting the wrong patient again.
3) Finally, my last question is how can I make it so that once a table 2 entry has been added, the nurse is redirected to another page after clicking ‘save new’, rather than staying on that record. I would also like to pass the data on to another page also, again maybe in the url? (eg: /nextpage.php?hospital_no=123456&heart_rate=123&BP=123, for example).
Sorry, ive asked a lot of questions there! Any help anyone can offer with any part of this would be amazing. Thanks in advance for any replies! Im pleased i found this great bit of software - if i can do these things i will certainly be buying a license!
Matt
So I’m totally new to AppGini but already I love it. I don’t have much experience with sql so or php so this might be just the thing to help with the project I’m working on. Im a doctor and im trying to create a website for nurses in my hospital to record patient observations. The idea is that the nurse can enter the patient’s hospital number into a search field, return the patient’s name and date of birth (to ensure they have entered the correct number), and then add a new record for that patient of their blood pressure, heart rate, and other data (including date and time which would automatically add as read-only fields). This information can then be accessed by the doctor.
I’ve been playing around with AppGini and it seems like it can probably do this, am I right?
Here’s what I have so far:
I need two tables. Table 1 will contain fields: ID, Hospital number, DOB, Name. Table 2 will contain fields: ID, Hospital number, Date, Time, Heart rate, Blood pressure, etc…
The Hospital number field in table 2 will be a foreign key so that doctors know which patient the records are from.
The place I’ve got stuck so far is:
1) I only want to search using one filter: hospital number, is equal to. I would like to hide the other filter options to clean up the page and make it easy to use. Is there maybe a way to post to this from an external HTML form so as not to make too many changes to the php? (something like “table1_view.php?hospital_number=123456†– although that doesn’t actually work, I’ve tried!) or maybe this can be done with ‘hooks’?
2) Once the nurses have located the record in table 1, and confirmed they have the right patient from the name and date of birth, I want them to be able to click on a button to take them to an input form for table 2, to enter that patient’s observations (heart rate, BP, etc…). At the moment, clicking the record takes them into the record for table 1 that they just searched for. It would also be very useful if there was some way to pass the hospital number to the form to add a record to table 2, rather than using a lookup field which produces a drop down menu which would contain thousands of patients, and runs the risk selecting the wrong patient again.
3) Finally, my last question is how can I make it so that once a table 2 entry has been added, the nurse is redirected to another page after clicking ‘save new’, rather than staying on that record. I would also like to pass the data on to another page also, again maybe in the url? (eg: /nextpage.php?hospital_no=123456&heart_rate=123&BP=123, for example).
Sorry, ive asked a lot of questions there! Any help anyone can offer with any part of this would be amazing. Thanks in advance for any replies! Im pleased i found this great bit of software - if i can do these things i will certainly be buying a license!
Matt