SDK Quick Start — Healthcare & Life Sciences
Getting started: Healthcare & Life Sciences
Control what your AI can do. The core SDK checks policy before your workflow runs an action and again before its result is released. Denied actions stop. Actions that need human review stay paused until a signed outcome arrives.
Catalog context. Choose a workflow and identify the minimum data needed to explain its decisions. Record metadata without including patient information unless its use is authorized. Clinical review, privacy obligations, and device requirements depend on the application and its use. Keep proposed rules separate from effective requirements when defining controls.
Use industry fields with the core SDK
Industry vocabularies supply typed values that the SDK sends as policy fields and evidence attributes with one governed call. Choose values that describe the actual workflow. Adding a vocabulary does not activate rules or assign regulatory requirements.
| Layer | What you configure | What changes downstream |
|---|---|---|
| Core SDK | Application SDK key, endpoint, one client, and the governed action around each protected step | The same policy checks, typed results, and evidence used across every implementation |
| Healthcare & Life Sciences | Typed industry values and application facts drawn from this vertical catalog | Rules read them under input.snapshot.industry and input.snapshot.facts; reviewers see them in evidence |
| Review workflows | Rules, evidence packages, and internal reviewer workflows | Reviewers can inspect captured values and identify missing context |
If you need the cross-industry baseline first, open the core SDK reference, Python core, or .NET core before continuing here.
Step 1 — Install the approved packages
In the customer portal, open Tools and SDKs. Select your language and adapters, then follow the installation instructions shown there.
VeriProof SDKs are distributed through customer-gated GitLab packages, not public registries. See SDK access for workstation and CI guidance.
VeriProof packages used here: @veriproof/sdk-core (TypeScript), veriproof-sdk (Python), Veriproof.Sdk.Core (.NET).
Step 2 — Configure
Store the application SDK key as VERIPROOF_API_KEY and create one client when the application starts. Publish the policy you want to enforce, then confirm its field contract against the facts and industry values your application supplies.
Copy the application ID and key from Set up SDK. The application ID is not its display name. Try a live demo to see a governed workflow, or request an evaluation if you need a workspace.
Step 3 — Govern the action
Put the protected business action inside govern. The SDK checks policy before it calls the action and before it releases the result. Deny and human-review decisions stop execution here.
import { Veriproof } from '@veriproof/sdk-core';
import type { GovernedResult, IndustryFact, JsonValue } from '@veriproof/sdk-core';
const veriproof = Veriproof.fromEnv();
export async function runProtectedAction<TInput extends JsonValue, TValue>(
request: TInput,
action: (input: TInput, signal: AbortSignal) => Promise<TValue>,
): Promise<GovernedResult<TValue, TInput>> {
// Catalog values for this vertical. Replace them with facts from the current workflow.
const industry: IndustryFact[] = [
{ attribute: "healthcare.clinical_trial.solution_category", policyInput: "healthcare_clinical_trial_solution_category", value: "clinical_trials" },
{ attribute: "healthcare.condition.clinical_status", policyInput: "healthcare_condition_clinical_status", value: "active" },
{ attribute: "healthcare.observation.status", policyInput: "healthcare_observation_status", value: "registered" },
];
// Policy runs before action() and again before the result is released.
// A deny or review decision means action() never runs.
return veriproof.govern(
"healthcare.life.sciences.evaluate",
request,
({ input, signal }) => action(input, signal),
{ industry },
);
}Only completed, completed_with_warning, and transformed results carry a released value. Handle every other status with its safe message, reason code, and evidence reference. For review decisions, save the checkpoint and continue through the human review workflow.
Add typed industry values
Each core SDK ships this vertical's vocabulary as generated types. A typed value becomes one policy field and one evidence attribute when you pass it to the governed call. Use application facts for values that are specific to your workflow.
Find this workflow's vocabulary in the Healthcare & Life Sciences reference. Use the attribute names below and verify their policy-field mapping before using them in a rule. Sample values show the format; they are not recommended outcomes for your application.
| OTel attribute | Sample value | Category |
|---|---|---|
healthcare.clinical_trial.solution_category | clinical_trials | ClinicalTrialSolutionCategory |
healthcare.condition.clinical_status | active | ClinicalConditionStatus |
healthcare.observation.status | registered | DiagnosticObservationStatus |
healthcare.appointment.status | proposed | CareAppointmentStatus |
healthcare.encounter.status | planned | EncounterStatus |
healthcare.procedure.status | preparation | ProcedureStatus |
TypeScript
import { Industry } from '@veriproof/sdk-core';
import { ClinicalTrialSolutionCategory, ClinicalTrialSolutionCategoryMeta, ClinicalConditionStatus, ClinicalConditionStatusMeta, DiagnosticObservationStatus, DiagnosticObservationStatusMeta } from '@veriproof/sdk-core/industries/healthcare-life-sciences';
// Replace sample values with facts from the current workflow.
// Each value becomes one policy field and one evidence attribute.
const industry = [
Industry.fact(ClinicalTrialSolutionCategoryMeta, ClinicalTrialSolutionCategory.ClinicalTrials),
Industry.fact(ClinicalConditionStatusMeta, ClinicalConditionStatus.Active),
Industry.fact(DiagnosticObservationStatusMeta, DiagnosticObservationStatus.Registered),
];
const result = await veriproof.govern(actionName, request, runWorkflow, { industry });Python
from veriproof_sdk.verticals.healthcare_life_sciences import ClinicalTrialSolutionCategory, ClinicalConditionStatus, DiagnosticObservationStatus
# Replace sample values with facts from the current workflow.
# Each value becomes one policy field and one evidence attribute.
industry = (
ClinicalTrialSolutionCategory.clinical_trials.fact(),
ClinicalConditionStatus.active.fact(),
DiagnosticObservationStatus.registered.fact(),
)
result = await vp.govern(action_name, request, run_workflow, industry=industry).NET
using Veriproof.Sdk.Core.Industries.HealthcareLifeSciences;
// Replace sample values with facts from the current workflow.
// Each value becomes one policy field and one evidence attribute.
var options = new GovernOptions
{
Industry =
[
ClinicalTrialSolutionCategory.ClinicalTrials.Fact(),
ClinicalConditionStatus.Active.Fact(),
DiagnosticObservationStatus.Registered.Fact(),
],
};
var result = await veriproof.GovernAsync(actionName, request, RunWorkflowAsync, options);Workflow examples from the catalog
- Prior Authorisation & Utilisation Management: Prior Authorization Status. OPA rule: SLA gate, deny claim for autonomous PA determination when elapsed_hours > 72 (expedited) or elapsed_days > 7 (standard) and status is not in terminal states {approved, denied_*, cancelled_by_provider}. Escalate to human reviewer. (Cms 0057 F: CMS-0057-F: 72h expedited PA decision; 7-day standard PA decision; metrics reporting Jan 1 2026; PA API Jan 1 2027)
- PHI Data Governance & HIPAA Compliance: Business Associate Agreement Status. OPA rule: block any agentic tool action that would transmit or store PHI with a vendor whose baa_status is not baa_executed_active. Block AI model training on PHI when status is not_required_no_phi_access without first applying de-identification. (Hipaa 164 504: HIPAA 45 CFR 164.504(e), BAA requirements for business associates)
Next steps
- Open the full Healthcare & Life Sciences governance reference for all 45 enum categories, policy patterns, and source standards.
- Review TypeScript SDK core for stop handling, human review continuation, and the OpenAI Agents adapter.
- Review Python SDK core for stop handling, human review continuation, and the Microsoft Agent Framework adapter.
- Review .NET SDK core for stop handling, human review continuation, and the Microsoft Agent Framework adapter.
- Browse all vertical references to understand how the core governance vocabulary layers underneath vertical-specific attribute sets.
- Compare this guide with the public industry pages for a business overview of the same workflows.
Verify your work email to create a Developer account, free for 60 days. Open your account, create a Development application and its API key, then follow Tools and SDKs to connect it.