DoseSpot Self Reported Medications API

The SelfReportedMedications API from DoseSpot — 9 operation(s) for selfreportedmedications.

GitHub OpenAPI
Business capability
Medication Administration & Reconciliation BC-2850.40

Operations 9

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}/selfReportedMedications/{selfReportedMedicationId} Get one self-reported medication · Get patient's self-reported medication details by SelfReportedMedicationId #
Ask an LLM
“How do I look up a single medication a patient reported?”
“Can I see the dosage and refills on one self-reported drug?”
Tell an agent
Get self-reported medication {med} for patient {patient}.
Show the details of medication {med} in patient {patient}'s record.
GET /api/patients/{patientId}/selfReportedMedications List a patient's self-reported medications · Get patient's self-reported medications #
Ask an LLM
“What medications has a patient reported on their own?”
“Can I list self-reported drugs for a date range?”
Tell an agent
List self-reported medications for patient {patient}.
Show self-reported drugs for patient {patient} between {start} and {end}.
PUT /api/patients/{patientId}/selfReportedMedications/coded/{selfReportedMedicationId} Edit a coded self-reported medication · Edit a coded self-reported medication #
Ask an LLM
“How do I change the dose of a medication I coded into a patient's record?”
“Can I update the refills on a coded self-reported drug?”
Tell an agent
Set medication {med} for patient {patient} to {dispense} with {refills} refills.
Change coded drug {med} in patient {patient}'s record to status {status}.
PUT /api/patients/{patientId}/selfReportedMedications/simple/{selfReportedMedicationId} Edit a simple self-reported medication · Edit a simple self-reported medication #
Ask an LLM
“Can I edit a medication reported by a patient that has no drug code?”
“What do I change to update a simple self-reported drug?”
Tell an agent
Edit simple medication {med} for patient {patient} to {drug}.
Update simple drug {med} in patient {patient}'s record to status {status}.
PUT /api/patients/{patientId}/selfReportedMedications/freetext/{selfReportedMedicationId} Edit a free-text self-reported medication · Edit a free-text self-reported medication #
Ask an LLM
“How do I correct a medication a patient typed in free text?”
“Can I change the written date on a free-text self-reported drug?”
Tell an agent
Edit free-text medication {med} for patient {patient} to read {name}.
Set free-text drug {med} in patient {patient}'s record to status {status}.
POST /api/patients/{patientId}/selfReportedMedications/coded Add a coded self-reported medication · Add a coded self-reported medication #
Ask an LLM
“How do I add a medication a patient reported that has a drug code?”
“Can I record a patient's own medication with a dose form?”
Tell an agent
Add coded medication {drug} to patient {patient}'s record with {refills} refills.
Record patient {patient}'s self-reported drug {drug} as {status}.
POST /api/patients/{patientId}/selfReportedMedications/simple Add a self-reported medication by drug form · Add a simple self-reported medication #
Ask an LLM
“How do I record a medication a patient reported but wasn't prescribed?”
“Can I give a dose form medication a number of refills and days supply?”
Tell an agent
Add {drug} to patient {patient} as a self-reported medication with {refills} refills and {days} days supply.
Record self-reported medication {drug} for patient {patient} with dose form {form}, {refills} refills and {days} days.
POST /api/patients/{patientId}/selfReportedMedications/freetext Add a free-text self-reported medication · Add a free-text self-reported medication #
Ask an LLM
“Can a practitioner enter a drug name that doesn't have a dose form?”
“How do I add a patient's medication by typing its name?”
Tell an agent
Add the free-text medication {name} to patient {patient} as self-reported.
Record {name} for patient {patient} as a self-reported medication with {directions}.
POST /api/patients/{patientId}/selfReportedMedications/{selfReportedMedicationId}/updateStatus Update a self-reported medication's status · Update self-reported medication status #
Ask an LLM
“How do I mark a self-reported medication as inactive?”
“Can I add a comment when deactivating a patient-reported drug?”
Tell an agent
Set medication {med} for patient {patient} to {status}.
Deactivate self-reported drug {med} in patient {patient}'s record with comment {comment}.

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-selfreportedmedications-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-selfreportedmedications-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: Full_EPCSV2
  title: 'DoseSpot REST API - Plan: Full + EPCS - V2 Self Reported…'
