Replaced mock data with live database data; minoe aesthetic changes
This commit is contained in:
1 parent
ddc6484538
commit
08b753f89e
17 files changed
+1084
-573
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import { processPatientRecords } from './patientUtils.js'
|
||||
|
||||
function getPbApi() {
|
||||
if (!window.api?.pb) {
|
||||
throw new Error('PocketBase IPC bridge unavailable. Please launch inside CTM Concierge desktop app.')
|
||||
}
|
||||
return window.api.pb
|
||||
}
|
||||
|
||||
export async function fetchEntries() {
|
||||
const data = await getPbApi().fetchEntries()
|
||||
return processPatientRecords(data)
|
||||
}
|
||||
Reference in new issue
Block a user