mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 14:16:12 +00:00
fix(doctor-report): name a managed record by its display name
The report cover, the PDF author field, the FHIR Patient and the share page printed `fullName ?? username`, and the collector never read the display name. A managed record has no way to get a full name, so its generated `managed-<hex>` login landed on every clinical document made for it; an own account printed the login instead of its display name. The collector now resolves the name once (`patientName()`: full name, display name, login, never a managed record's generated handle) and the five readers print that one field. `patient.username` and `patient.fullName` leave the report payload; nothing else read them.
This commit is contained in:
1 parent
aae029d94e
commit
5cf4a7d213
30 files changed
+169
-77
No files matched your search
@@ -314,7 +314,7 @@ describe("doctor-report — per-section toggles", () => {
|
||||
expect(data.labResults).toBeNull();
|
||||
expect(data.allergies).toBeNull();
|
||||
expect(data.familyHistory).toBeNull();
|
||||
expect(data.patient.username).toBeNull();
|
||||
expect(data.patient.name).toBeNull();
|
||||
expect(data.patient.insurerName).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user