{
  "resourceType": "StructureDefinition",
  "id": "c71d5f7f-48ec-4a34-9ffa-d4c9563b256f",
  "meta": {
    "versionId": "6b834ade-0d16-424d-9531-c12ec11ba8d0",
    "lastUpdated": "2017-05-16T15:52:26.802+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "phx"
    }
  ],
  "url": "http://vonk.furore.com/StructureDefinition/c71d5f7f-48ec-4a34-9ffa-d4c9563b256f",
  "name": "HVLMedicationStatement",
  "status": "draft",
  "date": "2017-05-16T10:46:31.3955804+00:00",
  "fhirVersion": "3.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationStatement",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "path": "MedicationStatement.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationStatement.extension:administeredTodayRatio",
        "path": "MedicationStatement.extension",
        "sliceName": "administeredTodayRatio",
        "short": "Number of medication administrations today",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://vonk.furore.com/StructureDefinition/a0eb6ff1-8ea9-4429-a57f-7f7bee330eb8"
          }
        ]
      },
      {
        "path": "MedicationStatement.identifier",
        "max": "0"
      },
      {
        "path": "MedicationStatement.basedOn",
        "max": "0"
      },
      {
        "path": "MedicationStatement.partOf",
        "max": "0"
      },
      {
        "path": "MedicationStatement.context",
        "max": "0"
      },
      {
        "path": "MedicationStatement.category",
        "max": "0"
      },
      {
        "path": "MedicationStatement.medicationReference",
        "type": [
          {
            "code": "Reference",
            "profile": "http://vonk.furore.com/StructureDefinition/7dddfe79-4c34-4781-983d-2cf49a4e693d"
          }
        ]
      },
      {
        "path": "MedicationStatement.effectiveDateTime",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "path": "MedicationStatement.dateAsserted",
        "max": "0"
      },
      {
        "path": "MedicationStatement.informationSource",
        "max": "0"
      },
      {
        "path": "MedicationStatement.subject",
        "type": [
          {
            "code": "Reference",
            "profile": "http://vonk.furore.com/StructureDefinition/0767a47f-dac8-4a34-a640-95d7c2fb99c8",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "path": "MedicationStatement.derivedFrom",
        "max": "0"
      },
      {
        "path": "MedicationStatement.reasonNotTaken",
        "max": "0"
      },
      {
        "path": "MedicationStatement.reasonCode",
        "max": "0"
      },
      {
        "path": "MedicationStatement.reasonReference",
        "max": "0"
      },
      {
        "path": "MedicationStatement.note",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage",
        "min": 1,
        "max": "1"
      },
      {
        "path": "MedicationStatement.dosage.sequence",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.text",
        "min": 1
      },
      {
        "path": "MedicationStatement.dosage.additionalInstruction",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.patientInstruction",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.event",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.repeat",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.repeat.bounds[x]",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.repeat.count",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.repeat.countMax",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.repeat.duration",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.repeat.durationMax",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.repeat.durationUnit",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.repeat.frequencyMax",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.repeat.period",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.repeat.periodMax",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.repeat.periodUnit",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.repeat.dayOfWeek",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.repeat.timeOfDay",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.repeat.when",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.repeat.offset",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.timing.code",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.asNeeded[x]",
        "min": 1
      },
      {
        "path": "MedicationStatement.dosage.site",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.route",
        "min": 1
      },
      {
        "path": "MedicationStatement.dosage.route.coding",
        "max": "0"
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationStatement.dosage.route.text",
        "min": 1
      },
      {
        "path": "MedicationStatement.dosage.method",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.doseQuantity",
        "min": 1,
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
          }
        ]
      },
      {
        "path": "MedicationStatement.dosage.maxDosePerPeriod",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.maxDosePerAdministration",
        "sliceName": "SimpleQuantity",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.maxDosePerLifetime",
        "sliceName": "SimpleQuantity",
        "max": "0"
      },
      {
        "path": "MedicationStatement.dosage.rate[x]",
        "max": "0"
      }
    ]
  }
}