Circle V2 API Docs
Preparing search index...
@repo/db
patientChartsRepo
Variable patientChartsRepo
Const
patientChartsRepo
:
DbRepo
<
{
aggregateKipuGroupSessionsByFacility
:
(
params
:
KipuUtilizationRangeParams
&
{
entityId
:
EntityId
}
,
)
=>
Promise
<
{
absences
:
number
;
active_patients
:
number
;
as_of
:
DbDate
;
attended_days
:
number
;
attended_hours
:
number
;
documented_services
:
number
;
id
:
FacilityId
;
last_synced_at
:
string
|
null
;
name
:
string
;
overlaps
:
number
;
timezone
:
string
|
null
;
}
[]
,
>
;
aggregateKipuGroupSessionsByPatient
:
(
params
:
KipuUtilizationFacilityParams
,
)
=>
Promise
<
{
absences
:
number
;
admitted_at
:
DbDate
|
null
;
attended_days
:
number
;
attended_hours
:
number
;
auth_days
:
number
|
null
;
auth_end
:
DbDate
|
null
;
auth_start
:
DbDate
|
null
;
auth_used
:
number
|
null
;
documented_services
:
number
;
first_name
:
string
|
null
;
last_name
:
string
|
null
;
level_of_care
:
string
|
null
;
overlaps
:
number
;
patient_id
:
PatientId
;
payer_name
:
string
|
null
;
program
:
string
|
null
;
treatment_episode_id
:
TreatmentEpisodeId
|
null
;
}
[]
,
>
;
aggregateKipuGroupSessionServiceType
:
(
params
:
KipuUtilizationFacilityParams
,
)
=>
Promise
<
{
attended_days
:
number
;
attended_hours
:
number
;
average_attended_minutes
:
number
|
null
;
clinicians
:
number
;
instances
:
number
;
instances_with_window
:
number
;
patients
:
number
;
service_type
:
UtilizationServiceType
;
}
[]
,
>
;
clearEmbedFailure
:
(
ids
:
PatientChartId
[]
)
=>
Promise
<
void
>
;
countActiveKipuPatients
:
(
params
:
KipuUtilizationRangeParams
&
{
entityId
:
EntityId
}
,
)
=>
Promise
<
number
>
;
countDocumentsByTidiedTitle
:
(
params
:
{
entityId
:
EntityId
}
,
)
=>
Promise
<
{
documents
:
number
;
facilities
:
number
;
mappedDocuments
:
number
;
patients
:
number
;
title
:
string
;
}
[]
,
>
;
countDocumentsByTidiedTitleMatchingRules
:
(
params
:
{
entityId
:
EntityId
;
rules
:
readonly
DocumentMatcherRule
[]
}
,
)
=>
Promise
<
{
documents
:
number
;
facilities
:
number
;
title
:
string
}
[]
>
;
countDocumentsMatchingRules
:
(
params
:
{
entityId
:
EntityId
;
rules
:
readonly
DocumentMatcherRule
[]
}
,
)
=>
Promise
<
{
documents
:
number
;
facilities
:
number
}
>
;
countDocumentsPerPatientForTitle
:
(
params
:
TitleLocationsFilter
&
{
limit
:
number
;
offset
:
number
}
,
)
=>
Promise
<
{
documents
:
number
;
facilityName
:
string
;
patientFirstName
:
string
|
null
;
patientId
:
PatientId
;
patientLastName
:
string
|
null
;
}
[]
,
>
;
countFacilityDocumentsMatchingRules
:
(
params
:
{
facilityIds
:
FacilityId
[]
;
rules
:
readonly
DocumentMatcherRule
[]
;
}
,
)
=>
Promise
<
{
documents
:
number
;
facilityId
:
FacilityId
;
facilityName
:
string
}
[]
,
>
;
countForPatient
:
(
params
:
ListPatientChartsForPatientParams
,
)
=>
Promise
<
number
>
;
countInFlightProxyExtractions
:
(
scope
:
{
patientChartIds
:
PatientChartId
[]
|
null
;
treatmentEpisodeId
:
TreatmentEpisodeId
;
}
,
params
:
{
staleRunStartedBefore
:
DbDate
}
,
)
=>
Promise
<
number
>
;
countPatientsForTitle
:
(
filter
:
TitleLocationsFilter
)
=>
Promise
<
number
>
;
countProxyAttachmentCandidates
:
(
params
:
{
integrationId
:
IntegrationId
;
treatmentEpisodeId
:
TreatmentEpisodeId
;
}
,
)
=>
Promise
<
number
>
;
create
:
(
params
:
CreatePatientChartParams
,
)
=>
Promise
<
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
number
;
attachmentId
:
string
|
null
;
attachmentRetryAfter
?:
string
;
attachmentSkipReason
?:
|
"not_pdf"
|
"hash_mismatch"
|
"metadata_invalid"
|
"too_large"
|
"extraction_failed_repeatedly"
|
"not_listed"
|
"vendor_rejected"
|
null
;
businessId
:
string
|
null
;
connector
:
string
;
contentHash
:
string
|
null
;
contentHashStoredAt
?:
string
|
null
;
embedFailedAt
?:
string
;
embedFailedAttempts
?:
number
;
label
:
string
|
null
;
schemaVersion
:
string
;
sourceEpisodeId
?:
string
|
null
;
table
:
string
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
embedding_count
:
string
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
extend_content_hash
:
string
|
null
;
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extend_source
:
"proxy"
|
"insync-rpa"
|
"v2-patient-charts"
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_created_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
integration_id
:
string
&
{
__brand
:
"IntegrationId"
}
|
null
;
is_ready
:
boolean
|
null
;
packet_role
:
"standalone"
|
"packet"
|
"piece"
;
packet_section_index
:
number
|
null
;
page_end
:
number
|
null
;
page_start
:
number
|
null
;
parent_patient_chart_id
:
string
&
{
__brand
:
"PatientChartId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
raw_document
:
unknown
;
run_id
:
string
|
null
;
sources
:
unknown
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
,
>
;
deleteByIds
:
(
ids
:
PatientChartId
[]
)
=>
Promise
<
void
>
;
deleteGeneratedFormChartByRunId
:
(
runId
:
FormRunId
)
=>
Promise
<
number
>
;
findByIntegrationAndExtendHash
:
(
params
:
{
contentHash
:
string
;
excludeChartId
:
PatientChartId
;
integrationId
:
IntegrationId
;
}
,
)
=>
Promise
<
|
{
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
id
:
PatientChartId
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
}
|
undefined
,
>
;
findNewestExternalDocumentUpdatedAtForProxySourceEpisode
:
(
params
:
{
exceptLabels
:
readonly
string
[]
;
integrationId
:
IntegrationId
;
patientId
:
PatientId
;
sourceEpisodeId
:
string
;
}
,
)
=>
Promise
<
DbDate
|
null
>
;
followPacketsOntoPieces
:
(
params
:
{
entityId
:
EntityId
;
packetIds
:
PatientChartId
[]
}
,
)
=>
Promise
<
number
>
;
getAllForPatient
:
(
params
:
{
patientChartIds
?:
PatientChartId
[]
;
patientId
:
PatientId
;
pieces
?:
"exclude"
|
"include"
;
since
?:
PatientChartSinceCutoff
;
treatmentEpisodeId
?:
TreatmentEpisodeId
;
}
,
)
=>
Promise
<
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
(...)
|
(...)
;
attachmentId
:
(...)
|
(...)
;
attachmentRetryAfter
?:
(...)
|
(...)
;
attachmentSkipReason
?:
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
;
businessId
:
(...)
|
(...)
;
connector
:
string
;
contentHash
:
(...)
|
(...)
;
contentHashStoredAt
?:
(...)
|
(...)
|
(...)
;
embedFailedAt
?:
(...)
|
(...)
;
embedFailedAttempts
?:
(...)
|
(...)
;
label
:
(...)
|
(...)
;
schemaVersion
:
string
;
sourceEpisodeId
?:
(...)
|
(...)
|
(...)
;
table
:
string
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
embedding_count
:
string
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
extend_content_hash
:
string
|
null
;
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extend_source
:
"proxy"
|
"insync-rpa"
|
"v2-patient-charts"
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_created_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
integration_id
:
string
&
{
__brand
:
"IntegrationId"
}
|
null
;
is_ready
:
boolean
|
null
;
packet_role
:
"standalone"
|
"packet"
|
"piece"
;
packet_section_index
:
number
|
null
;
page_end
:
number
|
null
;
page_start
:
number
|
null
;
parent_patient_chart_id
:
string
&
{
__brand
:
"PatientChartId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
raw_document
:
unknown
;
run_id
:
string
|
null
;
sources
:
unknown
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
[]
,
>
;
getByExternalDocumentId
:
(
params
:
{
externalDocumentId
:
string
;
integrationId
:
IntegrationId
;
patientId
:
PatientId
;
}
,
)
=>
Promise
<
|
{
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
id
:
PatientChartId
;
raw_document
:
unknown
;
}
|
undefined
,
>
;
getById
:
(
params
:
{
id
:
PatientChartId
;
patientId
:
PatientId
}
,
)
=>
Promise
<
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
number
;
attachmentId
:
string
|
null
;
attachmentRetryAfter
?:
string
;
attachmentSkipReason
?:
|
"not_pdf"
|
"hash_mismatch"
|
"metadata_invalid"
|
"too_large"
|
"extraction_failed_repeatedly"
|
"not_listed"
|
"vendor_rejected"
|
null
;
businessId
:
string
|
null
;
connector
:
string
;
contentHash
:
string
|
null
;
contentHashStoredAt
?:
string
|
null
;
embedFailedAt
?:
string
;
embedFailedAttempts
?:
number
;
label
:
string
|
null
;
schemaVersion
:
string
;
sourceEpisodeId
?:
string
|
null
;
table
:
string
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
created_at
:
DbDate
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
raw_document
:
unknown
;
}
,
>
;
getByIds
:
(
params
:
{
ids
:
PatientChartId
[]
;
patientId
:
PatientId
}
,
)
=>
Promise
<
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
(...)
|
(...)
;
attachmentId
:
(...)
|
(...)
;
attachmentRetryAfter
?:
(...)
|
(...)
;
attachmentSkipReason
?:
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
;
businessId
:
(...)
|
(...)
;
connector
:
string
;
contentHash
:
(...)
|
(...)
;
contentHashStoredAt
?:
(...)
|
(...)
|
(...)
;
embedFailedAt
?:
(...)
|
(...)
;
embedFailedAttempts
?:
(...)
|
(...)
;
label
:
(...)
|
(...)
;
schemaVersion
:
string
;
sourceEpisodeId
?:
(...)
|
(...)
|
(...)
;
table
:
string
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
embedding_count
:
string
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
extend_content_hash
:
string
|
null
;
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extend_source
:
"proxy"
|
"insync-rpa"
|
"v2-patient-charts"
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_created_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
integration_id
:
string
&
{
__brand
:
"IntegrationId"
}
|
null
;
is_ready
:
boolean
|
null
;
packet_role
:
"standalone"
|
"packet"
|
"piece"
;
packet_section_index
:
number
|
null
;
page_end
:
number
|
null
;
page_start
:
number
|
null
;
parent_patient_chart_id
:
string
&
{
__brand
:
"PatientChartId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
raw_document
:
unknown
;
run_id
:
string
|
null
;
sources
:
unknown
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
[]
,
>
;
getGeneratedFormChartByRunId
:
(
runId
:
FormRunId
,
)
=>
Promise
<
|
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
(...)
|
(...)
;
attachmentId
:
(...)
|
(...)
;
attachmentRetryAfter
?:
(...)
|
(...)
;
attachmentSkipReason
?:
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
;
businessId
:
(...)
|
(...)
;
connector
:
string
;
contentHash
:
(...)
|
(...)
;
contentHashStoredAt
?:
(...)
|
(...)
|
(...)
;
embedFailedAt
?:
(...)
|
(...)
;
embedFailedAttempts
?:
(...)
|
(...)
;
label
:
(...)
|
(...)
;
schemaVersion
:
string
;
sourceEpisodeId
?:
(...)
|
(...)
|
(...)
;
table
:
string
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
embedding_count
:
string
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
extend_content_hash
:
string
|
null
;
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extend_source
:
"proxy"
|
"insync-rpa"
|
"v2-patient-charts"
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_created_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
integration_id
:
string
&
{
__brand
:
"IntegrationId"
}
|
null
;
is_ready
:
boolean
|
null
;
packet_role
:
"standalone"
|
"packet"
|
"piece"
;
packet_section_index
:
number
|
null
;
page_end
:
number
|
null
;
page_start
:
number
|
null
;
parent_patient_chart_id
:
string
&
{
__brand
:
"PatientChartId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
raw_document
:
unknown
;
run_id
:
string
|
null
;
sources
:
unknown
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
|
null
,
>
;
getIngestTargetById
:
(
params
:
{
id
:
PatientChartId
;
patientId
:
PatientId
}
,
)
=>
Promise
<
|
{
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_id
:
string
|
null
;
file_name
:
string
|
null
;
id
:
PatientChartId
;
integration_id
:
string
&
{
__brand
:
"IntegrationId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
}
|
undefined
,
>
;
listAllIdsForPatient
:
(
params
:
ListPatientChartsForPatientParams
,
)
=>
Promise
<
PatientChartId
[]
>
;
listByExternalIdentities
:
(
params
:
{
externalDocumentIds
:
string
[]
;
integrationId
:
IntegrationId
;
patientId
:
PatientId
;
}
,
)
=>
Promise
<
Pick
<
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
...
;
attachmentId
:
...
;
attachmentRetryAfter
?:
...
;
attachmentSkipReason
?:
...
;
businessId
:
...
;
connector
:
...
;
contentHash
:
...
;
contentHashStoredAt
?:
...
;
embedFailedAt
?:
...
;
embedFailedAttempts
?:
...
;
label
:
...
;
schemaVersion
:
...
;
sourceEpisodeId
?:
...
;
table
:
...
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
embedding_count
:
string
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
extend_content_hash
:
string
|
null
;
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extend_source
:
"proxy"
|
"insync-rpa"
|
"v2-patient-charts"
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_created_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
integration_id
:
string
&
{
__brand
:
"IntegrationId"
}
|
null
;
is_ready
:
boolean
|
null
;
packet_role
:
"standalone"
|
"packet"
|
"piece"
;
packet_section_index
:
number
|
null
;
page_end
:
number
|
null
;
page_start
:
number
|
null
;
parent_patient_chart_id
:
string
&
{
__brand
:
"PatientChartId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
raw_document
:
unknown
;
run_id
:
string
|
null
;
sources
:
unknown
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
,
|
"id"
|
"external_document_id"
|
"external_document_type"
|
"external_document_updated_at"
|
"extend_run_id"
,
>
[]
,
>
;
listByExternalIdentity
:
(
params
:
{
externalDocumentId
:
string
;
integrationId
:
IntegrationId
;
patientId
:
PatientId
;
}
,
)
=>
Promise
<
{
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
id
:
PatientChartId
;
}
[]
,
>
;
listChartsAwaitingEmbedRetry
:
(
params
:
{
integrationId
:
IntegrationId
;
maxAttempts
:
number
;
patientId
:
PatientId
;
treatmentEpisodeId
:
TreatmentEpisodeId
;
}
,
)
=>
Promise
<
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
(...)
|
(...)
;
attachmentId
:
(...)
|
(...)
;
attachmentRetryAfter
?:
(...)
|
(...)
;
attachmentSkipReason
?:
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
;
businessId
:
(...)
|
(...)
;
connector
:
string
;
contentHash
:
(...)
|
(...)
;
contentHashStoredAt
?:
(...)
|
(...)
|
(...)
;
embedFailedAt
?:
(...)
|
(...)
;
embedFailedAttempts
?:
(...)
|
(...)
;
label
:
(...)
|
(...)
;
schemaVersion
:
string
;
sourceEpisodeId
?:
(...)
|
(...)
|
(...)
;
table
:
string
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_name
:
string
|
null
;
id
:
PatientChartId
;
raw_document
:
unknown
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
[]
,
>
;
listConceptDocuments
:
(
params
:
ListConceptDocumentsParams
,
)
=>
Promise
<
ConceptDocument
[]
>
;
listDocumentTypesForPatient
:
(
params
:
{
patientId
:
PatientId
;
treatmentEpisodeId
?:
TreatmentEpisodeId
;
}
,
)
=>
Promise
<
(
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
)
[]
,
>
;
listExistingIds
:
(
params
:
{
ids
:
PatientChartId
[]
;
patientId
:
PatientId
}
,
)
=>
Promise
<
PatientChartId
[]
>
;
listFacilityDocumentsMatchingRules
:
(
params
:
{
facilityIds
:
FacilityId
[]
;
limit
:
number
;
rules
:
readonly
DocumentMatcherRule
[]
;
search
?:
string
;
}
,
)
=>
Promise
<
{
documents
:
{
authoredAt
:
DbDate
;
facilityName
:
string
;
id
:
PatientChartId
;
patientFirstName
:
string
|
null
;
patientLastName
:
string
|
null
;
title
:
string
|
null
;
}
[]
;
total
:
number
;
}
,
>
;
listForPatient
:
(
params
:
ListPatientChartsForPatientParams
,
)
=>
Promise
<
{
created_at
:
DbDate
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
external_document_created_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
packet_role
:
"standalone"
|
"packet"
|
"piece"
;
page_end
:
number
|
null
;
page_start
:
number
|
null
;
parent_patient_chart_id
:
string
&
{
__brand
:
"PatientChartId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
piece_count
:
number
|
null
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
[]
,
>
;
listForPatientIntegrationType
:
(
params
:
{
externalDocumentType
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
(
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
)
[]
;
integrationId
:
IntegrationId
;
patientId
:
PatientId
;
treatmentEpisodeId
:
TreatmentEpisodeId
;
}
,
)
=>
Promise
<
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
(...)
|
(...)
;
attachmentId
:
(...)
|
(...)
;
attachmentRetryAfter
?:
(...)
|
(...)
;
attachmentSkipReason
?:
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
;
businessId
:
(...)
|
(...)
;
connector
:
string
;
contentHash
:
(...)
|
(...)
;
contentHashStoredAt
?:
(...)
|
(...)
|
(...)
;
embedFailedAt
?:
(...)
|
(...)
;
embedFailedAttempts
?:
(...)
|
(...)
;
label
:
(...)
|
(...)
;
schemaVersion
:
string
;
sourceEpisodeId
?:
(...)
|
(...)
|
(...)
;
table
:
string
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_name
:
string
|
null
;
id
:
PatientChartId
;
raw_document
:
unknown
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
[]
,
>
;
listKipuGroupSessions
:
(
params
:
{
patientId
:
PatientId
;
treatmentEpisodeId
?:
TreatmentEpisodeId
;
}
,
)
=>
Promise
<
{
external_document_id
:
string
|
null
;
id
:
PatientChartId
;
raw_document
:
unknown
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
}
[]
,
>
;
listKipuIndividualEncounters
:
(
params
:
{
fallbackTimeZone
:
string
;
patientId
:
PatientId
;
treatmentEpisodeId
?:
TreatmentEpisodeId
;
}
,
)
=>
Promise
<
{
attended_minutes
:
number
|
null
;
clinician_name
:
string
|
null
;
external_document_id
:
string
|
null
;
id
:
PatientChartId
;
started_at
:
DbDate
;
status
:
string
|
null
;
title
:
string
|
null
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
window_end
:
DbDate
|
null
;
window_start
:
DbDate
|
null
;
}
[]
,
>
;
listMetadataByIds
:
(
params
:
{
ids
:
PatientChartId
[]
;
patientId
:
PatientId
}
,
)
=>
Promise
<
Pick
<
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
...
;
attachmentId
:
...
;
attachmentRetryAfter
?:
...
;
attachmentSkipReason
?:
...
;
businessId
:
...
;
connector
:
...
;
contentHash
:
...
;
contentHashStoredAt
?:
...
;
embedFailedAt
?:
...
;
embedFailedAttempts
?:
...
;
label
:
...
;
schemaVersion
:
...
;
sourceEpisodeId
?:
...
;
table
:
...
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
embedding_count
:
string
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
extend_content_hash
:
string
|
null
;
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extend_source
:
"proxy"
|
"insync-rpa"
|
"v2-patient-charts"
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_created_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
integration_id
:
string
&
{
__brand
:
"IntegrationId"
}
|
null
;
is_ready
:
boolean
|
null
;
packet_role
:
"standalone"
|
"packet"
|
"piece"
;
packet_section_index
:
number
|
null
;
page_end
:
number
|
null
;
page_start
:
number
|
null
;
parent_patient_chart_id
:
string
&
{
__brand
:
"PatientChartId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
raw_document
:
unknown
;
run_id
:
string
|
null
;
sources
:
unknown
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
,
"id"
|
"file_name"
|
"embedding_status"
,
>
[]
,
>
;
listOrgChartIdsMatchingRules
:
(
params
:
{
entityId
:
EntityId
;
patientId
?:
PatientId
;
rules
:
readonly
DocumentMatcherRule
[]
;
}
,
)
=>
Promise
<
PatientChartId
[]
>
;
listPacketPieces
:
(
params
:
{
packetId
:
PatientChartId
;
patientId
:
PatientId
}
,
)
=>
Promise
<
{
created_at
:
DbDate
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
external_document_created_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
packet_role
:
"standalone"
|
"packet"
|
"piece"
;
packet_section_index
:
number
|
null
;
page_end
:
number
|
null
;
page_start
:
number
|
null
;
parent_patient_chart_id
:
string
&
{
__brand
:
"PatientChartId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
[]
,
>
;
listPatientChartTitles
:
(
__namedParameters
:
{
patientId
:
PatientId
}
,
)
=>
Promise
<
{
normalizedTitle
:
string
;
patientChartId
:
PatientChartId
}
[]
,
>
;
listProxyAttachmentCandidates
:
(
params
:
{
excludeIds
?:
PatientChartId
[]
;
integrationId
:
IntegrationId
;
limit
:
number
;
treatmentEpisodeId
:
TreatmentEpisodeId
;
}
,
)
=>
Promise
<
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
(...)
|
(...)
;
attachmentId
:
(...)
|
(...)
;
attachmentRetryAfter
?:
(...)
|
(...)
;
attachmentSkipReason
?:
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
;
businessId
:
(...)
|
(...)
;
connector
:
string
;
contentHash
:
(...)
|
(...)
;
contentHashStoredAt
?:
(...)
|
(...)
|
(...)
;
embedFailedAt
?:
(...)
|
(...)
;
embedFailedAttempts
?:
(...)
|
(...)
;
label
:
(...)
|
(...)
;
schemaVersion
:
string
;
sourceEpisodeId
?:
(...)
|
(...)
|
(...)
;
table
:
string
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
external_document_id
:
string
;
id
:
PatientChartId
;
patient_id
:
PatientId
;
}
[]
,
>
;
listProxyExtendCandidates
:
(
params
:
{
integrationId
:
IntegrationId
;
limit
:
number
;
patientChartIds
?:
PatientChartId
[]
;
staleRunStartedBefore
:
DbDate
;
treatmentEpisodeId
:
TreatmentEpisodeId
;
}
,
)
=>
Promise
<
{
attachment_id
:
string
|
null
;
attachment_skip_reason
:
|
"not_pdf"
|
"hash_mismatch"
|
"metadata_invalid"
|
"too_large"
|
"extraction_failed_repeatedly"
|
"not_listed"
|
"vendor_rejected"
|
null
;
content_hash
:
string
;
entity_id
:
EntityId
;
extend_content_hash
:
string
|
null
;
extend_failed_attempts
:
number
;
extend_last_failed_at
:
DbDate
|
null
;
extend_run_created_at
:
DbDate
|
null
;
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extend_run_status
:
|
"processing"
|
"failed"
|
"rejected"
|
"needs_review"
|
"pending"
|
"completed"
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_url
:
string
;
id
:
PatientChartId
;
label
:
string
|
null
;
patient_id
:
PatientId
;
}
[]
,
>
;
listStuckUploadExtractions
:
(
params
:
{
entityId
?:
EntityId
;
limit
?:
number
;
olderThan
:
DbDate
}
,
)
=>
Promise
<
{
entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
id
:
PatientChartId
;
}
[]
,
>
;
listUnextractedProxyChartIds
:
(
scope
:
{
patientChartIds
:
PatientChartId
[]
|
null
;
treatmentEpisodeId
:
TreatmentEpisodeId
;
}
,
)
=>
Promise
<
PatientChartId
[]
>
;
markExtended
:
(
id
:
PatientChartId
,
params
:
{
entityId
:
EntityId
;
extendedAt
:
DbDate
;
extendRunId
:
ExtendRunId
|
null
;
extendSource
:
"proxy"
|
"insync-rpa"
|
"v2-patient-charts"
;
}
,
)
=>
Promise
<
|
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
(...)
|
(...)
;
attachmentId
:
(...)
|
(...)
;
attachmentRetryAfter
?:
(...)
|
(...)
;
attachmentSkipReason
?:
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
;
businessId
:
(...)
|
(...)
;
connector
:
string
;
contentHash
:
(...)
|
(...)
;
contentHashStoredAt
?:
(...)
|
(...)
|
(...)
;
embedFailedAt
?:
(...)
|
(...)
;
embedFailedAttempts
?:
(...)
|
(...)
;
label
:
(...)
|
(...)
;
schemaVersion
:
string
;
sourceEpisodeId
?:
(...)
|
(...)
|
(...)
;
table
:
string
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
embedding_count
:
string
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
extend_content_hash
:
string
|
null
;
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extend_source
:
"proxy"
|
"insync-rpa"
|
"v2-patient-charts"
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_created_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
integration_id
:
string
&
{
__brand
:
"IntegrationId"
}
|
null
;
is_ready
:
boolean
|
null
;
packet_role
:
"standalone"
|
"packet"
|
"piece"
;
packet_section_index
:
number
|
null
;
page_end
:
number
|
null
;
page_start
:
number
|
null
;
parent_patient_chart_id
:
string
&
{
__brand
:
"PatientChartId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
raw_document
:
unknown
;
run_id
:
string
|
null
;
sources
:
unknown
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
|
undefined
,
>
;
markGeneratedFormChartReady
:
(
runId
:
FormRunId
,
)
=>
Promise
<
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
number
;
attachmentId
:
string
|
null
;
attachmentRetryAfter
?:
string
;
attachmentSkipReason
?:
|
"not_pdf"
|
"hash_mismatch"
|
"metadata_invalid"
|
"too_large"
|
"extraction_failed_repeatedly"
|
"not_listed"
|
"vendor_rejected"
|
null
;
businessId
:
string
|
null
;
connector
:
string
;
contentHash
:
string
|
null
;
contentHashStoredAt
?:
string
|
null
;
embedFailedAt
?:
string
;
embedFailedAttempts
?:
number
;
label
:
string
|
null
;
schemaVersion
:
string
;
sourceEpisodeId
?:
string
|
null
;
table
:
string
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
embedding_count
:
string
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
extend_content_hash
:
string
|
null
;
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extend_source
:
"proxy"
|
"insync-rpa"
|
"v2-patient-charts"
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_created_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
integration_id
:
string
&
{
__brand
:
"IntegrationId"
}
|
null
;
is_ready
:
boolean
|
null
;
packet_role
:
"standalone"
|
"packet"
|
"piece"
;
packet_section_index
:
number
|
null
;
page_end
:
number
|
null
;
page_start
:
number
|
null
;
parent_patient_chart_id
:
string
&
{
__brand
:
"PatientChartId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
raw_document
:
unknown
;
run_id
:
string
|
null
;
sources
:
unknown
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
,
>
;
markStuckUploadExtractionsFailed
:
(
ids
:
PatientChartId
[]
,
reason
:
string
,
olderThan
:
DbDate
,
entityId
?:
EntityId
,
)
=>
Promise
<
{
id
:
PatientChartId
}
[]
>
;
recordEmbedFailure
:
(
ids
:
PatientChartId
[]
)
=>
Promise
<
void
>
;
replacePacketPieces
:
(
__namedParameters
:
ReplacePacketPiecesParams
,
)
=>
Promise
<
{
deletedIds
:
PatientChartId
[]
;
kept
:
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
...
;
attachmentId
:
...
;
attachmentRetryAfter
?:
...
;
attachmentSkipReason
?:
...
;
businessId
:
...
;
connector
:
...
;
contentHash
:
...
;
contentHashStoredAt
?:
...
;
embedFailedAt
?:
...
;
embedFailedAttempts
?:
...
;
label
:
...
;
schemaVersion
:
...
;
sourceEpisodeId
?:
...
;
table
:
...
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
embedding_count
:
string
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
extend_content_hash
:
string
|
null
;
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extend_source
:
"proxy"
|
"insync-rpa"
|
"v2-patient-charts"
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_created_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
integration_id
:
string
&
{
__brand
:
"IntegrationId"
}
|
null
;
is_ready
:
boolean
|
null
;
packet_role
:
"standalone"
|
"packet"
|
"piece"
;
packet_section_index
:
number
|
null
;
page_end
:
number
|
null
;
page_start
:
number
|
null
;
parent_patient_chart_id
:
string
&
{
__brand
:
"PatientChartId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
raw_document
:
unknown
;
run_id
:
string
|
null
;
sources
:
unknown
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
[]
;
}
,
>
;
setFailedAttachmentAttempt
:
(
id
:
PatientChartId
,
params
:
{
attempts
:
number
;
integrationId
:
IntegrationId
;
retryAfter
:
DbDate
;
}
,
)
=>
Promise
<
{
id
:
PatientChartId
}
>
;
setSkippedAttachment
:
(
id
:
PatientChartId
,
params
:
{
integrationId
:
IntegrationId
;
reason
:
|
"not_pdf"
|
"hash_mismatch"
|
"metadata_invalid"
|
"too_large"
|
"extraction_failed_repeatedly"
|
"not_listed"
|
"vendor_rejected"
;
}
,
)
=>
Promise
<
{
id
:
PatientChartId
}
>
;
setStoredAttachment
:
(
id
:
PatientChartId
,
params
:
{
contentHash
:
string
;
fileUrl
:
string
;
integrationId
:
IntegrationId
;
}
,
)
=>
Promise
<
{
id
:
PatientChartId
}
>
;
stampExtendSubmission
:
(
id
:
PatientChartId
,
params
:
{
extendContentHash
:
string
;
extendRunId
:
ExtendRunId
;
extendSource
:
"proxy"
|
"insync-rpa"
|
"v2-patient-charts"
;
}
,
)
=>
Promise
<
StampExtendSubmissionResult
>
;
updateEmbeddingStatus
:
(
params
:
UpdateEmbeddingStatusParams
,
)
=>
Promise
<
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
number
;
attachmentId
:
string
|
null
;
attachmentRetryAfter
?:
string
;
attachmentSkipReason
?:
|
"not_pdf"
|
"hash_mismatch"
|
"metadata_invalid"
|
"too_large"
|
"extraction_failed_repeatedly"
|
"not_listed"
|
"vendor_rejected"
|
null
;
businessId
:
string
|
null
;
connector
:
string
;
contentHash
:
string
|
null
;
contentHashStoredAt
?:
string
|
null
;
embedFailedAt
?:
string
;
embedFailedAttempts
?:
number
;
label
:
string
|
null
;
schemaVersion
:
string
;
sourceEpisodeId
?:
string
|
null
;
table
:
string
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
embedding_count
:
string
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
extend_content_hash
:
string
|
null
;
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extend_source
:
"proxy"
|
"insync-rpa"
|
"v2-patient-charts"
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_created_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
integration_id
:
string
&
{
__brand
:
"IntegrationId"
}
|
null
;
is_ready
:
boolean
|
null
;
packet_role
:
"standalone"
|
"packet"
|
"piece"
;
packet_section_index
:
number
|
null
;
page_end
:
number
|
null
;
page_start
:
number
|
null
;
parent_patient_chart_id
:
string
&
{
__brand
:
"PatientChartId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
raw_document
:
unknown
;
run_id
:
string
|
null
;
sources
:
unknown
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
,
>
;
updateExternalDocumentType
:
(
params
:
{
entityId
:
EntityId
;
externalDocumentType
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
;
id
:
PatientChartId
;
}
,
)
=>
Promise
<
|
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
(...)
|
(...)
;
attachmentId
:
(...)
|
(...)
;
attachmentRetryAfter
?:
(...)
|
(...)
;
attachmentSkipReason
?:
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
;
businessId
:
(...)
|
(...)
;
connector
:
string
;
contentHash
:
(...)
|
(...)
;
contentHashStoredAt
?:
(...)
|
(...)
|
(...)
;
embedFailedAt
?:
(...)
|
(...)
;
embedFailedAttempts
?:
(...)
|
(...)
;
label
:
(...)
|
(...)
;
schemaVersion
:
string
;
sourceEpisodeId
?:
(...)
|
(...)
|
(...)
;
table
:
string
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
embedding_count
:
string
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
extend_content_hash
:
string
|
null
;
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extend_source
:
"proxy"
|
"insync-rpa"
|
"v2-patient-charts"
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_created_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
integration_id
:
string
&
{
__brand
:
"IntegrationId"
}
|
null
;
is_ready
:
boolean
|
null
;
packet_role
:
"standalone"
|
"packet"
|
"piece"
;
packet_section_index
:
number
|
null
;
page_end
:
number
|
null
;
page_start
:
number
|
null
;
parent_patient_chart_id
:
string
&
{
__brand
:
"PatientChartId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
raw_document
:
unknown
;
run_id
:
string
|
null
;
sources
:
unknown
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
|
undefined
,
>
;
updateParsedContent
:
(
params
:
UpdateParsedContentParams
,
)
=>
Promise
<
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
number
;
attachmentId
:
string
|
null
;
attachmentRetryAfter
?:
string
;
attachmentSkipReason
?:
|
"not_pdf"
|
"hash_mismatch"
|
"metadata_invalid"
|
"too_large"
|
"extraction_failed_repeatedly"
|
"not_listed"
|
"vendor_rejected"
|
null
;
businessId
:
string
|
null
;
connector
:
string
;
contentHash
:
string
|
null
;
contentHashStoredAt
?:
string
|
null
;
embedFailedAt
?:
string
;
embedFailedAttempts
?:
number
;
label
:
string
|
null
;
schemaVersion
:
string
;
sourceEpisodeId
?:
string
|
null
;
table
:
string
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
embedding_count
:
string
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
extend_content_hash
:
string
|
null
;
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extend_source
:
"proxy"
|
"insync-rpa"
|
"v2-patient-charts"
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_created_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
integration_id
:
string
&
{
__brand
:
"IntegrationId"
}
|
null
;
is_ready
:
boolean
|
null
;
packet_role
:
"standalone"
|
"packet"
|
"piece"
;
packet_section_index
:
number
|
null
;
page_end
:
number
|
null
;
page_start
:
number
|
null
;
parent_patient_chart_id
:
string
&
{
__brand
:
"PatientChartId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
raw_document
:
unknown
;
run_id
:
string
|
null
;
sources
:
unknown
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
yielded_to_extraction
:
boolean
;
}
,
>
;
upsertExternalDocument
:
(
rows
:
UpsertExternalDocumentRow
[]
,
)
=>
Promise
<
{
inserted
:
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
...
;
attachmentId
:
...
;
attachmentRetryAfter
?:
...
;
attachmentSkipReason
?:
...
;
businessId
:
...
;
connector
:
...
;
contentHash
:
...
;
contentHashStoredAt
?:
...
;
embedFailedAt
?:
...
;
embedFailedAttempts
?:
...
;
label
:
...
;
schemaVersion
:
...
;
sourceEpisodeId
?:
...
;
table
:
...
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
embedding_count
:
string
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
extend_content_hash
:
string
|
null
;
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extend_source
:
"proxy"
|
"insync-rpa"
|
"v2-patient-charts"
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_created_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
integration_id
:
string
&
{
__brand
:
"IntegrationId"
}
|
null
;
is_ready
:
boolean
|
null
;
packet_role
:
"standalone"
|
"packet"
|
"piece"
;
packet_section_index
:
number
|
null
;
page_end
:
number
|
null
;
page_start
:
number
|
null
;
parent_patient_chart_id
:
string
&
{
__brand
:
"PatientChartId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
raw_document
:
unknown
;
run_id
:
string
|
null
;
sources
:
unknown
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
[]
;
skipped
:
{
reason
:
string
;
row
:
UpsertExternalDocumentRow
}
[]
;
}
,
>
;
upsertGeneratedFormChart
:
(
params
:
UpsertGeneratedFormChartParams
,
)
=>
Promise
<
{
circle_metadata
:
|
{
admittedAt
:
string
|
null
;
capturedAt
:
string
;
dischargedAt
:
string
|
null
;
entityId
:
number
;
episodeEnd
?:
string
|
null
;
episodeStart
?:
string
|
null
;
levelOfCareName
?:
string
|
null
;
patientId
:
PatientId
;
patientName
:
string
;
programEnd
?:
string
|
null
;
programName
?:
string
|
null
;
programStart
?:
string
|
null
;
proxy
?:
{
attachmentFailedAttempts
?:
number
;
attachmentId
:
string
|
null
;
attachmentRetryAfter
?:
string
;
attachmentSkipReason
?:
|
"not_pdf"
|
"hash_mismatch"
|
"metadata_invalid"
|
"too_large"
|
"extraction_failed_repeatedly"
|
"not_listed"
|
"vendor_rejected"
|
null
;
businessId
:
string
|
null
;
connector
:
string
;
contentHash
:
string
|
null
;
contentHashStoredAt
?:
string
|
null
;
embedFailedAt
?:
string
;
embedFailedAttempts
?:
number
;
label
:
string
|
null
;
schemaVersion
:
string
;
sourceEpisodeId
?:
string
|
null
;
table
:
string
;
}
;
urLevelOfCareName
?:
string
|
null
;
}
|
null
;
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
embedding_count
:
string
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
extend_content_hash
:
string
|
null
;
extend_run_id
:
string
&
{
__brand
:
"ExtendRunId"
}
|
null
;
extend_source
:
"proxy"
|
"insync-rpa"
|
"v2-patient-charts"
|
null
;
extended_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_created_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
external_document_id
:
string
|
null
;
external_document_type
:
|
"kipu_evaluation"
|
"kipu_consent_form"
|
"kipu_ciwa_ar"
|
"kipu_ciwa_b"
|
"kipu_group_session"
|
"lightningstep_formdata"
|
"lightningstep_txplan"
|
"kipu_vital_signs"
|
"kipu_orthostatic_vital_signs"
|
"kipu_patient_orders"
|
"kipu_glucose_logs"
|
"kipu_program_history"
|
"kipu_diagnosis_history"
|
"kipu_appointment"
|
"lightningstep_admissions"
|
"kipu_episode_outcome"
|
"sunwave_form"
|
"sunwave_diagnosis"
|
"sunwave_group_note"
|
"sunwave_program"
|
"sunwave_lab_result"
|
"sunwave_assessment"
|
"emr_insurance_information"
|
"insync_episode_summary"
|
"insync_condition"
|
"insync_vital_signs"
|
"insync_lab_result"
|
"insync_observation"
|
"insync_allergy"
|
"insync_immunization"
|
"insync_medication_request"
|
"insync_diagnostic_report"
|
"insync_procedure"
|
"insync_rpa_locadtr"
|
"insync_rpa_treatment_plan"
|
"insync_rpa_biopsychosocial"
|
"synthetic_biopsychosocial"
|
"synthetic_asam"
|
"synthetic_consent"
|
"synthetic_nursing_intake"
|
"synthetic_diagnosis"
|
"synthetic_treatment_plan"
|
"synthetic_group_note"
|
"synthetic_progress_note"
|
"synthetic_ur_review"
|
"synthetic_discharge_summary"
|
"insync_rpa_encounter_note"
|
"insync_rpa_consent_form"
|
"insync_rpa_lab_result"
|
"insync_rpa_insurance"
|
"insync_rpa_document"
|
null
;
external_document_updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
PatientChartId
;
integration_id
:
string
&
{
__brand
:
"IntegrationId"
}
|
null
;
is_ready
:
boolean
|
null
;
packet_role
:
"standalone"
|
"packet"
|
"piece"
;
packet_section_index
:
number
|
null
;
page_end
:
number
|
null
;
page_start
:
number
|
null
;
parent_patient_chart_id
:
string
&
{
__brand
:
"PatientChartId"
}
|
null
;
patient_id
:
string
&
{
__brand
:
"PatientId"
}
|
null
;
raw_document
:
unknown
;
run_id
:
string
|
null
;
sources
:
unknown
;
treatment_episode_id
:
string
&
{
__brand
:
"TreatmentEpisodeId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
,
>
;
withGeneratedFormRenderLock
:
(
runId
:
FormRunId
,
render
:
()
=>
Promise
<
void
>
,
)
=>
Promise
<
void
>
;
}
,
>
= ...
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Circle V2 API Docs
Loading...