{
  "resourceType": "StructureDefinition",
  "id": "dispense-number",
  "url": "http://hl7.org.au/fhir/StructureDefinition/dispense-number",
  "version": "1.1.0",
  "name": "DispenseNumber",
  "title": "Number of this Dispense",
  "status": "draft",
  "date": "2018-10-03",
  "publisher": "Health Level Seven Australia (Medications WG)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org.au",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This extension applies to the MedicationDispense resource and the value indicates the dispense number or sequence number that has been reached for a therapeutic good prescribed with repeats. It has the value 1 when there are no repeats. The value increments by one each time a dispense act is successfully completed.",
  "fhirVersion": "3.0.1",
  "kind": "complex-type",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "MedicationDispense"
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Number of this dispense",
        "definition": "This extension applies to the MedicationDispense resource and the value indicates the dispense number or sequence number that has been reached for a therapeutic good prescribed with repeats.",
        "comment": "It has the value 1 when there are no repeats. The value increments by one each time a dispense act is successfully completed.",
        "max": "1"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://hl7.org.au/fhir/StructureDefinition/dispense-number"
      },
      {
        "id": "Extension.value[x]:valueInteger",
        "path": "Extension.valueInteger",
        "sliceName": "valueInteger",
        "short": "Dispense Number",
        "min": 1,
        "type": [
          {
            "code": "integer"
          }
        ]
      }
    ]
  }
}