improvement: treatment preview and treatment history components overhauled. draft & completed status for treatment plan completely removed from the flow.
This commit is contained in:
@@ -114,11 +114,6 @@ model Appointment {
|
||||
@@map("appointments")
|
||||
}
|
||||
|
||||
enum TreatmentStatus {
|
||||
DRAFT
|
||||
COMPLETED
|
||||
}
|
||||
|
||||
enum LabTaskStatus {
|
||||
PENDING
|
||||
IN_PROGRESS
|
||||
@@ -126,13 +121,12 @@ enum LabTaskStatus {
|
||||
}
|
||||
|
||||
model Treatment {
|
||||
id String @id @default(uuid())
|
||||
id String @id @default(uuid())
|
||||
organizationId String
|
||||
patientId String
|
||||
appointmentId String? @unique
|
||||
appointmentId String? @unique
|
||||
providerUserId String
|
||||
title String
|
||||
status TreatmentStatus @default(DRAFT)
|
||||
treatmentAt DateTime
|
||||
|
||||
organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)
|
||||
@@ -145,7 +139,6 @@ model Treatment {
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@index([patientId, treatmentAt])
|
||||
@@index([organizationId, status])
|
||||
@@map("treatments")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user