{
  "resourceType": "StructureDefinition",
  "url": "StructureDefinition/MyMedicationStatement",
  "name": "Cambio CDS DailyDoseMedicationStatement",
  "status": "draft",
  "date": "2018-04-10T09:37:47.253+00:00",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationStatement",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationStatement.identifier",
        "path": "MedicationStatement.identifier",
        "max": "0"
      },
      {
        "id": "MedicationStatement.basedOn",
        "path": "MedicationStatement.basedOn",
        "max": "0"
      },
      {
        "id": "MedicationStatement.partOf",
        "path": "MedicationStatement.partOf",
        "max": "0"
      },
      {
        "id": "MedicationStatement.context",
        "path": "MedicationStatement.context",
        "max": "0"
      },
      {
        "id": "MedicationStatement.category",
        "path": "MedicationStatement.category",
        "max": "0"
      },
      {
        "id": "MedicationStatement.medication[x]:medicationCodeableConcept",
        "path": "MedicationStatement.medicationCodeableConcept",
        "sliceName": "medicationCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationStatement.medication[x]:medicationCodeableConcept.coding.version",
        "path": "MedicationStatement.medicationCodeableConcept.coding.version",
        "max": "0"
      },
      {
        "id": "MedicationStatement.medication[x]:medicationCodeableConcept.coding.userSelected",
        "path": "MedicationStatement.medicationCodeableConcept.coding.userSelected",
        "max": "0"
      },
      {
        "id": "MedicationStatement.effective[x]:effectiveDateTime",
        "path": "MedicationStatement.effectiveDateTime",
        "sliceName": "effectiveDateTime",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "MedicationStatement.dateAsserted",
        "path": "MedicationStatement.dateAsserted",
        "max": "0"
      },
      {
        "id": "MedicationStatement.informationSource",
        "path": "MedicationStatement.informationSource",
        "max": "0"
      },
      {
        "id": "MedicationStatement.subject",
        "path": "MedicationStatement.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "StructureDefinition/CambioCDSPatient"
          }
        ]
      },
      {
        "id": "MedicationStatement.derivedFrom",
        "path": "MedicationStatement.derivedFrom",
        "max": "0"
      },
      {
        "id": "MedicationStatement.reasonNotTaken",
        "path": "MedicationStatement.reasonNotTaken",
        "max": "0"
      },
      {
        "id": "MedicationStatement.reasonCode",
        "path": "MedicationStatement.reasonCode",
        "max": "0"
      },
      {
        "id": "MedicationStatement.reasonReference",
        "path": "MedicationStatement.reasonReference",
        "max": "0"
      },
      {
        "id": "MedicationStatement.note",
        "path": "MedicationStatement.note",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage",
        "path": "MedicationStatement.dosage",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.additionalInstruction",
        "path": "MedicationStatement.dosage.additionalInstruction",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.patientInstruction",
        "path": "MedicationStatement.dosage.patientInstruction",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing",
        "path": "MedicationStatement.dosage.timing",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.bounds[x]",
        "path": "MedicationStatement.dosage.timing.repeat.bounds[x]",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.count",
        "path": "MedicationStatement.dosage.timing.repeat.count",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.countMax",
        "path": "MedicationStatement.dosage.timing.repeat.countMax",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.duration",
        "path": "MedicationStatement.dosage.timing.repeat.duration",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.durationMax",
        "path": "MedicationStatement.dosage.timing.repeat.durationMax",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.durationUnit",
        "path": "MedicationStatement.dosage.timing.repeat.durationUnit",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.frequency",
        "path": "MedicationStatement.dosage.timing.repeat.frequency",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.frequencyMax",
        "path": "MedicationStatement.dosage.timing.repeat.frequencyMax",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.period",
        "path": "MedicationStatement.dosage.timing.repeat.period",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.periodMax",
        "path": "MedicationStatement.dosage.timing.repeat.periodMax",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.periodUnit",
        "path": "MedicationStatement.dosage.timing.repeat.periodUnit",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.dayOfWeek",
        "path": "MedicationStatement.dosage.timing.repeat.dayOfWeek",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.timeOfDay",
        "path": "MedicationStatement.dosage.timing.repeat.timeOfDay",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.when",
        "path": "MedicationStatement.dosage.timing.repeat.when",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.offset",
        "path": "MedicationStatement.dosage.timing.repeat.offset",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.code",
        "path": "MedicationStatement.dosage.timing.code",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.asNeeded[x]",
        "path": "MedicationStatement.dosage.asNeeded[x]",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.site",
        "path": "MedicationStatement.dosage.site",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.method",
        "path": "MedicationStatement.dosage.method",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.dose[x]:doseQuantity",
        "path": "MedicationStatement.dosage.doseQuantity",
        "sliceName": "doseQuantity",
        "min": 1,
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
          }
        ]
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerPeriod",
        "path": "MedicationStatement.dosage.maxDosePerPeriod",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerAdministration",
        "path": "MedicationStatement.dosage.maxDosePerAdministration",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerLifetime",
        "path": "MedicationStatement.dosage.maxDosePerLifetime",
        "max": "0"
      }
    ]
  }
}