Circle V2 API Docs
Preparing search index...
@repo/trpc
routers/audit-runs/index
auditRunsRouter
Variable auditRunsRouter
Const
auditRunsRouter
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
createResponseTrail
:
MutationProcedure
<
{
input
:
{
auditResponseId
:
string
;
comment
?:
string
;
markedAs
:
"pass"
|
"fail"
|
"not_applicable"
;
}
;
meta
:
object
;
output
:
{
audit_response_id
:
string
&
{
__brand
:
"AuditResponseId"
}
;
comment
:
string
|
null
;
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
id
:
AuditResponseTrailId
;
marked_as
:
"pass"
|
"fail"
|
"not_applicable"
;
}
;
}
,
>
;
getById
:
QueryProcedure
<
{
input
:
{
id
:
string
}
;
meta
:
object
;
output
:
{
auditRun
:
{
archived
:
boolean
;
audit_template_id
:
string
&
{
__brand
:
"AuditTemplateId"
}
|
null
;
case_id
:
string
&
{
__brand
:
"CaseId"
}
|
null
;
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
hidden
:
boolean
;
id
:
AuditRunId
;
status
:
string
|
null
;
summary
:
string
|
null
;
template_name
:
string
|
null
;
trigger
:
string
|
null
;
triggered_at
:
string
|
null
;
}
;
responses
:
LegacyAuditRunResponseViewModel
[]
;
score
:
number
|
null
;
statusCounts
:
AuditRunStatusCounts
;
templateQuestionCount
:
number
;
}
;
}
,
>
;
listForPatient
:
QueryProcedure
<
{
input
:
{
cursor
?:
number
;
dateFrom
?:
string
;
dateTo
?:
string
;
excludeAuditRunIds
?:
string
[]
;
limit
?:
number
;
offset
?:
number
;
patientId
:
string
;
resultStatus
?:
unknown
;
search
?:
string
;
sortOrder
?:
"asc"
|
"desc"
;
templateIds
?:
string
[]
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
PatientRecentReviewRunListItem
>
;
}
,
>
;
listRecentForPatient
:
QueryProcedure
<
{
input
:
{
patientId
:
string
}
;
meta
:
object
;
output
:
ListRecentPatientReviewRunsServiceResult
;
}
,
>
;
}
,
>
,
>
= ...
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Circle V2 API Docs
Loading...