{
  "resourceType": "StructureDefinition",
  "url": "http://example.org/fhir/StructureDefinition/EncounterClassRAW",
  "name": "EncounterClassRAW",
  "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.class"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Raw Encounter Class",
        "definition": "The classification of 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/EncounterClassRAW"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "comment": "The classification of the visit as it is recorded in the originating source (prior to any mapping or clean up by sponsor)",
        "type": [
          {
            "code": "string"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Coding"
          }
        ]
      }
    ]
  }
}