old_contents: # how cases/referrals are tagged in the xform/couch
  CASE_TAG = "case"
  REFERRAL_TAG = "referral"
  OUTCOME_TAG = "outcome"
  PATIENT_ID_TAG = "patient_id"
  FOLLOWUP_DATE_TAG = "followup_date"
  
  # internal case identifiers
  CASE_ACTION_INDEX = "index"
  CASE_ACTION_CREATE = "create"
  CASE_ACTION_UPDATE = "update"
  CASE_ACTION_CLOSE = "close"
  CASE_ACTION_ATTACHMENT = "attachment"
  CASE_ACTION_COMMTRACK = "commtrack"
  CASE_ACTION_REBUILD = "rebuild"
  CASE_ACTIONS = (
      CASE_ACTION_CREATE, CASE_ACTION_UPDATE, CASE_ACTION_INDEX, CASE_ACTION_CLOSE,
      CASE_ACTION_ATTACHMENT, CASE_ACTION_COMMTRACK, CASE_ACTION_REBUILD,
  )
  
  # this might not be used / be combined with close, but for now consider it different
  CASE_ACTION_PURGE = "purge"
  
  CASE_TAG_TYPE = "case_type"
  CASE_TAG_TYPE_ID = "case_type_id"
  CASE_TAG_ID = "case_id"
  CASE_ATTR_ID = "@case_id"
  CASE_TAG_NAME = "case_name"
  CASE_TAG_MODIFIED = "date_modified"
  CASE_TAG_USER_ID = "user_id"
  CASE_TAG_EXTERNAL_ID = "external_id"
  CASE_TAG_DATE_OPENED = "date_opened"
  CASE_TAG_OWNER_ID = "owner_id"
  
  
  CASE_TAGS = (CASE_ACTION_CREATE, CASE_ACTION_UPDATE, CASE_ACTION_CLOSE, CASE_ACTION_ATTACHMENT, REFERRAL_TAG,
               CASE_TAG_TYPE_ID, CASE_TAG_ID, CASE_TAG_NAME, CASE_TAG_MODIFIED, CASE_TAG_USER_ID,
               CASE_TAG_EXTERNAL_ID, CASE_TAG_DATE_OPENED)
  
  
  REFERRAL_ACTION_OPEN = "open"
  REFERRAL_ACTION_UPDATE = "update"
  
  REFERRAL_TAG_ID = "referral_id"
  REFERRAL_TAG_FOLLOWUP_DATE = "followup_date"
  REFERRAL_TAG_TYPE = "referral_type"
  REFERRAL_TAG_TYPES = "referral_types"
  REFERRAL_TAG_DATE_CLOSED = "date_closed"
  
  CASE_INDEX_EXTENSION = 'extension'
  CASE_INDEX_CHILD = 'child'
  
  DEFAULT_CASE_INDEX_IDENTIFIERS = {CASE_INDEX_CHILD: 'parent', CASE_INDEX_EXTENSION: 'host'}
  
  UNOWNED_EXTENSION_OWNER_ID = '-'
  
new_contents: # how cases/referrals are tagged in the xform/couch
  CASE_TAG = "case"
  REFERRAL_TAG = "referral"
  
  # internal case identifiers
  CASE_ACTION_INDEX = "index"
  CASE_ACTION_CREATE = "create"
  CASE_ACTION_UPDATE = "update"
  CASE_ACTION_CLOSE = "close"
  CASE_ACTION_ATTACHMENT = "attachment"
  CASE_ACTION_COMMTRACK = "commtrack"
  CASE_ACTION_REBUILD = "rebuild"
  CASE_ACTIONS = (
      CASE_ACTION_CREATE, CASE_ACTION_UPDATE, CASE_ACTION_INDEX, CASE_ACTION_CLOSE,
      CASE_ACTION_ATTACHMENT, CASE_ACTION_COMMTRACK, CASE_ACTION_REBUILD,
  )
  
  # this might not be used / be combined with close, but for now consider it different
  CASE_ACTION_PURGE = "purge"
  
  CASE_TAG_TYPE = "case_type"
  CASE_TAG_TYPE_ID = "case_type_id"
  CASE_TAG_ID = "case_id"
  CASE_ATTR_ID = "@case_id"
  CASE_TAG_NAME = "case_name"
  CASE_TAG_MODIFIED = "date_modified"
  CASE_TAG_USER_ID = "user_id"
  CASE_TAG_EXTERNAL_ID = "external_id"
  CASE_TAG_DATE_OPENED = "date_opened"
  CASE_TAG_OWNER_ID = "owner_id"
  
  
  CASE_TAGS = (CASE_ACTION_CREATE, CASE_ACTION_UPDATE, CASE_ACTION_CLOSE, CASE_ACTION_ATTACHMENT, REFERRAL_TAG,
               CASE_TAG_TYPE_ID, CASE_TAG_ID, CASE_TAG_NAME, CASE_TAG_MODIFIED, CASE_TAG_USER_ID,
               CASE_TAG_EXTERNAL_ID, CASE_TAG_DATE_OPENED)
  
  
  CASE_INDEX_EXTENSION = 'extension'
  CASE_INDEX_CHILD = 'child'
  
  DEFAULT_CASE_INDEX_IDENTIFIERS = {CASE_INDEX_CHILD: 'parent', CASE_INDEX_EXTENSION: 'host'}
  
  UNOWNED_EXTENSION_OWNER_ID = '-'
  
subject: Remove unused constants