---
title: Medication History for Population Response FHIR Resource Details
slug: medhistory-populations/guide/medication-history-for-population-response-fhir-resource-details
docTags: 
createdAt: 2026-07-24T17:07:24.334Z
---

The response is a normal search set response bundle. The **\_lastUpdated** parameter should be used to create the window for which to return the notifications.

The focus of the response will be **Communication** resources. Adhering to FHIR best practices, the minimum necessary information will be returned in each response. Additional referenced resources can be requested using the **\_include** or **\_include\:iterate** parameters.

- **Panel** – Each Communication resource contains MedicationDispense references based on each medication returned from PBM/payers and pharmacies connected to Surescripts. Up to 600 medications may be returned within the lookback requested dates from the last 12 months.
- **Prescription Notifications** – Each Communication resource contains one or more notification type extension elements, which will show the reason for the notification (a single medication can have more than one).

:::hint{type="info"}
**Note:&#x20;**&#x54;his section is organized by the available FHIR Resources as shown on the right-hand navigation pane.
:::

### Patient

This FHIR resource provides demographics and other administrative information about an individual receiving care or other health-related services.

:::hint{type="info"}
**Note:&#x20;**&#x54;he patient extension defines a complex extension or compound extension.
:::

:::CodeblockTabs
Example

```bash
"resourceType": "Patient",
"id": "fec334f9-50ea-4643-a137-1ed4557ae805"
```
:::

| **Name**   | **Requirement** | **Comments**                                                                                                                                                                                                                                                                                                                                      | **Example**                                                                                                                                                                                                                                  |
| ---------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| identifier | mandatory       | The Patient Resource identifier contains the following values:<br />* Data coming from Patient File Load (refer to the associated implementation guide)
* System = Assigning Authority (detail record field 2)
* Value = Patient ID (detail record field 3)<br />**Note:** Best practice is to leverage the Medical Record Number when available. | "identifier": \[<br />\{<br />"system": "2.16.840.1.113883.3.2054.2.3.1",<br />"value": "1111990"<br />},<br />\{<br />"system": "http\://fhirdocs.surescripts.net/identifiers/participantid",<br />"value": "T00000000111321"<br />}<br />] |
| active     | mandatory       | Identifies whether resource is currently in use.                                                                                                                                                                                                                                                                                                  | "active": true,                                                                                                                                                                                                                              |
| meta       | mandatory       | Provides metadata about the resource.                                                                                                                                                                                                                                                                                                             | "meta": \{<br />"lastUpdated": "2025-02-16T17:23:48.432697+00:00",<br />"profile": \[<br />"http\://hl7.org/fhir/us/core/StructureDefinition/us-core-patient\|4.1.0"<br />],<br />"versionId": "MTczOTcyNjYyODQzMjY5NzAwMA"<br />},          |
| name       | mandatory       | FHIR® Human Name:<br />* Use = Official
* Family = family name, often called surname
* Given = given name, first and middle name
* Prefix = Parts that come before the name
* Suffix = Parts that come after the name                                                                                                                             | "name": \[<br />\{<br />"family": "ROBINSON",<br />"given": \[<br />"COZMO"<br />]<br />}<br />]                                                                                                                                             |
| phone      | optional        | The patient’s phone number gathered from Pharmacy Fill data.                                                                                                                                                                                                                                                                                      | "telecom": \[<br />\{<br />"system": "phone",<br />"value": "7185987658"<br />}<br />],                                                                                                                                                      |
| gender     | mandatory       | Patient gender value coded to match the Administrative Gender Codes.                                                                                                                                                                                                                                                                              | "gender": "female"                                                                                                                                                                                                                           |
| birthDate  | mandatory       | Patient Date of Birth.<br />Conforms to the FHIR® date/time standards.                                                                                                                                                                                                                                                                            | "birthDate": "1931-07-06"                                                                                                                                                                                                                    |
| address    | mandatory       | Patient Address including line, city, state, and postal code.                                                                                                                                                                                                                                                                                     | "address": \[<br />\{<br />"line": \[<br />"2377 66th AVENUE"<br />],<br />"city": "MANHATTAN",<br />"state": "NY",<br />"postalCode": "10000"<br />}<br />]                                                                                 |

### Organization

This FHIR resource provides information about the pharmacy.

:::CodeblockTabs
Example

```bash
"resourceType": "Organization"
"id": "09207555-197c-49q9-9525-726cb5aa111a"
```
:::

