473,387 Members | 1,520 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,387 software developers and data experts.

Unique ID

I have a medical records database. At this moment one server.
Providence willing, and if things go well for me, I may have 9 other
servers join in.

Each patient will have, by GENERATE_UNIQUE(), a unique ID from the 10
servers, but each server identifies its own patients by a sequential
number.

Someone goes to the database and asks to see the record of
PATIENTNUMBER 100. There will be ten results, because everyone has a
PATIENTNUMBER 100. The intent is that the user will choose the right
one.

However, the very fact that there *exists* a record for anyone other
than the patient whom that user has the right to see violates HIPAA
law.

That is, should there be N PATIENTNUMBER 100's, then N-1 would be
other than unique to the user's query. The user is not allowed to
even know of the existence of the N-1 patients.

Penalties are in the tens and hundreds of thousands of dollars and
prison time!

What to do?
Nov 12 '05 #1
5 2630
Stanley Sinclair wrote:
I have a medical records database. At this moment one server.
Providence willing, and if things go well for me, I may have 9 other
servers join in.

Each patient will have, by GENERATE_UNIQUE(), a unique ID from the 10
servers, but each server identifies its own patients by a sequential
number.

Someone goes to the database and asks to see the record of
PATIENTNUMBER 100. There will be ten results, because everyone has a
PATIENTNUMBER 100. The intent is that the user will choose the right
one.

However, the very fact that there *exists* a record for anyone other
than the patient whom that user has the right to see violates HIPAA
law.

That is, should there be N PATIENTNUMBER 100's, then N-1 would be
other than unique to the user's query. The user is not allowed to
even know of the existence of the N-1 patients.

Penalties are in the tens and hundreds of thousands of dollars and
prison time!

What to do?


What happens when you create id by concatenating value of CURRENT
SERVER and result of GENERATE_UNIQUE()?

Jan M. Nelken
Nov 12 '05 #2
Stanley,

What speaks against using a natural key, like the patients social
insurance number or the health insurance ID?

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #3
Stanley Sinclair wrote:
I have a medical records database. At this moment one server.
Providence willing, and if things go well for me, I may have 9 other
servers join in.

Each patient will have, by GENERATE_UNIQUE(), a unique ID from the 10
servers, but each server identifies its own patients by a sequential
number.

Someone goes to the database and asks to see the record of
PATIENTNUMBER 100. There will be ten results, because everyone has a
PATIENTNUMBER 100. The intent is that the user will choose the right
one.

However, the very fact that there *exists* a record for anyone other
than the patient whom that user has the right to see violates HIPAA
law.

That is, should there be N PATIENTNUMBER 100's, then N-1 would be
other than unique to the user's query. The user is not allowed to
even know of the existence of the N-1 patients.

Penalties are in the tens and hundreds of thousands of dollars and
prison time!

What to do?


Modify application such that at startup it calls sqleseti() API - which
allows to set client workstation name, accounting string, application
name etc etc.

See cli_info.c (or cli_info.cxx - depending on your believes).

Use some substring of CURRENT CLIENT_WRKSTNNAME special register
concatenated with result of GENERATE_UNIQUE() call to have id which
could be unique across multiple machines.

One example which guarantees uniqueness would be to get MAC address of
the network card inside routine issuing sqleseti() call and store this
MAC address as workstation name.

Jan M. Nelken
Nov 12 '05 #4
"Serge Rielau" <sr*****@ca.eye-be-em.com> wrote in message
news:ca**********@hanover.torolab.ibm.com...
Stanley,

What speaks against using a natural key, like the patients social
insurance number or the health insurance ID?

Cheers
Serge
--
Serge Rielau


That may not work. I heard about this identical problem myself years ago,
but not sure how they decided to handle it (pre HIPA laws).

The problem is the many poor people who seek free medical attention at
clinics in public hospitals. The illegal immigrants without a social
security number are issued id cards with a unique number to track the
patient, but the cards get shared by many other illegal aliens who are
afraid to tell the hospital their real names and afraid to get their own id
cards (with a unique number). This is true even though the hospitals do not
ever turn them in to immigration.

What happens is that when the doctor pulls up their medical records on the
computer (or even paper files), they are really composite records of many
different people who used the same id card, and it drives the docs crazy. So
Juan Gonzalez with a unique id that he is issued (in lieu of a social
security number) has just about every known medical ailment on his record.
They have waste a lot of time figuring out what their medical history is to
make sure they get the right diagnosis and treatment. Of course the public
hospitals are already under-funded, and this makes things even worse.
Nov 12 '05 #5
This sounds like a prime candidate for a biometric solution.

