Nuts!
-
OK, this is driving me nuts. It was working perfectly fine yesterday and NOTHING has changed since then but it has stopped working. What is going on?
List<RCH.EL.EMR.Allergies> AllAllergies
{ get; set; }List<RCH.EL.EMR.Allergies> RemainingAllergies
{ get; set; }List<RCH.EL.EMR.Allergies> PatientAllergies
{ get; set; }protected override void LoadForm()
{
//lots of code
//retrieve the data
AllAllergies = AllergiesBL.GetAllFromDB();
PatientAllergies = PatientAllergiesBL.GetFromDB(CurrentPatient.PatientID);
RemainingAllergies = new List<EL.EMR.Allergies>();ResolveAllergies();
//Bind
Bind();}
private void ResolveAllergies()
{
RemainingAllergies = AllAllergies.Except(PatientAllergies).ToList();
}Yesterday, method Resolveallergies() worked properly, not now. Why? What am I doing wrong? I've wasted so much time on what should be a pathetically simple issue.
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?
The namespace names are... very terse! Hey is it a commercial project? I'm very interested in allergies myself, I'd like to know more! Anyway, AllergiesBL and PatientAllergiesBL seems like different data source, returning different data, maybe someone update the id or something in one db and not the other? Juts an idea...
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
-
OK, this is driving me nuts. It was working perfectly fine yesterday and NOTHING has changed since then but it has stopped working. What is going on?
List<RCH.EL.EMR.Allergies> AllAllergies
{ get; set; }List<RCH.EL.EMR.Allergies> RemainingAllergies
{ get; set; }List<RCH.EL.EMR.Allergies> PatientAllergies
{ get; set; }protected override void LoadForm()
{
//lots of code
//retrieve the data
AllAllergies = AllergiesBL.GetAllFromDB();
PatientAllergies = PatientAllergiesBL.GetFromDB(CurrentPatient.PatientID);
RemainingAllergies = new List<EL.EMR.Allergies>();ResolveAllergies();
//Bind
Bind();}
private void ResolveAllergies()
{
RemainingAllergies = AllAllergies.Except(PatientAllergies).ToList();
}Yesterday, method Resolveallergies() worked properly, not now. Why? What am I doing wrong? I've wasted so much time on what should be a pathetically simple issue.
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?
Is it about nut allergy?!? ;P
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
-
OK, this is driving me nuts. It was working perfectly fine yesterday and NOTHING has changed since then but it has stopped working. What is going on?
List<RCH.EL.EMR.Allergies> AllAllergies
{ get; set; }List<RCH.EL.EMR.Allergies> RemainingAllergies
{ get; set; }List<RCH.EL.EMR.Allergies> PatientAllergies
{ get; set; }protected override void LoadForm()
{
//lots of code
//retrieve the data
AllAllergies = AllergiesBL.GetAllFromDB();
PatientAllergies = PatientAllergiesBL.GetFromDB(CurrentPatient.PatientID);
RemainingAllergies = new List<EL.EMR.Allergies>();ResolveAllergies();
//Bind
Bind();}
private void ResolveAllergies()
{
RemainingAllergies = AllAllergies.Except(PatientAllergies).ToList();
}Yesterday, method Resolveallergies() worked properly, not now. Why? What am I doing wrong? I've wasted so much time on what should be a pathetically simple issue.
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?
First of all, what data are you getting back? Have you checked what's in AllAllergies and PatientAllergies? You know the drill; set your breakpoint and trace the values.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
The namespace names are... very terse! Hey is it a commercial project? I'm very interested in allergies myself, I'd like to know more! Anyway, AllergiesBL and PatientAllergiesBL seems like different data source, returning different data, maybe someone update the id or something in one db and not the other? Juts an idea...
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
Terse?! How did you come to that conclusion? :laugh:
Super Lloyd wrote:
Hey is it a commercial project? I'm very interested in allergies myself, I'd like to know more!
Yep. Ask away, I'm dealing heavily in this right now. If I don't have the answer, I can get you free responses from the Doctors I work with :)
Super Lloyd wrote:
Anyway, AllergiesBL and PatientAllergiesBL seems like different data source, returning different data, maybe someone update the id or something in one db and not the other?
Nope, I'm the only one working on this. Yes, they write and (on the whole) read from different views/tables, but retrieving the data for this particular form, PatientAllergies returns the exact same data (format wise, not actual content obviously) as AllAllergies.
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?
-
First of all, what data are you getting back? Have you checked what's in AllAllergies and PatientAllergies? You know the drill; set your breakpoint and trace the values.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
The data is 100% right, I checked it till my eyes bled. AllAllergies and PatientAllergies are correct. The only point of failure (and insanity) is the failure of the ResolveAllergies() method and in particular this line of code:
RemainingAllergies = AllAllergies.Except(PatientAllergies).ToList();
point of clarification: PatientAllergies is the list that contains the allergies that are "registered" to the user, meaning he suffers from them. AllAllergies on the other hand, contains a non-exhaustive list of all the allergies that a patient might have. RemainingAllergies is (set wise) AllAllergies - PatientAllergies. (sorta obvious because of the Except method)
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?
-
The data is 100% right, I checked it till my eyes bled. AllAllergies and PatientAllergies are correct. The only point of failure (and insanity) is the failure of the ResolveAllergies() method and in particular this line of code:
RemainingAllergies = AllAllergies.Except(PatientAllergies).ToList();
point of clarification: PatientAllergies is the list that contains the allergies that are "registered" to the user, meaning he suffers from them. AllAllergies on the other hand, contains a non-exhaustive list of all the allergies that a patient might have. RemainingAllergies is (set wise) AllAllergies - PatientAllergies. (sorta obvious because of the Except method)
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?
So what's wrong with RemainingAllergies? Are you not getting any data back? Are you getting too much data? Is the data wrong? You haven't given us a lot to go on here mate. What about setting a local variable here, and see what you get with that?
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
Is it about nut allergy?!? ;P
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
Y'know, I keep on hearing about different people who have some sort of allergy to peanuts or almonds or pistachios, but thankfully I don't have such an allergy (and none at all in fact) and neither have I met them. Must be a conspiracy :suss:
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?
-
OK, this is driving me nuts. It was working perfectly fine yesterday and NOTHING has changed since then but it has stopped working. What is going on?
List<RCH.EL.EMR.Allergies> AllAllergies
{ get; set; }List<RCH.EL.EMR.Allergies> RemainingAllergies
{ get; set; }List<RCH.EL.EMR.Allergies> PatientAllergies
{ get; set; }protected override void LoadForm()
{
//lots of code
//retrieve the data
AllAllergies = AllergiesBL.GetAllFromDB();
PatientAllergies = PatientAllergiesBL.GetFromDB(CurrentPatient.PatientID);
RemainingAllergies = new List<EL.EMR.Allergies>();ResolveAllergies();
//Bind
Bind();}
private void ResolveAllergies()
{
RemainingAllergies = AllAllergies.Except(PatientAllergies).ToList();
}Yesterday, method Resolveallergies() worked properly, not now. Why? What am I doing wrong? I've wasted so much time on what should be a pathetically simple issue.
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?
Maybe you have modified the Equals() method? I mean public override bool Allergy.Equals()
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
-
So what's wrong with RemainingAllergies? Are you not getting any data back? Are you getting too much data? Is the data wrong? You haven't given us a lot to go on here mate. What about setting a local variable here, and see what you get with that?
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
Ah, my apologies on that one! :humbled: Its returning the exact contents of AllAllergies (too much data) and its not removing the list items that are shared in both AllAllergies and PatientAllergies.
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?
-
Terse?! How did you come to that conclusion? :laugh:
Super Lloyd wrote:
Hey is it a commercial project? I'm very interested in allergies myself, I'd like to know more!
Yep. Ask away, I'm dealing heavily in this right now. If I don't have the answer, I can get you free responses from the Doctors I work with :)
Super Lloyd wrote:
Anyway, AllergiesBL and PatientAllergiesBL seems like different data source, returning different data, maybe someone update the id or something in one db and not the other?
Nope, I'm the only one working on this. Yes, they write and (on the whole) read from different views/tables, but retrieving the data for this particular form, PatientAllergies returns the exact same data (format wise, not actual content obviously) as AllAllergies.
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?
I would like to know about Gluten intolerance and Caseine intolerance. I don't know if it's an allergy because it's not killing me. But it does spoil my life (slowly but surely). Except since I discovered about it recently I made some progress! :-D And also it seems to affect the brain (I read), not as an allergen but as something else...
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
-
Maybe you have modified the Equals() method? I mean public override bool Allergy.Equals()
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
Haven't touched it. Like I said, I did not touch the code since yesterday, heck I didn't even turn off the computer!
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?
-
I would like to know about Gluten intolerance and Caseine intolerance. I don't know if it's an allergy because it's not killing me. But it does spoil my life (slowly but surely). Except since I discovered about it recently I made some progress! :-D And also it seems to affect the brain (I read), not as an allergen but as something else...
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
Will do, but what exactly would you like to know? I'll be seeing them next Monday or Tuesday (I'll be getting a confirmation in an hour) so would it be alright then? They're clear across town.
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?
-
Will do, but what exactly would you like to know? I'll be seeing them next Monday or Tuesday (I'll be getting a confirmation in an hour) so would it be alright then? They're clear across town.
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?
What would I like to know exactly? Mmhh... good question. I'd like to know everything! :-) But that might be too much to ask... How about: I heard they were doing a world first gluten intolerance / celiac disease curative shot in Australia recently. Do they know about that and have any idea about the time to market?
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
-
Haven't touched it. Like I said, I did not touch the code since yesterday, heck I didn't even turn off the computer!
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?
I believe you but you know... something has to change for the code to behave differently! Check out the SVN history for any changes between yesterday and today? Maybe something in the database, do you have anyway to know what changed?
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
-
I would like to know about Gluten intolerance and Caseine intolerance. I don't know if it's an allergy because it's not killing me. But it does spoil my life (slowly but surely). Except since I discovered about it recently I made some progress! :-D And also it seems to affect the brain (I read), not as an allergen but as something else...
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
Super Lloyd wrote:
I would like to know about Gluten intolerance
Talk to me buddy - my wife is gluten intolerant. We've learned more about it than we ever wanted to know (especially how hard it is to find decent gluten free bread).
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
Super Lloyd wrote:
I would like to know about Gluten intolerance
Talk to me buddy - my wife is gluten intolerant. We've learned more about it than we ever wanted to know (especially how hard it is to find decent gluten free bread).
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
I wonder, have you heard they are testing some Gluten intolerance curative shot in Australia? Also Gluten intolerance cause heaps of nasty and mysterious symptoms. Do they go away for good? How long does it takes?
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
-
Will do, but what exactly would you like to know? I'll be seeing them next Monday or Tuesday (I'll be getting a confirmation in an hour) so would it be alright then? They're clear across town.
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?
Also Gluten intolerance cause heaps of nasty and mysterious symptoms. Do they go away for good? (when one has a gluten free diet) How long does it takes?
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
-
I wonder, have you heard they are testing some Gluten intolerance curative shot in Australia? Also Gluten intolerance cause heaps of nasty and mysterious symptoms. Do they go away for good? How long does it takes?
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
Super Lloyd wrote:
I wonder, have you heard they are testing some Gluten intolerance curative shot in Australia?
I haven't heard that, but it would be good if they could cure it.
Super Lloyd wrote:
Also Gluten intolerance cause heaps of nasty and mysterious symptoms. Do they go away for good?
No. Not eating gluten keeps the symptoms at bay, but they haven't disappeared. With my wife, gluten triggers chronic stomach pains, and her iron count plummets because the villi just cannot process the gluten in the food.
Super Lloyd wrote:
How long does it takes?
It depends on how long you've been Coeliac, and how severe your symptoms have been. If you've just got a mild case, or haven't had it too long, then it shouldn't take too long for your symptoms to abate.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
Super Lloyd wrote:
I wonder, have you heard they are testing some Gluten intolerance curative shot in Australia?
I haven't heard that, but it would be good if they could cure it.
Super Lloyd wrote:
Also Gluten intolerance cause heaps of nasty and mysterious symptoms. Do they go away for good?
No. Not eating gluten keeps the symptoms at bay, but they haven't disappeared. With my wife, gluten triggers chronic stomach pains, and her iron count plummets because the villi just cannot process the gluten in the food.
Super Lloyd wrote:
How long does it takes?
It depends on how long you've been Coeliac, and how severe your symptoms have been. If you've just got a mild case, or haven't had it too long, then it shouldn't take too long for your symptoms to abate.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
thanks! in my case it has been very mild and very long! but, over many years, it has very slowly grow from mild to severe (and mysterious). only recently I realized it was this! I hope it won't take as long to get better...
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
-
I believe you but you know... something has to change for the code to behave differently! Check out the SVN history for any changes between yesterday and today? Maybe something in the database, do you have anyway to know what changed?
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
SVN Logs, my memory, and my sister's memory. Can't think of anything else.
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?