{
  "resourceType": "StructureDefinition",
  "id": "DosageMERT",
  "url": "https://intrahealth.com/fhir/mert/StructureDefinition/DosageMERT",
  "version": "0.1.0",
  "name": "DosageMERT",
  "title": "Dosage (MERT)",
  "status": "draft",
  "description": "This profile describes the Dosage constraints for MERT needed to help support MedicationRequest (MERT) resource.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "type": "Dosage",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Dosage",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Dosage.text",
        "path": "Dosage.text",
        "mustSupport": true
      },
      {
        "id": "Dosage.asNeeded[x]",
        "path": "Dosage.asNeeded[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "Dosage.asNeeded[x]:asNeededBoolean",
        "path": "Dosage.asNeeded[x]",
        "sliceName": "asNeededBoolean",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Dosage.route",
        "path": "Dosage.route",
        "mustSupport": true
      },
      {
        "id": "Dosage.doseAndRate",
        "path": "Dosage.doseAndRate",
        "mustSupport": true
      },
      {
        "id": "Dosage.doseAndRate.dose[x]",
        "path": "Dosage.doseAndRate.dose[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "Dosage.doseAndRate.dose[x]:doseRange",
        "path": "Dosage.doseAndRate.dose[x]",
        "sliceName": "doseRange",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Range"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Dosage.doseAndRate.dose[x]:doseQuantity",
        "path": "Dosage.doseAndRate.dose[x]",
        "sliceName": "doseQuantity",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Dosage.doseAndRate.rate[x]",
        "path": "Dosage.doseAndRate.rate[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "Dosage.doseAndRate.rate[x]:rateRatio",
        "path": "Dosage.doseAndRate.rate[x]",
        "sliceName": "rateRatio",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Ratio"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Dosage.doseAndRate.rate[x]:rateRange",
        "path": "Dosage.doseAndRate.rate[x]",
        "sliceName": "rateRange",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Range"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Dosage.doseAndRate.rate[x]:rateQuantity",
        "path": "Dosage.doseAndRate.rate[x]",
        "sliceName": "rateQuantity",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}