MedicationDispense

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.

https://hl7.org/fhir/us/core/STU6.1/StructureDefinition-us-core-medicationdispense.html

get
/MedicationDispense/{id}

MedicationDispense read

Read a MedicationDispense resource.

Path Parameters

id required
string
The unique identifier for the MedicationDispense

Response Payload Attributes

resourceType
string

The FHIR Resource name.

id
string

The identifier of the MedicationDispense.

status
string

A code specifying the state of the dispense event.

Value Options Supported:
  • completed
  • entered-in-error
  • stopped
medicationCodeableConcept
json

Identifies the medication that was dispensed. This is simply an attribute carrying a code that identifies the medication from a known list of medications.

Click to view child attributes
coding
array[json]

Code defined by a terminology system.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://www.nlm.nih.gov/research/umls/rxnorm
  • http://www.fdbhealth.com/
code
string

The code of the medication.

display
string

The display name of the coding.

subject
json

Who the dispense is for.

Click to view child attributes
reference
string

The reference string of the subject in the format of "Patient/a39cafb9d1b445be95a2e2548e12a787".

type
string

Type the reference refers to (e.g. “Patient”).

performer
array[json]

Indicates who performed the dispense.

Click to view child attributes
actor
json

The individual who performed the dispense.

Click to view child attributes
reference
string

The reference string of the performer in the format of "Practitioner/ed1e304acdb847148338c6b0596d93fd".

type
string

Type the reference refers to (e.g. “Practitioner”).

authorizingPrescription
array[json]

Indicates the medication order that is being dispensed against.

Click to view child attributes
reference
string

The reference string of the MedicationRequest in the format of "MedicationRequest/3423a69c-618d-4cbe-861a-54c60f48744e".

type
string

Type the reference refers to (e.g. “MedicationRequest”).

type
json

Indicates the type of dispensing event that is being performed.

Click to view child attributes
text
string

Plain text representation of the concept

quantity
json

The amount of medication that has been dispensed.

Click to view child attributes
value
decimal

Numerical value of the quantity.

whenHandedOver
datetime

When the medication was handed over to the patient.

dosageInstruction
array[json]

Indicates how the medication is to be used by the patient.

Click to view child attributes
text
string

Free text dosage instructions. In Canvas this text comes from the SIG or DIRECTIONS field on the associated command.

timing
json

When medication should be administered.

Click to view child attributes
event
array[string]

Identifies the specific times when the medication should be administered.

doseAndRate
array[json]

Amount of medication administered.

Click to view child attributes
doseQuantity
json

Amount of medication per dose.

Click to view child attributes
value
decimal

Numerical value

unit
string

Unit representation.

Responses

200 OK
Request was successful.

Errors

401 Unauthorized
The request requires user authentication.
403 Forbidden
The request requires user authorization.
404 Not Found
The requested resource was not found.

Query Parameters

_id
string

The identifier of the MedicationDispense.

patient
string

The patient reference associated with the MedicationDispense in the format Patient/a39cafb9d1b445be95a2e2548e12a787.

Response Payload Attributes

resourceType
string

The FHIR Resource name.

type
string

This element and value designate that the bundle is a search response. Search result bundles will always have the Bundle.type of searchset .

total
integer

The number of resources that match the search parameter.

link
array[json]

Attributes relevant to pagination, see our Pagination page for more detail.

Click to view child attributes
relation
enum [self|first|next|last]

The relation of the page search

url

The search url for the specific relation

entry
array[json]

The results bundle that lists out each object returned in the search

Click to view child attributes
resource
json

The attributes specific to the resource type, see the Attributes section below

Attributes

resourceType
string

The FHIR Resource name.

id
string

The identifier of the MedicationDispense.

status
string

A code specifying the state of the dispense event.

Value Options Supported:
  • completed
  • entered-in-error
  • stopped
medicationCodeableConcept
json

Identifies the medication that was dispensed. This is simply an attribute carrying a code that identifies the medication from a known list of medications.

Click to view child attributes
coding
array[json]

Code defined by a terminology system.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://www.nlm.nih.gov/research/umls/rxnorm
  • http://www.fdbhealth.com/
code
string

The code of the medication.

display
string

The display name of the coding.

subject
json

Who the dispense is for.

Click to view child attributes
reference
string

The reference string of the subject in the format of "Patient/a39cafb9d1b445be95a2e2548e12a787".

type
string

Type the reference refers to (e.g. “Patient”).

performer
array[json]

Indicates who performed the dispense.

Click to view child attributes
actor
json

The individual who performed the dispense.

Click to view child attributes
reference
string

The reference string of the performer in the format of "Practitioner/ed1e304acdb847148338c6b0596d93fd".

type
string

Type the reference refers to (e.g. “Practitioner”).

authorizingPrescription
array[json]

Indicates the medication order that is being dispensed against.

Click to view child attributes
reference
string

The reference string of the MedicationRequest in the format of "MedicationRequest/3423a69c-618d-4cbe-861a-54c60f48744e".

type
string

Type the reference refers to (e.g. “MedicationRequest”).

type
json

Indicates the type of dispensing event that is being performed.

Click to view child attributes
text
string

Plain text representation of the concept

quantity
json

The amount of medication that has been dispensed.

Click to view child attributes
value
decimal

Numerical value of the quantity.

whenHandedOver
datetime

When the medication was handed over to the patient.

dosageInstruction
array[json]

Indicates how the medication is to be used by the patient.

Click to view child attributes
text
string

Free text dosage instructions. In Canvas this text comes from the SIG or DIRECTIONS field on the associated command.

timing
json

When medication should be administered.

Click to view child attributes
event
array[string]

