473,406 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Decision support systems

I have a question regarding databases and decision support systems.

If a patient/procedure database was being used in a hospital for decision support what storage considerations may have to be made?

and what two features of this database will aid retrieval of information for decision support purposes.

Also I am trying to formulate a query that will extract patient information for those patients who have not been assigned a procedure. So far I've not been able to do that. any tips or hints will be appreciated

thx
Aug 2 '08 #1
5 1926
Stewart Ross
2,545 Expert Mod 2GB
Sorry, cooljool, you have not provided anywhere near enough information for us to provide you with an informed answer. As presented above, your question looks very like an extract from a coursework assignment. If it is, our site rules and the simple immorality of plagiarism would prevent us from providing you with a fleshed out answer with no input from you. See our FAQ linked here for chapter and verse on our policy.

If this is not a coursework question, your request is too broad for us to answer. We can assist you with specifics if you can tell us what you need to know, but in an Access forum it is inappropriate to ask us to work out volumetrics on an unknown system for an unknown purpose - decision support as a term does not help us know what you are trying to do.

If you can ask us a specific question we'd be delighted to help you, within the boundaries of the site rules of course.

Regarding extracting data please post the SQL for what you have tried so far, along with the metadata for your tables (the names of the fields and the PK/FK relationships between them) so we can see where you may have gone wrong so far.

-Stewart
Aug 2 '08 #2
thanks for the reply.

regarding the database, it basically shows three tables. a patient information table. A procedure table and a patient-procedure table.

the relationship is many to many meaning that the same patient can have more than one procedure code.

what I'm trying to do is extract information about all those patients who have no procedure code. I've tried putting 0 in the criteria for the Code field when trying to formulate the query. but it has returned blank results.

I think I might need a function but i am not sure which function to choose

many thx
Aug 3 '08 #3
Stewart Ross
2,545 Expert Mod 2GB
Hi. Reading between the lines a little here if you have a many-many relationship between patient and procedure, you must have resolved this into two 1-manys to implement it relationally (presumably with the patient-procedure link table). if you want to find all patients with no procedures you need to use a LEFT JOIN between the patient table and the patient procedure table, looking specifically for cases where the joined field at the patient-procedure end does not exist (tested using IS NULL).

The general SQL for this is

Expand|Select|Wrap|Line Numbers
  1. SELECT field1, field2, ... FROM patient 
  2. LEFT JOIN [patient procedure] ON
  3. patient.[patient ID] = [patient procedure].[patient ID]
  4. WHERE [patient procedure].[patient ID] IS NULL
A left join returns all rows from one table and all matching rows from the other, with nulls where there are no matches.

You can set up a left (or right) join in the Access query editor by double-clicking the relationship line between the tables to bring up the join type dialogue. You can also enter SQL directly using the SQL View of the query editor.

-Stewart
Aug 3 '08 #4
Many thanks Stewart.

Ok, if I want to combine those patients with a procedure and those without it with a count of 0 how would I go about doing that?

many thx again
Aug 3 '08 #5
Stewart Ross
2,545 Expert Mod 2GB
A variant of the left-joined query can be used to count the number of procedures for each patient, returning 0 for those who have no associated procedures. It is easiest to create it in the Access query designer, using View, Totals to turn on totalling and grouping.

The SQL is along the lines of

Expand|Select|Wrap|Line Numbers
  1. SELECT patient.[patient ID], Count([patient procedure].[procedure ID]) as ProcCount
  2. FROM patient LEFT JOIN [patient procedure] ON patient.[patient ID] = [patient procedure].[patient ID])
  3. GROUP BY patient.[patient ID]
-Stewart
Aug 3 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

99
by: Paul McGuire | last post by:
There are a number of messages on the python-dev mail list that indicate that Guido is looking for some concensus to come from this list as to what *one* alternative syntax for decorators we would...
16
by: Peter Otten | last post by:
I took the freedom to forward GvR's mail concerning decorator cosmetics. I think you should know about it. Peter ---------- Forwarded Message ---------- Subject: Strawman decision:...
0
by: Nick Zdunic | last post by:
Hi, I've been using NUnitASP and found that it reaches it's limits very quickly. It has problems with parsing certain pages and raises errors for these when perhaps it shouldn't. Another...
46
by: H.A. Sujith | last post by:
Why doesn't the standard library provide (at least basic) networking facilities using TCP/IP ?
1
by: Jim Adams | last post by:
I'm just starting an ASP.Net question and answer driven decision tree / wizard. e.g. Is it A or B? If A -> Is it 1 or 2? If 1 -> Is it 3 or 4? ... If 2 -> Is it 5 or 6? ...
48
by: Daniele C. | last post by:
As soon as my sourceforge.net project gets approved, I am going to build a ncurses port to win32 bindable to sockets, e.g. allowing VT100/ANSI terminals and the creation of simple terminal servers...
25
by: rajus | last post by:
I have made a simple program to read the contents of a file.The FILE pointer returns NULL at the very beginning eventhough the file is present.Now if I modify my program and use command line...
14
by: Mikee Freedom | last post by:
Good Morning all, New member to the list, hoping you might be able to give me some much needed advice. Basically, I have a client who would like to offer the ability for his users to have...
13
by: Gabriel Genellina | last post by:
En Mon, 06 Oct 2008 11:19:58 -0300, Joe Strout <joe@strout.netescribió: Apart from the wise words that others have said, I'd add that I see no point in identifier prefixes when they merely...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.