Description:
Under certain circumstances, it may be necessary to manually remove the eHealth datasource from NPC. This is usually due to NPC being re-installed or installed on another server and eHealth will complain about being registered to another instance of NPC.
Solution:
For a distributed eHealth environment run the following command on the distributed eHealth console:
./nhNpcSetup -clear
Now try re-adding the eHealth datasource to NPC.
For standalone eHealth environments, execute the query below to clear the NPC config from the eHealth DB:
$NH_HOME/bin/sys/nhisql "delete from nh_metadata where subject_area='NPC'"
If the change doesn't immediately allow for the datasource to be re-added, try the steps below to get it going.
Alternate method: