{
  "resourceType": "StructureDefinition",
  "meta": {},
  "url": "http://someurl/today/CustomPatient",
  "version": "1",
  "name": "CustomPatient",
  "status": "draft",
  "date": "2018-03-27T12:21:58.273+00:00",
  "description": "Custom defined patient intended for exercise use only.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Patient.identifier:nationalID",
        "path": "Patient.identifier",
        "sliceName": "nationalID",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier:nationalID.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://someidsystem/nationalID"
      },
      {
        "id": "Patient.identifier:nationalID.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:hospitalID",
        "path": "Patient.identifier",
        "sliceName": "hospitalID",
        "max": "1"
      },
      {
        "id": "Patient.identifier:hospitalID.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://someidsystem/hospitalID"
      },
      {
        "id": "Patient.identifier:hospitalID.value",
        "path": "Patient.identifier.value",
        "min": 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.birthDate.extension",
        "path": "Patient.birthDate.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.birthDate.extension:MybirthtimeExtension",
        "path": "Patient.birthDate.extension",
        "sliceName": "MybirthtimeExtension",
        "short": "The time of day that the Patient was born. This includes the date to ensure that the timezone information can be communicated effectively.",
        "definition": "The time of day that the Patient was born. This includes the date to ensure that the timezone information can be communicated effectively.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/patient-birthTime"
          }
        ]
      },
      {
        "id": "Patient.communication.extension",
        "path": "Patient.communication.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.communication.extension:MyExtension",
        "path": "Patient.communication.extension",
        "sliceName": "MyExtension",
        "short": "Optional Extensions Element",
        "definition": "Optional Extension Element - found in all resources.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "http://someurl/languageExtension"
          }
        ]
      }
    ]
  }
}