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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user