# W5-BE-E — BE follow-ups collected from the wave reports (BE)

Read _COMMON.md first. Everything from earlier waves is committed (BE aacaac484). Another agent (W1-BE-A2 fix pass) is editing EncounterServiceOrder / Folio / RepairAdmissionOrdersCommand / Dental ChargeService / EncounterResource::billingOrderId — don't touch those.

## Tasks
1. **Hidden values must still render for everyone** (W2-FE-2 gap): today GET clinic/clinical-lookups returns inactive rows only to managers, so a non-manager sees a raw code on an old answer whose value was hidden. Return inactive rows to every reader with `is_active:false` (the FE already keeps them out of pick lists and renders them as dashed chips) — OR add a small `GET clinic/clinical-lookups/labels?lookup_key=&codes[]=` used to resolve labels; pick the one that fits LookupCatalogService + the FE service (shared/components/clinical-picker/clinical-lookup.service.ts) best and implement the FE side too if the API shape changes (small FE edit allowed in that service only). Test.
2. **Restore label clash** (W1-BE-B): `POST clinic/clinical-lookups/{id}/restore` returns 422 when a live sibling now has the same value_ar/value_en. Test.
3. **Mirror freshness** (W3-BE-D): (a) call the AnswerValueMirror sync for the answers touched by `security:pii-encrypt` (Sec3PiiEncryptCommand) — or run the mirror command at its end; (b) the direct writers outside HistoryService (GynObstetricHooks ~:119, PregnancyService ~:635, and any other `PatientHistoryAnswer` writer you find by grep) call the mirror sync for the answers they write/delete; (c) schedule `clinic:history:mirror-values` nightly in the module's scheduler (follow how other Clinic schedules are registered). Tests for (b).
4. **Settings screen refresh** (W2-BE-C): after saving `clinic.facility_type` in /clinic/settings the 4 mode rows show stale values until reload — make the settings save response include the changed sibling settings, or have the FE settings page reload its group after a facility_type save (small FE edit in features/clinic/settings/ allowed). 

Run only your tests. Do not commit.
