{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/MyPatient",
  "name": "MyPatient",
  "status": "draft",
  "fhirVersion": "4.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",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "max": "0"
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "max": "0"
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "max": "0"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "code": [
          {
            "code": "M",
            "display": "Male"
          },
          {
            "code": "F",
            "display": "Female"
          },
          {
            "code": "X",
            "display": "Unknown"
          },
          {
            "code": "D",
            "display": "Diverse"
          }
        ]
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "example": [
          {
            "label": "Example",
            "valueDate": "1990-10-10"
          }
        ]
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Patient.address.use",
        "path": "Patient.address.use",
        "max": "0"
      },
      {
        "id": "Patient.address.type",
        "path": "Patient.address.type",
        "max": "0"
      },
      {
        "id": "Patient.address.text",
        "path": "Patient.address.text",
        "max": "0"
      },
      {
        "id": "Patient.address.line",
        "path": "Patient.address.line",
        "max": "0"
      },
      {
        "id": "Patient.address.city",
        "path": "Patient.address.city",
        "max": "0"
      },
      {
        "id": "Patient.address.district",
        "path": "Patient.address.district",
        "max": "0"
      },
      {
        "id": "Patient.address.state",
        "path": "Patient.address.state",
        "max": "0"
      },
      {
        "id": "Patient.address.postalCode",
        "path": "Patient.address.postalCode",
        "maxLength": 5
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "short": "Country code",
        "comment": "2-3 letter codes can be used in place of a human readable country name.",
        "binding": {
          "strength": "preferred",
          "description": "Codes for countries from ISO 3166",
          "valueSet": "https://build.fhir.org/valueset-country.html"
        }
      },
      {
        "id": "Patient.address.period",
        "path": "Patient.address.period",
        "max": "0"
      },
      {
        "id": "Patient.maritalStatus",
        "path": "Patient.maritalStatus",
        "max": "0"
      },
      {
        "id": "Patient.multipleBirth[x]",
        "path": "Patient.multipleBirth[x]",
        "max": "0"
      },
      {
        "id": "Patient.photo",
        "path": "Patient.photo",
        "max": "0"
      },
      {
        "id": "Patient.contact",
        "path": "Patient.contact",
        "max": "0"
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "max": "0"
      },
      {
        "id": "Patient.link",
        "path": "Patient.link",
        "max": "0"
      }
    ]
  }
}