Compare commits
No commits in common. "6d2a7818dbfc2008df5c2d57e737e2f2625a7d70" and "b6ba225e3dffa8546050f7e019e18a573da2ff26" have entirely different histories.
6d2a7818db
...
b6ba225e3d
25
ext_note.py
25
ext_note.py
@ -31,24 +31,15 @@ async def cmd_reports(proc, mrn, alpha, omega):
|
||||
proc.sendline(util.vista_strftime(omega))
|
||||
assert await expect.endswith('\r\n Thru: ')
|
||||
proc.sendline(util.vista_strftime(alpha))
|
||||
found = True
|
||||
match await expect.endswith('\r\nDo you want WORK copies or CHART copies? CHART// ', '\r\nPrint Notes Beginning: '):
|
||||
case autoproc.ExpectMatch(index=0):
|
||||
proc.sendline() # default CHART
|
||||
if await expect.endswith('\r\nDo you want to start each note on a new page? NO// '):
|
||||
proc.sendline() # default NO
|
||||
assert await expect.endswith('\r\nDEVICE: HOME// ')
|
||||
proc.sendline('HOME;;1023')
|
||||
assert await expect.earliest(' HOME(CRT)\r\n')
|
||||
case autoproc.ExpectMatch(index=1):
|
||||
proc.sendline('^')
|
||||
assert await expect.endswith('\r\nSelect PATIENT NAME: ')
|
||||
proc.sendline('^')
|
||||
assert await expect.endswith('\r\nSelect Progress Notes Print Options Option: ')
|
||||
found = False
|
||||
case _: assert False
|
||||
assert await expect.endswith('\r\nDo you want WORK copies or CHART copies? CHART// ')
|
||||
proc.sendline() # default CHART
|
||||
if await expect.endswith('\r\nDo you want to start each note on a new page? NO// '):
|
||||
proc.sendline() # default NO
|
||||
assert await expect.endswith('\r\nDEVICE: HOME// ')
|
||||
proc.sendline('HOME;;1023')
|
||||
assert await expect.earliest(' HOME(CRT)\r\n')
|
||||
pages = []
|
||||
while found:
|
||||
while True:
|
||||
match m_delimiter := await expect.endswith('\r\nType <Enter> to continue or \'^\' to exit: ', '\r\nSelect PATIENT NAME: '):
|
||||
case autoproc.ExpectMatch(index=0, before=before):
|
||||
if isnew(before) and len(pages) > 0:
|
||||
|
@ -2,12 +2,8 @@
|
||||
export async function load({ params, fetch }) {
|
||||
let clinics = await (await fetch('/api/clinic/list')).json();
|
||||
clinics.reduce((acc, item) => (acc[item.name] = item, acc), clinics);
|
||||
try {
|
||||
let selection = await (await fetch('/api/config/user/clinics')).json();
|
||||
selection.forEach(x => clinics[x] ? clinics[x].active = true : false);
|
||||
} catch(ex) {
|
||||
console.error(ex, ex.stack);
|
||||
}
|
||||
let selection = await (await fetch('/api/config/user/clinics')).json();
|
||||
selection.forEach(x => clinics[x] ? clinics[x].active = true : false);
|
||||
return {
|
||||
clinics
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user