Michael,
That depends somewhat on the HL/7 Version, what segment, and which field.
Basically in the PV1 segment the various Provider locations (Attending Doctor, etc.) are repeating fields and are a XCN Data Type.
That Data Type has a component (component 8 I believe – Assigning Authority) which indicates who assigned the number.
So if one had an internal number and an NPI Number there would be 2 repeitions for the field and the 8th component would indicate which is which like this:
|M467^MCDONALD MD^LARRY^L^””^””^””^FAC~99999^MCDONALD MD^LARRY^L^””^””^””^NPI|
or I believe the standard allows the intervening information to not be repeated (like if the name is the same) like this:
M467^MCDONALD MD^LARRY^L^””^””^””^FAC~99999^^^^””^””^””^NPI|
Now some other fields in some other segments do not repeat and instead have a component structure which allows for specification of an Alternate Code set of components – so the best thing to do is to look at the standard for the specific field(s) in question.
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.