Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 2.05 KB

migrations-facility.md

File metadata and controls

43 lines (35 loc) · 2.05 KB

Migrations: Facilities

  1. Facility Migrations
    1. NCA (National Cemetery Administration) Facilities
    2. VAMC (VA Medical Center) Facilities
    3. VBA (Veterans Benefits Administraion) Facilities
    4. Vet Centers
  2. Status Changes to Lighthouse

Facilities updates and actions

Facility Migrations

Facility migrations occur nightly and the four types of facilities are updated with any data from the Facility API including the creation of new facilities, updating titles, addresses, etc. The facility is connected to the facility API by its unique "Facility Locator API ID" (field_facility_locator_api_id). These migrations do not handle removing or deleting any facilities. A facility that needs to be removed, must be deleted by hand. The nightly migrations are handled as part of our tasks-periodic.yml and are triggered by Jenkins. Revisions for any saves are created and attributed to the user "CMS Migrator"

  1. NCA (National Cemetery Administration) Facilities - va_node_facility_nca
  2. VAMC (VA Medical Center) Facilities - va_node_health_care_local_facility
  3. VBA (Veterans Benefits Administraion) Facilities - va_node_facility_vba
  4. Vet Centers - va_node_facility_vet_centers

VAMC Status Migration

VAMC Statuses are updated by a separate migration (va_node_health_care_local_facility_status) that runs every hour. It grabs multiple CSV sources (one per system) which are scraped from TeamSite and updates the "Operating status" (field_operating_status_facility) and "Operating status - more info" (field_operating_status_more_info)

Status Changes to Lighthouse

Whenever any facility has a change of "Operating status" or "Operating status - more info" saved in VACMS (whether by an editor, or migration), a change post is added to the "post API queue" by module:va_gov_post_api. When cron runs, any items in the queue are posted to the Lighthouse API.

Table of Contents