cl — Public API surface
Types & interfaces
interface AccreditationOverlayResult
- file: src/cores/cl/hooks/blocks/useActiveAccreditationOverlays.ts:43
- kind: interface
- core: cl
- spec: (none)
- summary: The relevant slice of the result.
- score: 2
interface ActivateOrderSetInput
- file: src/cores/cl/hooks/useOrderSetActivation.ts:42
- kind: interface
- core: cl
- spec: (none)
- summary: Input for the activation fan-out.
- score: 2
interface AIMessage
- file: src/cores/cl/ai-documentation/lib/buildChartSummaryPrompt.ts:23
- kind: interface
- core: cl
- spec: (none)
- summary: A provider message. Structurally assignable to the edge gateway’s ,kept local so this module has zero npm/Deno imports and runs under Vitest.
- score: 2
interface AmmDenominatorRow
- file: src/cores/cl/utils/hedisCalculation.ts:9
- kind: interface
- core: cl
- spec: (none)
- summary: CL-35 T054: HEDIS AMM and IET calculation utilities.Pure functions used by the edge function andvalidated by . FUH/FUM are owned byCL-29-EN-65 and intentionally NOT recomputed here.
- score: 2
interface ApproveClinicalDraftArgs
- file: src/cores/cl/hooks/cl-agent-draft-types.ts:24
- kind: interface
- core: cl
- spec: (none)
- summary: Variables passed to useApproveClinicalDraft at mutation-call time.No token fields — the execute path is handled server-side by the edge function.
- score: 2
type AssessmentStatus
- file: src/cores/cl/constants/status-variants.ts:116
- kind: type
- core: cl
- spec: CL-02
- summary: Lifecycle states for a clinical assessment row. and are pre-signature; is the clinician-attestedversion; / cover late edits; marks anolder row replaced by a newer assessment of the same instrument.
- score: 3
interface AtRiskCohortJobResult
- file: src/cores/cl/services/outcomes/atRiskCohortJob.ts:63
- kind: interface
- core: cl
- spec: (none)
- summary: Result summary returned by the job for observability.
- score: 2
interface AttestationInput
- file: src/cores/cl/lib/ceem/minimumNecessary.ts:108
- kind: interface
- core: cl
- spec: (none)
- summary: Inputs the gate has after a permit, before assembling the minimum-necessary payload.
- score: 2
type AuditDashboardAction
- file: src/cores/cl/utils/auditDashboardLog.ts:9
- kind: type
- core: cl
- spec: (none)
- summary: Audit dashboard action types
- score: 1
interface AvailableBlock
- file: src/cores/cl/services/blocks/surfaceTemplateAdmin.ts:17
- kind: interface
- core: cl
- spec: (none)
- summary: A clinical block an admin can add to a surface (platform is_system or org-owned).
- score: 2
type BlockRouteTarget
- file: src/cores/cl/services/blocks/blockInstanceStore.ts:26
- kind: type
- core: cl
- spec: (none)
- summary: Where a save/load was routed.
- score: 1
interface BlockSaveContext
- file: src/cores/cl/services/blocks/blockInstanceStore.ts:40
- kind: interface
- core: cl
- spec: (none)
- summary: Identity + program context for one block instance on an encounter.
- score: 2
interface BlockStoreDeps
- file: src/cores/cl/services/blocks/blockInstanceStore.ts:49
- kind: interface
- core: cl
- spec: (none)
- summary: Injected dependencies so routing is unit-testable without a live client.
- score: 2
interface CdaConsentBannerProps
- file: src/cores/cl/components/cda/CdaConsentBanner.tsx:20
- kind: interface
- core: cl
- spec: CL-48
- summary: Props for . is tri-state so thebanner can distinguish “checked and absent” from “still loading”.
- score: 3
interface CdaDocumentHistoryProps
- file: src/cores/cl/components/cda/CdaDocumentHistory.tsx:26
- kind: interface
- core: cl
- spec: CL-48
- summary: Props for . is while theunderlying query is still loading; highlights the active row.
- score: 3
interface CdaDocumentPreviewProps
- file: src/cores/cl/components/cda/CdaDocumentPreview.tsx:26
- kind: interface
- core: cl
- spec: CL-48
- summary: Props for . The field is the row the read-only preview will render, including itsvalidation status, transmission status, and 42 CFR Part 2 indicator.
- score: 5
interface CdaDocumentTypeSelectorProps
- file: src/cores/cl/components/cda/CdaDocumentTypeSelector.tsx:33
- kind: interface
- core: cl
- spec: CL-48
- summary: Props for . Controlled component — callerowns the selected type and reacts via .
- score: 3
interface CdsDisclosureRow
- file: src/cores/cl/lib/cds-rationale-disclosure.ts:18
- kind: interface
- core: cl
- spec: (none)
- summary: Minimal disclosure-row shape needed to evaluate the client gate.
- score: 2
type CeemBlockReason
- file: src/cores/cl/lib/ds4p/ceem-exemption-profile.ts:48
- kind: type
- core: cl
- spec: (none)
- summary: Reason a disclosure was blocked (deny-by-default outcomes).
- score: 2
interface CeemExemptionAttestation
- file: src/cores/cl/lib/ds4p/ceem-exemption-profile.ts:51
- kind: interface
- core: cl
- spec: (none)
- summary: The minimum-necessary payload permitted to cross the boundary.
- score: 2
interface CeemExemptionDisclosureInput
- file: src/cores/cl/lib/ds4p/ceem-exemption-profile.ts:69
- kind: interface
- core: cl
- spec: (none)
- summary: Inputs to .
- score: 1
interface CeemSegmentationAuditEvent
- file: src/cores/cl/lib/ds4p/ceem-exemption-profile.ts:100
- kind: interface
- core: cl
- spec: (none)
- summary: Immutable audit event for a segmentation decision. Contains NO raw clinicalcontent — only label metadata, the consent/basis reference, the recipient,the jurisdiction profile version, and a timestamp. Mirrors the row CL-71 persists (PF-04 FR-6).
- score: 2
interface CeemSegmentationResult
- file: src/cores/cl/lib/ds4p/ceem-exemption-profile.ts:119
- kind: interface
- core: cl
- spec: (none)
- summary: Result of the CEEM exemption segmentation decision.
- score: 2
type CeemSudExemptionCategory
- file: src/cores/cl/lib/ds4p/ceem-exemption-profile.ts:39
- kind: type
- core: cl
- spec: (none)
- summary: SUD-derived CEEM exemption categories handled by this profile (the twoPart 2-implicated work-requirement exemptions). per42 CFR 440.315(f); is the separate statutory basis.
- score: 2
interface ChartContext
- file: src/cores/cl/ai-documentation/lib/buildChartContext.ts:76
- kind: interface
- core: cl
- spec: (none)
- summary: The deterministic, PHI-minimized context handed to the prompt builder. is a count summary only — never free text from notes.
- score: 2
interface ChartContextAssessment
- file: src/cores/cl/ai-documentation/lib/buildChartContext.ts:34
- kind: interface
- core: cl
- spec: (none)
- summary: Assessment result reduced to non-identifying scoring facts.
- score: 2
interface ChartContextEncounter
- file: src/cores/cl/ai-documentation/lib/buildChartContext.ts:26
- kind: interface
- core: cl
- spec: (none)
- summary: Encounter facts the model may reference (non-identifying structured data).
- score: 2
interface ChartContextInput
- file: src/cores/cl/ai-documentation/lib/buildChartContext.ts:60
- kind: interface
- core: cl
- spec: (none)
- summary: Caller input for chart-context assembly.Additional/unknown keys (including any patient identifiers) are deliberatelyignored — only the fields enumerated here flow into the context.
- score: 2
interface ChartContextNoteRow
- file: src/cores/cl/ai-documentation/lib/buildChartContext.ts:51
- kind: interface
- core: cl
- spec: (none)
- summary: Note row shape used for exclusion decisions.Note: / are intentionally NOT part of this interface —only structured metadata flows into the chart context.
- score: 2
interface ChartContextRiskScreening
- file: src/cores/cl/ai-documentation/lib/buildChartContext.ts:41
- kind: interface
- core: cl
- spec: (none)
- summary: Risk screening result (non-identifying).
- score: 2
interface ChartDisplayIdentity
- file: src/cores/cl/hooks/useChartsByIds.ts:17
- kind: interface
- core: cl
- spec: (none)
- summary: Resolved display identity for a single chart. Safe to render; derived, not persisted.
- score: 2
interface ChartDocumentationBlocksSectionProps
- file: src/cores/cl/components/ChartDocumentationBlocksSection.tsx:42
- kind: interface
- core: cl
- spec: (none)
- summary: Props for : the chart whose encounters compose documentation blocks.
- score: 2
type ChartStatus
- file: src/cores/cl/constants/status-variants.ts:55
- kind: type
- core: cl
- spec: CL-01
- summary: Allowed lifecycle states for a patient chart (). is the working state; is a temporary pause; and is the cold-storage terminal state used after a patientexits care entirely.
- score: 3
interface ChartSummaryAi
- file: src/cores/cl/ai-documentation/lib/generateChartSummaryHandler.ts:78
- kind: interface
- core: cl
- spec: (none)
- summary: The model call surface (injected; mockable).
- score: 2
interface ChartSummaryAvailability
- file: src/cores/cl/ai-documentation/hooks/useChartSummaryAvailability.ts:33
- kind: interface
- core: cl
- spec: (none)
- summary: Resolved availability of the AI chart-summary affordance for a chart.
- score: 2
interface ChartSummaryClientGateDecision
- file: src/cores/cl/ai-documentation/lib/evaluateChartSummaryClientGate.ts:32
- kind: interface
- core: cl
- spec: (none)
- summary: The client gate outcome. is iff is .
- score: 2
interface ChartSummaryClientGateState
- file: src/cores/cl/ai-documentation/lib/evaluateChartSummaryClientGate.ts:22
- kind: interface
- core: cl
- spec: (none)
- summary: Client-visible preconditions for showing the AI chart-summary affordance.
- score: 2
interface ChartSummaryContent
- file: src/cores/cl/ai-documentation/hooks/useGenerateChartSummary.ts:38
- kind: interface
- core: cl
- spec: (none)
- summary: Structured, transient AI summary — rendered in-session, never persisted client-side.
- score: 2
interface ChartSummaryDb
- file: src/cores/cl/ai-documentation/lib/generateChartSummaryHandler.ts:53
- kind: interface
- core: cl
- spec: (none)
- summary: The small DB surface the handler depends on (injected; mockable).
- score: 2
interface ChartSummaryDeps
- file: src/cores/cl/ai-documentation/lib/generateChartSummaryHandler.ts:83
- kind: interface
- core: cl
- spec: (none)
- summary: All side-effecting deps, injected for testability.
- score: 2
interface ChartSummaryGateDecision
- file: src/cores/cl/ai-documentation/lib/evaluateChartSummaryGate.ts:38
- kind: interface
- core: cl
- spec: (none)
- summary: The gate outcome. is iff is .
- score: 2
interface ChartSummaryGateState
- file: src/cores/cl/ai-documentation/lib/evaluateChartSummaryGate.ts:23
- kind: interface
- core: cl
- spec: (none)
- summary: Resolved preconditions for AI chart summary generation.
- score: 2
interface ChartSummaryHandlerInput
- file: src/cores/cl/ai-documentation/lib/generateChartSummaryHandler.ts:89
- kind: interface
- core: cl
- spec: (none)
- summary: Caller input — all fields are tenant-safe (orgId resolved server-side).
- score: 2
interface ChartSummaryMeta
- file: src/cores/cl/ai-documentation/hooks/useGenerateChartSummary.ts:31
- kind: interface
- core: cl
- spec: (none)
- summary: Readiness metadata returned by the edge function (also persisted on the chart).
- score: 2
interface ChartSummaryMetadataWrite
- file: src/cores/cl/ai-documentation/lib/generateChartSummaryHandler.ts:35
- kind: interface
- core: cl
- spec: (none)
- summary: Typed write to (JSONB).
- score: 1
interface ChartSummaryOutput
- file: src/cores/cl/ai-documentation/lib/generateChartSummaryHandler.ts:44
- kind: interface
- core: cl
- spec: (none)
- summary: The AI-generated structured chart summary output.
- score: 2
interface ChartSummaryReadinessMetadata
- file: src/cores/cl/ai-documentation/hooks/useChartSummaryAvailability.ts:26
- kind: interface
- core: cl
- spec: (none)
- summary: Readiness metadata persisted on .
- score: 2
interface ClinicalBlockRendererProps
- file: src/cores/cl/components/blocks/ClinicalBlockRenderer.tsx:34
- kind: interface
- core: cl
- spec: (none)
- summary: Props for : the surface + encounter (and Part-2/read-only context) whose resolved blocks to render.
- score: 2
interface ClinicalBlockSectionProps
- file: src/cores/cl/components/blocks/ClinicalBlockSection.tsx:49
- kind: interface
- core: cl
- spec: (none)
- summary: Props for : one resolved block definition plus its provenance, overlay context, and encounter binding.
- score: 2
interface ClinicalDraftStartResult
- file: src/cores/cl/hooks/cl-agent-draft-types.ts:12
- kind: interface
- core: cl
- spec: (none)
- summary: Result returned by the edge function’s dispatch.
- score: 2
type ClinicalEntityKey
- file: src/cores/cl/constants/status-variants.ts:233
- kind: type
- core: cl
- spec: none
- summary: Union of clinical entity keys that have a status map registered in. Used as the first argument to so callers reference a known entity ratherthan hard-coding a string.
- score: 3
interface ClinicalFormErrorSummaryProps
- file: src/cores/cl/components/ClinicalFormErrorSummary.tsx:28
- kind: interface
- core: cl
- spec: none
- summary: Props for . Keeps the summary generic overthe form’s field-values type so callers get type-safe focus links andlabel lookups without .
- score: 5
type ClinicalUrgency
- file: src/cores/cl/components/clinicalUrgencyUtils.ts:6
- kind: type
- core: cl
- spec: (none)
- summary: Clinical urgency helpers — types and utilities.Extracted so ClinicalUrgencyIndicator.tsx can satisfy react-refresh/only-export-components.
- score: 2
type CLModuleSettingsFormValues
- file: src/cores/cl/components/CLSettingsForm.tsx:82
- kind: type
- core: cl
- spec: none
- summary: Zod-inferred form values type for the CL module settings page. Bundlesoutcome-threshold preferences, AHCCCS/AZDHS incident-deadline configuration,NOMs reporting frequency, and unit preferences (temperature / biometricmeasurement) — the fields a clinical administrator can tune for theorganization without an engineering deploy.
- score: 3
type CognitiveInstrumentCode
- file: src/cores/cl/constants/cognitive-instruments.ts:16
- kind: type
- core: cl
- spec: CL-02
- summary: Union of supported cognitive-screening instrument codes (MoCA, SLUMS,MMSE). Used as the discriminator across consent gating, scoringdispatch, and audit-log payloads so a stray instrument code can’t slipthrough unhandled.
- score: 3
interface CohortAuditTabProps
- file: src/cores/cl/components/cohorts/CohortAuditTab.tsx:39
- kind: interface
- core: cl
- spec: CL-54
- summary: Props for . Bundles the parent row and every saved definition version so the timeline can renderversion-save events alongside lifecycle and snapshot events without asecond query.
- score: 5
interface CohortExportButtonProps
- file: src/cores/cl/components/cohorts/CohortExportButton.tsx:49
- kind: interface
- core: cl
- spec: CL-54
- summary: Props for . is the display nameused both in the generated CSV filename and the audit-log payload, soit should be the canonical name (not a truncated label).
- score: 5
interface CohortFormSheetProps
- file: src/cores/cl/components/cohorts/CohortFormSheet.tsx:38
- kind: interface
- core: cl
- spec: CL-54
- summary: Props for . When is provided, the sheetoperates in edit-definition mode and saves a NEW immutable version row;when omitted, the sheet is in create mode and writes a fresh row plus its v1 definition.
- score: 3
interface CohortListFilters
- file: src/cores/cl/hooks/cohorts/useCohortList.ts:17
- kind: interface
- core: cl
- spec: CL-54
- summary: Filter set for . Currently supports statusfiltering ( sentinel disables it) and site scoping; widens asadditional dimensions come online.
- score: 3
interface CohortMembershipTabProps
- file: src/cores/cl/components/cohorts/CohortMembershipTab.tsx:28
- kind: interface
- core: cl
- spec: CL-54
- summary: Props for . The single fielddrives the underlying snapshot query — the tab derives the list ofavailable as-of dates from the latest fetch.
- score: 5
interface CohortRuleBuilderProps
- file: src/cores/cl/components/cohorts/CohortRuleBuilder.tsx:61
- kind: interface
- core: cl
- spec: CL-54
- summary: Props for . The builder is fully controlled —the parent owns the criteria tree and reacts to .
- score: 3
interface CohortSnapshotDialogProps
- file: src/cores/cl/components/cohorts/CohortSnapshotDialog.tsx:28
- kind: interface
- core: cl
- spec: CL-54
- summary: Props for . Mirrors the standard Dialogopen/onOpenChange contract plus the cohort id whose membership shouldbe materialized when the user confirms.
- score: 5
interface CohortVersionsTabProps
- file: src/cores/cl/components/cohorts/CohortVersionsTab.tsx:22
- kind: interface
- core: cl
- spec: CL-54
- summary: Props for . Bundles the parent cohort row andevery saved definition version; the tab uses to mark which version is active.
- score: 5
interface CohortWithVersions
- file: src/cores/cl/hooks/cohorts/useCohortDetail.ts:17
- kind: interface
- core: cl
- spec: CL-54
- summary: Combined detail payload for a single cohort: the parent row, everysaved definition version (newest first), and a convenience pointer atthe active version. Returned shape of .
- score: 3
interface CompletenessSummaryProps
- file: src/cores/cl/components/completeness/CompletenessSummary.tsx:34
- kind: interface
- core: cl
- spec: (none)
- summary: Props for : the computed completeness result to render.
- score: 2
interface ConfidentialityDerivationInput
- file: src/cores/cl/lib/ds4p/confidentiality.ts:21
- kind: interface
- core: cl
- spec: (none)
- summary: Inputs to .
- score: 1
type ConsentCaptureFormValues
- file: src/cores/cl/components/consent-capture-schema.ts:38
- kind: type
- core: cl
- spec: CL-11
- summary: Form values type inferred from . Carriesthe patient id, effective / expiration dates, the selected 42 CFRPart 2 consent categories, the typed signature name, and the requiredattestation literal. Used as the generic argument to react-hook-form onthe consent capture sheet so the entire form is fully typed.
- score: 3
type ConsentStatus
- file: src/cores/cl/constants/status-variants.ts:159
- kind: type
- core: cl
- spec: CL-11
- summary: Lifecycle states for an electronic consent row (42 CFR Part 2 andgeneral use). is awaiting signature; is signed andwithin the effective window; is past its expiration date; is explicitly withdrawn (irreversible — a new consent mustbe captured to restore access).
- score: 3
type CreateReferralStatusInput
- file: src/cores/cl/hooks/useReferralStatusMutation.ts:16
- kind: type
- core: cl
- spec: (none)
- summary: Input for creating a referral status update (org_id/created_by auto-set).
- score: 2
type DataSensitivityClass
- file: src/cores/cl/lib/ds4p/confidentiality.ts:18
- kind: type
- core: cl
- spec: (none)
- summary: Classification of a clinical payload’s privacy sensitivity. This is the inputto label derivation — it carries no clinical content, only the category.
- score: 2
interface DisclosureCompletenessResult
- file: src/cores/cl/lib/dsiDisclosureCompleteness.ts:50
- kind: interface
- core: cl
- spec: (none)
- summary: Result returned by isDisclosureComplete.
- score: 2
interface DocumentationCompletenessPanelProps
- file: src/cores/cl/components/completeness/DocumentationCompletenessPanel.tsx:20
- kind: interface
- core: cl
- spec: (none)
- summary: Props for : the encounter/surface to score.
- score: 2
interface DraftAi
- file: src/cores/cl/ai-documentation/lib/generateDraftHandler.ts:79
- kind: interface
- core: cl
- spec: (none)
- summary: The model call surface (injected; mockable). Returns ONLY narrative fields.
- score: 2
interface DraftAttribution
- file: src/cores/cl/ai-documentation/lib/generateDraftHandler.ts:61
- kind: interface
- core: cl
- spec: (none)
- summary: Attribution record persisted alongside the draft.
- score: 2
interface DraftDb
- file: src/cores/cl/ai-documentation/lib/generateDraftHandler.ts:66
- kind: interface
- core: cl
- spec: (none)
- summary: The small DB surface the handler depends on (injected; mockable).
- score: 2
interface DraftNarrative
- file: src/cores/cl/ai-documentation/lib/mapDraftToNote.ts:18
- kind: interface
- core: cl
- spec: (none)
- summary: The narrative fields the model is allowed to draft (Policy-940).
- score: 2
type Ds4pDisclosurePurpose
- file: src/cores/cl/lib/ds4p/ceem-exemption-profile.ts:45
- kind: type
- core: cl
- spec: (none)
- summary: Disclosure purpose recorded on a segmentation decision.
- score: 2
interface Ds4pSegmentationDecisionInsert
- file: src/cores/cl/lib/ds4p/ceem-exemption-profile.ts:338
- kind: interface
- core: cl
- spec: (none)
- summary: Row shape for the table. CL-71 inserts this(under RLS) to persist the immutable audit trail. Hand-typed because thegenerated Supabase types lag a fresh migration; widened to the table columns.
- score: 2
interface DsiDisclosureRow
- file: src/cores/cl/lib/dsiDisclosureCompleteness.ts:25
- kind: interface
- core: cl
- spec: (none)
- summary: Partial shape of a cl_dsi_disclosures row — only fields used here.
- score: 2
type DsiFieldGroup
- file: src/cores/cl/dsi-disclosures/lib/disclosureFields.ts:33
- kind: type
- core: cl
- spec: (none)
- summary: Logical section a field renders under in the editor.
- score: 2
type DsiTextFieldKey
- file: src/cores/cl/dsi-disclosures/lib/disclosureFields.ts:14
- kind: type
- core: cl
- spec: (none)
- summary: Editable §170.315(b)(11) source-attribute text columns.
- score: 2
interface FollowUpRateFilters
- file: src/cores/cl/hooks/useFollowUpRate.ts:41
- kind: interface
- core: cl
- spec: (none)
- summary: Optional filters for the follow-up-rate query.
- score: 2
interface FollowUpRateRow
- file: src/cores/cl/hooks/useFollowUpRate.ts:27
- kind: interface
- core: cl
- spec: (none)
- summary: A single row from the VIEW.
- score: 1
type FuaAdtEventRow
- file: src/cores/cl/services/fuaAdtIngest.ts:23
- kind: type
- core: cl
- spec: (none)
- summary: The row returns (generated RPC Return type).
- score: 2
type FuaPayerExportInsert
- file: src/cores/cl/services/fuaPayerExport.ts:28
- kind: type
- core: cl
- spec: (none)
- summary: The insert payload for (generated Insert type).
- score: 2
type FuaPayerExportRow
- file: src/cores/cl/services/fuaPayerExport.ts:31
- kind: type
- core: cl
- spec: (none)
- summary: The row returns on a successful gated insert.
- score: 2
interface GateDecision
- file: src/cores/cl/ai-documentation/lib/evaluateGenerationGate.ts:32
- kind: interface
- core: cl
- spec: (none)
- summary: The gate outcome. is iff is .
- score: 2
interface GateState
- file: src/cores/cl/ai-documentation/lib/evaluateGenerationGate.ts:20
- kind: interface
- core: cl
- spec: (none)
- summary: Resolved preconditions for AI note generation.
- score: 2
interface HedisMeasureSnapshot
- file: src/cores/cl/services/hedisMeasurePersist.ts:37
- kind: interface
- core: cl
- spec: (none)
- summary: One computed FUA/FUI measure snapshot to persist.
- score: 2
interface HedisWorklistItem
- file: src/cores/cl/hooks/useHedisWorklist.ts:17
- kind: interface
- core: cl
- spec: (none)
- summary: A worklist row combines an aftercare plan with its follow-up contacts.
- score: 2
interface ICD10Selection
- file: src/cores/cl/components/problem-list/ICD10CodeSearch.tsx:32
- kind: interface
- core: cl
- spec: CL-46
- summary: Selection returned by when the clinician picksan ICD-10-CM code. Carries the code itself and its human description sothe caller can persist both without a second lookup.
- score: 5
type IngestFuaAdtEventResult
- file: src/cores/cl/services/fuaAdtIngest.ts:29
- kind: type
- core: cl
- spec: (none)
- summary: Result of an ADT ingest attempt. Discriminated on so callers never see araw Supabase error — failures surface only a sanitized, PHI-free string.
- score: 2
interface IntakePrePopulationData
- file: src/cores/cl/hooks/useIntakePrePopulation.ts:14
- kind: interface
- core: cl
- spec: (none)
- summary: Shape of pre-populated data for intake form fields.
- score: 2
interface JurisdictionDisclosureFlags
- file: src/cores/cl/lib/ceem/minimumNecessary.ts:98
- kind: interface
- core: cl
- spec: (none)
- summary: PF-96-resolved flags that govern category/DS4P disclosure for the recipient.
- score: 2
interface LabResultTrendPoint
- file: src/cores/cl/hooks/useLabResults.ts:78
- kind: interface
- core: cl
- spec: (none)
- summary: Time-series data for trending a specific LOINC code
- score: 2
type LethalMeansAssessmentFormValues
- file: src/cores/cl/components/zero-suicide/LethalMeansAssessmentForm.schema.ts:34
- kind: type
- core: cl
- spec: CL-07
- summary: Form values for the Zero-Suicide lethal-means assessment. Mirrors the table: firearm access + details,medication stockpile + details, sharp objects, other means, counselingprovided + free-text notes, restriction plan, and optional links backto the originating screening and encounter.
- score: 3
interface LoadedBlockInstance
- file: src/cores/cl/services/blocks/blockInstanceStore.ts:34
- kind: interface
- core: cl
- spec: (none)
- summary: A loaded block instance plus the version it was snapshotted under. The rendererpins its to so reopening an in-progress noteshows the version it was documented under, not a newer republished one(CL-75 AC-2 / FR-5). Null = no divergence (typed adapters).
- score: 2
type LocChangeDirection
- file: src/cores/cl/components/loc-assessment/LocReassessmentDeltaTable.tsx:30
- kind: type
- core: cl
- spec: CL-49
- summary: Overall direction of change between two LOC assessments: = higher acuity / more intensive care recommended, = lower acuity, = same intensity, different setting.Drives badge color and arrow icon in .
- score: 3
type MarketplaceImportStatus
- file: src/cores/cl/constants/status-variants.ts:178
- kind: type
- core: cl
- spec: CL-57
- summary: Lifecycle states for a clinical content marketplace import operation. is queued; is in flight; / are terminal; marks an import that succeededbut was subsequently reversed (e.g. tenant aborted post-install).
- score: 3
type MeasurementYearVersion
- file: src/cores/cl/services/hedisMeasurePersist.ts:34
- kind: type
- core: cl
- spec: (none)
- summary: Measurement Year version — reuse the platform single-source-of-truth (PF-96, typed )rather than re-declaring an MY union in CL (NFR-config-1).
- score: 2
interface ModuleSettings
- file: src/cores/cl/ai-documentation/lib/generateDraftHandler.ts:33
- kind: interface
- core: cl
- spec: (none)
- summary: Module-settings slice the handler needs.
- score: 2
type MoudEnrollmentStatus
- file: src/cores/cl/constants/status-variants.ts:138
- kind: type
- core: cl
- spec: CL-05
- summary: Lifecycle states for a Medication-Assisted Opioid Use Disorder (MOUD)enrollment. and are working states; captures continuity-of-care handoffs; is the plannedpositive exit; covers unplanned termination(non-adherence, contraindication).
- score: 3
interface NavGroup
- file: src/cores/cl/components/chartSideNavConstants.ts:77
- kind: interface
- core: cl
- spec: none
- summary: Group of related chart nav items, rendered either as an always-visiblepinned row () or as a collapsible section. controls the initial collapse state for non-pinned groups.
- score: 3
interface NavItem
- file: src/cores/cl/components/chartSideNavConstants.ts:35
- kind: interface
- core: cl
- spec: none
- summary: Shape of a single chart-tab nav entry. is the URL tab token, (when set) gates visibility through , and carries an optional unread / pending count rendered alongside thelabel.
- score: 3
interface NoteContext
- file: src/cores/cl/ai-documentation/lib/buildNoteContext.ts:56
- kind: interface
- core: cl
- spec: (none)
- summary: The deterministic, PHI-minimized context handed to the prompt builder.Key order is fixed for stable serialization / cache behavior.
- score: 2
interface NoteContextAssessment
- file: src/cores/cl/ai-documentation/lib/buildNoteContext.ts:28
- kind: interface
- core: cl
- spec: (none)
- summary: A recent assessment result, reduced to non-identifying scoring facts.
- score: 2
interface NoteContextEncounter
- file: src/cores/cl/ai-documentation/lib/buildNoteContext.ts:18
- kind: interface
- core: cl
- spec: (none)
- summary: Structured encounter facts the model may reference but must NOT invent.
- score: 2
interface NoteContextEncounterRow
- file: src/cores/cl/ai-documentation/lib/generateDraftHandler.ts:47
- kind: interface
- core: cl
- spec: (none)
- summary: The structured encounter facts loaded from the DB. These are AUTHORITATIVE —////always win over anything the model emits.
- score: 2
interface NoteContextInput
- file: src/cores/cl/ai-documentation/lib/buildNoteContext.ts:44
- kind: interface
- core: cl
- spec: (none)
- summary: Caller input. Extra/unknown keys (including any patient identifiers) aredeliberately ignored — only the fields enumerated here flow into the context.
- score: 2
interface NoteContextLastNote
- file: src/cores/cl/ai-documentation/lib/buildNoteContext.ts:35
- kind: interface
- core: cl
- spec: (none)
- summary: Narrative carry-forward from the last signed note (continuity of care).
- score: 2
interface NoteContextRows
- file: src/cores/cl/ai-documentation/lib/generateDraftHandler.ts:52
- kind: interface
- core: cl
- spec: (none)
- summary: The rows the handler assembles a PHI-minimized context from.
- score: 2
interface NoteFields
- file: src/cores/cl/ai-documentation/lib/mapDraftToNote.ts:35
- kind: interface
- core: cl
- spec: (none)
- summary: The merged progress-note field set written to .
- score: 2
interface NotePromptMessage
- file: src/cores/cl/ai-documentation/lib/buildNotePrompt.ts:26
- kind: interface
- core: cl
- spec: (none)
- summary: A provider message. Structurally assignable to the edge gateway’s (), kept local so this module haszero /Deno imports and runs under Vitest.
- score: 2
interface OrgTemplateBlock
- file: src/cores/cl/services/blocks/surfaceTemplateAdmin.ts:26
- kind: interface
- core: cl
- spec: (none)
- summary: An org-optional block composed onto a surface template.
- score: 2
type PermissibleBasisType
- file: src/cores/cl/lib/ds4p/ceem-exemption-profile.ts:42
- kind: type
- core: cl
- spec: (none)
- summary: Permissible legal basis for releasing a SUD-derived disclosure.
- score: 2
interface PersistHedisPeriodsInput
- file: src/cores/cl/services/hedisMeasurePersist.ts:47
- kind: interface
- core: cl
- spec: (none)
- summary: Input for a batch persist of the computed FUA/FUI set under one Measurement Year.
- score: 2
type PersistHedisPeriodsResult
- file: src/cores/cl/services/hedisMeasurePersist.ts:62
- kind: type
- core: cl
- spec: (none)
- summary: Result of a batch persist. Discriminated on so callers never see a rawSupabase error — failures surface only a sanitized, PHI-free string. Nopartial-success leakage: the first RPC error aborts and returns .
- score: 2
interface PersistMeasureResultInput
- file: src/cores/cl/services/qualityMeasureEngine.ts:42
- kind: interface
- core: cl
- spec: (none)
- summary: Input for one measure calculation persisted as an immutable snapshot.
- score: 2
type PersistMeasureResultResult
- file: src/cores/cl/services/qualityMeasureEngine.ts:61
- kind: type
- core: cl
- spec: (none)
- summary: Discriminated result: callers never see a raw Supabase error — failures surfaceonly a sanitized, PHI-free string.
- score: 2
interface Policy940Config
- file: src/cores/cl/shared/validation/policy940-config-types.ts:8
- kind: interface
- core: cl
- spec: (none)
- summary: Organization-level Policy 940 configuration
- score: 2
interface Policy940NoteContext
- file: src/cores/cl/shared/validation/validatePolicy940.ts:52
- kind: interface
- core: cl
- spec: (none)
- summary: Fields from the note/encounter context needed for validation
- score: 2
interface PrefilledResponse
- file: src/cores/cl/lib/outcomes/suprt-autopopulate.ts:51
- kind: interface
- core: cl
- spec: (none)
- summary: A prefilled SUPRT-A response sourced administratively from the chart.
- score: 2
type ProgressNoteStatus
- file: src/cores/cl/constants/status-variants.ts:73
- kind: type
- core: cl
- spec: CL-04
- summary: Lifecycle states for a clinical progress note. Drives signatureworkflows: → (awaiting signature) → →optional . / cover late edits, and marks a note retracted from the chart.
- score: 3
interface PsychotherapyNoteRow
- file: src/cores/cl/ai-documentation/lib/filterPsychotherapyNotes.ts:23
- kind: interface
- core: cl
- spec: (none)
- summary: Minimum shape a note row must expose for psychotherapy classification.Additional columns on the real DB row are ignored (whitelist approach).
- score: 2
interface PublishedDisclosure
- file: src/cores/cl/ai-documentation/lib/generateDraftHandler.ts:38
- kind: interface
- core: cl
- spec: (none)
- summary: A published-disclosure record (CL-65). ⇒ none ⇒ NOT published.
- score: 2
interface QualityCohortMemberInput
- file: src/cores/cl/services/qualityMeasureEngine.ts:27
- kind: interface
- core: cl
- spec: (none)
- summary: One patient’s population membership in a measure calculation (FR-3 snapshot row).
- score: 2
interface RawBlockRow
- file: src/cores/cl/services/blocks/blockDefinitionLoader.ts:23
- kind: interface
- core: cl
- spec: (none)
- summary: A raw row as selected by the loader.
- score: 2
interface ReassessmentWindowInput
- file: src/cores/cl/lib/outcomes/reassessment-window.ts:20
- kind: interface
- core: cl
- spec: (none)
- summary: Input for reassessment window calculations.
- score: 2
interface ReassessmentWindowOptions
- file: src/cores/cl/lib/outcomes/reassessment-window.ts:32
- kind: interface
- core: cl
- spec: (none)
- summary: Options controlling the window boundaries.
- score: 2
interface RecentChart
- file: src/cores/cl/hooks/useRecentCharts.ts:20
- kind: interface
- core: cl
- spec: (none)
- summary: The persisted shape. Intentionally minimal — no PHI. Display fields (name/MRN/initials)are resolved from at render time, never stored.
- score: 2
interface RecordSuprtAssessmentInput
- file: src/cores/cl/hooks/useOutcomeEpisodeMutation.ts:67
- kind: interface
- core: cl
- spec: (none)
- summary: Input for .
- score: 1
interface ReleaseAuthorization
- file: src/cores/cl/lib/ds4p/ceem-exemption-profile.ts:59
- kind: interface
- core: cl
- spec: (none)
- summary: Release authorization computed by CL-71 (CL-11 consent OR permissible basis).
- score: 2
type RequestFuaPayerExportResult
- file: src/cores/cl/services/fuaPayerExport.ts:38
- kind: type
- core: cl
- spec: (none)
- summary: Result of a payer-export request attempt. Discriminated on so callersnever see a raw Supabase error — failures (consent absent, payer disabled,cross-org chart, missing actor) surface only a sanitized, PHI-free string.
- score: 2
interface RequiredBlockView
- file: src/cores/cl/components/blocks/SurfaceTemplateBuilderView.tsx:43
- kind: interface
- core: cl
- spec: (none)
- summary: A required block shown locked in the builder (name resolved by the container).
- score: 2
interface ReviewFilters
- file: src/cores/cl/components/concurrent-reviews/ReviewFilterBar.tsx:20
- kind: interface
- core: cl
- spec: CL-43
- summary: Filter selections applied to the UM concurrent-review worklist. Currentlyonly carries the status filter; widens cleanly as more filter dimensions(assigned reviewer, due-date window) come online.
- score: 5
type RiskLevel
- file: src/cores/cl/constants/status-variants.ts:198
- kind: type
- core: cl
- spec: CL-07
- summary: Clinical risk severity level used by suicide-risk, violence-risk, andother CL safety-screening surfaces. requires immediateintervention (rendered destructive); is urgent; and are stratification bands; is the all-clear state.
- score: 3
type RiskTier
- file: src/cores/cl/utils/calculateRiskScore.ts:15
- kind: type
- core: cl
- spec: (none)
- summary: CL-35 T024 — composite risk score calculation.Pure utility. Computes a weighted-average risk score from up to fourcomponents (CL-07 safety, CL-10 outcome, CL-22 metabolic, CL-21 MOUD)and derives a tier (low/medium/high/critical) using configurablethresholds. Per spec FR-1 + 42 CFR Part 2: - When MOUD is missing OR , the MOUD weight is redistributed proportionally across the remaining components so total weight stays 1.0. - reports which components actually contributed.
- score: 2
interface RTPBCheckResult
- file: src/cores/cl/services/rtpb.ts:18
- kind: interface
- core: cl
- spec: (none)
- summary: CL-06: Real-Time Prescription Benefit (RTPB) stub service.IMPORTANT: This is a STUB for UI development — it returns fixed demo valuesand performs no network call. RTPB is a benefit/formulary lookup and isindependent of the e-prescribing transmit path.E-prescribing itself (both controlled EPCS and non-controlled) is handled byWENO ComposeRx (CL-06-EN-23) — see . The legacySurescripts direct-transmit stub was removed(#1966); there is no longer a separate transmit vendor in this codebase.A production RTPB integration would call a real benefit vendor’s RTPB APIwith NCPDP SCRIPT formatting; no PHI is sent (only medication name + org idare used for the lookup).
- score: 2
interface SecurityLabelInput
- file: src/cores/cl/lib/ds4p/security-labels.ts:44
- kind: interface
- core: cl
- spec: (none)
- summary: Inputs to .
- score: 1
type SmallCellResult
- file: src/cores/cl/utils/smallCellSuppression.ts:11
- kind: type
- core: cl
- spec: (none)
- summary: CL-35 T043: Small-cell suppression utility.Per spec / 42 CFR Part 2 + HIPAA Safe Harbor: any aggregate cell withfewer than 5 individuals must be redacted to to preventre-identification of small populations on supervisor dashboards andexported VBP reports. Negative inputs are defensively treated assuppressed.
- score: 2
interface StartClinicalDraftVars
- file: src/cores/cl/hooks/cl-agent-draft-types.ts:48
- kind: interface
- core: cl
- spec: (none)
- summary: Variables passed to useStartClinicalDraft at mutation-call time.
- score: 2
interface StatusDescriptor
- file: src/cores/cl/constants/status-variants.ts:32
- kind: interface
- core: cl
- spec: none
- summary: Render configuration for a single status value. Combines the semanticBadge variant, the user-facing label (Title Case), and optional dotindicator (and dot color override) into one record so the entire statuspresentation can be looked up with rather thanscattering ternaries across components.
- score: 3
type StatusVariant
- file: src/cores/cl/constants/status-variants.ts:21
- kind: type
- core: cl
- spec: (none)
- summary: Subset of Badge variants permitted for status display.
- score: 2
interface StructuredFacts
- file: src/cores/cl/ai-documentation/lib/mapDraftToNote.ts:26
- kind: interface
- core: cl
- spec: (none)
- summary: Authoritative structured facts echoed from the encounter — never AI-generated.
- score: 2
interface SuiteContext
- file: src/cores/cl/hooks/blocks/useSuicideSuite.ts:44
- kind: interface
- core: cl
- spec: (none)
- summary: The resolved suite context surfaced to the suite UI.
- score: 2
interface SuiteContextInput
- file: src/cores/cl/hooks/blocks/useSuicideSuite.ts:37
- kind: interface
- core: cl
- spec: (none)
- summary: Inputs to the pure suite-context derivation.
- score: 2
interface SuprtItem
- file: src/cores/cl/lib/outcomes/suprt-autopopulate.ts:13
- kind: interface
- core: cl
- spec: (none)
- summary: A flattened SUPRT instrument item, derived from .
- score: 2
interface SuprtResponseInput
- file: src/cores/cl/hooks/useOutcomeEpisodeMutation.ts:59
- kind: interface
- core: cl
- spec: (none)
- summary: A single SUPRT/NOMs response to record.
- score: 2
interface SurfaceTemplateBuilderViewProps
- file: src/cores/cl/components/blocks/SurfaceTemplateBuilderView.tsx:50
- kind: interface
- core: cl
- spec: (none)
- summary: Props for .
- score: 1
type TraumaInstrumentCode
- file: src/cores/cl/constants/instruments.ts:17
- kind: type
- core: cl
- spec: CL-02
- summary: Union of supported trauma-informed assessment instrument codes(PCL-5, ACE-10, LEC-5, BTQ). Used as the discriminator acrossisTrauma-style checks, consent gating, scoring dispatch, and auditpayloads so trauma content can be routed through the appropriate PHIhandling pathway.
- score: 3
type TreatmentPlanStatus
- file: src/cores/cl/constants/status-variants.ts:96
- kind: type
- core: cl
- spec: CL-03
- summary: Lifecycle states for a treatment plan. is in-progress; is the current working version; is the clinician-attested version that satisfies regulatory requirements; is an older signed version replaced by a newer revision; is the cold terminal state.
- score: 3
interface UpdateCLAISettingsPayload
- file: src/cores/cl/ai-documentation/hooks/useCLAISettings.ts:48
- kind: interface
- core: cl
- spec: (none)
- summary: Payload for updating AI settings
- score: 2
interface UseCohortListOptions
- file: src/cores/cl/hooks/cohorts/useCohortList.ts:29
- kind: interface
- core: cl
- spec: CL-54
- summary: Options bag for : 1-indexed page, page size, andthe filter set. All fields are optional with sensible defaults(page 1, 25 per page, no filters).
- score: 3
interface UseSurfaceDocumentationCompletenessArgs
- file: src/cores/cl/hooks/completeness/useSurfaceDocumentationCompleteness.ts:17
- kind: interface
- core: cl
- spec: (none)
- summary: Arguments for : the encounter/surface to score.
- score: 2
interface WenoCredStatus
- file: src/cores/cl/services/wenoCredentials.ts:47
- kind: interface
- core: cl
- spec: (none)
- summary: Configured-status flags (never returns secret values).
- score: 2
interface ZCodeSelection
- file: src/cores/cl/components/ZCodeSelectorDialog.tsx:29
- kind: interface
- core: cl
- spec: CL-18
- summary: Selection returned by when the user picks aZ-code. Carries the ICD-10-CM code (– SDOH range) and itsdescription so the caller can persist both without a second lookup.
- score: 5
Hooks
hook useAccountingOfDisclosures
- file: src/cores/cl/hooks/useDisclosureLog.ts:59
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch disclosures for accounting of disclosures report, optionally filtered by date range.
- score: 4
hook useActivateAssessmentTemplate
- file: src/cores/cl/hooks/useAssessmentTemplateMutation.ts:87
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for activating a template (archives the currently active one for the same assessment_type).
- score: 1
hook useActivateOrderSet
- file: src/cores/cl/hooks/useOrderSetActivation.ts:69
- kind: hook
- core: cl
- spec: (none)
- summary: Activate an order set template for a patient/chart. Performs client-sidefan-out into cl_medications and cl_orders, then writes the activation rowwith a record of every created downstream object. Best-effort: if adownstream insert fails the activation row is still written so theclinician sees what landed and can retry the rest.
- score: 4
hook useActiveAccreditationOverlays
- file: src/cores/cl/hooks/blocks/useActiveAccreditationOverlays.ts:71
- kind: hook
- core: cl
- spec: (none)
- summary: React Query hook for the org’s active accreditation overlay-tag set (fail-closed to empty).
- score: 4
hook useActiveSafetyPlan
- file: src/cores/cl/hooks/useSafetyPlans.ts:65
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch the single active safety plan for a chart (most recent active version).Returns null if no active plan exists.
- score: 4
hook useAddOrgBlock
- file: src/cores/cl/hooks/blocks/useSurfaceTemplateAdmin.ts:67
- kind: hook
- core: cl
- spec: (none)
- summary: Add an org-optional block to a surface.
- score: 4
hook useAddParticipant
- file: src/cores/cl/hooks/useMultiPartyEncounters.ts:219
- kind: hook
- core: cl
- spec: (none)
- summary: Adds a participant to a multi-party encounter.Pre-migration: throws error (table does not exist yet).
- score: 4
hook useAddTreatmentPlanSignature
- file: src/cores/cl/hooks/useTreatmentPlanSignatureMutation.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing add treatment plan signature.
- score: 1
hook useAftercarePlanDetail
- file: src/cores/cl/hooks/useAftercarePlans.ts:54
- kind: hook
- core: cl
- spec: (none)
- summary: Provides aftercare plan detail queries and mutation actions scoped to the current organization.
- score: 4
hook useAftercarePlansByChart
- file: src/cores/cl/hooks/useAftercarePlans.ts:26
- kind: hook
- core: cl
- spec: (none)
- summary: Provides aftercare plans by chart queries and mutation actions scoped to the current organization.
- score: 4
hook useAgentClinicalDraft
- file: src/cores/cl/hooks/useAgentClinicalDraft.ts:159
- kind: hook
- core: cl
- spec: (none)
- summary: Composite hook: orchestrates the full agentic clinical-note draft workflow.Returns: - — mutation to kick off the agent run (action:‘start’). - — mutation to verify + governed-write the draft (action:‘execute’). - — re-exposed from useProgressNoteMutation for the clinician’s separate finalize step. The hook/agent NEVER calls this internally (AC-8). is captured at hook-call time so can close over it (mirrorsthe useStartIntakeRun pattern in useIntakeAgent.ts). CL-36-EN-03 AC-8
- score: 4
hook useAIDocumentationSessionQuery
- file: src/cores/cl/ai-documentation/hooks/useAIDocumentationSession.ts:23
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches the active AI documentation session for a given note.
- score: 4
hook useAllergiesByChart
- file: src/cores/cl/hooks/useAllergies.ts:12
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing allergies by chart.
- score: 1
hook useAllOrderTemplates
- file: src/cores/cl/hooks/useAllOrderTemplates.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing all order templates.
- score: 1
hook useAllReferenceLabs
- file: src/cores/cl/hooks/useAllReferenceLabs.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing all reference labs.
- score: 1
hook useAmbientSessionDetail
- file: src/cores/cl/ai-documentation/hooks/useAmbientSession.ts:72
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches a single ambient session by ID.
- score: 4
hook useAmbientSessionEvents
- file: src/cores/cl/ai-documentation/hooks/useAmbientSession.ts:212
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches audit events for a specific ambient session.
- score: 4
hook useAmbientSessions
- file: src/cores/cl/ai-documentation/hooks/useAmbientSession.ts:29
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches ambient sessions for the review queue with optional filters.
- score: 4
hook useAmbientTranscript
- file: src/cores/cl/ai-documentation/hooks/useAmbientTranscript.ts:20
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches the transcript for a given ambient session.Returns null if no transcript exists yet (still processing).
- score: 4
hook useAnomalyFlags
- file: src/cores/cl/hooks/useAnomalyFlags.ts:23
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches anomaly detection flags from the cl_aggregate_anomaly_flags RPC.
- score: 4
hook useApproveAmbientSession
- file: src/cores/cl/ai-documentation/hooks/useAmbientSession.ts:155
- kind: hook
- core: cl
- spec: (none)
- summary: Approves a draft-ready ambient session (transitions to ‘approved’).
- score: 4
hook useApproveClinicalDraft
- file: src/cores/cl/hooks/useAgentClinicalDraft.ts:95
- kind: hook
- core: cl
- spec: (none)
- summary: Approve a clinical draft: 1. Human verify (draft → verified): calls — this is the PF-128 lifecycle transition and requires no token from the client. 2. Governed write via the edge function’s dispatch (Option B): the edge function performs the server-side gate→approve→consume→governed-write sequence (PF-30 capability token + PF-126 grant token consumed server-side). The handler is a D-01 follow-up; the hook is token-free now.Mirrors from . CL-36-EN-03 AC-3 (verify before write) AC-5 (dual-signoff) AC-6 (token never on client) PF-30
- score: 4
hook useApproveGeneration
- file: src/cores/cl/hooks/useGroupEncounterGenerations.ts:98
- kind: hook
- core: cl
- spec: (none)
- summary: Approves a single generation record.
- score: 4
hook useArcosReportData
- file: src/cores/cl/hooks/useArcosExport.ts:29
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing arcos report data.
- score: 1
hook useAssessmentDetail
- file: src/cores/cl/hooks/useAssessmentDetail.ts:12
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing assessment detail.
- score: 1
hook useAssessmentInstruments
- file: src/cores/cl/hooks/useAssessmentInstruments.ts:12
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing assessment instruments.
- score: 1
hook useAssessmentList
- file: src/cores/cl/hooks/useAssessmentList.ts:17
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing assessment list.
- score: 1
hook useAssessmentMergedTemplate
- file: src/cores/cl/hooks/useAssessmentMergedTemplate.ts:22
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches the active template for the given assessment type and mergesjurisdiction-required elements with template sections.
- params:
- assessmentType — The assessment type (e.g. ‘comprehensive’)
- requiredElements — Jurisdiction-required section codes (from useClinicalRules or similar)
- score: 4
hook useAssessmentPdf
- file: src/cores/cl/hooks/useAssessmentPdf.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing assessment pdf.
- score: 1
hook useAssessmentsByChart
- file: src/cores/cl/hooks/useAssessmentsByChart.ts:12
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing assessments by chart.
- score: 1
hook useAssessmentSections
- file: src/cores/cl/hooks/useAssessmentSections.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing assessment sections.
- score: 1
hook useAssessmentTemplateDetail
- file: src/cores/cl/hooks/useAssessmentTemplateDetail.ts:14
- kind: hook
- core: cl
- spec: (none)
- summary: Hook to fetch a single assessment template by ID, including its sections.
- score: 4
hook useAssessmentTemplateList
- file: src/cores/cl/hooks/useAssessmentTemplateList.ts:14
- kind: hook
- core: cl
- spec: (none)
- summary: Hook to fetch the list of assessment templates, optionally filtered by assessment type.
- score: 4
hook useAssignInbasketItem
- file: src/cores/cl/hooks/useInbasketItemMutation.ts:70
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing assign inbasket item.
- score: 1
hook useAttestAISession
- file: src/cores/cl/ai-documentation/hooks/useAIDocumentationSession.ts:150
- kind: hook
- core: cl
- spec: (none)
- summary: Records clinician attestation on an AI documentation session.
- score: 4
hook useAuditViewerQuery
- file: src/cores/cl/hooks/useAuditViewerQuery.ts:26
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches clinical audit log entries from pf_audit_logs.
- score: 4
hook useAuthorizationContext
- file: src/cores/cl/hooks/useAuthorizationContext.ts:24
- kind: hook
- core: cl
- spec: (none)
- summary: Returns authorization context for a review. Fail-soft when unavailable.
- score: 4
hook useAvailableClinicalBlocks
- file: src/cores/cl/hooks/blocks/useSurfaceTemplateAdmin.ts:54
- kind: hook
- core: cl
- spec: (none)
- summary: The active clinical blocks the org can add (platform is_system + org-owned).
- score: 4
hook useBetweenSessionCheckins
- file: src/cores/cl/hooks/useBetweenSessionCheckins.ts:21
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing between session checkins.
- score: 1
hook useBillingOverrideRulesMutation
- file: src/cores/cl/hooks/useBillingOverrideRulesMutation.ts:21
- kind: hook
- core: cl
- spec: (none)
- summary: Hook providing CRUD mutations for billing override rules.
- score: 4
hook useBiometricsList
- file: src/cores/cl/hooks/useBiometricsList.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing biometrics list.
- score: 1
hook useBiometricsMutation
- file: src/cores/cl/hooks/useBiometricsMutation.ts:19
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing biometrics mutation.
- score: 1
hook useBreakGlassQueue
- file: src/cores/cl/hooks/useBreakGlassQueue.ts:31
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches break-glass PHI access events with review status and SLA tracking.
- score: 4
hook useBreakGlassRecord
- file: src/cores/cl/hooks/useBreakGlassRecord.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing break glass record.
- score: 1
hook useBreakGlassReviewMutation
- file: src/cores/cl/hooks/useBreakGlassReviewMutation.ts:20
- kind: hook
- core: cl
- spec: (none)
- summary: Mutation hook for submitting a break-glass review.
- score: 4
hook useBulkApproveGenerations
- file: src/cores/cl/hooks/useGroupEncounterGenerations.ts:173
- kind: hook
- core: cl
- spec: (none)
- summary: Bulk approves multiple generation records.
- score: 4
hook useBulkCosign
- file: src/cores/cl/hooks/useBulkCosign.ts:25
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing bulk cosign.
- score: 1
hook useCancelAmbientSession
- file: src/cores/cl/ai-documentation/hooks/useAmbientSession.ts:184
- kind: hook
- core: cl
- spec: (none)
- summary: Cancels an ambient session.
- score: 1
hook useCaptureConsentSignature
- file: src/cores/cl/hooks/useConsents.ts:187
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for capturing a patient signature on a consent (#2009).Writes the decisive timestamp — the gate that and other 42 CFR Part 2 features check — plus an optional and a audit record. The guard makes this a one-time capture: analready-signed consent is not silently re-stamped/backdated.
- score: 1
hook useCaptureTelehealthConsent
- file: src/cores/cl/hooks/useTelehealthConsents.ts:66
- kind: hook
- core: cl
- spec: (none)
- summary: Capture a new telehealth consent on a chart.
- returns: A whose input omits server-derived fields (, , , ) — they are filled from + and rejected if either is missing. Invalidates the subtree on success.
- score: 4
hook useCareGapClose
- file: src/cores/cl/hooks/useCareGapClose.ts:22
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing care gap close.
- score: 1
hook useCareGapDetail
- file: src/cores/cl/hooks/useCareGapDetail.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing care gap detail.
- score: 1
hook useCareGapList
- file: src/cores/cl/hooks/useCareGapList.ts:30
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing care gap list.
- score: 1
hook useCareTeamsByChart
- file: src/cores/cl/hooks/useCareTeams.ts:31
- kind: hook
- core: cl
- spec: (none)
- summary: Provides care teams by chart queries and mutation actions scoped to the current organization.
- score: 4
hook useCdsAlertAnalytics
- file: src/cores/cl/hooks/useCdsAlertAnalytics.ts:53
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing cds alert analytics.
- score: 1
hook useCdsAlertMutation
- file: src/cores/cl/hooks/useCdsAlertMutation.ts:17
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing cds alert mutation.
- score: 1
hook useCdsAlertsForChart
- file: src/cores/cl/hooks/useCdsAlerts.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing cds alerts for chart.
- score: 1
hook useCdsLabMonitoring
- file: src/cores/cl/hooks/useCdsLabMonitoring.ts:27
- kind: hook
- core: cl
- spec: (none)
- summary: Hook to evaluate lab monitoring needs on chart open.Returns a function that checks medications and generates alerts for overdue labs.
- score: 4
hook useCdsRationaleEnabled
- file: src/cores/cl/hooks/useCdsRationale.ts:37
- kind: hook
- core: cl
- spec: (none)
- summary: Fail-closed gate: resolves whether the org has a published DSIdisclosure. Returns while loading or when none is published, so the”Explain this alert” affordance stays hidden until disclosure is published.
- score: 4
hook useCdsRuleDetail
- file: src/cores/cl/hooks/useCdsRules.ts:40
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing cds rule detail.
- score: 1
hook useCdsRuleMutation
- file: src/cores/cl/hooks/useCdsRuleMutation.ts:17
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing cds rule mutation.
- score: 1
hook useCdsRulesList
- file: src/cores/cl/hooks/useCdsRules.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing cds rules list.
- score: 1
hook useChartDetail
- file: src/cores/cl/hooks/useChartDetail.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing chart detail.
- score: 1
hook useChartLabResults
- file: src/cores/cl/hooks/useLabResults.ts:40
- kind: hook
- core: cl
- spec: (none)
- summary: All results for a chart, optionally filtered by LOINC code
- score: 4
hook useChartList
- file: src/cores/cl/hooks/useChartList.ts:37
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing chart list.
- score: 1
hook useChartPatientAddresses
- file: src/cores/cl/hooks/useChartPatientAddresses.ts:25
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch the patient’s non-deleted addresses, primary first.
- score: 4
hook useChartsByIds
- file: src/cores/cl/hooks/useChartsByIds.ts:44
- kind: hook
- core: cl
- spec: (none)
- summary: Resolve display identity (name/MRN/initials) for a batch of chart ids.Filters by and so RLS scopes the read tocharts the current user may access. Uses the same join shape as / useChartList. Returns the resolved identities in the sameorder as the input (charts the user can no longer access are omitted).
- params:
- chartIds — Chart ids to resolve (e.g. the recent-charts list).
- score: 4
hook useChartSummaryAvailability
- file: src/cores/cl/ai-documentation/hooks/useChartSummaryAvailability.ts:65
- kind: hook
- core: cl
- spec: (none)
- summary: Gate hook for the AI chart-summary affordance. Returns a fail-closed snapshot for the given chart.
- score: 4
hook useCLAISettings
- file: src/cores/cl/ai-documentation/hooks/useCLAISettings.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Reads the AI documentation settings slice from cl_module_settings.
- score: 4
hook useCLAISettingsUpsert
- file: src/cores/cl/ai-documentation/hooks/useCLAISettings.ts:58
- kind: hook
- core: cl
- spec: (none)
- summary: Mutation to upsert AI documentation settings slice.
- score: 4
hook useClinicalStandingOrders
- file: src/cores/cl/hooks/useClinicalStandingOrders.ts:24
- kind: hook
- core: cl
- spec: (none)
- summary: List clinical standing orders for the current organization.
- score: 4
hook useClinicalSummaryPdf
- file: src/cores/cl/hooks/useClinicalSummaryPdf.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing clinical summary pdf.
- score: 1
hook useClinicianPanelSummary
- file: src/cores/cl/hooks/useClinicianPanelSummary.ts:30
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch + aggregate panel data for supervisors. Single query per source table,grouped client-side; suitable for org-scale panels (≤ a few thousand charts).
- score: 4
hook useClModuleSettings
- file: src/cores/cl/hooks/useClModuleSettings.ts:12
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing cl module settings.
- score: 1
hook useClModuleSettingsUpsert
- file: src/cores/cl/hooks/useClModuleSettingsUpsert.ts:19
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing cl module settings upsert.
- score: 1
hook useCohortDetail
- file: src/cores/cl/hooks/cohorts/useCohortDetail.ts:41
- kind: hook
- core: cl
- spec: CL-54
- summary: TanStack Query hook that fetches a single row plusthe full immutable version history of its definitions and resolves the”current” definition by . Gated on the currentorganization so cross-tenant access is impossible.
- params:
- cohortId — The cohort id to load; keeps the query disabled.
- returns: A result whose is . is returned when the cohort is not found in the current organization.
- score: 5
hook useCohortMembershipSnapshot
- file: src/cores/cl/hooks/cohorts/useCohortMembership.ts:38
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch a stored snapshot — used by CE/PM consumers for outreach + reporting.If is omitted, returns the most recent snapshot for the cohort.
- score: 4
hook useCompleteChecklist
- file: src/cores/cl/hooks/useDischargeChecklists.ts:145
- kind: hook
- core: cl
- spec: (none)
- summary: Provides complete checklist queries and mutation actions scoped to the current organization.
- score: 4
hook useCompleteGroupSession
- file: src/cores/cl/hooks/useGroupSessions.ts:235
- kind: hook
- core: cl
- spec: (none)
- summary: Provides complete group session queries and mutation actions scoped to the current organization.
- score: 4
hook useComplianceStats
- file: src/cores/cl/hooks/useComplianceStats.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing compliance stats.
- score: 1
hook useConcurrentReview
- file: src/cores/cl/hooks/useConcurrentReviews.ts:61
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for a single concurrent review by id, scoped to the active organization.
- score: 1
hook useConcurrentReviews
- file: src/cores/cl/hooks/useConcurrentReviews.ts:25
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for fetching the concurrent review worklist for the active organization.
- score: 1
hook useConcurrentReviewsRealtime
- file: src/cores/cl/hooks/useConcurrentReviewsRealtime.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Subscribes to concurrent-review table changes and refreshes UM query caches.
- score: 4
hook useConsentComplianceData
- file: src/cores/cl/hooks/useConsentComplianceData.ts:27
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches consent compliance data with expiration bucketing.
- score: 4
hook useConsentDocumentPdf
- file: src/cores/cl/hooks/useConsentDocumentPdf.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing consent document pdf.
- score: 1
hook useConsentRequest
- file: src/cores/cl/hooks/useConsentRequest.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing consent request.
- score: 1
hook useConsentsByChart
- file: src/cores/cl/hooks/useConsents.ts:35
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch all non-deleted consents for a chart, newest effective_date first.
- score: 4
hook useConsentsExpiringInDays
- file: src/cores/cl/hooks/useConsentsExpiringInDays.ts:19
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch consents expiring within the next days.Excludes consents with no expiration_date, revoked, or soft-deleted.
- score: 4
hook useConsentStatusForChart
- file: src/cores/cl/hooks/useCODProgressNote.ts:41
- kind: hook
- core: cl
- spec: (none)
- summary: Thin wrapper over CL-11 consent check for SUD content.
- score: 4
hook useCosignDdiOverride
- file: src/cores/cl/hooks/useDdiOverrides.ts:109
- kind: hook
- core: cl
- spec: (none)
- summary: Co-signs a DDI override (for contraindicated severity).
- score: 4
hook useCosignIntakeAssessment
- file: src/cores/cl/hooks/useIntakeAssessmentMutation.ts:183
- kind: hook
- core: cl
- spec: (none)
- summary: Co-signs a pending_cosign intake assessment: transitions to finalized,records cosigning clinician and timestamp.
- score: 4
hook useCreate988Transfer
- file: src/cores/cl/hooks/use988Transfers.ts:48
- kind: hook
- core: cl
- spec: (none)
- summary: Provides create988 transfer queries and mutation actions scoped to the current organization.
- score: 4
hook useCreateAdherence
- file: src/cores/cl/hooks/useMedicationAdherence.ts:76
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create adherence.
- score: 1
hook useCreateAftercarePlan
- file: src/cores/cl/hooks/useAftercarePlans.ts:84
- kind: hook
- core: cl
- spec: (none)
- summary: Provides create aftercare plan queries and mutation actions scoped to the current organization.
- score: 4
hook useCreateAllergy
- file: src/cores/cl/hooks/useAllergyMutation.ts:15
- kind: hook
- core: cl
- spec: (none)
- summary: Provides create allergy queries and mutation actions scoped to the current organization.
- score: 4
hook useCreateAssessment
- file: src/cores/cl/hooks/useAssessmentMutation.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create assessment.
- score: 1
hook useCreateAssessmentTemplate
- file: src/cores/cl/hooks/useAssessmentTemplateMutation.ts:17
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for creating a new assessment template.
- score: 1
hook useCreateBetweenSessionCheckin
- file: src/cores/cl/hooks/useBetweenSessionCheckins.ts:61
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create between session checkin.
- score: 1
hook useCreateCareTeamMember
- file: src/cores/cl/hooks/useCareTeams.ts:63
- kind: hook
- core: cl
- spec: (none)
- summary: Provides create care team member queries and mutation actions scoped to the current organization.
- score: 4
hook useCreateClinicalStandingOrder
- file: src/cores/cl/hooks/useClinicalStandingOrders.ts:57
- kind: hook
- core: cl
- spec: (none)
- summary: Create a clinical standing order.
- score: 4
hook useCreateConcurrentReview
- file: src/cores/cl/hooks/useConcurrentReviewMutation.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Create a new concurrent review scoped to the active organization.
- score: 4
hook useCreateConsent
- file: src/cores/cl/hooks/useConsents.ts:65
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create consent.
- score: 1
hook useCreateDdiOverride
- file: src/cores/cl/hooks/useDdiOverrides.ts:63
- kind: hook
- core: cl
- spec: (none)
- summary: Creates a DDI override record.
- score: 4
hook useCreateDdiSuppression
- file: src/cores/cl/hooks/useDdiAlertSuppressions.ts:53
- kind: hook
- core: cl
- spec: (none)
- summary: Creates a minor DDI alert suppression for the current provider.
- score: 4
hook useCreateDesignatedContact
- file: src/cores/cl/hooks/useFamilyNotifications.ts:59
- kind: hook
- core: cl
- spec: (none)
- summary: Provides create designated contact queries and mutation actions scoped to the current organization.
- score: 4
hook useCreateDiagnosis
- file: src/cores/cl/hooks/useDiagnoses.ts:88
- kind: hook
- core: cl
- spec: (none)
- summary: Creates a new diagnosis with organization_id defense-in-depth.Publishes cl_diagnosis_confirmed event for downstream billing.
- score: 4
hook useCreateDisclosureLog
- file: src/cores/cl/hooks/useDisclosureLog.ts:97
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create disclosure log.
- score: 1
hook useCreateEducation
- file: src/cores/cl/hooks/useMedicationEducation.ts:78
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create education.
- score: 1
hook useCreateElectronicConsent
- file: src/cores/cl/hooks/useElectronicConsentMutation.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Create a new electronic consent (draft or active).
- score: 4
hook useCreateEnvironmentalAssessment
- file: src/cores/cl/hooks/useEnvironmentalAssessments.ts:97
- kind: hook
- core: cl
- spec: (none)
- summary: Create a new environmental assessment.chart_id is optional — may be set when opened from a patient chart context.
- score: 4
hook useCreateFollowUpContact
- file: src/cores/cl/hooks/useFollowUpContacts.ts:87
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create follow up contact.
- score: 1
hook useCreateGroupAttendance
- file: src/cores/cl/hooks/useGroupAttendance.ts:62
- kind: hook
- core: cl
- spec: (none)
- summary: Provides create group attendance queries and mutation actions scoped to the current organization.
- score: 4
hook useCreateGroupCurriculum
- file: src/cores/cl/hooks/useGroupCurricula.ts:55
- kind: hook
- core: cl
- spec: (none)
- summary: Provides create group curriculum queries and mutation actions scoped to the current organization.
- score: 4
hook useCreateGroupSession
- file: src/cores/cl/hooks/useGroupSessions.ts:99
- kind: hook
- core: cl
- spec: (none)
- summary: Provides create group session queries and mutation actions scoped to the current organization.
- score: 4
hook useCreateIncident
- file: src/cores/cl/hooks/useIncidents.ts:95
- kind: hook
- core: cl
- spec: (none)
- summary: Provides create incident queries and mutation actions scoped to the current organization.
- score: 4
hook useCreateIntakeAssessment
- file: src/cores/cl/hooks/useIntakeAssessmentMutation.ts:33
- kind: hook
- core: cl
- spec: (none)
- summary: Creates a new intake assessment in draft status.
- score: 4
hook useCreateInterpretation
- file: src/cores/cl/hooks/useUdsResults.ts:204
- kind: hook
- core: cl
- spec: (none)
- summary: Create an interpretation note for a UDS order.
- score: 4
hook useCreateInventoryTransaction
- file: src/cores/cl/hooks/useControlledSubstanceInventory.ts:78
- kind: hook
- core: cl
- spec: (none)
- summary: Provides create inventory transaction queries and mutation actions scoped to the current organization.
- score: 4
hook useCreateLethalMeansAssessment
- file: src/cores/cl/hooks/useCreateLethalMeansAssessment.ts:19
- kind: hook
- core: cl
- spec: (none)
- summary: Create a new lethal means assessment.
- score: 4
hook useCreateMultiPartyEncounter
- file: src/cores/cl/hooks/useMultiPartyEncounters.ts:106
- kind: hook
- core: cl
- spec: (none)
- summary: Creates a new multi-party encounter.Pre-migration: throws error (table does not exist yet).
- score: 4
hook useCreateNewSafetyPlanVersion
- file: src/cores/cl/hooks/useSafetyPlans.ts:185
- kind: hook
- core: cl
- spec: (none)
- summary: Supersede the current active safety plan and create a new version.Steps (sequential, not a DB transaction — RLS prevents cross-org writes): 1. INSERT new plan with version = prev.version + 1, status = ‘active’ 2. UPDATE old plan: status = ‘superseded’, superseded_by = new plan’s ID
- score: 4
hook useCreateOrderSetTemplate
- file: src/cores/cl/hooks/useOrderSetTemplates.ts:67
- kind: hook
- core: cl
- spec: (none)
- summary: Create a new order set template (defaults to draft).
- score: 4
hook useCreateOutcomeMeasure
- file: src/cores/cl/hooks/useOutcomeMeasureMutation.ts:24
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create outcome measure.
- score: 1
hook useCreatePatientSubmission
- file: src/cores/cl/hooks/usePatientSubmissionMutation.ts:34
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create patient submission.
- score: 1
hook useCreatePeerEncounter
- file: src/cores/cl/hooks/usePeerEncounters.ts:76
- kind: hook
- core: cl
- spec: (none)
- summary: Creates a new peer encounter record with organization_id defense-in-depth.
- score: 4
hook useCreatePeerSupervision
- file: src/cores/cl/hooks/usePeerSupervision.ts:68
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create peer supervision.
- score: 1
hook useCreateProblem
- file: src/cores/cl/hooks/useProblemMutation.ts:15
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create problem.
- score: 1
hook useCreateReadmissionRisk
- file: src/cores/cl/hooks/useReadmissionRisk.ts:56
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create readmission risk.
- score: 1
hook useCreateReferenceRange
- file: src/cores/cl/hooks/useReferenceRangeMutations.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create reference range.
- score: 1
hook useCreateReferralStatus
- file: src/cores/cl/hooks/useReferralStatusMutation.ts:25
- kind: hook
- core: cl
- spec: (none)
- summary: Insert-only mutation for appending a referral status history entry.Automatically sets organization_id and created_by from context.
- score: 4
hook useCreateReportDefinition
- file: src/cores/cl/hooks/useReportDefinitions.ts:92
- kind: hook
- core: cl
- spec: (none)
- summary: Creates a report definition and auto-populates tenant and creator fields.
- score: 4
hook useCreateReviewAppeal
- file: src/cores/cl/hooks/useReviewAppeals.ts:42
- kind: hook
- core: cl
- spec: (none)
- summary: Create a review appeal.
- score: 1
hook useCreateReviewSchedule
- file: src/cores/cl/hooks/useReviewSchedules.ts:39
- kind: hook
- core: cl
- spec: (none)
- summary: Create a review schedule (admin only — DB enforces).
- score: 4
hook useCreateRiskScreening
- file: src/cores/cl/hooks/useRiskScreenings.ts:100
- kind: hook
- core: cl
- spec: (none)
- summary: Create a new risk screening.Automatically:1. Computes next_screening_due via calculateNextScreeningDue.2. On high/imminent risk: publishes PF-10 alert via notifyHighRiskScreening.3. Invalidates chart detail query so the risk badge refreshes (DB trigger updates cl_patient_charts.current_risk_level immediately on INSERT).SAFE-T note: score must be null for SAFE-T instrument (enforced at call site / form validation).
- score: 4
hook useCreateSafetyPlan
- file: src/cores/cl/hooks/useSafetyPlans.ts:98
- kind: hook
- core: cl
- spec: (none)
- summary: Create a new safety plan (version 1, status = ‘active’).If a plan already exists for this chart, use useCreateNewSafetyPlanVersion instead.
- score: 4
hook useCreateSafetyPlanShare
- file: src/cores/cl/hooks/useCreateSafetyPlanShare.ts:23
- kind: hook
- core: cl
- spec: (none)
- summary: Create a new safety plan share record.Consent check and emergency override are handled at the UI layer(SafetyPlanShareDialog) before calling this mutation. This hookperforms the database insert only.
- score: 4
hook useCreateSdohScreening
- file: src/cores/cl/hooks/useSdohScreenings.ts:60
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create sdoh screening.
- score: 1
hook useCreateSocialReferral
- file: src/cores/cl/hooks/useSocialReferrals.ts:61
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create social referral.
- score: 1
hook useCreateStandingOrderProtocol
- file: src/cores/cl/hooks/useStandingOrderMutations.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Provides create standing order protocol queries and mutation actions scoped to the current organization.
- score: 4
hook useCreateTelehealthMetadata
- file: src/cores/cl/hooks/useVirtualGroupSessions.ts:96
- kind: hook
- core: cl
- spec: (none)
- summary: Creates telehealth metadata for a group session.Requires cl_group_session_telehealth_metadata table (post-migration).Currently a placeholder that stores metadata as custom_fields on the session.
- score: 4
hook useCreateTransition
- file: src/cores/cl/hooks/useTransitions.ts:94
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create transition.
- score: 1
hook useCreateTreatmentGoal
- file: src/cores/cl/hooks/useTreatmentGoalMutations.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create treatment goal.
- score: 1
hook useCreateTreatmentIntervention
- file: src/cores/cl/hooks/useTreatmentInterventionMutations.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create treatment intervention.
- score: 1
hook useCreateTreatmentPlan
- file: src/cores/cl/hooks/useTreatmentPlanMutations.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create treatment plan.
- score: 1
hook useCreateUdsOrder
- file: src/cores/cl/hooks/useUdsOrders.ts:95
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create uds order.
- score: 1
hook useCreateUdsResult
- file: src/cores/cl/hooks/useUdsResults.ts:66
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create uds result.
- score: 1
hook useCreateWarmHandoff
- file: src/cores/cl/hooks/useWarmHandoffs.ts:63
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing create warm handoff.
- score: 1
hook useDdiAlertSuppressions
- file: src/cores/cl/hooks/useDdiAlertSuppressions.ts:19
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches active DDI alert suppressions for the current provider.
- score: 4
hook useDdiOverrides
- file: src/cores/cl/hooks/useDdiOverrides.ts:24
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches active DDI overrides for a chart.
- score: 4
hook useDeleteClinicalStandingOrder
- file: src/cores/cl/hooks/useClinicalStandingOrders.ts:112
- kind: hook
- core: cl
- spec: (none)
- summary: Soft-delete a clinical standing order.
- score: 4
hook useDeleteDesignatedContact
- file: src/cores/cl/hooks/useFamilyNotifications.ts:122
- kind: hook
- core: cl
- spec: (none)
- summary: Provides delete designated contact queries and mutation actions scoped to the current organization.
- score: 4
hook useDeleteInventoryTransaction
- file: src/cores/cl/hooks/useControlledSubstanceInventory.ts:156
- kind: hook
- core: cl
- spec: (none)
- summary: Provides delete inventory transaction queries and mutation actions scoped to the current organization.
- score: 4
hook useDeleteOrderSetTemplate
- file: src/cores/cl/hooks/useOrderSetTemplates.ts:119
- kind: hook
- core: cl
- spec: (none)
- summary: Soft-delete an order set template.
- score: 4
hook useDeleteReferenceRange
- file: src/cores/cl/hooks/useReferenceRangeMutations.ts:72
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing delete reference range.
- score: 1
hook useDeleteReportDefinition
- file: src/cores/cl/hooks/useReportDefinitions.ts:174
- kind: hook
- core: cl
- spec: (none)
- summary: Deletes a report definition for the active organization and invalidates list caches.
- score: 4
hook useDeleteStandingOrderProtocol
- file: src/cores/cl/hooks/useStandingOrderMutations.ts:98
- kind: hook
- core: cl
- spec: (none)
- summary: Provides delete standing order protocol queries and mutation actions scoped to the current organization.
- score: 4
hook useDeleteTemplateSection
- file: src/cores/cl/hooks/useAssessmentTemplateSectionMutation.ts:72
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for soft-deleting a template section.
- score: 1
hook useDeprecateMarketplaceBundle
- file: src/cores/cl/hooks/useMarketplaceCurator.ts:66
- kind: hook
- core: cl
- spec: (none)
- summary: Toggle the flag on a bundle (curator action).
- score: 4
hook useDesignatedContacts
- file: src/cores/cl/hooks/useFamilyNotifications.ts:32
- kind: hook
- core: cl
- spec: (none)
- summary: Provides designated contacts queries and mutation actions scoped to the current organization.
- score: 4
hook useDiagnosesByChart
- file: src/cores/cl/hooks/useDiagnoses.ts:27
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches diagnoses for a chart, ordered by created_at DESC.
- score: 4
hook useDiagnosesByPatient
- file: src/cores/cl/hooks/useDiagnoses.ts:56
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches diagnoses for a patient, ordered by created_at DESC.
- score: 4
hook useDirectorySearch
- file: src/cores/cl/hooks/useDirectorySearch.ts:14
- kind: hook
- core: cl
- spec: (none)
- summary: Mutation-based hook for directory search (user-initiated, not cached).
- score: 4
hook useDischargeChecklistByTransition
- file: src/cores/cl/hooks/useDischargeChecklists.ts:32
- kind: hook
- core: cl
- spec: (none)
- summary: Provides discharge checklist by transition queries and mutation actions scoped to the current organization.
- score: 4
hook useDisclosureLogByChart
- file: src/cores/cl/hooks/useDisclosureLog.ts:31
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch all disclosures for a chart, newest first.
- score: 4
hook useDocumentationMetricsData
- file: src/cores/cl/hooks/useDocumentationMetricsData.ts:27
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches per-provider documentation completeness metrics.
- score: 4
hook useDsiDisclosures
- file: src/cores/cl/dsi-disclosures/hooks/useDsiDisclosures.ts:25
- kind: hook
- core: cl
- spec: (none)
- summary: List all DSI disclosures for the current org (draft, published, retired), newest first.
- score: 4
hook useEditGeneration
- file: src/cores/cl/hooks/useGroupEncounterGenerations.ts:211
- kind: hook
- core: cl
- spec: (none)
- summary: Edits a generation record’s proposed CPT code and/or duration before approval.
- score: 4
hook useEnvironmentalAssessmentsByChart
- file: src/cores/cl/hooks/useEnvironmentalAssessments.ts:35
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch environmental assessments linked to a specific patient chart.chart_id is optional in the DB (site-level assessments may not link a chart),so this filter uses .eq() which will correctly return only chart-linked records.
- score: 4
hook useEnvironmentalAssessmentsBySite
- file: src/cores/cl/hooks/useEnvironmentalAssessments.ts:65
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch all environmental assessments for a site (facility-wide view).Includes both chart-linked and unlinked assessments.
- score: 4
hook useEPrescribingWizard
- file: src/cores/cl/wizards/e-prescribing/hooks/useEPrescribingWizard.ts:83
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing e-prescribing wizard step navigation and form state.
- score: 1
hook useEscalateInbasketItem
- file: src/cores/cl/hooks/useInbasketItemMutation.ts:88
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing escalate inbasket item.
- score: 1
hook useExemptionDisclosureGate
- file: src/cores/cl/hooks/ceem/useExemptionDisclosureGate.ts:24
- kind: hook
- core: cl
- spec: (none)
- summary: React Query wrapper over . Read-only;the gate decision is the authoritative result and is logged server-side.
- score: 4
hook useExportArcosCsv
- file: src/cores/cl/hooks/useArcosExport.ts:60
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing export arcos csv.
- score: 1
hook useFamilyNotificationLog
- file: src/cores/cl/hooks/useFamilyNotifications.ts:155
- kind: hook
- core: cl
- spec: (none)
- summary: Provides family notification log queries and mutation actions scoped to the current organization.
- score: 4
hook useFinalizeIntakeAssessment
- file: src/cores/cl/hooks/useIntakeAssessmentMutation.ts:117
- kind: hook
- core: cl
- spec: (none)
- summary: Finalizes an intake assessment: transitions status, sets signed_at,publishes cl_intake_finalized event for downstream billing/referrals.
- score: 4
hook useFinalizeLocAssessment
- file: src/cores/cl/hooks/useLocAssessments.ts:286
- kind: hook
- core: cl
- spec: (none)
- summary: Backward-compat finalize hook used by WS3-target UI. Maps to sign withlegacy parameter names. WS3 should switch to .
- score: 4
hook useFlagCourtReportable
- file: src/cores/cl/hooks/useUdsResults.ts:138
- kind: hook
- core: cl
- spec: (none)
- summary: Toggle court_reportable flag on a result row.
- score: 4
hook useFollowUpContactsByChart
- file: src/cores/cl/hooks/useFollowUpContacts.ts:27
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing follow up contacts by chart.
- score: 1
hook useFollowUpContactsByPlan
- file: src/cores/cl/hooks/useFollowUpContacts.ts:56
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing follow up contacts by plan.
- score: 1
hook useFollowUpRate
- file: src/cores/cl/hooks/useFollowUpRate.ts:64
- kind: hook
- core: cl
- spec: (none)
- summary: Read per-grant follow-up rates from the VIEW.Returns an array of quarter-grained rows for the current organization,optionally narrowed by grant code and/or quarter start date. CL-69 AC-4
- score: 4
hook useFuaFuiMeasureParams
- file: src/cores/cl/hooks/useFuaFuiMeasureParams.ts:21
- kind: hook
- core: cl
- spec: (none)
- summary: Resolve the active FUA/FUI measure params for the current organization(optionally narrowed to a site) from the PF-96 jurisdiction profile.
- params:
- siteId — Optional site UUID for site-level override resolution.
- returns: The compliance query result with set to the hydrated , or when no compliance pack is available.
- score: 4
hook useFuhEligibleTransitions
- file: src/cores/cl/hooks/useTransitions.ts:62
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing fuh eligible transitions.
- score: 1
hook useFullChartExport
- file: src/cores/cl/hooks/useFullChartExport.ts:74
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing full chart export.
- score: 1
hook useGenerateAIDraft
- file: src/cores/cl/ai-documentation/hooks/useGenerateAIDraft.ts:21
- kind: hook
- core: cl
- spec: (none)
- summary: Calls the AI draft generation edge function.Returns the draft content on success, or throws on failure/timeout.
- score: 4
hook useGenerateCdaDocument
- file: src/cores/cl/hooks/useCdaDocuments.ts:140
- kind: hook
- core: cl
- spec: (none)
- summary: Generate a new C-CDA document. Fetches source clinical data scoped tothe chart + active organization, applies Part 2 consent filtering,excludes psychotherapy notes at the source query, assembles the XML,validates it, and persists the row.
- score: 4
hook useGenerateCdsRationale
- file: src/cores/cl/hooks/useCdsRationale.ts:66
- kind: hook
- core: cl
- spec: (none)
- summary: Generate (and persist) an LLM rationale for a CDS alert via thecl-cds-rationale edge function, then invalidate the chart’s alert list so thepersisted reflows into the panel.
- score: 4
hook useGenerateChartSummary
- file: src/cores/cl/ai-documentation/hooks/useGenerateChartSummary.ts:93
- kind: hook
- core: cl
- spec: (none)
- summary: Mutation hook for AI chart-summary generation.Returns the readiness metadata and the transient structured summary on success,or throws a sanitized error on failure / gate denial / timeout.
- score: 4
hook useGenerateTreatmentPlanDraft
- file: src/cores/cl/ai-treatment-plan/hooks/useGenerateTreatmentPlanDraft.ts:45
- kind: hook
- core: cl
- spec: (none)
- summary: Mutation hook for AI treatment-plan draft generation.On success the edge function has inserted goals into cl_treatment_goals andinterventions into cl_treatment_interventions. The caller should invalidatethe relevant query keys to refresh the UI.
- score: 4
hook useGroupAttendanceBySession
- file: src/cores/cl/hooks/useGroupAttendance.ts:31
- kind: hook
- core: cl
- spec: (none)
- summary: Provides group attendance by session queries and mutation actions scoped to the current organization.
- score: 4
hook useGroupCurriculaList
- file: src/cores/cl/hooks/useGroupCurricula.ts:25
- kind: hook
- core: cl
- spec: (none)
- summary: Provides group curricula list queries and mutation actions scoped to the current organization.
- score: 4
hook useGroupEncounterGenerationDetail
- file: src/cores/cl/hooks/useGroupEncounterGenerations.ts:67
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches a single generation record with its session details.
- score: 4
hook useGroupEncounterGenerationList
- file: src/cores/cl/hooks/useGroupEncounterGenerations.ts:32
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches group encounter generations for the current org with optional filters.
- score: 4
hook useGroupOutcomeMetrics
- file: src/cores/cl/hooks/useGroupOutcomeMetrics.ts:42
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing group outcome metrics.
- score: 1
hook useGroupSessionDetail
- file: src/cores/cl/hooks/useGroupSessions.ts:68
- kind: hook
- core: cl
- spec: (none)
- summary: Provides group session detail queries and mutation actions scoped to the current organization.
- score: 4
hook useGroupSessionPdf
- file: src/cores/cl/hooks/useGroupSessionPdf.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing group session pdf.
- score: 1
hook useGroupSessionsList
- file: src/cores/cl/hooks/useGroupSessions.ts:36
- kind: hook
- core: cl
- spec: (none)
- summary: Provides group sessions list queries and mutation actions scoped to the current organization.
- score: 4
hook useHedisBatchCalculation
- file: src/cores/cl/hooks/useHedisBatchCalculation.ts:35
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing hedis batch calculation.
- score: 1
hook useHedisOpenCount
- file: src/cores/cl/hooks/useHedisWorklist.ts:168
- kind: hook
- core: cl
- spec: (none)
- summary: Count of open (non-met) denominator events for tab badge.
- score: 4
hook useHedisTrackingSummary
- file: src/cores/cl/hooks/useHedisTrackingSummary.ts:30
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch HEDIS FUH/FUM compliance rates for the current organization and measurement year.
- score: 4
hook useHedisWorklist
- file: src/cores/cl/hooks/useHedisWorklist.ts:88
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch aftercare plans that are in a HEDIS denominator, with follow-up contacts.
- score: 4
hook useImportedBundleKeys
- file: src/cores/cl/hooks/useMarketplaceImports.ts:44
- kind: hook
- core: cl
- spec: (none)
- summary: Get set of bundle_keys already imported by the current org (for update detection).
- score: 4
hook useImportMarketplaceBundle
- file: src/cores/cl/hooks/useMarketplaceImports.ts:83
- kind: hook
- core: cl
- spec: (none)
- summary: Import a marketplace bundle into the current organization.Per CONTEXT D-11, the MVP supports and. Unsupported item types are skipped with a warning. On anyhandler error after the first successful insert, this hook performs aclient-side best-effort rollback of created rows and marks the import as so the org returns to its prior state.
- score: 4
hook useInbasketItemDetail
- file: src/cores/cl/hooks/useInbasketItemDetail.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing inbasket item detail.
- score: 1
hook useInbasketItemList
- file: src/cores/cl/hooks/useInbasketItemList.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing inbasket item list.
- score: 1
hook useIncidentDetail
- file: src/cores/cl/hooks/useIncidents.ts:64
- kind: hook
- core: cl
- spec: (none)
- summary: Provides incident detail queries and mutation actions scoped to the current organization.
- score: 4
hook useIncidentList
- file: src/cores/cl/hooks/useIncidents.ts:34
- kind: hook
- core: cl
- spec: (none)
- summary: Provides incident list queries and mutation actions scoped to the current organization.
- score: 4
hook useInitiateAISession
- file: src/cores/cl/ai-documentation/hooks/useAIDocumentationSession.ts:62
- kind: hook
- core: cl
- spec: (none)
- summary: Initiates a new AI documentation session.
- score: 4
hook useIntakeAssessmentDetail
- file: src/cores/cl/hooks/useIntakeAssessmentDetail.ts:17
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches a single intake assessment by ID with patient join.
- score: 4
hook useIntakeAssessments
- file: src/cores/cl/hooks/useIntakeAssessments.ts:17
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches a filtered list of intake assessments for the current organization.
- score: 4
hook useIntakePrePopulation
- file: src/cores/cl/hooks/useIntakePrePopulation.ts:34
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches pre-population data for an intake assessment form.Combines patient demographics, latest SDOH screening, and active diagnoses.
- score: 4
hook useInventoryReconciliation
- file: src/cores/cl/hooks/useControlledSubstanceInventory.ts:186
- kind: hook
- core: cl
- spec: (none)
- summary: Provides inventory reconciliation queries and mutation actions scoped to the current organization.
- score: 4
hook useInventoryTransactions
- file: src/cores/cl/hooks/useControlledSubstanceInventory.ts:38
- kind: hook
- core: cl
- spec: (none)
- summary: Provides inventory transactions queries and mutation actions scoped to the current organization.
- score: 4
hook useLabOrderMutations
- file: src/cores/cl/hooks/useLabOrderMutations.ts:20
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing lab order mutations.
- score: 1
hook useLabOrders
- file: src/cores/cl/hooks/useLabOrders.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing lab orders.
- score: 1
hook useLabResultMutations
- file: src/cores/cl/hooks/useLabResultMutations.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing lab result mutations.
- score: 1
hook useLabResults
- file: src/cores/cl/hooks/useLabResults.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Results for a single order
- score: 1
hook useLabResultTrends
- file: src/cores/cl/hooks/useLabResults.ts:88
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing lab result trends.
- score: 1
hook useLethalMeansAssessment
- file: src/cores/cl/hooks/useLethalMeansAssessment.ts:15
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch a single lethal means assessment by ID.
- score: 4
hook useLethalMeansAssessments
- file: src/cores/cl/hooks/useLethalMeansAssessments.ts:19
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch all lethal means assessments for a patient chart, newest first.
- score: 4
hook useLinkPendingResult
- file: src/cores/cl/hooks/usePendingLabResults.ts:77
- kind: hook
- core: cl
- spec: (none)
- summary: Provides link pending result queries and mutation actions scoped to the current organization.
- score: 4
hook useLinkProgressNote
- file: src/cores/cl/hooks/useTelehealthSessions.ts:140
- kind: hook
- core: cl
- spec: (none)
- summary: CL-24 (#544): link / unlink a CL-04 progress note to a telehealth session.Option B (see specs/cl/specs/CL-24-CONTEXT.md): the linkage is the singlereverse FK — a UI-only flip of thatcolumn. Linking sets it to the note id; unlinking (or relinking) sets it tonull (or a different note id). No write to . Org-scoped, soRLS + the explicit filter keep it tenant-isolated.
- score: 4
hook useLocAssessmentReassess
- file: src/cores/cl/hooks/useLocAssessments.ts:317
- kind: hook
- core: cl
- spec: (none)
- summary: Pre-populate a new assessment from a prior one (reassessment flow).Returns the prior dimension scores + a computed once thecaller supplies the new total. Persistence of happens atcreate time via .
- score: 4
hook useLocAssessmentsByChart
- file: src/cores/cl/hooks/useLocAssessments.ts:29
- kind: hook
- core: cl
- spec: (none)
- summary: List assessments for a chart (canonical) — is the FK.
- score: 4
hook useLogAmbientSessionEvent
- file: src/cores/cl/ai-documentation/hooks/useAmbientSession.ts:237
- kind: hook
- core: cl
- spec: (none)
- summary: Logs an audit event for an ambient session.
- score: 4
hook useLoincSearch
- file: src/cores/cl/hooks/useLoincSearch.ts:25
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing loinc search.
- score: 1
hook useMarketplaceBundle
- file: src/cores/cl/hooks/useMarketplaceBundles.ts:59
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch a single marketplace bundle by id.
- score: 4
hook useMarketplaceBundleItems
- file: src/cores/cl/hooks/useMarketplaceBundleItems.ts:24
- kind: hook
- core: cl
- spec: (none)
- summary: Query hook to list all items in a marketplace bundle.Fetches items from cl_marketplace_bundle_items, ordered by their orderingfield. Returns an empty array if bundleId is undefined or falsy.
- params:
- bundleId — ID of the marketplace bundle to fetch items for, or undefined. Query is disabled when undefined.
- returns: React Query result containing an array of MarketplaceBundleItem objects. Each item includes id, item_key, item_type, and ordering.
- score: 4
hook useMarketplaceBundles
- file: src/cores/cl/hooks/useMarketplaceBundles.ts:17
- kind: hook
- core: cl
- spec: (none)
- summary: List marketplace bundles with optional filtering by accreditation, clinical area, and search.
- score: 4
hook useMarketplaceImports
- file: src/cores/cl/hooks/useMarketplaceImports.ts:20
- kind: hook
- core: cl
- spec: (none)
- summary: List import history for the current organization.
- score: 4
hook useMeasurementUnit
- file: src/cores/cl/hooks/useMeasurementUnit.ts:116
- kind: hook
- core: cl
- spec: (none)
- summary: Hook providing the org’s measurement unit preference and conversion utilities.DB columns are always metric (height_cm, weight_kg, waist_circumference_cm).Conversion is UI-layer only.
- score: 4
hook useMedicationAdherenceByChart
- file: src/cores/cl/hooks/useMedicationAdherence.ts:48
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing medication adherence by chart.
- score: 1
hook useMedicationEducationByChart
- file: src/cores/cl/hooks/useMedicationEducation.ts:50
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing medication education by chart.
- score: 1
hook useMedicationMutation
- file: src/cores/cl/hooks/useMedicationMutation.ts:27
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing medication mutation.
- score: 1
hook useMedicationReconciliationsByChart
- file: src/cores/cl/hooks/useMedicationReconciliationsByChart.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing medication reconciliations by chart.
- score: 1
hook useMedicationsByChart
- file: src/cores/cl/hooks/useMedicationsByChart.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing medications by chart.
- score: 1
hook useMetabolicMonitoringList
- file: src/cores/cl/hooks/useMetabolicMonitoringList.ts:17
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing metabolic monitoring list.
- score: 1
hook useMetabolicMonitoringMutation
- file: src/cores/cl/hooks/useMetabolicMonitoringMutation.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing metabolic monitoring mutation.
- score: 1
hook useMoudEnrollmentDetail
- file: src/cores/cl/hooks/useMoudEnrollments.ts:48
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing moud enrollment detail.
- score: 1
hook useMoudEnrollmentList
- file: src/cores/cl/hooks/useMoudEnrollments.ts:24
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing moud enrollment list.
- score: 1
hook useMoudEnrollmentMutation
- file: src/cores/cl/hooks/useMoudEnrollments.ts:72
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing moud enrollment mutation.
- score: 1
hook useMoudMedicationEventMutation
- file: src/cores/cl/hooks/useMoudMedicationEvents.ts:42
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing moud medication event mutation.
- score: 1
hook useMoudMedicationEventsByEnrollment
- file: src/cores/cl/hooks/useMoudMedicationEvents.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing moud medication events by enrollment.
- score: 1
hook useMoudMonitoringEventMutation
- file: src/cores/cl/hooks/useMoudMonitoringEvents.ts:42
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing moud monitoring event mutation.
- score: 1
hook useMoudMonitoringEventsByEnrollment
- file: src/cores/cl/hooks/useMoudMonitoringEvents.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing moud monitoring events by enrollment.
- score: 1
hook useMultiPartyEncounterDetail
- file: src/cores/cl/hooks/useMultiPartyEncounters.ts:74
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches a single multi-party encounter by ID.Pre-migration: returns null (table does not exist yet).
- score: 4
hook useMultiPartyEncountersList
- file: src/cores/cl/hooks/useMultiPartyEncounters.ts:40
- kind: hook
- core: cl
- spec: (none)
- summary: Lists multi-party encounters with optional status filter.Pre-migration: returns empty array (table does not exist yet).
- score: 4
hook useMultiPartyParticipants
- file: src/cores/cl/hooks/useMultiPartyEncounters.ts:190
- kind: hook
- core: cl
- spec: (none)
- summary: Lists participants for a multi-party encounter.Pre-migration: returns empty array (table does not exist yet).
- score: 4
hook useNoteRequirements
- file: src/cores/cl/hooks/useNoteRequirements.ts:30
- kind: hook
- core: cl
- spec: (none)
- summary: Provides jurisdiction-aware note requirements for the current org/site.
- params:
- siteId — Optional site UUID for site-level override resolution.
- returns: Resolved note requirements with loading/error state.
- score: 4
hook useNoteTemplateMutation
- file: src/cores/cl/hooks/useNoteTemplateMutation.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing note template mutation.
- score: 1
hook useNoteTemplatesList
- file: src/cores/cl/hooks/useNoteTemplatesList.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing note templates list.
- score: 1
hook useOpenCareGapCount
- file: src/cores/cl/hooks/useOpenCareGapCount.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing open care gap count.
- score: 1
hook useOrderSetActivations
- file: src/cores/cl/hooks/useOrderSetActivation.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: List order set activations for a given chart.
- score: 4
hook useOrderSetTemplate
- file: src/cores/cl/hooks/useOrderSetTemplates.ts:43
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch a single order set template by id.
- score: 4
hook useOrderSetTemplates
- file: src/cores/cl/hooks/useOrderSetTemplates.ts:17
- kind: hook
- core: cl
- spec: (none)
- summary: List active order set templates for the current organization.
- score: 4
hook useOrderTemplateMutations
- file: src/cores/cl/hooks/useOrderTemplateMutations.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing order template mutations.
- score: 1
hook useOrderTemplates
- file: src/cores/cl/hooks/useOrderTemplates.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing order templates.
- score: 1
hook useOrgSurfaceBlocks
- file: src/cores/cl/hooks/blocks/useSurfaceTemplateAdmin.ts:38
- kind: hook
- core: cl
- spec: (none)
- summary: The org-optional blocks currently composed onto a surface.
- score: 4
hook useOutcomeEpisodeDetail
- file: src/cores/cl/hooks/useOutcomeEpisodes.ts:66
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch a single outcome episode by ID.
- score: 4
hook useOutcomeEpisodesByChart
- file: src/cores/cl/hooks/useOutcomeEpisodes.ts:38
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch all outcome episodes for a chart, newest first.
- score: 4
hook useOutcomeMeasureDetail
- file: src/cores/cl/hooks/useOutcomeMeasures.ts:61
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch a single outcome measure by ID.
- score: 4
hook useOutcomeMeasuresByChart
- file: src/cores/cl/hooks/useOutcomeMeasures.ts:30
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch all non-deleted outcome measures for a chart, newest first.
- score: 4
hook useOverdueReviews
- file: src/cores/cl/hooks/useOverdueReviews.ts:25
- kind: hook
- core: cl
- spec: (none)
- summary: Hook returning overdue concurrent reviews for the active organization.
- score: 4
hook useOverlappingServiceTimes
- file: src/cores/cl/hooks/useOverlappingServiceTimes.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Detect overlapping service times across all active progress notes for the org.
- params:
- dateRange — Optional: limit detection to notes within a date range.
- score: 4
hook useOverrideAudit
- file: src/cores/cl/hooks/useOverrideAudit.ts:22
- kind: hook
- core: cl
- spec: (none)
- summary: Insert an override audit record for Policy 940 validation bypass.
- score: 4
hook usePart2DashboardData
- file: src/cores/cl/hooks/usePart2DashboardData.ts:26
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches Part 2 compliance metrics for the audit dashboard.
- score: 4
hook usePathwayDefinitions
- file: src/cores/cl/hooks/usePathways.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing pathway definitions.
- score: 1
hook usePathwayMutation
- file: src/cores/cl/hooks/usePathwayMutation.ts:17
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing pathway mutation.
- score: 1
hook usePathwayProgressForChart
- file: src/cores/cl/hooks/usePathways.ts:40
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing pathway progress for chart.
- score: 1
hook usePatientActiveProblems
- file: src/cores/cl/hooks/useProblems.ts:71
- kind: hook
- core: cl
- spec: (none)
- summary: CL-46: Active-only problem list (active + chronic) for billing/clinical surfaces.Defense-in-depth: explicit organization_id filter in addition to RLS.
- score: 4
hook usePatientBannerConfig
- file: src/cores/cl/hooks/usePatientBannerConfig.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing patient banner config.
- score: 1
hook usePatientCareGaps
- file: src/cores/cl/hooks/usePatientCareGaps.ts:22
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing patient care gaps.
- score: 1
hook usePatientProblems
- file: src/cores/cl/hooks/useProblems.ts:42
- kind: hook
- core: cl
- spec: (none)
- summary: CL-46: Hook for fetching problems by patient (cross-chart, single MRN).
- score: 4
hook usePatientSubmissionDetail
- file: src/cores/cl/hooks/usePatientSubmissionDetail.ts:14
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing patient submission detail.
- score: 1
hook usePatientSubmissionsList
- file: src/cores/cl/hooks/usePatientSubmissionsList.ts:15
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing patient submissions list.
- score: 1
hook usePatientTimeline
- file: src/cores/cl/hooks/usePatientTimeline.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing patient timeline.
- score: 1
hook usePdmpConfiguration
- file: src/cores/cl/hooks/usePdmpConfiguration.ts:19
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing pdmp configuration.
- score: 1
hook usePdmpQueryDetail
- file: src/cores/cl/hooks/usePdmpQueryDetail.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing pdmp query detail.
- score: 1
hook usePdmpQueryList
- file: src/cores/cl/hooks/usePdmpQueryList.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing pdmp query list.
- score: 1
hook usePdmpQueryMutation
- file: src/cores/cl/hooks/usePdmpQueryMutation.ts:20
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing pdmp query mutation.
- score: 1
hook usePeerEncountersByPatient
- file: src/cores/cl/hooks/usePeerEncounters.ts:39
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches peer encounters for a patient, ordered by encounter_date DESC.Replaces the old usePeerEncountersByChart which used the non-existent chart_id column.
- score: 4
hook usePeerSupervisionList
- file: src/cores/cl/hooks/usePeerSupervision.ts:31
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing peer supervision list.
- score: 1
hook usePendingLabResults
- file: src/cores/cl/hooks/usePendingLabResults.ts:14
- kind: hook
- core: cl
- spec: (none)
- summary: Provides pending lab results queries and mutation actions scoped to the current organization.
- score: 4
hook usePendingLabResultsCount
- file: src/cores/cl/hooks/usePendingLabResults.ts:43
- kind: hook
- core: cl
- spec: (none)
- summary: Provides pending lab results count queries and mutation actions scoped to the current organization.
- score: 4
hook usePharmacyList
- file: src/cores/cl/hooks/usePharmacyList.ts:19
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing pharmacy list.
- score: 1
hook usePharmacyListAll
- file: src/cores/cl/hooks/usePharmacyList.ts:52
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch ALL pharmacies including inactive (for the management directory page).
- score: 4
hook usePharmacyMutation
- file: src/cores/cl/hooks/usePharmacyMutation.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing pharmacy mutation.
- score: 1
hook usePharmacySearch
- file: src/cores/cl/hooks/usePharmacySearch.ts:62
- kind: hook
- core: cl
- spec: (none)
- summary: Run the structured pharmacy search. Pass (or invalid params) to keep thequery idle. ON-WENO results sort first.
- score: 4
hook usePocResultEntry
- file: src/cores/cl/hooks/usePocResultEntry.ts:28
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing poc result entry.
- score: 1
hook usePolicy940Config
- file: src/cores/cl/hooks/usePolicy940Config.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch Policy 940 configuration for the current organization.
- returns: Policy940Config with defaults if no config row exists.
- score: 4
hook usePolicy940Validation
- file: src/cores/cl/hooks/usePolicy940Validation.ts:31
- kind: hook
- core: cl
- spec: (none)
- summary: Orchestrate Policy 940 validation for a progress note.
- returns: Validation state and a callback.
- score: 4
hook usePopulationDashboard
- file: src/cores/cl/hooks/usePopulationDashboard.ts:40
- kind: hook
- core: cl
- spec: (none)
- summary: Hook to fetch aggregate population health dashboard data.
- score: 4
hook usePortalConsents
- file: src/cores/cl/hooks/usePortalConsents.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch consents visible to a portal patient for a specific chart.
- score: 4
hook usePrescriptionMutation
- file: src/cores/cl/hooks/usePrescriptionMutation.ts:21
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing prescription mutation.
- score: 1
hook usePrescriptionsByChart
- file: src/cores/cl/hooks/usePrescriptionsByChart.ts:14
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing prescriptions by chart.
- score: 1
hook useProblemHistory
- file: src/cores/cl/hooks/useProblems.ts:100
- kind: hook
- core: cl
- spec: (none)
- summary: CL-46: Append-only state-machine history for a problem (most recent first).
- score: 4
hook useProblemsByChart
- file: src/cores/cl/hooks/useProblems.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing problems by chart.
- score: 1
hook useProgramEnrollmentMutation
- file: src/cores/cl/hooks/useProgramEnrollments.ts:45
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing program enrollment mutation.
- score: 1
hook useProgramEnrollmentsList
- file: src/cores/cl/hooks/useProgramEnrollments.ts:19
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing program enrollments list.
- score: 1
hook useProgramOutcomes
- file: src/cores/cl/hooks/useProgramOutcomes.ts:32
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing program outcomes.
- score: 1
hook useProgramScheduleDetail
- file: src/cores/cl/hooks/useProgramSchedules.ts:39
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing program schedule detail.
- score: 1
hook useProgramScheduleMutation
- file: src/cores/cl/hooks/useProgramSchedules.ts:64
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing program schedule mutation.
- score: 1
hook useProgramSchedulesList
- file: src/cores/cl/hooks/useProgramSchedules.ts:17
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing program schedules list.
- score: 1
hook useProgramSessionGeneration
- file: src/cores/cl/hooks/useProgramSessionGeneration.ts:31
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing program session generation.
- score: 1
hook useProgressNoteCosignQueue
- file: src/cores/cl/hooks/useProgressNoteCosignQueue.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing progress note cosign queue.
- score: 1
hook useProgressNoteDetail
- file: src/cores/cl/hooks/useProgressNoteDetail.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing progress note detail.
- score: 1
hook useProgressNoteMutation
- file: src/cores/cl/hooks/useProgressNoteMutation.ts:29
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing progress note mutation.
- score: 1
hook useProgressNotePdf
- file: src/cores/cl/hooks/useProgressNotePdf.ts:21
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing progress note pdf.
- score: 1
hook useProgressNotesByChart
- file: src/cores/cl/hooks/useProgressNotesByChart.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing progress notes by chart.
- score: 1
hook usePublishDsiDisclosure
- file: src/cores/cl/dsi-disclosures/hooks/useDsiDisclosures.ts:80
- kind: hook
- core: cl
- spec: (none)
- summary: Publish a disclosure. Re-reads the persisted row, runs the completeness gate for itsdsi_type, and only then sets status=‘published’. Throws (with the missing fields) whenincomplete so the UI surfaces exactly what’s left — and the DB CHECK is the final backstop.
- score: 4
hook usePublishMarketplaceBundleVersion
- file: src/cores/cl/hooks/useMarketplaceCurator.ts:28
- kind: hook
- core: cl
- spec: (none)
- summary: Insert a new marketplace bundle row + its items in a single client-sidesequence. RLS () is the authoritative gate.Note: this is not transactional — failure to insert items after the bundlerow leaves an empty bundle visible. F-4 MVP accepts this trade-off; afuture iteration should move publish to an Edge Function.
- score: 4
hook useReadmissionRiskByChart
- file: src/cores/cl/hooks/useReadmissionRisk.ts:25
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing readmission risk by chart.
- score: 1
hook useRecentAllergyOverrides
- file: src/cores/cl/hooks/useRecentAllergyOverrides.ts:25
- kind: hook
- core: cl
- spec: (none)
- summary: Returns overrides recorded within the configured look-back window(default: 24 hours) for the given chart, newest first.
- score: 4
hook useRecentCharts
- file: src/cores/cl/hooks/useRecentCharts.ts:69
- kind: hook
- core: cl
- spec: (none)
- summary: Hook to track and retrieve recently viewed charts.Call when entering a chart; read (ids + timestamps) andresolve display data via .Returns up to charts excluding .
- score: 4
hook useRecordConnectivityIssue
- file: src/cores/cl/hooks/useConnectivityIssue.ts:28
- kind: hook
- core: cl
- spec: (none)
- summary: Mutation hook that appends one connectivity issue onto a telehealth session.
- returns: A TanStack whose invokes on the server. The server enforces caller org access, the 50-issue cap, and atomicity; on success the query subtree is invalidated.
- score: 4
hook useRecordingConsentCapture
- file: src/cores/cl/hooks/useRecordingConsent.ts:36
- kind: hook
- core: cl
- spec: (none)
- summary: Captures recording consent for a specific attendance record.Once captured, consent is immutable per ARS 13-3005.
- score: 4
hook useRecordingConsentStatus
- file: src/cores/cl/hooks/useRecordingConsent.ts:103
- kind: hook
- core: cl
- spec: (none)
- summary: Queries all attendees’ recording consent status for a session.
- score: 4
hook useRecordStandingOrderExecution
- file: src/cores/cl/hooks/useStandingOrderExecutions.ts:56
- kind: hook
- core: cl
- spec: (none)
- summary: Record a standing order execution (append-only).
- score: 4
hook useRecordSuprtAssessment
- file: src/cores/cl/hooks/useOutcomeEpisodeMutation.ts:106
- kind: hook
- core: cl
- spec: (none)
- summary: Record a SUPRT assessment timepoint: open/reuse the episode, insert theassessment + DS4P-labeled responses (labeled from instrument metadata), andemit the outcome event.
- score: 4
hook useReferenceLabMutations
- file: src/cores/cl/hooks/useReferenceLabMutations.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing reference lab mutations.
- score: 1
hook useReferenceLabs
- file: src/cores/cl/hooks/useReferenceLabs.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing reference labs.
- score: 1
hook useReferenceRangeLookup
- file: src/cores/cl/hooks/useReferenceRangeLookup.ts:38
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing reference range lookup.
- score: 1
hook useReferenceRanges
- file: src/cores/cl/hooks/useReferenceRanges.ts:15
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing reference ranges.
- score: 1
hook useReferralCurrentStatus
- file: src/cores/cl/hooks/useReferralCurrentStatus.ts:20
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch the latest status for a given referral from the current status view.
- params:
- referralId — The UUID of the referral.
- score: 4
hook useReferralStatusHistory
- file: src/cores/cl/hooks/useReferralStatusHistory.ts:21
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch the full status history for a given referral, ordered newest-first.
- params:
- referralId — The UUID of the referral to fetch history for.
- score: 4
hook useRegulatoryCalendar
- file: src/cores/cl/hooks/useRegulatoryCalendar.ts:31
- kind: hook
- core: cl
- spec: (none)
- summary: Returns a list of regulatory calendar deadlines resolved from jurisdiction profiles.Exposes loading/error states so consumers can distinguish real vs fallback data.TODO(PF-96): Replace with dynamic jurisdiction-aware deadlines.
- score: 4
hook useRejectGeneration
- file: src/cores/cl/hooks/useGroupEncounterGenerations.ts:135
- kind: hook
- core: cl
- spec: (none)
- summary: Rejects a single generation record with a reason.
- score: 4
hook useRejectPendingResult
- file: src/cores/cl/hooks/usePendingLabResults.ts:111
- kind: hook
- core: cl
- spec: (none)
- summary: Provides reject pending result queries and mutation actions scoped to the current organization.
- score: 4
hook useRemoveOrgBlock
- file: src/cores/cl/hooks/blocks/useSurfaceTemplateAdmin.ts:86
- kind: hook
- core: cl
- spec: (none)
- summary: Remove an org-optional block from a surface.
- score: 4
hook useRemoveParticipant
- file: src/cores/cl/hooks/useMultiPartyEncounters.ts:253
- kind: hook
- core: cl
- spec: (none)
- summary: Removes a participant from a multi-party encounter.Pre-migration: throws error (table does not exist yet).
- score: 4
hook useRenewClinicalStandingOrder
- file: src/cores/cl/hooks/useClinicalStandingOrders.ts:138
- kind: hook
- core: cl
- spec: (none)
- summary: Renew a clinical standing order: extends expiration_date, sets status to active,and appends an entry to renewal_history JSONB. Use for expired or expiring protocols.
- score: 4
hook useReorderTemplateSections
- file: src/cores/cl/hooks/useAssessmentTemplateSectionMutation.ts:110
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for reordering template sections (batch update display_order).
- score: 1
hook useReportDefinitionDetail
- file: src/cores/cl/hooks/useReportDefinitions.ts:62
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches one report definition by id for the active organization.
- score: 4
hook useReportDefinitionList
- file: src/cores/cl/hooks/useReportDefinitions.ts:33
- kind: hook
- core: cl
- spec: (none)
- summary: Lists report definitions for the current organization, ordered by report name.
- score: 4
hook useReportRunList
- file: src/cores/cl/hooks/useReportRuns.ts:113
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing report run list.
- score: 1
hook useRequiredIntakeElements
- file: src/cores/cl/hooks/useRequiredIntakeElements.ts:17
- kind: hook
- core: cl
- spec: (none)
- summary: Returns the list of required intake assessment element codes for the current org.
- params:
- siteId — Optional site override for site-level jurisdiction profiles.
- returns: string array and flag.
- score: 4
hook useRetireDsiDisclosure
- file: src/cores/cl/dsi-disclosures/hooks/useDsiDisclosures.ts:156
- kind: hook
- core: cl
- spec: (none)
- summary: Retire a published disclosure (it stops gating; a new draft can supersede it).
- score: 4
hook useReviewAppeals
- file: src/cores/cl/hooks/useReviewAppeals.ts:12
- kind: hook
- core: cl
- spec: (none)
- summary: List appeals for a given concurrent review.
- score: 4
hook useReviewPatientSubmission
- file: src/cores/cl/hooks/usePatientSubmissionMutation.ts:106
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing review patient submission.
- score: 1
hook useReviewSchedules
- file: src/cores/cl/hooks/useReviewSchedules.ts:12
- kind: hook
- core: cl
- spec: (none)
- summary: List review schedules (active by default) for the active organization.
- score: 4
hook useRevokeConsent
- file: src/cores/cl/hooks/useConsents.ts:134
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing revoke consent.
- score: 1
hook useRevokeDdiSuppression
- file: src/cores/cl/hooks/useDdiAlertSuppressions.ts:94
- kind: hook
- core: cl
- spec: (none)
- summary: Revokes an existing DDI alert suppression.
- score: 4
hook useRevokeElectronicConsent
- file: src/cores/cl/hooks/useElectronicConsentMutation.ts:86
- kind: hook
- core: cl
- spec: (none)
- summary: Revoke an active consent.
- score: 1
hook useRevokeSafetyPlanShare
- file: src/cores/cl/hooks/useRevokeSafetyPlanShare.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Revoke an active safety plan share by setting status to ‘revoked’.
- score: 4
hook useRevokeTelehealthConsent
- file: src/cores/cl/hooks/useTelehealthConsents.ts:111
- kind: hook
- core: cl
- spec: (none)
- summary: Revoke a previously captured telehealth consent.
- returns: A whose sets and stores the reason. The append-only-revoke trigger blocks any further mutations of the revocation timestamp for non-admins. Invalidates the subtree on success.
- score: 4
hook useRiskScreeningDetail
- file: src/cores/cl/hooks/useRiskScreenings.ts:61
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch a single risk screening by ID.
- score: 4
hook useRiskScreeningsByChart
- file: src/cores/cl/hooks/useRiskScreenings.ts:34
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch all non-deleted risk screenings for a chart, newest first.
- score: 4
hook useRiskStratifications
- file: src/cores/cl/hooks/useRiskStratifications.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Hook to list risk stratifications for the current organization.
- score: 4
hook useRollbackMarketplaceImport
- file: src/cores/cl/hooks/useMarketplaceImports.ts:124
- kind: hook
- core: cl
- spec: (none)
- summary: Roll back a previously completed marketplace import.Deletes rows recorded in the import’s and updatesstatus to .
- score: 4
hook useRunReport
- file: src/cores/cl/hooks/useReportRuns.ts:149
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing run report.
- score: 1
hook useSafetyPlanPdf
- file: src/cores/cl/hooks/useSafetyPlanPdf.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing safety plan pdf.
- score: 1
hook useSafetyPlansByChart
- file: src/cores/cl/hooks/useSafetyPlans.ts:35
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch all non-deleted safety plans for a chart (all versions), newest first.
- score: 4
hook useSafetyPlanShares
- file: src/cores/cl/hooks/useSafetyPlanShares.ts:19
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch all shares for a safety plan, newest first.
- score: 4
hook useScheduleFollowUps
- file: src/cores/cl/hooks/useScheduleFollowUps.ts:33
- kind: hook
- core: cl
- spec: (none)
- summary: Schedule 24/48/72h follow-up appointments for high/imminent risk patients.Uses /platform/scheduling indirectly via pm_encounters insert for follow-upencounter requests. Only triggers for riskLevel ‘high’ or ‘imminent’.
- score: 4
hook useSdohScreeningsByChart
- file: src/cores/cl/hooks/useSdohScreenings.ts:29
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing sdoh screenings by chart.
- score: 1
hook useSignLocAssessment
- file: src/cores/cl/hooks/useLocAssessments.ts:175
- kind: hook
- core: cl
- spec: (none)
- summary: Sign / finalize a LOC assessment. Sets , ,, and (optionally) the override fields. Spec rule: when, an override reason + ≥20-charrationale are required (enforced in DB by trigger; we surface it here too).
- score: 4
hook useSignSafetyPlan
- file: src/cores/cl/hooks/useSafetyPlans.ts:258
- kind: hook
- core: cl
- spec: (none)
- summary: Capture a SignatureCanvas signature on a safety plan (Pattern A — Errata E-6).Updates patient_signature_data + patient_signed_at OR clinician_signature_data + clinician_signed_atbased on signerType.Requires: cl.safety_plan.sign (category: approve) permission at call site.
- score: 4
hook useSnapshotCohort
- file: src/cores/cl/hooks/cohorts/useCohortMembership.ts:102
- kind: hook
- core: cl
- spec: (none)
- summary: Materialize a snapshot for the active cohort version on a given as-of date.Inserts use the partial unique index for idempotency.
- score: 4
hook useSocialReferralsByChart
- file: src/cores/cl/hooks/useSocialReferrals.ts:30
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing social referrals by chart.
- score: 1
hook useSoftDeleteAllergy
- file: src/cores/cl/hooks/useAllergyMutation.ts:107
- kind: hook
- core: cl
- spec: (none)
- summary: Provides soft delete allergy queries and mutation actions scoped to the current organization.
- score: 4
hook useSoftDeleteAssessment
- file: src/cores/cl/hooks/useAssessmentMutation.ts:93
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing soft delete assessment.
- score: 1
hook useSoftDeleteCareTeamMember
- file: src/cores/cl/hooks/useCareTeams.ts:161
- kind: hook
- core: cl
- spec: (none)
- summary: Provides soft delete care team member queries and mutation actions scoped to the current organization.
- score: 4
hook useSoftDeleteConcurrentReview
- file: src/cores/cl/hooks/useConcurrentReviewMutation.ts:74
- kind: hook
- core: cl
- spec: (none)
- summary: Soft-delete a concurrent review.
- score: 4
hook useSoftDeleteConsent
- file: src/cores/cl/hooks/useConsents.ts:252
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing soft delete consent.
- score: 1
hook useSoftDeleteDiagnosis
- file: src/cores/cl/hooks/useDiagnoses.ts:206
- kind: hook
- core: cl
- spec: (none)
- summary: Soft-deletes a diagnosis with organization_id defense-in-depth.
- score: 4
hook useSoftDeleteGroupAttendance
- file: src/cores/cl/hooks/useGroupAttendance.ts:145
- kind: hook
- core: cl
- spec: (none)
- summary: Provides soft delete group attendance queries and mutation actions scoped to the current organization.
- score: 4
hook useSoftDeleteGroupCurriculum
- file: src/cores/cl/hooks/useGroupCurricula.ts:130
- kind: hook
- core: cl
- spec: (none)
- summary: Provides soft delete group curriculum queries and mutation actions scoped to the current organization.
- score: 4
hook useSoftDeleteGroupSession
- file: src/cores/cl/hooks/useGroupSessions.ts:202
- kind: hook
- core: cl
- spec: (none)
- summary: Provides soft delete group session queries and mutation actions scoped to the current organization.
- score: 4
hook useSoftDeleteIncident
- file: src/cores/cl/hooks/useIncidents.ts:204
- kind: hook
- core: cl
- spec: (none)
- summary: Provides soft delete incident queries and mutation actions scoped to the current organization.
- score: 4
hook useSoftDeletePeerEncounter
- file: src/cores/cl/hooks/usePeerEncounters.ts:183
- kind: hook
- core: cl
- spec: (none)
- summary: Soft-deletes a peer encounter record with organization_id defense-in-depth.
- score: 4
hook useSoftDeleteProblem
- file: src/cores/cl/hooks/useProblemMutation.ts:120
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing soft delete problem.
- score: 1
hook useSoftDeleteTreatmentGoal
- file: src/cores/cl/hooks/useTreatmentGoalMutations.ts:99
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing soft delete treatment goal.
- score: 1
hook useSoftDeleteTreatmentIntervention
- file: src/cores/cl/hooks/useTreatmentInterventionMutations.ts:99
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing soft delete treatment intervention.
- score: 1
hook useSoftDeleteTreatmentPlan
- file: src/cores/cl/hooks/useTreatmentPlanMutations.ts:99
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing soft delete treatment plan.
- score: 1
hook useStandingOrderExecutions
- file: src/cores/cl/hooks/useStandingOrderExecutions.ts:28
- kind: hook
- core: cl
- spec: (none)
- summary: List standing order executions with optional filters.
- score: 4
hook useStandingOrderProtocols
- file: src/cores/cl/hooks/useStandingOrderProtocols.ts:15
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing standing order protocols.
- score: 1
hook useStartAmbientSession
- file: src/cores/cl/ai-documentation/hooks/useAmbientSession.ts:102
- kind: hook
- core: cl
- spec: (none)
- summary: Creates a new ambient recording session.
- score: 4
hook useStartClinicalDraft
- file: src/cores/cl/hooks/useAgentClinicalDraft.ts:55
- kind: hook
- core: cl
- spec: (none)
- summary: Start a clinical draft run: invoke the edge function with .The server runs the fail-closed gate chain (flag, tenant ai-enabled, DSI disclosure,patient opt-out, SUD consent, PHI-lane) and creates the PF-128 clinical-tier artifact. is captured at hook-call time (React pattern, mirrors useStartIntakeRun)., , and are provided at mutation-call time. CL-36-EN-03 AC-1 (flag OFF → disabled) AC-2 (gates pass → drafted artifact)
- score: 4
hook useSuicideSuite
- file: src/cores/cl/hooks/blocks/useSuicideSuite.ts:92
- kind: hook
- core: cl
- spec: (none)
- summary: Resolve the suicide-suite context for the current org + patient — the age-routedinstrument, TJC overlay state, PF-96 crisis lines + cadence, and requiredness.
- score: 4
hook useSurfaceBlockDefinitions
- file: src/cores/cl/hooks/blocks/useSurfaceBlockDefinitions.ts:17
- kind: hook
- core: cl
- spec: (none)
- summary: React Query hook for the block definitions behind a set of resolved slugs.
- score: 4
hook useSurfaceDocumentationCompleteness
- file: src/cores/cl/hooks/completeness/useSurfaceDocumentationCompleteness.ts:24
- kind: hook
- core: cl
- spec: (none)
- summary: React Query hook for an encounter/surface’s documentation completeness.
- score: 4
hook useTefcaExchangeDetail
- file: src/cores/cl/hooks/useTefcaExchangeDetail.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches a single TEFCA exchange log record by ID.
- score: 4
hook useTefcaExchangeList
- file: src/cores/cl/hooks/useTefcaExchangeList.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches paginated TEFCA exchange log entries scoped to current organization.Supports status, direction, QHIN, purpose, and date range filters.Default sort: exchanged_at DESC (newest first per CONTEXT.md).
- score: 4
hook useTefcaExchangeMutation
- file: src/cores/cl/hooks/useTefcaExchangeMutation.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Inserts a new TEFCA exchange log entry.Organization ID is enforced from context.
- score: 4
hook useTefcaJurisdictionDefaults
- file: src/cores/cl/hooks/useTefcaJurisdictionDefaults.ts:17
- kind: hook
- core: cl
- spec: (none)
- summary: Returns TEFCA operational settings for the current organization,falling back to spec-defined defaults when not configured.
- score: 4
hook useTelehealthComplianceMetrics
- file: src/cores/cl/hooks/useTelehealthComplianceMetrics.ts:51
- kind: hook
- core: cl
- spec: (none)
- summary: Compliance metrics for the current organization’s telehealth dashboard.
- returns: result whose is a . The hook is disabled until an organization is selected; on a backend error the query enters the error state so the dashboard can show a retry control rather than silently rendering zeros.
- score: 4
hook useTelehealthConsents
- file: src/cores/cl/hooks/useTelehealthConsents.ts:35
- kind: hook
- core: cl
- spec: (none)
- summary: List telehealth consents for one patient chart, newest first.
- params:
- chartId — Patient chart id to scope the consent list to.
- returns: A TanStack result yielding an ordered (revoked rows included; consumers decide how to render them). Disabled until both and the current organization id are available.
- score: 4
hook useTelehealthDocumentationEnabled
- file: src/cores/cl/hooks/useTelehealthDocumentationEnabled.ts:51
- kind: hook
- core: cl
- spec: (none)
- summary: Reads the four CL-24 telehealth feature flags from forthe current organization.
- returns: A TanStack result. is the four-flag record. When no row exists for the org (brand-new tenant or pre-CL-24 install) the resolver returns (, validity=365 days, both block flags ) so consumers never have to special-case and stage-1 (flag-off) is the safe default.
- score: 4
hook useTelehealthMetadata
- file: src/cores/cl/hooks/useVirtualGroupSessions.ts:64
- kind: hook
- core: cl
- spec: (none)
- summary: Fetches telehealth metadata for a specific group session.Requires cl_group_session_telehealth_metadata table (post-migration).
- score: 4
hook useTelehealthSession
- file: src/cores/cl/hooks/useTelehealthSessions.ts:72
- kind: hook
- core: cl
- spec: (none)
- summary: Single telehealth session detail by id, scoped to the current organization.
- score: 4
hook useTelehealthSessions
- file: src/cores/cl/hooks/useTelehealthSessions.ts:39
- kind: hook
- core: cl
- spec: (none)
- summary: Paginated list of telehealth sessions in the current organization,newest first, capped at 25.
- params:
- filters — Optional filter set (date range, modality, state involvement, missing-safety-checklist). Filters compose AND-wise except , which matches when either OR equals the value.
- score: 4
hook useTemperatureUnit
- file: src/cores/cl/hooks/useTemperatureUnit.ts:46
- kind: hook
- core: cl
- spec: (none)
- summary: Hook providing the org’s temperature unit preference and conversion utilities.DB column is always (Celsius). Conversion is UI-layer only.
- score: 4
hook useToggleStandingOrderProtocol
- file: src/cores/cl/hooks/useStandingOrderMutations.ts:72
- kind: hook
- core: cl
- spec: (none)
- summary: Provides toggle standing order protocol queries and mutation actions scoped to the current organization.
- score: 4
hook useTransitionsByChart
- file: src/cores/cl/hooks/useTransitions.ts:34
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing transitions by chart.
- score: 1
hook useTreatmentGoalBank
- file: src/cores/cl/hooks/useTreatmentGoalBank.ts:12
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing treatment goal bank.
- score: 1
hook useTreatmentGoalProgress
- file: src/cores/cl/hooks/useTreatmentGoalProgress.ts:12
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing treatment goal progress.
- score: 1
hook useTreatmentGoals
- file: src/cores/cl/hooks/useTreatmentGoals.ts:12
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing treatment goals.
- score: 1
hook useTreatmentInterventions
- file: src/cores/cl/hooks/useTreatmentInterventions.ts:12
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing treatment interventions.
- score: 1
hook useTreatmentPlanDetail
- file: src/cores/cl/hooks/useTreatmentPlanDetail.ts:12
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing treatment plan detail.
- score: 1
hook useTreatmentPlanList
- file: src/cores/cl/hooks/useTreatmentPlanList.ts:14
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing treatment plan list.
- score: 1
hook useTreatmentPlanPdf
- file: src/cores/cl/hooks/useTreatmentPlanPdf.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing treatment plan pdf.
- score: 1
hook useTreatmentPlansByChart
- file: src/cores/cl/hooks/useTreatmentPlansByChart.ts:12
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing treatment plans by chart.
- score: 1
hook useTreatmentPlanTemplateList
- file: src/cores/cl/hooks/useTreatmentPlanTemplateList.ts:12
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing treatment plan template list.
- score: 1
hook useTriggerFamilyNotification
- file: src/cores/cl/hooks/useFamilyNotifications.ts:181
- kind: hook
- core: cl
- spec: (none)
- summary: Provides trigger family notification queries and mutation actions scoped to the current organization.
- score: 4
hook useUdsInterpretationNotes
- file: src/cores/cl/hooks/useUdsResults.ts:176
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch interpretation notes for a UDS order.
- score: 4
hook useUdsOrderDetail
- file: src/cores/cl/hooks/useUdsOrders.ts:65
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch a single UDS order by ID.
- score: 4
hook useUdsOrdersByChart
- file: src/cores/cl/hooks/useUdsOrders.ts:26
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch UDS orders for a chart, sorted by ordered_at descending (per CONTEXT.md).Supports optional status and date range filters.
- score: 4
hook useUdsResultsByOrder
- file: src/cores/cl/hooks/useUdsResults.ts:36
- kind: hook
- core: cl
- spec: (none)
- summary: Fetch all results for a UDS order, sorted by drug_class.
- score: 4
hook useUMMetrics
- file: src/cores/cl/hooks/useUMMetrics.ts:12
- kind: hook
- core: cl
- spec: (none)
- summary: UM dashboard metrics for the active organization.
- score: 4
hook useUnacknowledgedAlertCount
- file: src/cores/cl/hooks/useCdsAlerts.ts:40
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing unacknowledged alert count.
- score: 1
hook useUpdate988Transfer
- file: src/cores/cl/hooks/use988Transfers.ts:79
- kind: hook
- core: cl
- spec: (none)
- summary: Provides update988 transfer queries and mutation actions scoped to the current organization.
- score: 4
hook useUpdateAftercarePlan
- file: src/cores/cl/hooks/useAftercarePlans.ts:121
- kind: hook
- core: cl
- spec: (none)
- summary: Provides update aftercare plan queries and mutation actions scoped to the current organization.
- score: 4
hook useUpdateAISessionStatus
- file: src/cores/cl/ai-documentation/hooks/useAIDocumentationSession.ts:107
- kind: hook
- core: cl
- spec: (none)
- summary: Updates an AI documentation session status (cancel, draft_generated, etc.).
- score: 4
hook useUpdateAllergy
- file: src/cores/cl/hooks/useAllergyMutation.ts:57
- kind: hook
- core: cl
- spec: (none)
- summary: Provides update allergy queries and mutation actions scoped to the current organization.
- score: 4
hook useUpdateAmbientSession
- file: src/cores/cl/ai-documentation/hooks/useAmbientSession.ts:127
- kind: hook
- core: cl
- spec: (none)
- summary: Updates an ambient session (e.g., stop recording, update status).
- score: 4
hook useUpdateAssessment
- file: src/cores/cl/hooks/useAssessmentMutation.ts:51
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing update assessment.
- score: 1
hook useUpdateAssessmentTemplate
- file: src/cores/cl/hooks/useAssessmentTemplateMutation.ts:50
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for updating an existing assessment template.
- score: 1
hook useUpdateCareTeamMember
- file: src/cores/cl/hooks/useCareTeams.ts:110
- kind: hook
- core: cl
- spec: (none)
- summary: Provides update care team member queries and mutation actions scoped to the current organization.
- score: 4
hook useUpdateChecklistItem
- file: src/cores/cl/hooks/useDischargeChecklists.ts:72
- kind: hook
- core: cl
- spec: (none)
- summary: Provides update checklist item queries and mutation actions scoped to the current organization.
- score: 4
hook useUpdateClinicalStandingOrder
- file: src/cores/cl/hooks/useClinicalStandingOrders.ts:86
- kind: hook
- core: cl
- spec: (none)
- summary: Update a clinical standing order (renew, retire, edit).
- score: 4
hook useUpdateConcurrentReview
- file: src/cores/cl/hooks/useConcurrentReviewMutation.ts:44
- kind: hook
- core: cl
- spec: (none)
- summary: Update a concurrent review.
- score: 1
hook useUpdateConsent
- file: src/cores/cl/hooks/useConsents.ts:97
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing update consent.
- score: 1
hook useUpdateDesignatedContact
- file: src/cores/cl/hooks/useFamilyNotifications.ts:90
- kind: hook
- core: cl
- spec: (none)
- summary: Provides update designated contact queries and mutation actions scoped to the current organization.
- score: 4
hook useUpdateDiagnosis
- file: src/cores/cl/hooks/useDiagnoses.ts:157
- kind: hook
- core: cl
- spec: (none)
- summary: Updates an existing diagnosis with organization_id defense-in-depth.
- score: 4
hook useUpdateDsiDisclosure
- file: src/cores/cl/dsi-disclosures/hooks/useDsiDisclosures.ts:49
- kind: hook
- core: cl
- spec: (none)
- summary: Save edits to a disclosure’s source-attribute fields (does not change status).
- score: 4
hook useUpdateElectronicConsent
- file: src/cores/cl/hooks/useElectronicConsentMutation.ts:53
- kind: hook
- core: cl
- spec: (none)
- summary: Update an existing electronic consent (e.g., draft → active).
- score: 4
hook useUpdateEnvironmentalAssessment
- file: src/cores/cl/hooks/useEnvironmentalAssessments.ts:139
- kind: hook
- core: cl
- spec: (none)
- summary: Update an environmental assessment. Cannot change organization_id or site_id.
- score: 4
hook useUpdateGroupAttendance
- file: src/cores/cl/hooks/useGroupAttendance.ts:103
- kind: hook
- core: cl
- spec: (none)
- summary: Provides update group attendance queries and mutation actions scoped to the current organization.
- score: 4
hook useUpdateGroupCurriculum
- file: src/cores/cl/hooks/useGroupCurricula.ts:94
- kind: hook
- core: cl
- spec: (none)
- summary: Provides update group curriculum queries and mutation actions scoped to the current organization.
- score: 4
hook useUpdateGroupSession
- file: src/cores/cl/hooks/useGroupSessions.ts:138
- kind: hook
- core: cl
- spec: (none)
- summary: Provides update group session queries and mutation actions scoped to the current organization.
- score: 4
hook useUpdateInbasketItem
- file: src/cores/cl/hooks/useInbasketItemMutation.ts:25
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing update inbasket item.
- score: 1
hook useUpdateIncident
- file: src/cores/cl/hooks/useIncidents.ts:139
- kind: hook
- core: cl
- spec: (none)
- summary: Provides update incident queries and mutation actions scoped to the current organization.
- score: 4
hook useUpdateIntakeAssessment
- file: src/cores/cl/hooks/useIntakeAssessmentMutation.ts:76
- kind: hook
- core: cl
- spec: (none)
- summary: Updates a draft intake assessment.
- score: 4
hook useUpdateInventoryTransaction
- file: src/cores/cl/hooks/useControlledSubstanceInventory.ts:123
- kind: hook
- core: cl
- spec: (none)
- summary: Provides update inventory transaction queries and mutation actions scoped to the current organization.
- score: 4
hook useUpdateLethalMeans
- file: src/cores/cl/hooks/useLethalMeansCounseling.ts:25
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing update lethal means.
- score: 1
hook useUpdateMultiPartyEncounter
- file: src/cores/cl/hooks/useMultiPartyEncounters.ts:150
- kind: hook
- core: cl
- spec: (none)
- summary: Updates an existing multi-party encounter.Pre-migration: throws error (table does not exist yet).
- score: 4
hook useUpdateOrderSetTemplate
- file: src/cores/cl/hooks/useOrderSetTemplates.ts:93
- kind: hook
- core: cl
- spec: (none)
- summary: Update an order set template (draft edits, approval, retirement).
- score: 4
hook useUpdateOutcomeMeasure
- file: src/cores/cl/hooks/useOutcomeMeasureMutation.ts:89
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing update outcome measure.
- score: 1
hook useUpdatePeerEncounter
- file: src/cores/cl/hooks/usePeerEncounters.ts:142
- kind: hook
- core: cl
- spec: (none)
- summary: Updates an existing peer encounter record with organization_id defense-in-depth.
- score: 4
hook useUpdatePeerSupervision
- file: src/cores/cl/hooks/usePeerSupervision.ts:112
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing update peer supervision.
- score: 1
hook useUpdateProblem
- file: src/cores/cl/hooks/useProblemMutation.ts:71
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing update problem.
- score: 1
hook useUpdateProblemStatus
- file: src/cores/cl/hooks/useProblemMutation.ts:152
- kind: hook
- core: cl
- spec: (none)
- summary: CL-46: Status transition (active → resolved/inactive/chronic/entered_in_error).The DB BEFORE-UPDATE trigger enforces the state-machine; the AFTER-UPDATEtrigger appends to cl_problem_history.
- score: 4
hook useUpdateReferenceRange
- file: src/cores/cl/hooks/useReferenceRangeMutations.ts:43
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing update reference range.
- score: 1
hook useUpdateReportDefinition
- file: src/cores/cl/hooks/useReportDefinitions.ts:133
- kind: hook
- core: cl
- spec: (none)
- summary: Updates a report definition within the active organization and refreshes caches.
- score: 4
hook useUpdateReviewAppeal
- file: src/cores/cl/hooks/useReviewAppeals.ts:64
- kind: hook
- core: cl
- spec: (none)
- summary: Update a review appeal.
- score: 1
hook useUpdateReviewSchedule
- file: src/cores/cl/hooks/useReviewSchedules.ts:61
- kind: hook
- core: cl
- spec: (none)
- summary: Update an existing review schedule (admin only — DB enforces).
- score: 4
hook useUpdateRiskScreening
- file: src/cores/cl/hooks/useRiskScreenings.ts:173
- kind: hook
- core: cl
- spec: (none)
- summary: Update a risk screening (e.g., correct a field after save).Cannot change organization_id or chart_id.
- score: 4
hook useUpdateSafetyPlan
- file: src/cores/cl/hooks/useSafetyPlans.ts:138
- kind: hook
- core: cl
- spec: (none)
- summary: Update safety plan content fields. Cannot change version, status, or organization_id.
- score: 4
hook useUpdateSocialReferral
- file: src/cores/cl/hooks/useSocialReferrals.ts:106
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing update social referral.
- score: 1
hook useUpdateStandingOrderProtocol
- file: src/cores/cl/hooks/useStandingOrderMutations.ts:43
- kind: hook
- core: cl
- spec: (none)
- summary: Provides update standing order protocol queries and mutation actions scoped to the current organization.
- score: 4
hook useUpdateTelehealthMetadata
- file: src/cores/cl/hooks/useVirtualGroupSessions.ts:144
- kind: hook
- core: cl
- spec: (none)
- summary: Updates telehealth metadata for a group session.Requires cl_group_session_telehealth_metadata table (post-migration).Currently a placeholder that updates custom_fields on the session.
- score: 4
hook useUpdateTransition
- file: src/cores/cl/hooks/useTransitions.ts:156
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing update transition.
- score: 1
hook useUpdateTreatmentGoal
- file: src/cores/cl/hooks/useTreatmentGoalMutations.ts:49
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing update treatment goal.
- score: 1
hook useUpdateTreatmentIntervention
- file: src/cores/cl/hooks/useTreatmentInterventionMutations.ts:49
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing update treatment intervention.
- score: 1
hook useUpdateTreatmentPlan
- file: src/cores/cl/hooks/useTreatmentPlanMutations.ts:54
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing update treatment plan.
- score: 1
hook useUpdateUdsOrder
- file: src/cores/cl/hooks/useUdsOrders.ts:129
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing update uds order.
- score: 1
hook useUpdateUdsResult
- file: src/cores/cl/hooks/useUdsResults.ts:100
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing update uds result.
- score: 1
hook useUpsertAssessmentSection
- file: src/cores/cl/hooks/useAssessmentSectionMutation.ts:16
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing upsert assessment section.
- score: 1
hook useUpsertTemplateSection
- file: src/cores/cl/hooks/useAssessmentTemplateSectionMutation.ts:20
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for creating or updating a template section.
- score: 1
hook useVirtualGroupSessionsList
- file: src/cores/cl/hooks/useVirtualGroupSessions.ts:46
- kind: hook
- core: cl
- spec: (none)
- summary: Lists group sessions, optionally filtered by modality (virtual/hybrid/in_person).Wraps the existing CL-14 useGroupSessionsList and applies client-side modalityfiltering. Once the column is added to cl_group_sessions via migration,server-side filtering can be added.
- score: 4
hook useVitalSignsList
- file: src/cores/cl/hooks/useVitalSignsList.ts:18
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing vital signs list.
- score: 1
hook useVitalSignsMutation
- file: src/cores/cl/hooks/useVitalSignsMutation.ts:13
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing vital signs mutation.
- score: 1
hook useWaiveChecklist
- file: src/cores/cl/hooks/useDischargeChecklists.ts:212
- kind: hook
- core: cl
- spec: (none)
- summary: Provides waive checklist queries and mutation actions scoped to the current organization.
- score: 4
hook useWarmHandoffsByChart
- file: src/cores/cl/hooks/useWarmHandoffs.ts:25
- kind: hook
- core: cl
- spec: (none)
- summary: Hook for managing warm handoffs by chart.
- score: 1
Components
component ActiveMedicationsCard
- file: src/cores/cl/components/summary/ActiveMedicationsCard.tsx:23
- kind: component
- core: cl
- spec: (none)
- summary: Renders the active medications card interface.
- score: 2
component AddParticipantDialog
- file: src/cores/cl/components/multi-party/AddParticipantDialog.tsx:61
- kind: component
- core: cl
- spec: CL-14
- summary: Dialog for adding a participant to an existing multi-party clinicalencounter (family therapy, couples session, MDT, court-ordered review).Accepts either an internal participant (chart id for a patient, staffuser id for clinician) or an external participant identified by free-text name — the form-level refinement enforces that at least oneidentifier is supplied before submit.
- params:
- props — Dialog props. - : Whether the dialog is open. - : Callback fired when the dialog wants to close. - : to which the participant is being added.
- score: 5
component AddProblemDialog
- file: src/cores/cl/components/problem-list/AddProblemDialog.tsx:205
- kind: component
- core: cl
- spec: CL-46
- summary: Add-problem dialog (responsive: full-screen Sheet on mobile, Dialog ondesktop). Hosts the create form, force-remounts on each open so theform state is always fresh, and is permission-gated to so the form never renders for read-only users.
- params:
- props — Dialog props. - : the new problem will be attached to. - : The patient owning the chart. - : Whether the dialog is open. - : Callback fired when the dialog wants to close.
- score: 5
component AdherenceFormDialog
- file: src/cores/cl/components/AdherenceFormDialog.tsx:26
- kind: component
- core: cl
- spec: (none)
- summary: Renders the adherence form dialog interface.
- score: 2
component AdherenceList
- file: src/cores/cl/components/AdherenceList.tsx:34
- kind: component
- core: cl
- spec: (none)
- summary: Renders the adherence list interface.
- score: 2
component AftercarePlanFormDialog
- file: src/cores/cl/components/discharge/AftercarePlanFormDialog.tsx:48
- kind: component
- core: cl
- spec: (none)
- summary: Utility for aftercare plan form dialog.
- score: 1
component AIAttestationCheckbox
- file: src/cores/cl/ai-documentation/components/AIAttestationCheckbox.tsx:20
- kind: component
- core: cl
- spec: (none)
- summary: Attestation checkbox for clinician review of AI-generated content.
- score: 2
component AIAttributionBadge
- file: src/cores/cl/ai-documentation/components/AIAttributionBadge.tsx:20
- kind: component
- core: cl
- spec: (none)
- summary: Visual indicator for AI-assisted documentation status.
- score: 2
component AIDocumentationSettingsCard
- file: src/cores/cl/ai-documentation/components/AIDocumentationSettingsCard.tsx:26
- kind: component
- core: cl
- spec: (none)
- summary: Admin settings card for AI-assisted clinical documentation.
- score: 2
component AiDraftBadge
- file: src/cores/cl/components/AiDraftBadge.tsx:18
- kind: component
- core: cl
- spec: (none)
- summary: Utility for ai draft badge.
- score: 1
component AIDraftTreatmentPlanButton
- file: src/cores/cl/ai-treatment-plan/components/AIDraftTreatmentPlanButton.tsx:44
- kind: component
- core: cl
- spec: (none)
- summary: AI draft trigger button for the Goals card header on the TreatmentPlanDetailPage.Only visible when plan.status === ‘draft’ and aiEnabled (controlled by parent).Permission-gated: requires cl.treatment_plan.create.
- score: 2
component AllergyAlertInlinePanel
- file: src/cores/cl/components/medications/AllergyAlertInlinePanel.tsx:26
- kind: component
- core: cl
- spec: (none)
- summary: Shows the highest-priority allergy warning and override action for medication workflows.
- score: 2
component AllergyAlertOverrideDialog
- file: src/cores/cl/components/AllergyAlertOverrideDialog.tsx:31
- kind: component
- core: cl
- spec: (none)
- summary: Captures and persists a clinician override for a drug-allergy warning.
- score: 2
component AllergyFormDialog
- file: src/cores/cl/components/AllergyFormDialog.tsx:51
- kind: component
- core: cl
- spec: (none)
- summary: Renders the add/edit dialog for coded allergy and adverse-reaction rows.
- score: 2
component AllergyNkaBanner
- file: src/cores/cl/components/AllergyNkaBanner.tsx:41
- kind: component
- core: cl
- spec: CL-45
- summary: Renders an NKA / NKDA attestation banner for the patient chart’s allergysection. Shown when the chart has no active allergic-reaction rows: promptsa permitted clinician to confirm “No Known Allergies” (NKA) or “No KnownDrug Allergies” (NKDA), persisting the attestation as a sentinel row. Switches to a success card once an attestation exists.
- params:
- props — Banner props. - : the attestation will be written against. - : Current allergy list for the chart; the component inspects and to decide which state to render.
- score: 5
component AmbientRecordingButton
- file: src/cores/cl/ai-documentation/components/AmbientRecordingButton.tsx:38
- kind: component
- core: cl
- spec: (none)
- summary: Ambient recording toggle button with consent and permission gates.
- score: 2
component AmbientReviewDetailPage
- file: src/cores/cl/pages/AmbientReviewDetailPage.tsx:66
- kind: component
- core: cl
- spec: (none)
- summary: Detail page for reviewing a single ambient session.
- score: 2
component AmbientReviewQueuePage
- file: src/cores/cl/pages/AmbientReviewQueuePage.tsx:95
- kind: component
- core: cl
- spec: (none)
- summary: Ambient review queue page listing sessions for review.
- score: 2
component AmbientSettingsSection
- file: src/cores/cl/ai-documentation/components/settings/AmbientSettingsSection.tsx:29
- kind: component
- core: cl
- spec: (none)
- summary: Admin card for ambient-specific settings (retention, vendor, enable/disable).
- score: 2
component AppealsSection
- file: src/cores/cl/components/concurrent-reviews/AppealsSection.tsx:24
- kind: component
- core: cl
- spec: (none)
- summary: Appeals list and inline create form for a concurrent review.
- score: 2
component ArcosExportButton
- file: src/cores/cl/components/ArcosExportButton.tsx:20
- kind: component
- core: cl
- spec: (none)
- summary: Renders the arcos export button interface.
- score: 2
component ASI6AssessmentFormDialog
- file: src/cores/cl/components/cod/ASI6AssessmentFormDialog.tsx:92
- kind: component
- core: cl
- spec: CL-31
- summary: Co-occurring-disorder (COD) assessment form dialog. Hosts the ASI-6,BASIS-32, and GAIN-SS instruments in an accordion-grouped layout (not awizard) so the clinician can move between domains freely; supports bothcreate and edit/amend flows. SUD-related domains (Alcohol / Drug) carry aninfo tooltip noting that disclosure of SUD content is gated by 42 CFRPart 2 consent, not the act of authoring the assessment.
- params:
- props — Dialog props. - : Whether the dialog is open. - : Callback fired when the dialog wants to close. - : the assessment is being authored against. - : Existing row when editing or amending; / for a new assessment. - : Fired after a successful create so the parent can prompt the user to set the chart’s COD flag.
- score: 5
component AssessmentExpirationDashboardPage
- file: src/cores/cl/pages/AssessmentExpirationDashboardPage.tsx:69
- kind: component
- core: cl
- spec: (none)
- summary: Utility for assessment expiration dashboard page.
- score: 1
component AssessmentForm
- file: src/cores/cl/components/AssessmentForm.tsx:59
- kind: component
- core: cl
- spec: (none)
- summary: Utility for assessment form.
- score: 1
component AssessmentSignDialog
- file: src/cores/cl/components/AssessmentSignDialog.tsx:30
- kind: component
- core: cl
- spec: (none)
- summary: Renders the assessment sign dialog interface.
- score: 2
component AssessmentTemplateEditor
- file: src/cores/cl/components/AssessmentTemplateEditor.tsx:41
- kind: component
- core: cl
- spec: (none)
- summary: Assessment template editor dialog.
- score: 2
component AssessmentTemplateSectionForm
- file: src/cores/cl/components/AssessmentTemplateSectionForm.tsx:29
- kind: component
- core: cl
- spec: (none)
- summary: Section form dialog for adding/editing template sections.
- score: 2
component AssessmentTemplatesPage
- file: src/cores/cl/pages/AssessmentTemplatesPage.tsx:29
- kind: component
- core: cl
- spec: (none)
- summary: Assessment templates management page.
- score: 2
component AssessmentTemplateVersionHistory
- file: src/cores/cl/components/AssessmentTemplateVersionHistory.tsx:25
- kind: component
- core: cl
- spec: (none)
- summary: Version history dialog for assessment templates.
- score: 2
component BASIS32Section
- file: src/cores/cl/components/cod/BASIS32Section.tsx:54
- kind: component
- core: cl
- spec: CL-31
- summary: BASIS-32 subscale section embedded inside the COD assessment dialog.Renders all 5 subscales as collapsible accordion panels with 0–4 itemratings, computes per-subscale and overall means as the clinician scores,and surfaces a severity badge derived from the overall mean.
- params:
- props — Section props. - : react-hook-form control object from the parent form. - : from the parent form, used to recompute means. - : from the parent form for free-text subscale notes.
- score: 5
component BillingOverrideRuleFormDialog
- file: src/cores/cl/components/BillingOverrideRuleFormDialog.tsx:113
- kind: component
- core: cl
- spec: (none)
- summary: Utility for billing override rule form dialog.
- score: 1
component BillingOverrideRulesPage
- file: src/cores/cl/pages/BillingOverrideRulesPage.tsx:91
- kind: component
- core: cl
- spec: (none)
- summary: Utility for billing override rules page.
- score: 1
component BiometricsForm
- file: src/cores/cl/components/BiometricsForm.tsx:78
- kind: component
- core: cl
- spec: (none)
- summary: Renders the biometrics form interface with unit-aware inputs.
- score: 2
component BreakGlassDialog
- file: src/cores/cl/components/BreakGlassDialog.tsx:28
- kind: component
- core: cl
- spec: (none)
- summary: Renders the break glass dialog interface.
- score: 2
component BreakGlassReviewDialog
- file: src/cores/cl/components/audit-dashboard/BreakGlassReviewDialog.tsx:28
- kind: component
- core: cl
- spec: (none)
- summary: Dialog for reviewing a break-glass PHI access event.
- score: 2
component BulkApproveConfirmDialog
- file: src/cores/cl/components/group-encounter-generation/BulkApproveConfirmDialog.tsx:31
- kind: component
- core: cl
- spec: (none)
- summary: Confirmation dialog for bulk approving encounter generations.
- score: 2
component BulkCosignDialog
- file: src/cores/cl/components/BulkCosignDialog.tsx:31
- kind: component
- core: cl
- spec: (none)
- summary: Renders the bulk cosign dialog interface.
- score: 2
component BundleItemList
- file: src/cores/cl/components/marketplace/BundleItemList.tsx:31
- kind: component
- core: cl
- spec: (none)
- summary: Displays a list of items within a marketplace bundle.Renders skeleton loaders while data is loading, shows an empty state whenno items exist, and displays a list of bundle items with their type labels.Used in bundle detail pages and import preview dialogs.
- params:
- items — Array of marketplace bundle items to display. Each item must have id, item_key (display name), and item_type (template type).
- isLoading — Whether the items are currently being fetched. Shows skeleton placeholders when true.
- returns: A JSX element showing the bundle items list or appropriate fallback.
- score: 2
component CaptureConsentSignatureDialog
- file: src/cores/cl/components/CaptureConsentSignatureDialog.tsx:54
- kind: component
- core: cl
- spec: CL-11
- summary: Dialog for recording a patient signature on a consent (#2009). Renders the or variant per and writes via, closing on success.
- score: 3
component CareGapWorkListPage
- file: src/cores/cl/pages/population-health/CareGapWorkListPage.tsx:45
- kind: component
- core: cl
- spec: (none)
- summary: Utility for care gap work list page.
- score: 1
component CaregiverParticipationSection
- file: src/cores/cl/components/CaregiverParticipationSection.tsx:43
- kind: component
- core: cl
- spec: (none)
- summary: Renders the caregiver participation section interface.
- score: 2
component CdaConsentBanner
- file: src/cores/cl/components/cda/CdaConsentBanner.tsx:45
- kind: component
- core: cl
- spec: CL-48
- summary: 42 CFR Part 2 consent-status banner shown above CDA generation. Surfaceswhether the patient has an active SUD-disclosure consent so the cliniciansees up-front that SUD-related diagnoses, MAT/MOUD medications, andcounseling notes will be filtered when consent is missing (FR-2.1 / FR-2.2).
- params:
- props — Banner props. - : = active SUD consent, = no active consent (data will be filtered), = still loading. - : Render a skeleton-style message while the consent lookup is in flight.
- score: 5
component CdaDocumentHistory
- file: src/cores/cl/components/cda/CdaDocumentHistory.tsx:55
- kind: component
- core: cl
- spec: CL-48
- summary: List of previously generated C-CDA documents for a chart. Rendersskeletons while loading, an empty state when no documents exist, and anaccessible single-select list otherwise. Selecting a row drives theneighboring preview pane via .
- params:
- props — History props. - : Documents to render, or while loading. - : Whether the parent query is still in flight. - : to mark as the active row. - : Callback invoked with the chosen document row.
- score: 5
component CdaDocumentPreview
- file: src/cores/cl/components/cda/CdaDocumentPreview.tsx:44
- kind: component
- core: cl
- spec: CL-48
- summary: Read-only preview of a generated C-CDA document. Shows validation status(valid / invalid / pending), an explicit 42 CFR Part 2 indicator when thepayload contains SUD data, the transmission status badge, and the raw XMLbody — satisfying NFR-4 (preview-before-transmit).
- params:
- props — Preview props. - : The row to render.
- score: 5
component CdaDocumentTypeSelector
- file: src/cores/cl/components/cda/CdaDocumentTypeSelector.tsx:53
- kind: component
- core: cl
- spec: CL-48
- summary: Accessible radio-group selector for the C-CDA document type. Lets theclinician pick between Continuity-of-Care (CCD), Discharge Summary, andReferral Note before generating the document, with a short descriptionunder each label to clarify the intended downstream audience.
- params:
- props — Selector props. - : Currently selected CDA document type. - : Invoked with the newly selected type.
- score: 5
component CdsAlertRationale
- file: src/cores/cl/components/CdsAlertRationale.tsx:25
- kind: component
- core: cl
- spec: (none)
- summary: Renders the AI “Explain this alert” control and rationale for a CDS alert.
- score: 2
component CdsAlertsPanel
- file: src/cores/cl/components/CdsAlertsPanel.tsx:56
- kind: component
- core: cl
- spec: (none)
- summary: Renders the cds alerts panel interface.
- score: 2
component CdsAlertsSummaryCard
- file: src/cores/cl/components/summary/CdsAlertsSummaryCard.tsx:23
- kind: component
- core: cl
- spec: (none)
- summary: Utility for cds alerts summary card.
- score: 1
component CdsAnalyticsDashboardPage
- file: src/cores/cl/pages/CdsAnalyticsDashboardPage.tsx:33
- kind: component
- core: cl
- spec: (none)
- summary: Utility for cds analytics dashboard page.
- score: 1
component CdsHardStopDialog
- file: src/cores/cl/components/CdsHardStopDialog.tsx:30
- kind: component
- core: cl
- spec: (none)
- summary: Utility for cds hard stop dialog.
- score: 1
component CdsRulesListPage
- file: src/cores/cl/pages/CdsRulesListPage.tsx:517
- kind: component
- core: cl
- spec: (none)
- summary: Utility for cds rules list page.
- score: 1
component ChartAllergiesSection
- file: src/cores/cl/components/ChartAllergiesSection.tsx:62
- kind: component
- core: cl
- spec: CL-45
- summary: Allergy management section for the patient chart. Lists active andinactive allergies with severity badges, surfaces the NKA / NKDAattestation banner when nothing is documented, and exposes add / edit /soft-delete via . Inactive (resolved or entered-in-error)allergies are kept visible for clinical traceability.
- params:
- props — Section props. - : whose allergies should be loaded and mutated.
- score: 5
component ChartAllergyAlertStrip
- file: src/cores/cl/components/ChartAllergyAlertStrip.tsx:48
- kind: component
- core: cl
- spec: (none)
- summary: Sticky safety strip rendered below the patient banner on the chart page.
- score: 2
component ChartAssessmentsSection
- file: src/cores/cl/components/ChartAssessmentsSection.tsx:74
- kind: component
- core: cl
- spec: (none)
- summary: Renders the chart assessments section interface.
- score: 2
component ChartCareTeamSection
- file: src/cores/cl/components/ChartCareTeamSection.tsx:299
- kind: component
- core: cl
- spec: (none)
- summary: Utility for chart care team section.
- score: 1
component ChartConsentsSection
- file: src/cores/cl/components/ChartConsentsSection.tsx:349
- kind: component
- core: cl
- spec: (none)
- summary: Utility for chart consents section.
- score: 1
component ChartContextSidebar
- file: src/cores/cl/components/ChartContextSidebar.tsx:68
- kind: component
- core: cl
- spec: (none)
- summary: Renders the chart context sidebar interface.
- score: 2
component ChartDischargeSection
- file: src/cores/cl/components/ChartDischargeSection.tsx:66
- kind: component
- core: cl
- spec: (none)
- summary: Renders the chart discharge section interface.
- score: 2
component ChartDisclosureLogSection
- file: src/cores/cl/components/ChartDisclosureLogSection.tsx:315
- kind: component
- core: cl
- spec: (none)
- summary: Orchestrates disclosure-log listing, entry creation, and accounting-of-disclosures export.
- score: 2
component ChartDocumentationBlocksSection
- file: src/cores/cl/components/ChartDocumentationBlocksSection.tsx:49
- kind: component
- core: cl
- spec: (none)
- summary: Render the Documentation Blocks section for a patient chart.
- score: 2
component ChartExportDialog
- file: src/cores/cl/components/ChartExportDialog.tsx:66
- kind: component
- core: cl
- spec: (none)
- summary: Renders the chart export dialog interface.
- score: 2
component ChartLabOrdersSection
- file: src/cores/cl/components/ChartLabOrdersSection.tsx:53
- kind: component
- core: cl
- spec: (none)
- summary: Utility for chart lab orders section.
- score: 1
component ChartLabResultsSection
- file: src/cores/cl/components/ChartLabResultsSection.tsx:45
- kind: component
- core: cl
- spec: (none)
- summary: Shows chart lab results, abnormality badges, and per-code trend drill-down.
- score: 2
component ChartListPage
- file: src/cores/cl/pages/ChartListPage.tsx:27
- kind: component
- core: cl
- spec: (none)
- summary: Utility for chart list page.
- score: 1
component ChartMedicationsSection
- file: src/cores/cl/components/ChartMedicationsSection.tsx:81
- kind: component
- core: cl
- spec: (none)
- summary: Utility for chart medications section.
- score: 1
component ChartMobileNav
- file: src/cores/cl/components/ChartSideNav.tsx:174
- kind: component
- core: cl
- spec: (none)
- summary: Mobile: horizontal grouped tab selector using the same nav groups
- score: 2
component ChartOutcomesSection
- file: src/cores/cl/components/ChartOutcomesSection.tsx:76
- kind: component
- core: cl
- spec: (none)
- summary: Utility for chart outcomes section.
- score: 1
component ChartPeerSection
- file: src/cores/cl/components/ChartPeerSection.tsx:67
- kind: component
- core: cl
- spec: (none)
- summary: Renders the chart peer section interface.
- score: 2
component ChartProgressNotesSection
- file: src/cores/cl/components/ChartProgressNotesSection.tsx:54
- kind: component
- core: cl
- spec: (none)
- summary: Renders the chart progress notes section interface.
- score: 2
component ChartQuickActions
- file: src/cores/cl/components/ChartQuickActions.tsx:56
- kind: component
- core: cl
- spec: (none)
- summary: Renders the chart quick actions interface.
- score: 2
component ChartRiskSection
- file: src/cores/cl/components/ChartRiskSection.tsx:426
- kind: component
- core: cl
- spec: (none)
- summary: Composes risk overview, safety planning, screening history, and related CL-07 risk workflows.
- score: 2
component ChartScreeningSection
- file: src/cores/cl/components/screening/ChartScreeningSection.tsx:58
- kind: component
- core: cl
- spec: CL-47
- summary: Patient-chart screening section. Drives selection of a behavioral-healthscreening instrument (PHQ-9, GAD-7, AUDIT, etc.) for administration andtrend visualization, lists prior administrations grouped by instrumentcode, and hosts the modal flow for new administrations. Encounter isoptional so screenings can be administered outside a scheduled visit.
- params:
- props — Section props. - : whose screenings are listed. - : The patient owning the chart. - : Optional to attach the new administration to. - : The signed-in user, recorded as the administering clinician.
- score: 5
component ChartSdohSection
- file: src/cores/cl/components/ChartSdohSection.tsx:59
- kind: component
- core: cl
- spec: (none)
- summary: Renders the chart sdoh section interface.
- score: 2
component ChartSideNav
- file: src/cores/cl/components/ChartSideNav.tsx:26
- kind: component
- core: cl
- spec: (none)
- summary: Renders the chart side nav interface.
- score: 2
component ChartSummaryCard
- file: src/cores/cl/ai-documentation/components/ChartSummaryCard.tsx:176
- kind: component
- core: cl
- spec: (none)
- summary: Public entry point. Permission-gated so only staff with see the affordance; renders nothing for everyone else.
- score: 2
component ChartTransitionsSection
- file: src/cores/cl/components/ChartTransitionsSection.tsx:385
- kind: component
- core: cl
- spec: (none)
- summary: Utility for chart transitions section.
- score: 1
component ChartTreatmentPlansSection
- file: src/cores/cl/components/ChartTreatmentPlansSection.tsx:60
- kind: component
- core: cl
- spec: (none)
- summary: Renders the chart treatment plans section interface.
- score: 2
component ChartVitalsSection
- file: src/cores/cl/components/ChartVitalsSection.tsx:41
- kind: component
- core: cl
- spec: (none)
- summary: Renders the chart vitals section interface.
- score: 2
component ClinicalAuditDashboardPage
- file: src/cores/cl/pages/ClinicalAuditDashboardPage.tsx:49
- kind: component
- core: cl
- spec: (none)
- summary: Clinical Audit & Compliance Dashboard.
- score: 2
component ClinicalBlockRenderer
- file: src/cores/cl/components/blocks/ClinicalBlockRenderer.tsx:49
- kind: component
- core: cl
- spec: (none)
- summary: Render the resolved clinical blocks for a documentation surface + encounter.
- score: 2
component ClinicalBlockSection
- file: src/cores/cl/components/blocks/ClinicalBlockSection.tsx:64
- kind: component
- core: cl
- spec: (none)
- summary: Render + persist a single resolved clinical block.
- score: 2
component ClinicalCatalogsHubPage
- file: src/cores/cl/pages/ClinicalCatalogsHubPage.tsx:37
- kind: component
- core: cl
- spec: (none)
- summary: Clinical Catalogs hub page. Renders the pharmacy directory, order sets, andstanding order protocols tab strip via the shared primitive.
- score: 2
component ClinicalDraftReviewPanel
- file: src/cores/cl/components/agent-clinical/ClinicalDraftReviewPanel.tsx:142
- kind: component
- core: cl
- spec: (none)
- summary: ClinicalDraftReviewPanel — compose narrative preview + DSI disclosure + approval prompt. CL-36-EN-03 AC-2
- score: 2
component ClinicalFormErrorSummary
- file: src/cores/cl/components/ClinicalFormErrorSummary.tsx:38
- kind: component
- core: cl
- spec: (none)
- summary: Accessible error summary for CL forms.Focus links let keyboard users jump directly to fields after validation.
- score: 2
component ClinicalStatusBadge
- file: src/cores/cl/components/ClinicalStatusBadge.tsx:35
- kind: component
- core: cl
- spec: (none)
- summary: Renders a CL status as a semantically-coloured badge.
- example: | ClinicalStatusBadge entity=“chart” status=chart.status / ClinicalStatusBadge entity=“progressNote” status=note.status hideDot /
- score: 5
component ClinicalSummarySection
- file: src/cores/cl/components/ClinicalSummarySection.tsx:50
- kind: component
- core: cl
- spec: (none)
- summary: Renders the clinical summary section interface.
- score: 2
component ClinicalUrgencyIndicator
- file: src/cores/cl/components/ClinicalUrgencyIndicator.tsx:31
- kind: component
- core: cl
- spec: (none)
- summary: Renders the clinical urgency indicator interface.
- score: 2
component ClinicianPanelPage
- file: src/cores/cl/pages/population-health/ClinicianPanelPage.tsx:35
- kind: component
- core: cl
- spec: (none)
- summary: Clinician Panel page — shows the logged-in clinician’s attributed patients.
- score: 2
component CloseGapDialog
- file: src/cores/cl/components/population-health/CloseGapDialog.tsx:33
- kind: component
- core: cl
- spec: (none)
- summary: Renders the close gap dialog interface.
- score: 2
component CLOverview
- file: src/cores/cl/pages/CLOverview.tsx:43
- kind: component
- core: cl
- spec: (none)
- summary: Utility for cloverview.
- score: 1
component CLSettingsForm
- file: src/cores/cl/components/CLSettingsForm.tsx:95
- kind: component
- core: cl
- spec: (none)
- summary: Utility for clsettings form.
- score: 1
component CLSettingsPage
- file: src/cores/cl/pages/CLSettingsPage.tsx:31
- kind: component
- core: cl
- spec: (none)
- summary: Utility for clsettings page.
- score: 1
component CODAssessmentTab
- file: src/cores/cl/components/cod/CODAssessmentTab.tsx:56
- kind: component
- core: cl
- spec: CL-31
- summary: COD assessment tab embedded in the patient chart. Lists prior ASI-6,BASIS-32, and GAIN-SS assessments in a status-filterable table, exposescreate / edit / amend actions, and — after a fresh assessment is saved —surfaces the COD-flag prompt when the chart is not yet markedco-occurring. Hidden entirely when the user lacks.
- params:
- props — Tab props. - : whose COD assessments are listed. - : Current value on the chart; gates whether to prompt for the flag after a new assessment.
- score: 5
component CodedTypeahead
- file: src/cores/cl/components/CodedTypeahead.tsx:36
- kind: component
- core: cl
- spec: (none)
- summary: Typeahead that combines free-text entry with coded suggestions.
- score: 2
component CODFlagBadge
- file: src/cores/cl/components/cod/CODFlagBadge.tsx:33
- kind: component
- core: cl
- spec: CL-31
- summary: Co-occurring-disorder indicator badge for the chart header. Shows a”COD” badge when the chart already carries . Whenthe chart is not yet flagged, authorized users (with) see a compact ”+ COD” affordance to set theflag inline; unauthorized users see nothing.
- params:
- props — Badge props. - : the flag toggle targets. - : Current value on the chart.
- score: 5
component CODFlagPromptDialog
- file: src/cores/cl/components/cod/CODFlagPromptDialog.tsx:41
- kind: component
- core: cl
- spec: CL-31
- summary: Post-assessment prompt asking whether to set onthe chart. Surfaces as a modal dialog (per CONTEXT.md Area 4, not atoast) immediately after a fresh COD assessment is saved when the chartisn’t yet COD-flagged. Uses to suppress re-promptswithin the same session/chart.
- params:
- props — Dialog props. - : whose COD flag is being prompted. - : Whether the dialog is open. - : Fired after either “Set flag” succeeds or the user dismisses; the parent should close the dialog in response.
- score: 5
component CODTreatmentPlanSection
- file: src/cores/cl/components/cod/CODTreatmentPlanSection.tsx:67
- kind: component
- core: cl
- spec: CL-31
- summary: COD-specific extension section injected into the CL-03 treatment-planform when the chart carries . Captures the ASAMCOD level, ASAM dimensions 5 and 6 narrative notes, and an integratedgoals summary. Renders nothing for non-COD charts so the form layoutstays clean for the majority case.
- params:
- props — Section props. - : the plan belongs to. - : the extension row keys off. - : When , the component renders nothing. - : Optional MOUD context to surface alongside the COD extension (medication, current phase, start date).
- score: 5
component CognitiveAssessmentForm
- file: src/cores/cl/components/CognitiveAssessmentForm.tsx:107
- kind: component
- core: cl
- spec: (none)
- summary: Cognitive screening assessment form dialog.Handles MoCA (with education adjustment), SLUMS, and MMSE scoring.
- score: 2
component CognitiveResultAlert
- file: src/cores/cl/components/CognitiveResultAlert.tsx:26
- kind: component
- core: cl
- spec: (none)
- summary: Renders an inline alert banner when a cognitive screening scorefalls below the population-specific threshold.Text per CONTEXT.md: “Score below threshold — consider follow-up.”
- score: 2
component CohortAuditTab
- file: src/cores/cl/components/cohorts/CohortAuditTab.tsx:60
- kind: component
- core: cl
- spec: CL-54
- summary: Cohort lifecycle + snapshot audit timeline. Merges creation, definitionversioning (), publication / archival events, anddistinct snapshot runs into a reverse-chronological feed so reviewershave a single, scannable record of how a clinical registry evolved.
- params:
- props — Tab props. - : The row whose audit feed is rendered. - : All rows for the cohort, one per saved revision.
- score: 5
component CohortExportButton
- file: src/cores/cl/components/cohorts/CohortExportButton.tsx:72
- kind: component
- core: cl
- spec: CL-54
- summary: Exports the latest cohort membership snapshot as a CSV. Detects whetherany chart in the snapshot is SUD-flagged and, when so, prepends thefederal 42 CFR Part 2 redisclosure notice as a CSV comment row beforethe header. Escapes leading characters to neutralize spreadsheetformula injection, and writes a row recording the actor,member count, and whether SUD content was included.
- params:
- props — Button props. - : whose snapshot is exported. - : Cohort name used in the generated filename and audit-log payload.
- score: 5
component CohortFormSheet
- file: src/cores/cl/components/cohorts/CohortFormSheet.tsx:72
- kind: component
- core: cl
- spec: CL-54
- summary: Create / edit Sheet for a clinical cohort. Drives name / description /definition-type capture and either the rule builder (rule-based) or amanual chart-ID picker (manual) depending on the chosen definition type.In edit mode the form only writes a NEW definition version — definitionhistory is immutable per spec — while parent-row metadata edits flowthrough the same call.
- params:
- props — Sheet props. - : Whether the sheet is mounted. - : Callback fired when the sheet wants to close. - : When present, switches the sheet to edit-definition mode for this cohort; when absent, the sheet is in create mode. - : The cohort’s active definition version, used to seed the form when editing.
- score: 5
component CohortMembershipTab
- file: src/cores/cl/components/cohorts/CohortMembershipTab.tsx:46
- kind: component
- core: cl
- spec: CL-54
- summary: Per-chart membership view for a cohort, scoped to a chosen as-of date.Derives the list of available snapshot dates from the latest fetch, letsthe user pick which historical snapshot to inspect, and links each rowto the underlying chart via the org-aware slug prefix.
- params:
- props — Tab props. - : whose membership is rendered.
- score: 5
component CohortRuleBuilder
- file: src/cores/cl/components/cohorts/CohortRuleBuilder.tsx:89
- kind: component
- core: cl
- spec: CL-54
- summary: Visual rule builder for rule-based cohorts. Edits a v1 tree — / top-level logic plus a flat listof conditions with operator-appropriateinputs (single value, value list, or no-value for -stylepredicates). Designed so the entire criteria payload round-trips losslesslyto JSONB in .
- params:
- props — Builder props. - : Current criteria tree. - : Invoked with the next criteria tree on every edit. - : Disables all inputs (used during save).
- score: 5
component CohortSnapshotDialog
- file: src/cores/cl/components/cohorts/CohortSnapshotDialog.tsx:59
- kind: component
- core: cl
- spec: CL-54
- summary: Materialize-membership dialog for a cohort. Prompts for an “as-of” date(defaulting to today, ISO ) and triggers to write a fresh snapshot forthat date. Used both for ad-hoc snapshots and to backfill historicaldates after a definition change.
- params:
- props — Dialog props. - : Whether the dialog is open. - : Callback fired when the dialog wants to close. - : to snapshot.
- score: 5
component CohortVersionsTab
- file: src/cores/cl/components/cohorts/CohortVersionsTab.tsx:45
- kind: component
- core: cl
- spec: CL-54
- summary: Immutable definition-version history for a cohort. Lists every revision and visually marks the row whose matches . Used both for audit /compliance review and as the entry point for “view criteria at thisversion” affordances.
- params:
- props — Tab props. - : The owning row (for current-version marker). - : All saved definition versions, oldest-first or newest-first depending on caller — both render correctly.
- score: 5
component CompletenessSummary
- file: src/cores/cl/components/completeness/CompletenessSummary.tsx:42
- kind: component
- core: cl
- spec: (none)
- summary: Render a documentation-completeness result.
- score: 2
component ComplianceDashboardPage
- file: src/cores/cl/pages/ComplianceDashboardPage.tsx:23
- kind: component
- core: cl
- spec: (none)
- summary: Utility for compliance dashboard page.
- score: 1
component ConcurrentReviewDetailPage
- file: src/cores/cl/pages/ConcurrentReviewDetailPage.tsx:27
- kind: component
- core: cl
- spec: (none)
- summary: Detail / work surface for a single concurrent review.
- score: 2
component ConductSdohScreeningDialog
- file: src/cores/cl/components/ConductSdohScreeningDialog.tsx:49
- kind: component
- core: cl
- spec: (none)
- summary: Utility for conduct sdoh screening dialog.
- score: 1
component ConfirmStep
- file: src/cores/cl/wizards/e-prescribing/steps/ConfirmStep.tsx:21
- kind: component
- core: cl
- spec: (none)
- summary: Step 4: Review prescription details before sending.
- score: 2
component ConsentCaptureSheet
- file: src/cores/cl/components/ConsentCaptureSheet.tsx:58
- kind: component
- core: cl
- spec: CL-11
- summary: Wizard-style sheet for capturing a 42 CFR Part 2 § 2.31 electronicconsent. Drives granular category checkboxes (treatment / payment / ops /specific providers / research), a typed e-signature with requiredattestation, and inline pre-submit validation per the regulatory checklist.Submits via and closes the sheet on success.
- params:
- props — Sheet props. - : Whether the sheet is mounted and visible. - : Callback invoked when the sheet wants to close (cancel button, backdrop click, or after a successful submit).
- score: 5
component ConsentRevocationRequestDialog
- file: src/cores/cl/components/consents/ConsentRevocationRequestDialog.tsx:28
- kind: component
- core: cl
- spec: (none)
- summary: Collects patient consent change/revocation requests and submits them for staff review.
- score: 2
component ControlledSubstanceInventoryPage
- file: src/cores/cl/pages/ControlledSubstanceInventoryPage.tsx:23
- kind: component
- core: cl
- spec: (none)
- summary: Utility for controlled substance inventory page.
- score: 1
component CreateEditGroupSessionDialog
- file: src/cores/cl/components/group-therapy/CreateEditGroupSessionDialog.tsx:49
- kind: component
- core: cl
- spec: (none)
- summary: Utility for create edit group session dialog.
- score: 1
component CreatePathwayDialog
- file: src/cores/cl/components/pathways/CreatePathwayDialog.tsx:27
- kind: component
- core: cl
- spec: (none)
- summary: Renders the create pathway dialog interface.
- score: 2
component CreateUdsOrderDialog
- file: src/cores/cl/components/uds/CreateUdsOrderDialog.tsx:49
- kind: component
- core: cl
- spec: (none)
- summary: Utility for create uds order dialog.
- score: 1
component CrisisResourcesBanner
- file: src/cores/cl/components/CrisisResourcesBanner.tsx:19
- kind: component
- core: cl
- spec: (none)
- summary: Renders the crisis resources banner interface.
- score: 2
component CrisisTransferFormDialog
- file: src/cores/cl/components/CrisisTransferFormDialog.tsx:35
- kind: component
- core: cl
- spec: (none)
- summary: Renders the crisis transfer form dialog interface.
- score: 2
component CrisisTransferList
- file: src/cores/cl/components/CrisisTransferList.tsx:41
- kind: component
- core: cl
- spec: (none)
- summary: Renders the crisis transfer list interface.
- score: 2
component CriteriaResponseForm
- file: src/cores/cl/components/concurrent-reviews/CriteriaResponseForm.tsx:23
- kind: component
- core: cl
- spec: (none)
- summary: Edit clinical criteria responses for a concurrent review.
- score: 2
component CurriculumFormDialog
- file: src/cores/cl/components/group-therapy/CurriculumFormDialog.tsx:50
- kind: component
- core: cl
- spec: (none)
- summary: Renders the curriculum form dialog interface.
- score: 2
component CurriculumListPage
- file: src/cores/cl/components/group-therapy/CurriculumListPage.tsx:32
- kind: component
- core: cl
- spec: (none)
- summary: Renders the curriculum list page interface.
- score: 2
component DaysRemainingCell
- file: src/cores/cl/components/discharge/DaysRemainingCell.tsx:19
- kind: component
- core: cl
- spec: (none)
- summary: Displays days remaining in a HEDIS follow-up window.
- score: 2
component DdiAlertPanel
- file: src/cores/cl/components/medications/DdiAlertPanel.tsx:79
- kind: component
- core: cl
- spec: (none)
- summary: Inline alert panel for DDI results. Shows skeleton while loading.
- score: 2
component DdiOverrideDialog
- file: src/cores/cl/components/medications/DdiOverrideDialog.tsx:58
- kind: component
- core: cl
- spec: (none)
- summary: Override dialog for DDI alerts. Permission-gated.Contraindicated severity blocks submission until a co-signer name is provided.
- score: 2
component DdiSuppressionSettings
- file: src/cores/cl/components/medications/DdiSuppressionSettings.tsx:24
- kind: component
- core: cl
- spec: (none)
- summary: Settings card for managing DDI alert suppressions. Permission-gated.
- score: 2
component DesignatedContactsManager
- file: src/cores/cl/components/DesignatedContactsManager.tsx:32
- kind: component
- core: cl
- spec: (none)
- summary: Utility for designated contacts manager.
- score: 1
component DeterminationRecording
- file: src/cores/cl/components/concurrent-reviews/DeterminationRecording.tsx:21
- kind: component
- core: cl
- spec: (none)
- summary: Form to record an outcome determination from the payer.
- score: 2
component DimensionScoreRadarChart
- file: src/cores/cl/components/loc-assessment/DimensionScoreRadarChart.tsx:48
- kind: component
- core: cl
- spec: CL-49
- summary: Radar / spider chart visualization of ASAM or LOCUS dimensional scores.Renders one axis per dimension, normalized to the instrument’s maxpossible score, and overlays a second translucent series when is supplied so reviewers can see deltas between twoassessments at a glance. Uses semantic chart-palette colors only.
- params:
- props — Chart props. - : or — controls dimension labels and max-axis scaling. - : The score map for the assessment being visualized. - : Optional prior-assessment scores rendered as a translucent overlay for comparison. - : Chart height in pixels. Defaults to .
- score: 5
component DirectorySearchSheet
- file: src/cores/cl/components/referral-status/DirectorySearchSheet.tsx:37
- kind: component
- core: cl
- spec: (none)
- summary: Sheet for searching FindTreatment.gov provider directory.
- score: 2
component DischargeChecklistPanel
- file: src/cores/cl/components/DischargeChecklistPanel.tsx:51
- kind: component
- core: cl
- spec: (none)
- summary: Renders the discharge checklist panel interface.
- score: 2
component DischargeHubPage
- file: src/cores/cl/pages/DischargeHubPage.tsx:29
- kind: component
- core: cl
- spec: (none)
- summary: Discharge Hub page with tabbed navigation.
- score: 2
component DocumentationCompletenessPanel
- file: src/cores/cl/components/completeness/DocumentationCompletenessPanel.tsx:30
- kind: component
- core: cl
- spec: (none)
- summary: Render the documentation-completeness panel for an encounter/surface.
- score: 2
component DsiDisclosureEditor
- file: src/cores/cl/dsi-disclosures/components/DsiDisclosureEditor.tsx:33
- kind: component
- core: cl
- spec: (none)
- summary: Sheet wrapper — remounts the body per disclosure so its initial state derives cleanly from props.
- score: 2
component DsiDisclosuresManagementCard
- file: src/cores/cl/dsi-disclosures/components/DsiDisclosuresManagementCard.tsx:32
- kind: component
- core: cl
- spec: (none)
- summary: Admin card for managing + publishing CL-65 DSI transparency disclosures.
- score: 2
component DualDiagnosisSUDSection
- file: src/cores/cl/components/cod/DualDiagnosisSUDSection.tsx:53
- kind: component
- core: cl
- spec: CL-31
- summary: SUD content section for dual-diagnosis progress notes. Renders only whenthe parent note’s is and thepatient has an active 42 CFR Part 2 consent on file. Default-denies (andsurfaces a permission-style banner pointing at )when consent is missing or the lookup fails, so SUD content is neverauthored against a consentless chart.
- params:
- props — Section props. - : this section is attached to. - : used to look up Part 2 consent. - : Parent note’s session type; component short-circuits to for anything other than . - : Prefill values when editing. - : URL the user is directed to when consent is missing (typically the chart-level consent management page).
- score: 5
component EditEncounterGenerationDialog
- file: src/cores/cl/components/group-encounter-generation/EditEncounterGenerationDialog.tsx:25
- kind: component
- core: cl
- spec: (none)
- summary: Dialog for editing a generation record’s CPT code and duration.
- score: 2
component EducationFormDialog
- file: src/cores/cl/components/EducationFormDialog.tsx:26
- kind: component
- core: cl
- spec: (none)
- summary: Utility for education form dialog.
- score: 1
component EducationList
- file: src/cores/cl/components/EducationList.tsx:26
- kind: component
- core: cl
- spec: (none)
- summary: Renders the education list interface.
- score: 2
component EnrollPathwayDialog
- file: src/cores/cl/components/pathways/EnrollPathwayDialog.tsx:41
- kind: component
- core: cl
- spec: CL-42
- summary: Dialog for enrolling a patient in a clinical pathway. Lists publishedpathway templates via , accepts aselection, and persists the enrollment via. Resets template selection each time thedialog opens so a previous abandoned selection doesn’t leak acrosssessions.
- params:
- props — Dialog props. - : Whether the dialog is open. - : Callback fired when the dialog wants to close. - : The patient being enrolled.
- score: 5
component EnvironmentalAssessmentDialog
- file: src/cores/cl/components/EnvironmentalAssessmentDialog.tsx:93
- kind: component
- core: cl
- spec: (none)
- summary: Utility for environmental assessment dialog.
- score: 1
component EPCSConfirmStep
- file: src/cores/cl/components/EPCSConfirmStep.tsx:29
- kind: component
- core: cl
- spec: (none)
- summary: Utility for epcsconfirm step.
- score: 1
component EpcsStep
- file: src/cores/cl/wizards/e-prescribing/steps/EpcsStep.tsx:27
- kind: component
- core: cl
- spec: (none)
- summary: Step 3 (controlled only): EPCS two-factor attestation with PDMP placeholder.
- score: 2
component EscalationChainEditor
- file: src/cores/cl/components/notifications/EscalationChainEditor.tsx:38
- kind: component
- core: cl
- spec: CL-56
- summary: Editor for the per-severity clinical-notification escalation chain.Lets admins compose rules that determine who is paged — and after how long — when anotification of a given severity is generated. Backed by / .
- score: 5
component FamilyNotificationLogView
- file: src/cores/cl/components/FamilyNotificationLogView.tsx:29
- kind: component
- core: cl
- spec: (none)
- summary: Utility for family notification log view.
- score: 1
component FollowUpContactFormDialog
- file: src/cores/cl/components/discharge/FollowUpContactFormDialog.tsx:39
- kind: component
- core: cl
- spec: (none)
- summary: Renders the follow up contact form dialog interface.
- score: 2
component FollowUpRateCard
- file: src/cores/cl/components/outcomes/FollowUpRateCard.tsx:74
- kind: component
- core: cl
- spec: (none)
- summary: Per-grant SUPRT follow-up rate card for the outcomes tab.Reads the VIEW via (Unit E).Shows numerator/denominator/rate per grant per quarter — the ≥80% rate SAMHSArequires for SPARS-reporting grants (AC-4). CL-69 AC-4
- score: 2
component FollowUpSchedulePanel
- file: src/cores/cl/components/zero-suicide/FollowUpSchedulePanel.tsx:65
- kind: component
- core: cl
- spec: CL-07
- summary: Zero-Suicide follow-up schedule panel for a patient with an activesafety plan. Renders the standard post-discharge / post-crisis follow-upwindows (24h, 48h, 72h, 7d, 14d) and surfaces each scheduled outreachwith its status (pending / confirmed / cancelled). Exposescancel / reschedule affordances to the parent.
- params:
- props — Panel props. - : Scheduled follow-up rows. - : Whether the parent query is still in flight. - : Invoked with a follow-up id when the user cancels it. - : Invoked with a follow-up id when the user wants to reschedule.
- score: 5
component FuhDashboardPage
- file: src/cores/cl/pages/FuhDashboardPage.tsx:50
- kind: component
- core: cl
- spec: (none)
- summary: Utility for fuh dashboard page.
- score: 1
component GAINSSSection
- file: src/cores/cl/components/cod/GAINSSSection.tsx:54
- kind: component
- core: cl
- spec: CL-31
- summary: GAIN-SS subscale section embedded inside the COD assessment dialog.Renders all 4 subscales × 5 items as 0/1 controls, computes the TotalDisorder Screener Score (TDSS = sum of positive items) live, and flagsany subscale with ≥3 positives as “high”. The Substance (SDScr)subscale is annotated as SUD content; redaction at disclosure time ishandled by , not by this section.
- params:
- props — Section props. - : react-hook-form control object from the parent. - : from the parent form, used to recompute TDSS and severity as scores change. - : from the parent form, used for subscale notes.
- score: 5
component GapDetailSheet
- file: src/cores/cl/components/population-health/GapDetailSheet.tsx:40
- kind: component
- core: cl
- spec: (none)
- summary: Displays care-gap details with timeline metadata and close action.
- score: 2
component GenerationStatusBadge
- file: src/cores/cl/components/group-encounter-generation/GenerationStatusBadge.tsx:27
- kind: component
- core: cl
- spec: (none)
- summary: Renders a badge for group encounter generation status.
- score: 2
component GoalProgressCharts
- file: src/cores/cl/components/GoalProgressCharts.tsx:31
- kind: component
- core: cl
- spec: (none)
- summary: Renders the goal progress charts interface.
- score: 2
component GroupEncounterGenerationBatchReviewPage
- file: src/cores/cl/pages/GroupEncounterGenerationBatchReviewPage.tsx:42
- kind: component
- core: cl
- spec: (none)
- summary: Batch review page for group encounter generations.
- score: 2
component GroupOutcomeDashboard
- file: src/cores/cl/components/group-therapy/GroupOutcomeDashboard.tsx:20
- kind: component
- core: cl
- spec: (none)
- summary: Utility for group outcome dashboard.
- score: 1
component GroupSessionDetailPage
- file: src/cores/cl/pages/GroupSessionDetailPage.tsx:47
- kind: component
- core: cl
- spec: (none)
- summary: Utility for group session detail page.
- score: 1
component GroupSessionsListPage
- file: src/cores/cl/pages/GroupSessionsListPage.tsx:42
- kind: component
- core: cl
- spec: (none)
- summary: Utility for group sessions list page.
- score: 1
component HedisDashboard
- file: src/cores/cl/components/outcomes/HedisDashboard.tsx:128
- kind: component
- core: cl
- spec: (none)
- summary: Utility for hedis dashboard.
- score: 1
component HedisFollowUpTab
- file: src/cores/cl/components/discharge/HedisFollowUpTab.tsx:29
- kind: component
- core: cl
- spec: (none)
- summary: HEDIS FUH/FUM follow-up worklist tab content.
- score: 2
component HedisFuhFumPanel
- file: src/cores/cl/components/outcomes/HedisFuhFumPanel.tsx:36
- kind: component
- core: cl
- spec: (none)
- summary: Panel showing HEDIS FUH/FUM compliance rate summary.
- score: 2
component ICD10CodeSearch
- file: src/cores/cl/components/problem-list/ICD10CodeSearch.tsx:49
- kind: component
- core: cl
- spec: (none)
- summary: CL-46 ICD-10-CM combobox. Use inside React Hook Form fields by binding to the form value and calling to update it.
- score: 2
component ICD10SearchCombobox
- file: src/cores/cl/components/ICD10SearchCombobox.tsx:27
- kind: component
- core: cl
- spec: (none)
- summary: Searchable combobox for ICD-10-CM diagnosis codes.Requires minimum 2 characters to search. Stores value (e.g. “F11.20”).
- score: 2
component ImportPreviewSheet
- file: src/cores/cl/components/marketplace/ImportPreviewSheet.tsx:62
- kind: component
- core: cl
- spec: CL-57
- summary: Preview-and-confirm Sheet that runs before a marketplace bundle isimported into a tenant. Summarizes the bundle metadata, lists everyitem with its type label, and surfaces blocking warnings (already on anewer version, missing prerequisites). Submits via only after the user has reviewed the preview.
- params:
- props — Sheet props. - : Whether the sheet is mounted and visible. - : Callback fired when the sheet wants to close. - : The bundle to import; short-circuits to a no-op render so the parent can hold the sheet mounted between selections. - : The bundle’s resolved items list. - : Whether the preview is still being assembled. - : Whether an import is in flight. - : Invoked when the user confirms the import. - : When the tenant already has a newer or equal version installed, this version number is shown as a warning to prevent accidental downgrades.
- score: 5
component InBasketItemDetailPage
- file: src/cores/cl/pages/InBasketItemDetailPage.tsx:47
- kind: component
- core: cl
- spec: (none)
- summary: Utility for in basket item detail page.
- score: 1
component InBasketListPage
- file: src/cores/cl/pages/InBasketListPage.tsx:54
- kind: component
- core: cl
- spec: (none)
- summary: Utility for in basket list page.
- score: 1
component IncidentFormDialog
- file: src/cores/cl/components/reporting/IncidentFormDialog.tsx:55
- kind: component
- core: cl
- spec: (none)
- summary: Utility for incident form dialog.
- score: 1
component IncidentListPage
- file: src/cores/cl/pages/IncidentListPage.tsx:48
- kind: component
- core: cl
- spec: (none)
- summary: Utility for incident list page.
- score: 1
component IndividualDocumentationDialog
- file: src/cores/cl/components/group-therapy/IndividualDocumentationDialog.tsx:42
- kind: component
- core: cl
- spec: (none)
- summary: Utility for individual documentation dialog.
- score: 1
component InstrumentScoringPanel
- file: src/cores/cl/components/InstrumentScoringPanel.tsx:36
- kind: component
- core: cl
- spec: (none)
- summary: Captures dimension scores, computes recommended LOC, and persists assessment scoring.
- score: 2
component IntakeAssessmentDetailPage
- file: src/cores/cl/pages/IntakeAssessmentDetailPage.tsx:228
- kind: component
- core: cl
- spec: (none)
- summary: Full-page intake assessment detail with tabbed/accordion form.
- score: 2
component IntakeAssessmentListPage
- file: src/cores/cl/pages/IntakeAssessmentListPage.tsx:63
- kind: component
- core: cl
- spec: (none)
- summary: Intake assessment work queue page.
- score: 2
component IntakeClinicalHistorySection
- file: src/cores/cl/components/intake/IntakeClinicalHistorySection.tsx:26
- kind: component
- core: cl
- spec: (none)
- summary: Clinical history section capturing AHCCCS-required assessment elements.
- score: 2
component IntakeComplianceDashboardPage
- file: src/cores/cl/pages/IntakeComplianceDashboardPage.tsx:59
- kind: component
- core: cl
- spec: (none)
- summary: Intake compliance dashboard.
- score: 1
component IntakeDemographicsSection
- file: src/cores/cl/components/intake/IntakeDemographicsSection.tsx:25
- kind: component
- core: cl
- spec: (none)
- summary: Demographics and chief complaint section for intake form.
- score: 2
component IntakeDiagnosesSection
- file: src/cores/cl/components/intake/IntakeDiagnosesSection.tsx:46
- kind: component
- core: cl
- spec: (none)
- summary: Diagnoses section with chip display and PF-70 ICD-10 search dialog.
- score: 2
component IntakeReviewSection
- file: src/cores/cl/components/intake/IntakeReviewSection.tsx:67
- kind: component
- core: cl
- spec: (none)
- summary: Review section with validation summary and finalize action.
- score: 2
component IntakeSdohSection
- file: src/cores/cl/components/intake/IntakeSdohSection.tsx:36
- kind: component
- core: cl
- spec: (none)
- summary: SDOH assessment section with referral preview and override checkboxes.
- score: 2
component InventoryList
- file: src/cores/cl/components/InventoryList.tsx:41
- kind: component
- core: cl
- spec: (none)
- summary: Renders the inventory list interface.
- score: 2
component InventoryTransactionFormDialog
- file: src/cores/cl/components/InventoryTransactionFormDialog.tsx:54
- kind: component
- core: cl
- spec: (none)
- summary: Utility for inventory transaction form dialog.
- score: 1
component JurisdictionMismatchBanner
- file: src/cores/cl/components/telehealth/JurisdictionMismatchBanner.tsx:41
- kind: component
- core: cl
- spec: CL-24
- summary: Renders an interstate-licensure warning alert when a telehealth session’spatient and provider state codes differ. Returns when either sideis unknown or the codes match — callers can mount it unconditionally onany session detail surface.
- params:
- props — Banner props. - : Patient’s state at session time (2-letter US code) or . - : Provider’s state at session time (2-letter US code) or .
- score: 5
component LabOrderDetailDialog
- file: src/cores/cl/components/LabOrderDetailDialog.tsx:45
- kind: component
- core: cl
- spec: (none)
- summary: Utility for lab order detail dialog.
- score: 1
component LabOrderFormDialog
- file: src/cores/cl/components/LabOrderFormDialog.tsx:49
- kind: component
- core: cl
- spec: (none)
- summary: Renders the lab order form dialog interface.
- score: 2
component LabResultPanel
- file: src/cores/cl/components/LabResultPanel.tsx:48
- kind: component
- core: cl
- spec: (none)
- summary: Utility for lab result panel.
- score: 1
component LabResultReviewDialog
- file: src/cores/cl/components/LabResultReviewDialog.tsx:26
- kind: component
- core: cl
- spec: (none)
- summary: Utility for lab result review dialog.
- score: 1
component LabResultTrendChart
- file: src/cores/cl/components/LabResultTrendChart.tsx:51
- kind: component
- core: cl
- spec: (none)
- summary: Utility for lab result trend chart.
- score: 1
component LatestVitalsCard
- file: src/cores/cl/components/summary/LatestVitalsCard.tsx:44
- kind: component
- core: cl
- spec: (none)
- summary: Utility for latest vitals card.
- score: 1
component LethalMeansAssessmentForm
- file: src/cores/cl/components/zero-suicide/LethalMeansAssessmentForm.tsx:54
- kind: component
- core: cl
- spec: CL-07
- summary: Lethal-means assessment form for Zero-Suicide safety planning. Capturesthe presence of firearms, medication stockpiles, sharp objects, and anyother identified means, plus optional counseling and a restriction plan— feeding the patient’s safety plan and follow-up outreach. Submits via.
- params:
- props — Form props. - : The patient chart the assessment is being authored against. - : Optional originating screening (e.g. the PHQ-9 or C-SSRS that triggered the assessment). - : Optional encounter id when the assessment is captured during a scheduled visit. - : Invoked after a successful save so the parent can advance the workflow (e.g. open the safety-plan editor).
- score: 5
component LethalMeansCounselingFields
- file: src/cores/cl/components/LethalMeansCounselingFields.tsx:35
- kind: component
- core: cl
- spec: (none)
- summary: Renders the lethal means counseling fields interface.
- score: 2
component LifeEventRecordForm
- file: src/cores/cl/components/LifeEventRecordForm.tsx:48
- kind: component
- core: cl
- spec: (none)
- summary: Utility for life event record form.
- score: 1
component LinkPendingResultDialog
- file: src/cores/cl/components/LinkPendingResultDialog.tsx:30
- kind: component
- core: cl
- spec: (none)
- summary: Renders the link pending result dialog interface.
- score: 2
component LocAssessmentComparisonView
- file: src/cores/cl/components/loc-assessment/LocAssessmentComparisonView.tsx:93
- kind: component
- core: cl
- spec: CL-49
- summary: Side-by-side comparison view for two LOC assessments. Builds aper-dimension diff (score delta, direction, narrative-notes change) andrenders score-comparison plus dimension-delta cards so utilizationreviewers can see exactly how an ASAM/LOCUS picture has shifted betweentwo points in time.
- params:
- props — View props. - : The newer assessment. - : The older assessment to compare against. - : or — controls dimension labels.
- score: 5
component LocAssessmentForm
- file: src/cores/cl/components/loc-assessment/LocAssessmentForm.tsx:85
- kind: component
- core: cl
- spec: CL-49
- summary: Editable LOC dimensional-scoring form for ASAM-CONTINUUM or LOCUS.Surfaces all instrument dimensions with score inputs and clinical-notesfields, optionally overlays the prior assessment’s scores so theclinician can see drift, and dispatches / / back to the host page. Renders read-only when is true.
- params:
- props — Form props. - : or . - : Score map to seed the form with. - : Optional prior assessment scores rendered alongside each input for context. - : Invoked with the current score map when the user submits. - : Invoked on every keystroke for live recomputation of the recommendation. - : Invoked when the user cancels. - : Disables submit while the parent persists. - : Renders the form in read-only mode (no editing).
- score: 5
component LocAssessmentListTable
- file: src/cores/cl/components/loc-assessment/LocAssessmentListTable.tsx:43
- kind: component
- core: cl
- spec: CL-49
- summary: Worklist table listing LOC assessments for a patient or organization.Renders a 5-row skeleton while loading, an empty-state when there are noassessments, and otherwise a row per assessment with assessed-at date,recommended level of care, status badge, and a “view” affordance thatnavigates to the detail page.
- params:
- props — Table props. - : Assessments to render. - : Whether the parent query is still in flight.
- score: 5
component LocAssessmentSummaryCard
- file: src/cores/cl/components/concurrent-reviews/LocAssessmentSummaryCard.tsx:71
- kind: component
- core: cl
- spec: CL-43
- summary: Read-only Level-of-Care assessment summary card for the UtilizationManagement worklist. Fetches via the platform wrapper which calls the edge function — the edgefunction enforces 42 CFR Part 2 SUD consent gating and writes a row for SUD disclosures, so the card only everdisplays IDs and redacted fields (no narrative override rationale, no rawdimension scores). Hidden behind .
- params:
- props — Card props. - : to summarize. - : Caller organization id (verified server-side by the edge function for cross-tenant safety). - : Free-text recipient logged in (e.g. payer UM department). - : Free-text purpose logged in (e.g. ).
- score: 5
component LocOverrideDialog
- file: src/cores/cl/components/loc-assessment/LocOverrideDialog.tsx:58
- kind: component
- core: cl
- spec: CL-49
- summary: Dialog used when a clinician overrides the algorithm’s recommended levelof care. Forces selection of (a) the level being chosen instead, (b) acategorical override reason, and (c) free-text rationale — all three arerequired so the override is auditable and meets regulator expectationsfor documented clinical judgment.
- params:
- props — Dialog props. - : Whether the dialog is open. - : Callback fired when the dialog wants to close. - : or — controls available LOC options. - : The algorithm’s recommended level, shown alongside the override picker for context. - : Invoked with when the user confirms.
- score: 5
component LocOverrideRateWidget
- file: src/cores/cl/components/loc-assessment/LocOverrideRateWidget.tsx:155
- kind: component
- core: cl
- spec: CL-49
- summary: Operational widget showing the clinician override rate for LOCrecommendations over a selectable rolling window. Calls to fetch the org-wide rate plus the topoverride-reason categories, surfacing a small table so utilizationleadership can spot algorithm drift or chronic clinician disagreement.Hidden behind .
- score: 5
component LocReassessmentDeltaTable
- file: src/cores/cl/components/loc-assessment/LocReassessmentDeltaTable.tsx:110
- kind: component
- core: cl
- spec: CL-49
- summary: Side-by-side delta table for an LOC reassessment. Renders prior andcurrent dimension scores with ▲ / ▼ / = indicators driven by thesemantic chart palette () so the widget adapts todark mode and tenant rebranding (PF-95); never uses raw color literals.
- params:
- props — Table props. - : or — controls dimension labels. - : The previous assessment’s dimension scores. - : The new assessment’s dimension scores. - : Overall direction of change; when supplied, renders a step-up / step-down / lateral badge in the header.
- score: 5
component LocRecommendationCard
- file: src/cores/cl/components/loc-assessment/LocRecommendationCard.tsx:44
- kind: component
- core: cl
- spec: CL-49
- summary: Card displaying the algorithm-recommended Level of Care for the currentscoring inputs. Shows total score, highest dimension score, and therecommended LOC code. When is true, also renders the that the clinician selected instead and the categoricaloverride reason so reviewers see both signals side-by-side.
- params:
- props — Card props. - : Output of the LOC scoring engine for the current dimension scores. - : Clinician’s chosen final LOC when overriding the algorithm. - : Categorical override reason label. - : When true, render the override panel.
- score: 5
component LocTransitionRecommendationCard
- file: src/cores/cl/components/loc-assessment/LocTransitionRecommendationCard.tsx:45
- kind: component
- core: cl
- spec: CL-49
- summary: Recommendation card surfaced on a reassessment when the new differs from the prior . Phrasesthe proposed transition in plain language and, when supplied, surfacesthe triggering scoring rule so the clinician understands the rationalebefore signing. Renders nothing when the codes match or either side ismissing.
- params:
- props — Card props. - : The prior assessment’s signed final LOC code; falsy values short-circuit render. - : The new recommendation; falsy or equal-to-prior short-circuits render. - : Human-readable triggering rule from the scoring engine, displayed when present.
- score: 5
component LoincTypeahead
- file: src/cores/cl/components/LoincTypeahead.tsx:20
- kind: component
- core: cl
- spec: (none)
- summary: Renders the loinc typeahead interface.
- score: 2
component MarketplaceBundleCard
- file: src/cores/cl/components/marketplace/MarketplaceBundleCard.tsx:35
- kind: component
- core: cl
- spec: (none)
- summary: Displays a marketplace bundle as a card in the catalogue grid.Shows bundle metadata including name, description, version, tags, andpublication date. Displays status badges for imported bundles and availableupdates. Provides a details button to navigate to the bundle detail page.
- params:
- bundle — The marketplace bundle to display. Key fields: id, name, version, published_at (ISO timestamp), description (optional), accreditation_tags (array), clinical_area_tags (array).
- importedVersion — The version number currently imported by the org, if any. Used to determine update availability and import status.
- onViewDetails — Callback invoked when the user clicks the Details button. Receives the bundle.id as its argument.
- returns: A Card component displaying the bundle information.
- score: 2
component MarketplaceFilterSidebar
- file: src/cores/cl/components/marketplace/MarketplaceFilterSidebar.tsx:44
- kind: component
- core: cl
- spec: CL-57
- summary: Filter sidebar for the clinical content marketplace catalogue. Drives afull-text search input plus checkbox groups for accreditation tags(Joint Commission, CARF, etc.) and clinical-area tags (SUD,co-occurring, etc.), reporting changes back via so thecatalogue list re-queries with the new filter set.
- params:
- props — Sidebar props. - : Current browse filter state. - : Invoked with the next filter state on every toggle / search keystroke.
- score: 5
component MeasureSourceBadge
- file: src/cores/cl/components/outcomes/MeasureSourceBadge.tsx:23
- kind: component
- core: cl
- spec: (none)
- summary: Renders the measure source badge interface.
- score: 2
component MedicationDetailsStep
- file: src/cores/cl/wizards/e-prescribing/steps/MedicationDetailsStep.tsx:35
- kind: component
- core: cl
- spec: (none)
- summary: Step 1: Medication details form fields.
- score: 2
component MedicationFormDialog
- file: src/cores/cl/components/MedicationFormDialog.tsx:79
- kind: component
- core: cl
- spec: (none)
- summary: Renders the medication form dialog interface.
- score: 2
component MedicationReconciliationDialog
- file: src/cores/cl/components/MedicationReconciliationDialog.tsx:44
- kind: component
- core: cl
- spec: (none)
- summary: Utility for medication reconciliation dialog.
- score: 1
component MetabolicMonitoringList
- file: src/cores/cl/components/MetabolicMonitoringList.tsx:46
- kind: component
- core: cl
- spec: (none)
- summary: Lists due/overdue metabolic events and supports completion actions with permission checks.
- score: 2
component MobileChartBottomSheet
- file: src/cores/cl/components/MobileChartBottomSheet.tsx:27
- kind: component
- core: cl
- spec: (none)
- summary: Renders the mobile chart bottom sheet interface.
- score: 2
component MobileVitalsKeypad
- file: src/cores/cl/components/MobileVitalsKeypad.tsx:43
- kind: component
- core: cl
- spec: (none)
- summary: Renders the mobile vitals keypad interface.
- score: 2
component MobileVitalsSheet
- file: src/cores/cl/components/MobileVitalsSheet.tsx:35
- kind: component
- core: cl
- spec: (none)
- summary: Mobile vitals entry sheet. Slide-up bottom sheet using the primitive.
- score: 2
component MoudEnrollmentDetailPage
- file: src/cores/cl/pages/MoudEnrollmentDetailPage.tsx:61
- kind: component
- core: cl
- spec: (none)
- summary: Utility for moud enrollment detail page.
- score: 1
component MoudEnrollmentFormDialog
- file: src/cores/cl/components/moud/MoudEnrollmentFormDialog.tsx:42
- kind: component
- core: cl
- spec: (none)
- summary: Utility for moud enrollment form dialog.
- score: 1
component MoudEnrollmentListPage
- file: src/cores/cl/pages/MoudEnrollmentListPage.tsx:45
- kind: component
- core: cl
- spec: (none)
- summary: Utility for moud enrollment list page.
- score: 1
component MoudMedicationEventFormDialog
- file: src/cores/cl/components/moud/MoudMedicationEventFormDialog.tsx:43
- kind: component
- core: cl
- spec: (none)
- summary: Utility for moud medication event form dialog.
- score: 1
component MoudMonitoringEventFormDialog
- file: src/cores/cl/components/moud/MoudMonitoringEventFormDialog.tsx:36
- kind: component
- core: cl
- spec: (none)
- summary: Utility for moud monitoring event form dialog.
- score: 1
component MultiPartyEncounterFormDialog
- file: src/cores/cl/components/multi-party/MultiPartyEncounterFormDialog.tsx:54
- kind: component
- core: cl
- spec: CL-14
- summary: Dialog for creating a new multi-party clinical encounter (familytherapy, couples session, MDT). Captures the primary patient chart,encounter type, modality (in-person / virtual / phone), and free-textnotes, then calls to persist the row. Fires with the new encounter id so thecaller can navigate directly into the encounter for furtherparticipant capture.
- params:
- props — Dialog props. - : Whether the dialog is open. - : Callback fired when the dialog wants to close. - : Invoked with the new encounter id after a successful create.
- score: 5
component NoteInlinePreview
- file: src/cores/cl/components/NoteInlinePreview.tsx:25
- kind: component
- core: cl
- spec: (none)
- summary: Utility for note inline preview.
- score: 1
component NotesSubmissionsHubPage
- file: src/cores/cl/pages/NotesSubmissionsHubPage.tsx:37
- kind: component
- core: cl
- spec: (none)
- summary: Notes & Submissions hub page. Renders the co-sign queue, note templates, andpatient submissions tab strip via the shared primitive.
- score: 2
component NoteTemplatesPage
- file: src/cores/cl/pages/NoteTemplatesPage.tsx:174
- kind: component
- core: cl
- spec: (none)
- summary: Utility for note templates page.
- score: 1
component NotificationAttemptTrailSheet
- file: src/cores/cl/components/notifications/NotificationAttemptTrailSheet.tsx:77
- kind: component
- core: cl
- spec: CL-56
- summary: Delivery-attempt trail Sheet for a single clinical notification event.Aggregates every send / retry / error / acknowledgement row from into a counts strip plus achronological list, so on-call leads can audit whether a given alertactually reached its intended recipients and within SLA.
- params:
- props — Sheet props. - : whose attempt history is loaded. - : Signal type label shown in the header (e.g. ). - : Severity label shown in the header. - : Whether the sheet is mounted. - : Callback fired when the sheet wants to close.
- score: 5
component NotificationServiceDisabledBanner
- file: src/cores/cl/components/notifications/NotificationServiceDisabledBanner.tsx:41
- kind: component
- core: cl
- spec: CL-56
- summary: Full-page banner rendered when the clinical-notification service featureflag is disabled for the current organization. Names the controllingfeature flag and, when the user holds the platform permission, links straight to the flags adminpage so they can self-serve the toggle.
- params:
- props — Banner props. - : The platform feature-flag key that gates the notification service (used both in the message and the deep-link target).
- score: 5
component OrderSetActivationDialog
- file: src/cores/cl/components/order-sets/OrderSetActivationDialog.tsx:40
- kind: component
- core: cl
- spec: (none)
- summary: Activate an order set against a patient chart.
- score: 2
component OrderSetItemEditor
- file: src/cores/cl/components/order-sets/OrderSetItemEditor.tsx:29
- kind: component
- core: cl
- spec: (none)
- summary: Inline editor for order set template items.
- score: 2
component OrderSetManagementPage
- file: src/cores/cl/pages/OrderSetManagementPage.tsx:25
- kind: component
- core: cl
- spec: (none)
- summary: Order set template administration page.
- score: 2
component OrderSetTemplateDialog
- file: src/cores/cl/components/order-sets/OrderSetTemplateDialog.tsx:34
- kind: component
- core: cl
- spec: (none)
- summary: Order set template create/edit dialog.
- score: 2
component OrderSetTemplateList
- file: src/cores/cl/components/order-sets/OrderSetTemplateList.tsx:27
- kind: component
- core: cl
- spec: (none)
- summary: Tabular list of order set templates.
- score: 2
component OrderSetTemplateListMobile
- file: src/cores/cl/components/order-sets/OrderSetTemplateList.mobile.tsx:26
- kind: component
- core: cl
- spec: (none)
- summary: Mobile card list of order set templates.
- score: 2
component OrderTemplateFormDialog
- file: src/cores/cl/components/OrderTemplateFormDialog.tsx:29
- kind: component
- core: cl
- spec: (none)
- summary: Utility for order template form dialog.
- score: 1
component OrderTemplateManagementPage
- file: src/cores/cl/pages/OrderTemplateManagementPage.tsx:28
- kind: component
- core: cl
- spec: (none)
- summary: Utility for order template management page.
- score: 1
component OrderTemplateSelector
- file: src/cores/cl/components/OrderTemplateSelector.tsx:18
- kind: component
- core: cl
- spec: (none)
- summary: Utility for order template selector.
- score: 1
component OutcomeMeasureFormDialog
- file: src/cores/cl/components/OutcomeMeasureFormDialog.tsx:63
- kind: component
- core: cl
- spec: (none)
- summary: Renders the outcome measure form dialog interface.
- score: 2
component OutcomeTrendChart
- file: src/cores/cl/components/OutcomeTrendChart.tsx:38
- kind: component
- core: cl
- spec: (none)
- summary: Renders the outcome trend chart interface.
- score: 2
component Part2ComplianceDashboardPage
- file: src/cores/cl/pages/Part2ComplianceDashboardPage.tsx:115
- kind: component
- core: cl
- spec: (none)
- summary: Utility for part2 compliance dashboard page.
- score: 1
component PathwayManagementPage
- file: src/cores/cl/pages/PathwayManagementPage.tsx:25
- kind: component
- core: cl
- spec: (none)
- summary: Utility for pathway management page.
- score: 1
component PathwayProgressCard
- file: src/cores/cl/components/pathways/PathwayProgressCard.tsx:21
- kind: component
- core: cl
- spec: (none)
- summary: Utility for pathway progress card.
- score: 1
component PathwayStepList
- file: src/cores/cl/components/pathways/PathwayStepList.tsx:18
- kind: component
- core: cl
- spec: (none)
- summary: Renders pathway steps with visual state for current and completed progress.
- score: 2
component PathwayTemplateFormDialog
- file: src/cores/cl/components/pathways/PathwayTemplateFormDialog.tsx:55
- kind: component
- core: cl
- spec: CL-42
- summary: Create / edit Dialog for a clinical pathway template. Drives name,description, program selection, and an ordered milestone list (eachwith sequence order and expected duration in days). Distinguishes createvs edit modes by the presence of , calling or accordingly.
- params:
- props — Dialog props. - : Whether the dialog is open. - : Callback fired when the dialog wants to close. - : Existing template + milestones for edit mode; omit or pass for create.
- score: 5
component PatientBanner
- file: src/cores/cl/components/PatientBanner.tsx:130
- kind: component
- core: cl
- spec: (none)
- summary: Displays the sticky patient header with demographics, clinical indicators, and quick actions.
- score: 2
component PatientBannerSkeleton
- file: src/cores/cl/components/PatientBanner.tsx:322
- kind: component
- core: cl
- spec: (none)
- summary: Shows loading placeholders matching the patient banner layout while chart context resolves.
- score: 2
component PatientCareGapsCard
- file: src/cores/cl/components/summary/PatientCareGapsCard.tsx:43
- kind: component
- core: cl
- spec: (none)
- summary: Utility for patient care gaps card.
- score: 1
component PatientChartPage
- file: src/cores/cl/pages/PatientChartPage.tsx:70
- kind: component
- core: cl
- spec: (none)
- summary: Utility for patient chart page.
- score: 1
component PatientChartSearchCombobox
- file: src/cores/cl/components/PatientChartSearchCombobox.tsx:39
- kind: component
- core: cl
- spec: (none)
- summary: Searchable combobox for patient charts.Requires minimum 2 characters to search. Stores chart (UUID).
- score: 2
component PatientPathwayPanel
- file: src/cores/cl/components/pathways/PatientPathwayPanel.tsx:48
- kind: component
- core: cl
- spec: CL-42
- summary: Patient-side pathways panel. Lists all pathway enrollments for thepatient, lets the user select an active enrollment to see its milestoneprogress, and exposes affordances to enroll in a new pathway, complete amilestone, or document a variance against an at-risk milestone.
- params:
- props — Panel props. - : The patient whose pathways are shown.
- score: 5
component PatientSignatureDialog
- file: src/cores/cl/components/PatientSignatureDialog.tsx:25
- kind: component
- core: cl
- spec: (none)
- summary: Utility for patient signature dialog.
- score: 1
component PatientSubmissionDetailPage
- file: src/cores/cl/pages/PatientSubmissionDetailPage.tsx:91
- kind: component
- core: cl
- spec: (none)
- summary: Utility for patient submission detail page.
- score: 1
component PatientSubmissionsListPage
- file: src/cores/cl/pages/PatientSubmissionsListPage.tsx:60
- kind: component
- core: cl
- spec: (none)
- summary: Utility for patient submissions list page.
- score: 1
component PatientTimelineSection
- file: src/cores/cl/components/PatientTimelineSection.tsx:63
- kind: component
- core: cl
- spec: (none)
- summary: Renders the patient timeline section interface.
- score: 2
component PdmpAttestationDialog
- file: src/cores/cl/components/PdmpAttestationDialog.tsx:24
- kind: component
- core: cl
- spec: (none)
- summary: Renders the pdmp attestation dialog interface.
- score: 2
component PdmpConfigurationForm
- file: src/cores/cl/components/PdmpConfigurationForm.tsx:40
- kind: component
- core: cl
- spec: (none)
- summary: Renders the pdmp configuration form interface.
- score: 2
component PdmpConfigurationPage
- file: src/cores/cl/pages/PdmpConfigurationPage.tsx:12
- kind: component
- core: cl
- spec: (none)
- summary: Utility for pdmp configuration page.
- score: 1
component PdmpHistoryPage
- file: src/cores/cl/pages/PdmpHistoryPage.tsx:16
- kind: component
- core: cl
- spec: (none)
- summary: Utility for pdmp history page.
- score: 1
component PdmpResultsView
- file: src/cores/cl/components/PdmpResultsView.tsx:116
- kind: component
- core: cl
- spec: (none)
- summary: Utility for pdmp results view.
- score: 1
component PeerEncounterFormDialog
- file: src/cores/cl/components/PeerEncounterFormDialog.tsx:52
- kind: component
- core: cl
- spec: (none)
- summary: Renders the peer encounter form dialog interface.
- score: 2
component PeerSupervisionFormDialog
- file: src/cores/cl/components/PeerSupervisionFormDialog.tsx:40
- kind: component
- core: cl
- spec: (none)
- summary: Renders the peer supervision form dialog interface.
- score: 2
component PendingLabResultsPage
- file: src/cores/cl/pages/PendingLabResultsPage.tsx:12
- kind: component
- core: cl
- spec: (none)
- summary: Utility for pending lab results page.
- score: 1
component PendingLabResultsQueue
- file: src/cores/cl/components/PendingLabResultsQueue.tsx:25
- kind: component
- core: cl
- spec: (none)
- summary: Utility for pending lab results queue.
- score: 1
component PharmacyDirectoryPage
- file: src/cores/cl/pages/PharmacyDirectoryPage.tsx:39
- kind: component
- core: cl
- spec: (none)
- summary: Utility for pharmacy directory page.
- score: 1
component PharmacyPickerDialog
- file: src/cores/cl/components/PharmacyPickerDialog.tsx:33
- kind: component
- core: cl
- spec: (none)
- summary: Utility for pharmacy picker dialog.
- score: 1
component Policy940OverrideDialog
- file: src/cores/cl/components/Policy940OverrideDialog.tsx:31
- kind: component
- core: cl
- spec: (none)
- summary: Dialog for supervisors to override Policy 940 validation with mandatory justification.
- score: 2
component Policy940SettingsCard
- file: src/cores/cl/components/Policy940SettingsCard.tsx:37
- kind: component
- core: cl
- spec: (none)
- summary: Admin card for configuring Policy 940 enforcement mode and override settings.
- score: 2
component Policy940ValidationFeedback
- file: src/cores/cl/ai-documentation/components/Policy940ValidationFeedback.tsx:19
- kind: component
- core: cl
- spec: (none)
- summary: Renders Policy 940 validation feedback with severity-appropriate styling.
- score: 2
component PolicyEditorSheet
- file: src/cores/cl/components/notifications/PolicyEditorSheet.tsx:47
- kind: component
- core: cl
- spec: CL-56
- summary: Editor Sheet for a clinical-notification policy(). Captures the signal type, SLA window(seconds), de-dup window (seconds), active flag, and a free-form JSONseverity-rules payload — with inline JSON validation — and persists via for both create and edit flows.
- params:
- props — Sheet props. - : Existing policy row to edit; opens the sheet in create mode with default SLA / dedup values. - : Whether the sheet is open. - : Callback fired when the sheet wants to close.
- score: 5
component PopulationDashboardPage
- file: src/cores/cl/pages/population-health/PopulationDashboardPage.tsx:53
- kind: component
- core: cl
- spec: (none)
- summary: Population Health Dashboard — aggregate charts with small-cell suppression.
- score: 2
component PortalCheckinPage
- file: src/cores/cl/pages/portal/PortalCheckinPage.tsx:33
- kind: component
- core: cl
- spec: (none)
- summary: Utility for portal checkin page.
- score: 1
component PortalConsentsPage
- file: src/cores/cl/pages/portal/PortalConsentsPage.tsx:44
- kind: component
- core: cl
- spec: (none)
- summary: Utility for portal consents page.
- score: 1
component PortalScreeningPage
- file: src/cores/cl/pages/portal/PortalScreeningPage.tsx:91
- kind: component
- core: cl
- spec: (none)
- summary: Utility for portal screening page.
- score: 1
component PortalTreatmentPlanPage
- file: src/cores/cl/pages/portal/PortalTreatmentPlanPage.tsx:37
- kind: component
- core: cl
- spec: (none)
- summary: Utility for portal treatment plan page.
- score: 1
component PrescriptionFormDialog
- file: src/cores/cl/components/PrescriptionFormDialog.tsx:51
- kind: component
- core: cl
- spec: (none)
- summary: E-Prescribing wizard dialog using DialogWizardShell (CL-UX-04).
- score: 2
component PrescriptionList
- file: src/cores/cl/components/PrescriptionList.tsx:45
- kind: component
- core: cl
- spec: (none)
- summary: Utility for prescription list.
- score: 1
component ProblemFormDialog
- file: src/cores/cl/components/ProblemFormDialog.tsx:52
- kind: component
- core: cl
- spec: (none)
- summary: Utility for problem form dialog.
- score: 1
component ProblemHistoryTimeline
- file: src/cores/cl/components/problem-list/ProblemHistoryTimeline.tsx:41
- kind: component
- core: cl
- spec: CL-46
- summary: Reverse-chronological history timeline for a single problem-list entry.Renders status transitions, free-text rationale (truncated to a preview,expandable), and audit metadata. Used both inside the problem-list panel(inline expansion) and standalone (e.g. compliance review).
- params:
- props — Timeline props. - : whose history is rendered. - : Optional label shown in the dialog header when the timeline is launched as a modal (e.g. ICD-10 description).
- score: 5
component ProblemListPanel
- file: src/cores/cl/components/problem-list/ProblemListPanel.tsx:50
- kind: component
- core: cl
- spec: CL-46
- summary: Patient chart problem-list panel. Partitions entries intoactive/chronic vs historical (resolved/inactive/entered-in-error)groups, exposes the add-problem affordance behind ,and switches to a mobile-friendly layout under the responsivebreakpoint. Returns null when the user lacks .
- params:
- props — Panel props. - : whose problem list is rendered. - : The patient owning the chart.
- score: 5
component ProblemStatusActions
- file: src/cores/cl/components/problem-list/ProblemStatusActions.tsx:50
- kind: component
- core: cl
- spec: CL-46
- summary: Per-row status-transition actions for a problem-list entry. Computes thelegal next-states from (which mirrors the DB trigger) and surfaces them asaction buttons or guarded confirmation dialogs (,). Hidden entirely when the user lacks or the row has no legal forward transitions.
- params:
- props — Action props. - : The problem-list row whose actions are rendered.
- score: 5
component ProgramEnrollmentsPage
- file: src/cores/cl/pages/ProgramEnrollmentsPage.tsx:19
- kind: component
- core: cl
- spec: (none)
- summary: Utility for program enrollments page.
- score: 1
component ProgramScheduleFormDialog
- file: src/cores/cl/components/program-schedules/ProgramScheduleFormDialog.tsx:49
- kind: component
- core: cl
- spec: (none)
- summary: Utility for program schedule form dialog.
- score: 1
component ProgramSchedulesListPage
- file: src/cores/cl/pages/ProgramSchedulesListPage.tsx:26
- kind: component
- core: cl
- spec: (none)
- summary: Utility for program schedules list page.
- score: 1
component ProgramsPathwaysHubPage
- file: src/cores/cl/pages/ProgramsPathwaysHubPage.tsx:39
- kind: component
- core: cl
- spec: (none)
- summary: Programs & Pathways hub page. Renders the program scheduling, enrollment, andclinical pathway tab strip via the shared primitive.
- score: 2
component ProgressNoteAddendumDialog
- file: src/cores/cl/components/ProgressNoteAddendumDialog.tsx:36
- kind: component
- core: cl
- spec: (none)
- summary: Renders the progress note addendum dialog interface.
- score: 2
component ProgressNoteCosignQueuePage
- file: src/cores/cl/pages/ProgressNoteCosignQueuePage.tsx:72
- kind: component
- core: cl
- spec: (none)
- summary: Utility for progress note cosign queue page.
- score: 1
component ProgressNoteDetailPage
- file: src/cores/cl/pages/ProgressNoteDetailPage.tsx:57
- kind: component
- core: cl
- spec: (none)
- summary: Utility for progress note detail page.
- score: 1
component ProgressNoteForm
- file: src/cores/cl/components/ProgressNoteForm.tsx:113
- kind: component
- core: cl
- spec: (none)
- summary: Utility for progress note form.
- score: 1
component ProgressNoteSignDialog
- file: src/cores/cl/components/ProgressNoteSignDialog.tsx:48
- kind: component
- core: cl
- spec: (none)
- summary: Renders the progress note sign dialog interface with EN-66 Policy 940 validation gate.
- score: 2
component QualityMeasuresPage
- file: src/cores/cl/pages/population-health/QualityMeasuresPage.tsx:38
- kind: component
- core: cl
- spec: (none)
- summary: Quality Measures page — HEDIS and MA STARS measure periods.
- score: 2
component QualityScoreBadge
- file: src/cores/cl/components/QualityScoreBadge.tsx:30
- kind: component
- core: cl
- spec: (none)
- summary: Renders the quality score badge interface.
- score: 2
component ReadmissionRiskFormDialog
- file: src/cores/cl/components/discharge/ReadmissionRiskFormDialog.tsx:37
- kind: component
- core: cl
- spec: (none)
- summary: Utility for readmission risk form dialog.
- score: 1
component RecentNotesCard
- file: src/cores/cl/components/summary/RecentNotesCard.tsx:29
- kind: component
- core: cl
- spec: (none)
- summary: Renders the recent notes card interface.
- score: 2
component ReconciliationSummary
- file: src/cores/cl/components/group-encounter-generation/ReconciliationSummary.tsx:20
- kind: component
- core: cl
- spec: (none)
- summary: Displays a summary of generation record statuses for reconciliation.
- score: 2
component RecordAttendanceDialog
- file: src/cores/cl/components/group-therapy/RecordAttendanceDialog.tsx:37
- kind: component
- core: cl
- spec: (none)
- summary: Utility for record attendance dialog.
- score: 1
component RecordDisclosureSheet
- file: src/cores/cl/components/RecordDisclosureSheet.tsx:56
- kind: component
- core: cl
- spec: CL-11
- summary: Sheet for logging a 42 CFR Part 2 § 2.32 redisclosure event. Captures thereceiving party, purpose, and record types, then previews theauto-generated redisclosure notice text before persisting the entry via. Permission-gated to at the caller.
- params:
- props — Sheet props. - : Whether the sheet is mounted and visible. - : Callback fired when the sheet wants to close (cancel, backdrop, successful submit). - : Pre-selected ; lets the caller deep-link from a consent’s detail view. - : Pre-selected patient identifier matching the chosen consent.
- score: 5
component RecordingConsentDialog
- file: src/cores/cl/components/virtual-group/RecordingConsentDialog.tsx:60
- kind: component
- core: cl
- spec: CL-55
- summary: Recording-consent capture dialog for a virtual / telehealth groupsession attendance row. Captures the consent modality (verbal,electronic signature, written) and persists via. Locks down to read-only when consent isalready captured — recording consent is immutable once recorded, so thedialog never overwrites an existing capture by accident.
- params:
- props — Dialog props. - : Whether the dialog is open. - : Callback fired when the dialog wants to close. - : The attendance row being annotated. - : The owning group session. - : Current consent state for the attendance row; when populated, switches the dialog into read-only mode.
- score: 5
component RecordReferralOutcomeDialog
- file: src/cores/cl/components/RecordReferralOutcomeDialog.tsx:41
- kind: component
- core: cl
- spec: (none)
- summary: Utility for record referral outcome dialog.
- score: 1
component ReferenceLabFormDialog
- file: src/cores/cl/components/ReferenceLabFormDialog.tsx:25
- kind: component
- core: cl
- spec: (none)
- summary: Renders the reference lab form dialog interface.
- score: 2
component ReferenceLabManagementPage
- file: src/cores/cl/pages/ReferenceLabManagementPage.tsx:28
- kind: component
- core: cl
- spec: (none)
- summary: Utility for reference lab management page.
- score: 1
component ReferenceRangeForm
- file: src/cores/cl/components/ReferenceRangeForm.tsx:38
- kind: component
- core: cl
- spec: (none)
- summary: Collects LOINC reference range thresholds and submits them from a dialog form.
- score: 2
component ReferenceRangeManagementPage
- file: src/cores/cl/pages/ReferenceRangeManagementPage.tsx:23
- kind: component
- core: cl
- spec: (none)
- summary: Utility for reference range management page.
- score: 1
component ReferralOutcomeReportPage
- file: src/cores/cl/pages/ReferralOutcomeReportPage.tsx:138
- kind: component
- core: cl
- spec: (none)
- summary: Referral outcome report page with filter, metrics, and CSV export.
- score: 2
component ReferralStatusHistoryTable
- file: src/cores/cl/components/referral-status/ReferralStatusHistoryTable.tsx:78
- kind: component
- core: cl
- spec: (none)
- summary: Table showing full status history for a referral (newest first).
- score: 2
component ReferralStatusUpdateDialog
- file: src/cores/cl/components/referral-status/ReferralStatusUpdateDialog.tsx:50
- kind: component
- core: cl
- spec: (none)
- summary: Dialog for recording a new referral status update (append-only).
- score: 2
component RejectEncounterGenerationDialog
- file: src/cores/cl/components/group-encounter-generation/RejectEncounterGenerationDialog.tsx:23
- kind: component
- core: cl
- spec: (none)
- summary: Dialog for rejecting an encounter generation with a required reason.
- score: 2
component ReportDefinitionFormDialog
- file: src/cores/cl/components/reporting/ReportDefinitionFormDialog.tsx:54
- kind: component
- core: cl
- spec: (none)
- summary: Renders the report definition form dialog interface.
- score: 2
component ReportDefinitionsListPage
- file: src/cores/cl/pages/ReportDefinitionsListPage.tsx:31
- kind: component
- core: cl
- spec: (none)
- summary: Utility for report definitions list page.
- score: 1
component ReportRunsHistoryPage
- file: src/cores/cl/pages/ReportRunsHistoryPage.tsx:35
- kind: component
- core: cl
- spec: (none)
- summary: Utility for report runs history page.
- score: 1
component ReviewFilterBar
- file: src/cores/cl/components/concurrent-reviews/ReviewFilterBar.tsx:30
- kind: component
- core: cl
- spec: (none)
- summary: Compact filter row for the review worklist.
- score: 2
component ReviewScheduleConfigPage
- file: src/cores/cl/pages/ReviewScheduleConfigPage.tsx:15
- kind: component
- core: cl
- spec: (none)
- summary: Configure per-payer review cadences.
- score: 2
component ReviewStatusBadge
- file: src/cores/cl/components/concurrent-reviews/ReviewStatusBadge.tsx:43
- kind: component
- core: cl
- spec: CL-43
- summary: Badge representation of a concurrent-review status. Maps the canonical enum to a Badge variant + human-readablelabel, with highlighted destructive so reviewers spot SLAbreaches at a glance. Falls back gracefully on unrecognized strings so anew enum value renders verbatim rather than breaking the worklist.
- params:
- props — Badge props. - : Status string from .
- score: 5
component ReviewWorklist
- file: src/cores/cl/components/concurrent-reviews/ReviewWorklist.tsx:40
- kind: component
- core: cl
- spec: (none)
- summary: Worklist of concurrent reviews with mobile-friendly card fallback.
- score: 2
component RevokeConsentDialog
- file: src/cores/cl/components/RevokeConsentDialog.tsx:39
- kind: component
- core: cl
- spec: CL-11
- summary: Confirmation dialog for revoking an electronic consent. Warns the userthat the action is irreversible — once revoked, no further disclosures /exports / reads are permitted against the consent and a new consent mustbe re-captured. Submits via .
- params:
- props — Dialog props. - : Whether the alert dialog is open. - : Callback fired when the dialog requests close. - : to revoke; short-circuits submit so the dialog can stay mounted with no target.
- score: 5
component RiskScreeningFormDialog
- file: src/cores/cl/components/RiskScreeningFormDialog.tsx:361
- kind: component
- core: cl
- spec: (none)
- summary: Utility for risk screening form dialog.
- score: 1
component RosExtentBadge
- file: src/cores/cl/components/blocks/ros-exam/RosExamIndicators.tsx:31
- kind: component
- core: cl
- spec: (none)
- summary: Advisory E/M ROS-extent indicator (AC-13). Outline/secondary styling only —this badge never signals an error or blocks completion.
- score: 2
component RtpbStep
- file: src/cores/cl/wizards/e-prescribing/steps/RtpbStep.tsx:25
- kind: component
- core: cl
- spec: (none)
- summary: Step 2: RTPB benefit check results display.
- score: 2
component SafetyAlertsPanel
- file: src/cores/cl/components/SafetyAlertsPanel.tsx:41
- kind: component
- core: cl
- spec: (none)
- summary: Renders the safety alerts panel interface.
- score: 2
component SafetyPlanDialog
- file: src/cores/cl/components/SafetyPlanDialog.tsx:660
- kind: component
- core: cl
- spec: (none)
- summary: Utility for safety plan dialog.
- score: 1
component SafetyPlanPatientView
- file: src/cores/cl/components/SafetyPlanPatientView.tsx:152
- kind: component
- core: cl
- spec: (none)
- summary: Utility for safety plan patient view.
- score: 1
component SafetyPlanShareDialog
- file: src/cores/cl/components/zero-suicide/SafetyPlanShareDialog.tsx:75
- kind: component
- core: cl
- spec: CL-07
- summary: Dialog for sharing a Zero-Suicide safety plan with the patient or theirsupport network. Offers three transmission modalities — secure 24-hourlink, PDF download, or printed copy — captures the recipient contact(when applicable), and records the share to sodisclosures are auditable. Share is permission-gated upstream.
- params:
- props — Dialog props. - : Whether the dialog is open. - : Callback fired when the dialog wants to close. - : The plan being shared. - : The patient’s chart id (for audit context). - : Invoked after a successful share so the caller can refresh the share history panel.
- score: 5
component ScreeningAdministrationDialog
- file: src/cores/cl/components/screening/ScreeningAdministrationDialog.tsx:67
- kind: component
- core: cl
- spec: CL-47
- summary: Administration dialog for a behavioral-health screening instrument(PHQ-9, GAD-7, AUDIT, CIWA-Ar, etc.). Walks the clinician through theinstrument’s questions step-by-step, then computes and displays thetotal score, severity band, and any positive-screen dispositionrecommendations before persisting the administration to.
- params:
- props — Dialog props. - : Whether the dialog is open. - : Callback fired when the dialog wants to close. - : Which screening instrument to administer. - : The patient’s chart id. - : The patient receiving the screening. - : Optional encounter to link the administration to. - : User id of the administering clinician.
- score: 5
component ScreeningTrendChart
- file: src/cores/cl/components/screening/ScreeningTrendChart.tsx:37
- kind: component
- core: cl
- spec: CL-47
- summary: Trend chart for repeated administrations of a screening instrument onone patient chart. Plots total scores over time and overlays theinstrument-specific severity bands (minimal / mild / moderate / severe)so clinicians can see at a glance whether the patient is improving,holding, or worsening since the prior visit.
- params:
- props — Chart props. - : whose administrations are plotted. - : Which instrument to chart (e.g. ).
- score: 5
component SeedTranscriptionSessionButton
- file: src/cores/cl/ai-documentation/components/SeedTranscriptionSessionButton.tsx:21
- kind: component
- core: cl
- spec: (none)
- summary: Renders an admin-gated button that creates one transcription session andthree synthetic segments for the current organization. No-op for userswithout .
- score: 2
component ShareHistoryPanel
- file: src/cores/cl/components/zero-suicide/ShareHistoryPanel.tsx:75
- kind: component
- core: cl
- spec: CL-07
- summary: History of every share of a Zero-Suicide safety plan. Lists each sharerow with method (secure link / PDF / print), the recipient contact whensupplied, and the timestamp — giving compliance and clinical staff asingle view of how the plan has been distributed. Gated behind via the wrapping .
- params:
- props — Panel props. - : The plan whose shares are listed.
- score: 5
component SocialReferralFormDialog
- file: src/cores/cl/components/SocialReferralFormDialog.tsx:41
- kind: component
- core: cl
- spec: (none)
- summary: Utility for social referral form dialog.
- score: 1
component StandingOrderDialog
- file: src/cores/cl/components/order-sets/StandingOrderDialog.tsx:48
- kind: component
- core: cl
- spec: (none)
- summary: Standing order create/edit dialog.
- score: 2
component StandingOrderExecutionSheet
- file: src/cores/cl/components/order-sets/StandingOrderExecutionSheet.tsx:25
- kind: component
- core: cl
- spec: (none)
- summary: Execute a standing order and append an execution log row.
- score: 2
component StandingOrderForm
- file: src/cores/cl/components/StandingOrderForm.tsx:32
- kind: component
- core: cl
- spec: (none)
- summary: Renders the standing order form interface.
- score: 2
component StandingOrderList
- file: src/cores/cl/components/order-sets/StandingOrderList.tsx:37
- kind: component
- core: cl
- spec: (none)
- summary: Standing order list.
- score: 1
component StandingOrderListMobile
- file: src/cores/cl/components/order-sets/StandingOrderList.mobile.tsx:52
- kind: component
- core: cl
- spec: (none)
- summary: Mobile card list of standing orders.
- score: 2
component StandingOrderManagementPage
- file: src/cores/cl/pages/StandingOrderManagementPage.tsx:26
- kind: component
- core: cl
- spec: (none)
- summary: Standing orders administration page.
- score: 2
component StandingOrderProtocolsPage
- file: src/cores/cl/pages/StandingOrderProtocolsPage.tsx:21
- kind: component
- core: cl
- spec: (none)
- summary: Utility for standing order protocols page.
- score: 1
component StandingOrderRenewDialog
- file: src/cores/cl/components/order-sets/StandingOrderRenewDialog.tsx:29
- kind: component
- core: cl
- spec: (none)
- summary: Renewal dialog for clinical standing orders.
- score: 2
component SupervisorPanelsPage
- file: src/cores/cl/pages/population-health/SupervisorPanelsPage.tsx:25
- kind: component
- core: cl
- spec: (none)
- summary: Supervisor Panels page — overview of all clinician panels.
- score: 2
component SuprtCaptureDialog
- file: src/cores/cl/components/outcomes/SuprtCaptureDialog.tsx:188
- kind: component
- core: cl
- spec: (none)
- summary: SUPRT capture dialog: renders SUPRT-A (admin auto-populate) and SUPRT-C(outstanding self-report) items from the CL-47 instrument library andsubmits as a longitudinal outcome episode via . CL-69 AC-3
- score: 2
component SurfaceTemplateBuilder
- file: src/cores/cl/components/blocks/SurfaceTemplateBuilder.tsx:40
- kind: component
- core: cl
- spec: (none)
- summary: The admin surface-template builder.
- score: 2
component SurfaceTemplateBuilderView
- file: src/cores/cl/components/blocks/SurfaceTemplateBuilderView.tsx:64
- kind: component
- core: cl
- spec: (none)
- summary: Render the admin surface-template composition UI.
- score: 2
component SurfaceTemplatesPage
- file: src/cores/cl/pages/SurfaceTemplatesPage.tsx:22
- kind: component
- core: cl
- spec: (none)
- summary: Surface templates management page.
- score: 2
component TbScreeningDueBadge
- file: src/cores/cl/components/blocks/ros-exam/RosExamIndicators.tsx:45
- kind: component
- core: cl
- spec: (none)
- summary: Residential-admission TB-screening-due indicator (AC-12). Renders nothing whenthe jurisdiction profile resolves no window () — there isno hardcoded fallback window.
- score: 2
component TechnologyCheckSheet
- file: src/cores/cl/components/virtual-group/TechnologyCheckSheet.tsx:80
- kind: component
- core: cl
- spec: (none)
- summary: Pre-session technology check sheet for virtual group therapy.
- params:
- props — Component props - open: Controls sheet visibility - onOpenChange: Callback when sheet visibility changes - onComplete: Callback when all checks are completed
- returns: Sheet component with technology checklist
- score: 2
component TefcaExchangeDetailDialog
- file: src/cores/cl/components/tefca/TefcaExchangeDetailDialog.tsx:35
- kind: component
- core: cl
- spec: (none)
- summary: Detail dialog for a TEFCA exchange log entry.
- score: 2
component TefcaExchangeFilters
- file: src/cores/cl/components/tefca/TefcaExchangeFilters.tsx:31
- kind: component
- core: cl
- spec: (none)
- summary: Filter bar for TEFCA exchange list.
- score: 2
component TefcaKpiStrip
- file: src/cores/cl/components/tefca/TefcaKpiStrip.tsx:19
- kind: component
- core: cl
- spec: (none)
- summary: KPI strip showing exchange status counts.
- score: 2
component TefcaMatchReviewQueue
- file: src/cores/cl/components/tefca/TefcaMatchReviewQueue.tsx:24
- kind: component
- core: cl
- spec: (none)
- summary: Manual review queue for below-threshold patient match candidates.
- score: 2
component TefcaOperationsPage
- file: src/cores/cl/pages/TefcaOperationsPage.tsx:35
- kind: component
- core: cl
- spec: (none)
- summary: TEFCA operations list page.
- score: 1
component TefcaStatusBadge
- file: src/cores/cl/components/tefca/TefcaStatusBadge.tsx:23
- kind: component
- core: cl
- spec: (none)
- summary: Renders a styled badge for TEFCA exchange status.
- score: 2
component TelehealthConnectivityIssueDialog
- file: src/cores/cl/components/telehealth/TelehealthConnectivityIssueDialog.tsx:58
- kind: component
- core: cl
- spec: CL-24
- summary: Dialog for logging a mid-session connectivity issue against a telehealthsession. Persists via , which appends to the JSONB column with a client-side cap of 50 entries.
- params:
- props — Dialog props. - : Whether the dialog is open. - : Callback fired when the dialog wants to close. - : to append the issue to.
- score: 5
component TelehealthConsentCaptureDialog
- file: src/cores/cl/components/telehealth/TelehealthConsentCaptureDialog.tsx:83
- kind: component
- core: cl
- spec: CL-24
- summary: Dialog for capturing a new telehealth consent (general or audio-only) fora patient chart. Renders the jurisdictionally-correct consent language,captures the method, and persists via . Thee-signature tab is rendered disabled until PF-33 digital signatures areavailable; the rest of the flow is fully functional today.
- params:
- props — Dialog props. - : Whether the dialog is open. - : Callback fired when the dialog wants to close. - : to attach consent to. - : Org jurisdiction code (e.g. ) — drives which consent-language version is shown. - : Pre-selected consent type radio value; defaults to .
- score: 5
component TelehealthSafetyChecklistSheet
- file: src/cores/cl/components/telehealth/TelehealthSafetyChecklistSheet.tsx:65
- kind: component
- core: cl
- spec: CL-24
- summary: Renders the pre-session safety checklist Sheet for a telehealth session.Persists via once all required toggles areset (block mode) or any toggle is set (warn-only mode). The CTA exposes a44px touch target so the form is comfortable on mobile devices.
- params:
- props — Sheet props. - : Whether the sheet is open. - : Callback fired when the sheet wants to close. - : to mark complete. - : When , the CTA only enables once the three required items are set; when , any one item enables it.
- score: 5
component TemplateSelectStep
- file: src/cores/cl/components/TemplateSelectStep.tsx:34
- kind: component
- core: cl
- spec: (none)
- summary: Utility for template select step.
- score: 1
component TraumaAssessmentForm
- file: src/cores/cl/components/TraumaAssessmentForm.tsx:135
- kind: component
- core: cl
- spec: (none)
- summary: Utility for trauma assessment form.
- score: 1
component TraumaResultAlert
- file: src/cores/cl/components/TraumaResultAlert.tsx:28
- kind: component
- core: cl
- spec: (none)
- summary: Renders a destructive alert when the PCL-5 score meets or exceeds theclinical alert threshold. For other trauma instruments, displays score only.Includes a disabled “Link to Treatment Plan” stub per CONTEXT.md.
- score: 2
component TreatmentGoalForm
- file: src/cores/cl/components/TreatmentGoalForm.tsx:44
- kind: component
- core: cl
- spec: (none)
- summary: Utility for treatment goal form.
- score: 1
component TreatmentInterventionForm
- file: src/cores/cl/components/TreatmentInterventionForm.tsx:41
- kind: component
- core: cl
- spec: (none)
- summary: Renders the treatment intervention form interface.
- score: 2
component TreatmentPlanDetailPage
- file: src/cores/cl/pages/TreatmentPlanDetailPage.tsx:96
- kind: component
- core: cl
- spec: (none)
- summary: Utility for treatment plan detail page.
- score: 1
component TreatmentPlanForm
- file: src/cores/cl/components/TreatmentPlanForm.tsx:52
- kind: component
- core: cl
- spec: (none)
- summary: Renders the treatment plan form interface.
- score: 2
component TreatmentPlanListPage
- file: src/cores/cl/pages/TreatmentPlanListPage.tsx:46
- kind: component
- core: cl
- spec: (none)
- summary: Utility for treatment plan list page.
- score: 1
component TreatmentPlanSignatures
- file: src/cores/cl/components/TreatmentPlanSignatures.tsx:38
- kind: component
- core: cl
- spec: (none)
- summary: Renders the treatment plan signatures interface.
- score: 2
component TriggerNotificationButton
- file: src/cores/cl/components/TriggerNotificationButton.tsx:36
- kind: component
- core: cl
- spec: (none)
- summary: Renders the trigger notification button interface.
- score: 2
component UdsOrderListPage
- file: src/cores/cl/pages/UdsOrderListPage.tsx:28
- kind: component
- core: cl
- spec: (none)
- summary: Utility for uds order list page.
- score: 1
component UdsOrderStatusBadge
- file: src/cores/cl/components/uds/UdsOrderStatusBadge.tsx:26
- kind: component
- core: cl
- spec: (none)
- summary: Utility for uds order status badge.
- score: 1
component UdsResultsSection
- file: src/cores/cl/components/uds/UdsResultsSection.tsx:36
- kind: component
- core: cl
- spec: (none)
- summary: Utility for uds results section.
- score: 1
component UMAnalyticsPage
- file: src/cores/cl/pages/UMAnalyticsPage.tsx:13
- kind: component
- core: cl
- spec: (none)
- summary: UM analytics dashboard.
- score: 1
component UMDashboardPage
- file: src/cores/cl/pages/UMDashboardPage.tsx:37
- kind: component
- core: cl
- spec: (none)
- summary: UM dashboard landing page.
- score: 1
component UpdateBanner
- file: src/cores/cl/components/marketplace/UpdateBanner.tsx:30
- kind: component
- core: cl
- spec: (none)
- summary: Renders an inline notification banner when an imported bundle has a newerversion available in the marketplace.Displays the bundle name, current version, and latest version, with a”View Update” button to trigger the import preview dialog.
- params:
- bundleName — Display name of the bundle.
- currentVersion — The version number currently imported by the org.
- latestVersion — The newest available version in the marketplace.
- onViewUpdate — Callback invoked when the user clicks “View Update”. Typically opens the import preview sheet.
- returns: A styled info banner with version details and action button.
- score: 2
component VarianceDialog
- file: src/cores/cl/components/pathways/VarianceDialog.tsx:44
- kind: component
- core: cl
- spec: CL-42
- summary: Dialog for documenting a variance against a clinical pathway milestone.Requires a categorical reason code plus free-text rationale so thevariance is auditable; persists via . Used when amilestone is skipped, deferred, or otherwise deviates from the templatetimeline and the clinician needs to record why.
- params:
- props — Dialog props. - : Whether the dialog is open. - : Callback fired when the dialog wants to close. - : The patient pathway enrollment id. - : The milestone the variance applies to.
- score: 5
component VitalSignsForm
- file: src/cores/cl/components/VitalSignsForm.tsx:62
- kind: component
- core: cl
- spec: (none)
- summary: Renders the vital signs form interface.
- score: 2
component VitalsTrendChart
- file: src/cores/cl/components/VitalsTrendChart.tsx:39
- kind: component
- core: cl
- spec: (none)
- summary: Plots chart vital-sign trends with metric selection and high/low reference guides.
- score: 2
component WarmHandoffFormDialog
- file: src/cores/cl/components/discharge/WarmHandoffFormDialog.tsx:36
- kind: component
- core: cl
- spec: (none)
- summary: Utility for warm handoff form dialog.
- score: 1
component WenoAdapterSettingsCard
- file: src/cores/cl/components/WenoAdapterSettingsCard.tsx:34
- kind: component
- core: cl
- spec: (none)
- summary: Public component — permission-gated wrapper.
- score: 2
component WenoAltPharmacyFlag
- file: src/cores/cl/components/WenoAltPharmacyFlag.tsx:35
- kind: component
- core: cl
- spec: (none)
- summary: Warning badge + permission-gated toggle for the WENO alternative-pharmacycheck-in flag. The toggle updates for the chart (org-scoped) and invalidates the chart detail query so thebadge updates immediately. Permission-gated by .
- score: 2
component WenoCredentialsCard
- file: src/cores/cl/components/WenoCredentialsCard.tsx:32
- kind: component
- core: cl
- spec: (none)
- summary: Public component — permission-gated wrapper.
- score: 2
component WenoPrescribeDialog
- file: src/cores/cl/components/WenoPrescribeDialog.tsx:73
- kind: component
- core: cl
- spec: (none)
- summary: Dialog that collects the prescriber-supplied fields (address, phone, pharmacy)not held on the chart, builds a ComposeRxPayload from the patient, requests aWENO launch URL via the adapter, and embeds the WENO ComposeRx surface. SUDPart 2 consent is enforced server-side by the launch function via the chart id.
- score: 2
component WenoRxLogDialog
- file: src/cores/cl/components/WenoRxLogDialog.tsx:32
- kind: component
- core: cl
- spec: (none)
- summary: Dialog that requests a fresh WENO RxLog launch URL when opened and embeds it.The URL carries the encrypted launch payload, so it is fetched per-open andnever cached (staleTime/gcTime 0).
- score: 2
component WenoSyncButton
- file: src/cores/cl/components/WenoSyncButton.tsx:35
- kind: component
- core: cl
- spec: (none)
- summary: Button that invokes for the current organization and, onsuccess, invalidates the chart medication query so newly synced/cancelledprescriptions appear immediately. Permission-gated by .
- score: 2
component ZCodeSelectorDialog
- file: src/cores/cl/components/ZCodeSelectorDialog.tsx:43
- kind: component
- core: cl
- spec: (none)
- summary: Renders the zcode selector dialog interface.
- score: 2
Functions & utilities
function addBusinessDays
- file: src/cores/cl/utils/incidentDeadline.ts:76
- kind: function
- core: cl
- spec: (none)
- summary: Advance by N business days respecting business-day config.Holiday calendar is currently a no-op (deferred per CONTEXT.md).
- score: 4
function addDays
- file: src/cores/cl/utils/review-scheduling.ts:16
- kind: function
- core: cl
- spec: (none)
- summary: Add days to a date and return ISO date string (YYYY-MM-DD).
- score: 4
function addOrgBlockToSurface
- file: src/cores/cl/services/blocks/surfaceTemplateAdmin.ts:160
- kind: function
- core: cl
- spec: (none)
- summary: Add an org-optional block to a surface (creates the org template on first add).
- score: 4
function allAttendeesHaveConsent
- file: src/cores/cl/utils/recording-consent.ts:77
- kind: function
- core: cl
- spec: (none)
- summary: Checks whether all attendees in a session have captured recording consent.Required before recording can be enabled per ARS 13-3005.
- score: 4
function applyMinimumNecessaryFilter
- file: src/cores/cl/services/tefcaMinimumNecessary.ts:70
- kind: function
- core: cl
- spec: (none)
- summary: Filters a record object to include only fields in allowed categories.Categories map to field prefixes or exact field names.
- score: 4
function assertDisclosureComplete
- file: src/cores/cl/lib/dsiDisclosureCompleteness.ts:150
- kind: function
- core: cl
- spec: (none)
- summary: Assert that a disclosure row is complete for its dsi_type.
- score: 4
function autopopulateSuprtA
- file: src/cores/cl/lib/outcomes/suprt-autopopulate.ts:72
- kind: function
- core: cl
- spec: (none)
- summary: Pre-fill SUPRT-A items from existing chart administrative fields (AC-3). is the config-driven mapping (NFR-config-1: no hardcoded item codes baked into TS). An item is prefilledwhen its mapped chart field resolves to a defined, non-null value; otherwiseit is returned as outstanding.
- score: 4
function buildAssessmentContent
- file: src/cores/cl/templates/assessmentContent.ts:13
- kind: function
- core: cl
- spec: (none)
- summary: Provides build assessment content functionality.
- score: 4
function buildBlockDefinitions
- file: src/cores/cl/services/blocks/blockDefinitionLoader.ts:41
- kind: function
- core: cl
- spec: (none)
- summary: Stitch raw block rows + their version field-schemas into ordered definitions.
- params:
- slugOrder — the resolved slugs in render order (from ).
- blocks — raw rows (platform + org).
- versionsById — → its .
- returns: one definition per resolved slug that has a block, in ; org rows win ties.
- score: 4
function buildCcdaAllergySection
- file: src/cores/cl/utils/allergy-ccda.ts:33
- kind: function
- core: cl
- spec: (none)
- summary: Build the Allergies & Intolerances section.If any row has , the caller MUST attach thereturned to the export and write a redisclosureaudit log entry per 42 CFR Part 2 § 2.32.
- score: 4
function buildChartContext
- file: src/cores/cl/ai-documentation/lib/buildChartContext.ts:130
- kind: function
- core: cl
- spec: (none)
- summary: Assemble a deterministic, PHI-minimized for AI chart summary.Guarantees: - Whitelist-only: only documented structured fields are included. - Psychotherapy notes (45 CFR 164.501) are excluded unconditionally. - SUD-indicated notes are excluded when is falsy (42 CFR Part 2). - No patient identifiers (name, DOB, MRN, address) are ever included. - No note free text (content, body, narrative) is ever included. - carries counts only, for prompt transparency — no note content.
- score: 4
function buildChartSummaryPrompt
- file: src/cores/cl/ai-documentation/lib/buildChartSummaryPrompt.ts:61
- kind: function
- core: cl
- spec: (none)
- summary: Build the message pair for the chart-summary model call.Returns exactly two messages: a constant safety/system prompt and a usermessage embedding the provided . Deterministic for a givencontext — identical input always produces identical output.
- score: 4
function buildClinicalSummary
- file: src/cores/cl/utils/clinical-summary-extraction.ts:22
- kind: function
- core: cl
- spec: (none)
- summary: Reduce a chart snapshot to the structured clinical summary payload.
- score: 4
function buildClinicalSummaryContent
- file: src/cores/cl/templates/clinicalSummaryContent.ts:20
- kind: function
- core: cl
- spec: (none)
- summary: Provides build clinical summary content functionality.
- score: 4
function buildComposeRxObject
- file: src/cores/cl/integrations/weno/request-builder.ts:30
- kind: function
- core: cl
- spec: (none)
- summary: Build the WENO ComposeRx wire object in the vendor’s documented field order.Credentials (, , ) are injected from theserver-resolved ; never from the client payload.Empty optionals are omitted (WENO errors on empty-valued optional fields).
- score: 4
function buildConsentContent
- file: src/cores/cl/templates/consentContent.ts:20
- kind: function
- core: cl
- spec: (none)
- summary: Provides build consent content functionality.
- score: 4
function buildCptProposal
- file: src/cores/cl/utils/groupEncounterCptProposal.ts:63
- kind: function
- core: cl
- spec: (none)
- summary: Builds the complete CPT proposal with modifiers for a generation record.
- params:
- groupType — Session group type.
- groupSubtype — Session group subtype.
- participantCount — Number of present/partial attendees.
- returns: Object with proposed_cpt_code and modifiers array.
- score: 4
function buildExemptionAttestation
- file: src/cores/cl/lib/ceem/minimumNecessary.ts:140
- kind: function
- core: cl
- spec: (none)
- summary: Build the minimum-necessary attestation (FR-4). Emits ONLY the allow-listedfields; the category is included only per .
- score: 4
function buildFuaFuiMeasureParams
- file: src/cores/cl/utils/fua-fui-measure-spec.ts:53
- kind: function
- core: cl
- spec: (none)
- summary: Hydrate from the (already PF-96-resolved) inputs.The per-field fallback to applies only to amissing single field within a present compliance pack; callers must stillfail safe when the whole pack is absent (see ). is the PF-96 active ruleset version (ornull/undefined ⇒ DEFAULT); is the PF-96 AC-4opt-in (or null/undefined ⇒ false).
- params:
- input — PF-96-resolved measure inputs.
- score: 4
function buildGroupSessionContent
- file: src/cores/cl/templates/groupSessionContent.ts:13
- kind: function
- core: cl
- spec: (none)
- summary: Provides build group session content functionality.
- score: 4
function buildNoteContext
- file: src/cores/cl/ai-documentation/lib/buildNoteContext.ts:95
- kind: function
- core: cl
- spec: (none)
- summary: Assemble a deterministic, PHI-minimized .- Whitelist-only: only the documented narrative-drafting fields are copied; patient identifiers are never propagated.- Deterministic: stable key order and array ordering for identical input.- Absent sources are omitted (optional fields stay ); list sources default to empty arrays.
- score: 4
function buildNotePrompt
- file: src/cores/cl/ai-documentation/lib/buildNotePrompt.ts:65
- kind: function
- core: cl
- spec: (none)
- summary: Build the message pair for the note-drafting model call.Returns exactly two messages: a constant safety/system prompt and a usermessage embedding the provided . Deterministic for a givencontext.
- score: 4
function buildOrgTemplateBlockRow
- file: src/cores/cl/services/blocks/surfaceTemplateAdmin.ts:41
- kind: function
- core: cl
- spec: (none)
- summary: Build the row for an org-added optional block (always ).
- score: 4
function buildProgressNoteContent
- file: src/cores/cl/templates/progressNoteContent.ts:15
- kind: function
- core: cl
- spec: (none)
- summary: Provides build progress note content functionality.
- score: 4
function buildRationalePrompt
- file: src/cores/cl/lib/cds-rationale.ts:84
- kind: function
- core: cl
- spec: (none)
- summary: Build the LLM prompt for a CDS rationale explanation.PHI contract: accepts ONLY rule metadata — never alert.message, chart_id,patient name, DOB, MRN, SSN, or any other patient identifier.
- params:
- input — Rule metadata (alert_type, severity, and optional rule info)
- returns: systemPrompt + userMessage to pass to the AI provider
- score: 4
function buildRedisclosureNotice
- file: src/cores/cl/services/tefcaRedisclosureNotice.ts:32
- kind: function
- core: cl
- spec: (none)
- summary: Builds a 42 CFR Part 2 redisclosure notice for attachment tooutbound TEFCA exchange payloads containing SUD-protected data.
- score: 4
function buildRxLogObject
- file: src/cores/cl/integrations/weno/request-builder.ts:95
- kind: function
- core: cl
- spec: (none)
- summary: WENO’s RxLog launch payload is exactly two fields — the user’s credentials.Which prescriber’s log is shown is determined by these credentials.
- score: 4
function buildSafetyPlanContent
- file: src/cores/cl/templates/safetyPlanContent.ts:13
- kind: function
- core: cl
- spec: (none)
- summary: Provides build safety plan content functionality.
- score: 4
function buildTreatmentPlanContent
- file: src/cores/cl/templates/treatmentPlanContent.ts:13
- kind: function
- core: cl
- spec: (none)
- summary: Provides build treatment plan content functionality.
- score: 4
function buildTreatmentPlanPrompt
- file: src/cores/cl/ai-treatment-plan/lib/buildTreatmentPlanPrompt.ts:75
- kind: function
- core: cl
- spec: (none)
- summary: Build PHI-minimized prompt messages for treatment-plan AI drafting.Returns exactly 2 messages: system + user.The user message contains only icd10_code + description from active problemsand prior goal text for continuity context.
- score: 4
function buildWenoUrl
- file: src/cores/cl/integrations/weno/crypto.ts:57
- kind: function
- core: cl
- spec: (none)
- summary: Build a full WENO request URL. The payload must already be ordered/validatedper the endpoint schema (field order is vendor-significant).
- score: 4
function calculateAhcccsDeadline
- file: src/cores/cl/utils/incidentDeadline.ts:106
- kind: function
- core: cl
- spec: (none)
- summary: AHCCCS Policy 961: sentinel within 1 business day, standard within 2 business days.
- score: 4
function calculateAzdhsDeadline
- file: src/cores/cl/utils/incidentDeadline.ts:57
- kind: function
- core: cl
- spec: (none)
- summary: AZDHS licensing rule — matches trigger.
- score: 4
function calculateDurationMinutes
- file: src/cores/cl/lib/peerEncounterUtils.ts:11
- kind: function
- core: cl
- spec: (none)
- summary: Calculate duration in minutes from start and end time strings (HH:MM format).
- returns: duration in minutes, or null if invalid
- score: 4
function calculateFollowUpWindows
- file: src/cores/cl/services/followUpScheduling.ts:28
- kind: function
- core: cl
- spec: (none)
- summary: Calculate follow-up scheduling requests for 24/48/72h windows.
- params:
- baseTime — The starting point (usually screening/assessment time)
- returns: Array of 3 follow-up requests
- score: 4
function calculateIncidentDeadlines
- file: src/cores/cl/utils/incidentDeadline.ts:129
- kind: function
- core: cl
- spec: (none)
- summary: Compute incident reporting deadlines per the configured regulatory track.Defaults to AZDHS-only when no settings are present (Phase 1 behavior).
- score: 4
function calculateMatchScore
- file: src/cores/cl/services/tefcaPatientMatching.ts:59
- kind: function
- core: cl
- spec: (none)
- summary: Calculates a weighted confidence score (0..1) for a candidate match.
- score: 4
function calculateMeasureRate
- file: src/cores/cl/utils/hedisCalculation.ts:76
- kind: function
- core: cl
- spec: (none)
- summary: Compute a measure rate as NUMERIC(5,4). Zero denominator → 0.0000.Result is clamped to [0, 1] and rounded to 4 decimal places.
- score: 4
function calculateNextReviewDate
- file: src/cores/cl/utils/review-scheduling.ts:23
- kind: function
- core: cl
- spec: (none)
- summary: Compute the next review due date from the prior review and schedule.
- score: 4
function calculateNextScreeningDue
- file: src/cores/cl/utils/screeningDueDate.ts:26
- kind: function
- core: cl
- spec: (none)
- summary: Calculate the next screening due date based on risk level.
- params:
- riskLevel — The assessed risk level
- screenedAt — When the screening was conducted (Date or ISO string)
- lowRiskIntervalDays — Org setting for low-risk rescreen interval (default 30)
- returns: ISO 8601 string for next_screening_due
- score: 4
function calculateNoteQualityScore
- file: src/cores/cl/utils/quality-score.ts:49
- kind: function
- core: cl
- spec: (none)
- summary: Calculate documentation quality score for a progress note.
- returns: Score between 0.00 and 100.00
- score: 4
function calculatePdc
- file: src/cores/cl/utils/pdc.ts:35
- kind: function
- core: cl
- spec: (none)
- summary: Calculate Proportion of Days Covered for a single medication.
- params:
- records — Adherence records for the medication (already filtered by medication_id).
- periodStartDate — Start of measurement period (ISO date string, e.g. ‘2026-01-01’).
- periodEndDate — End of measurement period (ISO date string, e.g. ‘2026-03-31’).
- returns: PdcResult with the calculated PDC and details.
- score: 4
function calculateProgress
- file: src/cores/cl/utils/assessment-progress.ts:25
- kind: function
- core: cl
- spec: (none)
- summary: Calculate integer percentage of completed sections.
- score: 4
function calculateReviewDueDate
- file: src/cores/cl/utils/treatmentPlanTimeframes.ts:35
- kind: function
- core: cl
- spec: (none)
- summary: Provides calculate review due date functionality.
- score: 4
function calculateSlaDeadline
- file: src/cores/cl/utils/notification-escalation-logic.ts:29
- kind: function
- core: cl
- spec: (none)
- summary: Returns ISO string for . Edge function uses DB now(); thishelper is for client-side previews and unit tests.
- score: 4
function canCaptureConsent
- file: src/cores/cl/utils/recording-consent.ts:21
- kind: function
- core: cl
- spec: (none)
- summary: Checks whether consent can still be captured for an attendance record.Returns false if consent has already been captured (immutable).
- score: 4
function checkDrugAllergies
- file: src/cores/cl/utils/allergy-checking.ts:16
- kind: function
- core: cl
- spec: (none)
- summary: Checks a drug name against active allergies and returns any alerts.Matching is case-insensitive on allergen display name.
- score: 4
function checkMedicationInteractions
- file: src/cores/cl/services/drugInteraction.ts:105
- kind: function
- core: cl
- spec: (none)
- summary: Given medications with rxcui codes, resolve any missing rxcuisthen perform an interaction check via FDB edge function.When is set and any medication has ,calls and excludes those RxCUIs from the vendor payloadif consent is absent (FR-4.2).
- score: 4
function checkSudConsent
- file: src/cores/cl/services/tefcaConsentEnforcement.ts:91
- kind: function
- core: cl
- spec: (none)
- summary: Checks SUD-specific consent for 42 CFR Part 2 protected records.More restrictive than general consent — requires explicit SUD consent type.
- score: 4
function checkTefcaConsent
- file: src/cores/cl/services/tefcaConsentEnforcement.ts:28
- kind: function
- core: cl
- spec: (none)
- summary: Checks whether a valid, active consent exists for the given chartthat covers TEFCA data exchange (TPO or specific consent type).Fail-closed: returns allowed: false if any error occurs during lookup.
- score: 4
function classifyPdc
- file: src/cores/cl/utils/pdc.ts:78
- kind: function
- core: cl
- spec: (none)
- summary: Classify PDC into adherence categories.PDC ≥ 80% is generally considered adherent.
- score: 4
function cmToFeetInches
- file: src/cores/cl/hooks/useMeasurementUnit.ts:29
- kind: function
- core: cl
- spec: (none)
- summary: Convert cm to feet and inches
- score: 1
function computeAsamRecommendation
- file: src/cores/cl/utils/loc-scoring.ts:56
- kind: function
- core: cl
- spec: (none)
- summary: ASAM LOC recommendation based on dimensional profile.The algorithm uses the highest dimension score and total score todetermine recommended level of care. This follows published ASAMCriteria dimensional matching (simplified for algorithmic scoring).
- score: 4
function computeAvailableBlocks
- file: src/cores/cl/services/blocks/surfaceTemplateAdmin.ts:56
- kind: function
- core: cl
- spec: (none)
- summary: The blocks still addable: neither already-required nor already-added by the org.
- score: 4
function computeLocRecommendation
- file: src/cores/cl/utils/loc-scoring.ts:159
- kind: function
- core: cl
- spec: (none)
- summary: Unified scoring dispatcher based on instrument type.
- score: 4
function computeLocusRecommendation
- file: src/cores/cl/utils/loc-scoring.ts:112
- kind: function
- core: cl
- spec: (none)
- summary: LOCUS LOC recommendation based on dimensional profile.The LOCUS uses a composite score (sum of 6 dimensions, each 1-5)mapped to six levels of care.
- score: 4
function computeMaxDimensionScore
- file: src/cores/cl/utils/loc-scoring.ts:42
- kind: function
- core: cl
- spec: (none)
- summary: Find the highest individual dimension score.
- score: 4
function computeMmseScore
- file: src/cores/cl/utils/cognitiveScoring.ts:88
- kind: function
- core: cl
- spec: (none)
- summary: Sum MMSE item responses (item_1..item_11) across 5 domains. Max score: 30.Items have varying point values per domain.
- example: | // De-identified: orientation items each 1 pointcomputeMmseScore( item_1: 5, item_2: 5, …, item_11: 1 ) // → 30
- score: 4
function computeMocaScore
- file: src/cores/cl/utils/cognitiveScoring.ts:33
- kind: function
- core: cl
- spec: (none)
- summary: Sum MoCA item responses (item_1..item_30), each 0 or 1. Max score: 30.Apply +1 education adjustment when yearsOfSchooling ≤ threshold (default 12).Cap total at 30.
- example: | // De-identified: all items answered 1 with 10 years schoolingcomputeMocaScore( item_1: 1, …, item_30: 1 , 10) // → 30 (capped)
- score: 4
function computePerformanceRate
- file: src/cores/cl/services/qualityMeasureEngine.ts:131
- kind: function
- core: cl
- spec: (none)
- summary: Pure helper: eCQM performance rate = numerator / (denominator − exclusions − exceptions),rounded to 4 decimals; when there is no eligible population. Mirrors the DB’sderivation so callers can preview a rate before persisting (NFR-reliability-1 parity).
- score: 4
function computeScore
- file: src/cores/cl/utils/assessmentScoring.ts:11
- kind: function
- core: cl
- spec: (none)
- summary: Compute a numeric score from instrument scoring rules and section responses.
- score: 4
function computeSlumsScore
- file: src/cores/cl/utils/cognitiveScoring.ts:69
- kind: function
- core: cl
- spec: (none)
- summary: Sum SLUMS item responses (item_1..item_11). Max score: 30.Items have varying point values per the instrument.
- example: | // De-identified: perfect scorecomputeSlumsScore( item_1: 1, item_2: 1, …, item_11: 5 ) // → 30
- score: 4
function computeTotalScore
- file: src/cores/cl/utils/loc-scoring.ts:32
- kind: function
- core: cl
- spec: (none)
- summary: Compute total score from dimension scores.Returns the sum of all dimension scores.
- score: 4
function createAbnormalResultAlert
- file: src/cores/cl/hooks/useCdsLabMonitoring.ts:141
- kind: function
- core: cl
- spec: (none)
- summary: Create a CDS alert for an abnormal lab result.Called from the result ingestion pipeline or from result display.
- score: 4
function createCrisisNotification
- file: src/cores/cl/hooks/usePatientSubmissionInbasket.ts:120
- kind: function
- core: cl
- spec: (none)
- summary: Creates PF-10 crisis_alert notifications for org staff/admins (fan-out, capped at 10).Fire-and-forget: failures are silently ignored.
- score: 4
function createInbasketForCheckin
- file: src/cores/cl/hooks/usePatientSubmissionInbasket.ts:83
- kind: function
- core: cl
- spec: (none)
- summary: Creates an urgent in-basket item for a crisis-flagged check-in.
- score: 4
function createInbasketForSubmission
- file: src/cores/cl/hooks/usePatientSubmissionInbasket.ts:40
- kind: function
- core: cl
- spec: (none)
- summary: Creates an in-basket item for a new patient submission.If crisis is detected, creates an urgent item instead.
- score: 4
function daysRemainingInWindow
- file: src/cores/cl/utils/hedis-flags.ts:136
- kind: function
- core: cl
- spec: (none)
- summary: Calculate days remaining in a follow-up window.
- returns: negative if overdue
- score: 4
function daysUntilDue
- file: src/cores/cl/utils/review-scheduling.ts:43
- kind: function
- core: cl
- spec: (none)
- summary: Days until (or past, if negative) the review due date.
- score: 4
function decryptWenoData
- file: src/cores/cl/integrations/weno/crypto.ts:35
- kind: function
- core: cl
- spec: (none)
- summary: Decrypt the parameter back to the original JSON string (debug/verify).
- score: 4
function defaultLanguageVersionFor
- file: src/cores/cl/data/telehealth-consent-language/index.ts:30
- kind: function
- core: cl
- spec: (none)
- summary: Maps an organization’s jurisdiction (from orsettings) to the default consent-language version. Falls back to thefederal-floor US version when the jurisdiction isn’t AZ.
- score: 4
function deriveActiveOverlays
- file: src/cores/cl/hooks/blocks/useActiveAccreditationOverlays.ts:58
- kind: function
- core: cl
- spec: (none)
- summary: Derive the active overlay-tag set from a result: the recognized accreditation bodies (lowercased), plus when — and only when — the resolver reports the CMS-psych-hospital tenantsignal as literally (fail-closed for any other value).
- params:
- result — the RPC payload (or null when none / on error).
- returns: the set of active overlay tags.
- score: 4
function deriveConfidentialityCode
- file: src/cores/cl/lib/ds4p/confidentiality.ts:56
- kind: function
- core: cl
- spec: (none)
- summary: Derives the HL7 confidentiality code for a clinical payload.Matrix (per the DS4P IG + 42 CFR Part 2):- / → - (HIPAA TPO, non-SUD) → - (HIV, mental health) → ( when consent-restricted)- → ( when consent-restricted)- break-glass → - segmentation unresolved / unknown class → (fail-closed)Part 2 data is never — the floor is .
- score: 4
function deriveNkaStatus
- file: src/cores/cl/utils/allergy-checking.ts:60
- kind: function
- core: cl
- spec: (none)
- summary: Derives the NKA status from a chart’s allergy list.Returns ‘has_allergies’ if any active allergies exist,‘not_reviewed’ if the list is empty (no explicit NKA confirmation).
- score: 4
function deriveSecurityLabels
- file: src/cores/cl/lib/ds4p/security-labels.ts:57
- kind: function
- core: cl
- spec: (none)
- summary: Derives a complete DS4P security-label set for a clinical payload.Part 2-protected (or break-glass) data always receives the federal floor: + sensitivity codes, the obligation, the § 2.32notice, and . Non-sensitive data receives onlyits confidentiality code with no sensitivity/obligation markings.
- score: 4
function deriveSuiteContext
- file: src/cores/cl/hooks/blocks/useSuicideSuite.ts:65
- kind: function
- core: cl
- spec: (none)
- summary: Derive the suite context from org overlays + jurisdiction clinical rules (pure).
- score: 4
function detectOverlaps
- file: src/cores/cl/utils/overlap-detection.ts:34
- kind: function
- core: cl
- spec: (none)
- summary: Detect overlapping service times among a list of notes for the same clinician.Notes must share the same and to overlap.
- score: 4
function dropOptionalEmpty
- file: src/cores/cl/integrations/weno/validators.ts:152
- kind: function
- core: cl
- spec: (none)
- summary: Strip optional nulls/empty strings/empty arrays so we don’t emit them to the vendor.
- score: 4
function encryptWenoData
- file: src/cores/cl/integrations/weno/crypto.ts:28
- kind: function
- core: cl
- spec: (none)
- summary: Encrypt a payload object → URL-safe parameter value.
- score: 4
function ensureOrgSurfaceTemplate
- file: src/cores/cl/services/blocks/surfaceTemplateAdmin.ts:88
- kind: function
- core: cl
- spec: (none)
- summary: Get-or-create the org’s active surface template for a surface; returns its id.
- score: 4
function escapeXml
- file: src/cores/cl/utils/cda/escape.ts:5
- kind: function
- core: cl
- spec: (none)
- summary: Shared XML escaping helper for CDA section builders.Mirrors the helper used in (CL-45).
- score: 4
function evaluateCdsRules
- file: src/cores/cl/lib/cds-evaluate.ts:29
- kind: function
- core: cl
- spec: (none)
- summary: Utility for evaluate cds rules.
- score: 1
function evaluateChartSummaryClientGate
- file: src/cores/cl/ai-documentation/lib/evaluateChartSummaryClientGate.ts:43
- kind: function
- core: cl
- spec: (none)
- summary: Evaluate the fail-closed client gate for the AI chart-summary affordance.
- returns: when all preconditions hold; otherwise naming the first failed condition.
- score: 4
function evaluateChartSummaryGate
- file: src/cores/cl/ai-documentation/lib/evaluateChartSummaryGate.ts:49
- kind: function
- core: cl
- spec: (none)
- summary: Evaluate the fail-closed chart-summary generation gate.
- returns: when all preconditions hold; otherwise naming the first failed condition.
- score: 4
function evaluateCohortRules
- file: src/cores/cl/utils/cohort-rule-engine.ts:247
- kind: function
- core: cl
- spec: (none)
- summary: Evaluate a cohort criteria tree against a list of chart rows.- Empty (root with zero conditions) returns ALL chart IDs.- Otherwise returns only chart IDs whose data satisfies the rules.
- score: 4
function evaluateGenerationGate
- file: src/cores/cl/ai-documentation/lib/evaluateGenerationGate.ts:43
- kind: function
- core: cl
- spec: (none)
- summary: Evaluate the fail-closed generation gate.
- returns: when all preconditions hold; otherwise naming the first failed condition.
- score: 4
function evaluateMmseThreshold
- file: src/cores/cl/utils/cognitiveScoring.ts:162
- kind: function
- core: cl
- spec: (none)
- summary: Evaluate MMSE score against education-stratified cutoffs.
- params:
- score — MMSE total score (0–30)
- thresholds — MMSE threshold configuration from scoring_rules
- educationLevel — ‘illiterate’ | ‘primary’ | ‘secondary_plus’
- score: 4
function evaluateMocaThreshold
- file: src/cores/cl/utils/cognitiveScoring.ts:106
- kind: function
- core: cl
- spec: (none)
- summary: Evaluate MoCA score against population-specific thresholds.
- params:
- score — Adjusted MoCA score (0–30)
- thresholds — MoCA threshold configuration from scoring_rules
- population — Population key (default, geriatric, sud, geriatric_tbi)
- score: 4
function evaluateRationaleGate
- file: src/cores/cl/lib/cds-rationale.ts:121
- kind: function
- core: cl
- spec: (none)
- summary: Gate evaluation: both PHI lane and DSI disclosure must be in place.Fail-closed: any missing precondition blocks the LLM call.
- params:
- config — Current configuration state
- returns: or
- score: 4
function evaluateSlumsThreshold
- file: src/cores/cl/utils/cognitiveScoring.ts:130
- kind: function
- core: cl
- spec: (none)
- summary: Evaluate SLUMS score against education-stratified thresholds.
- params:
- score — SLUMS total score (0–30)
- thresholds — SLUMS threshold configuration from scoring_rules
- highEducation — true if ≥ 12 years schooling
- score: 4
function evaluateVitalThresholds
- file: src/cores/cl/services/vitalsTrendService.ts:74
- kind: function
- core: cl
- spec: (none)
- summary: Evaluate a single vital sign record against thresholds.Returns an array of findings (empty = all normal).
- params:
- thresholds — Org-configurable thresholds; defaults to DEFAULT_VITAL_THRESHOLDS so callers without org settings are unchanged.
- score: 4
function feetInchesToCm
- file: src/cores/cl/hooks/useMeasurementUnit.ts:37
- kind: function
- core: cl
- spec: (none)
- summary: Convert feet and inches to cm
- score: 1
function filterPortalMeasures
- file: src/cores/cl/utils/portalQmConfig.ts:77
- kind: function
- core: cl
- spec: (none)
- summary: Apply org-configurable measure-set filter and 42 CFR Part 2 SUD consentgating to a patient’s outcome measures. Returns the visible set plus acount of measures hidden by consent so the UI can show a generic noticewithout revealing PHI.
- score: 4
function filterPsychotherapyNotes
- file: src/cores/cl/ai-documentation/lib/filterPsychotherapyNotes.ts:47
- kind: function
- core: cl
- spec: (none)
- summary: Return only the notes that are NOT psychotherapy process notes.Psychotherapy notes are excluded (not included) per 45 CFR 164.501.This function is the enforcement point for AI chart-summary context assembly.
- score: 4
function findExistingImportItem
- file: src/cores/cl/utils/marketplace/idempotency.ts:26
- kind: function
- core: cl
- spec: (none)
- summary: Returns the rollback-snapshot fragment for a previously imported item,or null if no completed import exists for this org / bundle / item.
- score: 4
function findMinimumNecessaryViolations
- file: src/cores/cl/lib/ds4p/ceem-exemption-profile.ts:170
- kind: function
- core: cl
- spec: (none)
- summary: Validates a candidate disclosure payload against the minimum-necessarycontract. Returns the list of violation TYPES (never values — no PHI). Anempty list means the payload is minimum-necessary clean.
- score: 4
function flattenInstrumentItems
- file: src/cores/cl/lib/outcomes/suprt-autopopulate.ts:35
- kind: function
- core: cl
- spec: (none)
- summary: Flatten an instrument’s into a flat item list,carrying each item’s domain and the domain’s SUD-derived flag. Tolerant of amissing/malformed (returns ).
- score: 4
function formatCdaTime
- file: src/cores/cl/utils/cda/escape.ts:16
- kind: function
- core: cl
- spec: (none)
- summary: Format an ISO date as a CDA effectiveTime value ().
- score: 4
function formatExpirationAlert
- file: src/cores/cl/utils/consent-expiration.ts:51
- kind: function
- core: cl
- spec: (none)
- summary: Formats an expiration alert message per CONTEXT.md phrasing.
- score: 4
function formatHeight
- file: src/cores/cl/hooks/useMeasurementUnit.ts:43
- kind: function
- core: cl
- spec: (none)
- summary: Format cm as a display string in the preferred unit
- score: 4
function formatPdc
- file: src/cores/cl/utils/pdc.ts:70
- kind: function
- core: cl
- spec: (none)
- summary: Format PDC as a percentage string (e.g. “85%”).
- score: 4
function formatWaist
- file: src/cores/cl/hooks/useMeasurementUnit.ts:58
- kind: function
- core: cl
- spec: (none)
- summary: Format waist cm as a display string in the preferred unit
- score: 4
function formatWeight
- file: src/cores/cl/hooks/useMeasurementUnit.ts:52
- kind: function
- core: cl
- spec: (none)
- summary: Format kg as a display string in the preferred unit
- score: 4
function generateChartSummaryHandler
- file: src/cores/cl/ai-documentation/lib/generateChartSummaryHandler.ts:125
- kind: function
- core: cl
- spec: (none)
- summary: Generate an AI chart summary, fail-closed.Flow: 1. getModuleSettings → gate check (aiEnabled) 2. getChartSummaryDisclosure → gate check (disclosurePublished; null = fail closed) 3. getPatientOptOut → gate check 4. phiLaneConfigured from input → gate check 5. evaluateChartSummaryGate → if denied return ok:false gate:reason 6. checkSudConsent → if false return ok:false gate:‘sud_consent’ 7. loadChartContextRows → buildChartContext (psychotherapy excluded) 8. buildChartSummaryPrompt → ai.generateSummary 9. getCurrentVersion → version + 110. writeChartSummaryMetadata (ai_summary_ready=true, last_summary_at=now, version++)11. Return ok:true with meta+summary — summary text NEVER in audit payloadReturns without calling the model or writing metadatawhen any precondition fails.
- score: 4
function generateDraftHandler
- file: src/cores/cl/ai-documentation/lib/generateDraftHandler.ts:141
- kind: function
- core: cl
- spec: (none)
- summary: Generate a progress-note draft, fail-closed.Returns (without calling the model or persisting) whenany precondition fails; otherwise .
- score: 4
function generateRedisclosureNotice
- file: src/cores/cl/utils/redisclosure-notice.ts:15
- kind: function
- core: cl
- spec: (none)
- summary: Generates the federally-mandated redisclosure prohibition notice.Per 42 CFR Part 2 § 2.32, this language must accompany alldisclosures of substance use disorder patient records.
- score: 4
function generateTreatmentPlanDraftHandler
- file: src/cores/cl/ai-treatment-plan/lib/generateTreatmentPlanDraftHandler.ts:134
- kind: function
- core: cl
- spec: (none)
- summary: Generate a treatment-plan draft, fail-closed.Returns (without calling the model or persisting) whenany precondition fails; otherwise .plan_type, service_line, and effective_date in the persisted data always comefrom (the session context), never from model output.
- score: 4
function getActualAttendanceMinutes
- file: src/cores/cl/utils/groupEncounterDuration.ts:20
- kind: function
- core: cl
- spec: (none)
- summary: Calculates actual attendance duration in minutes.
- params:
- startTime — ISO 8601 start time (sign-in or session start).
- endTime — ISO 8601 end time (sign-out or session end). May be null for partial attendance.
- sessionEndTime — ISO 8601 session end time, used as fallback when endTime is null.
- returns: Duration in minutes, or null if calculation is not possible.
- score: 4
function getAllowedCategories
- file: src/cores/cl/services/tefcaMinimumNecessary.ts:55
- kind: function
- core: cl
- spec: (none)
- summary: Returns the list of allowed data categories for a given purpose of use.
- score: 4
function getBlockVersionSchema
- file: src/cores/cl/services/blocks/blockDefinitionLoader.ts:121
- kind: function
- core: cl
- spec: (none)
- summary: Fetch one block version’s immutable by id — used to render anote against the version it was snapshotted under when the block has since beenrepublished (CL-75 AC-2 / FR-5). Versions are immutable, so this is cacheableindefinitely.
- params:
- versionId — the snapshotted .
- client — injectable Supabase-shaped client (defaults to the app client).
- returns: the version’s field schema, or null on error / not found (caller falls back to current).
- score: 4
function getClinicalAlertThreshold
- file: src/cores/cl/utils/traumaScoring.ts:123
- kind: function
- core: cl
- spec: (none)
- summary: Extract clinical alert threshold from instrument scoring_rules.Returns the threshold value only when alert_enabled is true.
- score: 4
function getConsentLanguage
- file: src/cores/cl/data/telehealth-consent-language/index.ts:21
- kind: function
- core: cl
- spec: (none)
- summary: Returns the consent language literal for a given version string.
- score: 4
function getConsentModalityLabel
- file: src/cores/cl/utils/recording-consent.ts:63
- kind: function
- core: cl
- spec: (none)
- summary: Returns a human-readable label for a consent modality.
- score: 4
function getDaysUntilExpiration
- file: src/cores/cl/utils/consent-expiration.ts:17
- kind: function
- core: cl
- spec: (none)
- summary: Returns the number of days until a consent expires.Returns null if no expiration date is set.Returns negative values for already-expired consents.
- score: 4
function getDefaultRequiredElements
- file: src/cores/cl/utils/assessment-template-merge.ts:93
- kind: function
- core: cl
- spec: (none)
- summary: Get the default required elements for assessments.Used as fallback when no jurisdiction profile is configured.
- score: 4
function getDimensionsForInstrument
- file: src/cores/cl/utils/loc-scoring.ts:174
- kind: function
- core: cl
- spec: (none)
- summary: Get the dimension list for the given instrument type.
- score: 4
function getExpirationStatus
- file: src/cores/cl/utils/consent-expiration.ts:30
- kind: function
- core: cl
- spec: (none)
- summary: Determines the expiration status for UI display.- : already past expiration- : within 7 days- : within 14 days- : more than 14 days or no expiration
- score: 4
function getMaxDimensionScoreForInstrument
- file: src/cores/cl/utils/loc-scoring.ts:188
- kind: function
- core: cl
- spec: (none)
- summary: Get the max score per dimension for an instrument.
- score: 4
function getModifierCodes
- file: src/cores/cl/utils/virtual-group-modifiers.ts:71
- kind: function
- core: cl
- spec: (none)
- summary: Extracts just the modifier codes from suggestions (for event payloads).
- score: 4
function getNumeratorStatus
- file: src/cores/cl/utils/hedis-flags.ts:146
- kind: function
- core: cl
- spec: (none)
- summary: Determine the numerator status for a HEDIS measure on a single aftercare plan.
- score: 4
function getOrgSurfaceTemplate
- file: src/cores/cl/services/blocks/surfaceTemplateAdmin.ts:68
- kind: function
- core: cl
- spec: (none)
- summary: The org’s active surface template for a surface, or null when none exists yet.
- score: 4
function getOverdueMetabolicEvents
- file: src/cores/cl/services/vitalsTrendService.ts:116
- kind: function
- core: cl
- spec: (none)
- summary: Return metabolic monitoring events that are overdue.An event is overdue if status=‘overdue’ OR (status=‘due’ AND due_by now).
- score: 4
function getPatientAgeYears
- file: src/cores/cl/utils/patient-age.ts:20
- kind: function
- core: cl
- spec: (none)
- summary: Compute a patient’s age in completed years from a date-of-birth string.
- params:
- dob — Date of birth as an ISO date string (), or /.
- asOf — Reference date to compute age against. Defaults to now.
- returns: Age in completed years (non-negative integer), or when is missing, unparseable, or in the future.
- score: 4
function getPlaceOfServiceCode
- file: src/cores/cl/utils/virtual-group-modifiers.ts:87
- kind: function
- core: cl
- spec: (none)
- summary: Returns the Place of Service code for a session modality.US-AZ default profile (PF-96 fallback): virtual → 02 (Telehealth — PatientHome), hybrid → 10 (Telehealth — Other). Jurisdiction-specific Place ofService is resolved from the PF-96 profile’s by callers; in-person POS depends on site type (not determined here).
- score: 4
function getRedisclosureNoticeSummary
- file: src/cores/cl/utils/redisclosure-notice.ts:54
- kind: function
- core: cl
- spec: (none)
- summary: Returns a short-form redisclosure notice for UI preview.
- score: 4
function getReviewFrequency
- file: src/cores/cl/utils/treatmentPlanTimeframes.ts:27
- kind: function
- core: cl
- spec: (none)
- summary: Provides get review frequency functionality.
- score: 4
function getScreeningIntervalLabel
- file: src/cores/cl/utils/screeningDueDate.ts:48
- kind: function
- core: cl
- spec: (none)
- summary: Human-readable description of the next screening interval.
- score: 4
function getStatusDescriptor
- file: src/cores/cl/constants/status-variants.ts:240
- kind: function
- core: cl
- spec: (none)
- summary: Look up a status descriptor by entity + status. Unknown statuses fall backto an badge with a humanised label, so the UI degrades gracefullyif the database introduces a new enum value before the map is updated.
- score: 4
function getSurfaceBlockDefinitions
- file: src/cores/cl/services/blocks/blockDefinitionLoader.ts:80
- kind: function
- core: cl
- spec: (none)
- summary: Fetch + stitch the block definitions for a set of resolved slugs.
- params:
- slugs — resolved block slugs in render order.
- organizationId — the current tenant (for org-customized blocks; platform rows are always readable).
- client — injectable Supabase-shaped client (defaults to the app client).
- returns: ordered block definitions; empty array on error (fail-closed) or no slugs.
- score: 4
function getUrgencyBorderClass
- file: src/cores/cl/components/clinicalUrgencyUtils.ts:29
- kind: function
- core: cl
- spec: (none)
- summary: Returns a border accent class based on urgency (for card left-border styling).
- score: 4
function getValidTransitions
- file: src/cores/cl/components/problem-list/problemTransitions.ts:31
- kind: function
- core: cl
- spec: CL-46
- summary: Returns the set of problem statuses that can legally follow ,mirroring the BEFORE-UPDATEtrigger so UI affordances never offer a transition the database willreject. is terminal and returns an empty array.
- params:
- current — The problem’s current status.
- returns: Array of statuses that are valid next-states; empty for terminal statuses or unrecognized inputs.
- score: 5
function getVitalsTrend
- file: src/cores/cl/services/vitalsTrendService.ts:58
- kind: function
- core: cl
- spec: (none)
- summary: Extract a time-series for a single metric from an array of vital sign rows.Returns points sorted by capturedAt ascending.
- score: 4
function getWenoCredStatus
- file: src/cores/cl/services/wenoCredentials.ts:53
- kind: function
- core: cl
- spec: (none)
- summary: Report which WENO credentials are provisioned for an org (booleans only — never secret values).
- score: 4
function hasActiveFilter
- file: src/cores/cl/hooks/usePharmacySearch.ts:48
- kind: function
- core: cl
- spec: (none)
- summary: A search is runnable only with a state + at least one filter selected.
- score: 4
function hasHighSeverityAlert
- file: src/cores/cl/utils/allergy-checking.ts:51
- kind: function
- core: cl
- spec: (none)
- summary: Determines if any alerts in the list are severe or life-threatening,which should trigger a hard-stop rather than a soft warning.
- score: 4
function hasPublishedCdsDisclosure
- file: src/cores/cl/lib/cds-rationale-disclosure.ts:33
- kind: function
- core: cl
- spec: (none)
- summary: True iff a published DSI disclosure exists among the supplied rows.Fail-closed: a null/undefined/empty list, or any non-published row, returnsfalse so the “Explain this alert” affordance stays hidden until a complianceofficer publishes the disclosure.
- params:
- rows — Candidate cl_dsi_disclosures rows (already org-scoped by RLS).
- returns: Whether the CDS rationale feature is disclosure-gated open.
- score: 4
function ingestFuaAdtEvent
- file: src/cores/cl/services/fuaAdtIngest.ts:41
- kind: function
- core: cl
- spec: (none)
- summary: Ingest a single ADT event via the hardened RPC.Maps the feed event to RPC params (which fail-closes on missing requiredfields), calls the RPC, and returns a discriminated result. A Supabase erroris sanitized at the boundary — the raw error never reaches the caller.
- params:
- event — Feed-facing ADT event (PF-108 stub contract).
- returns: on success, else (sanitized).
- score: 4
variable invokeExemptionDisclosureGate
- file: src/cores/cl/services/ceem/disclosureGate.ts:26
- kind: variable
- core: cl
- spec: (none)
- summary: Invoke the server-side disclosure gate. Returns the structured permit/denydecision; an is present ONLY on a permit. Fails closed — anytransport error is surfaced (the caller must treat it as non-disclosure).
- score: 2
function isAgeEligible
- file: src/cores/cl/utils/hedis-flags.ts:60
- kind: function
- core: cl
- spec: (none)
- summary: Check if a patient’s age at discharge qualifies for HEDIS FUH/FUM denominator.Delegates to with the FUH/FUM minimum age (6).
- params:
- patientDob — Patient date of birth (ISO string)
- dischargeDate — Discharge or encounter date (ISO string)
- returns: true if patient is = HEDIS_MIN_AGE (6) at discharge
- score: 4
function isAgeEligibleForFloor
- file: src/cores/cl/utils/hedis-flags.ts:48
- kind: function
- core: cl
- spec: (none)
- summary: Check if a patient’s age at a reference date meets a configurable minimum floor.Extracted so that EN-65 (FUH/FUM, floor = HEDIS_MIN_AGE = 6) and EN-66(FUA/FUI, floor = FUA_MIN_AGE / FUI_MIN_AGE = 13) share the same age logicwithout duplicating it.
- params:
- patientDob — Patient date of birth (ISO string)
- referenceDate — Date to compute age at (ISO string)
- minAge — Minimum age in whole years (inclusive)
- returns: true if the patient is = minAge on referenceDate
- score: 4
function isAtLeastAsRestrictive
- file: src/cores/cl/lib/ds4p/confidentiality.ts:94
- kind: function
- core: cl
- spec: (none)
- summary: True when is at least as restrictive as .
- score: 4
function isCategoryAllowed
- file: src/cores/cl/services/tefcaMinimumNecessary.ts:62
- kind: function
- core: cl
- spec: (none)
- summary: Checks whether a specific data category is permitted for the given purpose.
- score: 4
function isCognitiveInstrument
- file: src/cores/cl/constants/cognitive-instruments.ts:19
- kind: function
- core: cl
- spec: (none)
- summary: Check whether an instrument code is a cognitive screening instrument.
- score: 4
function isConsentImmutable
- file: src/cores/cl/utils/recording-consent.ts:28
- kind: function
- core: cl
- spec: (none)
- summary: Checks whether consent is immutable (already captured and locked).
- score: 4
function isCrisisDetected
- file: src/cores/cl/utils/patientSubmissionScoring.ts:180
- kind: function
- core: cl
- spec: (none)
- summary: Check if a score result indicates a crisis requiring escalation.
- score: 4
function isDenominatorFua
- file: src/cores/cl/utils/hedis-flags.ts:211
- kind: function
- core: cl
- spec: (none)
- summary: Check FUA denominator eligibility: - Patient age ≥ params.fuaMinAge (NCQA SUD measure: 13+) - ED encounter in params.fuaEncounterTypes - Qualifying SUD dx: principal (MY2025) or any-position (MY2026, anyPositionSudDx=true)NCQA compliance note: Exact numerator criteria are human-verify-gated (compliancegate 1). The engine encodes documented NCQA MY2025/MY2026 defaults; site-leveloverrides are supplied via . CL-29-EN-66 AC-1 AC-2
- score: 4
function isDenominatorFuh
- file: src/cores/cl/utils/hedis-flags.ts:67
- kind: function
- core: cl
- spec: (none)
- summary: Check FUH denominator eligibility: age = 6, IP/residential discharge, qualifying MH dx.
- score: 4
function isDenominatorFui
- file: src/cores/cl/utils/hedis-flags.ts:248
- kind: function
- core: cl
- spec: (none)
- summary: Check FUI denominator eligibility: - Patient age ≥ params.fuiMinAge (NCQA SUD measure: 13+) - Discharge from a high-intensity SUD setting: params.fuiEncounterTypes, plus FUI_HIGH_INTENSITY_EXPANSION_TYPES when params.fuiHighIntensityExpansion=true (AC-4) - Qualifying SUD dx: principal (MY2025) or any-position (MY2026)NCQA compliance note: Exact numerator criteria are human-verify-gated (compliancegate 1). The engine encodes documented NCQA MY2025/MY2026 defaults; site-leveloverrides are supplied via . CL-29-EN-66 AC-1 AC-2 AC-4
- score: 4
function isDenominatorFum
- file: src/cores/cl/utils/hedis-flags.ts:83
- kind: function
- core: cl
- spec: (none)
- summary: Check FUM denominator eligibility: age = 6, ED visit, qualifying MH dx.
- score: 4
function isDisclosureComplete
- file: src/cores/cl/lib/dsiDisclosureCompleteness.ts:77
- kind: function
- core: cl
- spec: (none)
- summary: Check whether a disclosure row has all required fields for its dsi_type.
- params:
- row — Partial cl_dsi_disclosures row to validate.
- returns: when all required fields are populated; otherwise listing every missing field by its DB column name.
- score: 4
function isExpiringWithin
- file: src/cores/cl/utils/consent-expiration.ts:42
- kind: function
- core: cl
- spec: (none)
- summary: Checks whether a consent is expiring within a given threshold.
- score: 4
function isFieldRequired
- file: src/cores/cl/services/blocks/blockFieldMapping.ts:61
- kind: function
- core: cl
- spec: (none)
- summary: Whether a field is required given the active overlays. A field is required whenits names a standing basis (any non-overlay token, e.g. )or an overlay basis whose overlay is currently active — so an overlay basisraises requiredness additively (optional when the overlay is off, requiredwhen on) while the field stays visible (unlike , which hides). No → never required (unchanged for existing blocks).
- params:
- field — the block field-schema entry.
- activeOverlays — overlay tags currently active for the org/encounter.
- returns: true when the field is mandatory in this context.
- score: 4
function isFieldVisible
- file: src/cores/cl/services/blocks/blockFieldMapping.ts:79
- kind: function
- core: cl
- spec: (none)
- summary: Whether a field renders given the set of active overlays. A field with no always renders; a tagged field renders when any of itspipe-separated tags (e.g. ) is active.
- params:
- field — the block field-schema entry.
- activeOverlays — overlay tags currently active for the org/encounter.
- returns: true when the field should be rendered.
- score: 4
function isFollowUpEligible
- file: src/cores/cl/services/followUpScheduling.ts:41
- kind: function
- core: cl
- spec: (none)
- summary: Check if a risk level is eligible for automated follow-up scheduling.
- score: 4
function isFollowUpQualifyingFua
- file: src/cores/cl/utils/hedis-flags.ts:287
- kind: function
- core: cl
- spec: (none)
- summary: Check if a follow-up contact meets FUA numerator criteria.FUA is ED-based (like FUM): same-day follow-up IS included (days = 0).Qualifies if modality is in FUA_QUALIFYING_MODALITIES OR(params.peerSupportQualifies && isPeerSupport) for MY2026+.NCQA compliance note: Same-day inclusion and exact NCQA numerator criteriaare human-verify-gated (compliance gate 1). The engine encodes documented defaults. CL-29-EN-66 AC-1 AC-2
- score: 4
function isFollowUpQualifyingFuh
- file: src/cores/cl/utils/hedis-flags.ts:102
- kind: function
- core: cl
- spec: (none)
- summary: Check if a follow-up contact meets FUH numerator criteria.FUH: must be in-person or telehealth, within window, NOT same day as discharge.
- score: 4
function isFollowUpQualifyingFui
- file: src/cores/cl/utils/hedis-flags.ts:324
- kind: function
- core: cl
- spec: (none)
- summary: Check if a follow-up contact meets FUI numerator criteria.FUI is discharge-based (like FUH): same-day follow-up is EXCLUDED (days 0).Qualifies if modality is in FUI_QUALIFYING_MODALITIES OR(params.peerSupportQualifies && (isPeerSupport || isResidentialStepDown)) for MY2026+.NCQA compliance note: Same-day exclusion and exact NCQA numerator criteriaare human-verify-gated (compliance gate 1). The engine encodes documented defaults. CL-29-EN-66 AC-1 AC-2
- score: 4
function isFollowUpQualifyingFum
- file: src/cores/cl/utils/hedis-flags.ts:118
- kind: function
- core: cl
- spec: (none)
- summary: Check if a follow-up contact meets FUM numerator criteria.FUM: can be in-person, telehealth, or telephone; within window; same-day IS included.
- score: 4
function isInAmmDenominator
- file: src/cores/cl/utils/hedisCalculation.ts:46
- kind: function
- core: cl
- spec: (none)
- summary: AMM denominator: depression dx + at least one antidepressant dispensing event.
- score: 4
function isInAmmNumerator
- file: src/cores/cl/utils/hedisCalculation.ts:55
- kind: function
- core: cl
- spec: (none)
- summary: AMM numerator: - acute phase: ≥ 84 days of antidepressant coverage - continuation phase: ≥ 180 days of antidepressant coverage
- score: 4
function isInIetDenominator
- file: src/cores/cl/utils/hedisCalculation.ts:63
- kind: function
- core: cl
- spec: (none)
- summary: IET denominator: patient has a new SUD episode in the measurement period.
- score: 4
function isInIetNumerator
- file: src/cores/cl/utils/hedisCalculation.ts:68
- kind: function
- core: cl
- spec: (none)
- summary: IET numerator: initiation visit ≤ 14 days AND ≥ 2 engagement visits within 34 days.
- score: 4
function isJurisdictionMismatch
- file: src/cores/cl/utils/jurisdiction-mismatch.ts:31
- kind: function
- core: cl
- spec: CL-24
- summary: Returns whether a telehealth session’s patient and provider state codesrepresent an interstate-licensure mismatch worth surfacing in the UI.
- params:
- patientState — Patient’s state at session time (2-letter US code) or .
- providerState — Provider’s state at session time (2-letter US code) or .
- returns: when both codes are present and differ; otherwise.
- score: 5
function isOverdue
- file: src/cores/cl/lib/outcomes/reassessment-window.ts:105
- kind: function
- core: cl
- spec: (none)
- summary: Returns true when a reassessment is overdue — the collection window hasclosed without a completed follow-up assessment.Overdue =
- params:
- input — Episode + last follow-up reference.
- cadence — PF-96 reassessment_cadence_months from ClinicalRules.suprt.
- timepointKey — Which cadence slot to evaluate (‘6mo’ or ‘annual’).
- asOf — Reference “now”; defaults to the real wall-clock time.
- options — Optional grace-period override.
- score: 4
function isPart2Protected
- file: src/cores/cl/lib/ds4p/confidentiality.ts:39
- kind: function
- core: cl
- spec: (none)
- summary: True when the classification is 42 CFR Part 2 SUD-protected data.
- score: 4
function isPsychotherapyNote
- file: src/cores/cl/ai-documentation/lib/filterPsychotherapyNotes.ts:35
- kind: function
- core: cl
- spec: (none)
- summary: Return when the row is a psychotherapy process note under 45 CFR 164.501.Criteria (either is sufficient): - (canonical CL-30 type designation), or - (forward-compat flag).
- score: 4
function isReassessmentDue
- file: src/cores/cl/lib/outcomes/reassessment-window.ts:78
- kind: function
- core: cl
- spec: (none)
- summary: Returns true when a reassessment is currently due (the collection window is open)and no completed reassessment has yet advanced the reference date.Due =
- params:
- input — Episode + last follow-up reference.
- cadence — PF-96 reassessment_cadence_months from ClinicalRules.suprt.
- timepointKey — Which cadence slot to evaluate (‘6mo’ or ‘annual’).
- asOf — Reference “now”; defaults to the real wall-clock time.
- options — Optional grace-period override.
- score: 4
function isRecognizedFuaFuiProxyType
- file: src/cores/cl/utils/fua-adt-ingest.ts:105
- kind: function
- core: cl
- spec: (none)
- summary: Whether a (case-insensitively normalized) proxy encounter-type token is in theconfig-sourced FUA/FUI proxy vocabulary — the sets(-tagged), the single source of truth for proxy classification.Exposed for the future PF-108 feed to flag unrecognized inboundclassifications. The mapper itself does NOT reject on an unrecognized type —denominator membership is decided later (P3c aggregation), not here.
- score: 4
function isReviewOverdue
- file: src/cores/cl/utils/review-scheduling.ts:32
- kind: function
- core: cl
- spec: (none)
- summary: True when the review’s due date has passed (factoring grace period).
- score: 4
function isTraumaInstrument
- file: src/cores/cl/constants/instruments.ts:20
- kind: function
- core: cl
- spec: (none)
- summary: Check whether an instrument code is a trauma instrument.
- score: 4
function isValidProblemTransition
- file: src/cores/cl/components/problem-list/problemTransitions.ts:51
- kind: function
- core: cl
- spec: CL-46
- summary: Predicate that returns when transitioning is allowedby the problem-status state machine. Used by callers that want aboolean check (e.g. button enable/disable) without enumerating alllegal transitions.
- params:
- from — Current status.
- to — Proposed next status.
- returns: when the transition is allowed; otherwise.
- score: 5
function isValidTimeRange
- file: src/cores/cl/lib/peerEncounterUtils.ts:30
- kind: function
- core: cl
- spec: (none)
- summary: Validate that end_time is after start_time.
- score: 4
function listAvailableClinicalBlocks
- file: src/cores/cl/services/blocks/surfaceTemplateAdmin.ts:214
- kind: function
- core: cl
- spec: (none)
- summary: List the active clinical blocks an org can add (platform is_system + org-owned).
- score: 4
function listOrgSurfaceBlocks
- file: src/cores/cl/services/blocks/surfaceTemplateAdmin.ts:121
- kind: function
- core: cl
- spec: (none)
- summary: List the org-optional blocks composed onto a surface (empty when no org template).
- score: 4
function loadBlockInstance
- file: src/cores/cl/services/blocks/blockInstanceStore.ts:117
- kind: function
- core: cl
- spec: (none)
- summary: Load the persisted instance for a block on an encounter, routing by binding.
- params:
- def — the resolved block + its storage binding.
- ctx — tenant/encounter identity + the snapshotted version.
- deps — the adapter registry and (optionally) an injected client.
- returns: the stored values + the snapshotted , or null when none exist.
- score: 4
function loadFuaFuiValueSetOids
- file: src/cores/cl/utils/fua-fui-measure-spec.ts:86
- kind: function
- core: cl
- spec: (none)
- summary: Value-set OID acquisition surface (compliance gate 1).Returns empty arrays as a documented stub. NCQA value-set OIDs/codes arelicensed and human-verify-gated; they must NOT be inlined in source.
- score: 4
function logAuditDashboardAction
- file: src/cores/cl/utils/auditDashboardLog.ts:21
- kind: function
- core: cl
- spec: (none)
- summary: Logs a CL-25 audit dashboard action to pf_audit_logs.Fire-and-forget — errors are silently caught.
- score: 4
function logClinicalAudit
- file: src/cores/cl/utils/clinicalAuditLog.ts:46
- kind: function
- core: cl
- spec: (none)
- summary: Insert a clinical-audit row into . Fire-and-forget — errorsare captured via Sentry but never rethrown.
- returns: if the insert succeeded, if it was swallowed.
- score: 4
function logExportAudit
- file: src/cores/cl/utils/exportAudit.ts:31
- kind: function
- core: cl
- spec: (none)
- summary: Logs a clinical export event to pf_audit_logs. Non-fatal — errors aresilently caught so they never block the PDF export flow.
- score: 4
function logPortalAudit
- file: src/cores/cl/utils/portalAudit.ts:35
- kind: function
- core: cl
- spec: (none)
- summary: Logs a portal PHI access event to pf_audit_logs. Non-fatal — errors aresilently caught so they never block the portal user flow.
- score: 4
function mapAdtEventToFuaIngest
- file: src/cores/cl/utils/fua-adt-ingest.ts:48
- kind: function
- core: cl
- spec: (none)
- summary: Map a feed-facing ADT event to the RPC params.Fail-closed: throws (field-NAME only, never a value) if a required field ismissing/blank, rather than sending a partial/invalid row. Optional fields thatare null/blank are OMITTED (key absent), not sent as . The proxyencounter type is normalized and passed through — external→proxy classificationis owned by the PF-108 feed / PM-03 taxonomy, not translated here.
- score: 4
function mapBlockToRenderModel
- file: src/cores/cl/services/blocks/blockFieldMapping.ts:118
- kind: function
- core: cl
- spec: (none)
- summary: Build the render model for one resolved block: a PF-08 of theoverlay-visible editable axes, plus the deferred structured axes.
- params:
- def — the resolved block joined to its current version’s .
- activeOverlays — overlay tags active for the org/encounter (drives FR-7 gating).
- returns: the editable form definition and the deferred (composite/instrument) fields.
- score: 4
function mapDraftToNote
- file: src/cores/cl/ai-documentation/lib/mapDraftToNote.ts:45
- kind: function
- core: cl
- spec: (none)
- summary: Merge a model with authoritative .Narrative fields are picked explicitly from ; structured facts arepicked explicitly from . Because both sides are whitelist-picked,unexpected keys on either input (including structured-fact names smuggled intothe draft) cannot influence the result.
- score: 4
function mapPlanDraft
- file: src/cores/cl/ai-treatment-plan/lib/mapPlanDraft.ts:84
- kind: function
- core: cl
- spec: (none)
- summary: Map untrusted model output to database insert shapes.plan_id, organization_id, plan_type, service_line, and effective_date areALWAYS sourced from — any matching fields in are silently discarded (they come from an untrusted source).Goals with empty required fields (patient_words, measurable_criteria,frequency, duration) are filtered out.
- score: 4
function markOutcomeEnd
- file: src/cores/cl/utils/outcomes-performance.ts:72
- kind: function
- core: cl
- spec: (none)
- summary: Mark the end of an outcome performance operation and measure latency.Requires the invocation ID returned from markOutcomeStart.Returns the duration in milliseconds, or undefined if measurement fails.
- score: 4
function markOutcomeStart
- file: src/cores/cl/utils/outcomes-performance.ts:57
- kind: function
- core: cl
- spec: (none)
- summary: Mark the start of an outcome performance operation.Returns an invocation ID to pair with markOutcomeEnd for parallel-safe measurement.
- score: 4
function maskSmallCell
- file: src/cores/cl/hooks/usePopulationDashboard.ts:33
- kind: function
- core: cl
- spec: (none)
- summary: Masks values less than 5 for small-cell suppression (PHI protection).
- score: 4
function md5Password
- file: src/cores/cl/integrations/weno/crypto.ts:49
- kind: function
- core: cl
- spec: (none)
- summary: WENO accepts the user’s plain-text password OR its MD5 (UTF-8) hash in the field. We always send the hash so the plaintext never leavessecure storage.
- score: 4
function measurementYearToCalendarYear
- file: src/cores/cl/utils/fua-fui-measure-spec.ts:36
- kind: function
- core: cl
- spec: (none)
- summary: Map an NCQA measurement-year ruleset version to its calendar reporting yearby parsing the 4-digit year suffix (, ).This is a structural transform of the version label, not an NCQA-coded literal.
- score: 4
function measureOutcomeLatency
- file: src/cores/cl/utils/outcomes-performance.ts:96
- kind: function
- core: cl
- spec: (none)
- summary: Convenience: measure an async function’s execution time.
- score: 4
function mergeAssessmentSections
- file: src/cores/cl/utils/assessment-template-merge.ts:30
- kind: function
- core: cl
- spec: (none)
- summary: Merge jurisdiction-required elements with organization template sections.Order: required (jurisdiction) sections first by their canonical order,then optional (template) sections by display_order.Duplicate section_codes from the template that overlap with required elementsare deduplicated (jurisdiction wins).
- score: 4
function mergeSurfaceBlocks
- file: src/cores/cl/utils/surface-block-merge.ts:47
- kind: function
- core: cl
- spec: (none)
- summary: Resolve the ordered block set for a documentation surface by merging the threeadditive sources, mirroring the SQL RPC.Required sources are locked: a jurisdiction- or accreditation-required block alwaysappears in the result, and an org-optional block that overlaps a required one isde-duplicated to the required source (an org can never drop a required block).On overlap, jurisdiction wins over accreditation, and required sources win over org.
- params:
- jurisdictionRequired — Block slugs the PF-96 jurisdiction profile requires for this surface (). Rendered first.
- accreditationRequired — Block slugs the enabled CARF/TJC accreditation overlays require for this surface; appended after jurisdiction, minus any already required there.
- orgOptional — The org’s optional blocks for the surface (soft-deleted excluded); appended last in , minus any covered by a required source.
- surface — The documentation surface being composed (e.g. , ).
- returns: The surface plus the ordered, source-tagged, sequentially-numbered block set.
- score: 4
function nextDisplayOrder
- file: src/cores/cl/services/blocks/surfaceTemplateAdmin.ts:36
- kind: function
- core: cl
- spec: (none)
- summary: The next for a block appended to a template.
- score: 4
function notifyHighRiskScreening
- file: src/cores/cl/utils/riskAlerts.ts:40
- kind: function
- core: cl
- spec: (none)
- summary: Insert a PF-10 in-app notification for high/imminent risk screening.Called immediately after a successful useCreateRiskScreening mutation.NOTE: This inserts into pf_notifications for the screened_by user (the clinician).In a future iteration, this should fan-out to the full treatment team viathe fw_workflow_events subscription system.Errors are logged (not thrown) — alert failure must not block the primary save.
- score: 4
function parsePortalQmConfig
- file: src/cores/cl/utils/portalQmConfig.ts:41
- kind: function
- core: cl
- spec: (none)
- summary: Parse a raw JSONB value from intoa typed config, falling back to defaults for any missing or invalid field.
- score: 4
function parseSOAPSections
- file: src/cores/cl/ai-documentation/hooks/useAmbientTranscript.ts:44
- kind: function
- core: cl
- spec: (none)
- summary: Parses the SOAP sections from a transcript’s JSONB field.Returns undefined if no structured SOAP data is available.
- score: 4
function parseTranscriptData
- file: src/cores/cl/ai-documentation/hooks/useAmbientTranscript.ts:53
- kind: function
- core: cl
- spec: (none)
- summary: Parses the raw transcript data from a transcript’s JSONB field.Returns undefined if no transcript data is available.
- score: 4
function persistHedisMeasurePeriods
- file: src/cores/cl/services/hedisMeasurePersist.ts:74
- kind: function
- core: cl
- spec: (none)
- summary: Persist the computed FUA/FUI measure set as MY-stamped snapshot rows.Calls the hardened SECURITY DEFINER RPC onceper measure (org-guarded, MY-versioned ON CONFLICT upsert). Returns the row idson full success, else a sanitized error on the first failure.
- params:
- input — The org, period, Measurement Year, and the measure snapshots.
- returns: on success, else (sanitized).
- score: 4
function persistMeasureResult
- file: src/cores/cl/services/qualityMeasureEngine.ts:98
- kind: function
- core: cl
- spec: (none)
- summary: Persist a calculated measure as an immutable result + cohort snapshot.Calls the org-guarded RPC; the engine derivesdenominator/numerator/exclusion/exception counts and the eCQM performance rate(numerator / (denominator − exclusions − exceptions)) and writes both rows atomically.
- params:
- input — org, registered measure, period, value-set version, data-as-of, members.
- returns: on success, else (sanitized).
- score: 4
function priorityBadgeVariant
- file: src/cores/cl/components/problem-list/problemTransitions.ts:92
- kind: function
- core: cl
- spec: CL-46
- summary: Maps a problem-list priority value to a Badge variant. Priority (the”primary problem” slot) renders destructive to draw the eye; –render warning; everything else (including / ) renderssecondary so the row stays calm. Keeps colour decisions out of thecall site.
- params:
- priority — The numeric priority on , or nullish when unset.
- returns: The Badge variant token to use.
- score: 5
function proposeCptCode
- file: src/cores/cl/utils/groupEncounterCptProposal.ts:46
- kind: function
- core: cl
- spec: (none)
- summary: Proposes a CPT code based on the group session type and subtype.
- params:
- groupType — The group type (e.g., ‘process’, ‘psychoeducation’, ‘cbt’).
- groupSubtype — The group subtype (e.g., ‘standard’, ‘family’, ‘multi_family’).
- returns: Proposed CPT code string.
- score: 4
function raiseToHighest
- file: src/cores/cl/lib/ds4p/confidentiality.ts:83
- kind: function
- core: cl
- spec: (none)
- summary: Raises a set of member confidentiality codes to the highest (mostrestrictive) — used to label a Bundle/document by its most-sensitive member.An empty set returns (nothing to protect).
- score: 4
function redactLaunchUrl
- file: src/cores/cl/integrations/weno/request-builder.ts:108
- kind: function
- core: cl
- spec: (none)
- summary: Strip the encrypted param from a URL for safe logging.
- score: 4
function removeOrgSurfaceBlock
- file: src/cores/cl/services/blocks/surfaceTemplateAdmin.ts:186
- kind: function
- core: cl
- spec: (none)
- summary: Remove an org-optional block from a surface template.
- score: 4
function requestFuaPayerExport
- file: src/cores/cl/services/fuaPayerExport.ts:54
- kind: function
- core: cl
- spec: (none)
- summary: Request an event-level export of FUA/FUI SUD denominator data via the gated table.The insert passes through the BEFORE-INSERTtrigger, which fail-closes on absent 42 CFR Part 2 consent, a disabledper-org payer-export flag (AC-5, default off), or a cross-org chart, and logsthe disclosure to on the allowed-payer success path.A Supabase/trigger error is sanitized at the boundary — the raw error neverreaches the caller.
- params:
- params — The disclosure request (org, chart, measure, period, destination).
- returns: on a gated-success insert, else (sanitized).
- score: 4
function requiredFieldKeys
- file: src/cores/cl/dsi-disclosures/lib/disclosureFields.ts:136
- kind: function
- core: cl
- spec: (none)
- summary: Canonical required-field set for a dsi_type — derived from isDisclosureComplete so theeditor’s required markers and completeness display can never drift from the publish gate.Running the completeness check against an empty row yields exactly the required columns.
- score: 4
function requiresRedisclosureNotice
- file: src/cores/cl/services/tefcaRedisclosureNotice.ts:45
- kind: function
- core: cl
- spec: (none)
- summary: Determines whether a redisclosure notice is required for a givendocument type. SUD counseling notes always require it.
- score: 4
function resolveAttestationText
- file: src/cores/cl/utils/note-requirements-resolver.ts:33
- kind: function
- core: cl
- spec: (none)
- summary: Resolves the attestation text for the note signing dialog.Falls back to Arizona AHCCCS attestation text when profile is null.
- score: 4
function resolveClient
- file: src/cores/cl/utils/marketplace/import-handler-registry.ts:63
- kind: function
- core: cl
- spec: (none)
- summary: Helper for handlers; resolves to the singleton supabase client when no override is provided.
- score: 1
function resolveDisclosableCategory
- file: src/cores/cl/lib/ceem/minimumNecessary.ts:123
- kind: function
- core: cl
- spec: (none)
- summary: Resolve which (if any) category code may be disclosed, applying the FR-4afail-safe ladder: omit by default → include only when permitted → coarsenSUD-revealing categories unless SUD-category disclosure is explicitly allowed.
- score: 4
function resolveMandatoryNoteValidation
- file: src/cores/cl/utils/note-requirements-resolver.ts:68
- kind: function
- core: cl
- spec: (none)
- summary: Resolves whether note validation is mandatory (cannot be disabled).Falls back to true (Arizona AHCCCS behavior).
- score: 4
function resolvePolicyCitation
- file: src/cores/cl/utils/note-requirements-resolver.ts:60
- kind: function
- core: cl
- spec: (none)
- summary: Resolves the policy citation metadata for UI labels.Falls back to “AHCCCS Policy 940” when profile is null.
- score: 4
function resolveRequiredElements
- file: src/cores/cl/utils/assessment-progress.ts:13
- kind: function
- core: cl
- spec: (none)
- summary: Resolve required assessment elements from a clinical-rules profile,falling back to the canonical INTAKE_SECTION_CODES when the profileprovides an empty or missing list.
- score: 4
function resolveRequiredNoteElements
- file: src/cores/cl/utils/note-requirements-resolver.ts:41
- kind: function
- core: cl
- spec: (none)
- summary: Resolves the required note elements for validation.Falls back to the 12-element POLICY_940_ELEMENTS when profile is null.
- score: 4
function resolveTimedThresholds
- file: src/cores/cl/utils/groupEncounterJurisdiction.ts:31
- kind: function
- core: cl
- spec: (none)
- summary: Resolves timed-code unit thresholds from billing rules.Uses from the jurisdiction profile to derivestandard midpoint thresholds, or falls back to AZ defaults.
- params:
- billingRules — BillingRules from the resolved jurisdiction profile, or null.
- returns: Array of minute thresholds for unit 1, 2, 3, 4.
- score: 4
function resolveTimelinessHours
- file: src/cores/cl/utils/note-requirements-resolver.ts:52
- kind: function
- core: cl
- spec: (none)
- summary: Resolves the documentation timeliness threshold (hours).Falls back to 24h (Arizona late-entry threshold).
- score: 4
function resolveUnitsFromDuration
- file: src/cores/cl/utils/groupEncounterJurisdiction.ts:51
- kind: function
- core: cl
- spec: (none)
- summary: Resolves unit count from duration using jurisdiction thresholds.
- params:
- durationMinutes — Actual attendance duration in minutes.
- thresholds — Timed-code thresholds from .
- returns: Number of billable units (0 if below minimum threshold).
- score: 4
function riskLevelToUrgency
- file: src/cores/cl/components/clinicalUrgencyUtils.ts:11
- kind: function
- core: cl
- spec: (none)
- summary: Maps a risk level string from the database to a ClinicalUrgency value.
- score: 4
function routeMatchCandidates
- file: src/cores/cl/services/tefcaPatientMatching.ts:78
- kind: function
- core: cl
- spec: (none)
- summary: Routes match candidates based on threshold.- Above threshold → auto-linked (best match only)- Below threshold → manual review queue (never auto-linked)
- score: 4
function runAtRiskCohortJob
- file: src/cores/cl/services/outcomes/atRiskCohortJob.ts:80
- kind: function
- core: cl
- spec: (none)
- summary: Run the at-risk reassessment cohort scan for one organization.
- params:
- db — Supabase client (service-role for cron context; passes RLS as caller for tests).
- organizationId — The organization to scan.
- suprt — Resolved PF-96 suprt rule pack. Callers MUST pass this; never null-substitute.
- asOf — Reference “now” (defaults to wall-clock; injectable for tests).
- score: 4
function saveBlockInstance
- file: src/cores/cl/services/blocks/blockInstanceStore.ts:74
- kind: function
- core: cl
- spec: (none)
- summary: Persist a block instance for an encounter, routing by .
- params:
- def — the resolved block + its storage binding.
- ctx — tenant/encounter identity + the snapshotted version + .
- values — the field values keyed by .
- deps — the adapter registry and (optionally) an injected client.
- returns: where the save routed and whether it succeeded.
- score: 4
function scoreAce10
- file: src/cores/cl/utils/traumaScoring.ts:30
- kind: function
- core: cl
- spec: (none)
- summary: Sum 10 binary items (item_1..item_10), each 0 or 1. Max score: 10.
- score: 4
function scoreAUDITC
- file: src/cores/cl/utils/patientSubmissionScoring.ts:73
- kind: function
- core: cl
- spec: (none)
- summary: Implements score auditc behavior.
- score: 4
function scoreBtq
- file: src/cores/cl/utils/traumaScoring.ts:98
- kind: function
- core: cl
- spec: (none)
- summary: BTQ Criterion-A counter per Schnurr et al. (2002).Items 1–10 are event endorsements (0/1).Follow-up items determine Criterion A qualification: item_N_life_threat (0/1) — perceived life threat item_N_serious_injury (0/1) — serious injury occurredAn endorsed event meets Criterion A if life_threat=1 OR serious_injury=1.
- score: 4
function scoreCSSRSScreener
- file: src/cores/cl/utils/patientSubmissionScoring.ts:123
- kind: function
- core: cl
- spec: (none)
- summary: Implements score cssrsscreener behavior.
- score: 4
function scoreDAST10
- file: src/cores/cl/utils/patientSubmissionScoring.ts:100
- kind: function
- core: cl
- spec: (none)
- summary: Implements score dast10 behavior.
- score: 4
function scoreGAD7
- file: src/cores/cl/utils/patientSubmissionScoring.ts:52
- kind: function
- core: cl
- spec: (none)
- summary: Implements score gad7 behavior.
- score: 4
function scoreLec5
- file: src/cores/cl/utils/traumaScoring.ts:59
- kind: function
- core: cl
- spec: (none)
- summary: Utility for score lec5.
- score: 1
function scorePcl5
- file: src/cores/cl/utils/traumaScoring.ts:18
- kind: function
- core: cl
- spec: (none)
- summary: Sum 20 items (item_1..item_20), each 0–4. Max score: 80.
- score: 4
function scorePHQ9
- file: src/cores/cl/utils/patientSubmissionScoring.ts:22
- kind: function
- core: cl
- spec: (none)
- summary: Implements score phq9 behavior.
- score: 4
function scoreSubmission
- file: src/cores/cl/utils/patientSubmissionScoring.ts:169
- kind: function
- core: cl
- spec: (none)
- summary: Score a patient submission by instrument type.Returns null if the instrument type is not recognized.
- score: 4
function searchAllergens
- file: src/cores/cl/utils/allergenSearch.ts:87
- kind: function
- core: cl
- spec: (none)
- summary: Search allergens by free-text query (display or code prefix).
- score: 4
function searchReactions
- file: src/cores/cl/utils/allergenSearch.ts:92
- kind: function
- core: cl
- spec: (none)
- summary: Search SNOMED reactions by free-text query (display or code prefix).
- score: 4
function segmentCeemExemptionDisclosure
- file: src/cores/cl/lib/ds4p/ceem-exemption-profile.ts:239
- kind: function
- core: cl
- spec: (none)
- summary: Runs the CEEM exemption-disclosure segmentation profile. Pure and total:always returns a decision + an audit event, never throws on policy gaps(those produce a fail-closed block).
- score: 4
function selectOutstandingSuprtCItems
- file: src/cores/cl/lib/outcomes/suprt-autopopulate.ts:99
- kind: function
- core: cl
- spec: (none)
- summary: Select the outstanding SUPRT-C (client self-report) items, excluding any itemalready captured administratively via SUPRT-A (AC-3). Dedup is by ,so a self-report item that duplicates an administratively-sourced item is notre-asked of the client.
- score: 4
function serializeDs4pSecurityLabel
- file: src/cores/cl/lib/ds4p/security-labels.ts:107
- kind: function
- core: cl
- spec: (none)
- summary: Canonical, stable serialization of a into thesingle text column.The HL7 sensitivity ActCodes and the redisclosure-obligation codes are eachsorted ascending (lexicographic, codepoint order) and comma-joined; the twogroups are then pipe-delimited as the sorted sensitivity codes, a pipe ,then the sorted obligation codes.The Part 2 floor therefore serializes to the literal ( sorts before by codepoint, single obligation). The form isdeterministic and order-independent: any permutation of the input arraysyields byte-identical output, so the value a DB trigger writes and the value TSderives can be asserted byte-equal (the DB↔TS drift trap exercised by theintegration test).A label set carrying neither sensitivity nor obligation codes (non-Part 2)serializes to the empty string. The DB trigger only ever writes the Part 2floor below — never the empty case.
- score: 4
function serializeWenoJson
- file: src/cores/cl/integrations/weno/request-builder.ts:103
- kind: function
- core: cl
- spec: (none)
- summary: Serialize a WENO wire object preserving insertion (= vendor) order. WENO’sfield order is significant; never substitute a key-sorting serializer.
- score: 4
variable setWenoAdminCred
- file: src/cores/cl/services/wenoCredentials.ts:21
- kind: variable
- core: cl
- spec: (none)
- summary: Store the org-admin WENO login; the password is MD5-hashed server-side, never stored plaintext.
- score: 2
variable setWenoKey
- file: src/cores/cl/services/wenoCredentials.ts:18
- kind: variable
- core: cl
- spec: (none)
- summary: Store the org’s WENO EZ encryption key in the vault. Returns the credential id.
- score: 2
variable setWenoPrescriberMap
- file: src/cores/cl/services/wenoCredentials.ts:39
- kind: variable
- core: cl
- spec: (none)
- summary: Map a WENO PrescriberWENOID (e.g. “U6911”) to a platform profile for an org (#1961).cl_weno_apply_newrx_sync uses this to resolve cl_prescriptions.prescriber_id forWENO-synced rows. Returns the mapping id.
- score: 2
variable setWenoUserCred
- file: src/cores/cl/services/wenoCredentials.ts:25
- kind: variable
- core: cl
- spec: (none)
- summary: Store a prescriber’s WENO login + location; the password is MD5-hashed server-side.
- score: 2
function shouldApplyHqModifier
- file: src/cores/cl/utils/groupEncounterCptProposal.ts:35
- kind: function
- core: cl
- spec: (none)
- summary: Determines whether the HQ modifier should be applied.
- params:
- participantCount — Number of attendees present/partial in the session.
- returns: if HQ modifier should be applied (≥ 2 participants).
- score: 4
function shouldEscalate
- file: src/cores/cl/utils/review-scheduling.ts:49
- kind: function
- core: cl
- spec: (none)
- summary: True when the review crosses the escalation threshold beyond the due date.
- score: 4
function stubCheckRTPB
- file: src/cores/cl/services/rtpb.ts:32
- kind: function
- core: cl
- spec: (none)
- summary: Stub: simulates a Real-Time Prescription Benefit (RTPB) check.In production: invoke a real RTPB vendor API. No PHI is sent — only themedication name and organization ID are used for lookup.
- params:
- medicationName — Drug name to check formulary status for
- organizationId — Organization context (for future payer configuration lookup)
- score: 4
function suggestVirtualGroupModifiers
- file: src/cores/cl/utils/virtual-group-modifiers.ts:39
- kind: function
- core: cl
- spec: (none)
- summary: Returns modifier suggestions for a group therapy session based on modality.Resolution order: an explicit PF-96 override wins;otherwise the US-AZ default profile applies (constitution §1: AZ is thedefault jurisdiction, not a hardcoded global).
- params:
- modality — Session modality (‘in_person’ | ‘virtual’ | ‘hybrid’)
- jurisdictionModifiers — PF-96 jurisdiction-profile modifier override codes
- returns: Array of modifier suggestions; empty for in-person sessions
- score: 4
function TelehealthConsentBadge
- file: src/cores/cl/components/telehealth/TelehealthConsentBadge.tsx:47
- kind: function
- core: cl
- spec: CL-24
- summary: Renders a telehealth-consent status pill for a patient chart. Reads thelatest non-revoked consent of the requested type via TanStack Query andderives the badge visual from the validity state. Returns when theCL-24 feature flag is off so callers can mount it unconditionally.
- params:
- props — Badge props. - : to inspect consent for. - : Consent kind to check — defaults to . Pass from audio-only surfaces.
- score: 5
function toFhirAllergyIntolerance
- file: src/cores/cl/utils/allergy-fhir.ts:72
- kind: function
- core: cl
- spec: (none)
- summary: Map a single allergy row to a FHIR AllergyIntolerance resource.
- score: 4
function toSegmentationDecisionInsert
- file: src/cores/cl/lib/ds4p/ceem-exemption-profile.ts:360
- kind: function
- core: cl
- spec: (none)
- summary: Projects a segmentation result into the insert row. Carries no raw clinical content (only the category code + labelmetadata), satisfying the minimum-necessary audit contract.
- score: 4
function use988TransfersByChart
- file: src/cores/cl/hooks/use988Transfers.ts:21
- kind: function
- core: cl
- spec: (none)
- summary: Implements use988 transfers by chart behavior.
- score: 4
function validateCohortRuleCriteria
- file: src/cores/cl/utils/cohort-rule-engine.ts:234
- kind: function
- core: cl
- spec: (none)
- summary: Validate criteria via Zod + structural checks.Throws if invalid (max depth, unknown field, malformed shape).
- score: 4
function validateConsentCapture
- file: src/cores/cl/utils/recording-consent.ts:35
- kind: function
- core: cl
- spec: (none)
- summary: Validates a consent capture attempt.
- score: 4
function validateDimensionScores
- file: src/cores/cl/utils/loc-scoring.ts:195
- kind: function
- core: cl
- spec: (none)
- summary: Validate that all dimensions have valid scores.
- score: 4
function validateMinimumNecessary
- file: src/cores/cl/lib/ceem/minimumNecessary.ts:169
- kind: function
- core: cl
- spec: (none)
- summary: Allow-list content validator (FR-5). Fails CLOSED: any key outside theallow-list, any forbidden-substring key, or a malformed core field yields aviolation — the gate maps a non-empty result to a deny and emits NO payload.
- score: 4
function validateNoDuplicateSectionCodes
- file: src/cores/cl/utils/assessment-template-merge.ts:75
- kind: function
- core: cl
- spec: (none)
- summary: Validate that no duplicate section_codes exist in a list of sections.Returns an array of duplicate codes (empty if valid).
- score: 4
function validatePolicy940
- file: src/cores/cl/shared/validation/validatePolicy940.ts:200
- kind: function
- core: cl
- spec: (none)
- summary: Validates a progress note against AHCCCS Policy 940 requirements.
- params:
- ctx — Note/encounter context with the 12 required fields
- mode — Enforcement mode from org settings
- isFinalizing — Whether this is a finalization attempt (affects )
- options — Optional configuration (CL-04-EN-67: supports jurisdiction-driven element lists) - requiredElements: Override default Policy 940 elements with jurisdiction-specific requirements
- returns: Validation result with missing elements, severity, and block status
- score: 4
function validateStep
- file: src/cores/cl/wizards/e-prescribing/hooks/useEPrescribingWizard.ts:60
- kind: function
- core: cl
- spec: (none)
- summary: Validate a step’s required fields. Returns true if step is valid.
- score: 4
Classes
class UnsupportedItemTypeError
- file: src/cores/cl/utils/marketplace/errors.ts:5
- kind: class
- core: cl
- spec: (none)
- summary: CL-57: Typed errors for marketplace import handling.
- score: 4