Flexpa
Developer PortalContact us

Getting started

  • Introduction
  • Quickstart
  • Use cases
  • Pricing
  • Patient access
  • Test mode
  • Going live
  • What we don't do
  • Changelog
  • FAQ

Guides

  • Reading resources
  • Searching resources
  • Code systems

Network

  • Payers
  • Endpoints

Tools

  • Flexpa Link
  • Flexpa API
  • Data analytics
  • Connections
  • MyFlexpa

Patient Resources

  • Connection guide

FHIR Resources

  • Overview
  • AllergyIntolerance
  • CapabilityStatement
  • CarePlan
  • CareTeam
  • Condition
  • Coverage
  • Device
  • DiagnosticReport
  • DocumentReference
  • Encounter
  • ExplanationOfBenefit
  • Goal
  • Immunization
  • Location
  • Medication
  • MedicationDispense
  • MedicationRequest
  • Observation
  • Organization
  • Patient
  • Practitioner
  • PractitionerRole
  • Procedure
  • Provenance

About

  • Handbook
  • Brand kit
  • Join us
  • Privacy Policy
  • Privacy Notice
  • Security
  • Terms of Service

MedicationDispense

GET https://api.flexpa.com/fhir/MedicationDispense

  • MedicationDispense is a base FHIR Resource ( JSON example

MedicationDispense is a clinical FHIR resource created when a pharmacy system responds to a medication order (i.e., MedicationRequest) and indicates that a medication has been dispensed for a patient

A MedicationDispense typically includes a description of the medication, details of the dispense, and instructions for administering to the patient

While a few payers may make this information available, almost all do not have this data unless it is submitted to the payer by providers for quality measures or other provider/payer data exchange programs, as it was not included in the initial scope of the US Core Implementation Guid based on the first version of USCDI. MedicationRequest is a more common FHIR resource that represents the initial request for a medication for a patient.

Search parameters

The full list of search parameters can be found here. Some of the most important are:

Parameters

patient
string

The ID of the patient for whom the medication was dispensed. We recommend using this search parameter along with the $PATIENT_ID wildcard

Sample request

While some servers may support a resource-level search without any parameters, not all do. We recommend using the format below with the patient ID via the $PATIENT_ID wildcard as a search parameter.

This is a sample request using curl

ACCESS_TOKEN=flexpa-link-access-token

curl "https://api.flexpa.com/fhir/MedicationDispense?patient=$PATIENT_ID" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

Sample response

This is a sample response from UnitedHealthcare using Flexpa API in test mode

Status TwitterGitHub

© 2023 Flexpa. All rights reserved.

On this page
  • Search parameters
  • Sample request
  • Sample response