Given that I'll use a natural key, how do I deal with the situation if I find out the value later?

I have been doing a lot of reading about the pros and cons of using natural versus surrogate keys.  I have read in Joe Celko's books and his writing online that he strongly opposes using surrogate keys and using IDENTITY for generating values for a
surrogate key column of a table in SQL Server.  I would like some advice on how to handle this situation:  I have a table with physician information and would like to use their NPI as a natural key (it would be a foreign key in many other tables)
but the people who enter new physicians often don't know the NPI until later.  They also may receive the wrong NPI and need to change it later.
Right now they use Excel spreadsheets to manage their data and I'm sure you can understand what a nightmare of data integrity that is.  Now that I'm going to design and build a database for them, can you recommend a good approach to this specific problem?
 I cannot tell them to hold on to the new physician's data until they get the NPI because they need to immediately work with the physician's information as soon as the new physician joins the organization.  It's a small shop and not a health system
but thousands of physicians join.  They cannot insist that the NPI be supplied at the time of registration for various political reasons.  The people who are using the system now have varying degrees of skepticism to outright vehement opposition
to having a new database system so I cannot "lay down the law" about things that may adversely affect the relationship with the new physicians who sign up.  With the Excel spreadsheets they cope with this by either leaving it blank, entering
9999999 or some other stray string of characters, or perhaps typing in their shopping list.
Is there a viable solution to this design problem?  Any and all suggestions appreciated.  Thanks for reading this.

While I disagree with the standard practice of adding an identity column as the primary key for every table, I think that this is a case where it can be beneficial or practical.  You might not want to cluster on the identity column and you still need
to enforce the uniqueness of the natural key. 
OTOH, the alternative is to simply fabricate a value for the natural key when it is unknown.  You could do this manually (where the user must enter the fabricated value) or automatically (where the server generates it).  A manual approach might
be frustrating to the users since they have to "guess" what would be unique and acceptable, resulting in sort of trial-and-error approach to adding.  You would also very likely need to have a way of identifying which rows had a fabricated value.  Once
the actual natural key has been identified for a given provider you would then need to update it.  The server can handle cascading the value where needed if you so choose.  Note that, except for the cascading part, you need the same capabilities
for an identity-based table since this natural key is most likely essential to the system. 
I'll also point out that you can use a unique constraint as the target of a foreign key - you don't have to use the primary key.  Not recommending this, just mentioning the alternative.  
Which you should choose I can't say - that requires a much better understanding of your model and that isn't something that can be readily provided in a forum such as this.  I will say that you should not prematurely choose an identity.  Why?  First,
you make this choice once you have deemed the natural key to be a problem.  Second, it may be (at least) some of your anticipated relationships to physician are actually to something else.  A medical system is as much art as science - at least in
the USA.  Providers, plans, participants, terms, renewals, diagnosis codes, etc. make one's head spin.  Given that you have just started modeling, there is no reason at this point to make this choice - just be aware that the natural key poses some
issues that you need to address at some point before completion.  Personally I would choose the natural key for now and let the model develop and demonstrate where this choice becomes a problem. 

