{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/MyPatient",
  "name": "MyPatient",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            },
            {
              "type": "value",
              "path": "use"
            }
          ],
          "rules": "closed"
        },
        "min": 1,
        "max": "3"
      },
      {
        "id": "Patient.telecom.extension",
        "path": "Patient.telecom.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.telecom.extension:IsTelecommuting",
        "path": "Patient.telecom.extension",
        "sliceName": "IsTelecommuting",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/IsTelecommuting"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.telecom:HomePhone",
        "path": "Patient.telecom",
        "sliceName": "HomePhone",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.telecom:HomePhone.system",
        "path": "Patient.telecom.system",
        "short": "phone",
        "min": 1,
        "fixedCode": "phone"
      },
      {
        "id": "Patient.telecom:HomePhone.value",
        "path": "Patient.telecom.value",
        "min": 1
      },
      {
        "id": "Patient.telecom:HomePhone.use",
        "path": "Patient.telecom.use",
        "short": "home",
        "min": 1,
        "fixedCode": "home"
      },
      {
        "id": "Patient.telecom:WorkPhone",
        "path": "Patient.telecom",
        "sliceName": "WorkPhone",
        "max": "1"
      },
      {
        "id": "Patient.telecom:WorkPhone.system",
        "path": "Patient.telecom.system",
        "min": 1,
        "fixedCode": "phone"
      },
      {
        "id": "Patient.telecom:WorkPhone.value",
        "path": "Patient.telecom.value",
        "min": 1
      },
      {
        "id": "Patient.telecom:WorkPhone.use",
        "path": "Patient.telecom.use",
        "min": 1,
        "fixedCode": "work"
      },
      {
        "id": "Patient.telecom:Email",
        "path": "Patient.telecom",
        "sliceName": "Email",
        "max": "1"
      },
      {
        "id": "Patient.telecom:Email.system",
        "path": "Patient.telecom.system",
        "min": 1,
        "fixedCode": "email"
      },
      {
        "id": "Patient.telecom:Email.value",
        "path": "Patient.telecom.value",
        "min": 1
      },
      {
        "id": "Patient.telecom:Email.use",
        "path": "Patient.telecom.use",
        "max": "0"
      }
    ]
  }
}