servers:
- url: https://virtserver.swaggerhub.com/DoseSpot/dosespot-staging-rest-api-v2/Full_EPCSV2
tags:
- name: SelfReportedMedications
paths:
  /api/patients/{patientId}/selfReportedMedications/{selfReportedMedicationId}:
    get:
      tags:
      - SelfReportedMedications
      summary: Get patient's self-reported medication details by SelfReportedMedicationId
      description: Retrieves details of self-reported medication in a patient record by SelfReportedMedicationId
      operationId: SelfReportedMedications_GetPatientSelfReportMedicationDetailsByIdV2
      parameters:
      - name: patientId
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      - name: selfReportedMedicationId
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ItemResponse_SelfReportedMedicationResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ItemResponse_SelfReportedMedicationResponse'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ItemResponse_SelfReportedMedicationResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ItemResponse_SelfReportedMedicationResponse'
            text/xml:
              schema:
                $ref: '#/components/schemas/ItemResponse_SelfReportedMedicationResponse'
  /api/patients/{patientId}/selfReportedMedications:
    get:
      tags:
      - SelfReportedMedications
      summary: Get patient's self-reported medications
      description: Retrieves details of self-reported medications in a patient record
      operationId: SelfReportedMedications_GetPatientSelfReportMedicationsV2
      parameters:
      - name: patientId
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      - name: startDate
        in: query
        description: ''
        required: false
        schema:
          type: string
          format: date-time
      - name: endDate
        in: query
        description: ''
        required: false
        schema:
          type: string
          format: date-time
      - name: pageNumber
        in: query
        description: ''
        required: false
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PagedListResponse_SelfReportedMedicationResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/PagedListResponse_SelfReportedMedicationResponse'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/PagedListResponse_SelfReportedMedicationResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/PagedListResponse_SelfReportedMedicationResponse'
            text/xml:
              schema:
                $ref: '#/components/schemas/PagedListResponse_SelfReportedMedicationResponse'
  /api/patients/{patientId}/selfReportedMedications/coded/{selfReportedMedicationId}:
    put:
      tags:
      - SelfReportedMedications
      summary: Edit a coded self-reported medication
      description: Updates an existing self-reported medication in a patient record
      operationId: SelfReportedMedications_EditSelfReportedMedicationCodedV2
      parameters:
      - name: patientId
        in: path
        description: Patient ID
        required: true
        schema:
          type: integer
          format: int32
      - name: selfReportedMedicationId
        in: path
        description: Self-reported medication ID
        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/CodedSelfReportedMedicationRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/CodedSelfReportedMedicationRequest'
          application/problem+json:
            schema:
              $ref: '#/components/schemas/CodedSelfReportedMedicationRequest'
          application/xml:
            schema:
              $ref: '#/components/schemas/CodedSelfReportedMedicationRequest'
          text/xml:
            schema:
              $ref: '#/components/schemas/CodedSelfReportedMedicationRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CodedSelfReportedMedicationRequest'
        description: Self-reported medication data
        required: true
  /api/patients/{patientId}/selfReportedMedications/simple/{selfReportedMedicationId}:
    put:
      tags:
      - SelfReportedMedications
      summary: Edit a simple self-reported medication
      description: Updates an existing simple self-reported medication in a patient record
      operationId: SelfReportedMedications_EditSelfReportedMedicationSimpleV2
      parameters:
      - name: patientId
        in: path
        description: Patient ID
        required: true
        schema:
          type: integer
          format: int32
      - name: selfReportedMedicationId
        in: path
        description: Self-reported medication ID
        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/SimpleSelfReportedMedicationRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/SimpleSelfReportedMedicationRequest'
          application/problem+json:
            schema:
              $ref: '#/components/schemas/SimpleSelfReportedMedicationRequest'
          application/xml:
            schema:
              $ref: '#/components/schemas/SimpleSelfReportedMedicationRequest'
          text/xml:
            schema:
              $ref: '#/components/schemas/SimpleSelfReportedMedicationRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SimpleSelfReportedMedicationRequest'
        description: Self-reported medication data
        required: true
  /api/patients/{patientId}/selfReportedMedications/freetext/{selfReportedMedicationId}:
    put:
      tags:
      - SelfReportedMedications
      summary: Edit a free-text self-reported medication
      description: "Updates an existing self-reported medication specified by a free-text DisplayName in a patientâ\x80\x99s record"
      operationId: SelfReportedMedications_EditSelfReportedMedicationFreeTextV2
      parameters:
      - name: patientId
        in: path
        description: Patient ID
        required: true
        schema:
          type: integer
          format: int32
      - name: selfReportedMedicationId
        in: path
        description: Self-reported medication ID
        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/FreeTextSelfReportedMedicationRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/FreeTextSelfReportedMedicationRequest'
          application/problem+json:
            schema:
              $ref: '#/components/schemas/FreeTextSelfReportedMedicationRequest'
          application/xml:
            schema:
              $ref: '#/components/schemas/FreeTextSelfReportedMedicationRequest'
          text/xml:
            schema:
              $ref: '#/components/schemas/FreeTextSelfReportedMedicationRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/FreeTextSelfReportedMedicationRequest'
        description: Self-reported medication data
        required: true
  /api/patients/{patientId}/selfReportedMedications/coded:
    post:
      tags:
      - SelfReportedMedications
      summary: Add a coded self-reported medication
      description: "Adds a coded self-reported medication to a patientâ\x80\x99s record"
      operationId: SelfReportedMedications_AddSelfReportedMedicationCodedV2
      parameters:
      - name: patientId
        in: path
        description: Patient ID
        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/CodedSelfReportedMedicationRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/CodedSelfReportedMedicationRequest'
          application/problem+json:
            schema:
              $ref: '#/components/schemas/CodedSelfReportedMedicationRequest'
          application/xml:
            schema:
              $ref: '#/components/schemas/CodedSelfReportedMedicationRequest'
          text/xml:
            schema:
              $ref: '#/components/schemas/CodedSelfReportedMedicationRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CodedSelfReportedMedicationRequest'
        description: Self-reported medication data
        required: true
  /api/patients/{patientId}/selfReportedMedications/simple:
    post:
      tags:
      - SelfReportedMedications
      summary: Add a simple self-reported medication
      description: "Adds a simple self-reported medication to a patientâ\x80\x99s record"
      operationId: SelfReportedMedications_AddSelfReportedMedicationSimpleV2
      parameters:
      - name: patientId
        in: path
        description: Patient ID
        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/SimpleSelfReportedMedicationRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/SimpleSelfReportedMedicationRequest'
          application/problem+json:
            schema:
              $ref: '#/components/schemas/SimpleSelfReportedMedicationRequest'
          application/xml:
            schema:
              $ref: '#/components/schemas/SimpleSelfReportedMedicationRequest'
          text/xml:
            schema:
              $ref: '#/components/schemas/SimpleSelfReportedMedicationRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SimpleSelfReportedMedicationRequest'
        description: Self-reported medication data
        required: true
  /api/patients/{patientId}/selfReportedMedications/freetext:
    post:
      tags:
      - SelfReportedMedications
      summary: Add a free-text self-reported medication
      description: "Adds a free-text self-reported medication to a patientâ\x80\x99s record meaning the clinician can type any 300 character name.\nThis should only be used if a simple or coded version of the medication does not exist"
      operationId: SelfReportedMedications_AddSelfReportedMedicationFreeTextV2
      parameters:
      - name: patientId
        in: path
        description: Patient ID
        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/FreeTextSelfReportedMedicationRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/FreeTextSelfReportedMedicationRequest'
          application/problem+json:
            schema:
              $ref: '#/components/schemas/FreeTextSelfReportedMedicationRequest'
          application/xml:
            schema:
              $ref: '#/components/schemas/FreeTextSelfReportedMedicationRequest'
          text/xml:
            schema:
              $ref: '#/components/schemas/FreeTextSelfReportedMedicationRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/FreeTextSelfReportedMedicationRequest'
        description: Self-reported medication data
        required: true
  /api/patients/{patientId}/selfReportedMedications/{selfReportedMedicationId}/updateStatus:
    post:
      tags:
      - SelfReportedMedications
      summary: Update self-reported medication status
      description: "Updates the status of a self-reported medication in a patientâ\x80\x99s record"
      operationId: SelfReportedMedications_UpdateSelfReportedMedicationStatusV2
      parameters:
      - name: patientId
        in: path
        description: Patient ID
        required: true
        schema:
          type: integer
          format: int32
      - name: selfReportedMedicationId
        in: path
        description: Self-reported medication ID
        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/UpdateSelfReportedMedicationStatusRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/UpdateSelfReportedMedicationStatusRequest'
          application/problem+json:
            schema:
              $ref: '#/components/schemas/UpdateSelfReportedMedicationStatusRequest'
          application/xml:
            schema:
              $ref: '#/components/schemas/UpdateSelfReportedMedicationStatusRequest'
          text/xml:
            schema:
              $ref: '#/components/schemas/UpdateSelfReportedMedicationStatusRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateSelfReportedMedicationStatusRequest'
        description: Patient medication status data
        required: true