Identifies the specific times when the medication should be administered.

doseAndRate
array[json]

Amount of medication administered.

Click to view child attributes
doseQuantity
json

Amount of medication per dose.

Click to view child attributes
value
decimal

Numerical value

unit
string

Unit representation.

Responses

200 OK
Request was successful.

Errors

400 Bad Request
The request was invalid or cannot be otherwise served. An accompanying error message will explain further.
401 Unauthorized
The request requires user authentication.
403 Forbidden
The request requires user authorization.
  • curl --request GET \
         --url 'https://fumage-example.canvasmedical.com/MedicationDispense/<id>' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json'
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/MedicationDispense/<id>"
    
    headers = {
        "accept": "application/json",
        "Authorization": "Bearer <token>"
    }
    
    response = requests.get(url, headers=headers)
    
    print(response.text)
    
  • {
        "resourceType": "MedicationDispense",
        "id": "a47c7b0e-bbb4-42cd-bc4a-df259d148ea1",
        "status": "completed",
        "medicationCodeableConcept": {
            "coding": [
                {
                    "system": "http://www.fdbhealth.com/",
                    "code": "244899",
                    "display": "lisinopril 10 mg tablet"
                },
                {
                    "system": "http://www.nlm.nih.gov/research/umls/rxnorm",
                    "code": "314076",
                    "display": "lisinopril 10 mg tablet"
                }
            ]
        },
        "subject": {
            "reference": "Patient/6cb2a409334943c2b48f1686dc739f11",
            "type": "Patient"
        },
        "performer": [
            {
                "actor": {
                    "reference": "Practitioner/6c20b7152cf7421791c5ab4113060b3f",
                    "type": "Practitioner"
                }
            }
        ],
        "authorizingPrescription": [
            {
                "reference": "MedicationRequest/3423a69c-618d-4cbe-861a-54c60f48744e",
                "type": "MedicationRequest"
            }
        ],
        "type": {
            "text": "Office-supplied"
        },
        "quantity": {
            "value": 30
        },
        "whenHandedOver": "2023-09-21T18:35:00.000+00:00",
        "dosageInstruction": [
            {
                "text": "take 1 daily",
                "timing": {
                  "event": [
                    "2023-09-21T18:35:00.000+00:00"
                  ]
                },
                "doseAndRate": [
                    {
                        "doseQuantity": {
                            "value": 5,
                            "unit": "Tablet"
                        }
                    }
                ]
            }
        ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "unknown",
          "details": {
            "text": "Authentication failed"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "forbidden",
          "details": {
            "text": "Authorization failed"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "not-found",
          "details": {
            "text": "Unknown MedicationDispense resource 'a47c7b0e-bbb4-42cd-bc4a-df259d148ea1'"
          }
        }
      ]
    }
    
  • curl --request GET \
         --url 'https://fumage-example.canvasmedical.com/MedicationDispense?patient=Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json'
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/MedicationDispense?patient=Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0"
    
    headers = {
        "accept": "application/json",
        "Authorization": "Bearer <token>"
    }
    
    response = requests.get(url, headers=headers)
    
    print(response.text)
    
  • {
        "resourceType": "Bundle",
        "type": "searchset",
        "total": 1,
        "link": [
            {
                "relation": "self",
                "url": "/MedicationDispense?patient=Patient%2F6cb2a409334943c2b48f1686dc739f11&_count=10&_offset=0"
            },
            {
                "relation": "first",
                "url": "/MedicationDispense?patient=Patient%2F6cb2a409334943c2b48f1686dc739f11&_count=10&_offset=0"
            },
            {
                "relation": "last",
                "url": "/MedicationDispense?patient=Patient%2F6cb2a409334943c2b48f1686dc739f11&_count=10&_offset=0"
            }
        ],
        "entry": [
            {
                "resource": {
                    "resourceType": "MedicationDispense",
                    "id": "a47c7b0e-bbb4-42cd-bc4a-df259d148ea1",
                    "status": "completed",
                    "medicationCodeableConcept": {
                        "coding": [
                            {
                                "system": "http://www.fdbhealth.com/",
                                "code": "244899",
                                "display": "lisinopril 10 mg tablet"
                            },
                            {
                                "system": "http://www.nlm.nih.gov/research/umls/rxnorm",
                                "code": "314076",
                                "display": "lisinopril 10 mg tablet"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/6cb2a409334943c2b48f1686dc739f11",
                        "type": "Patient"
                    },
                    "performer": [
                        {
                            "actor": {
                                "reference": "Practitioner/6c20b7152cf7421791c5ab4113060b3f",
                                "type": "Practitioner"
                            }
                        }
                    ],
                    "authorizingPrescription": [
                        {
                            "reference": "MedicationRequest/3423a69c-618d-4cbe-861a-54c60f48744e",
                            "type": "MedicationRequest"
                        }
                    ],
                    "type": {
                        "text": "Office-supplied"
                    },
                    "quantity": {
                        "value": 30
                    },
                    "whenHandedOver": "2023-09-21T18:35:00.000+00:00",
                    "dosageInstruction": [
                        {
                            "text": "take 1 daily",
                            "timing": {
                                "event": [
                                    "2023-09-21T18:35:00.000+00:00"
                                ]
                            },
                            "doseAndRate": [
                                {
                                    "doseQuantity": {
                                        "value": 5,
                                        "unit": "Tablet"
                                    }
                                }
                            ]
                        }
                    ]
                }
            }
        ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "invalid",
          "details": {
            "text": "Bad request"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "unknown",
          "details": {
            "text": "Authentication failed"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "forbidden",
          "details": {
            "text": "Authorization failed"
          }
        }
      ]
    }