fix: Add No clinical approval view + No live capture view for bedside data entry + EntryForm missing allergy, medication, and discharge fields

This commit is contained in:
voltsrage
2026-06-27 16:27:58 +08:00
parent 1c7e7fee7d
commit efd3974d1f
13 changed files with 1184 additions and 12 deletions
+10 -4
View File
@@ -182,10 +182,16 @@ async function assignBatch(batchId: string, entryClerkUserId: string): Promise<v
await post<void>(`digitization-batches/${batchId}/reject`, { reason })
}
async function approveBatch(batchId: string): Promise<void> {
await post<void>(`digitization-batches/${batchId}/approve`, null, {
'Idempotency-Key': crypto.randomUUID(),
})
async function approveBatch(
batchId: string,
enableRetroactiveAlerts: boolean = false
): Promise<{ status?: number; data?: { mrn: string; encounterId: string; observationIds: string[] } }> {
const response = await post<{ mrn: string; encounterId: string; observationIds: string[] }>(
`digitization-batches/${batchId}/approve`,
{ enableRetroactiveAlerts },
{ 'Idempotency-Key': crypto.randomUUID() }
)
return { data: response.data ?? undefined }
}
return {