components:
  schemas:
    CodedSelfReportedMedicationRequest:
      type: object
      required:
      - DispensableDrugId
      - Status
      properties:
        DispensableDrugId:
          type: integer
          format: int32
        Refills:
          type: integer
          format: int32
        DaysSupply:
          type: integer
          format: int32
        DispenseUnitId:
          type: integer
          format: int32
        Quantity:
          type: number
          format: double
        Directions:
          type: string
          minLength: 0
          maxLength: 500
        WrittenDate:
          type: string
          format: date-time
        PrescriberUserId:
          type: integer
          format: int32
        PrescribingAgentUserId:
          type: integer
          format: int32
        Status:
          type: string
          enum:
          - Unknown
          - Active
          - Inactive
          - Discontinued
          - Deleted
          - Completed
          - CancelRequested
          - CancelPending
          - Cancelled
          - CancelDenied
          - Changed
          - FullFill
          - PartialFill
          - NoFill
        InactiveDate:
          type: string
          format: date-time
        Comment:
          type: string
          minLength: 0
          maxLength: 500
        Encounter:
          type: string
          minLength: 0
          maxLength: 50
    SelfReportedMedicationResponse:
      type: object
      properties:
        SelfReportedMedicationId:
          type: integer
          format: int32
        DateReported:
          type: string
          format: date-time
        DatePrescribed:
          type: string
          format: date-time
        DisplayName:
          type: string
        DispenseUnitType:
          type: string
        DosageText:
          type: string
        Directions:
          type: string
        DaysSupply:
          type: integer
          format: int32
        Dispense:
          type: string
        Quantity:
          type: string
        DispenseUnitTypeId:
          type: integer
          format: int32
        Refills:
          type: integer
          format: int32
        Comment:
          type: string
        Status:
          type: string
          enum:
          - Unknown
          - Active
          - Inactive
          - Discontinued
          - Deleted
          - Completed
          - CancelRequested
          - CancelPending
          - Cancelled
          - CancelDenied
          - Changed
          - FullFill
          - PartialFill
          - NoFill
        DiscontinuedDate:
          type: string
          format: date-time
        Schedule:
          type: integer
          format: int32
        Encounter:
          type: string
        DispensableDrugID:
          type: integer
          format: int32
        RoutedDoseformDrugID:
          type: integer
          format: int32
        RoutedDoseFormDrugID:
          type: integer
          format: int32
        OTC:
          type: boolean
        NDC:
          type: string
        DoseForm:
          type: string
        Route:
          type: string
        Strength:
          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.
    PagedListResponse_SelfReportedMedicationResponse:
      type: object
      properties:
        Items:
          type: array
          description: The list of elements to return.
          readOnly: true
          items:
            $ref: '#/components/schemas/SelfReportedMedicationResponse'
        PageResult:
          $ref: '#/components/schemas/PageResult'
        Result:
          description: The result of the operation.
          $ref: '#/components/schemas/Result'
    ItemResponse_SelfReportedMedicationResponse:
      type: object
      properties:
        Item:
          description: The response object.
          $ref: '#/components/schemas/SelfReportedMedicationResponse'
        Result:
          description: The result of the operation.
          $ref: '#/components/schemas/Result'
      description: Represents a generic response containing a single object.
    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.
    UpdateSelfReportedMedicationStatusRequest:
      type: object
      required:
      - Status
      properties:
        Status:
          type: string
          enum:
          - Unknown
          - Active
          - Inactive
          - Discontinued
          - Deleted
          - Completed
          - CancelRequested
          - CancelPending
          - Cancelled
          - CancelDenied
          - Changed
          - FullFill
          - PartialFill
          - NoFill
        InactiveDate:
          type: string
          format: date-time
        Comment:
          type: string
          minLength: 0
          maxLength: 500
        Encounter:
          type: string
          minLength: 0
          maxLength: 50
    FreeTextSelfReportedMedicationRequest:
      type: object
      required:
      - DisplayName
      - Status
      properties:
        DisplayName:
          type: string
          minLength: 0
          maxLength: 300
        Refills:
          type: integer
          format: int32
        DaysSupply:
          type: integer
          format: int32
        DispenseUnitId:
          type: integer
          format: int32
        Quantity:
          type: number
          format: double
        Directions:
          type: string
          minLength: 0
          maxLength: 500
        WrittenDate:
          type: string
          format: date-time
        PrescriberUserId:
          type: integer
          format: int32
        PrescribingAgentUserId:
          type: integer
          format: int32
        Status:
          type: string
          enum:
          - Unknown
          - Active
          - Inactive
          - Discontinued
          - Deleted
          - Completed
          - CancelRequested
          - CancelPending
          - Cancelled
          - CancelDenied
          - Changed
          - FullFill
          - PartialFill
          - NoFill
        InactiveDate:
          type: string
          format: date-time
        Comment:
          type: string
          minLength: 0
          maxLength: 500
        Encounter:
          type: string
          minLength: 0
          maxLength: 50
    Response:
      type: object
      properties:
        Result:
          description: The result of the operation.
          $ref: '#/components/schemas/Result'
      description: The result of the operation.
    SimpleSelfReportedMedicationRequest:
      type: object
      required:
      - RoutedDoseFormDrugId
      - Status
      properties:
        RoutedDoseFormDrugId:
          type: integer
          format: int32
        Refills:
          type: integer
          format: int32
        DaysSupply:
          type: integer
          format: int32
        DispenseUnitId:
          type: integer
          format: int32
        Quantity:
          type: number
          format: double
        Directions:
          type: string
          minLength: 0
          maxLength: 500
        WrittenDate:
          type: string
          format: date-time
        PrescriberUserId:
          type: integer
          format: int32
        PrescribingAgentUserId:
          type: integer
          format: int32
        Status:
          type: string
          enum:
          - Unknown
          - Active
          - Inactive
          - Discontinued
          - Deleted
          - Completed
          - CancelRequested
          - CancelPending
          - Cancelled
          - CancelDenied
          - Changed
          - FullFill
          - PartialFill
          - NoFill
        InactiveDate:
          type: string
          format: date-time
        Comment:
          type: string
          minLength: 0
          maxLength: 500
        Encounter:
          type: string
          minLength: 0
          maxLength: 50
    PageResult:
      type: object
      properties:
        CurrentPage:
          type: integer
          format: int32
        TotalPages:
          type: integer
          format: int32
        PageSize:
          type: integer
          format: int32
        TotalCount:
          type: integer
          format: int32
        HasPrevious:
          type: boolean
          readOnly: true
        HasNext:
          type: boolean
          readOnly: true