Project

General

Profile

Actions

Feature #390

open
NP NP

HR: Dietetics/Nutrition workspace backend (Part 2 of 4)

Feature #390: HR: Dietetics/Nutrition workspace backend (Part 2 of 4)

Added by Navya P. 30 days ago. Updated 29 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
10/14/2026
Due date:
% Done:

0%

Estimated time:
Resolved By:

Description

Part 2 of the Dietetics/Nutrition workflow (Part 1: Admin backend, Redmine #388). New hospital-scoped DietTypesController (api/hr/diet-types) + thin IDietTypeService pass-through to IAdminServiceContract (diet types carry no HR-local data, unlike IDoctorService which enriches an Admin profile with HR employment data). HospitalId always resolved server-side from IHospitalContext, never trusted from the request body. Create request type deliberately omits Code case-normalisation -- IPD DietType enum values are PascalCase, and the force-uppercase mistake already broke this twice this session (Canteen local catalog, Admin draft entity). hr.diet_types.read/create/update/deactivate permission keys already seeded onto the HR Manager role in Admin (part of #388s commit). HR unit suite 1135/1135 green (4 new DietTypeService tests + existing AuthorizationCoverageTests confirms every new action is permission-gated).

NP Updated by Navya P. 30 days ago Actions #1

  • Status changed from New to Resolved
  • Resolved By set to Navya P.

NP Updated by Navya P. 29 days ago Actions #2

  • Assignee set to Navya P.
Actions

Also available in: PDF Atom