2nd DSTU Draft For Comment

This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Medicationdispense.questionnaire.json

Raw JSON (canonical form)

Generated Questionnaire for MedicationDispense

{
  "resourceType": "Questionnaire",
  "id": "qs1",
  "contained": [
    {
      "resourceType": "ValueSet",
      "id": "vs2",
      "url": "urn:uuid:f0a74e21-2b28-4dc3-92c4-b825bdec9cb0",
      "name": "Type options for MedicationDispense.receiver",
      "description": "Type options for MedicationDispense.receiver",
      "status": "active",
      "expansion": {
        "timestamp": "2015-02-23T09:21:10+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": "vs3",
      "url": "urn:uuid:7212a9b3-4a58-4f4e-bbf2-cda6f34697dd",
      "name": "Type options for MedicationDispense.dosageInstruction.schedule[x]",
      "description": "Type options for MedicationDispense.dosageInstruction.schedule[x]",
      "status": "active",
      "expansion": {
        "timestamp": "2015-02-23T09:21:10+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "dateTime",
            "display": "dateTime"
          },
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "Period",
            "display": "Period"
          },
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "Timing",
            "display": "Timing"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "vs4",
      "url": "urn:uuid:ee16e5c4-a7d2-49db-bb44-06f5aec58c8c",
      "name": "Type options for MedicationDispense.dosageInstruction.asNeeded[x]",
      "description": "Type options for MedicationDispense.dosageInstruction.asNeeded[x]",
      "status": "active",
      "expansion": {
        "timestamp": "2015-02-23T09:21:10+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",
      "url": "urn:uuid:1f07a0b1-6af9-4d0c-8dfa-2b50293a607a",
      "name": "Type options for MedicationDispense.dosageInstruction.dose[x]",
      "description": "Type options for MedicationDispense.dosageInstruction.dose[x]",
      "status": "active",
      "expansion": {
        "timestamp": "2015-02-23T09:21:10+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "Range",
            "display": "Range"
          },
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "Quantity",
            "display": "Quantity"
          }
        ]
      }
    }
  ],
  "identifier": [
    {
      "system": "urn:ietf:rfc:3986"
    }
  ],
  "status": "draft",
  "date": "2015-02-23T09:07:27+11:00",
  "publisher": "HL7 FHIR Project (Pharmacy)",
  "group": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
        "valueString": "Dispensing a medication to a named patient.  This includes a description of the supply provided and the instructions for administering the medication."
      }
    ],
    "linkId": "MedicationDispense",
    "title": "Dispensing a medication to a named patient",
    "required": true,
    "repeats": false,
    "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 resoure. 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 artefact",
            "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\n\nNot 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": "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": "/MedicationPrescription?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. Examples include: 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. 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."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "Reference"
          }
        ],
        "linkId": "MedicationDispense.medication",
        "required": false,
        "repeats": true,
        "question": [
          {
            "extension": [
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                "valueString": "/Medication?subject=$subj&patient=$subj&encounter=$encounter"
              }
            ],
            "linkId": "MedicationDispense.medication.value",
            "text": "What medication was supplied",
            "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": "Handover time",
            "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 carer, 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": "#vs2"
            },
            "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/carer",
        "text": "When the dose or rate is intended to change over the entire administration period, eg. 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": "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\"."
              }
            ],
            "linkId": "MedicationDispense.dosageInstruction.schedule[x]",
            "text": "When medication should be administered",
            "required": false,
            "repeats": true,
            "question": [
              {
                "linkId": "MedicationDispense.dosageInstruction.schedule[x]._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": "datetime"
                      }
                    ],
                    "linkId": "MedicationDispense.dosageInstruction.schedule[x]._dateTime",
                    "question": [
                      {
                        "linkId": "MedicationDispense.dosageInstruction.schedule[x]._dateTime.value",
                        "text": "dateTime",
                        "type": "dateTime",
                        "required": false,
                        "repeats": false
                      }
                    ]
                  },
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                        "valueString": "Period"
                      }
                    ],
                    "linkId": "MedicationDispense.dosageInstruction.schedule[x]._Period",
                    "text": "Period",
                    "question": [
                      {
                        "linkId": "MedicationDispense.dosageInstruction.schedule[x]._Period.low",
                        "text": "start:",
                        "type": "dateTime",
                        "required": false,
                        "repeats": false
                      },
                      {
                        "linkId": "MedicationDispense.dosageInstruction.schedule[x]._Period.end",
                        "text": "end:",
                        "type": "dateTime",
                        "required": false,
                        "repeats": false
                      }
                    ]
                  },
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                        "valueString": "Schedule"
                      }
                    ],
                    "linkId": "MedicationDispense.dosageInstruction.schedule[x]._Timing",
                    "text": "Timing"
                  }
                ]
              }
            ]
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
                "valueString": "If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose.  If a CodeableConcept is present, it indicates the pre-condition for taking the Medication."
              }
            ],
            "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."
              },
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                "valueString": "CodeableConcept"
              }
            ],
            "linkId": "MedicationDispense.dosageInstruction.site",
            "text": "Body site to administer to",
            "required": false,
            "repeats": true,
            "question": [
              {
                "linkId": "MedicationDispense.dosageInstruction.site.coding",
                "text": "code:",
                "type": "open-choice",
                "required": false,
                "repeats": false
              },
              {
                "linkId": "MedicationDispense.dosageInstruction.site.text",
                "text": "text:",
                "type": "string",
                "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 introduced into or onto the body. Most commonly used for injections.  Examples:  Slow Push; Deep IV.\r\rTerminologies used often pre-coordinate this term with the route and or form of administration."
              },
              {
                "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.\rIf 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": "#vs5"
                },
                "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]._Quantity",
                    "text": "Quantity",
                    "question": [
                      {
                        "linkId": "MedicationDispense.dosageInstruction.dose[x]._Quantity.comparator",
                        "text": "comp:",
                        "type": "choice",
                        "required": false,
                        "repeats": false
                      },
                      {
                        "linkId": "MedicationDispense.dosageInstruction.dose[x]._Quantity.value",
                        "text": "value:",
                        "type": "decimal",
                        "required": false,
                        "repeats": false
                      },
                      {
                        "linkId": "MedicationDispense.dosageInstruction.dose[x]._Quantity.units",
                        "text": "units:",
                        "type": "string",
                        "required": false,
                        "repeats": false
                      },
                      {
                        "linkId": "MedicationDispense.dosageInstruction.dose[x]._Quantity.code",
                        "text": "coded units:",
                        "type": "string",
                        "required": false,
                        "repeats": false
                      },
                      {
                        "linkId": "MedicationDispense.dosageInstruction.dose[x]._Quantity.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 substance is introduced into the subject. Typically the rate for an infusion. 200ml in 2 hours. It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied.\rIf the rate is intended to change over time, each change should be captured as a distinct \"dosage\" repetition, except for titration orders."
              },
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                "valueString": "Ratio"
              }
            ],
            "linkId": "MedicationDispense.dosageInstruction.rate",
            "text": "Amount of medication per unit of time",
            "required": false,
            "repeats": true,
            "question": [
              {
                "linkId": "MedicationDispense.dosageInstruction.rate.numerator",
                "text": "numerator:",
                "type": "decimal",
                "required": false,
                "repeats": false
              },
              {
                "linkId": "MedicationDispense.dosageInstruction.rate.denominator",
                "text": "denominator:",
                "type": "decimal",
                "required": false,
                "repeats": false
              },
              {
                "linkId": "MedicationDispense.dosageInstruction.rate.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 doesn't happen, in other cases substitution is not expected but does happen.  This block explains what substitition 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": "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 substitiution",
            "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. rename."
              },
              {
                "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
              }
            ]
          }
        ]
      }
    ]
  }
}

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.