{

"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:f19d62c9-84b1-4906-bd34-6bf8b0668195",
      "timestamp": "2015-10-24T07:43:49+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.receiver",
    "status": "active",
    "description": "Type options for MedicationDispense.receiver",
    "expansion": {
      "identifier": "urn:uuid:448849a9-da3f-41c2-bc38-aa022dde5e71",
      "timestamp": "2015-10-24T07:43:49+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": "vs4",
    "name": "Type options for MedicationDispense.dosageInstruction.asNeeded[x]",
    "status": "active",
    "description": "Type options for MedicationDispense.dosageInstruction.asNeeded[x]",
    "expansion": {
      "identifier": "urn:uuid:0a7cc4fb-f96b-45db-aa73-6795cdadf0bb",
      "timestamp": "2015-10-24T07:43:49+11:00",
      "contains": [
        {
          "system": "http://hl7.org/fhir/data-types",
          "code": "boolean",
          "display": "boolean"
        },
        {
          "system": "http://hl7.org/fhir/data-types",
          "code": "CodeableConcept",
          "display": "CodeableConcept"
        }
      ]
    }
  },
  {
    "resourceType": "ValueSet",
    "id": "vs5",
    "name": "Type options for MedicationDispense.dosageInstruction.site[x]",
    "status": "active",
    "description": "Type options for MedicationDispense.dosageInstruction.site[x]",
    "expansion": {
      "identifier": "urn:uuid:2eca007f-b8a6-4e65-b9c6-7c3fab36c25e",
      "timestamp": "2015-10-24T07:43:49+11:00",
      "contains": [
        {
          "system": "http://hl7.org/fhir/data-types",
          "code": "CodeableConcept",
          "display": "CodeableConcept"
        },
        {
          "system": "http://hl7.org/fhir/resource-types",
          "code": "BodySite",
          "display": "BodySite"
        }
      ]
    }
  },
  {
    "resourceType": "ValueSet",
    "id": "vs6",
    "name": "Type options for MedicationDispense.dosageInstruction.dose[x]",
    "status": "active",
    "description": "Type options for MedicationDispense.dosageInstruction.dose[x]",
    "expansion": {
      "identifier": "urn:uuid:d7b1d4cc-33d0-4297-8c8c-d359765ffde4",
      "timestamp": "2015-10-24T07:43:49+11:00",
      "contains": [
        {
          "system": "http://hl7.org/fhir/data-types",
          "code": "Range",
          "display": "Range"
        },
        {
          "system": "http://hl7.org/fhir/resource-types",
          "code": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity",
          "display": "Quantity"
        }
      ]
    }
  },
  {
    "resourceType": "ValueSet",
    "id": "vs7",
    "name": "Type options for MedicationDispense.dosageInstruction.rate[x]",
    "status": "active",
    "description": "Type options for MedicationDispense.dosageInstruction.rate[x]",
    "expansion": {
      "identifier": "urn:uuid:e785ae2d-f047-47a0-be85-b02339974a2c",
      "timestamp": "2015-10-24T07:43:49+11:00",
      "contains": [
        {
          "system": "http://hl7.org/fhir/data-types",
          "code": "Ratio",
          "display": "Ratio"
        },
        {
          "system": "http://hl7.org/fhir/data-types",
          "code": "Range",
          "display": "Range"
        }
      ]
    }
  }
],
"identifier": [
  {
    "system": "urn:ietf:rfc:3986"
  }
],
"status": "draft",
"date": "2015-10-24T07:41:03+11:00",
"publisher": "Health Level Seven International (Pharmacy)",
"group": {
  "extension": [
    {
      "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
      "valueString": "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."
    }
  ],
  "linkId": "MedicationDispense",
  "title": "Dispensing a medication to a named patient",
  "required": false,
  "repeats": true,
  "group": [
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
          "valueString": "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. Bundles always have an id, though it is usually a generated UUID."
        },
        {
          "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
          "valueString": "string"
        }
      ],
      "linkId": "MedicationDispense.id",
      "required": false,
      "repeats": true,
      "question": [
        {
          "linkId": "MedicationDispense.id.value",
          "text": "Logical id of this artifact",
          "type": "string",
          "required": false,
          "repeats": false
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
          "valueString": "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."
        }
      ],
      "linkId": "MedicationDispense.meta",
      "text": "Metadata about the resource",
      "required": false,
      "repeats": true
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
          "valueString": "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 as much as possible."
        },
        {
          "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
          "valueString": "uri"
        }
      ],
      "linkId": "MedicationDispense.implicitRules",
      "required": false,
      "repeats": true,
      "question": [
        {
          "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/Profile/questionnaire-extensions#flyover",
          "valueString": "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)."
        },
        {
          "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
          "valueString": "code"
        }
      ],
      "linkId": "MedicationDispense.language",
      "required": false,
      "repeats": true,
      "question": [
        {
          "linkId": "MedicationDispense.language.value",
          "text": "language",
          "type": "choice",
          "required": false,
          "repeats": false
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
          "valueString": "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."
        }
      ],
      "linkId": "MedicationDispense.text",
      "text": "Text summary of the resource, for human interpretation",
      "required": false,
      "repeats": true
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
          "valueString": "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."
        }
      ],
      "linkId": "MedicationDispense.contained",
      "text": "Contained, inline Resources",
      "required": false,
      "repeats": true
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
          "valueString": "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."
        }
      ],
      "linkId": "MedicationDispense.extension",
      "text": "Additional Content defined by implementations",
      "required": false,
      "repeats": true
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
          "valueString": "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."
        }
      ],
      "linkId": "MedicationDispense.modifierExtension",
      "text": "Extensions that cannot be ignored",
      "required": false,
      "repeats": true
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
          "valueString": "Identifier assigned by the dispensing facility - this is an identifier assigned outside FHIR."
        },
        {
          "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
          "valueString": "Identifier"
        }
      ],
      "linkId": "MedicationDispense.identifier",
      "text": "External identifier",
      "required": false,
      "repeats": true,
      "question": [
        {
          "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/Profile/questionnaire-extensions#flyover",
          "valueString": "A code specifying the state of the set of dispense events."
        },
        {
          "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
          "valueString": "code"
        }
      ],
      "linkId": "MedicationDispense.status",
      "required": false,
      "repeats": true,
      "question": [
        {
          "linkId": "MedicationDispense.status.value",
          "text": "status",
          "type": "choice",
          "required": false,
          "repeats": false
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
          "valueString": "A link to a resource representing the person to whom the medication will be given. SubstanceAdministration->subject->Patient."
        },
        {
          "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
          "valueString": "Reference"
        }
      ],
      "linkId": "MedicationDispense.patient",
      "required": false,
      "repeats": true,
      "question": [
        {
          "extension": [
            {
              "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
              "valueString": "/Patient?subject=$subj&patient=$subj&encounter=$encounter"
            }
          ],
          "linkId": "MedicationDispense.patient.value",
          "text": "Who the dispense is for",
          "type": "reference",
          "required": false,
          "repeats": false
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
          "valueString": "The individual responsible for dispensing the medication."
        },
        {
          "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
          "valueString": "Reference"
        }
      ],
      "linkId": "MedicationDispense.dispenser",
      "required": false,
      "repeats": true,
      "question": [
        {
          "extension": [
            {
              "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
              "valueString": "/Practitioner?subject=$subj&patient=$subj&encounter=$encounter"
            }
          ],
          "linkId": "MedicationDispense.dispenser.value",
          "text": "Practitioner responsible for dispensing medication",
          "type": "reference",
          "required": false,
          "repeats": false
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
          "valueString": "Indicates the medication order that is being dispensed against."
        },
        {
          "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
          "valueString": "Reference"
        }
      ],
      "linkId": "MedicationDispense.authorizingPrescription",
      "required": false,
      "repeats": true,
      "question": [
        {
          "extension": [
            {
              "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
              "valueString": "/MedicationOrder?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/Profile/questionnaire-extensions#flyover",
          "valueString": "Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc."
        },
        {
          "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
          "valueString": "CodeableConcept"
        }
      ],
      "linkId": "MedicationDispense.type",
      "text": "Trial fill, partial fill, emergency fill, etc.",
      "required": false,
      "repeats": true,
      "question": [
        {
          "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/Profile/questionnaire-extensions#flyover",
          "valueString": "The amount of medication that has been dispensed. Includes unit of measure."
        },
        {
          "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
          "valueString": "Quantity"
        }
      ],
      "linkId": "MedicationDispense.quantity",
      "text": "Amount dispensed",
      "required": false,
      "repeats": true,
      "question": [
        {
          "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/Profile/questionnaire-extensions#flyover",
          "valueString": "The amount of medication expressed as a timing amount."
        },
        {
          "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
          "valueString": "Quantity"
        }
      ],
      "linkId": "MedicationDispense.daysSupply",
      "text": "Days Supply",
      "required": false,
      "repeats": true,
      "question": [
        {
          "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/Profile/questionnaire-extensions#flyover",
          "valueString": "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.  Note: do not use Medication.name to describe the dispensed medication. When the only available information is a text description of the medication, Medication.code.text should be used."
        }
      ],
      "linkId": "MedicationDispense.medication[x]",
      "text": "What medication was supplied",
      "required": true,
      "repeats": true,
      "question": [
        {
          "linkId": "MedicationDispense.medication[x]._type",
          "text": "type",
          "type": "choice",
          "required": false,
          "repeats": false,
          "options": {
            "reference": "#vs2"
          },
          "group": [
            {
              "extension": [
                {
                  "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                  "valueString": "CodeableConcept"
                }
              ],
              "linkId": "MedicationDispense.medication[x]._CodeableConcept",
              "text": "CodeableConcept",
              "question": [
                {
                  "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://www.healthintersections.com.au/fhir/Profile/metadata#type",
                  "valueString": "Reference"
                }
              ],
              "linkId": "MedicationDispense.medication[x]._Medication",
              "question": [
                {
                  "extension": [
                    {
                      "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                      "valueString": "/Medication?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/Profile/questionnaire-extensions#flyover",
          "valueString": "The time when the dispensed product was packaged and reviewed."
        },
        {
          "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
          "valueString": "datetime"
        }
      ],
      "linkId": "MedicationDispense.whenPrepared",
      "required": false,
      "repeats": true,
      "question": [
        {
          "linkId": "MedicationDispense.whenPrepared.value",
          "text": "Dispense processing time",
          "type": "dateTime",
          "required": false,
          "repeats": false
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
          "valueString": "The time the dispensed product was provided to the patient or their representative."
        },
        {
          "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
          "valueString": "datetime"
        }
      ],
      "linkId": "MedicationDispense.whenHandedOver",
      "required": false,
      "repeats": true,
      "question": [
        {
          "linkId": "MedicationDispense.whenHandedOver.value",
          "text": "When product was given out",
          "type": "dateTime",
          "required": false,
          "repeats": false
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
          "valueString": "Identification of the facility/location where the medication was shipped to, as part of the dispense event."
        },
        {
          "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
          "valueString": "Reference"
        }
      ],
      "linkId": "MedicationDispense.destination",
      "required": false,
      "repeats": true,
      "question": [
        {
          "extension": [
            {
              "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
              "valueString": "/Location?subject=$subj&patient=$subj&encounter=$encounter"
            }
          ],
          "linkId": "MedicationDispense.destination.value",
          "text": "Where the medication was sent",
          "type": "reference",
          "required": false,
          "repeats": false
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
          "valueString": "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."
        }
      ],
      "linkId": "MedicationDispense.receiver",
      "text": "Who collected the medication",
      "required": false,
      "repeats": true,
      "question": [
        {
          "linkId": "MedicationDispense.receiver._type",
          "text": "type",
          "type": "choice",
          "required": false,
          "repeats": false,
          "options": {
            "reference": "#vs3"
          },
          "group": [
            {
              "extension": [
                {
                  "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                  "valueString": "Reference"
                }
              ],
              "linkId": "MedicationDispense.receiver._Patient",
              "question": [
                {
                  "extension": [
                    {
                      "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                      "valueString": "/Patient?subject=$subj&patient=$subj&encounter=$encounter"
                    }
                  ],
                  "linkId": "MedicationDispense.receiver._Patient.value",
                  "text": "Patient",
                  "type": "reference",
                  "required": false,
                  "repeats": false
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                  "valueString": "Reference"
                }
              ],
              "linkId": "MedicationDispense.receiver._Practitioner",
              "question": [
                {
                  "extension": [
                    {
                      "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                      "valueString": "/Practitioner?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/Profile/questionnaire-extensions#flyover",
          "valueString": "Extra information about the dispense that could not be conveyed in the other attributes."
        },
        {
          "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
          "valueString": "string"
        }
      ],
      "linkId": "MedicationDispense.note",
      "required": false,
      "repeats": true,
      "question": [
        {
          "linkId": "MedicationDispense.note.value",
          "text": "Information about the dispense",
          "type": "string",
          "required": false,
          "repeats": false
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
          "valueString": "Indicates how the medication is to be used by the patient."
        }
      ],
      "linkId": "MedicationDispense.dosageInstruction",
      "title": "Medicine administration instructions to the patient/caregiver",
      "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.",
      "required": false,
      "repeats": true,
      "group": [
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "unique id for the element within a resource (for internal references)."
            },
            {
              "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
              "valueString": "string"
            }
          ],
          "linkId": "MedicationDispense.dosageInstruction.id",
          "required": false,
          "repeats": true,
          "question": [
            {
              "linkId": "MedicationDispense.dosageInstruction.id.value",
              "text": "xml:id (or equivalent in JSON)",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "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."
            }
          ],
          "linkId": "MedicationDispense.dosageInstruction.extension",
          "text": "Additional Content defined by implementations",
          "required": false,
          "repeats": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "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."
            }
          ],
          "linkId": "MedicationDispense.dosageInstruction.modifierExtension",
          "text": "Extensions that cannot be ignored",
          "required": false,
          "repeats": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "Free text dosage instructions can be used for cases where the instructions are too complex to code. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication."
            },
            {
              "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
              "valueString": "string"
            }
          ],
          "linkId": "MedicationDispense.dosageInstruction.text",
          "required": false,
          "repeats": true,
          "question": [
            {
              "linkId": "MedicationDispense.dosageInstruction.text.value",
              "text": "Dosage Instructions",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "Additional instructions such as \"Swallow with plenty of water\" which may or may not be coded."
            },
            {
              "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
              "valueString": "CodeableConcept"
            }
          ],
          "linkId": "MedicationDispense.dosageInstruction.additionalInstructions",
          "text": "E.g. \"Take with food\"",
          "required": false,
          "repeats": true,
          "question": [
            {
              "linkId": "MedicationDispense.dosageInstruction.additionalInstructions.coding",
              "text": "code:",
              "type": "open-choice",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.dosageInstruction.additionalInstructions.text",
              "text": "text:",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "The timing schedule for giving the medication to the patient.  The Schedule data type allows many different expressions.  For example, \"Every  8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\";  \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\"."
            },
            {
              "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
              "valueString": "Schedule"
            }
          ],
          "linkId": "MedicationDispense.dosageInstruction.timing",
          "text": "When medication should be administered",
          "required": false,
          "repeats": true,
          "question": [
            {
              "linkId": "MedicationDispense.dosageInstruction.timing.text",
              "text": "text:",
              "type": "string",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.dosageInstruction.timing.date",
              "text": "date:",
              "type": "dateTime",
              "required": false,
              "repeats": false
            },
            {
              "extension": [
                {
                  "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                  "valueString": "/Patient?"
                },
                {
                  "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                  "valueString": "/Practitioner?"
                },
                {
                  "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                  "valueString": "/RelatedPerson?"
                }
              ],
              "linkId": "MedicationDispense.dosageInstruction.timing.author",
              "text": "author:",
              "type": "reference",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).  \n\nSpecifically if 'boolean' datatype is selected, then the following logic applies:  If set to True, this indicates that the medication is only taken when needed, within the specified schedule."
            }
          ],
          "linkId": "MedicationDispense.dosageInstruction.asNeeded[x]",
          "text": "Take \"as needed\" f(or x)",
          "required": false,
          "repeats": true,
          "question": [
            {
              "linkId": "MedicationDispense.dosageInstruction.asNeeded[x]._type",
              "text": "type",
              "type": "choice",
              "required": false,
              "repeats": false,
              "options": {
                "reference": "#vs4"
              },
              "group": [
                {
                  "extension": [
                    {
                      "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                      "valueString": "boolean"
                    }
                  ],
                  "linkId": "MedicationDispense.dosageInstruction.asNeeded[x]._boolean",
                  "question": [
                    {
                      "linkId": "MedicationDispense.dosageInstruction.asNeeded[x]._boolean.value",
                      "text": "boolean",
                      "type": "boolean",
                      "required": false,
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                      "valueString": "CodeableConcept"
                    }
                  ],
                  "linkId": "MedicationDispense.dosageInstruction.asNeeded[x]._CodeableConcept",
                  "text": "CodeableConcept",
                  "question": [
                    {
                      "linkId": "MedicationDispense.dosageInstruction.asNeeded[x]._CodeableConcept.coding",
                      "text": "code:",
                      "type": "open-choice",
                      "required": false,
                      "repeats": false
                    },
                    {
                      "linkId": "MedicationDispense.dosageInstruction.asNeeded[x]._CodeableConcept.text",
                      "text": "text:",
                      "type": "string",
                      "required": false,
                      "repeats": false
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "A coded specification of the anatomic site where the medication first enters the body."
            }
          ],
          "linkId": "MedicationDispense.dosageInstruction.site[x]",
          "text": "Body site to administer to",
          "required": false,
          "repeats": true,
          "question": [
            {
              "linkId": "MedicationDispense.dosageInstruction.site[x]._type",
              "text": "type",
              "type": "choice",
              "required": false,
              "repeats": false,
              "options": {
                "reference": "#vs5"
              },
              "group": [
                {
                  "extension": [
                    {
                      "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                      "valueString": "CodeableConcept"
                    }
                  ],
                  "linkId": "MedicationDispense.dosageInstruction.site[x]._CodeableConcept",
                  "text": "CodeableConcept",
                  "question": [
                    {
                      "linkId": "MedicationDispense.dosageInstruction.site[x]._CodeableConcept.coding",
                      "text": "code:",
                      "type": "open-choice",
                      "required": false,
                      "repeats": false
                    },
                    {
                      "linkId": "MedicationDispense.dosageInstruction.site[x]._CodeableConcept.text",
                      "text": "text:",
                      "type": "string",
                      "required": false,
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                      "valueString": "Reference"
                    }
                  ],
                  "linkId": "MedicationDispense.dosageInstruction.site[x]._BodySite",
                  "question": [
                    {
                      "extension": [
                        {
                          "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                          "valueString": "/BodySite?subject=$subj&patient=$subj&encounter=$encounter"
                        }
                      ],
                      "linkId": "MedicationDispense.dosageInstruction.site[x]._BodySite.value",
                      "text": "BodySite",
                      "type": "reference",
                      "required": false,
                      "repeats": false
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject."
            },
            {
              "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
              "valueString": "CodeableConcept"
            }
          ],
          "linkId": "MedicationDispense.dosageInstruction.route",
          "text": "How drug should enter body",
          "required": false,
          "repeats": true,
          "question": [
            {
              "linkId": "MedicationDispense.dosageInstruction.route.coding",
              "text": "code:",
              "type": "open-choice",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.dosageInstruction.route.text",
              "text": "text:",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "A coded value indicating the method by which the medication is intended to be or was introduced into or on the body. This attribute will most often NOT be populated.  It is most commonly used for injections.  For example, Slow Push, Deep IV.  One of the reasons this attribute is not used often, is that the method is often pre-coordinated with the route and/or form of administration.  This means the codes used in route or form may pre-coordinate the method in the route code or the form code.  The implementation decision about what coding system to use for route or form code will determine how frequently the method code will be populated e.g. if route or form code pre-coordinate method code, then this attribute will not be populated often; if there is no pre-coordination then method code may  be used frequently."
            },
            {
              "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
              "valueString": "CodeableConcept"
            }
          ],
          "linkId": "MedicationDispense.dosageInstruction.method",
          "text": "Technique for administering medication",
          "required": false,
          "repeats": true,
          "question": [
            {
              "linkId": "MedicationDispense.dosageInstruction.method.coding",
              "text": "code:",
              "type": "open-choice",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.dosageInstruction.method.text",
              "text": "text:",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "The amount of therapeutic or other substance given at one administration event. Note that this specifies the quantity of the specified medication, not the quantity of active ingredient(s).  The prescribed strength can be calculated by multiplying the doseQuantity by the strength of each active ingredient in the prescribed Medication. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule."
            }
          ],
          "linkId": "MedicationDispense.dosageInstruction.dose[x]",
          "text": "Amount of medication per dose",
          "required": false,
          "repeats": true,
          "question": [
            {
              "linkId": "MedicationDispense.dosageInstruction.dose[x]._type",
              "text": "type",
              "type": "choice",
              "required": false,
              "repeats": false,
              "options": {
                "reference": "#vs6"
              },
              "group": [
                {
                  "extension": [
                    {
                      "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                      "valueString": "Range"
                    }
                  ],
                  "linkId": "MedicationDispense.dosageInstruction.dose[x]._Range",
                  "text": "Range",
                  "question": [
                    {
                      "linkId": "MedicationDispense.dosageInstruction.dose[x]._Range.low",
                      "text": "low:",
                      "type": "decimal",
                      "required": false,
                      "repeats": false
                    },
                    {
                      "linkId": "MedicationDispense.dosageInstruction.dose[x]._Range.high",
                      "text": "high:",
                      "type": "decimal",
                      "required": false,
                      "repeats": false
                    },
                    {
                      "linkId": "MedicationDispense.dosageInstruction.dose[x]._Range.units",
                      "text": "units:",
                      "type": "string",
                      "required": false,
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                      "valueString": "Quantity"
                    }
                  ],
                  "linkId": "MedicationDispense.dosageInstruction.dose[x]._http://hl7.org/fhir/StructureDefinition/SimpleQuantity",
                  "text": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity",
                  "question": [
                    {
                      "linkId": "MedicationDispense.dosageInstruction.dose[x]._http://hl7.org/fhir/StructureDefinition/SimpleQuantity.comparator",
                      "text": "comp:",
                      "type": "choice",
                      "required": false,
                      "repeats": false
                    },
                    {
                      "linkId": "MedicationDispense.dosageInstruction.dose[x]._http://hl7.org/fhir/StructureDefinition/SimpleQuantity.value",
                      "text": "value:",
                      "type": "decimal",
                      "required": false,
                      "repeats": false
                    },
                    {
                      "linkId": "MedicationDispense.dosageInstruction.dose[x]._http://hl7.org/fhir/StructureDefinition/SimpleQuantity.units",
                      "text": "units:",
                      "type": "string",
                      "required": false,
                      "repeats": false
                    },
                    {
                      "linkId": "MedicationDispense.dosageInstruction.dose[x]._http://hl7.org/fhir/StructureDefinition/SimpleQuantity.code",
                      "text": "coded units:",
                      "type": "string",
                      "required": false,
                      "repeats": false
                    },
                    {
                      "linkId": "MedicationDispense.dosageInstruction.dose[x]._http://hl7.org/fhir/StructureDefinition/SimpleQuantity.system",
                      "text": "units system:",
                      "type": "string",
                      "required": false,
                      "repeats": false
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr.  May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours.   Currently we do not specify a default of '1' in the denominator, but this is being discussed. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours."
            }
          ],
          "linkId": "MedicationDispense.dosageInstruction.rate[x]",
          "text": "Amount of medication per unit of time",
          "required": false,
          "repeats": true,
          "question": [
            {
              "linkId": "MedicationDispense.dosageInstruction.rate[x]._type",
              "text": "type",
              "type": "choice",
              "required": false,
              "repeats": false,
              "options": {
                "reference": "#vs7"
              },
              "group": [
                {
                  "extension": [
                    {
                      "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                      "valueString": "Ratio"
                    }
                  ],
                  "linkId": "MedicationDispense.dosageInstruction.rate[x]._Ratio",
                  "text": "Ratio",
                  "question": [
                    {
                      "linkId": "MedicationDispense.dosageInstruction.rate[x]._Ratio.numerator",
                      "text": "numerator:",
                      "type": "decimal",
                      "required": false,
                      "repeats": false
                    },
                    {
                      "linkId": "MedicationDispense.dosageInstruction.rate[x]._Ratio.denominator",
                      "text": "denominator:",
                      "type": "decimal",
                      "required": false,
                      "repeats": false
                    },
                    {
                      "linkId": "MedicationDispense.dosageInstruction.rate[x]._Ratio.units",
                      "text": "units:",
                      "type": "string",
                      "required": false,
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                      "valueString": "Range"
                    }
                  ],
                  "linkId": "MedicationDispense.dosageInstruction.rate[x]._Range",
                  "text": "Range",
                  "question": [
                    {
                      "linkId": "MedicationDispense.dosageInstruction.rate[x]._Range.low",
                      "text": "low:",
                      "type": "decimal",
                      "required": false,
                      "repeats": false
                    },
                    {
                      "linkId": "MedicationDispense.dosageInstruction.rate[x]._Range.high",
                      "text": "high:",
                      "type": "decimal",
                      "required": false,
                      "repeats": false
                    },
                    {
                      "linkId": "MedicationDispense.dosageInstruction.rate[x]._Range.units",
                      "text": "units:",
                      "type": "string",
                      "required": false,
                      "repeats": false
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time,  e.g. 1000mg in 24 hours."
            },
            {
              "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
              "valueString": "Ratio"
            }
          ],
          "linkId": "MedicationDispense.dosageInstruction.maxDosePerPeriod",
          "text": "Upper limit on medication per unit of time",
          "required": false,
          "repeats": true,
          "question": [
            {
              "linkId": "MedicationDispense.dosageInstruction.maxDosePerPeriod.numerator",
              "text": "numerator:",
              "type": "decimal",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.dosageInstruction.maxDosePerPeriod.denominator",
              "text": "denominator:",
              "type": "decimal",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "MedicationDispense.dosageInstruction.maxDosePerPeriod.units",
              "text": "units:",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
          "valueString": "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."
        }
      ],
      "linkId": "MedicationDispense.substitution",
      "title": "Deals with substitution of one medicine for another",
      "required": false,
      "repeats": false,
      "group": [
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "unique id for the element within a resource (for internal references)."
            },
            {
              "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
              "valueString": "string"
            }
          ],
          "linkId": "MedicationDispense.substitution.id",
          "required": false,
          "repeats": true,
          "question": [
            {
              "linkId": "MedicationDispense.substitution.id.value",
              "text": "xml:id (or equivalent in JSON)",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "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."
            }
          ],
          "linkId": "MedicationDispense.substitution.extension",
          "text": "Additional Content defined by implementations",
          "required": false,
          "repeats": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "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."
            }
          ],
          "linkId": "MedicationDispense.substitution.modifierExtension",
          "text": "Extensions that cannot be ignored",
          "required": false,
          "repeats": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
              "valueString": "A code signifying whether a different drug was dispensed from what was prescribed."
            },
            {
              "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
              "valueString": "CodeableConcept"
            }
          ],
          "linkId": "MedicationDispense.substitution.type",
          "text": "Type of substitution",
          "required": true,
          "repeats": true,
          "question": [
            {
              "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/Profile/questionnaire-extensions#flyover",
              "valueString": "Indicates the reason for the substitution of (or lack of substitution) from what was prescribed."
            },
            {
              "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
              "valueString": "CodeableConcept"
            }
          ],
          "linkId": "MedicationDispense.substitution.reason",
          "text": "Why was substitution made",
          "required": false,
          "repeats": true,
          "question": [
            {
              "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/Profile/questionnaire-extensions#flyover",
              "valueString": "The person or organization that has primary responsibility for the substitution."
            },
            {
              "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
              "valueString": "Reference"
            }
          ],
          "linkId": "MedicationDispense.substitution.responsibleParty",
          "required": false,
          "repeats": true,
          "question": [
            {
              "extension": [
                {
                  "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                  "valueString": "/Practitioner?subject=$subj&patient=$subj&encounter=$encounter"
                }
              ],
              "linkId": "MedicationDispense.substitution.responsibleParty.value",
              "text": "Who is responsible for the substitution",
              "type": "reference",
              "required": false,
              "repeats": false
            }
          ]
        }
      ]
    }
  ]
}

}