DoseSpot Narx API

The Narx API from DoseSpot — 3 operation(s) for narx.

GitHub OpenAPI
Business capability
Controlled-Substance Stewardship BC-2850.50

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/patients/{patientId}/narx Get a patient's Narx report · Get patient Narx Report #
Ask an LLM
“What does the Narx report show for a patient?”
“Can I get the full Narx report for a patient?”
Tell an agent
Get the Narx report for patient {patientId}.
Show the full Narx data for patient {patientId}.
GET /api/patients/{patientId}/narx/latest Check when a patient's Narx data was last updated · Get latest patient NARX/PDMP data timestamp #
Ask an LLM
“When was the most recent successful Narx or PDMP request for a patient?”
“How fresh is a patient's Narx data?”
Tell an agent
Get the latest Narx/PDMP timestamp for patient {patientId}.
Tell me when patient {patientId}'s Narx data was last updated.
GET /api/patients/{patientId}/narx/report Get a link to a patient's Narx report · Get patient Narx Report Link #
Ask an LLM
“Where can I find the URL that opens a patient's Narx report?”
“Is there a shareable link I can open to view a patient's Narx report in a browser?”
Tell an agent
Give me the web link to open the Narx report for patient {patientId}.
Fetch just the Narx report URL for patient {patientId}, not the report data.

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dosespot:dosespot-narx-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dosespot-narx-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: Full_EPCSV2
  title: 'DoseSpot REST API - Plan: Full + EPCS - V2 Narx API'
servers:
- url: https://virtserver.swaggerhub.com/DoseSpot/dosespot-staging-rest-api-v2/Full_EPCSV2
tags:
- name: Narx
paths:
  /api/patients/{patientId}/narx:
    get:
      tags:
      - Narx
      summary: Get patient Narx Report
      description: Returns the patient's report if any
      operationId: Narx_GetPatientNarxReportV2
      parameters:
      - name: patientId
        in: path
        description: PatientId
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NarxResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/NarxResponse'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/NarxResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/NarxResponse'
            text/xml:
              schema:
                $ref: '#/components/schemas/NarxResponse'
  /api/patients/{patientId}/narx/latest:
    get:
      tags:
      - Narx
      summary: Get latest patient NARX/PDMP data timestamp
      description: Returns the timestamp of the most recent successful NARX/PDMP request for the patient
      operationId: Narx_GetLatestNarxV2
      parameters:
      - name: patientId
        in: path
        description: PatientId
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LatestNarxResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/LatestNarxResponse'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/LatestNarxResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/LatestNarxResponse'
            text/xml:
              schema:
                $ref: '#/components/schemas/LatestNarxResponse'
  /api/patients/{patientId}/narx/report:
    get:
      tags:
      - Narx
      summary: Get patient Narx Report Link
      description: Returns the url to the Narx Report for the patient
      operationId: Narx_GetPatientNarxReportLinkV2
      parameters:
      - name: patientId
        in: path
        description: PatientId
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ItemResponse_String'
            text/json:
              schema:
                $ref: '#/components/schemas/ItemResponse_String'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ItemResponse_String'
            application/xml:
              schema:
                $ref: '#/components/schemas/ItemResponse_String'
            text/xml:
              schema:
                $ref: '#/components/schemas/ItemResponse_String'
components:
  schemas:
    NarxResponse:
      type: object
      properties:
        HasReport:
          type: boolean
        SoftErrorMessages:
          type: array
          items:
            $ref: '#/components/schemas/KeyValuePair_String_String'
        DisallowedMessages:
          type: array
          items:
            $ref: '#/components/schemas/KeyValuePair_String_String'
        Disclaimer:
          type: string
        ReportStates:
          type: array
          items:
            type: string
        ReportStatesMessage:
          type: string
        NarxScores:
          type: array
          items:
            $ref: '#/components/schemas/KeyValuePair_String_String'
        Result:
          description: The result of the operation.
          $ref: '#/components/schemas/Result'
    LatestNarxResponse:
      type: object
      properties:
        LatestTimestamp:
          type: string
          format: date-time
        PatientId:
          type: integer
          format: int32
        LastPulledByClinicianId:
          type: integer
          format: int32
        LastPulledAtClinicId:
          type: integer
          format: int32
        Encounter:
          type: string
    Result:
      type: object
      required:
      - ResultCode
      properties:
        ResultCode:
          type: string
          description: The result code of the operation.
        ResultDescription:
          type: string
          description: A description of the result, if there were errors.
      description: Represents the result of a service operation.
    KeyValuePair_String_String:
      type: object
      properties:
        key:
          type: string
        value:
          type: string
    ItemResponse_String:
      type: object
      properties:
        Item:
          type: string
          description: The response object.
        Result:
          description: The result of the operation.
          $ref: '#/components/schemas/Result'
      description: Represents a generic response containing a single object.