delete unwanted health cards

Ticket

+commit
 
northwest health foundation just sent over a new taxonomy for the health section which is 99% completely different than the one we have, somewhat expected. so, i am going to get rid of the health section as it is now and put in the new subcategories and topics. there is barely any content in any of the health section topic cards currently and the random stuff that is in there isn't something that needs to be filtered out and kept. what we do need to try to rebuild are the foundation/organization pointer connections.

the topic cards are going to be different, obviously, so it isn't a matter of being able to just delete the card and then build it again and have the foundation or organization still connected. what ethan and i talked about, if i remember correctly, is a search for all of the foundations/orgs connected to any area of the health section. we need to delete the pointers they have that go to the health section. then i will trash the current section except for the top level category 'health.' then put in all the new cubcategories and topics. the foundations and topics that were previously pointed to the health section can now be repointed to 'health' or 'health care.'

if the cards are currently pointed to the subcategories of (and/or the topics within them): disease - disorder, general - rehabilitation, outpatient treatment, or mental health, can all be pointed to the new card i will create called 'health care' and all other connections can be redirected to health.

 

The most we can do automatically here seems to be deleting unwanted cards, so here's our process:
  1. we build search queries  find all the unwanted cards -- topics and subcategories in the health section
  2. Find all the Organizations and Foundations that point to any of those cards
  3. convert those links to links to "Health Services"
  4. then we delete all unwanted cards.