diff --git a/src/Common/constants.tsx b/src/Common/constants.tsx index 3cb972641b5..00ce057784b 100644 --- a/src/Common/constants.tsx +++ b/src/Common/constants.tsx @@ -1028,6 +1028,8 @@ export const USER_TYPES_MAP = { StaffReadOnly: "Staff", Staff: "Staff", Doctor: "Doctor", + Nurse: "Nurse", + NurseReadOnly: "Nurse", WardAdmin: "Ward Admin", LocalBodyAdmin: "Local Body Admin", DistrictLabAdmin: "District Lab Admin", @@ -1037,7 +1039,7 @@ export const USER_TYPES_MAP = { StateReadOnlyAdmin: "State Admin", StateAdmin: "State Admin", RemoteSpecialist: "Remote Specialist", -}; +} as const; export const AREACODES: Record<string, string[]> = { CA: [ diff --git a/src/Components/Facility/models.tsx b/src/Components/Facility/models.tsx index f14a3a102ee..99d91c6cbae 100644 --- a/src/Components/Facility/models.tsx +++ b/src/Components/Facility/models.tsx @@ -5,7 +5,7 @@ import { AssetData, AssetLocationType } from "../Assets/AssetTypes"; import { UserBareMinimum } from "../Users/models"; import { RouteToFacility } from "../Common/RouteToFacilitySelect"; import { ConsultationDiagnosis, CreateDiagnosis } from "../Diagnosis/types"; -import { ConsultationSuggestionValue } from "../../Common/constants"; +import { ConsultationSuggestionValue, UserRole } from "../../Common/constants"; export interface LocalBodyModel { id: number; @@ -494,7 +494,7 @@ export interface PatientNotesModel { note: string; facility: BaseFacilityModel; created_by_object: BaseUserModel; - user_type?: string; + user_type?: UserRole | "RemoteSpecialist"; created_date: string; }