{
  "resourceType": "StructureDefinition",
  "url": "http://ehealthontario.on.ca/fhir/StructureDefinition/cms-ext-CommunicationBarrier",
  "name": "CommunicationBarrier",
  "status": "draft",
  "description": "The extension is required to identify if the patient speaks/understands an offical language (english/french), or if she/he does not an interpretor is required.",
  "fhirVersion": "4.0.0",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Patient.communication"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Optional Extensions Element",
        "definition": "The extension is required to identify if the patient speaks/understands an offical language (english/french), or if she/he does not an interpretor is required.",
        "base": {
          "path": "Extension"
        },
        "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.value[x]",
        "path": "Extension.value[x]",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "https://simplifier.net/ereferral-ontario/communication-category"
        }
      }
    ]
  }
}