DoseSpot Allergies API

The Allergies API from DoseSpot — 5 operation(s) for allergies.

GitHub OpenAPI
Business capability
Clinical Documentation Management BC-2830

Operations 5

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}/allergies List a patient's allergies · Get patient's allergies #
Ask an LLM
“What allergies does this patient have on file?”
“Can I see the reaction type and status of each allergy?”
Tell an agent
List allergies for patient {patientId}.
Show all allergies on file for patient {patientId}.
PUT /api/patients/{patientId}/allergies/{patientAllergyId} Edit an existing allergy · Edit drug allergy #
Ask an LLM
“How do I change the reaction on an allergy I already recorded?”
“Can I mark an existing allergy as resolved?”
Tell an agent
Set the reaction of allergy {patientAllergyId} for patient {patientId} to {Reaction}.
Change allergy {patientAllergyId} on patient {patientId} to status {StatusType}.
POST /api/patients/{patientId}/allergies/coded Add a coded allergy · Add coded patient allergy #
Ask an LLM
“How do I record a known drug allergy by its code?”
“Can I note when a coded allergy started?”
Tell an agent
Add allergy {AllergenId} to patient {patientId} with reaction {Reaction} and status {StatusType}.
Record coded allergy {AllergenId} for patient {patientId} starting {OnsetDate}, reaction {Reaction}, status {StatusType}.
POST /api/patients/{patientId}/allergies/freetext Add a free-text allergy · Add freetext patient allergy #
Ask an LLM
“How do I record an allergy that isn't in the drug code list?”
“Can I add a food or environmental allergy as free text?”
Tell an agent
Add free-text allergy {FreeTextDisplayName} to patient {patientId} with reaction {Reaction} and status {StatusType}.
Record allergy {FreeTextDisplayName} for patient {patientId}, onset {OnsetDate}, reaction {Reaction}, status {StatusType}.
POST /api/patients/{patientId}/allergies/noKnownAllergy Record no known allergies · Add no known patient allergy record #
Ask an LLM
“How do I clear a patient's allergy list by recording no known allergies?”
“Can I add a no-known-allergies record for a patient?”
Tell an agent
Add a no-known-allergies record for patient {patientId}.
Record that patient {patientId} has no known allergies.

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-allergies-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-allergies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: Full_EPCSV2
  title: 'DoseSpot REST API - Plan: Full + EPCS - V2 Allergies API'
servers:
- url: https://virtserver.swaggerhub.com/DoseSpot/dosespot-staging-rest-api-v2/Full_EPCSV2
tags:
- name: Allergies
paths:
  /api/patients/{patientId}/allergies:
    get:
      tags:
      - Allergies
      summary: Get patient's allergies
      description: Retrieves a detailed list of all allergies for a given patient
      operationId: Allergies_GetPatientAllergiesV2
      parameters:
      - name: patientId
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResponse_PatientAllergy'
            text/json:
              schema:
                $ref: '#/components/schemas/ListResponse_PatientAllergy'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ListResponse_PatientAllergy'
            application/xml:
              schema:
                $ref: '#/components/schemas/ListResponse_PatientAllergy'
            text/xml:
              schema:
                $ref: '#/components/schemas/ListResponse_PatientAllergy'
  /api/patients/{patientId}/allergies/{patientAllergyId}:
    put:
      tags:
      - Allergies
      summary: Edit drug allergy
      description: Updates an existing drug allergy in a patient
      operationId: Allergies_EditPatientAllergyV2
      parameters:
      - name: patientId
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      - name: patientAllergyId
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
            text/json:
              schema:
                $ref: '#/components/schemas/Response'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Response'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response'
            text/xml:
              schema:
                $ref: '#/components/schemas/Response'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditPatientAllergyRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/EditPatientAllergyRequest'
          application/problem+json:
            schema:
              $ref: '#/components/schemas/EditPatientAllergyRequest'
          application/xml:
            schema:
              $ref: '#/components/schemas/EditPatientAllergyRequest'
          text/xml:
            schema:
              $ref: '#/components/schemas/EditPatientAllergyRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/EditPatientAllergyRequest'
        description: No Known patient allergy data
        required: true
  /api/patients/{patientId}/allergies/coded:
    post:
      tags:
      - Allergies
      summary: Add coded patient allergy
      description: Adds an coded allergy to a patient record
      operationId: Allergies_AddCodedPatientAllergyV2
      parameters:
      - name: patientId
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdentifierResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/IdentifierResponse'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/IdentifierResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/IdentifierResponse'
            text/xml:
              schema:
                $ref: '#/components/schemas/IdentifierResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CodedPatientAllergyRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/CodedPatientAllergyRequest'
          application/problem+json:
            schema:
              $ref: '#/components/schemas/CodedPatientAllergyRequest'
          application/xml:
            schema:
              $ref: '#/components/schemas/CodedPatientAllergyRequest'
          text/xml:
            schema:
              $ref: '#/components/schemas/CodedPatientAllergyRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CodedPatientAllergyRequest'
        description: coded patient allergy data
        required: true
  /api/patients/{patientId}/allergies/freetext:
    post:
      tags:
      - Allergies
      summary: Add freetext patient allergy
      description: Adds an freetext allergy to a patient record
      operationId: Allergies_AddFreetextPatientAllergyV2
      parameters:
      - name: patientId
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdentifierResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/IdentifierResponse'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/IdentifierResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/IdentifierResponse'
            text/xml:
              schema:
                $ref: '#/components/schemas/IdentifierResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FreetextPatientAllergyRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/FreetextPatientAllergyRequest'
          application/problem+json:
            schema:
              $ref: '#/components/schemas/FreetextPatientAllergyRequest'
          application/xml:
            schema:
              $ref: '#/components/schemas/FreetextPatientAllergyRequest'
          text/xml:
            schema:
              $ref: '#/components/schemas/FreetextPatientAllergyRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/FreetextPatientAllergyRequest'
        description: freetext patient allergy data
        required: true
  /api/patients/{patientId}/allergies/noKnownAllergy:
    post:
      tags:
      - Allergies
      summary: Add no known patient allergy record
      description: Adds an no known patient allergy record
      operationId: Allergies_AddNoKnownPatientAllergyV2
      parameters:
      - name: patientId
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdentifierResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/IdentifierResponse'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/IdentifierResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/IdentifierResponse'
            text/xml:
              schema:
                $ref: '#/components/schemas/IdentifierResponse'
