{
  "resourceType": "StructureDefinition",
  "id": "a13efdd8-7455-4a19-9dc1-e7ec9e9df418",
  "meta": {
    "lastUpdated": "2018-10-24T13:48:01.818+00:00"
  },
  "url": "http://example.org/fhir/StructureDefinition/MyPatient_petterwygler",
  "name": "MyPatient_petterwygler",
  "status": "draft",
  "date": "2018-10-24T13:48:01.7007539+00:00",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.extension:birthPlace",
        "path": "Patient.extension",
        "sliceName": "birthPlace",
        "short": "birth place",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/birthPlace"
          }
        ]
      },
      {
        "id": "Patient.extension:birthPlace.valueAddress:valueAddress",
        "path": "Patient.extension.valueAddress",
        "sliceName": "valueAddress"
      },
      {
        "id": "Patient.extension:writtenlangpreference",
        "path": "Patient.extension",
        "sliceName": "writtenlangpreference",
        "type": [
          {
            "code": "Extension",
            "profile": "http://example.org/fhir/StructureDefinition/communicationpreference"
          }
        ]
      },
      {
        "id": "Patient.extension:spokenlangpreference",
        "path": "Patient.extension",
        "sliceName": "spokenlangpreference",
        "type": [
          {
            "code": "Extension",
            "profile": "http://example.org/fhir/StructureDefinition/communicationpreference"
          }
        ]
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.identifier:personnummer",
        "path": "Patient.identifier",
        "sliceName": "personnummer",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": "personnummer"
          }
        ]
      },
      {
        "id": "Patient.identifier:personnummer.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Patient.identifier:personnummer.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "patternCode": "test"
      },
      {
        "id": "Patient.identifier:personnummer.system",
        "path": "Patient.identifier.system",
        "fixedUri": "personnummer"
      },
      {
        "id": "Patient.identifier:sjukhusid",
        "path": "Patient.identifier",
        "sliceName": "sjukhusid",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": "sjukhusid"
          }
        ]
      },
      {
        "id": "Patient.identifier:sjukhusid.system",
        "path": "Patient.identifier.system",
        "fixedUri": "sjukhusid"
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "min": 1
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "min": 1
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "min": 1
      },
      {
        "id": "Patient.communication.extension",
        "path": "Patient.communication.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.communication.extension:prefferedlang",
        "path": "Patient.communication.extension",
        "sliceName": "prefferedlang",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "http://example.org/fhir/StructureDefinition/comm"
          }
        ]
      },
      {
        "id": "Patient.communication.extension:prefferedlang.value[x]",
        "path": "Patient.communication.extension.value[x]",
        "type": [
          {
            "code": "code"
          },
          {
            "code": "string"
          }
        ]
      }
    ]
  }
}