Closed cmaeng closed 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,
],
OR separate from it like this
operating_status' => [
'code' => NORMAL,
'additional_info' => "Some string stuff.",
],
'supplemental_status' => VALUE,
Finally what would you like the VALUE to be?
COVID - high
, knowing that the human friendly label might change to align with facility signage or Veteran user data. (example...might be later changed to COVID Strict
covidHigh
and even if the label changed to Covid Strict
we would still be sending you covidHigh
'supplemental_status' => [
'label' => "Covid Strict",
"id" => "covidHigh"
],
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
],
],
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" }
}
}
Now that we have the shape of the data defined, we can close this an work on the implementation
Starting on implementation now
Updated format: (from: https://dsva.slack.com/archives/C02BTJTDFTN/p1651804426005869)
"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"
}
]
}
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