It would be insane to send someone like Stanley to jail for failing to
distinguish between umpteen people who share the same card. It is insane to
expect the doctors to distinguish between umpteen people who share the same
card and to keep a usable patient history in this situation.

The real problem here is the card sharing and that's what needs to get
addressed. That won't be solved by database design but it may be solved by
using biometrics: if the patient's photograph (or fingerprints or a retina
scan) are taken when the card is issued and the same biometric is used to
verify that the patient and the card match when the service (medical
treatment) is given, you have a chance to keep a realistic medical history
and the doctor finally has a fighting chance to treat the patient
appropriately.

I don't know whether the appropriate governments allow use of biometrics in
ID cards but, if not, I don't see any realistic hope of solving this
problem. Then there will be a political fight as the politicians responsible
for health systems try to get people to see that this is the only reasonable
solution, then duking it out in court with the people who will inevitably
see biometrics as Big Brother and resist their use. In 10 or 20 years, this
might get settled, assuming the necessary 'political will' exists.
Otherwise, the idea of keeping medical history for shared cards is a farce
that will be perpetuated, which will mean that people like Stanley live in
fear that they will go to jail for things over which they have no control
and doctors will live in fear that they will kill patients, either because
they ignored obviously shared medical histories or because they *didn't*
ignore them.

Rhino

"Mark A" <ma@switchboard.net> wrote in message
news:Ww*****************@news.uswest.net...
"Serge Rielau" <sr*****@ca.eye-be-em.com> wrote in message
news:ca**********@hanover.torolab.ibm.com...
Stanley,

What speaks against using a natural key, like the patients social
insurance number or the health insurance ID?

Cheers
Serge
--
Serge Rielau
That may not work. I heard about this identical problem myself years ago,
but not sure how they decided to handle it (pre HIPA laws).

The problem is the many poor people who seek free medical attention at
clinics in public hospitals. The illegal immigrants without a social
security number are issued id cards with a unique number to track the
patient, but the cards get shared by many other illegal aliens who are
afraid to tell the hospital their real names and afraid to get their own

id cards (with a unique number). This is true even though the hospitals do not ever turn them in to immigration.

What happens is that when the doctor pulls up their medical records on the
computer (or even paper files), they are really composite records of many
different people who used the same id card, and it drives the docs crazy. So Juan Gonzalez with a unique id that he is issued (in lieu of a social
security number) has just about every known medical ailment on his record.
They have waste a lot of time figuring out what their medical history is to make sure they get the right diagnosis and treatment. Of course the public
hospitals are already under-funded, and this makes things even worse.

Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: kevin parks | last post by:
hi. I've been banging my head against this one a while and have asked around, and i am throwing this one out there in the hopes that some one can shed some light on what has turned out to be a...
26
by: Agoston Bejo | last post by:
I want to enforce such a constraint on a column that would ensure that the values be all unique, but this wouldn't apply to NULL values. (I.e. there may be more than one NULL value in the column.)...
3
by: June Moore | last post by:
Hi, I would like to add a unique index that consists of two fields in a table. e.g. tbl_A (field1,field2) -- field1 & field2 Indexed and combination must be Unique. Can anyone tell me the...
5
by: Kamil | last post by:
Hello What should I use for better perfomance since unique constraint always use index ? Thanks Kamil
6
by: Bob Stearns | last post by:
I was under the impression that the primary key had to be a unique index. Since I usually create my primary indices before my primary keys, in order to get the indices in the same schema as their...
4
by: bwmiller16 | last post by:
Guys - I'm doing a database consistency check for a client and I find that they're building unique indexes for performance/query reasons where they could be using non-unique indexes. Note...
5
by: aj | last post by:
DB2 WSE 8.1 FP5 Red Hat AS 2.1 What is the difference between adding a unique constraint like: ALTER TABLE <SCHEMA>.<TABLE> ADD CONSTRAINT CC1131378283225 UNIQUE ( <COL1>) ; and adding a...
7
by: Brian Keating | last post by:
Hi there, Is it possible to add a unique constraint on two columns in a table, so that the constraint is a composite of the two? i.e. these two columns together should be unique...? i.e....
10
by: Laurence | last post by:
Hi there, How to differentiate between unique constraint and unique index? These are very similar but I cannot differentiate them? Could someone give me a hand? Thanks in advance
2
by: pstachy | last post by:
Hi again! I have another issue. I would like the attribute of the tag <invoice> to be unique. Made the following schema but unfortunately it doesn't validate. Could someone please indicate what is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.