US Core 6.1.0 / USCDI v3 · SMART App Launch 2.0.0 · Bulk Data Access IG 1.0.1
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:
| Pattern | Grant type | Client type | Use case |
|---|---|---|---|
| Standalone / EHR launch | authorization_code + PKCE (S256) | Public or Confidential | Patient- and provider-facing apps |
| Backend Services | client_credentials + private_key_jwt | Confidential (asymmetric) | Bulk Data / system-to-system |
| SMART v1 legacy scopes | authorization_code + PKCE | Confidential | Apps still on .read/.write scope syntax |
Base URL: {BASE_URL}/fhir/r4
GET {BASE_URL}/fhir/r4/metadata — declares every supported resource type, its US Core supportedProfile(s), search parameters, and the SMART oauth-uris security extension.GET {BASE_URL}/.well-known/smart-configuration{BASE_URL}/fhir-auth/authorize{BASE_URL}/fhir-auth/token{BASE_URL}/fhir-auth/introspect (RFC 7662){BASE_URL}/fhir-auth/revokepatient)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}[&...]
Practitioner, PractitionerRole, Organization, Location, Medication — GET {BASE_URL}/fhir/r4/{ResourceType}/{id}. PractitionerRole also supports ?practitioner={id} search.
GET {BASE_URL}/fhir/r4/Provenance/{id}, and via _revinclude=Provenance:target on any patient-compartment search.
GET|POST {BASE_URL}/fhir/r4/Group/{practiceId}/$export — kick off a Group-level export (Prefer: respond-async required)GET|POST {BASE_URL}/fhir/r4/Patient/$export — practice-wide exportGET {BASE_URL}/fhir/r4/bulk-export/{jobId} — status polling (202 Accepted while running, 200 OK + manifest when complete)GET {BASE_URL}/fhir/r4/bulk-export/{jobId}/file/{ResourceType} — NDJSON file downloadDELETE {BASE_URL}/fhir/r4/bulk-export/{jobId} — cancel an in-progress exportGET {BASE_URL}/fhir/r4/Group/{practiceId} and GET {BASE_URL}/fhir/r4/Group — Group resource (membership) read/search| Parameter | Type | Resources | Notes |
|---|---|---|---|
patient | token/reference | all patient-compartment types | required on every compartment search; pinned server-side from the access token, not client-overridable |
category | token | Condition, Observation | supports both resource-level and granular (SMART v2 ?category=) scoping |
code | token | most clinical types | supports system|code and bare code |
date | date | Observation, DiagnosticReport, etc. | eq/gt/ge/lt/le prefixes |
_id | token | all types | |
_lastUpdated | date | all types | |
_revinclude=Provenance:target | string | all patient-compartment types | |
_since | instant | Bulk Data $export | incremental export |
_type | string | Bulk Data $export | comma-separated resource type allow-list |
_outputFormat | string | Bulk Data $export | application/fhir+ndjson (default/only supported) |
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[]).
Standard FHIR OperationOutcome resources are returned for all error conditions, with HTTP status codes per the FHIR spec and SMART App Launch error conventions:
400 Bad Request — malformed search parameters, missing Prefer: respond-async on $export401 Unauthorized — missing, expired, or invalid access token; or token endpoint (invalid_client/invalid_grant) failures per RFC 6749 §5.2403 Forbidden — token scope does not cover the requested resource type/category, or the practice has not opted the corresponding data category into the FHIR API channel404 Not Found — resource does not exist, or does not belong to the token's patient/practice/fhir-auth/token and /fhir-auth/authorize use standard OAuth 2.0 error codes (invalid_request, invalid_client, invalid_grant, invalid_scope, unsupported_grant_type)S256 challenge method — plain is not accepted.client_secret_basic/client_secret_post) or private_key_jwt (asymmetric, backed by a registered JWK Set) — the Backend Services pattern requires asymmetric auth.supportedProfile declarations for the authoritative list of profiles per resource type.patient/{ResourceType}.rs (read+search) for every resource type listed in §3.1–3.3.patient/Condition.rs?category={system|code} and patient/Observation.rs?category={system|code} — narrows access to Condition/Observation resources carrying the matching category coding. All other resource types do not support granular sub-scoping (grant is resource-level only).patient/{ResourceType}.read is also accepted for backward compatibility.system/*.read — grants read access to the practice's entire Group/Patient compartment for Bulk Data export; the specific patient population is further restricted by the Group's configured membership (an explicit allow-list, or every non-draft patient in the practice).launch/patient, openid, fhirUser, offline_access.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.
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.
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.
No data elements beyond the US Core 6.1.0 / USCDI v3 required set are currently exposed via this API.
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.