| **Name**   | **Requirement** | **Comments**                                                                                                                                                                                                                                                                                                                                                                                                       | **Example**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ---------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| identifier | mandatory       | The Organization resource identifiers include:<br />* Pharmacy NCPDPID
* Data coming from Patient File Load (refer to the associated implementation guide)
* The pharmacy’s 10-digit National Provider Identifier number
* Data Source Reference ID Value:
  - Pharmacy dispensed fill record =
    - P2 (Prescription Notification)
    - Pharmacy (Panel)
  - Claim Record = Payer
  - NewRx Record = Prescriber | "identifier": \[<br />\{<br />"system": "http\://fhirdocs.surescripts.net/identifiers/participantid",<br />"value": "T00000000111321"<br />},<br />\{<br />"system": "http\://fhirdocs.surescripts.net/identifiers/organization-type",<br />"value": "P2"<br />},<br />\{<br />"system": "http\://hl7.org/fhir/sid/us-npi",<br />"value": "1144235417"<br />},<br />\{<br />"system": "https\://terminology.hl7.org/6.0.2/CodeSystem-NCPDPProviderIdentificationNumber.html",<br />"value": "0501468"<br />}<br />],"identifier": \[<br />\{<br />"system": "http\://surescripts.net/fhir/identifiers/ncpdpid",<br />"value": "3390705" |
| active     | mandatory       | Identifies whether resource is currently in use.                                                                                                                                                                                                                                                                                                                                                                   | "active": true,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| meta       | mandatory       | Provides metadata about the resource.                                                                                                                                                                                                                                                                                                                                                                              | "meta": \{<br />"lastUpdated": "2025-02-16T17:23:48.432697+00:00",<br />"profile": \[<br />"http\://hl7.org/fhir/us/core/StructureDefinition/us-core-patient\|4.1.0"<br />],<br />"versionId": "MTczOTcyNjYyODQzMjY5NzAwMA"<br />},                                                                                                                                                                                                                                                                                                                                                                                                     |
| name       | optional        | Name of pharmacy                                                                                                                                                                                                                                                                                                                                                                                                   | "name": " Walgreens"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| telecom    | optional        | Pharmacy phone number<br />System = **phone** or **fax**                                                                                                                                                                                                                                                                                                                                                           | "telecom": \[<br />\{<br />"system": "phone",<br />"value": "5035558839"<br />}<br />]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| address    | optional        | Pharmacy address                                                                                                                                                                                                                                                                                                                                                                                                   | "address": \[<br />\{<br />"line": \[<br />"555 AVENUE X"<br />],<br />"city": "BUFFALO",<br />"state": "NY",<br />"postalCode": "666665117"<br />}<br />]<br />}                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

### Practitioner

This FHIR resource provides information about the individual directly or indirectly involved in healthcare provisioning.

:::CodeblockTabs
Example

```bash
"resourceType": "Practitioner"
"id": "8111cd95-1c5a-4a8f-be37-71c4178888f6"
```
:::

| **Name**   | **Requirement** | **Comments**                                                                                                                                                                                                              | **Example**                                                                                                                                                                                                                                                                                                                                |
| ---------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| identifier | optional        | The Practitioner resource identifiers include:<br />* Data coming from Patient File Load (refer to the associated implementation guide)
* 10-digit valid NPI
* DEA Number
* State License number                          | "identifier": \[<br />\{<br />"system": "http\://hl7.org/fhir/sid/us-npi",<br />"value": "1831620525"<br />}<br />\{<br />"system": "http\://hl7.org/fhir/sid/us-dea",<br />"value": "BP6645216"<br />}<br />\{<br />"system": "http\://fhirdocs.surescripts.net/identifiers/participantid",<br />"value": "T00000000111321"<br />}<br />] |
| meta       | mandatory       | Provides metadata about the resource.                                                                                                                                                                                     | "meta": \{<br />"lastUpdated": "2025-02-16T17:23:48.432697+00:00",<br />"profile": \[<br />"http\://hl7.org/fhir/us/core/StructureDefinition/us-core-patient\|4.1.0"<br />],<br />"versionId": "MTczOTcyNjYyODQzMjY5NzAwMA"<br />},                                                                                                        |
| name       | mandatory       | **FHIR® Human Name:**<br />* Use = Official
* Family = family name, often called surname
* Given = given name, first and middle name
* Prefix = Parts that come before the name
* Suffix = Parts that come after the name | "name": \[<br />\{<br />"family": "HASHEMI",<br />"given": \[<br />"ALEX"<br />]<br />}<br />]                                                                                                                                                                                                                                             |
| telecom    | optional        | A contact detail for the practitioner, for example, a telephone number or an email address.                                                                                                                               | "telecom": \[<br />\{<br />"system": "phone",<br />"value": "2122416639"<br />}<br />]                                                                                                                                                                                                                                                     |
| address    | optional        | Prescriber office address.                                                                                                                                                                                                | "address": \[<br />\{<br />"line": \[<br />"95 10TH AVE"<br />],<br />"city": "BROOKLYN",<br />"state": "NY",<br />"postalCode": "11215"<br />}<br />]<br />}                                                                                                                                                                              |

