Circle V2 API Docs
Preparing search index...
@repo/trpc
client
useTRPC
Variable useTRPC
useTRPC
:
()
=>
TRPCOptionsProxy
<
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
auditRuns
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
createResponseTrail
:
MutationProcedure
<
{
input
:
{
auditResponseId
:
...
;
comment
?:
...
;
markedAs
:
...
}
;
meta
:
object
;
output
:
{
audit_response_id
:
...
;
comment
:
...
;
created_at
:
...
;
created_by
:
...
;
id
:
...
;
marked_as
:
...
;
}
;
}
,
>
;
getById
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
auditRun
:
...
;
responses
:
...
;
score
:
...
;
statusCounts
:
...
;
templateQuestionCount
:
...
;
}
;
}
,
>
;
listForPatient
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
dateFrom
?:
...
;
dateTo
?:
...
;
excludeAuditRunIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
patientId
:
...
;
resultStatus
?:
...
;
search
?:
...
;
sortOrder
?:
...
;
templateIds
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listRecentForPatient
:
QueryProcedure
<
{
input
:
{
patientId
:
...
}
;
meta
:
object
;
output
:
ListRecentPatientReviewRunsServiceResult
;
}
,
>
;
}
,
>
,
>
;
auditTemplates
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
customReviewCriteriaPrompt
?:
...
;
customSummaryPrompt
?:
...
;
description
?:
...
;
name
:
...
;
questions
?:
...
;
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
custom_review_criteria_prompt
:
...
;
custom_summary_prompt
:
...
;
description
:
...
;
id
:
...
;
name
:
...
;
org_id
:
...
;
share_with_org
:
...
;
shared_by
:
...
;
shared_with_entity_id
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
custom_review_criteria_prompt
:
...
;
custom_summary_prompt
:
...
;
description
:
...
;
id
:
...
;
name
:
...
;
org_id
:
...
;
share_with_org
:
...
;
shared_by
:
...
;
shared_with_entity_id
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
duplicate
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
custom_review_criteria_prompt
:
...
;
custom_summary_prompt
:
...
;
description
:
...
;
id
:
...
;
name
:
...
;
org_id
:
...
;
share_with_org
:
...
;
shared_by
:
...
;
shared_with_entity_id
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
getById
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
auditTemplate
:
...
;
questions
:
...
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
toggleSharing
:
MutationProcedure
<
{
input
:
{
id
:
...
;
shared
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
custom_review_criteria_prompt
:
...
;
custom_summary_prompt
:
...
;
description
:
...
;
id
:
...
;
name
:
...
;
org_id
:
...
;
share_with_org
:
...
;
shared_by
:
...
;
shared_with_entity_id
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
customReviewCriteriaPrompt
?:
...
;
customSummaryPrompt
?:
...
;
description
?:
...
;
id
:
...
;
name
?:
...
;
questions
?:
...
;
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
custom_review_criteria_prompt
:
...
;
custom_summary_prompt
:
...
;
description
:
...
;
id
:
...
;
name
:
...
;
org_id
:
...
;
share_with_org
:
...
;
shared_by
:
...
;
shared_with_entity_id
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
chartReviewTriggers
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
auditTemplateId
:
...
;
facilities
?:
...
;
intervalSeconds
:
...
;
levelOfCareIds
?:
...
;
name
:
...
;
timeAfterTriggerSeconds
:
...
;
triggerType
:
...
;
}
;
meta
:
object
;
output
:
{
audit_template_id
:
...
;
created_at
:
...
;
deleted
:
...
;
enabled
:
...
;
entity_id
:
...
;
filters
:
...
;
id
:
...
;
interval_seconds
:
...
;
last_run_at
:
...
;
name
:
...
;
time_after_trigger_seconds
:
...
;
trigger_type
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
triggerId
:
...
}
;
meta
:
object
;
output
:
{
audit_template_id
:
...
;
created_at
:
...
;
deleted
:
...
;
enabled
:
...
;
entity_id
:
...
;
filters
:
...
;
id
:
...
;
interval_seconds
:
...
;
last_run_at
:
...
;
name
:
...
;
time_after_trigger_seconds
:
...
;
trigger_type
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
(...)
[]
}
>
;
update
:
MutationProcedure
<
{
input
:
{
auditTemplateId
:
...
;
facilities
?:
...
;
id
:
...
;
intervalSeconds
:
...
;
levelOfCareIds
?:
...
;
name
:
...
;
timeAfterTriggerSeconds
:
...
;
}
;
meta
:
object
;
output
:
{
audit_template_id
:
...
;
created_at
:
...
;
deleted
:
...
;
enabled
:
...
;
entity_id
:
...
;
filters
:
...
;
id
:
...
;
interval_seconds
:
...
;
last_run_at
:
...
;
name
:
...
;
time_after_trigger_seconds
:
...
;
trigger_type
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
chat
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
sendMessage
:
MutationProcedure
<
{
input
:
{
messages
:
...
;
patientId
:
...
}
;
meta
:
object
;
output
:
{
citations
?:
...
;
content
:
...
;
id
:
...
;
role
:
...
}
;
}
,
>
;
}
,
>
,
>
;
contacts
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
contactTypeId
?:
...
;
fieldValues
?:
...
}
;
meta
:
object
;
output
:
{
contact_id
:
...
;
contact_type
:
...
;
created_at
:
...
;
created_by
:
...
;
org_id
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
contactId
:
...
}
;
meta
:
object
;
output
:
void
}
,
>
;
get
:
QueryProcedure
<
{
input
:
{
contactId
:
...
}
;
meta
:
object
;
output
:
{
contact_id
:
...
;
contact_type
:
...
;
contact_type_id
:
...
;
contact_type_name
:
...
;
created_at
:
...
;
created_by
:
...
;
fieldValues
:
...
;
org_id
:
...
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
contactTypeId
?:
...
;
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
contactId
:
...
;
contactTypeId
?:
...
;
fieldValues
?:
...
;
}
;
meta
:
object
;
output
:
void
;
}
,
>
;
}
,
>
,
>
;
contactTypes
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
customFields
?:
...
;
name
:
...
}
;
meta
:
object
;
output
:
{
contact_type_id
:
...
;
created_at
:
...
;
created_by
:
...
;
org_id
:
...
;
type
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
contactTypeId
:
...
}
;
meta
:
object
;
output
:
void
}
,
>
;
get
:
QueryProcedure
<
{
input
:
{
contactTypeId
:
...
}
;
meta
:
object
;
output
:
{
contact_type_id
:
...
;
created_at
:
...
;
created_by
:
...
;
fields
:
...
;
org_id
:
...
;
type
:
...
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
(...)
[]
}
>
;
update
:
MutationProcedure
<
{
input
:
{
contactTypeId
:
...
;
fieldIdsToRemove
?:
...
;
fieldsToAdd
?:
...
;
name
?:
...
;
}
;
meta
:
object
;
output
:
void
;
}
,
>
;
}
,
>
,
>
;
facilities
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
integration
?:
...
;
name
:
...
}
;
meta
:
object
;
output
:
(...)
|
(...)
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
success
:
...
}
}
,
>
;
listInOrganization
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listWithIntegrations
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
}
;
meta
:
object
;
output
:
(...)
[]
;
}
,
>
;
listWithLevelsOfCare
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
(...)
[]
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
id
:
...
;
integration
?:
...
;
name
:
...
}
;
meta
:
object
;
output
:
UpdateFacilityWithIntegrationResult
;
}
,
>
;
}
,
>
,
>
;
integrations
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
fullSync
:
MutationProcedure
<
{
input
:
{
dry_run
?:
...
;
integration_id
:
...
}
;
meta
:
object
;
output
:
{
chart_reviews_enqueued
:
...
;
patients_enqueued
:
...
;
success
:
...
;
}
;
}
,
>
;
getIntegrationLocations
:
QueryProcedure
<
{
input
:
(...)
|
(...)
|
(...)
;
meta
:
object
;
output
:
(...)
|
(...)
|
(...)
;
}
,
>
;
syncAdmissions
:
MutationProcedure
<
{
input
:
{
dry_run
?:
...
;
end_date
?:
...
;
integration_id
:
...
;
start_date
?:
...
;
}
;
meta
:
object
;
output
:
{
error
:
...
;
patients
?:
...
;
stats
?:
...
;
success
:
...
}
;
}
,
>
;
syncPatient
:
MutationProcedure
<
{
input
:
{
dryRun
?:
...
;
patientId
:
...
;
syncDocuments
?:
...
}
;
meta
:
object
;
output
:
{
success
:
...
}
;
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
id
:
...
;
integration
?:
...
;
label
?:
...
;
status
?:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
credentials
:
...
;
entity_id
:
...
;
facility_id
:
...
;
id
:
...
;
label
:
...
;
last_sync
:
...
;
status
:
...
;
type
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
metrics
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
criteriaAssistants
:
QueryProcedure
<
{
input
:
{
auditTemplateIds
?:
...
;
cursor
?:
...
;
dateRange
:
...
;
facilityIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
scoreRange
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
(...)
[]
;
}
,
>
;
criteriaDetail
:
QueryProcedure
<
{
input
:
{
auditTemplateId
:
...
;
auditTemplateIds
?:
...
;
cursor
?:
...
;
dateRange
:
...
;
facilityIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
scoreRange
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
userId
?:
...
;
}
;
meta
:
object
;
output
:
{
items
:
...
;
nextCursor
:
...
;
providers
:
...
;
total
:
...
}
;
}
,
>
;
metricsFacilities
:
QueryProcedure
<
{
input
:
{
auditTemplateIds
?:
...
;
cursor
?:
...
;
dateRange
:
...
;
facilityIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
scoreRange
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
(...)
[]
;
}
,
>
;
metricsGrouped
:
QueryProcedure
<
{
input
:
{
auditTemplateIds
?:
...
;
cursor
?:
...
;
dateRange
:
...
;
dimension
:
...
;
facilityIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
scoreRange
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
}
,
>
,
>
;
orgMembers
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
createInvite
:
MutationProcedure
<
{
input
:
{
email
:
...
;
firstName
:
...
;
lastName
:
...
;
roleId
:
...
;
title
?:
...
;
}
;
meta
:
object
;
output
:
InviteUserServiceResult
;
}
,
>
;
listPendingInvites
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listRoles
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listUsers
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
roleId
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
}
,
>
,
>
;
patientCharts
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
listForPatient
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
dateFrom
?:
...
;
dateTo
?:
...
;
fileType
?:
...
;
limit
?:
...
;
offset
?:
...
;
patientId
:
...
;
search
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listGeneratedFormsForPatient
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
dateFrom
?:
...
;
dateTo
?:
...
;
limit
?:
...
;
offset
?:
...
;
patientId
:
...
;
search
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
}
,
>
,
>
;
patients
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
createPatient
:
MutationProcedure
<
{
input
:
{
addressCity
?:
...
;
addressState
?:
...
;
addressStreet1
?:
...
;
addressStreet2
?:
...
;
addressZipcode
?:
...
;
dob
?:
...
;
email
?:
...
;
facilityId
?:
...
;
firstName
:
...
;
gender
?:
...
;
intakeNotes
?:
...
;
lastName
:
...
;
phoneMobile
?:
...
;
}
;
meta
:
object
;
output
:
{
address_city
:
...
;
address_state
:
...
;
address_street1
:
...
;
address_street2
:
...
;
address_zipcode
:
...
;
created_at
:
...
;
created_by
:
...
;
dob
:
...
;
email
:
...
;
entity_id
:
...
;
external_patient_id
:
...
;
external_source
:
...
;
facility_id
:
...
;
first_name
:
...
;
gender
:
...
;
intake_notes
:
...
;
last_name
:
...
;
last_updated_summary
:
...
;
patient_id
:
...
;
phone_mobile
:
...
;
primary_provider_id
:
...
;
status
:
...
;
summary
:
...
;
}
;
}
,
>
;
deletePatient
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
id
:
...
}
}
,
>
;
getPatientById
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
address_city
:
...
;
address_state
:
...
;
address_street1
:
...
;
address_street2
:
...
;
address_zipcode
:
...
;
created_at
:
...
;
created_by
:
...
;
dob
:
...
;
email
:
...
;
entity_id
:
...
;
external_patient_id
:
...
;
external_source
:
...
;
facility_id
:
...
;
first_name
:
...
;
gender
:
...
;
intake_notes
:
...
;
last_name
:
...
;
last_updated_summary
:
...
;
patient_id
:
...
;
phone_mobile
:
...
;
primary_provider_id
:
...
;
status
:
...
;
summary
:
...
;
}
;
}
,
>
;
getPatientDetail
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
admitted_at
:
...
;
created_at
:
...
;
discharged_at
:
...
;
dob
:
...
;
external_source
:
...
;
facility_id
:
...
;
facility_name
:
...
;
first_name
:
...
;
last_name
:
...
;
last_sync
:
...
;
patient_id
:
...
;
primary_provider_id
:
...
;
provider_first_name
:
...
;
provider_last_name
:
...
;
provider_title
:
...
;
}
;
}
,
>
;
getPatientOverview
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
patient
:
...
;
recentSessions
:
...
}
;
}
,
>
;
listInOrganization
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
facilityId
?:
...
;
limit
?:
...
;
offset
?:
...
;
patientIds
?:
...
;
patientSearch
?:
...
;
primaryProviderId
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
status
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
updatePatient
:
MutationProcedure
<
{
input
:
{
addressCity
?:
...
;
addressState
?:
...
;
addressStreet1
?:
...
;
addressStreet2
?:
...
;
addressZipcode
?:
...
;
dob
?:
...
;
email
?:
...
;
facilityId
?:
...
;
firstName
:
...
;
gender
?:
...
;
id
:
...
;
intakeNotes
?:
...
;
lastName
:
...
;
phoneMobile
?:
...
;
}
;
meta
:
object
;
output
:
{
address_city
:
...
;
address_state
:
...
;
address_street1
:
...
;
address_street2
:
...
;
address_zipcode
:
...
;
created_at
:
...
;
created_by
:
...
;
dob
:
...
;
email
:
...
;
entity_id
:
...
;
external_patient_id
:
...
;
external_source
:
...
;
facility_id
:
...
;
first_name
:
...
;
gender
:
...
;
intake_notes
:
...
;
last_name
:
...
;
last_updated_summary
:
...
;
patient_id
:
...
;
phone_mobile
:
...
;
primary_provider_id
:
...
;
status
:
...
;
summary
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
patientSessions
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
ai_summarized_note
:
...
;
as_summarized_note_type
:
...
;
audit_run_id
:
...
;
audit_status
:
...
;
case_id
:
...
;
cpt_code
:
...
;
created_at
:
...
;
created_by
:
...
;
dsm_code
:
...
;
end_timestamp
:
...
;
error_msg
:
...
;
file_url
:
...
;
icd_code
:
...
;
id
:
...
;
manual_entry
:
...
;
patient_id
:
...
;
private_note
:
...
;
progress_status
:
...
;
selected_template
:
...
;
start_timestamp
:
...
;
transcript
:
...
;
updated_by
:
...
;
}
;
}
,
>
;
getById
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
caseAuditRunIds
:
...
;
patientSession
:
...
}
;
}
,
>
;
getRecentSessions
:
QueryProcedure
<
{
input
:
{
patientId
:
...
}
;
meta
:
object
;
output
:
{
sessions
:
...
}
;
}
,
>
;
listForCurrentUser
:
QueryProcedure
<
{
input
:
{
from
:
...
;
to
:
...
}
;
meta
:
object
;
output
:
{
sessions
:
...
}
;
}
,
>
;
listForPatient
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
dateFrom
?:
...
;
dateTo
?:
...
;
limit
?:
...
;
offset
?:
...
;
patientId
:
...
;
search
?:
...
;
sortOrder
?:
...
;
status
?:
...
;
templateIds
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
modifyAiNote
:
MutationProcedure
<
{
input
:
{
customPrompt
?:
...
;
optionId
:
...
;
sessionId
:
...
}
;
meta
:
object
;
output
:
{
ai_generated_note
:
...
}
;
}
,
>
;
switchTemplate
:
MutationProcedure
<
{
input
:
{
sessionId
:
...
;
templateId
:
...
}
;
meta
:
object
;
output
:
any
;
}
,
>
;
updateAiSummarizedNote
:
MutationProcedure
<
{
input
:
{
aiSummarizedNote
:
...
;
id
:
...
}
;
meta
:
object
;
output
:
{
ai_summarized_note
:
...
;
as_summarized_note_type
:
...
;
audit_run_id
:
...
;
audit_status
:
...
;
case_id
:
...
;
cpt_code
:
...
;
created_at
:
...
;
created_by
:
...
;
dsm_code
:
...
;
end_timestamp
:
...
;
error_msg
:
...
;
file_url
:
...
;
icd_code
:
...
;
id
:
...
;
manual_entry
:
...
;
patient_id
:
...
;
private_note
:
...
;
progress_status
:
...
;
selected_template
:
...
;
start_timestamp
:
...
;
transcript
:
...
;
updated_by
:
...
;
}
;
}
,
>
;
updatePrivateNote
:
MutationProcedure
<
{
input
:
{
id
:
...
;
privateNote
:
...
}
;
meta
:
object
;
output
:
{
ai_summarized_note
:
...
;
as_summarized_note_type
:
...
;
audit_run_id
:
...
;
audit_status
:
...
;
case_id
:
...
;
cpt_code
:
...
;
created_at
:
...
;
created_by
:
...
;
dsm_code
:
...
;
end_timestamp
:
...
;
error_msg
:
...
;
file_url
:
...
;
icd_code
:
...
;
id
:
...
;
manual_entry
:
...
;
patient_id
:
...
;
private_note
:
...
;
progress_status
:
...
;
selected_template
:
...
;
start_timestamp
:
...
;
transcript
:
...
;
updated_by
:
...
;
}
;
}
,
>
;
updateSessionTime
:
MutationProcedure
<
{
input
:
{
endTimestamp
:
...
;
id
:
...
;
startTimestamp
:
...
}
;
meta
:
object
;
output
:
{
ai_summarized_note
:
...
;
as_summarized_note_type
:
...
;
audit_run_id
:
...
;
audit_status
:
...
;
case_id
:
...
;
cpt_code
:
...
;
created_at
:
...
;
created_by
:
...
;
dsm_code
:
...
;
end_timestamp
:
...
;
error_msg
:
...
;
file_url
:
...
;
icd_code
:
...
;
id
:
...
;
manual_entry
:
...
;
patient_id
:
...
;
private_note
:
...
;
progress_status
:
...
;
selected_template
:
...
;
start_timestamp
:
...
;
transcript
:
...
;
updated_by
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
profiles
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
listInOrganization
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
updateProfile
:
MutationProcedure
<
{
input
:
{
firstName
:
...
;
lastName
:
...
;
title
?:
...
}
;
meta
:
object
;
output
:
{
clinic_size
:
...
;
created_at
:
...
;
customer_id
:
...
;
email
:
...
;
expectations
:
...
;
external_system
:
...
;
external_system_id
:
...
;
first_name
:
...
;
hear_about_us
:
...
;
id
:
...
;
is_superadmin
:
...
;
last_name
:
...
;
last_updated
:
...
;
price_id
:
...
;
profile_type
:
...
;
session_limit
:
...
;
subscription_status
:
...
;
title
:
...
;
user_id
:
...
;
vertical
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
reviewDashboard
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
list
:
QueryProcedure
<
{
input
:
{
admissionDateRange
?:
...
;
auditTemplateIds
?:
...
;
authEndDateRange
?:
...
;
authStartDateRange
?:
...
;
clientSearch
?:
...
;
cursor
?:
...
;
dateRange
?:
...
;
facilityIds
?:
...
;
includeNullTriggers
?:
...
;
levelOfCareIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
profileIds
?:
...
;
scoreRange
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
triggerIds
?:
...
;
type
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listGrouped
:
QueryProcedure
<
{
input
:
{
admissionDateRange
?:
...
;
auditTemplateIds
?:
...
;
authEndDateRange
?:
...
;
authStartDateRange
?:
...
;
clientSearch
?:
...
;
cursor
?:
...
;
dateRange
?:
...
;
facilityIds
?:
...
;
includeNullTriggers
?:
...
;
levelOfCareIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
profileIds
?:
...
;
scoreRange
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
triggerIds
?:
...
;
type
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
}
,
>
,
>
;
savedFilters
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
columnVisibility
?:
...
;
filters
:
...
;
name
:
...
;
pageKey
:
...
;
viewMode
?:
...
;
}
;
meta
:
object
;
output
:
SavedViewDto
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
DeleteSavedFilterOutput
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
pageKey
:
...
}
;
meta
:
object
;
output
:
ListSavedFiltersOutput
;
}
,
>
;
}
,
>
,
>
;
teams
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
addTeamMembers
:
MutationProcedure
<
{
input
:
{
profileIds
:
...
;
teamId
:
...
}
;
meta
:
object
;
output
:
(...)
[]
;
}
,
>
;
createTeam
:
MutationProcedure
<
{
input
:
{
memberIds
:
...
;
name
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
entity_id
:
...
;
id
:
...
;
name
:
...
;
}
;
}
,
>
;
listTeams
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
(...)
[]
}
,
>
;
removeTeamMember
:
MutationProcedure
<
{
input
:
{
profileId
:
...
;
teamId
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
id
:
...
;
profile_id
:
...
;
team_id
:
...
;
user_entity_id
:
...
;
user_id
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
templates
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
additionalAiInstructions
?:
...
;
checkCpt
?:
...
;
checkDsm5
?:
...
;
checkIcd10
?:
...
;
hiddenInstructions
?:
...
;
isAllowBulletPoints
?:
...
;
isUnstructuredNarrative
?:
...
;
linkedAuditTemplateIds
?:
...
;
sections
?:
...
;
title
:
...
;
}
;
meta
:
object
;
output
:
{
additional_ai_instructions
:
...
;
check_cpt
:
...
;
check_demo
:
...
;
check_dsm_5
:
...
;
check_icd_10
:
...
;
created_by
:
...
;
created_by_circle
:
...
;
hidden_instructions
:
...
;
id
:
...
;
is_allow_bullet_points
:
...
;
is_unstructured_narrative
:
...
;
last_updated
:
...
;
last_used
:
...
;
original_template_id
:
...
;
shared_with_org_id
:
...
;
title
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
additional_ai_instructions
:
...
;
check_cpt
:
...
;
check_demo
:
...
;
check_dsm_5
:
...
;
check_icd_10
:
...
;
created_by
:
...
;
created_by_circle
:
...
;
hidden_instructions
:
...
;
id
:
...
;
is_allow_bullet_points
:
...
;
is_unstructured_narrative
:
...
;
last_updated
:
...
;
last_used
:
...
;
original_template_id
:
...
;
shared_with_org_id
:
...
;
title
:
...
;
}
;
}
,
>
;
duplicate
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
additional_ai_instructions
:
...
;
check_cpt
:
...
;
check_demo
:
...
;
check_dsm_5
:
...
;
check_icd_10
:
...
;
created_by
:
...
;
created_by_circle
:
...
;
hidden_instructions
:
...
;
id
:
...
;
is_allow_bullet_points
:
...
;
is_unstructured_narrative
:
...
;
last_updated
:
...
;
last_used
:
...
;
original_template_id
:
...
;
shared_with_org_id
:
...
;
title
:
...
;
}
;
}
,
>
;
getById
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
linkedAuditTemplateIds
:
...
;
sections
:
...
;
template
:
...
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
toggleSharing
:
MutationProcedure
<
{
input
:
{
id
:
...
;
shared
:
...
}
;
meta
:
object
;
output
:
{
additional_ai_instructions
:
...
;
check_cpt
:
...
;
check_demo
:
...
;
check_dsm_5
:
...
;
check_icd_10
:
...
;
created_by
:
...
;
created_by_circle
:
...
;
hidden_instructions
:
...
;
id
:
...
;
is_allow_bullet_points
:
...
;
is_unstructured_narrative
:
...
;
last_updated
:
...
;
last_used
:
...
;
original_template_id
:
...
;
shared_with_org_id
:
...
;
title
:
...
;
}
;
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
additionalAiInstructions
?:
...
;
checkCpt
?:
...
;
checkDsm5
?:
...
;
checkIcd10
?:
...
;
hiddenInstructions
?:
...
;
id
:
...
;
isAllowBulletPoints
?:
...
;
isUnstructuredNarrative
?:
...
;
linkedAuditTemplateIds
?:
...
;
sections
?:
...
;
title
?:
...
;
}
;
meta
:
object
;
output
:
{
additional_ai_instructions
:
...
;
check_cpt
:
...
;
check_demo
:
...
;
check_dsm_5
:
...
;
check_icd_10
:
...
;
created_by
:
...
;
created_by_circle
:
...
;
hidden_instructions
:
...
;
id
:
...
;
is_allow_bullet_points
:
...
;
is_unstructured_narrative
:
...
;
last_updated
:
...
;
last_used
:
...
;
original_template_id
:
...
;
shared_with_org_id
:
...
;
title
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
userPrompts
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
prompt
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
id
:
...
;
is_pinned
:
...
;
prompt
:
...
;
user_id
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
id
:
...
;
is_pinned
:
...
;
prompt
:
...
;
user_id
:
...
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
(...)
[]
}
>
;
togglePin
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
id
:
...
;
is_pinned
:
...
;
prompt
:
...
;
user_id
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
}
,
>
,
>
,
{
keyPrefix
:
false
}
,
>
Type Declaration
()
:
TRPCOptionsProxy
<
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
auditRuns
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
createResponseTrail
:
MutationProcedure
<
{
input
:
{
auditResponseId
:
...
;
comment
?:
...
;
markedAs
:
...
}
;
meta
:
object
;
output
:
{
audit_response_id
:
...
;
comment
:
...
;
created_at
:
...
;
created_by
:
...
;
id
:
...
;
marked_as
:
...
;
}
;
}
,
>
;
getById
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
auditRun
:
...
;
responses
:
...
;
score
:
...
;
statusCounts
:
...
;
templateQuestionCount
:
...
;
}
;
}
,
>
;
listForPatient
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
dateFrom
?:
...
;
dateTo
?:
...
;
excludeAuditRunIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
patientId
:
...
;
resultStatus
?:
...
;
search
?:
...
;
sortOrder
?:
...
;
templateIds
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listRecentForPatient
:
QueryProcedure
<
{
input
:
{
patientId
:
...
}
;
meta
:
object
;
output
:
ListRecentPatientReviewRunsServiceResult
;
}
,
>
;
}
,
>
,
>
;
auditTemplates
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
customReviewCriteriaPrompt
?:
...
;
customSummaryPrompt
?:
...
;
description
?:
...
;
name
:
...
;
questions
?:
...
;
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
custom_review_criteria_prompt
:
...
;
custom_summary_prompt
:
...
;
description
:
...
;
id
:
...
;
name
:
...
;
org_id
:
...
;
share_with_org
:
...
;
shared_by
:
...
;
shared_with_entity_id
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
custom_review_criteria_prompt
:
...
;
custom_summary_prompt
:
...
;
description
:
...
;
id
:
...
;
name
:
...
;
org_id
:
...
;
share_with_org
:
...
;
shared_by
:
...
;
shared_with_entity_id
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
duplicate
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
custom_review_criteria_prompt
:
...
;
custom_summary_prompt
:
...
;
description
:
...
;
id
:
...
;
name
:
...
;
org_id
:
...
;
share_with_org
:
...
;
shared_by
:
...
;
shared_with_entity_id
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
getById
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
auditTemplate
:
...
;
questions
:
...
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
toggleSharing
:
MutationProcedure
<
{
input
:
{
id
:
...
;
shared
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
custom_review_criteria_prompt
:
...
;
custom_summary_prompt
:
...
;
description
:
...
;
id
:
...
;
name
:
...
;
org_id
:
...
;
share_with_org
:
...
;
shared_by
:
...
;
shared_with_entity_id
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
customReviewCriteriaPrompt
?:
...
;
customSummaryPrompt
?:
...
;
description
?:
...
;
id
:
...
;
name
?:
...
;
questions
?:
...
;
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
custom_review_criteria_prompt
:
...
;
custom_summary_prompt
:
...
;
description
:
...
;
id
:
...
;
name
:
...
;
org_id
:
...
;
share_with_org
:
...
;
shared_by
:
...
;
shared_with_entity_id
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
chartReviewTriggers
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
auditTemplateId
:
...
;
facilities
?:
...
;
intervalSeconds
:
...
;
levelOfCareIds
?:
...
;
name
:
...
;
timeAfterTriggerSeconds
:
...
;
triggerType
:
...
;
}
;
meta
:
object
;
output
:
{
audit_template_id
:
...
;
created_at
:
...
;
deleted
:
...
;
enabled
:
...
;
entity_id
:
...
;
filters
:
...
;
id
:
...
;
interval_seconds
:
...
;
last_run_at
:
...
;
name
:
...
;
time_after_trigger_seconds
:
...
;
trigger_type
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
triggerId
:
...
}
;
meta
:
object
;
output
:
{
audit_template_id
:
...
;
created_at
:
...
;
deleted
:
...
;
enabled
:
...
;
entity_id
:
...
;
filters
:
...
;
id
:
...
;
interval_seconds
:
...
;
last_run_at
:
...
;
name
:
...
;
time_after_trigger_seconds
:
...
;
trigger_type
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
(...)
[]
}
>
;
update
:
MutationProcedure
<
{
input
:
{
auditTemplateId
:
...
;
facilities
?:
...
;
id
:
...
;
intervalSeconds
:
...
;
levelOfCareIds
?:
...
;
name
:
...
;
timeAfterTriggerSeconds
:
...
;
}
;
meta
:
object
;
output
:
{
audit_template_id
:
...
;
created_at
:
...
;
deleted
:
...
;
enabled
:
...
;
entity_id
:
...
;
filters
:
...
;
id
:
...
;
interval_seconds
:
...
;
last_run_at
:
...
;
name
:
...
;
time_after_trigger_seconds
:
...
;
trigger_type
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
chat
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
sendMessage
:
MutationProcedure
<
{
input
:
{
messages
:
...
;
patientId
:
...
}
;
meta
:
object
;
output
:
{
citations
?:
...
;
content
:
...
;
id
:
...
;
role
:
...
}
;
}
,
>
;
}
,
>
,
>
;
contacts
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
contactTypeId
?:
...
;
fieldValues
?:
...
}
;
meta
:
object
;
output
:
{
contact_id
:
...
;
contact_type
:
...
;
created_at
:
...
;
created_by
:
...
;
org_id
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
contactId
:
...
}
;
meta
:
object
;
output
:
void
}
,
>
;
get
:
QueryProcedure
<
{
input
:
{
contactId
:
...
}
;
meta
:
object
;
output
:
{
contact_id
:
...
;
contact_type
:
...
;
contact_type_id
:
...
;
contact_type_name
:
...
;
created_at
:
...
;
created_by
:
...
;
fieldValues
:
...
;
org_id
:
...
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
contactTypeId
?:
...
;
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
contactId
:
...
;
contactTypeId
?:
...
;
fieldValues
?:
...
;
}
;
meta
:
object
;
output
:
void
;
}
,
>
;
}
,
>
,
>
;
contactTypes
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
customFields
?:
...
;
name
:
...
}
;
meta
:
object
;
output
:
{
contact_type_id
:
...
;
created_at
:
...
;
created_by
:
...
;
org_id
:
...
;
type
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
contactTypeId
:
...
}
;
meta
:
object
;
output
:
void
}
,
>
;
get
:
QueryProcedure
<
{
input
:
{
contactTypeId
:
...
}
;
meta
:
object
;
output
:
{
contact_type_id
:
...
;
created_at
:
...
;
created_by
:
...
;
fields
:
...
;
org_id
:
...
;
type
:
...
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
(...)
[]
}
>
;
update
:
MutationProcedure
<
{
input
:
{
contactTypeId
:
...
;
fieldIdsToRemove
?:
...
;
fieldsToAdd
?:
...
;
name
?:
...
;
}
;
meta
:
object
;
output
:
void
;
}
,
>
;
}
,
>
,
>
;
facilities
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
integration
?:
...
;
name
:
...
}
;
meta
:
object
;
output
:
(...)
|
(...)
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
success
:
...
}
}
,
>
;
listInOrganization
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listWithIntegrations
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
}
;
meta
:
object
;
output
:
(...)
[]
;
}
,
>
;
listWithLevelsOfCare
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
(...)
[]
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
id
:
...
;
integration
?:
...
;
name
:
...
}
;
meta
:
object
;
output
:
UpdateFacilityWithIntegrationResult
;
}
,
>
;
}
,
>
,
>
;
integrations
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
fullSync
:
MutationProcedure
<
{
input
:
{
dry_run
?:
...
;
integration_id
:
...
}
;
meta
:
object
;
output
:
{
chart_reviews_enqueued
:
...
;
patients_enqueued
:
...
;
success
:
...
;
}
;
}
,
>
;
getIntegrationLocations
:
QueryProcedure
<
{
input
:
(...)
|
(...)
|
(...)
;
meta
:
object
;
output
:
(...)
|
(...)
|
(...)
;
}
,
>
;
syncAdmissions
:
MutationProcedure
<
{
input
:
{
dry_run
?:
...
;
end_date
?:
...
;
integration_id
:
...
;
start_date
?:
...
;
}
;
meta
:
object
;
output
:
{
error
:
...
;
patients
?:
...
;
stats
?:
...
;
success
:
...
}
;
}
,
>
;
syncPatient
:
MutationProcedure
<
{
input
:
{
dryRun
?:
...
;
patientId
:
...
;
syncDocuments
?:
...
}
;
meta
:
object
;
output
:
{
success
:
...
}
;
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
id
:
...
;
integration
?:
...
;
label
?:
...
;
status
?:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
credentials
:
...
;
entity_id
:
...
;
facility_id
:
...
;
id
:
...
;
label
:
...
;
last_sync
:
...
;
status
:
...
;
type
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
metrics
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
criteriaAssistants
:
QueryProcedure
<
{
input
:
{
auditTemplateIds
?:
...
;
cursor
?:
...
;
dateRange
:
...
;
facilityIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
scoreRange
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
(...)
[]
;
}
,
>
;
criteriaDetail
:
QueryProcedure
<
{
input
:
{
auditTemplateId
:
...
;
auditTemplateIds
?:
...
;
cursor
?:
...
;
dateRange
:
...
;
facilityIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
scoreRange
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
userId
?:
...
;
}
;
meta
:
object
;
output
:
{
items
:
...
;
nextCursor
:
...
;
providers
:
...
;
total
:
...
}
;
}
,
>
;
metricsFacilities
:
QueryProcedure
<
{
input
:
{
auditTemplateIds
?:
...
;
cursor
?:
...
;
dateRange
:
...
;
facilityIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
scoreRange
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
(...)
[]
;
}
,
>
;
metricsGrouped
:
QueryProcedure
<
{
input
:
{
auditTemplateIds
?:
...
;
cursor
?:
...
;
dateRange
:
...
;
dimension
:
...
;
facilityIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
scoreRange
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
}
,
>
,
>
;
orgMembers
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
createInvite
:
MutationProcedure
<
{
input
:
{
email
:
...
;
firstName
:
...
;
lastName
:
...
;
roleId
:
...
;
title
?:
...
;
}
;
meta
:
object
;
output
:
InviteUserServiceResult
;
}
,
>
;
listPendingInvites
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listRoles
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listUsers
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
roleId
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
}
,
>
,
>
;
patientCharts
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
listForPatient
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
dateFrom
?:
...
;
dateTo
?:
...
;
fileType
?:
...
;
limit
?:
...
;
offset
?:
...
;
patientId
:
...
;
search
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listGeneratedFormsForPatient
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
dateFrom
?:
...
;
dateTo
?:
...
;
limit
?:
...
;
offset
?:
...
;
patientId
:
...
;
search
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
}
,
>
,
>
;
patients
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
createPatient
:
MutationProcedure
<
{
input
:
{
addressCity
?:
...
;
addressState
?:
...
;
addressStreet1
?:
...
;
addressStreet2
?:
...
;
addressZipcode
?:
...
;
dob
?:
...
;
email
?:
...
;
facilityId
?:
...
;
firstName
:
...
;
gender
?:
...
;
intakeNotes
?:
...
;
lastName
:
...
;
phoneMobile
?:
...
;
}
;
meta
:
object
;
output
:
{
address_city
:
...
;
address_state
:
...
;
address_street1
:
...
;
address_street2
:
...
;
address_zipcode
:
...
;
created_at
:
...
;
created_by
:
...
;
dob
:
...
;
email
:
...
;
entity_id
:
...
;
external_patient_id
:
...
;
external_source
:
...
;
facility_id
:
...
;
first_name
:
...
;
gender
:
...
;
intake_notes
:
...
;
last_name
:
...
;
last_updated_summary
:
...
;
patient_id
:
...
;
phone_mobile
:
...
;
primary_provider_id
:
...
;
status
:
...
;
summary
:
...
;
}
;
}
,
>
;
deletePatient
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
id
:
...
}
}
,
>
;
getPatientById
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
address_city
:
...
;
address_state
:
...
;
address_street1
:
...
;
address_street2
:
...
;
address_zipcode
:
...
;
created_at
:
...
;
created_by
:
...
;
dob
:
...
;
email
:
...
;
entity_id
:
...
;
external_patient_id
:
...
;
external_source
:
...
;
facility_id
:
...
;
first_name
:
...
;
gender
:
...
;
intake_notes
:
...
;
last_name
:
...
;
last_updated_summary
:
...
;
patient_id
:
...
;
phone_mobile
:
...
;
primary_provider_id
:
...
;
status
:
...
;
summary
:
...
;
}
;
}
,
>
;
getPatientDetail
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
admitted_at
:
...
;
created_at
:
...
;
discharged_at
:
...
;
dob
:
...
;
external_source
:
...
;
facility_id
:
...
;
facility_name
:
...
;
first_name
:
...
;
last_name
:
...
;
last_sync
:
...
;
patient_id
:
...
;
primary_provider_id
:
...
;
provider_first_name
:
...
;
provider_last_name
:
...
;
provider_title
:
...
;
}
;
}
,
>
;
getPatientOverview
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
patient
:
...
;
recentSessions
:
...
}
;
}
,
>
;
listInOrganization
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
facilityId
?:
...
;
limit
?:
...
;
offset
?:
...
;
patientIds
?:
...
;
patientSearch
?:
...
;
primaryProviderId
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
status
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
updatePatient
:
MutationProcedure
<
{
input
:
{
addressCity
?:
...
;
addressState
?:
...
;
addressStreet1
?:
...
;
addressStreet2
?:
...
;
addressZipcode
?:
...
;
dob
?:
...
;
email
?:
...
;
facilityId
?:
...
;
firstName
:
...
;
gender
?:
...
;
id
:
...
;
intakeNotes
?:
...
;
lastName
:
...
;
phoneMobile
?:
...
;
}
;
meta
:
object
;
output
:
{
address_city
:
...
;
address_state
:
...
;
address_street1
:
...
;
address_street2
:
...
;
address_zipcode
:
...
;
created_at
:
...
;
created_by
:
...
;
dob
:
...
;
email
:
...
;
entity_id
:
...
;
external_patient_id
:
...
;
external_source
:
...
;
facility_id
:
...
;
first_name
:
...
;
gender
:
...
;
intake_notes
:
...
;
last_name
:
...
;
last_updated_summary
:
...
;
patient_id
:
...
;
phone_mobile
:
...
;
primary_provider_id
:
...
;
status
:
...
;
summary
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
patientSessions
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
ai_summarized_note
:
...
;
as_summarized_note_type
:
...
;
audit_run_id
:
...
;
audit_status
:
...
;
case_id
:
...
;
cpt_code
:
...
;
created_at
:
...
;
created_by
:
...
;
dsm_code
:
...
;
end_timestamp
:
...
;
error_msg
:
...
;
file_url
:
...
;
icd_code
:
...
;
id
:
...
;
manual_entry
:
...
;
patient_id
:
...
;
private_note
:
...
;
progress_status
:
...
;
selected_template
:
...
;
start_timestamp
:
...
;
transcript
:
...
;
updated_by
:
...
;
}
;
}
,
>
;
getById
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
caseAuditRunIds
:
...
;
patientSession
:
...
}
;
}
,
>
;
getRecentSessions
:
QueryProcedure
<
{
input
:
{
patientId
:
...
}
;
meta
:
object
;
output
:
{
sessions
:
...
}
;
}
,
>
;
listForCurrentUser
:
QueryProcedure
<
{
input
:
{
from
:
...
;
to
:
...
}
;
meta
:
object
;
output
:
{
sessions
:
...
}
;
}
,
>
;
listForPatient
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
dateFrom
?:
...
;
dateTo
?:
...
;
limit
?:
...
;
offset
?:
...
;
patientId
:
...
;
search
?:
...
;
sortOrder
?:
...
;
status
?:
...
;
templateIds
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
modifyAiNote
:
MutationProcedure
<
{
input
:
{
customPrompt
?:
...
;
optionId
:
...
;
sessionId
:
...
}
;
meta
:
object
;
output
:
{
ai_generated_note
:
...
}
;
}
,
>
;
switchTemplate
:
MutationProcedure
<
{
input
:
{
sessionId
:
...
;
templateId
:
...
}
;
meta
:
object
;
output
:
any
;
}
,
>
;
updateAiSummarizedNote
:
MutationProcedure
<
{
input
:
{
aiSummarizedNote
:
...
;
id
:
...
}
;
meta
:
object
;
output
:
{
ai_summarized_note
:
...
;
as_summarized_note_type
:
...
;
audit_run_id
:
...
;
audit_status
:
...
;
case_id
:
...
;
cpt_code
:
...
;
created_at
:
...
;
created_by
:
...
;
dsm_code
:
...
;
end_timestamp
:
...
;
error_msg
:
...
;
file_url
:
...
;
icd_code
:
...
;
id
:
...
;
manual_entry
:
...
;
patient_id
:
...
;
private_note
:
...
;
progress_status
:
...
;
selected_template
:
...
;
start_timestamp
:
...
;
transcript
:
...
;
updated_by
:
...
;
}
;
}
,
>
;
updatePrivateNote
:
MutationProcedure
<
{
input
:
{
id
:
...
;
privateNote
:
...
}
;
meta
:
object
;
output
:
{
ai_summarized_note
:
...
;
as_summarized_note_type
:
...
;
audit_run_id
:
...
;
audit_status
:
...
;
case_id
:
...
;
cpt_code
:
...
;
created_at
:
...
;
created_by
:
...
;
dsm_code
:
...
;
end_timestamp
:
...
;
error_msg
:
...
;
file_url
:
...
;
icd_code
:
...
;
id
:
...
;
manual_entry
:
...
;
patient_id
:
...
;
private_note
:
...
;
progress_status
:
...
;
selected_template
:
...
;
start_timestamp
:
...
;
transcript
:
...
;
updated_by
:
...
;
}
;
}
,
>
;
updateSessionTime
:
MutationProcedure
<
{
input
:
{
endTimestamp
:
...
;
id
:
...
;
startTimestamp
:
...
}
;
meta
:
object
;
output
:
{
ai_summarized_note
:
...
;
as_summarized_note_type
:
...
;
audit_run_id
:
...
;
audit_status
:
...
;
case_id
:
...
;
cpt_code
:
...
;
created_at
:
...
;
created_by
:
...
;
dsm_code
:
...
;
end_timestamp
:
...
;
error_msg
:
...
;
file_url
:
...
;
icd_code
:
...
;
id
:
...
;
manual_entry
:
...
;
patient_id
:
...
;
private_note
:
...
;
progress_status
:
...
;
selected_template
:
...
;
start_timestamp
:
...
;
transcript
:
...
;
updated_by
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
profiles
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
listInOrganization
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
updateProfile
:
MutationProcedure
<
{
input
:
{
firstName
:
...
;
lastName
:
...
;
title
?:
...
}
;
meta
:
object
;
output
:
{
clinic_size
:
...
;
created_at
:
...
;
customer_id
:
...
;
email
:
...
;
expectations
:
...
;
external_system
:
...
;
external_system_id
:
...
;
first_name
:
...
;
hear_about_us
:
...
;
id
:
...
;
is_superadmin
:
...
;
last_name
:
...
;
last_updated
:
...
;
price_id
:
...
;
profile_type
:
...
;
session_limit
:
...
;
subscription_status
:
...
;
title
:
...
;
user_id
:
...
;
vertical
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
reviewDashboard
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
list
:
QueryProcedure
<
{
input
:
{
admissionDateRange
?:
...
;
auditTemplateIds
?:
...
;
authEndDateRange
?:
...
;
authStartDateRange
?:
...
;
clientSearch
?:
...
;
cursor
?:
...
;
dateRange
?:
...
;
facilityIds
?:
...
;
includeNullTriggers
?:
...
;
levelOfCareIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
profileIds
?:
...
;
scoreRange
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
triggerIds
?:
...
;
type
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listGrouped
:
QueryProcedure
<
{
input
:
{
admissionDateRange
?:
...
;
auditTemplateIds
?:
...
;
authEndDateRange
?:
...
;
authStartDateRange
?:
...
;
clientSearch
?:
...
;
cursor
?:
...
;
dateRange
?:
...
;
facilityIds
?:
...
;
includeNullTriggers
?:
...
;
levelOfCareIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
profileIds
?:
...
;
scoreRange
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
triggerIds
?:
...
;
type
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
}
,
>
,
>
;
savedFilters
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
columnVisibility
?:
...
;
filters
:
...
;
name
:
...
;
pageKey
:
...
;
viewMode
?:
...
;
}
;
meta
:
object
;
output
:
SavedViewDto
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
DeleteSavedFilterOutput
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
pageKey
:
...
}
;
meta
:
object
;
output
:
ListSavedFiltersOutput
;
}
,
>
;
}
,
>
,
>
;
teams
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
addTeamMembers
:
MutationProcedure
<
{
input
:
{
profileIds
:
...
;
teamId
:
...
}
;
meta
:
object
;
output
:
(...)
[]
;
}
,
>
;
createTeam
:
MutationProcedure
<
{
input
:
{
memberIds
:
...
;
name
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
entity_id
:
...
;
id
:
...
;
name
:
...
;
}
;
}
,
>
;
listTeams
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
(...)
[]
}
,
>
;
removeTeamMember
:
MutationProcedure
<
{
input
:
{
profileId
:
...
;
teamId
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
id
:
...
;
profile_id
:
...
;
team_id
:
...
;
user_entity_id
:
...
;
user_id
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
templates
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
additionalAiInstructions
?:
...
;
checkCpt
?:
...
;
checkDsm5
?:
...
;
checkIcd10
?:
...
;
hiddenInstructions
?:
...
;
isAllowBulletPoints
?:
...
;
isUnstructuredNarrative
?:
...
;
linkedAuditTemplateIds
?:
...
;
sections
?:
...
;
title
:
...
;
}
;
meta
:
object
;
output
:
{
additional_ai_instructions
:
...
;
check_cpt
:
...
;
check_demo
:
...
;
check_dsm_5
:
...
;
check_icd_10
:
...
;
created_by
:
...
;
created_by_circle
:
...
;
hidden_instructions
:
...
;
id
:
...
;
is_allow_bullet_points
:
...
;
is_unstructured_narrative
:
...
;
last_updated
:
...
;
last_used
:
...
;
original_template_id
:
...
;
shared_with_org_id
:
...
;
title
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
additional_ai_instructions
:
...
;
check_cpt
:
...
;
check_demo
:
...
;
check_dsm_5
:
...
;
check_icd_10
:
...
;
created_by
:
...
;
created_by_circle
:
...
;
hidden_instructions
:
...
;
id
:
...
;
is_allow_bullet_points
:
...
;
is_unstructured_narrative
:
...
;
last_updated
:
...
;
last_used
:
...
;
original_template_id
:
...
;
shared_with_org_id
:
...
;
title
:
...
;
}
;
}
,
>
;
duplicate
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
additional_ai_instructions
:
...
;
check_cpt
:
...
;
check_demo
:
...
;
check_dsm_5
:
...
;
check_icd_10
:
...
;
created_by
:
...
;
created_by_circle
:
...
;
hidden_instructions
:
...
;
id
:
...
;
is_allow_bullet_points
:
...
;
is_unstructured_narrative
:
...
;
last_updated
:
...
;
last_used
:
...
;
original_template_id
:
...
;
shared_with_org_id
:
...
;
title
:
...
;
}
;
}
,
>
;
getById
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
linkedAuditTemplateIds
:
...
;
sections
:
...
;
template
:
...
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
toggleSharing
:
MutationProcedure
<
{
input
:
{
id
:
...
;
shared
:
...
}
;
meta
:
object
;
output
:
{
additional_ai_instructions
:
...
;
check_cpt
:
...
;
check_demo
:
...
;
check_dsm_5
:
...
;
check_icd_10
:
...
;
created_by
:
...
;
created_by_circle
:
...
;
hidden_instructions
:
...
;
id
:
...
;
is_allow_bullet_points
:
...
;
is_unstructured_narrative
:
...
;
last_updated
:
...
;
last_used
:
...
;
original_template_id
:
...
;
shared_with_org_id
:
...
;
title
:
...
;
}
;
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
additionalAiInstructions
?:
...
;
checkCpt
?:
...
;
checkDsm5
?:
...
;
checkIcd10
?:
...
;
hiddenInstructions
?:
...
;
id
:
...
;
isAllowBulletPoints
?:
...
;
isUnstructuredNarrative
?:
...
;
linkedAuditTemplateIds
?:
...
;
sections
?:
...
;
title
?:
...
;
}
;
meta
:
object
;
output
:
{
additional_ai_instructions
:
...
;
check_cpt
:
...
;
check_demo
:
...
;
check_dsm_5
:
...
;
check_icd_10
:
...
;
created_by
:
...
;
created_by_circle
:
...
;
hidden_instructions
:
...
;
id
:
...
;
is_allow_bullet_points
:
...
;
is_unstructured_narrative
:
...
;
last_updated
:
...
;
last_used
:
...
;
original_template_id
:
...
;
shared_with_org_id
:
...
;
title
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
userPrompts
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
prompt
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
id
:
...
;
is_pinned
:
...
;
prompt
:
...
;
user_id
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
id
:
...
;
is_pinned
:
...
;
prompt
:
...
;
user_id
:
...
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
(...)
[]
}
>
;
togglePin
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
id
:
...
;
is_pinned
:
...
;
prompt
:
...
;
user_id
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
}
,
>
,
>
,
{
keyPrefix
:
false
}
,
>
Returns
TRPCOptionsProxy
<
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
auditRuns
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
createResponseTrail
:
MutationProcedure
<
{
input
:
{
auditResponseId
:
...
;
comment
?:
...
;
markedAs
:
...
}
;
meta
:
object
;
output
:
{
audit_response_id
:
...
;
comment
:
...
;
created_at
:
...
;
created_by
:
...
;
id
:
...
;
marked_as
:
...
;
}
;
}
,
>
;
getById
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
auditRun
:
...
;
responses
:
...
;
score
:
...
;
statusCounts
:
...
;
templateQuestionCount
:
...
;
}
;
}
,
>
;
listForPatient
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
dateFrom
?:
...
;
dateTo
?:
...
;
excludeAuditRunIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
patientId
:
...
;
resultStatus
?:
...
;
search
?:
...
;
sortOrder
?:
...
;
templateIds
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listRecentForPatient
:
QueryProcedure
<
{
input
:
{
patientId
:
...
}
;
meta
:
object
;
output
:
ListRecentPatientReviewRunsServiceResult
;
}
,
>
;
}
,
>
,
>
;
auditTemplates
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
customReviewCriteriaPrompt
?:
...
;
customSummaryPrompt
?:
...
;
description
?:
...
;
name
:
...
;
questions
?:
...
;
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
custom_review_criteria_prompt
:
...
;
custom_summary_prompt
:
...
;
description
:
...
;
id
:
...
;
name
:
...
;
org_id
:
...
;
share_with_org
:
...
;
shared_by
:
...
;
shared_with_entity_id
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
custom_review_criteria_prompt
:
...
;
custom_summary_prompt
:
...
;
description
:
...
;
id
:
...
;
name
:
...
;
org_id
:
...
;
share_with_org
:
...
;
shared_by
:
...
;
shared_with_entity_id
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
duplicate
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
custom_review_criteria_prompt
:
...
;
custom_summary_prompt
:
...
;
description
:
...
;
id
:
...
;
name
:
...
;
org_id
:
...
;
share_with_org
:
...
;
shared_by
:
...
;
shared_with_entity_id
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
getById
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
auditTemplate
:
...
;
questions
:
...
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
toggleSharing
:
MutationProcedure
<
{
input
:
{
id
:
...
;
shared
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
custom_review_criteria_prompt
:
...
;
custom_summary_prompt
:
...
;
description
:
...
;
id
:
...
;
name
:
...
;
org_id
:
...
;
share_with_org
:
...
;
shared_by
:
...
;
shared_with_entity_id
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
customReviewCriteriaPrompt
?:
...
;
customSummaryPrompt
?:
...
;
description
?:
...
;
id
:
...
;
name
?:
...
;
questions
?:
...
;
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
custom_review_criteria_prompt
:
...
;
custom_summary_prompt
:
...
;
description
:
...
;
id
:
...
;
name
:
...
;
org_id
:
...
;
share_with_org
:
...
;
shared_by
:
...
;
shared_with_entity_id
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
chartReviewTriggers
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
auditTemplateId
:
...
;
facilities
?:
...
;
intervalSeconds
:
...
;
levelOfCareIds
?:
...
;
name
:
...
;
timeAfterTriggerSeconds
:
...
;
triggerType
:
...
;
}
;
meta
:
object
;
output
:
{
audit_template_id
:
...
;
created_at
:
...
;
deleted
:
...
;
enabled
:
...
;
entity_id
:
...
;
filters
:
...
;
id
:
...
;
interval_seconds
:
...
;
last_run_at
:
...
;
name
:
...
;
time_after_trigger_seconds
:
...
;
trigger_type
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
triggerId
:
...
}
;
meta
:
object
;
output
:
{
audit_template_id
:
...
;
created_at
:
...
;
deleted
:
...
;
enabled
:
...
;
entity_id
:
...
;
filters
:
...
;
id
:
...
;
interval_seconds
:
...
;
last_run_at
:
...
;
name
:
...
;
time_after_trigger_seconds
:
...
;
trigger_type
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
(...)
[]
}
>
;
update
:
MutationProcedure
<
{
input
:
{
auditTemplateId
:
...
;
facilities
?:
...
;
id
:
...
;
intervalSeconds
:
...
;
levelOfCareIds
?:
...
;
name
:
...
;
timeAfterTriggerSeconds
:
...
;
}
;
meta
:
object
;
output
:
{
audit_template_id
:
...
;
created_at
:
...
;
deleted
:
...
;
enabled
:
...
;
entity_id
:
...
;
filters
:
...
;
id
:
...
;
interval_seconds
:
...
;
last_run_at
:
...
;
name
:
...
;
time_after_trigger_seconds
:
...
;
trigger_type
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
chat
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
sendMessage
:
MutationProcedure
<
{
input
:
{
messages
:
...
;
patientId
:
...
}
;
meta
:
object
;
output
:
{
citations
?:
...
;
content
:
...
;
id
:
...
;
role
:
...
}
;
}
,
>
;
}
,
>
,
>
;
contacts
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
contactTypeId
?:
...
;
fieldValues
?:
...
}
;
meta
:
object
;
output
:
{
contact_id
:
...
;
contact_type
:
...
;
created_at
:
...
;
created_by
:
...
;
org_id
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
contactId
:
...
}
;
meta
:
object
;
output
:
void
}
,
>
;
get
:
QueryProcedure
<
{
input
:
{
contactId
:
...
}
;
meta
:
object
;
output
:
{
contact_id
:
...
;
contact_type
:
...
;
contact_type_id
:
...
;
contact_type_name
:
...
;
created_at
:
...
;
created_by
:
...
;
fieldValues
:
...
;
org_id
:
...
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
contactTypeId
?:
...
;
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
contactId
:
...
;
contactTypeId
?:
...
;
fieldValues
?:
...
;
}
;
meta
:
object
;
output
:
void
;
}
,
>
;
}
,
>
,
>
;
contactTypes
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
customFields
?:
...
;
name
:
...
}
;
meta
:
object
;
output
:
{
contact_type_id
:
...
;
created_at
:
...
;
created_by
:
...
;
org_id
:
...
;
type
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
contactTypeId
:
...
}
;
meta
:
object
;
output
:
void
}
,
>
;
get
:
QueryProcedure
<
{
input
:
{
contactTypeId
:
...
}
;
meta
:
object
;
output
:
{
contact_type_id
:
...
;
created_at
:
...
;
created_by
:
...
;
fields
:
...
;
org_id
:
...
;
type
:
...
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
(...)
[]
}
>
;
update
:
MutationProcedure
<
{
input
:
{
contactTypeId
:
...
;
fieldIdsToRemove
?:
...
;
fieldsToAdd
?:
...
;
name
?:
...
;
}
;
meta
:
object
;
output
:
void
;
}
,
>
;
}
,
>
,
>
;
facilities
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
integration
?:
...
;
name
:
...
}
;
meta
:
object
;
output
:
(...)
|
(...)
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
success
:
...
}
}
,
>
;
listInOrganization
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listWithIntegrations
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
}
;
meta
:
object
;
output
:
(...)
[]
;
}
,
>
;
listWithLevelsOfCare
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
(...)
[]
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
id
:
...
;
integration
?:
...
;
name
:
...
}
;
meta
:
object
;
output
:
UpdateFacilityWithIntegrationResult
;
}
,
>
;
}
,
>
,
>
;
integrations
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
fullSync
:
MutationProcedure
<
{
input
:
{
dry_run
?:
...
;
integration_id
:
...
}
;
meta
:
object
;
output
:
{
chart_reviews_enqueued
:
...
;
patients_enqueued
:
...
;
success
:
...
;
}
;
}
,
>
;
getIntegrationLocations
:
QueryProcedure
<
{
input
:
(...)
|
(...)
|
(...)
;
meta
:
object
;
output
:
(...)
|
(...)
|
(...)
;
}
,
>
;
syncAdmissions
:
MutationProcedure
<
{
input
:
{
dry_run
?:
...
;
end_date
?:
...
;
integration_id
:
...
;
start_date
?:
...
;
}
;
meta
:
object
;
output
:
{
error
:
...
;
patients
?:
...
;
stats
?:
...
;
success
:
...
}
;
}
,
>
;
syncPatient
:
MutationProcedure
<
{
input
:
{
dryRun
?:
...
;
patientId
:
...
;
syncDocuments
?:
...
}
;
meta
:
object
;
output
:
{
success
:
...
}
;
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
id
:
...
;
integration
?:
...
;
label
?:
...
;
status
?:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
credentials
:
...
;
entity_id
:
...
;
facility_id
:
...
;
id
:
...
;
label
:
...
;
last_sync
:
...
;
status
:
...
;
type
:
...
;
updated_at
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
metrics
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
criteriaAssistants
:
QueryProcedure
<
{
input
:
{
auditTemplateIds
?:
...
;
cursor
?:
...
;
dateRange
:
...
;
facilityIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
scoreRange
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
(...)
[]
;
}
,
>
;
criteriaDetail
:
QueryProcedure
<
{
input
:
{
auditTemplateId
:
...
;
auditTemplateIds
?:
...
;
cursor
?:
...
;
dateRange
:
...
;
facilityIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
scoreRange
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
userId
?:
...
;
}
;
meta
:
object
;
output
:
{
items
:
...
;
nextCursor
:
...
;
providers
:
...
;
total
:
...
}
;
}
,
>
;
metricsFacilities
:
QueryProcedure
<
{
input
:
{
auditTemplateIds
?:
...
;
cursor
?:
...
;
dateRange
:
...
;
facilityIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
scoreRange
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
(...)
[]
;
}
,
>
;
metricsGrouped
:
QueryProcedure
<
{
input
:
{
auditTemplateIds
?:
...
;
cursor
?:
...
;
dateRange
:
...
;
dimension
:
...
;
facilityIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
scoreRange
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
}
,
>
,
>
;
orgMembers
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
createInvite
:
MutationProcedure
<
{
input
:
{
email
:
...
;
firstName
:
...
;
lastName
:
...
;
roleId
:
...
;
title
?:
...
;
}
;
meta
:
object
;
output
:
InviteUserServiceResult
;
}
,
>
;
listPendingInvites
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listRoles
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listUsers
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
roleId
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
}
,
>
,
>
;
patientCharts
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
listForPatient
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
dateFrom
?:
...
;
dateTo
?:
...
;
fileType
?:
...
;
limit
?:
...
;
offset
?:
...
;
patientId
:
...
;
search
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listGeneratedFormsForPatient
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
dateFrom
?:
...
;
dateTo
?:
...
;
limit
?:
...
;
offset
?:
...
;
patientId
:
...
;
search
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
}
,
>
,
>
;
patients
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
createPatient
:
MutationProcedure
<
{
input
:
{
addressCity
?:
...
;
addressState
?:
...
;
addressStreet1
?:
...
;
addressStreet2
?:
...
;
addressZipcode
?:
...
;
dob
?:
...
;
email
?:
...
;
facilityId
?:
...
;
firstName
:
...
;
gender
?:
...
;
intakeNotes
?:
...
;
lastName
:
...
;
phoneMobile
?:
...
;
}
;
meta
:
object
;
output
:
{
address_city
:
...
;
address_state
:
...
;
address_street1
:
...
;
address_street2
:
...
;
address_zipcode
:
...
;
created_at
:
...
;
created_by
:
...
;
dob
:
...
;
email
:
...
;
entity_id
:
...
;
external_patient_id
:
...
;
external_source
:
...
;
facility_id
:
...
;
first_name
:
...
;
gender
:
...
;
intake_notes
:
...
;
last_name
:
...
;
last_updated_summary
:
...
;
patient_id
:
...
;
phone_mobile
:
...
;
primary_provider_id
:
...
;
status
:
...
;
summary
:
...
;
}
;
}
,
>
;
deletePatient
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
id
:
...
}
}
,
>
;
getPatientById
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
address_city
:
...
;
address_state
:
...
;
address_street1
:
...
;
address_street2
:
...
;
address_zipcode
:
...
;
created_at
:
...
;
created_by
:
...
;
dob
:
...
;
email
:
...
;
entity_id
:
...
;
external_patient_id
:
...
;
external_source
:
...
;
facility_id
:
...
;
first_name
:
...
;
gender
:
...
;
intake_notes
:
...
;
last_name
:
...
;
last_updated_summary
:
...
;
patient_id
:
...
;
phone_mobile
:
...
;
primary_provider_id
:
...
;
status
:
...
;
summary
:
...
;
}
;
}
,
>
;
getPatientDetail
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
admitted_at
:
...
;
created_at
:
...
;
discharged_at
:
...
;
dob
:
...
;
external_source
:
...
;
facility_id
:
...
;
facility_name
:
...
;
first_name
:
...
;
last_name
:
...
;
last_sync
:
...
;
patient_id
:
...
;
primary_provider_id
:
...
;
provider_first_name
:
...
;
provider_last_name
:
...
;
provider_title
:
...
;
}
;
}
,
>
;
getPatientOverview
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
patient
:
...
;
recentSessions
:
...
}
;
}
,
>
;
listInOrganization
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
facilityId
?:
...
;
limit
?:
...
;
offset
?:
...
;
patientIds
?:
...
;
patientSearch
?:
...
;
primaryProviderId
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
status
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
updatePatient
:
MutationProcedure
<
{
input
:
{
addressCity
?:
...
;
addressState
?:
...
;
addressStreet1
?:
...
;
addressStreet2
?:
...
;
addressZipcode
?:
...
;
dob
?:
...
;
email
?:
...
;
facilityId
?:
...
;
firstName
:
...
;
gender
?:
...
;
id
:
...
;
intakeNotes
?:
...
;
lastName
:
...
;
phoneMobile
?:
...
;
}
;
meta
:
object
;
output
:
{
address_city
:
...
;
address_state
:
...
;
address_street1
:
...
;
address_street2
:
...
;
address_zipcode
:
...
;
created_at
:
...
;
created_by
:
...
;
dob
:
...
;
email
:
...
;
entity_id
:
...
;
external_patient_id
:
...
;
external_source
:
...
;
facility_id
:
...
;
first_name
:
...
;
gender
:
...
;
intake_notes
:
...
;
last_name
:
...
;
last_updated_summary
:
...
;
patient_id
:
...
;
phone_mobile
:
...
;
primary_provider_id
:
...
;
status
:
...
;
summary
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
patientSessions
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
ai_summarized_note
:
...
;
as_summarized_note_type
:
...
;
audit_run_id
:
...
;
audit_status
:
...
;
case_id
:
...
;
cpt_code
:
...
;
created_at
:
...
;
created_by
:
...
;
dsm_code
:
...
;
end_timestamp
:
...
;
error_msg
:
...
;
file_url
:
...
;
icd_code
:
...
;
id
:
...
;
manual_entry
:
...
;
patient_id
:
...
;
private_note
:
...
;
progress_status
:
...
;
selected_template
:
...
;
start_timestamp
:
...
;
transcript
:
...
;
updated_by
:
...
;
}
;
}
,
>
;
getById
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
caseAuditRunIds
:
...
;
patientSession
:
...
}
;
}
,
>
;
getRecentSessions
:
QueryProcedure
<
{
input
:
{
patientId
:
...
}
;
meta
:
object
;
output
:
{
sessions
:
...
}
;
}
,
>
;
listForCurrentUser
:
QueryProcedure
<
{
input
:
{
from
:
...
;
to
:
...
}
;
meta
:
object
;
output
:
{
sessions
:
...
}
;
}
,
>
;
listForPatient
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
dateFrom
?:
...
;
dateTo
?:
...
;
limit
?:
...
;
offset
?:
...
;
patientId
:
...
;
search
?:
...
;
sortOrder
?:
...
;
status
?:
...
;
templateIds
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
modifyAiNote
:
MutationProcedure
<
{
input
:
{
customPrompt
?:
...
;
optionId
:
...
;
sessionId
:
...
}
;
meta
:
object
;
output
:
{
ai_generated_note
:
...
}
;
}
,
>
;
switchTemplate
:
MutationProcedure
<
{
input
:
{
sessionId
:
...
;
templateId
:
...
}
;
meta
:
object
;
output
:
any
;
}
,
>
;
updateAiSummarizedNote
:
MutationProcedure
<
{
input
:
{
aiSummarizedNote
:
...
;
id
:
...
}
;
meta
:
object
;
output
:
{
ai_summarized_note
:
...
;
as_summarized_note_type
:
...
;
audit_run_id
:
...
;
audit_status
:
...
;
case_id
:
...
;
cpt_code
:
...
;
created_at
:
...
;
created_by
:
...
;
dsm_code
:
...
;
end_timestamp
:
...
;
error_msg
:
...
;
file_url
:
...
;
icd_code
:
...
;
id
:
...
;
manual_entry
:
...
;
patient_id
:
...
;
private_note
:
...
;
progress_status
:
...
;
selected_template
:
...
;
start_timestamp
:
...
;
transcript
:
...
;
updated_by
:
...
;
}
;
}
,
>
;
updatePrivateNote
:
MutationProcedure
<
{
input
:
{
id
:
...
;
privateNote
:
...
}
;
meta
:
object
;
output
:
{
ai_summarized_note
:
...
;
as_summarized_note_type
:
...
;
audit_run_id
:
...
;
audit_status
:
...
;
case_id
:
...
;
cpt_code
:
...
;
created_at
:
...
;
created_by
:
...
;
dsm_code
:
...
;
end_timestamp
:
...
;
error_msg
:
...
;
file_url
:
...
;
icd_code
:
...
;
id
:
...
;
manual_entry
:
...
;
patient_id
:
...
;
private_note
:
...
;
progress_status
:
...
;
selected_template
:
...
;
start_timestamp
:
...
;
transcript
:
...
;
updated_by
:
...
;
}
;
}
,
>
;
updateSessionTime
:
MutationProcedure
<
{
input
:
{
endTimestamp
:
...
;
id
:
...
;
startTimestamp
:
...
}
;
meta
:
object
;
output
:
{
ai_summarized_note
:
...
;
as_summarized_note_type
:
...
;
audit_run_id
:
...
;
audit_status
:
...
;
case_id
:
...
;
cpt_code
:
...
;
created_at
:
...
;
created_by
:
...
;
dsm_code
:
...
;
end_timestamp
:
...
;
error_msg
:
...
;
file_url
:
...
;
icd_code
:
...
;
id
:
...
;
manual_entry
:
...
;
patient_id
:
...
;
private_note
:
...
;
progress_status
:
...
;
selected_template
:
...
;
start_timestamp
:
...
;
transcript
:
...
;
updated_by
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
profiles
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
listInOrganization
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
updateProfile
:
MutationProcedure
<
{
input
:
{
firstName
:
...
;
lastName
:
...
;
title
?:
...
}
;
meta
:
object
;
output
:
{
clinic_size
:
...
;
created_at
:
...
;
customer_id
:
...
;
email
:
...
;
expectations
:
...
;
external_system
:
...
;
external_system_id
:
...
;
first_name
:
...
;
hear_about_us
:
...
;
id
:
...
;
is_superadmin
:
...
;
last_name
:
...
;
last_updated
:
...
;
price_id
:
...
;
profile_type
:
...
;
session_limit
:
...
;
subscription_status
:
...
;
title
:
...
;
user_id
:
...
;
vertical
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
reviewDashboard
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
list
:
QueryProcedure
<
{
input
:
{
admissionDateRange
?:
...
;
auditTemplateIds
?:
...
;
authEndDateRange
?:
...
;
authStartDateRange
?:
...
;
clientSearch
?:
...
;
cursor
?:
...
;
dateRange
?:
...
;
facilityIds
?:
...
;
includeNullTriggers
?:
...
;
levelOfCareIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
profileIds
?:
...
;
scoreRange
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
triggerIds
?:
...
;
type
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
listGrouped
:
QueryProcedure
<
{
input
:
{
admissionDateRange
?:
...
;
auditTemplateIds
?:
...
;
authEndDateRange
?:
...
;
authStartDateRange
?:
...
;
clientSearch
?:
...
;
cursor
?:
...
;
dateRange
?:
...
;
facilityIds
?:
...
;
includeNullTriggers
?:
...
;
levelOfCareIds
?:
...
;
limit
?:
...
;
offset
?:
...
;
profileIds
?:
...
;
scoreRange
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
triggerIds
?:
...
;
type
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
}
,
>
,
>
;
savedFilters
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
columnVisibility
?:
...
;
filters
:
...
;
name
:
...
;
pageKey
:
...
;
viewMode
?:
...
;
}
;
meta
:
object
;
output
:
SavedViewDto
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
DeleteSavedFilterOutput
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
pageKey
:
...
}
;
meta
:
object
;
output
:
ListSavedFiltersOutput
;
}
,
>
;
}
,
>
,
>
;
teams
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
addTeamMembers
:
MutationProcedure
<
{
input
:
{
profileIds
:
...
;
teamId
:
...
}
;
meta
:
object
;
output
:
(...)
[]
;
}
,
>
;
createTeam
:
MutationProcedure
<
{
input
:
{
memberIds
:
...
;
name
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
created_by
:
...
;
entity_id
:
...
;
id
:
...
;
name
:
...
;
}
;
}
,
>
;
listTeams
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
(...)
[]
}
,
>
;
removeTeamMember
:
MutationProcedure
<
{
input
:
{
profileId
:
...
;
teamId
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
id
:
...
;
profile_id
:
...
;
team_id
:
...
;
user_entity_id
:
...
;
user_id
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
templates
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
additionalAiInstructions
?:
...
;
checkCpt
?:
...
;
checkDsm5
?:
...
;
checkIcd10
?:
...
;
hiddenInstructions
?:
...
;
isAllowBulletPoints
?:
...
;
isUnstructuredNarrative
?:
...
;
linkedAuditTemplateIds
?:
...
;
sections
?:
...
;
title
:
...
;
}
;
meta
:
object
;
output
:
{
additional_ai_instructions
:
...
;
check_cpt
:
...
;
check_demo
:
...
;
check_dsm_5
:
...
;
check_icd_10
:
...
;
created_by
:
...
;
created_by_circle
:
...
;
hidden_instructions
:
...
;
id
:
...
;
is_allow_bullet_points
:
...
;
is_unstructured_narrative
:
...
;
last_updated
:
...
;
last_used
:
...
;
original_template_id
:
...
;
shared_with_org_id
:
...
;
title
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
additional_ai_instructions
:
...
;
check_cpt
:
...
;
check_demo
:
...
;
check_dsm_5
:
...
;
check_icd_10
:
...
;
created_by
:
...
;
created_by_circle
:
...
;
hidden_instructions
:
...
;
id
:
...
;
is_allow_bullet_points
:
...
;
is_unstructured_narrative
:
...
;
last_updated
:
...
;
last_used
:
...
;
original_template_id
:
...
;
shared_with_org_id
:
...
;
title
:
...
;
}
;
}
,
>
;
duplicate
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
additional_ai_instructions
:
...
;
check_cpt
:
...
;
check_demo
:
...
;
check_dsm_5
:
...
;
check_icd_10
:
...
;
created_by
:
...
;
created_by_circle
:
...
;
hidden_instructions
:
...
;
id
:
...
;
is_allow_bullet_points
:
...
;
is_unstructured_narrative
:
...
;
last_updated
:
...
;
last_used
:
...
;
original_template_id
:
...
;
shared_with_org_id
:
...
;
title
:
...
;
}
;
}
,
>
;
getById
:
QueryProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
linkedAuditTemplateIds
:
...
;
sections
:
...
;
template
:
...
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
cursor
?:
...
;
limit
?:
...
;
offset
?:
...
;
search
?:
...
;
sortBy
?:
...
;
sortOrder
?:
...
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
(...)
>
;
}
,
>
;
toggleSharing
:
MutationProcedure
<
{
input
:
{
id
:
...
;
shared
:
...
}
;
meta
:
object
;
output
:
{
additional_ai_instructions
:
...
;
check_cpt
:
...
;
check_demo
:
...
;
check_dsm_5
:
...
;
check_icd_10
:
...
;
created_by
:
...
;
created_by_circle
:
...
;
hidden_instructions
:
...
;
id
:
...
;
is_allow_bullet_points
:
...
;
is_unstructured_narrative
:
...
;
last_updated
:
...
;
last_used
:
...
;
original_template_id
:
...
;
shared_with_org_id
:
...
;
title
:
...
;
}
;
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
additionalAiInstructions
?:
...
;
checkCpt
?:
...
;
checkDsm5
?:
...
;
checkIcd10
?:
...
;
hiddenInstructions
?:
...
;
id
:
...
;
isAllowBulletPoints
?:
...
;
isUnstructuredNarrative
?:
...
;
linkedAuditTemplateIds
?:
...
;
sections
?:
...
;
title
?:
...
;
}
;
meta
:
object
;
output
:
{
additional_ai_instructions
:
...
;
check_cpt
:
...
;
check_demo
:
...
;
check_dsm_5
:
...
;
check_icd_10
:
...
;
created_by
:
...
;
created_by_circle
:
...
;
hidden_instructions
:
...
;
id
:
...
;
is_allow_bullet_points
:
...
;
is_unstructured_narrative
:
...
;
last_updated
:
...
;
last_used
:
...
;
original_template_id
:
...
;
shared_with_org_id
:
...
;
title
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
userPrompts
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
prompt
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
id
:
...
;
is_pinned
:
...
;
prompt
:
...
;
user_id
:
...
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
id
:
...
;
is_pinned
:
...
;
prompt
:
...
;
user_id
:
...
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
(...)
[]
}
>
;
togglePin
:
MutationProcedure
<
{
input
:
{
id
:
...
}
;
meta
:
object
;
output
:
{
created_at
:
...
;
id
:
...
;
is_pinned
:
...
;
prompt
:
...
;
user_id
:
...
;
}
;
}
,
>
;
}
,
>
,
>
;
}
,
>
,
>
,
{
keyPrefix
:
false
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Circle V2 API Docs
Loading...