HealthVision SMART on FHIR API Documentation

US Core 6.1.0 / USCDI v3 · SMART App Launch 2.0.0 · Bulk Data Access IG 1.0.1

1. Overview

HealthVision exposes a SMART on FHIR R4 API conformant with US Core 6.1.0 / USCDI v3, SMART App Launch 2.0.0, and the HL7 FHIR Bulk Data Access IG 1.0.1. It supports three authorization patterns:

PatternGrant typeClient typeUse case
Standalone / EHR launchauthorization_code + PKCE (S256)Public or ConfidentialPatient- and provider-facing apps
Backend Servicesclient_credentials + private_key_jwtConfidential (asymmetric)Bulk Data / system-to-system
SMART v1 legacy scopesauthorization_code + PKCEConfidentialApps still on .read/.write scope syntax

Base URL: {BASE_URL}/fhir/r4

2. API Syntax / Discovery

3. Function Names / Endpoints

3.1 Patient-compartment resources (read + search by patient)

AllergyIntolerance, CarePlan, CareTeam, Condition, Coverage, Device, DiagnosticReport, DocumentReference, Encounter, Goal, Immunization, MedicationDispense, MedicationRequest, Observation, Procedure, RelatedPerson, ServiceRequest, Specimen, Patient

Each: GET {BASE_URL}/fhir/r4/{ResourceType}/{id} and GET {BASE_URL}/fhir/r4/{ResourceType}?patient={id}[&...]

3.2 Directory resources (read-by-id only, not patient-compartment)

Practitioner, PractitionerRole, Organization, Location, Medication — GET {BASE_URL}/fhir/r4/{ResourceType}/{id}. PractitionerRole also supports ?practitioner={id} search.

3.3 Provenance

GET {BASE_URL}/fhir/r4/Provenance/{id}, and via _revinclude=Provenance:target on any patient-compartment search.

3.4 Bulk Data (system-level)

4. Required and Optional Parameters

ParameterTypeResourcesNotes
patienttoken/referenceall patient-compartment typesrequired on every compartment search; pinned server-side from the access token, not client-overridable
categorytokenCondition, Observationsupports both resource-level and granular (SMART v2 ?category=) scoping
codetokenmost clinical typessupports system|code and bare code
datedateObservation, DiagnosticReport, etc.eq/gt/ge/lt/le prefixes
_idtokenall types
_lastUpdateddateall types
_revinclude=Provenance:targetstringall patient-compartment types
_sinceinstantBulk Data $exportincremental export
_typestringBulk Data $exportcomma-separated resource type allow-list
_outputFormatstringBulk Data $exportapplication/fhir+ndjson (default/only supported)

5. Return Variables / Types

All resources are returned as FHIR R4 JSON conformant with their declared US Core profile(s) (see CapabilityStatement). Searches return a Bundle of type searchset. Bulk Data status responses return the standard Bulk Data manifest JSON (transactionTime, request, requiresAccessToken, output[], error[], deleted[]).

6. Exceptions and Exception Handling

Standard FHIR OperationOutcome resources are returned for all error conditions, with HTTP status codes per the FHIR spec and SMART App Launch error conventions:

7. Mandatory Software Components / Configuration

8. g(10)-Specific Documentation (per the g10 Certification Companion Guide)

8.1 Supported US Core IG choices / references

8.2 Supported scopes

8.3 TLS enforcement

TLS 1.2+ is enforced at the web server/application gateway layer in front of every FHIR, SMART authorization, and Bulk Data endpoint. Requests over plaintext HTTP are not served.

8.4 Refresh token issuance for native applications

A native/public client that requests the offline_access scope and completes the standard authorization_code + PKCE flow receives a refresh_token in the token response alongside the access_token, per RFC 6749 §6 / SMART App Launch 2.0.0. The refresh token can be redeemed at the same token endpoint (grant_type=refresh_token) without re-prompting the user, as long as it remains valid. Refresh tokens are valid for a minimum of three months from issuance, independent of the (much shorter) access token lifetime, and are reissued on each use without requiring re-authentication.

8.5 JWK Set caching

For clients using private_key_jwt (asymmetric) authentication, the server fetches and caches the client's registered JWK Set rather than fetching it on every token request. That cache is refreshed once the fetch's own Cache-Control: max-age has elapsed (defaulting to 24 hours when the response carries none) — the server never relies on a JWK Set past what its own publisher said it could be cached for.

8.6 Additional supported data

No data elements beyond the US Core 6.1.0 / USCDI v3 required set are currently exposed via this API.

9. API Terms and Conditions

TODO: legal/business team to supply terms of use for third-party developers registering a SMART app against this API, and a developer contact point for registration requests.

10. Service Base URL List

Per 45 CFR 170.404(b)(2), the certified API's service base URL(s) and related Organization details are published, at no charge, as a FHIR Bundle of Endpoint + Organization resources conformant with §170.215(a):

GET {BASE_URL}/fhir/r4/service-base-urls

This list is reviewed quarterly.