{
  "resourceType": "StructureDefinition",
  "id": "reaction-onset",
  "url": "http://hl7.org/fhir/StructureDefinition/reaction-onset",
  "version": "4.0",
  "name": "reaction-onset",
  "title": "Reaction Onset",
  "status": "draft",
  "publisher": "Orion Health",
  "description": "Extends the reaction onset field to provide an age or string type in addition to the date type",
  "purpose": "This extension extends the reaction onset field to allow an age or a string to be specified",
  "fhirVersion": "4.0",
  "kind": "complex-type",
  "abstract": false,
  "type": "Extension",
  "snapshot": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "max": "1",
        "base": {
          "path": "Extension",
          "max": "1"
        }
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "base": {
          "path": "Extension.url"
        },
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/reaction-onset"
      },
      {
        "id": "Extension.value[x]",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Extension.value[x]",
        "short": "Extends the reaction onset field to provide an age or string type in addition to the date type",
        "definition": "Set the onset of a reaction",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Age"
          },
          {
            "code": "string"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "max": "1"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/reaction-onset"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "short": "Extends the reaction onset field to provide an age or string type in addition to the date type",
        "definition": "Set the onset of a reaction",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Age"
          },
          {
            "code": "string"
          }
        ]
      }
    ]
  }
}