Similar Messages

  • My iPod touch 4th gen. Won't charge with a enercell charger that I've used since December. It will only charge with the apple USB cord that came with it. And even the takes it about 6 sec. To realize its charging. Help me fix this?

    My iPod touch 4th gen. Won't charge with a enercell charger that I've used since December. It will only charge with the apple USB cord that came with it. And even the takes it about 6 sec. To realize its charging. Help me fix this?

    Yes, I've been using it for months. And I can charge other devices with it. (my iPhone) but something weird just happened..... I kept on pluging it in the iPod and sometimes it would start to chàrge then sometimes it won't charge. Charges every time with the iPhone though.

  • In the middle of redeeming a card and I try to purchase another song, it tells me that my CC will be charged. How do I continue with the card I want to redeem?

    In the middle of redeeming a card and I try and purchase another song, it tells me that my CC will be charged.. any ideas how I can continue to redeem my card?

    also how come it doesn't automatically sync my photos everythime now??

  • If i buy a Unlocked iphone 4s and use it in another country will it work with the countrys data Services that are local

    If i buy a Unlocked iphone 4s and use it in another country, will it work with the countrys Local data Services

    hi guys,
    i recently bought a new iphone 4s factory unlocked. in order to avoid sim failures and invalid sim errors or No service errors, Each phone has to be unlocked by connecting it to the Itunes.
    Kindly follow the below steps to avoid any SIM card conflicts
    iPhone FULL Unlock - How it Works:
    -Connect your iphone to itunes without any network sim inside and when connected click on the iphones name.
    - Click Restore install latest version of iTunes on your Pc or Mac or click check for updates
    - Let itunes Backup your phone and then Flash to the Latest Version.
    - Now disconnect phone and reconnect after 10 seconds.
    - Now Enter another network simcard that's not the same network its locked on to
    - Connect phone to iTunes with not accepted (not valid) simcard
    - Wait until iTunes detects the phone
    - iTunes will display (Congratulations, Your iPhone is now unlocked)
    - Phone Unlocked
    - just follow the instructions about activating the Iphone.
    and iphone is unlocked
    NOTE : This is the only FULL LIFE TIME UNLOCK solution for Apple iPhone as the IMEI is registered as UNLOCKED in Apple database.
    This solution should be used ONLY THOSE WHO BOUGHT FACTORY UNLOCKED iPHONE 4S.
    Your phone will always be unlocked even after each new update of your phone firmware !
    All reasons given like bad IMEI series, manufacturing defects etc blah blah are not logical as everything was tested before every sale.

  • The app store on my brand new ipod touch offers me majority apps that cannot be used on my software. how do i find apps that will work with 6.1.5? this is frustrating, especially when purchased brand new.

    the app store on my brand new ipod touch offers me majority apps that cannot be used on my software. how do i find apps that will work with 6.1.5? this is frustrating, especially when purchased brand new for christmas.

    See the following to purchase earlier, compatible version for iOS 6
    App Store: Downloading Older Versions of Apps on iOS - Apple Club

  • HT5621 I have moved permanently from the US to live in the UK. when I try to download a UK app I am often told that I cannot use a UK Apple sstore, only a US store. I need to access various UK stores how can I deal with this?

    I have moved permanently from the US to live in the UK. when I try to download a UK app I am often told that I cannot use a UK Apple sstore, only a US store. I need to access various UK stores how can I deal with this?

    Try here
    http://support.apple.com/kb/HT1311
    when you have UK Cards etc best to change as well

  • I have a macbook air and  and hdmi that i have used many times, but not all of a sudden the tv won't recognize the hdmi. The computer flashes when it is plugged into the hdmi but the tv says "no signal" and the airplay displays option says "no device"

    I have a macbook air and  and hdmi that i have used many times, but not all of a sudden the tv won't recognize the hdmi. The computer flashes when it is plugged into the hdmi but the tv says "no signal" and the airplay displays option says "no device detected" and the drop down bar is grey and locked.

    I have a macbook air and  and hdmi that i have used many times, but not all of a sudden the tv won't recognize the hdmi. The computer flashes when it is plugged into the hdmi but the tv says "no signal" and the airplay displays option says "no device detected" and the drop down bar is grey and locked.

  • I would like to use Formcentral form data to populate a pdf with the same fields.  Is that possible?

    I would like to use Formcentral form data to populate a pdf with the same fields.  Is that possible?

    Randy,
    We have an application that I would like to have in Formscentral.  That application is also in a larger PDF file that once filled in populates all the other forms below it (lease, credit check form, ect).  If the Application on Formscentral keep the same field names as the pdf can I pull the data from formscentral and sill populate the old application pdf so that all the forms below it will be also populated. 
    Greg

  • I have 3 iTunes courses that i downloaded using my iPad. After syncing my iPad with iTunes on my mac, these 3 courses do not appear on my mac iTunes library yet they are still on my iPad.

    I have 3 iTunes courses that i downloaded using my iPad. After syncing my iPad with iTunes on my mac, these 3 courses do not appear on my mac iTunes library yet they are still on my iPad.
    I have 2 other courses that I downloaded frim my iPad and these appeared on my iTunes (mac) library.
    Any idea why the other 3 that i downloaded were not synced in iTunes?

    You and the iPad can function with the Remote App from across the room, or in another room.
    However, your stereo system has to have a way to communicate or connect with the computer.   Unless it has some kind of wifi connector or has Bluetooth, I don't see how you can do this.
    There is no app or software to resolve this.   You need a way for the stereo to connect.

  • Cannot use iphone because it is on factory setting with the message that activation server is temporarily unavailable

    cannot use iphone because it is on factory setting with the message that activation server is temporarily unavailable, please help

    That message usually indicates that your phone was hacked to unlock it from the original phone carrier and when you updated or restore your phone it locked back to that carrier.

  • I can't use my license key Flash Builder 4.5 with this release. Someone can help me ?

    I can't use my license key Flash Builder 4.5 with this release. Someone can help me ?

    Hi,
    Flash Builder 4.5 serial number will not work directy in Flash Builder 4.7. You can use FB 4.5 key in upgrade scenario (upgradation from FB 4.5 to FB 4.7).
    Please use the Flash Builder 4.7 serial number provided at http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_flashbuilder4-7  for serialing Flash Builder 4.7.
    -Mugdha

  • HT204053 I have multiple devices used by family members, how do you make sure the kids don't see Moms messages from Dad and visa versa?

    I have multiple devices used by family members, how do you make sure the kids don't see Moms messages from Dad and visa versa?

    Hi Roger:
    Thanks for the reply.  I think I figured out the problem.  Apple has confused (at least in my mind) the different IDs that people can have.  In the iCloud settings, they use the term Apple ID and not iCloud ID.  I guess there really is no such thing as an iCloud ID.  There are Apple IDs with various attributes.  This is not clearly explained or easy to see (how could I look up to see if my Apple ID is associated with iTunes for example?).
    I created, what I thought were iCloud IDs for each family member, but we all use my Apple ID for iTunes.
    One other question - why does the syncing of Notes using iCloud require an @me.com email account.  That makes no sense to me.
    Thanks for your help!
    AO

  • If I put an item in clippings that I reduced from a larger article, how do I print just the clippings excerpt?

    If I put an item in clippings that I reduced from a larger article, how do I print just the seperate clippings excerpt?

    Hi Mark,
    I think one thing you may missing is an understanding of the purpose and operation of the mail merge process.
    Mail merge is used to 'personalize' a preset document using information from the records of a database. Any content that will vary from copy to copy of the document must be imported from the database. Every item that is specific to the copy being sent to a specific individual must be included in the row of the table containing the record for that individual.
    For invoices, unless you are sending an invoice for the same item(s) at the same price(s), you'll need to either include the items and prices in the database and merge them into the invoices, or use the merge document to create a document containing an empty invoice for each customer, containing only the customer identification information, and the company information (taken from the card marked "My Card" or "Me"), then fill in each invoice manually.
    The Pages '09 template named "Invoice" might word with the second approach, depending what type of document the merge to file option produces. If it's a Pages document, the table, containing the invoice data, will likely be useable; if it's a pdf document, the table may be editable (or not), but will lose its ability to calculate the tax amounts and totals.
    To produce an individual invoice from this template:
    Open the template.
    Drag the recipient's card from Contacts/Address Book and drop it on one of the fields in the first block of address text.
    Enter the project information in the second block of text.
    Check the Company block in the left margin for correctness.
    Enter the Invoice items and quantities in the table.
    Print (or Print to PDF) the document and mail it.
    Regards,
    Barry

  • How to deal with the using up space of /opt/oracle

    Hello, all
    We have an Oracle 10g preinstalled in a linux server (Rh 9). Now the system reports that the /opt/oracle is using up. The alert says:
         Filesystem /opt/oracle has only 19% available space
    Because I didn't install the Oracle dababase, I didn't have the chance to select a place for filesystem. Now the /opt/oracle is on the /dev/sda6 which is only 7.1G. I want to know what kind of information are stored here? Should it keep growing? Our database running on the Oracle is a small one, and it shouldn't occupy so much space. By the way, I scheduled the backup to disk (another hard disk) everyday. Is there any copy of the backup on /opt/oracle? How can I deal with it?
    Any advice is highly appreciated!
    Qian
    Message was edited by:
    QianChen
    Message was edited by:
    QianChen

    Typically, the growth files on your binary directory is going to be in the $ORACLE_HOME/network/logs/listener.log , any tracelog, sqlnet.log, or any files that get accidentally dumped in $ORACLE_HOME/dbs.
    I would check there first.
    Also, try scanning for the last few files written/updated in the past 30 days.
    #30 biggest files modified in last little while:
    find . -xdev -type f -mtime -14 -exec ls -l {} \; | sort -nk 5,5 | tail -30

  • HT1848 On itunes, when synced to my pc, I show less than half of the music that is on my iphone 4. How do I get all the music onto my pc?

    I am about to scream if I don't figure this out or just decide to leave Apple and get a Galaxy phone. On itunes, when synced to my pc, I show less than half of the music that is on my iphone 4. How do I get all the music onto my pc? I have read many forums and tried many things, but apple/iTunes is not intuitive at least not on a PC. When I go to devices it won't let me select "transfer music". It's grayed out. Why is this and what can I do? I'd like to delete some of the music off of my iPhone but don't want it gone forever. Pleae help.

    Thanks Turingtest2,
    I appreciate your response. I have done all of the things mentioned, but still when I click on "devices", the "transfer music" option is still not selectable. I see it, but can't select it.  I am running Windows 7 on my PC.
    However, one thing I read makes me take pause. At one point I did erase my computer back to factory settings using the mirrored image. We backed up all information and put the important stuff back on, but I don't believe we did anything with iTunes, so it's a possibility that the music that is in my library now, may only be music I have purchased since then. But, (thinking out loud) that was a while ago and I am pretty sure I have purchased more music than what is in my iTunes library, since then.  Maybe I will approach it from that angle and see what happens.
    It just doesn't make any logical sense that syncing goes from computer to device. Ostensibly then, my iPhone would only have the music that is on my computer after syncing and that is not the case. I still have all my music on my phone. I can see the new music that's on my phone get added to my iTunes library when I connect, which would make one think that syncing occurs both ways. I don't know. It's maddening. Maybe I should just follow my husbands advice and go to an Android. LOL. Or maybe I will take my laptop and phone to the Apple store and make them figure it out. Ha.
    If you have any thoughts about this, let me know. Thanks again.

