department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
98 stars 69 forks source link

Facility COVID status: work through details of Lighthouse connections #8947

Closed cmaeng closed 2 years ago

cmaeng commented 2 years ago

From slack thread here:

The need for display a Covid status of Red, Green or Yellow across facility locator and va.gov. The initial request on this is in the "next week" ballpark but we are trying to get confirmation of that. My initial take on how to get this out the door quickly without a whole slew of dependencies on the trinity (CMS, FAPI (facility locator explicitly), va.gov) is to add values to the existing status options

Would become something like

^^ Data approach abandoned 5/4/22. See first comment below for new approach.

To Do

swirtSJW commented 2 years ago

Initial take on this was abandoned for a number of reasons. Largely the need to keep covid status separate from operating status and have it trigger various displays both in the CMS, Facility Locator and va.gov.

The new approach is to push a separate status to the Facility API. In the CMS we are going to use a little bit more generic field naming of field_supplemental_status to allow for use beyond covid if needed, so some question for the lighthouse team

operating_status' => [
          'code' => NORMAL,
          'additional_info' => "Some string stuff.",
        ],
'supplemental_status' => VALUE,

Finally what would you like the VALUE to be?

swirtSJW commented 2 years ago

Asked ^^ in slack

swirtSJW commented 2 years ago

Thinking supplemental status should be an array of ids in case more than one is allowed. (future framework planning)

operating_status' => [
          'code' => Normal,
          'additional_info' => "Some string stuff.",
          'supplemental_status' => [
                 covid_high, 
                 air_quality_low
             ],
        ],
swirtSJW commented 2 years ago

From today's lighthouse call this is the agreed upon format we will be pushing and they will be receiving

"operating_status": { 
   "code": "NORMAL", 
   "additional_info": "This is text...", 
   "supplemental_status": {
          "COVID_HIGH" : { "label": "This is high Covid" }, 
          "EBOLA_LOW": { "label": "This is low Ebola" } 
    } 
 } 
swirtSJW commented 2 years ago

Now that we have the shape of the data defined, we can close this an work on the implementation

JayDarnell commented 2 years ago

Starting on implementation now

JayDarnell commented 2 years ago

Updated format: (from: https://dsva.slack.com/archives/C02BTJTDFTN/p1651804426005869)

swirtSJW commented 2 years ago
"operating_status": {
    "code": "NORMAL",
    "additional_info": "This is text...",
    "supplemental_status": [
        {
            "id": "COVID_HIGH",
            "label": "This is high Covid"
        },
        {
            "id": "EBOLA_LOW",
            "label": "This is low Ebola"
        }
    ]
}