Document PrescriptionFlag on the platform schemas sheet.
Keep entity schemas aligned with Admin Rx flagging after merging remote schema pack. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
d55c88c999
commit
12a4aa8a9f
|
|
@ -339,6 +339,34 @@ interface PrescriptionItem {
|
||||||
instructions?: string
|
instructions?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Staff review markers — distinct from line `controlled` and workflow status. */
|
||||||
|
type PrescriptionFlagCode =
|
||||||
|
| 'controlled_substance'
|
||||||
|
| 'interaction_concern'
|
||||||
|
| 'incomplete_rx'
|
||||||
|
| 'fraud_suspicion'
|
||||||
|
| 'stock_shortage'
|
||||||
|
| 'needs_clarification'
|
||||||
|
| 'allergy_concern'
|
||||||
|
| 'dosing_concern'
|
||||||
|
| 'other'
|
||||||
|
|
||||||
|
type PrescriptionFlagSeverity = 'info' | 'warning' | 'critical'
|
||||||
|
type PrescriptionFlagStatus = 'open' | 'resolved'
|
||||||
|
|
||||||
|
interface PrescriptionFlag {
|
||||||
|
id: string
|
||||||
|
code: PrescriptionFlagCode
|
||||||
|
severity: PrescriptionFlagSeverity
|
||||||
|
note: string
|
||||||
|
createdBy: string
|
||||||
|
createdAt: Timestamp
|
||||||
|
status: PrescriptionFlagStatus
|
||||||
|
resolvedBy?: string
|
||||||
|
resolvedAt?: Timestamp
|
||||||
|
resolutionNote?: string
|
||||||
|
}
|
||||||
|
|
||||||
interface Prescription {
|
interface Prescription {
|
||||||
id: string
|
id: string
|
||||||
customerName: string
|
customerName: string
|
||||||
|
|
@ -359,6 +387,7 @@ interface Prescription {
|
||||||
rejection_reason?: string
|
rejection_reason?: string
|
||||||
days_supply?: number
|
days_supply?: number
|
||||||
refill_due_at?: DateOnly
|
refill_due_at?: DateOnly
|
||||||
|
flags?: PrescriptionFlag[]
|
||||||
}
|
}
|
||||||
|
|
||||||
type PrescriptionVerifyBody = {
|
type PrescriptionVerifyBody = {
|
||||||
|
|
|
||||||
Reference in New Issue
Block a user