---
updatedAt: 2026-08-07T16:25:02.000Z
agentTools:
  projectIndex: https://docs.elationhealth.com/llms.txt
---

# List Medication History Download Fills

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "MedicationHistoryDownloadFill": {
        "properties": {
          "create_date": {
            "format": "date-time",
            "readOnly": true,
            "type": [
              "string",
              "null"
            ]
          },
          "days_supply": {
            "type": "string"
          },
          "diagnoses": {
            "items": {
              "format": "int64",
              "type": "integer"
            },
            "type": "array"
          },
          "directions": {
            "type": "string"
          },
          "history_download": {
            "format": "int64",
            "type": "integer"
          },
          "id": {
            "readOnly": true,
            "type": "integer"
          },
          "is_active": {
            "type": "boolean"
          },
          "last_fill_date": {
            "format": "date-time",
            "type": "string"
          },
          "medication": {
            "format": "int64",
            "type": "integer"
          },
          "medication_description": {
            "type": "string"
          },
          "medication_order": {
            "format": "int64",
            "type": "integer"
          },
          "note": {
            "type": "string"
          },
          "patient": {
            "format": "int64",
            "type": "integer"
          },
          "pharmacy_ncpdpid": {
            "type": "string"
          },
          "practice": {
            "format": "int64",
            "type": "integer"
          },
          "prescriber": {
            "format": "int64",
            "type": "integer"
          },
          "prescribing_physician": {
            "format": "int64",
            "type": "integer"
          },
          "prior_auth": {
            "type": "string"
          },
          "prior_auth_qualifier": {
            "$ref": "#/components/schemas/PriorAuthQualifierEnum"
          },
          "quantity": {
            "type": "string"
          },
          "quantity_note": {
            "type": "string"
          },
          "quantity_unit": {
            "type": "string"
          },
          "refills": {
            "items": {
              "format": "int64",
              "type": "integer"
            },
            "type": "array"
          },
          "requesting_physician": {
            "format": "int64",
            "type": "integer"
          },
          "requesting_physician_action": {
            "$ref": "#/components/schemas/RequestingPhysicianActionEnum"
          },
          "substitutions": {
            "type": "string"
          },
          "written_date": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "days_supply",
          "diagnoses",
          "directions",
          "history_download",
          "is_active",
          "last_fill_date",
          "medication",
          "medication_description",
          "medication_order",
          "note",
          "patient",
          "pharmacy_ncpdpid",
          "practice",
          "prescriber",
          "prescribing_physician",
          "prior_auth",
          "prior_auth_qualifier",
          "quantity",
          "quantity_note",
          "quantity_unit",
          "refills",
          "requesting_physician",
          "requesting_physician_action",
          "substitutions",
          "written_date"
        ],
        "type": "object"
      },
      "PaginatedMedicationHistoryDownloadFillList": {
        "properties": {
          "count": {
            "example": 123,
            "type": "integer"
          },
          "next": {
            "example": "http://api.example.org/accounts/?offset=400&limit=100",
            "format": "uri",
            "nullable": true,
            "type": "string"
          },
          "previous": {
            "example": "http://api.example.org/accounts/?offset=200&limit=100",
            "format": "uri",
            "nullable": true,
            "type": "string"
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/MedicationHistoryDownloadFill"
            },
            "type": "array"
          }
        },
        "required": [
          "results"
        ],
        "type": "object"
      },
      "PriorAuthQualifierEnum": {
        "description": "* `94` - Pharmacy or Prescriber File ID\n* `0B` - State License Number\n* `1C` - Medicare Number\n* `1D` - Medicaid Number\n* `1E` - Dentist License Number\n* `1G` - UPIN\n* `1J` - Facility ID Number\n* `1M` - PPO Number\n* `2U` - Payer Identification Number\n* `ADI` - Processor Identification Number\n* `BO` - BIN Location Number\n* `C1` - Commercial\n* `EA` - Medical Record Identification Number\n* `EJ` - Patient Account Number\n* `D3` - NCPDP Provider ID Number\n* `DH` - DEA Number\n* `G1` - Prior Authorization\n* `GI` - Secondary Provider Number\n* `HI` - HIN\n* `HPI` - National Provider ID\n* `IP` - Individual Policy Number\n* `NC` - Secondary Coverage Company Number\n* `NF` - National Association of Insurance Commissioner Code\n* `PD` - Promotion Number\n* `SY` - Social Security Number\n* `WI` - Waiver\n* `ZZ` - Mutually Defined",
        "enum": [
          "94",
          "0B",
          "1C",
          "1D",
          "1E",
          "1G",
          "1J",
          "1M",
          "2U",
          "ADI",
          "BO",
          "C1",
          "EA",
          "EJ",
          "D3",
          "DH",
          "G1",
          "GI",
          "HI",
          "HPI",
          "IP",
          "NC",
          "NF",
          "PD",
          "SY",
          "WI",
          "ZZ"
        ],
        "type": "string"
      },
      "RequestingPhysicianActionEnum": {
        "description": "* `ReqAct` - Requiring Action\n* `Addressed` - Addressed",
        "enum": [
          "ReqAct",
          "Addressed"
        ],
        "type": "string"
      }
    },
    "securitySchemes": {
      "oauth2": {
        "flows": {
          "clientCredentials": {
            "scopes": {
              "act_as_user": "Impersonate a provider via X-On-Behalf-Of (combinable with apiv2 or system scopes)",
              "apiv2": "Full access to the API",
              "system/{resource_name}.read": "Read access to a specific resource",
              "system/{resource_name}.write": "Write access to a specific resource"
            },
            "tokenUrl": "/api/2.0/oauth2/token/"
          }
        },
        "type": "oauth2"
      }
    }
  },
  "info": {
    "contact": {
      "name": "Elation Health",
      "url": "https://www.elationhealth.com/"
    },
    "description": "Elation Health API v2.0",
    "title": "Patient Document API",
    "version": "2.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/2.0/medication_history_download_fills/": {
      "get": {
        "operationId": "medication_history_download_fills_list",
        "parameters": [
          {
            "description": "Download summary.",
            "explode": false,
            "in": "query",
            "name": "history_download",
            "schema": {
              "items": {
                "format": "int64",
                "type": "integer"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "last_fill_date__gte",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "last_fill_date__isnull",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "last_fill_date__lte",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "Number of results to return per page.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "The initial index from which to return the results.",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Prescribed patient.",
            "explode": false,
            "in": "query",
            "name": "patient",
            "schema": {
              "items": {
                "format": "int64",
                "type": "integer"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "The doctor's practice.",
            "explode": false,
            "in": "query",
            "name": "practice",
            "schema": {
              "items": {
                "format": "int64",
                "type": "integer"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "written_date__gte",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "written_date__isnull",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "written_date__lte",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedMedicationHistoryDownloadFillList"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ],
        "summary": "List Medication History Download Fills",
        "tags": [
          "Fills"
        ],
        "x-el8-docs-category": "Patient Document API",
        "x-el8-docs-versions": [
          "2.1",
          "2.0"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "Sandbox Server",
      "url": "https://sandbox.elationemr.com"
    },
    {
      "description": "Production Server",
      "url": "https://api.app.elationemr.com"
    }
  ],
  "x-readme": {
    "proxy-enabled": true
  }
}
```