ScribeberryScribeberry Docs

Clinical Intelligence Suite

Billing code suggestions, pre-charting briefs, clinical documents (referrals and patient handouts), custom form filling, and Ask AI / note refinement on Canadian infrastructure.

The Scribeberry Clinical Intelligence Suite exposes the same Canadian-resident clinical workflows available in the Scribeberry web app as stateless, zero-retention REST endpoints.

  • Canadian residency: Every endpoint runs exclusively in Montréal (ca-montreal) and Québec (ca-quebec).
  • Zero retention: Clinical notes, transcripts, and documents are processed in memory only and never stored or used for training.
  • Grounded output: Suggestions and extracted values include verbatim supporting quotes and never fabricate clinical facts.

Endpoints at a Glance

EndpointPurpose
POST /api/v1/notes/askAsk clinical questions grounded in a note and/or encounter transcript
POST /api/v1/notes/refineEdit or reformat a note (or focused section) with plain-English instructions
POST /api/v1/clinical/billing-codes/suggestRanked billing and diagnostic codes with clinical rationale and quotes
POST /api/v1/clinical/prechart/summarizePre-visit brief synthesized from prior notes, labs, intake forms, and daysheets
POST /api/v1/clinical/documents/generateGenerate referrals, patient handouts, work/school notes, and consult letters
POST /api/v1/clinical/forms/fillPopulate any custom structured medical form schema (non-FHIR)

1. Ask AI & Note Refinement

POST /api/v1/notes/ask

curl -X POST https://api.scribeberry.com/api/v1/notes/ask \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "question": "Did the patient mention any drug allergies?",
    "note": "32F with acute cystitis. Allergic to sulfa drugs (rash from Septra).",
    "engine": "scribe-balanced"
  }'

Response:

{
  "answer": "Yes. The patient has a documented allergy to sulfa drugs (rash from Septra).",
  "citations": ["Allergic to sulfa drugs (rash from Septra)."],
  "grounded": true,
  "engine": "scribe-balanced",
  "region": "ca-montreal",
  "latency_ms": 610
}

POST /api/v1/notes/refine

curl -X POST https://api.scribeberry.com/api/v1/notes/refine \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "instruction": "Convert the Plan section into concise numbered action items.",
    "section_title": "Plan",
    "note": "Assessment: Acute uncomplicated cystitis.\nPlan: Start nitrofurantoin 100mg twice daily with food for 5 days and follow up by phone in 3 days."
  }'

2. Billing & Diagnostic Codes (POST /api/v1/clinical/billing-codes/suggest)

Supports ON-OHIP, BC-MSP, AB-AHCIP, QC-RAMQ, ICD-10-CA, US-CPT, ICD-10-CM, or auto.

curl -X POST https://api.scribeberry.com/api/v1/clinical/billing-codes/suggest \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "jurisdiction": "ON-OHIP",
    "specialty": "Family Medicine",
    "max_codes": 6,
    "note": "32F intermediate assessment for acute uncomplicated cystitis. Prescribed nitrofurantoin 100mg BID x5d."
  }'

3. Pre-Charting Brief (POST /api/v1/clinical/prechart/summarize)

Synthesize up to 25 documents (prior-note, lab-result, intake, daysheet, medication-list, referral) into a single pre-visit brief including patient contact/DOB, active problems, medications, allergies, recent results, open care gaps, and a suggested visit agenda.

curl -X POST https://api.scribeberry.com/api/v1/clinical/prechart/summarize \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "visit_reason": "Diabetes follow-up",
    "documents": [
      { "kind": "daysheet", "text": "Jane Doe, DOB 1978-05-14, Tel 416-555-0199" },
      { "kind": "lab-result", "date": "2026-11-10", "text": "HbA1c 7.8% (up from 7.1%), eGFR 84" }
    ]
  }'

4. Clinical Documents (POST /api/v1/clinical/documents/generate)

Supported document_type values: referral, patient-handout, work-note, school-note, consult-letter.

curl -X POST https://api.scribeberry.com/api/v1/clinical/documents/generate \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "document_type": "patient-handout",
    "language": "en",
    "note": "Diagnosed acute uncomplicated UTI. Prescribed nitrofurantoin 100mg twice daily with food for 5 days. Seek care if fever or flank pain develops."
  }'

5. Custom Medical Form Filling (POST /api/v1/clinical/forms/fill)

For non-FHIR forms, pass any field schema (text, boolean, date, number, choice, multi-choice) alongside a transcript or note. Choice options are strictly enforced server-side.

curl -X POST https://api.scribeberry.com/api/v1/clinical/forms/fill \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "form_title": "Return-to-Work Assessment",
    "fields": [
      { "id": "fit_for_duties", "label": "Fit for modified duties", "type": "boolean" },
      { "id": "return_date", "label": "Expected return date", "type": "date" },
      { "id": "restrictions", "label": "Work restrictions", "type": "text", "instruction": "Summarize lifting or standing limits in one sentence." }
    ],
    "transcript": "Patient can return to modified duties on December 1, 2026 with no lifting over 10 kg."
  }'

Scribeberry Canadian Engines

Pass engine on any Clinical Intelligence endpoint (defaults to scribe-balanced):

Engine IDRegionRecommended Use
scribe-balancedMontréal (ca-montreal)Default balance of clinical accuracy and speed
scribe-swiftMontréal (ca-montreal)Lowest latency for interactive Q&A and polish
scribe-preciseQuébec (ca-quebec)Dense multi-document pre-charting and complex letters
scribe-classicQuébec (ca-quebec)Previous-generation fallback profile