Records & documents
One patient's record as a FHIR R4 Bundle, built by the same builders and under the same consent scope as the population export (the patient's sharing choices, your own records, 42 CFR Part 2 records only under a covering consent), size-capped with the bulk export for large records. The documents Norvya already produces about a patient, listed and downloaded as PDF (or HTML where that is the only form) in the patient's language where the document supports it: survivorship care plans, Good Faith Estimates, post-discharge summaries, the wellness visit's written prevention plan, the medical-travel repatriation summary, weekly nursing reports and nursing invoices, and the pharmacist's completed medication review. Each kind keeps its own gate and scope; kinds a patient's sharing withholds are named, and kinds Norvya does not serve are listed with the reason. Every download is audited as a disclosure before it is returned.
- Who calls it
- Every partner: common to all markets.
- Before production
- Treating practices (medical-travel desks included) and pharmacies; the record also needs a BAA on file (or a sandbox).
- Sandbox
- Build against synthetic members first. What each sandbox holds
- Standards
- FHIR R4 Bundle; 42 CFR Part 2 consent rules
Markets that use this family
- Specialty care (useful)
Scopes
| Scope | Allows |
|---|---|
clinical.lab_imports | Send a patient's lab report (PDF or image) to your practice's review queue and follow its status. Nothing enters the record until a named clinician of your practice reviews and approves the values in Norvya; there is no API call that approves (treating practices with a BAA on file, or a sandbox). |
clinical.patient_ask | Ask a question about one patient and receive statements restating that patient's recorded data, each citing its source item and date, or the retrieved items when no checked answer is available. The patient's sharing choices apply. Never advice or a diagnosis (treating practices with a BAA on file, or a sandbox; off until Norvya enables it). |
clinical.practice_targets | Read the target ranges your practice's clinicians set for a patient, each beside the latest value and its standard reference range and flag, which targets never change. The patient's sharing choices apply. There is no API call that sets a target (treating practices only). |
clinical.record.read | Read one patient's record as a FHIR R4 Bundle (the same builders and the same consent scope as the population export: the patient's sharing choices, your practice's own records, 42 CFR Part 2 records only under a covering consent); size-capped, with the population export for large records (treating practices with a BAA on file, or a sandbox). |
documents.read | List and download the documents Norvya already produces about a patient (care plans, survivorship plans, reviews, summaries, estimates) as PDF, in the patient's language where the document supports it; each document kind keeps its own consent gate (treating practices, including medical-travel desks, and pharmacies). |
veterans.confirm | Ask VA's Veteran Confirmation API for a member, ordered by a named member of your staff with the patient's authorisation attested. The demographics go to VA and are never stored; only the status, VA's reason code and the date are (switched off unless Norvya has enabled VA access; a sandbox organisation is answered by a fake VA). |
veterans.status.read | Read your practice's stored VA Veteran Confirmation answer for a member (status, VA's reason code, date), Norvya's source-labelled Veteran status and whether the member's VA health record is connected (no record content). |
Endpoints
One patient's record as a FHIR R4 Bundle
A `collection` Bundle built by the same builders and the same consent scope as the population export (fhir_bulk.patient_export): the patient's sharing choices with your practice, your practice's own records under practice-of-record, member home data per their switches, 42 CFR Part 2 program records only under a covering consent (labelled). What consent left out is named in an OperationOutcome entry. A BAA on file is required (409 record_baa_required; a sandbox needs none). Capped at PARTNER_RECORD_MAX_RESOURCES resources / PARTNER_RECORD_MAX_BYTES bytes: beyond that, 413 record_too_large_use_population_export (narrow with types / since, or run POST /v1/population/exports). Audited as a PHI export before it is returned (503 when the audit log is down).
Parameters
Comma-separated FHIR resource types (default all the population export supports).
YYYY-MM-DD: only resources on or after.
EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens
Errors specific to this call
409record_baa_required413record_too_large_use_population_export503whenAll responses
200A FHIR R4 Bundle.401Unauthorized403Forbidden404Not Found409Conflict413Too large: use POST /v1/population/exports.422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/patients/$MEMBER_REF/record" \
-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}/record",
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)}/record`);
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
The documents Norvya holds about a patient for your practice
Each kind maps to a document Norvya already produces for your staff (survivorship care plan, Good Faith Estimate when you also hold billing.read, post-discharge summary for hospitals, the wellness visit's written prevention plan; for medical-travel desks the bilingual repatriation summary, weekly nursing reports and, with travel.billing.read, nursing invoices; for pharmacies the completed medication review letter), under that kind's own gate. Kinds the patient's sharing withholds are named in `withheld`; kinds Norvya does not serve here are listed with the reason in `not_available`.
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/documents" \
-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}/documents",
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)}/documents`);
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",
"items": [
{
"document_ref": "doc_scp_4c1d2e3f4a5b6c7d8e9f0a1b",
"kind": "survivorship_plan",
"title": "string",
"loinc": "string",
"media_type": "application/pdf",
"created_at": "string",
"issued_at": "string",
"version": 0,
"languages": [
"string"
],
"default_language": "string",
"see_also": "string",
"member_ref": "string"
}
],
"withheld": [
{
"kind": "string",
"reason": "string"
}
],
"not_available": [
{
"kind": "string",
"reason": "string"
}
],
"part2_program": false
}The response is the shape from the schema, not live data.
Try it in your sandbox
One document's metadata
404 document_not_found for another organisation's document, a member no longer linked, or a kind your token or the patient's sharing does not allow.
Parameters
Errors specific to this call
404document_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/documents/$DOCUMENT_REF" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
document_ref = os.environ["DOCUMENT_REF"]
resp = requests.get(
f"{BASE}/v1/documents/{document_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 document_ref = process.env.DOCUMENT_REF;
const url = new URL(`${BASE}/v1/documents/${encodeURIComponent(document_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());{
"document_ref": "doc_scp_4c1d2e3f4a5b6c7d8e9f0a1b",
"kind": "survivorship_plan",
"title": "string",
"loinc": "string",
"media_type": "application/pdf",
"created_at": "string",
"issued_at": "string",
"version": 0,
"languages": [
"string"
],
"default_language": "string",
"see_also": "string",
"member_ref": "string"
}The response is the shape from the schema, not live data.
Try it in your sandbox
Download a document, in the patient's language where the document supports it
Rendered by the same builder as Norvya's own copy. A disclosure: audited as a PHI export before it is returned and refused (503) when the audit log is down. 422 document_language_unsupported for a language the document cannot be rendered in. Content-Language names the language used (a builder falls back to English when the script's font is missing).
Parameters
An app language code from the document's `languages`; default its default_language.
Errors specific to this call
422document_language_unsupportedAll responses
200The document.401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service UnavailableCodes every call can return are in Errors & limits.
curl -s "https://app.norvya.health/v1/documents/$DOCUMENT_REF/content" \
-H "Authorization: Bearer $TOKEN"import os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
document_ref = os.environ["DOCUMENT_REF"]
resp = requests.get(
f"{BASE}/v1/documents/{document_ref}/content",
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 document_ref = process.env.DOCUMENT_REF;
const url = new URL(`${BASE}/v1/documents/${encodeURIComponent(document_ref)}/content`);
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
Send a lab report to the practice's review queue
Reads the report and holds its values as a draft for your practice's staff. **Nothing enters the patient's record here**: a named clinician reviews, corrects and approves the values in Norvya, and no API call can do that. The patient must share labs with you (409 member_not_sharing). A file already held for this practice is refused (409 lab_import_duplicate_document, or lab_import_file_on_other_patient); a report with no readable values is 422 lab_import_no_values and is not stored.
Parameters
EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens
Request body
Content type: multipart/form-data (required)
The report: PDF, TIFF, JPEG, PNG or WebP.
Errors specific to this call
409member_not_sharing409lab_import_duplicate_document422lab_import_no_valuesAll 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/lab-imports" \
-H "Authorization: Bearer $TOKEN" \
-F file=@your_fileimport os
import requests
BASE = "https://app.norvya.health"
TOKEN = os.environ["TOKEN"]
member_ref = os.environ["MEMBER_REF"]
with open("your_file", "rb") as fh:
resp = requests.post(
f"{BASE}/v1/patients/{member_ref}/lab-imports",
headers={"Authorization": f"Bearer {TOKEN}"},
files={"file": fh},
timeout=30,
)
resp.raise_for_status()
print(resp.json())// Node.js 18+ (ES module). Keep production credentials on your server.
import { readFile } from "node:fs/promises";
const BASE = "https://app.norvya.health";
const member_ref = process.env.MEMBER_REF;
const url = new URL(`${BASE}/v1/patients/${encodeURIComponent(member_ref)}/lab-imports`);
const form = new FormData();
form.append("file", new Blob([await readFile("your_file")]), "your_file");
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
},
body: form,
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());{
"import_ref": "lbi_4c1d2e3f4a5b6c7d8e9f0a1b",
"member_ref": "string",
"status": "pending_review",
"identity_state": "match",
"values_read": 0,
"results_saved": 0,
"created_at": "string",
"approved_at": "string"
}The response is the shape from the schema, not live data.
Status of the lab reports sent for one patient
Newest first, at most 100. Status and counts only: approved values are read through the usual lab routes.
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/lab-imports" \
-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}/lab-imports",
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)}/lab-imports`);
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",
"imports": [
{
"import_ref": "lbi_4c1d2e3f4a5b6c7d8e9f0a1b",
"member_ref": "string",
"status": "pending_review",
"identity_state": "match",
"values_read": 0,
"results_saved": 0,
"created_at": "string",
"approved_at": "string"
}
]
}The response is the shape from the schema, not live data.
Try it in your sandbox
Target ranges your practice set for one patient
Each target appears beside the latest value and its standard reference range and flag, which a target never changes. A value inside a target can still carry a flag. `position` is `not_shared` when the patient does not share that data with you. Read only: targets are set by a named clinician in Norvya.
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/practice-targets" \
-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}/practice-targets",
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)}/practice-targets`);
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",
"condition_groups_not_checked": false,
"targets": [
{
"measure": "lab:A1C",
"scope": "string",
"group_kind": "string",
"group_key": "string",
"low": 0.0,
"high": 0.0,
"unit": "string",
"set_at": "string",
"set_by_role": "string",
"effective": false,
"position": "string",
"flag_stands": false,
"latest": {
"value": 0.0,
"unit": "string",
"date": "string",
"reference_low": 0.0,
"reference_high": 0.0,
"standard_flag": "string"
}
}
]
}The response is the shape from the schema, not live data.
Try it in your sandbox
Ask a question about one patient's record
Answers only from this patient's recorded data under their sharing choices. Each statement cites its items and dates, in English. It restates the record: no advice, diagnosis, dose or new number. When the answer cannot be checked, `statements` is empty and `items` holds what was retrieved; `not_in_record` means the items read here do not answer the question, not that something is absent from the patient's care. A sandbox never calls a model (fallback_reason sandbox). 409 patient_ask_disabled until Norvya enables the feature; 409 patient_ask_baa_required without a BAA on file. The question is kept for the practice's audit trail.
Parameters
EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens
Request body
Content type: application/json (required)
Errors specific to this call
409patient_ask_disabled409patient_ask_baa_requiredAll 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/patients/$MEMBER_REF/ask" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"question": "When was the last HbA1c and what was it?"
}'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}/ask",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"question": "When was the last HbA1c and what was it?",
},
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)}/ask`);
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"question": "When was the last HbA1c and what was it?"
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());{
"member_ref": "string",
"outcome": "answered",
"fallback_reason": "answer_failed_checks",
"statements": [
{
"text": "string",
"citations": [
{}
]
}
],
"items": [
{
"item_id": "string",
"kind": "string",
"text": "string",
"date": "string",
"source": "string"
}
],
"crisis": false,
"crisis_resources": {}
}The response is the shape from the schema, not live data.
Try it in your sandbox
One patient's unified timeline with provenance and data-quality flags
The same timeline as the practice screen: labs, vitals, questionnaires, imaging, procedures, immunizations, encounters, documents, conditions with an onset and medicine starts and stops, newest first, each measurement with its provenance (source, evidence tier, reliability, device, performer) and any data-quality flags. Under the patient's sharing choices with you (see GATES in the module notes). Needs a BAA on file (409 record_baa_required; a sandbox needs none). `counts.truncated` > 0 means `limit` cut it.
Parameters
Also amended and entered-in-error measurements.
Comma-separated event types: lab, weight, biometric, questionnaire, imaging, procedure, immunization, encounter, document, condition, medication
EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens
Errors specific to this call
409record_baa_requiredAll 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/timeline" \
-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}/timeline",
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)}/timeline`);
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
A member's VA Veteran Confirmation answer and source-labelled Veteran status
Your practice's most recent VA Veteran Confirmation answer for this member (`confirmed` / `not_confirmed`, VA's reason code, date, sandbox or production), Norvya's Veteran status with its source (your clinic record, a production VA record connection, or a production VA confirmation) and whether the member's VA health record is connected. VA's caveat travels with every not_confirmed: it does not necessarily mean the person is not a Veteran.
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/patients/$MEMBER_REF/veteran-status" \
-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}/veteran-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 member_ref = process.env.MEMBER_REF;
const url = new URL(`${BASE}/v1/patients/${encodeURIComponent(member_ref)}/veteran-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
Ask VA's Veteran Confirmation API about a member
POST /services/veteran-confirmation/v1/status at VA (API-key, system-to-system; the Veteran does not sign in). Returns `{status, reason, checked_at, environment, stored}`; `reason` is VA's not_confirmed_reason (PERSON_NOT_FOUND, NOT_TITLE_38, MORE_RESEARCH_REQUIRED, ERROR). An ERROR answer (VA's source system was down) is returned but not stored. 422 demographic_field_missing:<field> / demographic_field_invalid:<field> name the field, never its value.
Parameters
Request body
Content type: application/json (required)
staff_ref of the member of your staff who ordered the check (GET /v1/panel/clinicians).
You attest the patient agreed to this check.
VA VeteranStatusRequest fields: firstName, lastName, birthDate (YYYY-MM-DD), streetAddressLine1, city, state, zipCode, country (production); birthDate + zipCode identify a test user in sandbox. Optional: middleName, gender, mothersMaidenName, homePhoneNumber, birthPlaceCity/State/Country. Never stored.
Errors specific to this call
422demographic_field_missingAll 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/patients/$MEMBER_REF/veteran-confirmation" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"staff": "string",
"patient_authorized": false,
"demographics": {}
}'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}/veteran-confirmation",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"staff": "string",
"patient_authorized": False,
"demographics": {},
},
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)}/veteran-confirmation`);
const res = await fetch(url, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"staff": "string",
"patient_authorized": false,
"demographics": {}
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());Try it in your sandbox
A member's move or leaving-the-service record pack, as they share it
`transition` (kind pcs | separation, event_date, destination and postcode as the member typed them) and `bundle`, a FHIR R4 collection Bundle under the patient's sharing with your practice (`consent_excluded` names what was left out). Only when the member switched on "let my care team retrieve this pack" (403 consent_not_granted otherwise).
Parameters
EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens
Errors specific to this call
403consent_not_grantedAll 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/service-transition" \
-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}/service-transition",
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)}/service-transition`);
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
Generated from the Partner API router and developers_catalog.py. The router docstring is the source of each description.