### MedicationRequest

This FHIR resource provides an order for both supply of the medication and the instructions for administration for the patient.

:::CodeblockTabs
Example

```bash
"resourceType": "MedicationRequest"
"id": "e6aa023c-419a-4174-9caa-9ad5e4c0a111"
```
:::

| **Name**            | **Requirement** | **Comments**                                                                                                                                                                                                                                                                                                                                                                                                                                                 | **Example**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| identifier          | mandatory       | The Medication Request identifier values included are:<br />* pharmacy-prescription-number – Prescription number assigned by the pharmacy.
* electronic-rx-order-number – Order Number on the NewRx. Present for eRx.
* electronic-rx-ref-number – Prescription Reference Number. Present for eRx.<br />Panel only identifiers include:<br />* BIN number of the insurance used
* Card holder number
* Plan code
* Payment code
* PCN for the insurance used | "identifier": \[<br />\{<br />"system": \{ http\://fhirdocs.surescripts.net/identifiers/prescription-number,<br />"value": "222243636"<br />},<br />\{<br />"system": \{http\://fhirdocs.surescripts.net/identifiers/electronic\_order\_number,<br />"value": "R1C113elec\_pres\_order\_no"<br />},<br />\{<br />"system": \{http\://fhirdocs.surescripts.net/identifiers/electronic\_rx\_ref\_number,<br />"value": "00000000000000000000005871842664474"<br />}<br />\{<br />"system": \{ http\://hl7.org/fhir/us/core/StructureDefinition/us-core-prescription-bin-number,<br />"value": " 020107\_BIN"<br />},<br />\{<br />"system": \{ http\://hl7.org/fhir/us/core/StructureDefinition/us-core-prescription-cardholder-number,<br />"value": "R1C113elec\_pres\_order\_no"<br />},<br />\{<br />"system": \{ http\://hl7.org/fhir/us/core/StructureDefinition/us-core-prescription-plan-code,<br />"value": "02\_Medicaid"<br />},<br />\{<br />"system": \{ http\://hl7.org/fhir/us/core/StructureDefinition/us-core-prescription-payment-code,<br />"value": "01\_PrivatePay"<br />},<br />\{<br />"system": \{ http\://hl7.org/fhir/us/core/StructureDefinition/us-core-prescription-pcn,<br />"value": " 01410000\_PCN"<br />}<br />\{<br />"system": "http\://fhirdocs.surescripts.net/identifiers/participantid",<br />"value": "T00000000111321"<br />}<br />], |
| meta                | mandatory       | Provides metadata about the resource.                                                                                                                                                                                                                                                                                                                                                                                                                        | "meta": \{<br />"lastUpdated": "2025-02-17T19🕚41.453737+00:00",<br />"profile": \[<br />"http\://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest\|4.1.0"<br />],<br />"versionId": "MTczOTgxOTUwMTQ1MzczNzAwMA"<br />},                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| status              | mandatory       | A code specifying current state of the order. Generally, this is an active or completed state.                                                                                                                                                                                                                                                                                                                                                               | "status": "completed",                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| intent              | mandatory       | Whether the request is a proposal, plan, or an original order.                                                                                                                                                                                                                                                                                                                                                                                               | "intent": "order"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| medicationReference | mandatory       | Link to a resource representing the medication ordered.                                                                                                                                                                                                                                                                                                                                                                                                      | "medicationReference": \{<br />"reference": "Medication/1e9de5e5-a7a4-4a09-a87d-77b181c00e25"<br />},                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| reasonReference     | optional        | Link to a resource representing the diagnosis why the medication was ordered.                                                                                                                                                                                                                                                                                                                                                                                | "reasonReference": \{<br />"reference": "Condition/46f92300-00b4-43ab-974b-62f28de92736"<br />},                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| subject             | mandatory       | Link to a resource representing the person to whom the medication will be given.                                                                                                                                                                                                                                                                                                                                                                             | "subject": \{<br />"reference": "Patient/4d8fd28e-5c99-436c-9d82-6aaad8d8842a"<br />}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| authoredOn          | mandatory       | Also known as date written, which is the date when the prescription was initially written or authored on.                                                                                                                                                                                                                                                                                                                                                    | "authoredOn": "2025-02-14T23:00:00+00:00"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| requester           | mandatory       | The individual that initiated the request and has responsibility for its activation.                                                                                                                                                                                                                                                                                                                                                                         | "requester": \{<br />"reference": "Practitioner/47ca5584-2259-4a5a-bb81-69f30c45cd0a"<br />}<br />}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| performer           | conditional     | The actor is the intended dispenser of the medication, the pharmacy details.<br />**Note:** Only populated for **FirstFillNotPickedUp** notifications                                                                                                                                                                                                                                                                                                        | "performer": \[<br />\{<br />"actor": \{<br />"reference": "Organization/701c9e15-14df-4fd0-a791-ebbfa7b39de4"<br />}<br />}<br />]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| dispenseRequest     | optional        | Number of repeats allowed represents the number of **refills originally authorized&#x20;**&#x77;hen available.<br />Value represents the **quantity** amount of medication to supply per dispense.                                                                                                                                                                                                                                                           | "dispenseRequest": \{<br />"numberOfRepeatsAllowed": 3,<br />"quantity": \{<br />"value": 90.0<br />}<br />}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

### MedicationDispense

This FHIR resource indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order.

:::CodeblockTabs
Example

```bash
"resourceType": "MedicationDispense",
"id": "90428847-c5ca-4182-b868-74e1ca99c04c"
```
:::

| **Name**                | **Requirement** | **Comments**                                                                                                                                                                                                                                                               | **Example**                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ----------------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| meta                    | mandatory       | Provides metadata about the resource.                                                                                                                                                                                                                                      | "meta": \{<br />"lastUpdated": "2025-02-16T19🕛38.790907+00:00",<br />"versionId": "MTczOTczMzE1ODc5MDkwNzAwMA"<br />},                                                                                                                                                                                                                                                                                                                           |
| extension               | optional        | Represents the number o**f refills remaining** after this dispense of the medication when available.                                                                                                                                                                       | "extension": \[<br />\{<br />"url": "http\://fhirdocs.surescripts.net/extension/refills-remaining",<br />"valueString": "2"<br />}<br />],                                                                                                                                                                                                                                                                                                        |
| identifier              | mandatory       | The MedicationDispense Resource identifier values include the Sender ID data coming from the Patient File Load.<br />Panel only identifiers include:<br />* Pharmacy Source NCPDP ID
* Group ID of the insurance used.                                                     | "identifier": \[<br />\{<br />"system": "http\://fhirdocs.surescripts.net/identifiers/participantid",<br />"value": "T00000000111321"<br />}<br />],<br />\{<br />"system": "https\://terminology.hl7.org/6.0.2/CodeSystem-NCPDPProviderIdentificationNumber.html",<br />"value": "RX8446"<br />},<br />\{<br />"system": "http\://terminology.hl7.org/CodeSystem/coverage-class",<br />"value": "COS"<br />}<br />],                             |
| status                  | mandatory       | A code specifying the state of the set of dispense events.                                                                                                                                                                                                                 | "status": "completed"                                                                                                                                                                                                                                                                                                                                                                                                                             |
| medicationReference     | mandatory       | Link to a resource representing the medication ordered.                                                                                                                                                                                                                    | "medicationReference": \{<br />"reference": "Medication/1e9de5e5-a7a4-4a09-a87d-77b181c00e25"<br />},                                                                                                                                                                                                                                                                                                                                             |
| subject                 | mandatory       | Link to a resource representing the person or the group to whom the medication will be given.                                                                                                                                                                              | "subject": \{<br />"reference": "Patient/4d8fd28e-5c99-436c-9d82-6aaad8d8842a"<br />}                                                                                                                                                                                                                                                                                                                                                             |
| performer               | conditional     | The actor is the dispenser of the medication, the pharmacy details.<br />**Note:** Not populated for FirstFillNotPickedUp notifications                                                                                                                                    | "performer": \[<br />\{<br />"actor": \{<br />"reference": "Organization/701c9e15-14df-4fd0-a791-ebbfa7b39de4"<br />}<br />}<br />]                                                                                                                                                                                                                                                                                                               |
| authorizingPrescription | mandatory       | Indicates the medication order that is being dispensed against.<br />**Note:** When used in FHIR parameters authorizingPrescription must be included as MedicationDispense.prescription.                                                                                   | "authorizingPrescription": \[<br />\{<br />"reference": "MedicationRequest/35983470-963e-42a5-a9ce-a5d0216890f1"<br />}<br />]                                                                                                                                                                                                                                                                                                                    |
| type                    | mandatory       | Indicates the type of dispensing event that is performed:<br />* FF First Fill
* FFP = First – Part Fill
* RF Refill
* RFP = Refill – Part Fill<br />For example, display Refill 04 indicates this dispense event is the 4th refill.                                       | "type": \{<br />"coding": \[<br />\{<br />"system": "http\://hl7.org/fhir/ValueSet/v3-ActPharmacySupplyType",<br />"code": "FF",<br />“display: “First Fill”<br />}<br />],<br />E.g. of Refill display Refill 04 indicating Refills Originally Authorized is 04<br />"type": \{<br />"coding": \[<br />\{<br />"system": "http\://hl7.org/fhir/ValueSet/v3-ActPharmacySupplyType",<br />"code": "RF",<br />“display”: “Refill 04”<br />}<br />], |
| quantity                | mandatory       | The amount of medication that has been dispensed.<br />* **Value** = Represents number dispensed to the patient
* **Unit** = Represents the Quantity Unit of Measure<br />**Note**: See Codified Field Usage for Federal Medication Terminologies (FMT) Codes for details. | "quantity": \{<br />"value": 90.0<br />"unit": "C48155"<br />}                                                                                                                                                                                                                                                                                                                                                                                    |
| daysSupply              | mandatory       | The amount of medication expressed as a timing amount.                                                                                                                                                                                                                     | "daysSupply": \{<br />"value": 30.0<br />}                                                                                                                                                                                                                                                                                                                                                                                                        |
| whenPrepared            | mandatory       | Also known as DateFilled, which is the date when the dispensed product was packaged and reviewed.                                                                                                                                                                          | "whenPrepared": "2020-04-18"                                                                                                                                                                                                                                                                                                                                                                                                                      |
| whenHandedOver<br />    | optional        | Also known as DatePickedUp, which is the date the dispensed product was provided to the patient or their representative.                                                                                                                                                   | "whenHandedOver": "2020-04-18"                                                                                                                                                                                                                                                                                                                                                                                                                    |
| dosageInstruction       | optional        | Also known as SigText, which indicates how the medication is to be used by the patient.                                                                                                                                                                                    | "dosageInstruction": \[<br />\{<br />"text": "TAKE ONE TABLET BY MOUTH THREE TIMES A DAY"<br />}<br />]                                                                                                                                                                                                                                                                                                                                           |

### Medication

This FHIR resource provides the medication label, NDC and DEA schedule details.

:::CodeblockTabs
Example

```bash
"resourceType": "Medication",
"id": "b9969cb8-8740-4657-85d1-afb41e7f7509"
```
:::

| **Name**   | **Requirement** | **Comments**                                                                                                                                                                                                                                                                                                                     | **Example**                                                                                                                                                                                                                                                                                                                   |
| ---------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| identifier | mandatory       | The Medication Resource identifier contains data coming from Patient File Load.                                                                                                                                                                                                                                                  | "identifier": \[<br />\{<br />"system": "http\://fhirdocs.surescripts.net/identifiers/participantid",<br />"value": "T00000000111321"<br />}<br />],                                                                                                                                                                          |
| meta       | mandatory       | Provides metadata about the resource                                                                                                                                                                                                                                                                                             | "meta": \{<br />"lastUpdated": "2025-02-16T19🕛38.790907+00:00",<br />"versionId": "MTczOTczMzE1ODc5MDkwNzAwMA"<br />},                                                                                                                                                                                                       |
| code       | mandatory       | **Code** is the 11-digit NDC or DEA Drug coding for schedules 1-5.<br />**Display** is the drug description field, and should include the standardized drug name including strength and form.<br />**Note:** When all 9s are displayed for the NDC, and it is for fill data, this indicates that the prescription is a compound. | "medicationCodeableConcept": \{<br />"coding": \[<br />\{<br />"system": " http\://hl7.org/fhir/sid/ndc ",<br />"code": "23155010210",<br />"display": "METFORMIN 500MG TAB"<br />},<br />\{<br />"code": "C38046",<br />"display": "Unspecified",<br />"system": "http\://www\.dea.gov/drug-scheduling"<br />}<br />]<br />} |

### Condition

This FHIR resource captures the diagnosis code as to why the medication was ordered for the patient

:::CodeblockTabs
Example

```bash
"resourceType": "Condition",
"id": "46f92300-00b4-43ab-974b-62f28de92736"
```
:::

| **Name**   | **Requirement** | **Comments**                                                                                                                                                                                                                                  | **Example**                                                                                                                                                                       |
| ---------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| identifier | mandatory       | The Condition Resource identifier contains data coming from Patient File Load.                                                                                                                                                                | "identifier": \[<br />\{<br />"system": "http\://fhirdocs.surescripts.net/identifiers/participantid",<br />"value": "T00000000111321"<br />}<br />],                              |
| meta       | mandatory       | Provides metadata about the resource                                                                                                                                                                                                          | "meta": \{<br />"lastUpdated": "2025-02-16T19🕛38.790907+00:00",<br />"versionId": "MTczOTczMzE1ODc5MDkwNzAwMA"<br />},                                                           |
| code       | optional        | **Code** iis CodeableConcept that contains diagnosis information. It can include ICD-9, ICD-10 or CDT codes.<br />**Display** is the diagnosis description field, and should include the standardized diagnosis name for describing the code. | "code": \{<br />"coding": \[<br />\{<br />"system": " http\://hl7.org/fhir/+sid/icd-10",<br />"code": "E10.1:",<br />"display": "Diabetes mellitus without complications"<br />}, |
| subject    | mandatory       | Link to a resource representing the person or the group to whom the medication will be given.                                                                                                                                                 | "subject": \{<br />"reference": "Patient/4d8fd28e-5c99-436c-9d82-6aaad8d8842a"<br />}                                                                                             |
| category   | optional        | CodeableConcept that indicates if the diagnosis code represents the primary or secondary.                                                                                                                                                     | “category”: \{<br />“system”: ”http\://fhirdocs.surescripts.net/coding/diagnosis-category”,<br />“code”: “Primary”<br />}                                                         |

### Communication

This resource provides focus for Medication History for Populations FHIR responses. It identifies the response for Panel and Prescription Notifications.

The Communication resources for Panel are based-on and include references to all MedicationDispensed for a specific patient. If there were no medications for a patient during the timeframe of the requested panel, you can get a communication with 0 MedicationDispensed resources.

The Communication resource for Prescription Notifications identifies which notifications are applicable and has a one-to-one relationship with a single MedicationDispensed or MedicationRequest (FirstFillNotPickedUp notifications only) reference.

:::CodeblockTabs
Example

```bash
"resourceType": "Communication",
"id": "ec29328d-67fc-43f0-8a79-75849e94d76b"
```
:::

| **Name**    | **Requirement** | **Comments**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | **Example**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ----------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| extension   | conditional     | **Prescription Notifications:**<br />The notification-generated-time uses a Date element for the medication dispense.<br />The patient-notification-types valueString is the notification that was alerted on for this medication dispense<br />Alert types values:<br />* NewRx
* Refill
* NewPrescriber
* ControlledSubstance
* NoRefillsRemaining
* RefillNotPickedUp
* CashPayRx
* MonitoredMedRx
* FirstFillNotPickedUp<br />The **valueCoding alert id** will identify that specific Prescription Notification alert for support purposes.<br />**Panel:**<br />* start-date valueString identifies the Request Start Date or start of the lookback period used for the RxHistoryRequest from the Patient File Load data.
* end-date valueString identifies the Request End Date or end of the lookback period used for the RxHistoryRequest from the Patient File Load data.
* primary-sender-message-id identifies the Sender Message ID for the RxHistoryRequest. | **Prescription Notification**<br />"extension": \[<br />\{<br />"url": "http\://fhirdocs.surescripts.net/coding/patient-notification-types",<br />"valueCoding": \{<br />"id": "1b1d5843-0cdc-4788-b309-9822c7da665a",<br />"code": "RefillNotPickedUp"<br />}<br />},<br />\{<br />"url": "http\://fhirdocs.surescripts.net/coding/sender-id",<br />"valueCode": " T00000000111321"<br />},<br />\{<br />"url": "http\://fhirdocs.surescripts.net/coding/notification-generated-time",<br />"valueDateTime": "2025-12-18T05:58:18+00:00"<br />}<br />],<br />**Panel:**<br />"extension": \[<br />\{<br />"url": "http\://fhirdocs.surescripts.net/extension/start-date",<br />"valueString": "2024-02-17"<br />},<br />\{<br />"system": "http\://fhirdocs.surescripts.net/identifiers/primary-sender-message-id",<br />"value": "48320906:13759282:1774967833762"<br />}<br />], |
| identifier  | mandatory       | The Communication resource identifiers include:<br />* Data coming from Patient File Load
  - Sender’s Participant ID
  - Patient Population ID
* Panel Only identifers
  - Primary Sender Message ID (RxHistoryRequest)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | "identifier": \[<br />\{<br />"system": "http\://fhirdocs.surescripts.net/identifiers/participantid",<br />"value": "T00000000111321"<br />},<br />\{<br />"system": "http\://fhirdocs.surescripts.net/identifiers/alert-population-id",<br />"value": "PATIENTPOPID\~"<br />}<br />],<br />\{<br />"system": "http\://fhirdocs.surescripts.net/identifiers/primary-sender-message-id",<br />"value": "45206310:10634006:1763586868423"<br />},                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| status      | mandatory       | A code specifying current state of the order. This will always be a **completed** state.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | "status": "completed",                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| meta        | mandatory       | Provides metadata about the resource.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | "meta": \{<br />"lastUpdated": "2025-02-18T15:39:45.079419+00:00",<br />"profile": \[<br />"http\://hl7.org/fhir/R4/communication"<br />],<br />"versionId": "MTczOTg5MzE4NTA3OTQxOTAwMA"<br />},                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| received    | mandatory       | Populates date/time the FHIR response was retieved by the customer system.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | "received": "2025-02-18T15:39:44+00:00",                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| category    | mandatory       | The type of message conveyed.<br />**Values:**<br />* Notification = Prescription Notifications
* Panel = Panel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | **Notification:**<br />"category": \[<br />\{<br />"coding": \[<br />\{<br />"system": "http\://hl7.org/fhir/communication-category",<br />"code": "notification",<br />"display": "Notification"<br />}<br />]<br />}<br />],<br />**Panel:**<br />"category": \[<br />\{<br />"coding": \[<br />\{<br />"code": "panel",<br />"display": "Panel",<br />"system": "http\://hl7.org/fhir/communication-category"<br />}<br />]<br />}<br />],                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| subject     | mandatory       | The patient that was the focus of this communication.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | "subject": \{<br />"reference": "Patient/4a1ff77b-f500-4b6c-9613-6de9118dd689"<br />}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| based on    | conditional     | Identifies the **MedicationDispense** or **MedicationRequest** references that was the focus of this communication.<br />* Panel will include a reference for each MedicationDispense returned from the RxHistoryRequest lookback period.
* Prescription Notification will include a single reference to MedicationDispensed that triggered the notification.
* Prescription Notification FirstFillNotPickedUp will include a single reference to the MedicationRequest that trigered the notification<br />**Note:** If the patient is found but no medication is identified during the look back period, based-on will be omitted.                                                                                                                                                                                                                                                                                                                                       | "basedOn": \[<br />\{<br />"reference": "MedicationDispense/e9afab37-7a65-4a3b-883f-679eb2df2fa7"<br />}<br />],                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| reason code | conditional     | Captures the reason for the current state of the communication.<br />**Value:** Patient Not Found<br />**Note:** Use of this element and its associated reason code is restricted to **Medication History Panel** workflows.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | "reasonCode": \[<br />\{<br />"coding": \[<br />\{<br />"code": "DJ",<br />"display": "Patient Not Found."<br />}<br />]<br />}<br />],                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| search      | mandatory       | Search returns a response that is an exact match for what was specified in the query (using the communication or medication dispensed resource for the notification).<br />**Value:** Match                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | "search": \{ "mode": "match" }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |

### CapabilityStatement

This FHIR resource provides the capabilities supported by the FHIR server.

:::hint{type="info"}
**Note:&#x20;**&#x54;he Capability Statement resource is retrieved from a separate endpoint and is not included as part of any panels or prescription notification FHIR responses.
:::

:::CodeblockTabs
Example

```bash
"resourceType": "CapabilityStatement",
"id": "ec29328d-67fc-43f0-8a79-75849e94d76b"
```
:::

| **Name**     | **Requirement** | **Comments**                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | **Example**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------ | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|  version     | optional        |  Business version of the capability statement                                                                                                                                                                                                                                                                                                                                                                                                                                    | "version": "20250220",                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| status       | mandatory       | The status of this capability statement. Enables tracking the life-cycle of the content.<br />Values:<br />• active<br />• draft                                                                                                                                                                                                                                                                                                                                                 | "status": "draft",                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| date         | mandatory       | Identifies the date the CapabilityStatement was published                                                                                                                                                                                                                                                                                                                                                                                                                        | "date": "2025-02-20",                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| publisher    | optional        | Name of the organization who published the CapabilityStatement.<br />**Value:** Surescripts                                                                                                                                                                                                                                                                                                                                                                                      | "publisher": "Surescripts",                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| description  | optional        | Provides human readable description of the capability statement                                                                                                                                                                                                                                                                                                                                                                                                                  | "description": "FHIR capability statement",                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| kind         | mandatory       | Identifies the intended use of the CapabilityStatement.<br />**Value:**<br />instance = The CapabilityStatement instance represents the present capabilities of a specific system instance. This is the kind returned by /metadata for a FHIR server end-point.                                                                                                                                                                                                                  | "kind": "instance",                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| fhirVersion  | mandatory       | The version of the FHIR specification that this CapabilityStatement describes                                                                                                                                                                                                                                                                                                                                                                                                    | "fhirVersion": "4.0.1",                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| format       | mandatory       | Identifies the supported formats supported<br />**Value**: json                                                                                                                                                                                                                                                                                                                                                                                                                  | "format": \[<br />"json"<br />],                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| patchFormat  | optional        | Identifies supported patch formats supported<br />**Value:** application/json-patch+json                                                                                                                                                                                                                                                                                                                                                                                         | "patchFormat": \[<br />"application/json-patch+json"<br />],                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| rest         | optional        | Defines the restful capabilites of the FHIR endpoint.<br />                                                                                                                                                                                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| security     | mandatory       | Identifies the connectivity security supported<br />**Value:** mTLS                                                                                                                                                                                                                                                                                                                                                                                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| resource     | optional        | Resources are available on the REST interface and describes what capabilities are support for each FHIR resource:<br />* **type**: Resource type that is supported.
* **interaction**: What operations are supported by the resource.&#xA;Values:
  - read
  - search-type
* **searchInclude**: \_include values supported by the server.
* **searchRevInclude**: \_revinclude values supported by the server.
* **searchParam**: Search parameters supported by implementation. | "resource": \[<br />"type": "MedicationDispense",<br />"interaction": \[<br />\{<br />"code": "read"<br />},<br />\{<br />"code": "search-type"<br />}<br />],<br />"readHistory": false,<br />"updateCreate": false,<br />"conditionalCreate": false,<br />"conditionalUpdate": false,<br />"searchInclude": \[<br />"MedicationDispense.medication",<br />"MedicationDispense.performer",<br />"MedicationDispense.subject"<br />],<br />"searchRevInclude": \[<br />"Communication.based-on"<br />],<br />"searchParam": \[<br />\{<br />"extension": \[<br />\{<br />"url": "https\://g.co/fhir/StructureDefinition/CapabilityStatementSearchParameterModifiers",<br />"valueCoding": \{<br />"system": "http\://hl7.org/fhir/ValueSet/search-modifier-code",<br />"code": "missing"<br />}<br />},<br />\{<br />"url": "https\://g.co/fhir/StructureDefinition/CapabilityStatementSearchParameterModifiers",<br />"valueCoding": \{<br />"system": "http\://hl7.org/fhir/ValueSet/search-modifier-code",<br />"code": "type"<br />}<br />}<br />],<br />"name": "medication",<br />"definition": "http\://hl7.org/fhir/SearchParameter/medications-medication",<br />"type": "reference"<br />}, |
| interactions | optional        | Operations supported by the system.<br />Value: search-system                                                                                                                                                                                                                                                                                                                                                                                                                    | "interaction": \[<br />\{<br />"code": "search-system"<br />}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

### OperationOutcome

This FHIR resource provides a collection of error, warning, or information messages that result from a system action.

:::CodeblockTabs
Example

```bash
"resourceType": "OperationOutcome",
"id": "fg29328d-67fc-22f0-8a79-58412e94d778"
```
:::

| **Name**    | **Requirement** | **Comments**                                                                                                                                     | **Example**                                                                                                                                                                      |
| ----------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| issue       | mandatory       | Defines a single issue associated with the action performed.                                                                                     | "issue": \[<br />\{<br />"severity": "error",<br />"code": "exception",<br />"diagnostics": "\_lastUpdated date of 2020-16-19T23:59:59Z is formatted incorrectly."<br />}<br />] |
| severity    | mandatory       | Indicates whether the issue impacts the overall success of the operations.<br />**Fixed**: Error = Operation was unsuccessful                    |                                                                                                                                                                                  |
| code        | mandatory       | Describes the type of issue in a human and computer-friendly way to allow.<br />**Fixed**: Exception = An unexpected internal error has occurred |                                                                                                                                                                                  |
| diagnostics | optional        | Details about which query parameter was missing or badly formatted.                                                                              |                                                                                                                                                                                  |

