View Single Post
  #7  
Old September 21st, 2004, 04:37 PM
rpw
external usenet poster
 
Posts: n/a
Default

You have many different "Services" - have you considered to have a Services
Type table (that would hold: General, Inpatient, Outpatient, Outreach,
Imaging, etc.) and a 1:M to a Service Sub-Type table - or is each service
type so different that they each need their own table? From what I see in
the General Services it's only names and no other details.

Assuming that it is only types and sub-types that you are needing, this is
how I'd set it up:

tblServiceTypes
ServiceTypeID - PK
ServiceTypeName

tblServiceSubTypes
SubTypeID - PK
ServiceTypeID - FK
SubTypeName

tblFacilityServices
FacilityID { combined
SubTypeID { PK
LocalSubTypeName
Description

The main form would have a tabs control. On one of the tabs would be a
'Services' sub-form. This sub-form would have a listbox displaying all of
the services the facility offers. The columns of the listbox would show
ServiceTypeName, SubTypeName, LocalSubTypeName, and Description. You could
have other controls for adding or modifying the items in the list.

Is this enough to get you going or do you want more details?


"Maureen Smith" wrote:

Thank you again!

You are correct that the GenServiceName is the same as in the ref table; I
thought I needed it in tblGeneralServices so that the service names would be
readable, as opposed to having just the ID number appear.

I thought about doing the query for the subform, but as I have General
Services (with about eight or nine different service types), Inpatient
Services (ditto), Outpatient Services (ditto), Community Outreach Services
(again), Imaging Services (about five or six), and PatientFamily Services
(again, five or six items) - it seemed too much to try to use a query to
make up one form (or one subform). If I'm wrong about this, by all means
tell me how to accomplish it.

This whole database is probably a work in progress. It doesn't exist, yet.
I'm thinking that there may be more tables added in future (physicians and
their specialties come to mind pretty quickly; equipment that the foundation
I work for has donated to the facilities is also something that will need to
be included). Right now what they have have are several different Excel
files with contact info, a few tables in Word with technical staff info, and
address lists in Outlook or OE. I'm tryng to put together something that
won't be difficult for someone to use when information needs to be modified,
but that will be searchable so that the desired information is obtained.
Perhaps the additional telephone/fax numbers won't be amiss. For the most
part, these are very rural healthcare facilities, so there won't be a
plethora of fax numbers.

rpw wrote in message
...
Hi,
The only thing I noticed that might be amiss was that GenServiceName is

not
needed in tblGeneralServices because it's already in reftblGenServices
(unless they're not the same info?).

That's right about assigning the record source. However, it doesn't
necessarily have to be a table - it can be a query also. Maybe your

sub-form
for services is a query based on both services tables and filtered by the
form's current facilityID. To build a query, click the elipsis (....) to

the
right of the record source field.

Looks like you're on the right track (at least with these tables). You
mentioned in your first post something about patient services and a

service
table?

As you're continuing to develop this, here's a thought for you: Some
facilities may have more than one phone or one fax number. Maybe you want

to
have a table of facility phone numbers and a short list (or table) of

phone
types (main business, fax, after-hours, admin.'s personal, etc.).

Post back if you have more questions/tables for analysis/etc.

rpw

"Maureen Smith" wrote:

Thanks for your comments. Here's the main table (Facility) and one of

the
services tables, with its associated reference table. I didn't want to

throw
everything at you!

tblFacility
FacilityID (PK)
facilityName
FacilityTypeID
FacAddress1
FacAddress2
City
State
ZIP
Telephone
Fax
County
LongTermCare (a yes/no)
Status (rural or frontier)
MUA (a yes/no)
HPSA (full, part, no)
MHHPSA (yes/no)
DHHPSA (yes/no)
RuralIndex (a number)
WebSite (if the faciity has one)
Email (ditto)
Comments (a memo field containing community demographic info)
FulltimeRNS
ParttimeRNs
FulltimeLPNs
ParttimeLPNs
FulltimePersonnel
ParttimePersonnel

tblGeneralServices
FacilityID (these two are combined
GenServiceID to be the PK)
GenServiceName

reftblGenServices
GenServiceID (PK)
GenServiceName

Again, each facility can offer more than one general service.

To assign the record source, that's the right-click on the "square" at

the
left corner of the design area, select Properties and give the name of

the
table that is the source for the data - correct?