True Care SystemTrue Care SystemDocumentation
Return to Website

TRUE CARE SYSTEM • API DOCUMENTATION

BSS API

Support BSS cases, assessments, daily service logs, supervisor review, approval, billing readiness, and behavior-support documentation.

Purpose

Support BSS cases, assessments, daily service logs, supervisor review, approval, billing readiness, and behavior-support documentation.

HIPAA, privacy, and implementation notice

BSS API responses may include sensitive Provider, workforce, Individual, clinical, financial, or operational information. Production access must remain authenticated, Provider-scoped, role-authorized, purpose-limited, and auditable. Sample values below are demonstrations only.

Functional Scope

The BSS API supports the approved workflows shown in the True Care System user interface while centralizing validation and security enforcement in the backend. Client applications should never reproduce or bypass server-side authorization rules.

Primary Endpoint Groups

MethodRouteGeneral Purpose
GET/bss/casesList BSS cases.
POST/bss/casesCreate a BSS case.
GET/bss/cases/:idReturn a case chart.
POST/bss/daily-logsCreate a daily service log.
POST/bss/daily-logs/:id/approveApprove a submitted log.

Request Controls

  • Require a valid authenticated session for protected routes.
  • Resolve Provider scope from the authorized identity and server-managed context.
  • Validate identifiers, dates, status values, and enumerated fields.
  • Reject cross-Provider access even when a record identifier is known.
  • Apply role and permission checks before reading or changing data.
  • Record applicable view, create, update, delete, export, or approval activity.

Example List Request

GET /api/bss?page=1&limit=25&status=ACTIVE
Authorization: Bearer <access-token>

Example Success Response

{
  "success": true,
  "message": "BSS records returned.",
  "data": {
    "items": [],
    "page": 1,
    "limit": 25,
    "total": 0
  },
  "requestId": "demo-request-id"
}

Common Validation and Error Conditions

ConditionExpected handling
Unauthenticated requestReturn an authentication error without exposing account details.
Insufficient role permissionReturn a forbidden response and record security-relevant evidence where required.
Cross-Provider identifierDo not disclose whether the record exists outside the authorized Provider scope.
Invalid field or dateReturn a validation response with safe, actionable corrections.
Record conflictReject duplicates, overlaps, or invalid state transitions according to business rules.
Unexpected server failureReturn a safe generic error with a request identifier; preserve diagnostics only in protected logs.

Audit and HIPAA Expectations

Where the request accesses or changes PHI or sensitive operational data, the audit record should preserve the authorized Provider, user or actor, target record, module, action, timestamp, request context, outcome, and other approved metadata.

Implementation Checklist

  • Controller or route contract defined.
  • Request DTO or schema validation defined.
  • Provider filter enforced in the service or data-access layer.
  • Role authorization verified.
  • Sensitive response fields reviewed.
  • Audit behavior tested.
  • Success, validation, forbidden, not-found, and conflict cases tested.
  • Documentation and Test Catalog updated with the code change.

Troubleshooting

Records are missing

Verify Provider scope, filters, record status, date range, pagination, and role permissions.

A request returns forbidden

Confirm the user's assigned role and permission. Do not bypass the backend guard.

A save returns validation errors

Compare the request body with the approved DTO, enum values, required fields, effective dates, and business-state requirements.

Related Documentation