Maybe you are looking for

  • Network Home Folders - iMac Freezes

    Hello all. I am trying to implement GarageBand for editing at a radio station. Everything is based off of a XServe G5 running OSX 10.4.11 with only 2 iMac workstations running 10.5.3. Only one main user right now who has a network based home folder.

  • Save playlists

    I want to backup my iTunes library, and I have EVERYTHING scrutinizingly organized by albums in playlists (i've imported my entire physical music library) and the lone songs are in various playlists as well. You get the picture. Could someone tell or

  • Nikon D750 NEF files doesnt open in Photoshop CS5.1 or in camera raw.

    Is CS5 to old? I have installed CameraRaw_8_7 but it didn't help. If CS5 is to old, what is the best way to upgrade?

  • Moving Around in Numbers Like in Excel

    In Excel you can CTRL-arrow to move to the next blank cell in any direction or SHIFT-CTRL-arrow to select all cells between where you are and the next blank cell in any direction. Is there a similar keystroke in Numbers? If so, I haven't found it yet

  • OMBREGISTER LOCATION problem

    Using OWB 10.2 OMB+> OMBCONNECT owb102_dev/[email protected]:1521:T42DWH.WORLD Connected. OMB+> OMBCC 'MIS' Context changed. OMB+> OMBCAC 'CFG_I42DWH_MIS' Active configuration changed. OMB+> OMBCONNECT CONTROL_CENTER USE 'MIS_LOAD/xxx' Control Center