Closed davidmpickett closed 1 month ago
Including VBA and Vet Center services in the data pull isn't add'l complexity but does affect file size for the JSON file, which loads in page load. So that has performance impact for rural / low bandwidth site visitors. We can assess filesize implications as we go. Let's keep all of the terms in the data for future extensibility.
Notes on probable shape of the object: https://github.com/department-of-veterans-affairs/va.gov-cms/issues/18910#issuecomment-2285067653
@eselkin (cc @Agile6MSkinner ) is there anything we can do to validate this in Prod yet? Or do we need Steps 2 & 3 present in order to do so?
You can see it in action at
https://www.va.gov/data/cms/va-healthcare-services.json
The vets-website selectors you can't really see until they get used.
Nice! Closing.
User Story or Problem Statement
AS A FE developer on VA.gov, I NEED to have a JSON object I can query that contains data from Drupal BECAUSE Querying Drupal directly from a public app is a no-no
Background from #15054
drupal download using GraphQL in metalsmith and how to use in
vets-website
The
Cerner->VistA
method was instituted because lots of disparate parts were relying on flippers per-facility to determine if that facility needed a link to Cerner or VistA portal. Whether a facility was Cerner or VisA was placed behind a redux slice that got data from drupal en masse. It is a fairly reusable approach. We should use the action built for that process to load in our data-- method is reasonably understandable.Plan
src/site/stages/build/drupal/static-data-files/vamcFacilitySupplementalStatus/index.js
in content-build)src/platform/utilities/cerner/dsot.js
andsrc/platform/site-wide/drupal-static-data/source-files/vamc-ehr/connect/index.js
GraphQL
Rudimentary query -- needs additional details:
fields that can be used in snake_case (convert to camel)
QA
Acceptance Criteria