{
  "resourceType": "StructureDefinition",
  "url": "http://apiframework.dedalus.eu/fhir/StructureDefinition/MedicationStatement",
  "name": "MedicationStatement",
  "title": "API Framework MedicationStatement",
  "status": "active",
  "experimental": false,
  "description": "Core API Framework profile for MedicationStatement",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationStatement",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationStatement.id",
        "path": "MedicationStatement.id",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.meta",
        "path": "MedicationStatement.meta",
        "type": [
          {
            "code": "Meta",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Meta-ForCommonConformance"
          }
        ]
      },
      {
        "id": "MedicationStatement.text",
        "path": "MedicationStatement.text",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.partOf",
        "path": "MedicationStatement.partOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/MedicationStatement"
          }
        ]
      },
      {
        "id": "MedicationStatement.context",
        "path": "MedicationStatement.context",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.status",
        "path": "MedicationStatement.status",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.medication[x]:medicationCodeableConcept",
        "path": "MedicationStatement.medicationCodeableConcept",
        "sliceName": "medicationCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.subject",
        "path": "MedicationStatement.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.taken",
        "path": "MedicationStatement.taken",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.note",
        "path": "MedicationStatement.note",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.extension",
        "path": "MedicationStatement.dosage.timing.repeat.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.extension:cycle",
        "path": "MedicationStatement.dosage.timing.repeat.extension",
        "sliceName": "cycle",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/extension-Timing-ForMedication"
          }
        ]
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.extension:cycle.extension:cycleDay",
        "path": "MedicationStatement.dosage.timing.repeat.extension.extension",
        "sliceName": "cycleDay",
        "short": "Cycle Day (integer)"
      }
    ]
  }
}