Open mapsam opened 8 years ago
Created constants for "Years at current employer", as feedback from Kim at Mosby. Two questions:
Integer
to String
- should I update that and migrate @esmithayer?TIME_AT_CURRENT_EMPLOYER = [
("", ""),
("OWN", _("Less than 1 year")),
("RELATIVE", _("1 to 2 years")),
("HOMELESS", _("More than 2 years"))
]
Updated dropdown constants (still require "OTHER" option added in models.py
)
PHONE_DESCRIPTIONS = [
("", ""),
("CELL", _("Cell phone")),
("HOME", _("Home phone / landline")),
("WORK", _("Work number")),
("RELATIVE", _("Relative's phone number")),
("OTH", _("Other"))
]
ADDRESS_DESCRIPTIONS = [
("", ""),
("OWN", _("Personal address / own or rent")),
("RELATIVE", _("Relative's address")),
("HOMELESS", _("Homeless shelter address")),
("OTH", _("Other"))
]
Let's add FRIEND
house and rename HOMELESS
to SHELTER
Many-to-one forms can now have conditionally displayed fields by adding a new manyToOne
parameter to the patient_details.html
file:
{ target: "phone_numbers-X-number_description", child: "phone_numbers-X-number_description_other",
type: "equals", comparator: "OTH", manyToOne: true},
The field requires an X
to be replaced by a count number for selecting each of the elements.
This phrasing should change since VCC is not technically insurance
Show that changes need to be saved, make save button more visually apparent!
Many bug fixes coming in #257 and #251!
:dancer: :dancer: :dancers: :dancer: :dancer: :clap:
Working on fuzzy search integration with Fuse.js - we have access to parameters used in the search algorithm that allows us to control the "fuzziness" of it.
Right now you can have the search results return the index location of the matched search, which means we might be able to build a "bolded search match" into the results. Will post here if I get to that point.
Looks like highlighting isn't a feature yet, but maybe we can build our own implementation?
May I interest you in FuzzySearch ? It has highlighting, as well as multiple word support (like out of order word or different word match different fields)
Syntax is similar and a demo is available here
Nice, will take a look @jeancroy
Day 1
JSON.search()
extension since we are only using that single piece of Defiant.js. I can't recreate this bug, anyone else?date picker is weird when you have to choose new years - let's look into making dates with three separate inputs a la USDS0
yearsDay 2
Patient
have insurance? Yes, withVCC
doesn't make sense since VCC is not technically insurance. We should phrase this differently.strong
tags not appearing on ie9Day 3
Testing with Shikita on
dropdowns-not-dropfrowns
branch.Seems like most people think the referral history page is about appointments, rather than referralsDay 4
Access Now
IDEA: alphabetized search results?going to rank in search result order, for nowDay 5
Care-a-van