{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2017-07-18T10:28:43.693+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pa"
    }
  ],
  "url": "https://purl.org/elab/fhir/StructureDefinition/CustomPatient",
  "name": "CustomPatient",
  "status": "draft",
  "date": "2017-07-14T15:47:07.8332711+00:00",
  "description": "Example of a custom profile extending a structure definition other than Basic.",
  "fhirVersion": "3.0.1",
  "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:extensionWithManyTypes",
        "path": "Patient.extension",
        "sliceName": "extensionWithManyTypes",
        "short": "extensionWithManyTypes",
        "definition": "Extension with many types.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "https://purl.org/elab/fhir/StructureDefinition/extensionWithManyTypes"
          }
        ]
      },
      {
        "id": "Patient.extension:stringExtension",
        "path": "Patient.extension",
        "sliceName": "stringExtension",
        "short": "stringExtension",
        "definition": "String extension",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "https://purl.org/elab/fhir/StructureDefinition/stringExtension"
          }
        ]
      },
      {
        "id": "Patient.extension:codeExtension",
        "path": "Patient.extension",
        "sliceName": "codeExtension",
        "short": "codeExtension",
        "definition": "Code extension",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "https://purl.org/elab/fhir/StructureDefinition/codeExtension"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "https://purl.org/elab/fhir/ValueSet/TestValueSet"
          }
        }
      },
      {
        "id": "Patient.extension:codeExtension2",
        "path": "Patient.extension",
        "sliceName": "codeExtension2",
        "short": "codeExtension2",
        "definition": "2nd code extension",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "https://purl.org/elab/fhir/StructureDefinition/codeExtension"
          }
        ],
        "binding": {
          "strength": "preferred",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/account-type"
          }
        }
      }
    ]
  }
}