components:
  schemas:
    IdentifierResponse:
      type: object
      properties:
        Id:
          type: integer
          format: int32
          description: The entity identifier.
        Result:
          description: The result of the operation.
          $ref: '#/components/schemas/Result'
      description: Represents a generic response containing an entity identifier.
    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.
    ListResponse_PatientAllergy:
      type: object
      properties:
        Items:
          type: array
          description: The list of elements to return.
          items:
            $ref: '#/components/schemas/PatientAllergy'
        Result:
          description: The result of the operation.
          $ref: '#/components/schemas/Result'
      description: Represents a generic response containing a list of objects.
    FreetextPatientAllergyRequest:
      type: object
      required:
      - FreeTextDisplayName
      - ReactionType
      - StatusType
      properties:
        FreeTextDisplayName:
          type: string
          minLength: 0
          maxLength: 200
        Reaction:
          type: string
          description: The patient reaction to the allergy.
          minLength: 0
          maxLength: 200
        ReactionType:
          type: string
          description: The allergy reaction type.
          enum:
          - Allergy
          - AdverseReaction
        StatusType:
          type: string
          description: The status of the allergy.
          enum:
          - Active
          - Inactive
          - Deleted
        OnsetDate:
          type: string
          format: date-time
          description: The onset date of the allergy.
    Response:
      type: object
      properties:
        Result:
          description: The result of the operation.
          $ref: '#/components/schemas/Result'
      description: The result of the operation.
    PatientAllergy:
      type: object
      properties:
        PatientAllergyId:
          type: integer
          format: int32
        DisplayName:
          type: string
        AllergenId:
          type: integer
          format: int32
        AllergenType:
          type: string
          enum:
          - AllergenClass
          - ScreenableIngredient
          - FoodAndEnvironmentalAllergens
          - RoutedDoseFormDrugs
        Reaction:
          type: string
        ReactionType:
          type: string
          enum:
          - Allergy
          - AdverseReaction
        StatusType:
          type: string
          enum:
          - Active
          - Inactive
          - Deleted
        OnsetDate:
          type: string
          format: date-time
        LastUpdatedUserId:
          type: integer
          format: int32
    CodedPatientAllergyRequest:
      type: object
      required:
      - AllergenId
      - ReactionType
      - StatusType
      properties:
        AllergenId:
          type: integer
          format: int32
        Reaction:
          type: string
          description: The patient reaction to the allergy.
          minLength: 0
          maxLength: 200
        ReactionType:
          type: string
          description: The allergy reaction type.
          enum:
          - Allergy
          - AdverseReaction
        StatusType:
          type: string
          description: The status of the allergy.
          enum:
          - Active
          - Inactive
          - Deleted
        OnsetDate:
          type: string
          format: date-time
          description: The onset date of the allergy.
    EditPatientAllergyRequest:
      type: object
      required:
      - ReactionType
      - StatusType
      properties:
        Reaction:
          type: string
          minLength: 0
          maxLength: 200
        ReactionType:
          type: string
          description: The allergy reaction type.
          enum:
          - Allergy
          - AdverseReaction
        StatusType:
          type: string
          description: The status of the allergy.
          enum:
          - Active
          - Inactive
          - Deleted
        OnsetDate:
          type: string
          format: date-time
          description: The onset date of the allergy.