Circle V2 API Docs
Preparing search index...
@repo/db
patientSessionsRepo
Variable patientSessionsRepo
Const
patientSessionsRepo
:
DbRepo
<
{
countForPatient
:
(
params
:
ListSessionsForPatientParams
,
)
=>
Promise
<
number
>
;
deleteById
:
(
id
:
SessionId
,
)
=>
Promise
<
{
ai_summarized_note
:
string
|
null
;
as_summarized_note_type
:
string
|
null
;
audit_run_id
:
string
&
{
__brand
:
"AuditRunId"
}
|
null
;
audit_status
:
|
"error"
|
"pass"
|
"fail"
|
"needs_review"
|
"pending"
|
"in_progress"
|
"not_started"
|
null
;
case_id
:
number
|
null
;
cpt_code
:
unknown
[]
|
null
;
created_at
:
DbDate
;
created_by
:
string
|
null
;
dsm_code
:
unknown
[]
|
null
;
end_timestamp
:
DbDate
;
error_msg
:
string
|
null
;
file_url
:
string
|
null
;
icd_code
:
unknown
[]
|
null
;
id
:
SessionId
;
manual_entry
:
boolean
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
private_note
:
string
|
null
;
progress_status
:
|
"initialized"
|
"processing"
|
"transcribing"
|
"complete"
|
"failed"
|
null
;
selected_template
:
LegacySelectedTemplate
|
null
;
start_timestamp
:
DbDate
;
transcript
:
string
|
null
;
updated_by
:
number
|
null
;
}
,
>
;
getById
:
(
id
:
SessionId
,
)
=>
Promise
<
{
ai_summarized_note
:
string
|
null
;
audit_run_id
:
string
&
{
__brand
:
"AuditRunId"
}
|
null
;
case_id
:
number
|
null
;
created_at
:
DbDate
;
end_timestamp
:
DbDate
;
file_url
:
string
|
null
;
id
:
SessionId
;
manual_entry
:
boolean
|
null
;
private_note
:
string
|
null
;
progress_status
:
|
"initialized"
|
"processing"
|
"transcribing"
|
"complete"
|
"failed"
|
null
;
selected_template
:
LegacySelectedTemplate
|
null
;
start_timestamp
:
DbDate
;
transcript
:
string
|
null
;
}
,
>
;
getPatientId
:
(
sessionId
:
SessionId
,
)
=>
Promise
<
{
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
}
>
;
getRecentSessions
:
(
patientId
:
PatientId
,
)
=>
Promise
<
{
ai_summarized_note
:
string
|
null
;
as_summarized_note_type
:
string
|
null
;
audit_run_id
:
string
&
{
__brand
:
"AuditRunId"
}
|
null
;
audit_status
:
|
"error"
|
"pass"
|
"fail"
|
"needs_review"
|
"pending"
|
"in_progress"
|
"not_started"
|
null
;
case_id
:
number
|
null
;
cpt_code
:
unknown
[]
|
null
;
created_at
:
DbDate
;
created_by
:
string
|
null
;
dsm_code
:
unknown
[]
|
null
;
end_timestamp
:
DbDate
;
error_msg
:
string
|
null
;
file_url
:
string
|
null
;
icd_code
:
unknown
[]
|
null
;
id
:
SessionId
;
manual_entry
:
boolean
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
private_note
:
string
|
null
;
progress_status
:
|
"initialized"
|
"processing"
|
"transcribing"
|
"complete"
|
"failed"
|
null
;
selected_template
:
LegacySelectedTemplate
|
null
;
start_timestamp
:
DbDate
;
transcript
:
string
|
null
;
updated_by
:
number
|
null
;
}
[]
,
>
;
getSessionForAiModification
:
(
id
:
SessionId
,
)
=>
Promise
<
{
ai_summarized_note
:
string
|
null
;
id
:
SessionId
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
progress_status
:
|
"initialized"
|
"processing"
|
"transcribing"
|
"complete"
|
"failed"
|
null
;
selected_template
:
LegacySelectedTemplate
|
null
;
transcript
:
string
|
null
;
}
,
>
;
listForCurrentUser
:
(
params
:
ListSessionsForCurrentUserParams
,
)
=>
Promise
<
{
end_timestamp
:
DbDate
;
id
:
SessionId
;
patient_first_name
:
string
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
patient_last_name
:
string
|
null
;
progress_status
:
|
"initialized"
|
"processing"
|
"transcribing"
|
"complete"
|
"failed"
|
null
;
selected_template
:
LegacySelectedTemplate
|
null
;
start_timestamp
:
DbDate
;
}
[]
,
>
;
listForPatient
:
(
params
:
ListSessionsForPatientParams
,
)
=>
Promise
<
{
ai_summarized_note
:
string
|
null
;
created_at
:
DbDate
;
end_timestamp
:
DbDate
;
id
:
SessionId
;
private_note
:
string
|
null
;
progress_status
:
|
"initialized"
|
"processing"
|
"transcribing"
|
"complete"
|
"failed"
|
null
;
selected_template
:
LegacySelectedTemplate
|
null
;
start_timestamp
:
DbDate
;
transcript
:
string
|
null
;
}
[]
,
>
;
updateAiSummarizedNote
:
(
id
:
SessionId
,
aiSummarizedNote
:
string
,
progressStatus
:
|
"initialized"
|
"processing"
|
"transcribing"
|
"complete"
|
"failed"
,
)
=>
Promise
<
{
ai_summarized_note
:
string
|
null
;
as_summarized_note_type
:
string
|
null
;
audit_run_id
:
string
&
{
__brand
:
"AuditRunId"
}
|
null
;
audit_status
:
|
"error"
|
"pass"
|
"fail"
|
"needs_review"
|
"pending"
|
"in_progress"
|
"not_started"
|
null
;
case_id
:
number
|
null
;
cpt_code
:
unknown
[]
|
null
;
created_at
:
DbDate
;
created_by
:
string
|
null
;
dsm_code
:
unknown
[]
|
null
;
end_timestamp
:
DbDate
;
error_msg
:
string
|
null
;
file_url
:
string
|
null
;
icd_code
:
unknown
[]
|
null
;
id
:
SessionId
;
manual_entry
:
boolean
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
private_note
:
string
|
null
;
progress_status
:
|
"initialized"
|
"processing"
|
"transcribing"
|
"complete"
|
"failed"
|
null
;
selected_template
:
LegacySelectedTemplate
|
null
;
start_timestamp
:
DbDate
;
transcript
:
string
|
null
;
updated_by
:
number
|
null
;
}
,
>
;
updatePrivateNote
:
(
id
:
SessionId
,
privateNote
:
string
,
)
=>
Promise
<
{
ai_summarized_note
:
string
|
null
;
as_summarized_note_type
:
string
|
null
;
audit_run_id
:
string
&
{
__brand
:
"AuditRunId"
}
|
null
;
audit_status
:
|
"error"
|
"pass"
|
"fail"
|
"needs_review"
|
"pending"
|
"in_progress"
|
"not_started"
|
null
;
case_id
:
number
|
null
;
cpt_code
:
unknown
[]
|
null
;
created_at
:
DbDate
;
created_by
:
string
|
null
;
dsm_code
:
unknown
[]
|
null
;
end_timestamp
:
DbDate
;
error_msg
:
string
|
null
;
file_url
:
string
|
null
;
icd_code
:
unknown
[]
|
null
;
id
:
SessionId
;
manual_entry
:
boolean
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
private_note
:
string
|
null
;
progress_status
:
|
"initialized"
|
"processing"
|
"transcribing"
|
"complete"
|
"failed"
|
null
;
selected_template
:
LegacySelectedTemplate
|
null
;
start_timestamp
:
DbDate
;
transcript
:
string
|
null
;
updated_by
:
number
|
null
;
}
,
>
;
updateProgressStatus
:
(
id
:
SessionId
,
progressStatus
:
|
"initialized"
|
"processing"
|
"transcribing"
|
"complete"
|
"failed"
,
)
=>
Promise
<
{
ai_summarized_note
:
string
|
null
;
as_summarized_note_type
:
string
|
null
;
audit_run_id
:
string
&
{
__brand
:
"AuditRunId"
}
|
null
;
audit_status
:
|
"error"
|
"pass"
|
"fail"
|
"needs_review"
|
"pending"
|
"in_progress"
|
"not_started"
|
null
;
case_id
:
number
|
null
;
cpt_code
:
unknown
[]
|
null
;
created_at
:
DbDate
;
created_by
:
string
|
null
;
dsm_code
:
unknown
[]
|
null
;
end_timestamp
:
DbDate
;
error_msg
:
string
|
null
;
file_url
:
string
|
null
;
icd_code
:
unknown
[]
|
null
;
id
:
SessionId
;
manual_entry
:
boolean
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
private_note
:
string
|
null
;
progress_status
:
|
"initialized"
|
"processing"
|
"transcribing"
|
"complete"
|
"failed"
|
null
;
selected_template
:
LegacySelectedTemplate
|
null
;
start_timestamp
:
DbDate
;
transcript
:
string
|
null
;
updated_by
:
number
|
null
;
}
,
>
;
updateSessionTime
:
(
id
:
SessionId
,
params
:
{
endTimestamp
:
string
;
startTimestamp
:
string
}
,
)
=>
Promise
<
{
ai_summarized_note
:
string
|
null
;
as_summarized_note_type
:
string
|
null
;
audit_run_id
:
string
&
{
__brand
:
"AuditRunId"
}
|
null
;
audit_status
:
|
"error"
|
"pass"
|
"fail"
|
"needs_review"
|
"pending"
|
"in_progress"
|
"not_started"
|
null
;
case_id
:
number
|
null
;
cpt_code
:
unknown
[]
|
null
;
created_at
:
DbDate
;
created_by
:
string
|
null
;
dsm_code
:
unknown
[]
|
null
;
end_timestamp
:
DbDate
;
error_msg
:
string
|
null
;
file_url
:
string
|
null
;
icd_code
:
unknown
[]
|
null
;
id
:
SessionId
;
manual_entry
:
boolean
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
private_note
:
string
|
null
;
progress_status
:
|
"initialized"
|
"processing"
|
"transcribing"
|
"complete"
|
"failed"
|
null
;
selected_template
:
LegacySelectedTemplate
|
null
;
start_timestamp
:
DbDate
;
transcript
:
string
|
null
;
updated_by
:
number
|
null
;
}
,
>
;
}
,
>
= ...
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Circle V2 API Docs
Loading...