Social needs & programmes
Health-related social needs as a closed loop: request a validated screen (AHC-HRSN and others) from your system, read the coded findings (SNOMED CT / ICD-10-CM Z codes), make a referral to a community organisation and track it to accepted, completed or declined, with webhooks for completed screens and referral updates. Community care: the VA Community Care, IHS Purchased/Referred Care and TRICARE referrals and authorisations your staff keyed in, with visits used, documentation due dates and what needs attention. Norvya does not authorise care or determine eligibility; the agency's portal remains the system of record. Treating practices only.
- Who calls it
- Core for Federal (via primes), State & local government, Insurers (incl. Medicaid managed care); useful for Concierge doctors, Independent practices, Hospitals and health systems
- Before production
- No gate of its own; your market's “Before production” applies.
- Sandbox
- Build against synthetic members first. What each sandbox holds
- Standards
- AHC-HRSN screen; SNOMED CT / ICD-10-CM Z codes
Markets that use this family
- Concierge doctors (useful)
- Independent practices (useful)
- Federal (via primes) (core)
- State & local government (core)
- Insurers (incl. Medicaid managed care) (core)
- Hospitals and health systems (useful)
Scopes
| Scope | Allows |
|---|---|
clinical.loops.write | Close the loop on results and referrals from your system: record that a named clinician acknowledged a result, that the patient was told, the action taken, and move a tracked referral through scheduled, seen, report received and closed (medical practices only). Also: record a remote-monitoring device's calibration, swap or return, named to a member of your staff, and ask for or decide (approve / decline, named to a clinician) a suggested monitoring frequency; nothing changes until a clinician approves it. |
clinical.panel.read | Read the practice's ranked panel worklist and start worklist runs (medical practices only). |
older_adults.read | Read an older patient's falls risk tier (CDC STEADI) and falls-prevention programmes, physical function (Katz ADL / Lawton IADL only where this deployment holds the licence and the patient completed them), medication burden for medication review (count, anticholinergic burden, sedatives; never advice), your care dyads (caregiver link and consent status, never the caregiver's contact details), the sleep-apnoea pathway and CPAP adherence (an unlogged night is unknown, not missed), the status of the five fillable dementia risk factors (never a risk score) and the hospice review status (never an eligibility answer); each under the patient's sharing choices (treating practices only). |
population.measures.export | Download the QRDA Category III file for the 2026 period: TRUE counts, not submission-validated, audited and refused when the audit log is down (medical practices only). |
population.measures.read | Read five eCQM-style quality measures and the Million Hearts ABCS as suppressed rates; NOT a certified eCQM calculation (medical practices only). |
programs.adpi.read | Read your ACL ADPI ledgers: training events of professionals (by ADP-DRT function, hours, curriculum), grant expenditure entries and the cumulative percentages per ADP-DRT category, and the recorded intellectual & developmental disability status of a person you serve (treating practices; IDD status needs a BAA on file). |
programs.adpi.write | Record ACL ADPI data elements attributed to a named member of your staff: a training event, a grant expenditure entry (append-only; corrections are new entries) and a reported IDD status (self, caregiver or staff reported; never inferred) for a person you serve. |
programs.community_care.read | Read the VA Community Care, IHS Purchased/Referred Care and TRICARE referrals and authorisations your practice recorded in Norvya, with authorised dates, visits used and documentation deadlines; Norvya never authorises care or determines eligibility (treating practices only). |
programs.dhis2.read | List your organisation's DHIS2 connections (host, mapping, consent state; never the credential) and preview what a push would send: aggregate counts with small cells withheld, or pseudonymous Tracker events (built locally, nothing sent). |
programs.dhis2.write | Push a month's aggregate data value set, or pseudonymous / programme-assigned Tracker events, to a DHIS2 instance your admin configured in Norvya (dryRun and importStrategy supported; switched off unless Norvya has enabled the connector). |
social_needs.read | Read a patient's health-related social needs screen (AHC-HRSN core) with the positive domains coded to ICD-10-CM Z-codes and SNOMED CT as Norvya asserts them, and the closed-loop community referrals your practice made, with Gravity-aligned Task status (treating practices only; the patient must share their medical history with you; a positive interpersonal-safety screen never leaves Norvya). |
social_needs.write | Ask a patient to complete a social needs screen (Norvya's generic push), and create and update closed-loop referrals to community organisations (treating practices only). |
Endpoints
Social needs vocabulary: screeners, findings and their codes, referral statuses
The findings a screen can produce with the ICD-10-CM Z-codes and SNOMED CT concepts Norvya asserts (Z59.10 inadequate housing, not the retired Z59.1), the US Core `sdoh` category, the referral statuses and their FHIR Task.status. No patient data.
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/social-needs/reference" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.get(
BASE + "/v1/social-needs/reference",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/social-needs/reference`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());{
"screeners": [
{}
],
"not_available": [
{}
],
"findings": [
{
"finding": "food_insecurity",
"display": "Food insecurity",
"domain": "food",
"gravity_domain": "food-insecurity",
"icd10": "Z59.41",
"snomed": "733423003",
"code": {
"coding": [],
"text": "string"
},
"category": [
{}
]
}
],
"withheld_domains": [
"string"
],
"safety_note": "string",
"statuses": [
"string"
],
"open_statuses": [
"string"
],
"closed_statuses": [
"string"
],
"status_aliases": {},
"task_status": {},
"coding_note": "string"
}The response is the shape from the schema, not live data.
Try it in your sandbox
Ask a patient to complete a social needs screen
Creates a request for the AHC-HRSN core screen and sends Norvya's generic "Questionnaire from your care team" push (the instrument name stays in the app). 409 patient_muted_clinic when the patient muted your practice; 422 screener_not_available for PRAPARE (not built), 422 screener_not_supported for anything else. The completed screen raises social_needs.screening_completed.
Parameters
EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens
Request body
Content type: application/json (required)
ahc_hrsn (the CMS AHC-HRSN core tool). prapare answers 422 screener_not_available: it is not built in Norvya.
Shown to staff in Norvya, never in the push.
Errors specific to this call
409patient_muted_clinic422screener_not_availableAll responses
202Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s -X POST "https://app.norvya.health/v1/patients/$MEMBER_REF/social-needs/screenings" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"instrument": "ahc_hrsn",
"note": "string"
}'import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
member_ref = os.environ["MEMBER_REF"]
resp = requests.post(
f"{BASE}/v1/patients/{member_ref}/social-needs/screenings",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"instrument": "ahc_hrsn",
"note": "string",
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const member_ref = process.env.MEMBER_REF;
const url = new URL(`${BASE}/v1/patients/${encodeURIComponent(member_ref)}/social-needs/screenings`);
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"instrument": "ahc_hrsn",
"note": "string"
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());{
"screening_ref": "hrs_3f9c1a0b7d2e4c6a8b1d0e2f",
"member_ref": "string",
"instrument": "string",
"status": "requested",
"notification": "generic_push"
}The response is the shape from the schema, not live data.
Try it in your sandbox
A patient's social needs screen, coded findings and your referrals
The latest submitted AHC-HRSN screen: each domain positive or not, the positive findings coded (ICD-10-CM Z-code; SNOMED CT where certain; US Core category sdoh), any screen you requested that is still pending, and the closed-loop referrals YOUR practice made. The patient must share their medical history with you (403 medical_history_not_shared). The interpersonal-safety domain never leaves Norvya.
Parameters
EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens
Errors specific to this call
403medical_history_not_sharedAll responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/patients/$MEMBER_REF/social-needs" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
member_ref = os.environ["MEMBER_REF"]
resp = requests.get(
f"{BASE}/v1/patients/{member_ref}/social-needs",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const member_ref = process.env.MEMBER_REF;
const url = new URL(`${BASE}/v1/patients/${encodeURIComponent(member_ref)}/social-needs`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());{
"member_ref": "string",
"screened": false,
"latest_screening": {
"screening_ref": "string",
"instrument": "string",
"instrument_version": "string",
"completed_at": "string",
"requested_by_you": false,
"domains": [
{
"domain": "string",
"positive": false
}
],
"unmet_needs_reported": 0,
"findings": [
{
"finding": "food_insecurity",
"display": "Food insecurity",
"domain": "food",
"gravity_domain": "food-insecurity",
"icd10": "Z59.41",
"snomed": "733423003",
"code": {},
"category": []
}
],
"withheld_domains": [
"string"
]
},
"pending_requests": [
{
"screening_ref": "string",
"instrument": "string",
"requested_at": "string"
}
],
"referrals": [
{
"referral_ref": "sdr_5e7a9c1b3d5f7a9c1e3a5b7d",
"member_ref": "string",
"finding": "string",
"domain": "string",
"gravity_domain": "string",
"code": {
"coding": [],
"text": "string"
},
"icd10": "string",
"snomed": "string",
"category": [
{}
],
"resource": {
"name": "Mid-Ohio Food Collective",
"contact": "(614) 555-0100"
},
"status": "sent",
"open": false,
"needs_met": false,
"task_status": {
"system": "http://hl7.org/fhir/task-status",
"code": "requested"
},
"outcome_note": "string",
"created_at": "string",
"sent_at": "string",
"closed_at": "string",
"updated_at": "string"
}
],
"safety_note": "string"
}The response is the shape from the schema, not live data.
Try it in your sandbox
Create a closed-loop referral to a community organisation
One referral for one finding (codes stamped from the finding at write time, so a later terminology change cannot rewrite history). The patient must share their medical history with you. 422 unknown_finding / finding_not_available (interpersonal safety) / invalid_referral_status.
Parameters
EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens
Request body
Content type: application/json (required)
A finding from GET /v1/social-needs/reference.
An hrsn status, or the alias service_delivered / declined.
Errors specific to this call
422unknown_findingAll responses
201Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s -X POST "https://app.norvya.health/v1/patients/$MEMBER_REF/social-needs/referrals" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"finding": "food_insecurity",
"resource_name": "Mid-Ohio Food Collective",
"resource_contact": "(614) 555-0100",
"status": "sent",
"note": "string"
}'import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
member_ref = os.environ["MEMBER_REF"]
resp = requests.post(
f"{BASE}/v1/patients/{member_ref}/social-needs/referrals",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"finding": "food_insecurity",
"resource_name": "Mid-Ohio Food Collective",
"resource_contact": "(614) 555-0100",
"status": "sent",
"note": "string",
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const member_ref = process.env.MEMBER_REF;
const url = new URL(`${BASE}/v1/patients/${encodeURIComponent(member_ref)}/social-needs/referrals`);
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"finding": "food_insecurity",
"resource_name": "Mid-Ohio Food Collective",
"resource_contact": "(614) 555-0100",
"status": "sent",
"note": "string"
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());{
"referral_ref": "sdr_5e7a9c1b3d5f7a9c1e3a5b7d",
"member_ref": "string",
"finding": "string",
"domain": "string",
"gravity_domain": "string",
"code": {
"coding": [
{
"system": "http://hl7.org/fhir/sid/icd-10-cm",
"code": "Z59.41",
"display": "string"
}
],
"text": "string"
},
"icd10": "string",
"snomed": "string",
"category": [
{
"system": "http://hl7.org/fhir/sid/icd-10-cm",
"code": "Z59.41",
"display": "string"
}
],
"resource": {
"name": "Mid-Ohio Food Collective",
"contact": "(614) 555-0100"
},
"status": "sent",
"open": false,
"needs_met": false,
"task_status": {
"system": "http://hl7.org/fhir/task-status",
"code": "requested"
},
"outcome_note": "string",
"created_at": "string",
"sent_at": "string",
"closed_at": "string",
"updated_at": "string"
}The response is the shape from the schema, not live data.
Try it in your sandbox
Your practice's closed-loop community referrals
Newest first, at most 500, for patients still linked and sharing their medical history with you.
Parameters
One hrsn status (or alias).
Only referrals still open.
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/social-needs/referrals" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.get(
BASE + "/v1/social-needs/referrals",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/social-needs/referrals`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());{
"items": [
{
"referral_ref": "sdr_5e7a9c1b3d5f7a9c1e3a5b7d",
"member_ref": "string",
"finding": "string",
"domain": "string",
"gravity_domain": "string",
"code": {
"coding": [],
"text": "string"
},
"icd10": "string",
"snomed": "string",
"category": [
{}
],
"resource": {
"name": "Mid-Ohio Food Collective",
"contact": "(614) 555-0100"
},
"status": "sent",
"open": false,
"needs_met": false,
"task_status": {
"system": "http://hl7.org/fhir/task-status",
"code": "requested"
},
"outcome_note": "string",
"created_at": "string",
"sent_at": "string",
"closed_at": "string",
"updated_at": "string"
}
]
}The response is the shape from the schema, not live data.
Try it in your sandbox
One closed-loop referral
Parameters
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/social-needs/referrals/$REFERRAL_REF" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
referral_ref = os.environ["REFERRAL_REF"]
resp = requests.get(
f"{BASE}/v1/social-needs/referrals/{referral_ref}",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const referral_ref = process.env.REFERRAL_REF;
const url = new URL(`${BASE}/v1/social-needs/referrals/${encodeURIComponent(referral_ref)}`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());{
"referral_ref": "sdr_5e7a9c1b3d5f7a9c1e3a5b7d",
"member_ref": "string",
"finding": "string",
"domain": "string",
"gravity_domain": "string",
"code": {
"coding": [
{
"system": "http://hl7.org/fhir/sid/icd-10-cm",
"code": "Z59.41",
"display": "string"
}
],
"text": "string"
},
"icd10": "string",
"snomed": "string",
"category": [
{
"system": "http://hl7.org/fhir/sid/icd-10-cm",
"code": "Z59.41",
"display": "string"
}
],
"resource": {
"name": "Mid-Ohio Food Collective",
"contact": "(614) 555-0100"
},
"status": "sent",
"open": false,
"needs_met": false,
"task_status": {
"system": "http://hl7.org/fhir/task-status",
"code": "requested"
},
"outcome_note": "string",
"created_at": "string",
"sent_at": "string",
"closed_at": "string",
"updated_at": "string"
}The response is the shape from the schema, not live data.
Try it in your sandbox
Move a referral along its loop (sent, accepted, completed, declined...)
Any hrsn status (aliases service_delivered -> completed, declined -> declined_by_patient). A closed status stamps closed_at; reopening clears it. Other clients of your practice receive social_needs.referral_updated; your own client does not.
Parameters
Request body
Content type: application/json (required)
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s -X POST "https://app.norvya.health/v1/social-needs/referrals/$REFERRAL_REF/status" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "accepted",
"outcome_note": "Enrolled in weekly food box."
}'import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
referral_ref = os.environ["REFERRAL_REF"]
resp = requests.post(
f"{BASE}/v1/social-needs/referrals/{referral_ref}/status",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"status": "accepted",
"outcome_note": "Enrolled in weekly food box.",
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const referral_ref = process.env.REFERRAL_REF;
const url = new URL(`${BASE}/v1/social-needs/referrals/${encodeURIComponent(referral_ref)}/status`);
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"status": "accepted",
"outcome_note": "Enrolled in weekly food box."
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());{
"referral_ref": "sdr_5e7a9c1b3d5f7a9c1e3a5b7d",
"member_ref": "string",
"finding": "string",
"domain": "string",
"gravity_domain": "string",
"code": {
"coding": [
{
"system": "http://hl7.org/fhir/sid/icd-10-cm",
"code": "Z59.41",
"display": "string"
}
],
"text": "string"
},
"icd10": "string",
"snomed": "string",
"category": [
{
"system": "http://hl7.org/fhir/sid/icd-10-cm",
"code": "Z59.41",
"display": "string"
}
],
"resource": {
"name": "Mid-Ohio Food Collective",
"contact": "(614) 555-0100"
},
"status": "sent",
"open": false,
"needs_met": false,
"task_status": {
"system": "http://hl7.org/fhir/task-status",
"code": "requested"
},
"outcome_note": "string",
"created_at": "string",
"sent_at": "string",
"closed_at": "string",
"updated_at": "string"
}The response is the shape from the schema, not live data.
Try it in your sandbox
A patient's VA / IHS / TRICARE referrals and authorisations at your practice
The referrals and authorisations your practice recorded from the agency (agency_care): numbers, authorised services, dates and visits, visits counted, documents sent, the advisory flags. Norvya does not authorise care, determine eligibility or submit to any agency system.
Parameters
EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/patients/$MEMBER_REF/community-care/authorizations" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
member_ref = os.environ["MEMBER_REF"]
resp = requests.get(
f"{BASE}/v1/patients/{member_ref}/community-care/authorizations",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const member_ref = process.env.MEMBER_REF;
const url = new URL(`${BASE}/v1/patients/${encodeURIComponent(member_ref)}/community-care/authorizations`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());{
"items": [
{
"authorization_ref": "cca_1a2b3c4d5e6f7a8b9c0d1e2f",
"member_ref": "string",
"agency": "va",
"administrator": "string",
"referral_number": "string",
"authorization_number": "string",
"episode_of_care": "string",
"referring_facility": "string",
"authorized_services": [
"string"
],
"authorized_from": "string",
"authorized_to": "string",
"authorized_visits": 0,
"documentation_due_on": "string",
"status": "authorized",
"flags": {},
"created_at": "string",
"updated_at": "string",
"disclaimer": "string",
"visits": [
{}
],
"documents": [
{}
]
}
],
"disclaimer": "string"
}The response is the shape from the schema, not live data.
Try it in your sandbox
Your practice's community-care referrals and authorisations
Parameters
va | ihs | tricare | other
Only rows with needs_attention.
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/community-care/authorizations" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.get(
BASE + "/v1/community-care/authorizations",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/community-care/authorizations`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());{
"items": [
{
"authorization_ref": "cca_1a2b3c4d5e6f7a8b9c0d1e2f",
"member_ref": "string",
"agency": "va",
"administrator": "string",
"referral_number": "string",
"authorization_number": "string",
"episode_of_care": "string",
"referring_facility": "string",
"authorized_services": [
"string"
],
"authorized_from": "string",
"authorized_to": "string",
"authorized_visits": 0,
"documentation_due_on": "string",
"status": "authorized",
"flags": {},
"created_at": "string",
"updated_at": "string",
"disclaimer": "string",
"visits": [
{}
],
"documents": [
{}
]
}
],
"disclaimer": "string"
}The response is the shape from the schema, not live data.
Try it in your sandbox
Your organisation's DHIS2 connections (never the credential)
DHIS2 instances your clinic admin configured in Norvya: host allow-list, authentication kind, the indicator / Tracker mapping, whether the programme's consent for individual Tracker events is attested, and the last push. The credential is sealed and never returned.
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/programs/dhis2/connections" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.get(
BASE + "/v1/programs/dhis2/connections",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/programs/dhis2/connections`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Build a DHIS2 data value set or Tracker events for a month, without sending
Exactly the payload a push would send for `period`: aggregate counts over your patients who share biometrics with you (small cells withheld and listed), or one Tracker event per reading synced through Norvya's offline capture path, identified by a per-connection pseudonym or your programme's enrollment uid. Nothing leaves Norvya.
Request body
Content type: application/json (required)
d2c_ ref from GET /v1/programs/dhis2/connections.
DHIS2 monthly period, YYYYMM.
aggregate | tracker
programme_assigned mode only: member_ref -> the DHIS2 enrollment uid your programme issued. Never stored; members without one are skipped.
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s -X POST "https://app.norvya.health/v1/programs/dhis2/preview" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"connection": "string",
"period": "string",
"kind": "string",
"assigned_enrollments": {}
}'import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.post(
BASE + "/v1/programs/dhis2/preview",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"connection": "string",
"period": "string",
"kind": "string",
"assigned_enrollments": {},
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/programs/dhis2/preview`);
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"connection": "string",
"period": "string",
"kind": "string",
"assigned_enrollments": {}
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Send a month's aggregate data value set or Tracker events to a DHIS2 instance
POST /api/dataValueSets or /api/tracker (DHIS2 2.41 Web API) on the connection's instance, ordered by `staff` (a clinic admin). Refused with 409 dhis2_connector_disabled unless Norvya has switched the connector on; a sandbox organisation is answered by an in-process fake instance. Tracker events need the programme's consent attested on the connection (409 tracker_consent_not_attested). Returns DHIS2's import summary as parsed (an unrecognised answer is reported as such, never as success).
Request body
Content type: application/json (required)
d2c_ ref from GET /v1/programs/dhis2/connections.
DHIS2 monthly period, YYYYMM.
aggregate | tracker
programme_assigned mode only: member_ref -> the DHIS2 enrollment uid your programme issued. Never stored; members without one are skipped.
staff_ref of the clinic admin who ordered the push (GET /v1/panel/clinicians).
dataValueSets dryRun=true / tracker importMode=VALIDATE.
CREATE | UPDATE | CREATE_AND_UPDATE (default) | DELETE
Errors specific to this call
409tracker_consent_not_attestedAll responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s -X POST "https://app.norvya.health/v1/programs/dhis2/push" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"connection": "string",
"period": "string",
"kind": "string",
"assigned_enrollments": {},
"staff": "string",
"dry_run": false,
"import_strategy": "string"
}'import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.post(
BASE + "/v1/programs/dhis2/push",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"connection": "string",
"period": "string",
"kind": "string",
"assigned_enrollments": {},
"staff": "string",
"dry_run": False,
"import_strategy": "string",
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/programs/dhis2/push`);
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"connection": "string",
"period": "string",
"kind": "string",
"assigned_enrollments": {},
"staff": "string",
"dry_run": false,
"import_strategy": "string"
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Programme measure-report packs: the registry (measures, public sources, not built)
Medicaid maternal (non-HEDIS: OPA CCP), HRSA RMOMS PIMS elements, CDC WISEWOMAN PM #7 / #8 and MDE items, CDC DP23-0004/0005 cardiovascular measures, HRSA Telehealth Nutrition network (NOFO examples + OAT PIMS Forms 4 and 7) and ACL ADPI (ADP-DRT, cumulative from the grant start, up to five years). Each measure names the document it was read from; measures whose specification was not retrieved are listed as not built, and HEDIS-derived measures are listed as excluded (licence).
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/programs/measure-packs" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.get(
BASE + "/v1/programs/measure-packs",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/programs/measure-packs`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
One programme measure pack on your panel (counts and rates, small cells withheld)
404 unknown_pack; 422 invalid_period / period_too_long.
Parameters
Errors specific to this call
404unknown_pack422invalid_periodAll responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/programs/measure-packs/$PACK_ID" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
pack_id = os.environ["PACK_ID"]
resp = requests.get(
f"{BASE}/v1/programs/measure-packs/{pack_id}",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const pack_id = process.env.PACK_ID;
const url = new URL(`${BASE}/v1/programs/measure-packs/${encodeURIComponent(pack_id)}`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
One programme measure pack as CSV or JSON (suppressed; audited, fails closed)
What GET /v1/programs/measure-packs/{pack_id} shows, as a file. Refused (503) when the audit log cannot record the export.
Parameters
csv | json
All responses
200The suppressed report as CSV or JSON.401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/programs/measure-packs/$PACK_ID/export" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
pack_id = os.environ["PACK_ID"]
resp = requests.get(
f"{BASE}/v1/programs/measure-packs/{pack_id}/export",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const pack_id = process.env.PACK_ID;
const url = new URL(`${BASE}/v1/programs/measure-packs/${encodeURIComponent(pack_id)}/export`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Your programme's respite provider registry (the list you imported)
Active providers on your programme registry, identified by the state list's own id. Organisational data only; Norvya does not vet, license or rank providers. 422 invalid_program_key.
Parameters
one programme; omit for all
in_home | adult_day | facility | overnight | emergency | other
a service area exactly as the list names it
Errors specific to this call
422invalid_program_keyAll responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/programs/respite-providers" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.get(
BASE + "/v1/programs/respite-providers",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/programs/respite-providers`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Programme respite counts: caregivers served, hours delivered, change in burden
Caregivers served (unduplicated), caregivers with an authorisation, respite hours delivered and authorised, by setting and funding source, and change in caregiver burden (ZBI-12 first vs latest in the period, one source per caregiver, no meaningful-change threshold claimed), over dyads whose beneficiary shares medical history with you. Counts only; small cells withheld (complementary where a total would reveal one). Not an ACL submission. 422 invalid_period / invalid_program_key.
Parameters
one programme; omit for all
YYYY-MM-DD (default: 364 days before the end)
YYYY-MM-DD (default: today)
Errors specific to this call
422invalid_periodAll responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/programs/respite-summary" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.get(
BASE + "/v1/programs/respite-summary",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/programs/respite-summary`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Import (or re-import) your community resource directory in Open Referral HSDS 3.0 JSON
Upserts by HSDS service id + location id; services your new file no longer carries are marked inactive (never deleted). Missing HSDS-required fields are warnings, a service without id or name is skipped. Your directory stays in your practice only; the licence for its data is yours. 422 not_hsds / no_services / invalid_directory_key.
Request body
Content type: application/json (required)
Your label for this directory; re-importing the same key updates it.
HSDS 3.0 JSON: a list of service objects (nested organization, service_at_locations, phones, attributes) or an object of tabular arrays (organizations, services, locations, addresses, phones, service_at_locations, attributes, taxonomy_terms).
Errors specific to this call
422not_hsdsAll responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s -X POST "https://app.norvya.health/v1/resources/directory" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"directory_key": "county-211-2026q4",
"hsds": null
}'import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.post(
BASE + "/v1/resources/directory",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"directory_key": "county-211-2026q4",
"hsds": None,
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/resources/directory`);
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"directory_key": "county-211-2026q4",
"hsds": null
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Search your community resource directory by service type and ZIP
No patient data. ZIP is an exact match on the service location's address, not a service area or a distance.
Parameters
Taxonomy code (exact) or term name (contains).
5-digit ZIP, exact match.
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/resources/search" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.get(
BASE + "/v1/resources/search",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/resources/search`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Refer a patient to a directory service (closed loop, FHIR ServiceRequest + Task shape)
kind sdoh opens a social-needs referral (status sent) for one finding; kind aging opens an aging-network referral (status pending). The response carries the FHIR bundle your system sends. 403 medical_history_not_shared; 404 resource_not_found; 409 resource_inactive; 422 unknown_finding / finding_not_available / unknown_agency_kind / unknown_referral_kind.
EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens
Request body
Content type: application/json (required)
resource_ref from GET /v1/resources/search.
sdoh (needs finding) | aging
Errors specific to this call
403medical_history_not_shared404resource_not_found409resource_inactive422unknown_findingAll responses
201Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s -X POST "https://app.norvya.health/v1/resources/referrals" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"member_ref": "string",
"resource_ref": "string",
"kind": "string",
"finding": "food_insecurity",
"agency_kind": "area_agency_on_aging",
"service": "home_delivered_meals",
"note": "string"
}'import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.post(
BASE + "/v1/resources/referrals",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"member_ref": "string",
"resource_ref": "string",
"kind": "string",
"finding": "food_insecurity",
"agency_kind": "area_agency_on_aging",
"service": "home_delivered_meals",
"note": "string",
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/resources/referrals`);
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"member_ref": "string",
"resource_ref": "string",
"kind": "string",
"finding": "food_insecurity",
"agency_kind": "area_agency_on_aging",
"service": "home_delivered_meals",
"note": "string"
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Your practice's directory-backed community referrals and the closed-loop rate
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/resources/referrals" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.get(
BASE + "/v1/resources/referrals",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/resources/referrals`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
One community referral with its FHIR ServiceRequest + Task bundle
Parameters
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/resources/referrals/$REFERRAL_REF" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
referral_ref = os.environ["REFERRAL_REF"]
resp = requests.get(
f"{BASE}/v1/resources/referrals/{referral_ref}",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const referral_ref = process.env.REFERRAL_REF;
const url = new URL(`${BASE}/v1/resources/referrals/${encodeURIComponent(referral_ref)}`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Record what came back on a community referral
sdoh: an hrsn status (aliases service_delivered, declined). aging: an aging_services outcome; enrolled / waitlisted / found_ineligible_by_agency must name the agency in determined_by (never Norvya: 422 agency_must_determine).
Parameters
Request body
Content type: application/json (required)
aging: the agency that decided.
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s -X POST "https://app.norvya.health/v1/resources/referrals/$REFERRAL_REF/status" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "accepted",
"note": "string",
"determined_by": "string"
}'import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
referral_ref = os.environ["REFERRAL_REF"]
resp = requests.post(
f"{BASE}/v1/resources/referrals/{referral_ref}/status",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"status": "accepted",
"note": "string",
"determined_by": "string",
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const referral_ref = process.env.REFERRAL_REF;
const url = new URL(`${BASE}/v1/resources/referrals/${encodeURIComponent(referral_ref)}/status`);
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"status": "accepted",
"note": "string",
"determined_by": "string"
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Your panel's prediabetes-range registry with a gated DPP-referral suggestion
Live patients whose latest shared A1C or fasting plasma glucose is in the prediabetes range (ADA Standards of Care 2026, Section 2, Table 2.2) and neither is in the diabetes range; diagnosed diabetes on the shared problem list excludes. Each patient without an open DPP referral carries the suggestion "consider a diabetes prevention program referral" (ADA S3 Rec 3.3) gated like the app; a withheld suggestion says why. Not a diagnosis and not an eligibility decision.
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/dpp/registry" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.get(
BASE + "/v1/dpp/registry",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/dpp/registry`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Refer a patient to a diabetes prevention program (tracked on the referral loop)
Names the program from your directory (provider_resource_ref) or by provider_name. Its CDC organisation code and recognition status are recorded as you state them. 404 member_not_found / resource_not_found; 422 provider_required / staff_not_found.
EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens
Request body
Content type: application/json (required)
staff_ref of the member of your staff who did it (GET /v1/panel/clinicians).
A DPP from your directory (resource_ref).
Errors specific to this call
404member_not_found422provider_requiredAll responses
201Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s -X POST "https://app.norvya.health/v1/dpp/referrals" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"staff": "string",
"member_ref": "string",
"provider_resource_ref": "string",
"provider_name": "string",
"provider_contact": "string",
"dprp_org_code": "string",
"recognition_status": "string",
"note": "string"
}'import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.post(
BASE + "/v1/dpp/referrals",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"staff": "string",
"member_ref": "string",
"provider_resource_ref": "string",
"provider_name": "string",
"provider_contact": "string",
"dprp_org_code": "string",
"recognition_status": "string",
"note": "string",
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/dpp/referrals`);
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"staff": "string",
"member_ref": "string",
"provider_resource_ref": "string",
"provider_name": "string",
"provider_contact": "string",
"dprp_org_code": "string",
"recognition_status": "string",
"note": "string"
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Your practice's DPP referrals with enrolment, sessions and weight change
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/dpp/referrals" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.get(
BASE + "/v1/dpp/referrals",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/dpp/referrals`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
One DPP referral's outcome loop, with per-week rows in the CDC DPRP layout
PARTICIP is the member_ref. Weeks without a recorded session are blank, not 0; weights are whatever the patient shares with you.
Parameters
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/dpp/referrals/$REFERRAL_REF/outcome" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
referral_ref = os.environ["REFERRAL_REF"]
resp = requests.get(
f"{BASE}/v1/dpp/referrals/{referral_ref}/outcome",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const referral_ref = process.env.REFERRAL_REF;
const url = new URL(`${BASE}/v1/dpp/referrals/${encodeURIComponent(referral_ref)}/outcome`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Record that the program enrolled the patient
Parameters
Request body
Content type: application/json (required)
staff_ref of the member of your staff who did it (GET /v1/panel/clinicians).
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s -X POST "https://app.norvya.health/v1/dpp/referrals/$REFERRAL_REF/enrollment" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"staff": "string",
"enrolled_on": "2026-11-10"
}'import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
referral_ref = os.environ["REFERRAL_REF"]
resp = requests.post(
f"{BASE}/v1/dpp/referrals/{referral_ref}/enrollment",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"staff": "string",
"enrolled_on": "2026-11-10",
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const referral_ref = process.env.REFERRAL_REF;
const url = new URL(`${BASE}/v1/dpp/referrals/${encodeURIComponent(referral_ref)}/enrollment`);
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"staff": "string",
"enrolled_on": "2026-11-10"
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Record a program session the provider reported
session_type core | core_maintenance | ongoing_maintenance | other; delivery_mode in_person | distance | online (DPRP DMODE 1 / 2 / 3). The first attended session also moves the referral to seen. 422 session_before_referral / date_in_future / unknown_session_type.
Parameters
Request body
Content type: application/json (required)
staff_ref of the member of your staff who did it (GET /v1/panel/clinicians).
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s -X POST "https://app.norvya.health/v1/dpp/referrals/$REFERRAL_REF/sessions" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"staff": "string",
"session_date": "string",
"attended": false,
"session_type": "string",
"delivery_mode": "string",
"duration_min": 0
}'import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
referral_ref = os.environ["REFERRAL_REF"]
resp = requests.post(
f"{BASE}/v1/dpp/referrals/{referral_ref}/sessions",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"staff": "string",
"session_date": "string",
"attended": False,
"session_type": "string",
"delivery_mode": "string",
"duration_min": 0,
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const referral_ref = process.env.REFERRAL_REF;
const url = new URL(`${BASE}/v1/dpp/referrals/${encodeURIComponent(referral_ref)}/sessions`);
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"staff": "string",
"session_date": "string",
"attended": false,
"session_type": "string",
"delivery_mode": "string",
"duration_min": 0
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Record a training of professionals for your ADPI grant (ADP-DRT 'Professionals trained')
A roster (de-duplicated across events) or counts per ADP-DRT function. 422 with a stable code: attestation_required, roster_or_counts_required, function_invalid, hours_invalid, held_on_in_future, trainee_ref_must_not_be_an_email, correction_reason_invalid; 409 entry_already_corrected.
Request body
Content type: application/json (required)
The member of your staff who entered this (staff_ref).
YYYY-MM-DD; not in the future
Hours per trainee (0 < h <= 200)
Your ADPI grant number or reference
[{trainee_ref, function}]: your own pseudonymous trainee reference (never a name or e-mail; stored only as a hash) and the ADP-DRT function key
{function: n} when you keep no roster (cannot be de-duplicated)
Required true: training, not outreach or awareness; trainees are not persons living with dementia, caregivers or the public
training_ref this entry replaces
data_entry_error | duplicate | late_information | reclassification | other
Errors specific to this call
422with409entry_already_correctedAll responses
201Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s -X POST "https://app.norvya.health/v1/programs/adpi/trainings" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"staff_ref": "string",
"held_on": "string",
"topic": "string",
"curriculum": "string",
"hours": 0.0,
"grant_ref": "string",
"roster": [
null
],
"trainee_counts": {},
"attest_training_not_outreach": false,
"corrects_ref": "string",
"correction_reason": "string",
"void": false
}'import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.post(
BASE + "/v1/programs/adpi/trainings",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"staff_ref": "string",
"held_on": "string",
"topic": "string",
"curriculum": "string",
"hours": 0.0,
"grant_ref": "string",
"roster": [
None,
],
"trainee_counts": {},
"attest_training_not_outreach": False,
"corrects_ref": "string",
"correction_reason": "string",
"void": False,
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/programs/adpi/trainings`);
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"staff_ref": "string",
"held_on": "string",
"topic": "string",
"curriculum": "string",
"hours": 0.0,
"grant_ref": "string",
"roster": [
null
],
"trainee_counts": {},
"attest_training_not_outreach": false,
"corrects_ref": "string",
"correction_reason": "string",
"void": false
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Your ADPI training ledger (corrections applied unless all=true)
Counts per function only; trainee references never leave Norvya.
Parameters
include replaced and void entries
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/programs/adpi/trainings" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.get(
BASE + "/v1/programs/adpi/trainings",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/programs/adpi/trainings`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Professionals trained, unduplicated, by ADP-DRT function, and trainee-hours
Your own ledger, exact. 422 invalid_period.
Parameters
Errors specific to this call
422invalid_periodAll responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/programs/adpi/trainings/summary" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.get(
BASE + "/v1/programs/adpi/trainings/summary",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/programs/adpi/trainings/summary`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Record grant funds spent for your ADPI grant, by ADP-DRT category and funding source
staff_ref must be a practice administrator (403 clinic_admin_required). 422: category_invalid, funding_source_invalid, amount_invalid, amount_more_than_two_decimals, invalid_period; 409 entry_already_corrected.
Request body
Content type: application/json (required)
The member of your staff who entered this (staff_ref).
direct_service | administrative | other_programmatic
federal | match
Decimal string in US dollars, e.g. "1250.00"
expenditure_ref this entry replaces
Errors specific to this call
403clinic_admin_required409entry_already_correctedAll responses
201Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s -X POST "https://app.norvya.health/v1/programs/adpi/expenditures" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"staff_ref": "string",
"grant_ref": "string",
"period_start": "string",
"period_end": "string",
"category": "string",
"funding_source": "string",
"amount": "string",
"corrects_ref": "string",
"correction_reason": "string",
"void": false
}'import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.post(
BASE + "/v1/programs/adpi/expenditures",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"staff_ref": "string",
"grant_ref": "string",
"period_start": "string",
"period_end": "string",
"category": "string",
"funding_source": "string",
"amount": "string",
"corrects_ref": "string",
"correction_reason": "string",
"void": False,
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/programs/adpi/expenditures`);
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"staff_ref": "string",
"grant_ref": "string",
"period_start": "string",
"period_end": "string",
"category": "string",
"funding_source": "string",
"amount": "string",
"corrects_ref": "string",
"correction_reason": "string",
"void": false
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Your ADPI grant expenditure ledger
Parameters
include replaced and void entries
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/programs/adpi/expenditures" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.get(
BASE + "/v1/programs/adpi/expenditures",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/programs/adpi/expenditures`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Cumulative grant spend and the ADP-DRT percentages per category
Percentages of total grant funds spent (federal and match); entries crossing the period's edges are listed by count, never pro-rated.
Parameters
All responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/programs/adpi/expenditures/summary" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.get(
BASE + "/v1/programs/adpi/expenditures/summary",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/programs/adpi/expenditures/summary`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Record the reported IDD status of a person your ADPI programme serves
Self, caregiver or staff reported; never inferred from a diagnosis. unknown / declined count as the ADP-DRT "IDD status missing". 404 member_not_found / care_dyad_not_found; 422 idd_status_invalid, reported_by_invalid, reported_on_in_future, paid_caregiver_not_a_person_served.
EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens
Request body
Content type: application/json (required)
The member of your staff who entered this (staff_ref).
A person on your live panel (member_ref or ext:<id>)
The caregiver of this dyad (for a caregiver with no account)
with_idd | without_idd | unknown | declined
self | caregiver | staff
YYYY-MM-DD the answer was given
Errors specific to this call
422idd_status_invalidAll responses
201Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s -X POST "https://app.norvya.health/v1/programs/adpi/idd-status" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"staff_ref": "string",
"member_ref": "string",
"dyad_ref": "string",
"status": "string",
"reported_by": "string",
"reported_on": "string"
}'import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.post(
BASE + "/v1/programs/adpi/idd-status",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"staff_ref": "string",
"member_ref": "string",
"dyad_ref": "string",
"status": "string",
"reported_by": "string",
"reported_on": "string",
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/programs/adpi/idd-status`);
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"staff_ref": "string",
"member_ref": "string",
"dyad_ref": "string",
"status": "string",
"reported_by": "string",
"reported_on": "string"
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
One served person's recorded IDD status history (latest first)
member_ref (a person on your live panel) or dyad_ref (that dyad's caregiver). 404 member_not_found / care_dyad_not_found / person_not_found.
Parameters
EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens
Errors specific to this call
404member_not_foundAll responses
200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/programs/adpi/idd-status" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
resp = requests.get(
BASE + "/v1/programs/adpi/idd-status",
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
const BASE = "https://app.norvya.health";
const url = new URL(`${BASE}/v1/programs/adpi/idd-status`);
const res = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
Webhook events
Payloads carry no health data, only a reference to fetch with your token. Each event needs its scope as well as webhooks.manage. Signing and retries
| Event | Scope | When |
|---|---|---|
social_needs.referral_updated | social_needs.read | A closed-loop community referral of the practice was created or changed status. |
social_needs.screening_completed | social_needs.read | A patient submitted an AHC-HRSN screen. |
Generated from the Partner API router and developers_catalog.py. The router docstring is the source of each description.