Open davidmpickett opened 1 month ago
my theory is the object will be
{
"fieldHealthServiceApiId1": {
"name": "xyz",
"aka": "abc",
"commonConditions": "long string with conditions",
"showVetCenters": false,
"showVBA": false,
"showVAMC": true,
"showTricareSpecific": false
}
}
since we won't do any fuzzy matching,
[2024-08-16] Need outputs from #18909 in order to finalize ACs
User Story or Problem Statement
18909 converted Drupal data from the Service Taxonomy into a JSON object. Now we need to create functions that search that JSON object based on given text input to find and rank possible matches.
Notes from #15054
Here's the file with the autosuggest logic
src/applications/disability-benefits/all-claims/pages/addDisabilities.js
invets-website
And here's their schema
src/applications/disability-benefits/all-claims/content/disabilityLabels.js
However, it does not suggest one thing if it's related to some other condition only if it's typing is closely related. So a
nephro
prefix does not bring up renal or kidney anything or vice-versaAlso, as a side reference:
src/platform/forms-system/src/js/fields/AutosuggestField.jsx
This is the field React Component Not a fuzzy match or special kind of searchThe autocomplete field is somewhat complex, but does not do any fuzzy matching or nearest matching, just substring search.
Steps for Implementation
Acceptance Criteria
show for VAMC
if that's easier than pulling in Vet Center and VBA stuff too.