{
  "resourceType": "StructureDefinition",
  "url": "http://example.com/fhir/StructureDefinition/patient-2a-generalPractitioner",
  "version": "0.1",
  "name": "PatientGPSlice",
  "title": "Patient Profile 2 - 2a Slice by Referenced Type",
  "status": "active",
  "experimental": false,
  "date": "2019",
  "publisher": "Chris Grenz",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "chris.grenz@thoughtworks.com"
        }
      ]
    }
  ],
  "description": "Profile of Patient generalPractitioner sliced by the referenced type.",
  "copyright": "(c)2019 Chris Grenz into public domain",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient",
        "path": "Patient"
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "$this.resolve()"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.generalPractitioner:individualCarer",
        "path": "Patient.generalPractitioner",
        "sliceName": "individualCarer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          }
        ]
      },
      {
        "id": "Patient.generalPractitioner:organizationalCarer",
        "path": "Patient.generalPractitioner",
        "sliceName": "organizationalCarer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      }
    ]
  }
}