FHIR Release 3 (STU)

This page is part of the FHIR Specification (v3.0.2: STU 3). The current version which supercedes this version is 4.0.1. For a full list of available versions, see the Directory of published versions

Medicationdispense-questionnaire.json

Pharmacy Work GroupMaturity Level: N/ABallot Status: InformativeCompartments: Patient, Practitioner

Raw JSON (canonical form)

Generated Questionnaire for MedicationDispense

{
  "resourceType": "Questionnaire",
  "id": "qs1",
  "contained": [
    {
      "resourceType": "ValueSet",
      "id": "vs2",
      "name": "Type options for MedicationDispense.medication[x]",
      "status": "active",
      "description": "Type options for MedicationDispense.medication[x]",
      "expansion": {
        "identifier": "urn:uuid:9b77e9d1-dda1-42d2-af97-a9d3f46ac8a4",
        "timestamp": "2019-10-24T11:53:00+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "CodeableConcept",
            "display": "CodeableConcept"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Medication",
            "display": "Medication"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "vs3",
      "name": "Type options for MedicationDispense.subject",
      "status": "active",
      "description": "Type options for MedicationDispense.subject",
      "expansion": {
        "identifier": "urn:uuid:0efc39fa-9000-4c3b-9a29-2f555518bd1e",
        "timestamp": "2019-10-24T11:53:00+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Patient",
            "display": "Patient"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Group",
            "display": "Group"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "vs4",
      "name": "Type options for MedicationDispense.context",
      "status": "active",
      "description": "Type options for MedicationDispense.context",
      "expansion": {
        "identifier": "urn:uuid:23b281d2-19fe-444d-b056-d68e0e0a2368",
        "timestamp": "2019-10-24T11:53:00+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Encounter",
            "display": "Encounter"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "EpisodeOfCare",
            "display": "EpisodeOfCare"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "vs5",
      "name": "Type options for MedicationDispense.performer.actor",
      "status": "active",
      "description": "Type options for MedicationDispense.performer.actor",
      "expansion": {
        "identifier": "urn:uuid:19e2ddd9-4cea-49db-b58c-8a20692c24e9",
        "timestamp": "2019-10-24T11:53:00+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Practitioner",
            "display": "Practitioner"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Organization",
            "display": "Organization"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Patient",
            "display": "Patient"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Device",
            "display": "Device"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "RelatedPerson",
            "display": "RelatedPerson"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "vs6",
      "name": "Type options for MedicationDispense.receiver",
      "status": "active",
      "description": "Type options for MedicationDispense.receiver",
      "expansion": {
        "identifier": "urn:uuid:87f287b8-311e-4e64-8c23-3a92cfec998b",
        "timestamp": "2019-10-24T11:53:00+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Patient",
            "display": "Patient"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Practitioner",
            "display": "Practitioner"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "vs7",
      "name": "Type options for MedicationDispense.notDoneReason[x]",
      "status": "active",
      "description": "Type options for MedicationDispense.notDoneReason[x]",
      "expansion": {
        "identifier": "urn:uuid:d263ff95-4d85-4198-8a91-8a0c688b7df5",
        "timestamp": "2019-10-24T11:53:00+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "CodeableConcept",
            "display": "CodeableConcept"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "DetectedIssue",
            "display": "DetectedIssue"
          }
        ]
      }
    }
  ],
  "identifier": [
    {
      "system": "urn:ietf:rfc:3986"
    }
  ],
  "status": "draft",
  "date": "2019-10-24T11:53:00+11:00",
  "publisher": "Health Level Seven International (Pharmacy)",
  "item": [
    {
      "linkId": "MedicationDispense",
      "text": "Dispensing a medication to a named patient",
      "type": "group",
      "required": false,
      "repeats": true,
      "item": [
        {
          "text": "The WG will be updating the MedicationDispense resource  to adjust each affected resource to align with the workflow pattern (see workflow.html).",
          "type": "display"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "flyover",
                    "display": "Fly-over"
                  }
                ]
              }
            }
          ],
          "text": "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.",
          "type": "display"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "string"
            }
          ],
          "linkId": "MedicationDispense.id",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes. The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.id.value",
              "text": "Logical id of this artifact",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            }
          ],
          "linkId": "MedicationDispense.meta",
          "text": "Metadata about the resource",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
              "type": "display"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "uri"
            }
          ],
          "linkId": "MedicationDispense.implicitRules",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. \n\nThis element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.implicitRules.value",
              "text": "A set of rules under which this content was created",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "code"
            }
          ],
          "linkId": "MedicationDispense.language",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "The base language in which the resource is written. Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.language.value",
              "text": "language",
              "type": "choice",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            }
          ],
          "linkId": "MedicationDispense.text",
          "text": "Text summary of the resource, for human interpretation",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety. Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded in formation is added later.",
              "type": "display"
            }
          ]
        },
        {
          "linkId": "MedicationDispense.contained",
          "text": "Contained, inline Resources",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope. This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.",
              "type": "display"
            }
          ]
        },
        {
          "linkId": "MedicationDispense.extension",
          "text": "Additional Content defined by implementations",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
              "type": "display"
            }
          ]
        },
        {
          "linkId": "MedicationDispense.modifierExtension",
          "text": "Extensions that cannot be ignored",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
              "type": "display"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "Identifier"
            }
          ],
          "linkId": "MedicationDispense.identifier",
          "text": "External identifier",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Identifier assigned by the dispensing facility - this is an identifier assigned outside FHIR.",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.identifier.label",
              "text": "label:",
              "type": "string",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.identifier.system",
              "text": "system:",
              "type": "string",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.identifier.value",
              "text": "value:",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "Reference"
            }
          ],
          "linkId": "MedicationDispense.partOf",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "The procedure that the dispense is done because of.",
              "type": "display"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                  "valueCode": "Procedure"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                  "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                }
              ],
              "linkId": "MedicationDispense.partOf.value",
              "text": "Event that dispense is part of",
              "type": "reference",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "code"
            }
          ],
          "linkId": "MedicationDispense.status",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "A code specifying the state of the set of dispense events. This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.status.value",
              "text": "status",
              "type": "choice",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "CodeableConcept"
            }
          ],
          "linkId": "MedicationDispense.category",
          "text": "Type of medication dispense",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Indicates type of medication dispense and where the medication is expected to be consumed or administered.",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.category.coding",
              "text": "code:",
              "type": "open-choice",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.category.text",
              "text": "text:",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            }
          ],
          "linkId": "MedicationDispense.medication[x]",
          "text": "What medication was supplied",
          "type": "group",
          "required": true,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the medication resource is recommended.  For example if you require form or lot number, then you must reference the Medication resource. .",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.medication[x]._type",
              "text": "type",
              "type": "choice",
              "required": false,
              "repeats": false,
              "options": {
                "reference": "#vs2"
              },
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "CodeableConcept"
                    }
                  ],
                  "linkId": "MedicationDispense.medication[x]._CodeableConcept",
                  "text": "CodeableConcept",
                  "type": "group",
                  "item": [
                    {
                      "linkId": "MedicationDispense.medication[x]._CodeableConcept.coding",
                      "text": "code:",
                      "type": "open-choice",
                      "required": false,
                      "repeats": false
                    },
                    {
                      "linkId": "MedicationDispense.medication[x]._CodeableConcept.text",
                      "text": "text:",
                      "type": "string",
                      "required": false,
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "Reference"
                    }
                  ],
                  "linkId": "MedicationDispense.medication[x]._Medication",
                  "type": "group",
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                          "valueCode": "Medication"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                          "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                        }
                      ],
                      "linkId": "MedicationDispense.medication[x]._Medication.value",
                      "text": "Medication",
                      "type": "reference",
                      "required": false,
                      "repeats": false
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            }
          ],
          "linkId": "MedicationDispense.subject",
          "text": "Who the dispense is for",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "A link to a resource representing the person or the group to whom the medication will be given. SubstanceAdministration->subject->Patient.",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.subject._type",
              "text": "type",
              "type": "choice",
              "required": false,
              "repeats": false,
              "options": {
                "reference": "#vs3"
              },
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "Reference"
                    }
                  ],
                  "linkId": "MedicationDispense.subject._Patient",
                  "type": "group",
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                          "valueCode": "Patient"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                          "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                        }
                      ],
                      "linkId": "MedicationDispense.subject._Patient.value",
                      "text": "Patient",
                      "type": "reference",
                      "required": false,
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "Reference"
                    }
                  ],
                  "linkId": "MedicationDispense.subject._Group",
                  "type": "group",
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                          "valueCode": "Group"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                          "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                        }
                      ],
                      "linkId": "MedicationDispense.subject._Group.value",
                      "text": "Group",
                      "type": "reference",
                      "required": false,
                      "repeats": false
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            }
          ],
          "linkId": "MedicationDispense.context",
          "text": "Encounter / Episode associated with event",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "The encounter or episode of care that establishes the context for this event.",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.context._type",
              "text": "type",
              "type": "choice",
              "required": false,
              "repeats": false,
              "options": {
                "reference": "#vs4"
              },
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "Reference"
                    }
                  ],
                  "linkId": "MedicationDispense.context._Encounter",
                  "type": "group",
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                          "valueCode": "Encounter"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                          "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                        }
                      ],
                      "linkId": "MedicationDispense.context._Encounter.value",
                      "text": "Encounter",
                      "type": "reference",
                      "required": false,
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "Reference"
                    }
                  ],
                  "linkId": "MedicationDispense.context._EpisodeOfCare",
                  "type": "group",
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                          "valueCode": "EpisodeOfCare"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                          "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                        }
                      ],
                      "linkId": "MedicationDispense.context._EpisodeOfCare.value",
                      "text": "EpisodeOfCare",
                      "type": "reference",
                      "required": false,
                      "repeats": false
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "Reference"
            }
          ],
          "linkId": "MedicationDispense.supportingInformation",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Additional information that supports the medication being dispensed.",
              "type": "display"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                  "valueCode": "Resource"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                  "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                }
              ],
              "linkId": "MedicationDispense.supportingInformation.value",
              "text": "Information that supports the dispensing of the medication",
              "type": "reference",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "linkId": "MedicationDispense.performer",
          "text": "Who performed event",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "text": "The performer will be reviewed as part of STU4.",
              "type": "display"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Indicates who or what performed the event.  It should be assumed that the performer is the dispenser of the medication.",
              "type": "display"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
                  "valueInteger": 1
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                  "valueString": "string"
                }
              ],
              "linkId": "MedicationDispense.performer.id",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
                  "type": "display"
                },
                {
                  "linkId": "MedicationDispense.performer.id.value",
                  "text": "xml:id (or equivalent in JSON)",
                  "type": "string",
                  "required": false,
                  "repeats": false
                }
              ]
            },
            {
              "linkId": "MedicationDispense.performer.extension",
              "text": "Additional Content defined by implementations",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
                  "type": "display"
                }
              ]
            },
            {
              "linkId": "MedicationDispense.performer.modifierExtension",
              "text": "Extensions that cannot be ignored",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
                  "type": "display"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs",
                  "valueInteger": 1
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
                  "valueInteger": 1
                }
              ],
              "linkId": "MedicationDispense.performer.actor",
              "text": "Individual who was performing",
              "type": "group",
              "required": true,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "The device, practitioner, etc. who performed the action.  It should be assumed that the actor is the dispenser of the medication.",
                  "type": "display"
                },
                {
                  "linkId": "MedicationDispense.performer.actor._type",
                  "text": "type",
                  "type": "choice",
                  "required": false,
                  "repeats": false,
                  "options": {
                    "reference": "#vs5"
                  },
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                          "valueString": "Reference"
                        }
                      ],
                      "linkId": "MedicationDispense.performer.actor._Practitioner",
                      "type": "group",
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                              "valueCode": "Practitioner"
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                              "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                            }
                          ],
                          "linkId": "MedicationDispense.performer.actor._Practitioner.value",
                          "text": "Practitioner",
                          "type": "reference",
                          "required": false,
                          "repeats": false
                        }
                      ]
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                          "valueString": "Reference"
                        }
                      ],
                      "linkId": "MedicationDispense.performer.actor._Organization",
                      "type": "group",
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                              "valueCode": "Organization"
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                              "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                            }
                          ],
                          "linkId": "MedicationDispense.performer.actor._Organization.value",
                          "text": "Organization",
                          "type": "reference",
                          "required": false,
                          "repeats": false
                        }
                      ]
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                          "valueString": "Reference"
                        }
                      ],
                      "linkId": "MedicationDispense.performer.actor._Patient",
                      "type": "group",
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                              "valueCode": "Patient"
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                              "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                            }
                          ],
                          "linkId": "MedicationDispense.performer.actor._Patient.value",
                          "text": "Patient",
                          "type": "reference",
                          "required": false,
                          "repeats": false
                        }
                      ]
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                          "valueString": "Reference"
                        }
                      ],
                      "linkId": "MedicationDispense.performer.actor._Device",
                      "type": "group",
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                              "valueCode": "Device"
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                              "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                            }
                          ],
                          "linkId": "MedicationDispense.performer.actor._Device.value",
                          "text": "Device",
                          "type": "reference",
                          "required": false,
                          "repeats": false
                        }
                      ]
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                          "valueString": "Reference"
                        }
                      ],
                      "linkId": "MedicationDispense.performer.actor._RelatedPerson",
                      "type": "group",
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                              "valueCode": "RelatedPerson"
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                              "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                            }
                          ],
                          "linkId": "MedicationDispense.performer.actor._RelatedPerson.value",
                          "text": "RelatedPerson",
                          "type": "reference",
                          "required": false,
                          "repeats": false
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
                  "valueInteger": 1
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                  "valueString": "Reference"
                }
              ],
              "linkId": "MedicationDispense.performer.onBehalfOf",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "The organization the device or practitioner was acting on behalf of.",
                  "type": "display"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                      "valueCode": "Organization"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                      "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                    }
                  ],
                  "linkId": "MedicationDispense.performer.onBehalfOf.value",
                  "text": "Organization organization was acting for",
                  "type": "reference",
                  "required": false,
                  "repeats": false
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "Reference"
            }
          ],
          "linkId": "MedicationDispense.authorizingPrescription",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Indicates the medication order that is being dispensed against. Maps to basedOn in Event logical model.",
              "type": "display"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                  "valueCode": "MedicationRequest"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                  "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                }
              ],
              "linkId": "MedicationDispense.authorizingPrescription.value",
              "text": "Medication order that authorizes the dispense",
              "type": "reference",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "CodeableConcept"
            }
          ],
          "linkId": "MedicationDispense.type",
          "text": "Trial fill, partial fill, emergency fill, etc.",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.type.coding",
              "text": "code:",
              "type": "open-choice",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.type.text",
              "text": "text:",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "Quantity"
            }
          ],
          "linkId": "MedicationDispense.quantity",
          "text": "Amount dispensed",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "The amount of medication that has been dispensed. Includes unit of measure.",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.quantity.comparator",
              "text": "comp:",
              "type": "choice",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.quantity.value",
              "text": "value:",
              "type": "decimal",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.quantity.units",
              "text": "units:",
              "type": "string",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.quantity.code",
              "text": "coded units:",
              "type": "string",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.quantity.system",
              "text": "units system:",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "Quantity"
            }
          ],
          "linkId": "MedicationDispense.daysSupply",
          "text": "Amount of medication expressed as a timing amount",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "The amount of medication expressed as a timing amount.",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.daysSupply.comparator",
              "text": "comp:",
              "type": "choice",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.daysSupply.value",
              "text": "value:",
              "type": "decimal",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.daysSupply.units",
              "text": "units:",
              "type": "string",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.daysSupply.code",
              "text": "coded units:",
              "type": "string",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.daysSupply.system",
              "text": "units system:",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "datetime"
            }
          ],
          "linkId": "MedicationDispense.whenPrepared",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "The time when the dispensed product was packaged and reviewed.",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.whenPrepared.value",
              "text": "When product was packaged and reviewed",
              "type": "dateTime",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "datetime"
            }
          ],
          "linkId": "MedicationDispense.whenHandedOver",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "The time the dispensed product was provided to the patient or their representative.",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.whenHandedOver.value",
              "text": "When product was given out",
              "type": "dateTime",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "Reference"
            }
          ],
          "linkId": "MedicationDispense.destination",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Identification of the facility/location where the medication was shipped to, as part of the dispense event.",
              "type": "display"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                  "valueCode": "Location"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                  "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                }
              ],
              "linkId": "MedicationDispense.destination.value",
              "text": "Where the medication was sent",
              "type": "reference",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "linkId": "MedicationDispense.receiver",
          "text": "Who collected the medication",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Identifies the person who picked up the medication.  This will usually be a patient or their caregiver, but some cases exist where it can be a healthcare professional.",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.receiver._type",
              "text": "type",
              "type": "choice",
              "required": false,
              "repeats": false,
              "options": {
                "reference": "#vs6"
              },
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "Reference"
                    }
                  ],
                  "linkId": "MedicationDispense.receiver._Patient",
                  "type": "group",
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                          "valueCode": "Patient"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                          "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                        }
                      ],
                      "linkId": "MedicationDispense.receiver._Patient.value",
                      "text": "Patient",
                      "type": "reference",
                      "required": false,
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "Reference"
                    }
                  ],
                  "linkId": "MedicationDispense.receiver._Practitioner",
                  "type": "group",
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                          "valueCode": "Practitioner"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                          "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                        }
                      ],
                      "linkId": "MedicationDispense.receiver._Practitioner.value",
                      "text": "Practitioner",
                      "type": "reference",
                      "required": false,
                      "repeats": false
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "Annotation"
            }
          ],
          "linkId": "MedicationDispense.note",
          "text": "Information about the dispense",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Extra information about the dispense that could not be conveyed in the other attributes.",
              "type": "display"
            }
          ]
        },
        {
          "linkId": "MedicationDispense.dosageInstruction",
          "text": "How the medication is to be used by the patient or administered by the caregiver",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "text": "When the dose or rate is intended to change over the entire administration period (e.g. Tapering dose prescriptions), multiple instances of dosage instructions will need to be supplied to convey the different doses/rates.\rThe pharmacist reviews the medication order prior to dispense and updates the dosageInstruction based on the actual product being dispensed.",
              "type": "display"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Indicates how the medication is to be used by the patient.",
              "type": "display"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            }
          ],
          "linkId": "MedicationDispense.substitution",
          "text": "Whether a substitution was performed on the dispense",
          "type": "group",
          "required": false,
          "repeats": false,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Indicates whether or not substitution was made as part of the dispense.  In some cases substitution will be expected but does not happen, in other cases substitution is not expected but does happen.  This block explains what substitution did or did not happen and why.  If nothing is specified, substitution was not done.",
              "type": "display"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
                  "valueInteger": 1
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                  "valueString": "string"
                }
              ],
              "linkId": "MedicationDispense.substitution.id",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
                  "type": "display"
                },
                {
                  "linkId": "MedicationDispense.substitution.id.value",
                  "text": "xml:id (or equivalent in JSON)",
                  "type": "string",
                  "required": false,
                  "repeats": false
                }
              ]
            },
            {
              "linkId": "MedicationDispense.substitution.extension",
              "text": "Additional Content defined by implementations",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
                  "type": "display"
                }
              ]
            },
            {
              "linkId": "MedicationDispense.substitution.modifierExtension",
              "text": "Extensions that cannot be ignored",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
                  "type": "display"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs",
                  "valueInteger": 1
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
                  "valueInteger": 1
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                  "valueString": "boolean"
                }
              ],
              "linkId": "MedicationDispense.substitution.wasSubstituted",
              "type": "group",
              "required": true,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "True if the dispenser dispensed a different drug or product from what was prescribed.",
                  "type": "display"
                },
                {
                  "linkId": "MedicationDispense.substitution.wasSubstituted.value",
                  "text": "Whether a substitution was or was not performed on the dispense",
                  "type": "boolean",
                  "required": false,
                  "repeats": false
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
                  "valueInteger": 1
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                  "valueString": "CodeableConcept"
                }
              ],
              "linkId": "MedicationDispense.substitution.type",
              "text": "Code signifying whether a different drug was dispensed from what was prescribed",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "A code signifying whether a different drug was dispensed from what was prescribed.",
                  "type": "display"
                },
                {
                  "linkId": "MedicationDispense.substitution.type.coding",
                  "text": "code:",
                  "type": "open-choice",
                  "required": false,
                  "repeats": false
                },
                {
                  "linkId": "MedicationDispense.substitution.type.text",
                  "text": "text:",
                  "type": "string",
                  "required": false,
                  "repeats": false
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                  "valueString": "CodeableConcept"
                }
              ],
              "linkId": "MedicationDispense.substitution.reason",
              "text": "Why was substitution made",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "Indicates the reason for the substitution of (or lack of substitution) from what was prescribed.",
                  "type": "display"
                },
                {
                  "linkId": "MedicationDispense.substitution.reason.coding",
                  "text": "code:",
                  "type": "open-choice",
                  "required": false,
                  "repeats": false
                },
                {
                  "linkId": "MedicationDispense.substitution.reason.text",
                  "text": "text:",
                  "type": "string",
                  "required": false,
                  "repeats": false
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                  "valueString": "Reference"
                }
              ],
              "linkId": "MedicationDispense.substitution.responsibleParty",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "The person or organization that has primary responsibility for the substitution.",
                  "type": "display"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                      "valueCode": "Practitioner"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                      "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                    }
                  ],
                  "linkId": "MedicationDispense.substitution.responsibleParty.value",
                  "text": "Who is responsible for the substitution",
                  "type": "reference",
                  "required": false,
                  "repeats": false
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "Reference"
            }
          ],
          "linkId": "MedicationDispense.detectedIssue",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, duplicate therapy, dosage alert etc.",
              "type": "display"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                  "valueCode": "DetectedIssue"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                  "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                }
              ],
              "linkId": "MedicationDispense.detectedIssue.value",
              "text": "Clinical issue with action",
              "type": "reference",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "boolean"
            }
          ],
          "linkId": "MedicationDispense.notDone",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "True if the dispense was not performed for some reason.",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.notDone.value",
              "text": "Whether the dispense was or was not performed",
              "type": "boolean",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            }
          ],
          "linkId": "MedicationDispense.notDoneReason[x]",
          "text": "Why a dispense was not performed",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Indicates the reason why a dispense was not performed.",
              "type": "display"
            },
            {
              "linkId": "MedicationDispense.notDoneReason[x]._type",
              "text": "type",
              "type": "choice",
              "required": false,
              "repeats": false,
              "options": {
                "reference": "#vs7"
              },
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "CodeableConcept"
                    }
                  ],
                  "linkId": "MedicationDispense.notDoneReason[x]._CodeableConcept",
                  "text": "CodeableConcept",
                  "type": "group",
                  "item": [
                    {
                      "linkId": "MedicationDispense.notDoneReason[x]._CodeableConcept.coding",
                      "text": "code:",
                      "type": "open-choice",
                      "required": false,
                      "repeats": false
                    },
                    {
                      "linkId": "MedicationDispense.notDoneReason[x]._CodeableConcept.text",
                      "text": "text:",
                      "type": "string",
                      "required": false,
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "Reference"
                    }
                  ],
                  "linkId": "MedicationDispense.notDoneReason[x]._DetectedIssue",
                  "type": "group",
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                          "valueCode": "DetectedIssue"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                          "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                        }
                      ],
                      "linkId": "MedicationDispense.notDoneReason[x]._DetectedIssue.value",
                      "text": "DetectedIssue",
                      "type": "reference",
                      "required": false,
                      "repeats": false
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "Reference"
            }
          ],
          "linkId": "MedicationDispense.eventHistory",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "A summary of the events of interest that have occurred, such as when the dispense was verified. This may not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).",
              "type": "display"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                  "valueCode": "Provenance"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                  "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                }
              ],
              "linkId": "MedicationDispense.eventHistory.value",
              "text": "A list of releveant lifecycle events",
              "type": "reference",
              "required": false,
              "repeats": false
            }
          ]
        }
      ]
    }
  ]
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.