Circle V2 API Docs
Preparing search index...
@repo/legacy
chart-review
PatientChartsRepo
Class PatientChartsRepo
Hierarchy (
View Summary
)
DbRepo
PatientChartsRepo
Index
Constructors
constructor
Properties
supabase
Methods
count
Documents
Updated
Since
count
Patient
Documents
get
All
For
Patient
get
By
Ids
get
Ids
By
Patient
And
Integration
move
To
Patient
By
Ids
with
Db
Constructors
constructor
new
PatientChartsRepo
(
options
:
DbRepoOptions
)
:
PatientChartsRepo
Parameters
options
:
DbRepoOptions
Returns
PatientChartsRepo
Properties
Protected
Readonly
supabase
supabase
:
SupabaseClient
<
Database
>
Methods
count
Documents
Updated
Since
countDocumentsUpdatedSince
(
params
:
{
documentIds
:
number
[]
;
patientId
:
number
;
updatedAfter
?:
Date
;
}
,
)
:
Promise
<
number
|
null
>
Parameters
params
:
{
documentIds
:
number
[]
;
patientId
:
number
;
updatedAfter
?:
Date
}
Returns
Promise
<
number
|
null
>
count
Patient
Documents
countPatientDocuments
(
patientId
:
number
,
updatedAfter
?:
Date
)
:
Promise
<
number
>
Parameters
patientId
:
number
Optional
updatedAfter
:
Date
Returns
Promise
<
number
>
get
All
For
Patient
getAllForPatient
(
patientId
:
number
,
options
?:
{
since
?:
Date
;
treatmentEpisodeId
?:
string
}
,
)
:
Promise
<
{
circle_metadata
:
Json
;
created_at
:
string
;
created_by
:
string
|
null
;
embedding_count
:
number
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
|
null
;
external_document_created_at
:
string
|
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"
|
null
;
external_document_updated_at
:
string
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
number
;
integration_id
:
string
|
null
;
is_ready
:
boolean
|
null
;
patient_id
:
number
|
null
;
raw_document
:
Json
;
run_id
:
string
|
null
;
sources
:
Json
;
treatment_episode_id
:
string
|
null
;
updated_at
:
string
|
null
;
}
[]
,
>
Parameters
patientId
:
number
Optional
options
:
{
since
?:
Date
;
treatmentEpisodeId
?:
string
}
Returns
Promise
<
{
circle_metadata
:
Json
;
created_at
:
string
;
created_by
:
string
|
null
;
embedding_count
:
number
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
|
null
;
external_document_created_at
:
string
|
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"
|
null
;
external_document_updated_at
:
string
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
number
;
integration_id
:
string
|
null
;
is_ready
:
boolean
|
null
;
patient_id
:
number
|
null
;
raw_document
:
Json
;
run_id
:
string
|
null
;
sources
:
Json
;
treatment_episode_id
:
string
|
null
;
updated_at
:
string
|
null
;
}
[]
,
>
get
By
Ids
getByIds
(
ids
:
number
[]
,
patientId
:
number
,
)
:
Promise
<
{
circle_metadata
:
Json
;
created_at
:
string
;
created_by
:
string
|
null
;
embedding_count
:
number
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
|
null
;
external_document_created_at
:
string
|
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"
|
null
;
external_document_updated_at
:
string
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
number
;
integration_id
:
string
|
null
;
is_ready
:
boolean
|
null
;
patient_id
:
number
|
null
;
raw_document
:
Json
;
run_id
:
string
|
null
;
sources
:
Json
;
treatment_episode_id
:
string
|
null
;
updated_at
:
string
|
null
;
}
[]
,
>
Parameters
ids
:
number
[]
patientId
:
number
Returns
Promise
<
{
circle_metadata
:
Json
;
created_at
:
string
;
created_by
:
string
|
null
;
embedding_count
:
number
|
null
;
embedding_err_msg
:
string
|
null
;
embedding_status
:
|
"processing"
|
"failed"
|
"pending"
|
"parse"
|
"extract"
|
"completed"
|
null
;
entity_id
:
number
|
null
;
external_document_created_at
:
string
|
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"
|
null
;
external_document_updated_at
:
string
|
null
;
file_name
:
string
|
null
;
file_type
:
"patient_chart"
|
"generated_form"
|
"emr_document"
|
null
;
file_url
:
string
|
null
;
id
:
number
;
integration_id
:
string
|
null
;
is_ready
:
boolean
|
null
;
patient_id
:
number
|
null
;
raw_document
:
Json
;
run_id
:
string
|
null
;
sources
:
Json
;
treatment_episode_id
:
string
|
null
;
updated_at
:
string
|
null
;
}
[]
,
>
get
Ids
By
Patient
And
Integration
getIdsByPatientAndIntegration
(
patientId
:
number
,
integrationId
:
string
,
)
:
Promise
<
number
[]
>
Parameters
patientId
:
number
integrationId
:
string
Returns
Promise
<
number
[]
>
move
To
Patient
By
Ids
moveToPatientByIds
(
ids
:
number
[]
,
targetPatientId
:
number
)
:
Promise
<
number
[]
>
Parameters
ids
:
number
[]
targetPatientId
:
number
Returns
Promise
<
number
[]
>
with
Db
withDb
(
options
:
{
supabase
:
SupabaseClient
<
Database
>
}
)
:
this
Parameters
options
:
{
supabase
:
SupabaseClient
<
Database
>
}
Returns
this
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
supabase
Methods
count
Documents
Updated
Since
count
Patient
Documents
get
All
For
Patient
get
By
Ids
get
Ids
By
Patient
And
Integration
move
To
Patient
By
Ids
with
Db
Circle V2 API Docs
Loading...