Norvya Developers
Get a sandbox
API reference · Foundation

Records & documents

Built — gated12 endpoints · OpenAPI tag records

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

Scopes

ScopeAllows
clinical.lab_importsSend 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_askAsk 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_targetsRead 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.readRead 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.readList 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.confirmAsk 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.readRead 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

GET/v1/patients/{member_ref}/recordclinical.record.read

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

member_refpath · stringrequired
typesquery · string | null

Comma-separated FHIR resource types (default all the population export supports).

sincequery · string | null

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_export503when

All responses

200A FHIR R4 Bundle.401Unauthorized403Forbidden404Not Found409Conflict413Too large: use POST /v1/population/exports.422Unprocessable Entity429Too Many Requests503Service Unavailable

Codes every call can return are in Errors & limits.

curl -s "https://app.norvya.health/v1/patients/$MEMBER_REF/record" \
  -H "Authorization: Bearer $TOKEN"

The documents Norvya holds about a patient for your practice

GET/v1/patients/{member_ref}/documentsdocuments.read

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

member_refpath · stringrequired

EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens

All responses

200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service Unavailable

Codes every call can return are in Errors & limits.

curl -s "https://app.norvya.health/v1/patients/$MEMBER_REF/documents" \
  -H "Authorization: Bearer $TOKEN"
Response 200
{
  "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.

One document's metadata

GET/v1/documents/{document_ref}documents.read

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

document_refpath · stringrequired

Errors specific to this call

404document_not_found

All responses

200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service Unavailable

Codes every call can return are in Errors & limits.

curl -s "https://app.norvya.health/v1/documents/$DOCUMENT_REF" \
  -H "Authorization: Bearer $TOKEN"
Response 200
{
  "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.

Download a document, in the patient's language where the document supports it

GET/v1/documents/{document_ref}/contentdocuments.read

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

document_refpath · stringrequired
langquery · string | null

An app language code from the document's `languages`; default its default_language.

Errors specific to this call

422document_language_unsupported

All responses

200The document.401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service Unavailable

Codes every call can return are in Errors & limits.

curl -s "https://app.norvya.health/v1/documents/$DOCUMENT_REF/content" \
  -H "Authorization: Bearer $TOKEN"

Send a lab report to the practice's review queue

POST/v1/patients/{member_ref}/lab-importsclinical.lab_imports

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

member_refpath · stringrequired

EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens

Request body

Content type: multipart/form-data (required)

filestringrequired

The report: PDF, TIFF, JPEG, PNG or WebP.

Errors specific to this call

409member_not_sharing409lab_import_duplicate_document422lab_import_no_values

All responses

201Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service Unavailable

Codes 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_file
Response 201
{
  "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

GET/v1/patients/{member_ref}/lab-importsclinical.lab_imports

Newest first, at most 100. Status and counts only: approved values are read through the usual lab routes.

Parameters

member_refpath · stringrequired

EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens

All responses

200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service Unavailable

Codes every call can return are in Errors & limits.

curl -s "https://app.norvya.health/v1/patients/$MEMBER_REF/lab-imports" \
  -H "Authorization: Bearer $TOKEN"
Response 200
{
  "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.

Target ranges your practice set for one patient

GET/v1/patients/{member_ref}/practice-targetsclinical.practice_targets

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

member_refpath · stringrequired

EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens

All responses

200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service Unavailable

Codes every call can return are in Errors & limits.

curl -s "https://app.norvya.health/v1/patients/$MEMBER_REF/practice-targets" \
  -H "Authorization: Bearer $TOKEN"
Response 200
{
  "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.

Ask a question about one patient's record

POST/v1/patients/{member_ref}/askclinical.patient_ask

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

member_refpath · stringrequired

EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens

Request body

Content type: application/json (required)

questionstringrequired

Errors specific to this call

409patient_ask_disabled409patient_ask_baa_required

All responses

200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service Unavailable

Codes 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?"
  }'
Response 200
{
  "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.

One patient's unified timeline with provenance and data-quality flags

GET/v1/patients/{member_ref}/timelineclinical.record.read

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

member_refpath · stringrequired
include_inactivequery · boolean

Also amended and entered-in-error measurements.

limitquery · integer
typesquery · string | null

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_required

All responses

200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service Unavailable

Codes every call can return are in Errors & limits.

curl -s "https://app.norvya.health/v1/patients/$MEMBER_REF/timeline" \
  -H "Authorization: Bearer $TOKEN"

A member's VA Veteran Confirmation answer and source-labelled Veteran status

GET/v1/patients/{member_ref}/veteran-statusveterans.status.read

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

member_refpath · stringrequired

All responses

200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service Unavailable

Codes every call can return are in Errors & limits.

curl -s "https://app.norvya.health/v1/patients/$MEMBER_REF/veteran-status" \
  -H "Authorization: Bearer $TOKEN"

Ask VA's Veteran Confirmation API about a member

POST/v1/patients/{member_ref}/veteran-confirmationveterans.confirm

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

member_refpath · stringrequired

Request body

Content type: application/json (required)

staffstringrequired

staff_ref of the member of your staff who ordered the check (GET /v1/panel/clinicians).

patient_authorizedbooleanrequired

You attest the patient agreed to this check.

demographicsobjectrequired

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_missing

All responses

200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service Unavailable

Codes 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": {}
  }'

A member's move or leaving-the-service record pack, as they share it

GET/v1/patients/{member_ref}/service-transitionclinical.record.read

`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

member_refpath · stringrequired

EMR vendors also pass vendor (the practice) with a vendor-issued token. EMR vendor tokens

Errors specific to this call

403consent_not_granted

All responses

200Successful Response401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entity429Too Many Requests503Service Unavailable

Codes every call can return are in Errors & limits.

curl -s "https://app.norvya.health/v1/patients/$MEMBER_REF/service-transition" \
  -H "Authorization: Bearer $TOKEN"

Generated from the Partner API router and developers_catalog.py. The router docstring is the source of each description.

↑ ↓ to moveEnter to open