{
  "resourceType": "StructureDefinition",
  "url": "http://example.org/fhir/StructureDefinition/EncounterTypeRAW",
  "name": "EncounterTypeRAW",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Encounter.type"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Raw Encounter Type",
        "definition": "A text description of the type of service provided in the visit as it is recorded in the originating source (prior to any mapping or clean up by sponsor)"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://example.org/fhir/StructureDefinition/EncounterTypeRAW"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "type": [
          {
            "code": "string"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Coding"
          }
        ]
      }
    ]
  }
}