{
  "resourceType": "StructureDefinition",
  "id": "f19a74f6-24d1-49f3-bed4-ac48f7cbd707",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2017-05-09T15:24:08.112+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pa"
    }
  ],
  "url": "http://example.org/fhir/StructureDefinition/MadridDemoPatient",
  "version": "0.1",
  "name": "MadridDemoPatient",
  "status": "draft",
  "experimental": true,
  "date": "2017-05-09T14:45:54.6656628+00:00",
  "publisher": "Furore",
  "fhirVersion": "3.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.extension:religion",
        "path": "Patient.extension",
        "sliceName": "religion",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/patient-religion"
          }
        ]
      },
      {
        "path": "Patient.active",
        "min": 1
      },
      {
        "path": "Patient.name",
        "min": 1,
        "max": "1"
      },
      {
        "path": "Patient.deceasedDateTime",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "path": "Patient.address",
        "type": [
          {
            "code": "Address",
            "profile": "http://fhir.de/StructureDefinition/address-de-basis"
          }
        ]
      },
      {
        "path": "Patient.maritalStatus",
        "min": 1,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "MaritalStatus"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean": true
            }
          ],
          "strength": "required"
        }
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Animal"
          }
        ],
        "path": "Patient.animal",
        "max": "0"
      },
      {
        "path": "Patient.link.other",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://example.org/fhir/StructureDefinition/MadridDemoPatient"
          }
        ]
      }
    ]
  }
}