{
  "resourceType": "StructureDefinition",
  "id": "IDCore-Patient",
  "meta": {
    "versionId": "44",
    "lastUpdated": "2023-06-14T06:18:43.511763+00:00"
  },
  "extension": [
    {
      "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/IDCore-Patient",
  "name": "IDCore_Patient",
  "status": "draft",
  "date": "2023-06-14T06:20:59.6854466+00:00",
  "publisher": "DTO Kemkes SatuSehat Indonesia",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "https://fhir.kemkes.go.id/r4"
        }
      ]
    },
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
        }
      ]
    }
  ],
  "description": "Demographics and other administrative information about an individual or animal receiving care or other health-related services.",
  "purpose": "Tracking patient is the center of the healthcare process.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "loinc",
      "uri": "http://loinc.org",
      "name": "LOINC code for the element"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.extension:birthPlace",
        "path": "Patient.extension",
        "sliceName": "birthPlace",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.kemkes.go.id/r4/StructureDefinition/birthPlace"
            ]
          }
        ]
      },
      {
        "id": "Patient.extension:citizenship",
        "path": "Patient.extension",
        "sliceName": "citizenship",
        "short": "The patient's legal status as citizen of a country.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.kemkes.go.id/r4/StructureDefinition/patient-citizenship"
            ]
          }
        ]
      },
      {
        "id": "Patient.extension:citizenship.extension:code",
        "path": "Patient.extension.extension",
        "sliceName": "code"
      },
      {
        "id": "Patient.extension:citizenship.extension:code.value[x]",
        "path": "Patient.extension.extension.value[x]",
        "short": "Country code from the ISO 3166 Part 1 2-letter codes",
        "definition": "Nation code representing the citizenship of patient.",
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.kemkes.go.id/r4/ValueSet/iso3166-1-2"
        }
      },
      {
        "id": "Patient.extension:citizenship.extension:code.value[x].coding.system",
        "path": "Patient.extension.extension.value[x].coding.system",
        "min": 1,
        "fixedUri": "https://fhir.kemkes.go.id/r4/ValueSet/iso3166-1-2"
      },
      {
        "id": "Patient.extension:religion",
        "path": "Patient.extension",
        "sliceName": "religion",
        "short": "The patient's professed religious affiliations.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.kemkes.go.id/r4/StructureDefinition/patient-religion"
            ]
          }
        ]
      },
      {
        "id": "Patient.extension:religion.value[x].coding.system",
        "path": "Patient.extension.value[x].coding.system",
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation"
      },
      {
        "id": "Patient.extension:religion.value[x].coding.code",
        "path": "Patient.extension.value[x].coding.code",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-ReligiousAffiliation"
        }
      },
      {
        "id": "Patient.extension:citizenshipStatus",
        "path": "Patient.extension",
        "sliceName": "citizenshipStatus",
        "short": "Extensions Element for Citizenship Status",
        "definition": "Citizenship Status in Indonesia are split into native / Warga Negara Indonesia (WNI) or foreign citizen / Warga Negara Asing (WNA)",
        "comment": "WNI : Warga Negara Indonesia \r\nWNA : Warga Negara Asing",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.kemkes.go.id/r4/StructureDefinition/citizenshipStatus"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.extension:citizenshipStatus.value[x]",
        "path": "Patient.extension.value[x]",
        "code": [
          {
            "version": "1",
            "code": "WNI",
            "system": "https://terminology.kemkes.go.id/v1-0101",
            "display": "WNI"
          },
          {
            "version": "1",
            "code": "WNA",
            "system": "https://terminology.kemkes.go.id/v1-0101",
            "display": "WNA"
          }
        ],
        "short": "WNI / WNA Status",
        "definition": "WNI = Warga Negara Indonesia\r\nWNA = Warga Negara Asing"
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "definition": "An identifier for this patient. At least one identifier, the IHS Number is mandatory.",
        "min": 1
      },
      {
        "id": "Patient.identifier.use",
        "path": "Patient.identifier.use",
        "definition": "The purpose of this identifier. For IHS Number must equal \"official\"."
      },
      {
        "id": "Patient.identifier.type",
        "path": "Patient.identifier.type",
        "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose. For IHS Number must equal \"IHS\"."
      },
      {
        "id": "Patient.identifier.system",
        "path": "Patient.identifier.system",
        "definition": "For IHS Number, \"system\" must equal to \"https://fhir.kemkes.go.id/id/ihs-number\"\r\nFor NIK, \"system\" must equal to \"https://fhir.kemkes.go.id/id/nik\"",
        "min": 1
      },
      {
        "id": "Patient.identifier.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1
      },
      {
        "id": "Patient.name.text",
        "path": "Patient.name.text",
        "min": 1
      },
      {
        "id": "Patient.birthDate.extension:birthTime",
        "path": "Patient.birthDate.extension",
        "sliceName": "birthTime",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.kemkes.go.id/r4/StructureDefinition/patient-birthTime"
            ]
          }
        ]
      },
      {
        "id": "Patient.birthDate.extension:birthTime.value[x]",
        "path": "Patient.birthDate.extension.value[x]",
        "short": "Datetime of birth",
        "definition": "The time of day that the patient was born. This includes the date to ensure that the timezone information can be communicated effectively.",
        "comment": "Datetime of birth."
      },
      {
        "id": "Patient.address.extension:administrativeCode",
        "path": "Patient.address.extension",
        "sliceName": "administrativeCode",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.kemkes.go.id/r4/StructureDefinition/AdministrativeCode"
            ]
          }
        ]
      },
      {
        "id": "Patient.address.extension:administrativeCode.extension",
        "path": "Patient.address.extension.extension",
        "min": 2
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "short": "Country ISO 3166 2 letter code"
      },
      {
        "id": "Patient.multipleBirth[x]",
        "path": "Patient.multipleBirth[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Patient.multipleBirth[x]:multipleBirthInteger",
        "path": "Patient.multipleBirth[x]",
        "sliceName": "multipleBirthInteger",
        "definition": "Indicates whether the patient was part of a multiple birth. The value should be either 0 (not part of a multiple birth) or 1 (part of a multiple birth).",
        "comment": "Allowed values are 0 or 1. 0 indicates no multiple birth, and 1 indicates a multiple birth.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ]
      }
    ]
  }
}