{
  "resourceType": "StructureDefinition",
  "id": "event-reasonCode",
  "meta": {
    "versionId": "55f95b00-f5da-496e-9000-18d67ecb56a2",
    "lastUpdated": "2018-03-28T12:56:59.025+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "fhir"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 1
    }
  ],
  "url": "http://hl7.org/fhir/StructureDefinition/event-reasonCode",
  "name": "reasonCode",
  "title": "Reason Code",
  "status": "draft",
  "date": "2014-01-31",
  "publisher": "Health Level Seven, Inc. - FHIR WG",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/special/committees/fwg"
        }
      ]
    }
  ],
  "description": "Describes why the event occurred in coded or textual form.",
  "fhirVersion": "3.0.0",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Observation",
    "DiagnosticReport"
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Why was event performed?",
        "definition": "Describes why the event occurred in coded or textual form.",
        "comment": "For free text (uncoded data) use reasonCode.text.",
        "mapping": [
          {
            "identity": "v2",
            "map": "EVN.4 or by domain"
          },
          {
            "identity": "rim",
            "map": ".reasonCode"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/event-reasonCode"
      },
      {
        "id": "Extension.valueCodeableConcept",
        "path": "Extension.valueCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "EventReason"
            }
          ],
          "strength": "example",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/condition-cause"
          }
        }
      }
    ]
  }
}