J
JohnM
New job, new database, new problems.
There is a table with a compound key on PatientNo and AdmissionNo.
There is an additional field, StudyCode, which is dependent on
PatientNo. Each unique PatientNo should match a unique StudyCode.
However, this is not the case.
How do you suggest I ensure that this rule is enforced? Currently I
am finding individual PatientNo's with two StudyCodes. This seems to
be the result of patients transferring between hospital sites, each
with their own copy of the database, and inadvertently being assigned
different StudyNo's at each site.
I would be grateful for any help, particularly if you are familiar
with this sort of scenario and can point me in the direction of
resources I might draw upon. I guess this is ultimately about
ensuring correct work practices, negotiated between the sites, but
wonder if there is a temporary fix I can apply by way of, for example,
an index (although I can't figure out how - I think I'm barking up the
wrong tree with that).
Kind regards,
John McTigue
There is a table with a compound key on PatientNo and AdmissionNo.
There is an additional field, StudyCode, which is dependent on
PatientNo. Each unique PatientNo should match a unique StudyCode.
However, this is not the case.
How do you suggest I ensure that this rule is enforced? Currently I
am finding individual PatientNo's with two StudyCodes. This seems to
be the result of patients transferring between hospital sites, each
with their own copy of the database, and inadvertently being assigned
different StudyNo's at each site.
I would be grateful for any help, particularly if you are familiar
with this sort of scenario and can point me in the direction of
resources I might draw upon. I guess this is ultimately about
ensuring correct work practices, negotiated between the sites, but
wonder if there is a temporary fix I can apply by way of, for example,
an index (although I can't figure out how - I think I'm barking up the
wrong tree with that).
Kind regards,
John McTigue