{
  "resourceType": "StructureDefinition",
  "url": "http://digen.nublar.de/fhir/StructureDefinition/NormgroesseExtension",
  "name": "NormgroesseExtension",
  "status": "draft",
  "fhirVersion": "3.0.1",
  "kind": "complex-type",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Medication.package.content.amount"
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Optional Extensions Element",
        "definition": "Optional Extension Element - found in all resources.",
        "constraint": [
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://digen.nublar.de/fhir/StructureDefinition/NormgroesseExtension"
      },
      {
        "id": "Extension.value[x]:valueCode",
        "path": "Extension.valueCode",
        "sliceName": "valueCode",
        "short": "Normgroesse",
        "definition": "Code that defines a normalized package size according to \"range calculations\" (i.e. for how many day of 'normal use' the package size suffices)",
        "comment": "External ValueSet from KBV",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSetUri": "http://www.kbv.de/fhir/ValueSet/74_VS_VM_NormGroesse"
        }
      }
    ]
  }
}