{
  "resourceType": "StructureDefinition",
  "id": "IDCorePatient",
  "extension": [
    {
      "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/citizenshipStatus"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Base.Individuals"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "normative"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
      "valueCode": "4.0.0"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 5
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "patient"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pa"
    }
  ],
  "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/IDCorePatient",
  "identifier": [
    {
      "use": "official",
      "system": "https://fhir.kemkes.go.id/id/ihs-number"
    },
    {
      "use": "official",
      "system": "https://fhir.kemkes.go.id/id/nik"
    },
    {
      "use": "official",
      "system": "https://fhir.kemkes.go.id/id/nik-ibu"
    },
    {
      "use": "official",
      "system": "https://fhir.kemkes.go.id/id/passport"
    }
  ],
  "name": "IDCorePatient",
  "status": "active",
  "description": "ID Core Patient profile",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "ordered": false,
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Patient.extension:citizenshipStatus",
        "path": "Patient.extension",
        "sliceName": "citizenshipStatus",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.kemkes.go.id/r4/StructureDefinition/CitizenshipStatusExtension"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "min": 2
      },
      {
        "id": "Patient.identifier.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Patient.deceased[x]:deceasedBoolean",
        "path": "Patient.deceased[x]",
        "sliceName": "deceasedBoolean",
        "min": 1,
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Patient.address",
        "extension": [
          {
            "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/administrativeCode"
          }
        ],
        "path": "Patient.address"
      },
      {
        "id": "Patient.address.extension",
        "path": "Patient.address.extension",
        "min": 1
      },
      {
        "id": "Patient.address.extension:addressExtension",
        "path": "Patient.address.extension",
        "sliceName": "addressExtension",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.kemkes.go.id/r4/StructureDefinition/AddressExtension"
            ]
          }
        ]
      },
      {
        "id": "Patient.address.use",
        "path": "Patient.address.use",
        "min": 1
      },
      {
        "id": "Patient.address.line",
        "path": "Patient.address.line",
        "min": 1
      },
      {
        "id": "Patient.address.city",
        "path": "Patient.address.city",
        "min": 1
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "min": 1
      },
      {
        "id": "Patient.multipleBirth[x]",
        "path": "Patient.multipleBirth[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Patient.multipleBirth[x]:multipleBirthBoolean",
        "path": "Patient.multipleBirth[x]",
        "sliceName": "multipleBirthBoolean",
        "type": [
          {
            "code": "boolean"
          }
        ]
      }
    ]
  }
}