Skip to content

Commit

Permalink
fixes #7018; nurse undefined in doctor notes
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Jan 12, 2024
1 parent f2bf161 commit 76db601
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/Common/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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: [
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Facility/models.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 76db601

Please sign in to comment.