{
  "resourceType": "StructureDefinition",
  "id": "ckd-patient",
  "url": "http://example.org/StructureDefinition/ckd-patient",
  "version": "1.0.0",
  "name": "CKDPatient",
  "title": "CKD Patient Profile",
  "description": "CKD patient profile for TZCH project.",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.id",
        "path": "Patient.id",
        "mustSupport": true
      },
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Patient.extension:vitalStatus",
        "path": "Patient.extension",
        "sliceName": "vitalStatus",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://example.org/StructureDefinition/vital-status"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:hospitalId",
        "path": "Patient.identifier",
        "sliceName": "hospitalId",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:hospitalId.type",
        "path": "Patient.identifier.type",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "MR",
              "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
              "display": "Medical record number"
            }
          ]
        }
      },
      {
        "id": "Patient.identifier:hospitalId.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://tzch.org/fhir/NamingSystem/patient-hospital-id",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:hospitalId.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "mustSupport": true
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "mustSupport": true
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "mustSupport": true
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "mustSupport": true
      }
    ]
  }
}