{
  "resourceType": "StructureDefinition",
  "id": "Patient",
  "meta": {
    "versionId": "44",
    "lastUpdated": "2022-02-26T23:46:50.207+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/Patient",
  "version": "4.0.1",
  "name": "Patient",
  "status": "active",
  "date": "2022-07-08T15:10:50.6856647+00:00",
  "publisher": "Health Level Seven International (Patient Administration)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/fhir"
        }
      ]
    },
    {
      "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",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.extension:birthPlace",
        "path": "Patient.extension",
        "sliceName": "birthPlace",
        "min": 0,
        "max": "1",
        "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": [
              "http://hl7.org/fhir/StructureDefinition/patient-citizenship"
            ]
          }
        ]
      },
      {
        "id": "Patient.extension:citizenship.extension",
        "path": "Patient.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.extension:citizenship.extension:code",
        "path": "Patient.extension.extension",
        "sliceName": "code",
        "min": 0
      },
      {
        "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": "http://hl7.org/fhir/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": "http://hl7.org/fhir/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": [
              "http://hl7.org/fhir/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.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.text",
        "path": "Patient.name.text",
        "min": 1
      },
      {
        "id": "Patient.birthDate.extension",
        "path": "Patient.birthDate.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.birthDate.extension:birthTime",
        "path": "Patient.birthDate.extension",
        "sliceName": "birthTime",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/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",
        "path": "Patient.address.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "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",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 2
      },
      {
        "id": "Patient.address.extension:administrativeCode.extension:city",
        "path": "Patient.address.extension.extension",
        "sliceName": "city",
        "min": 1
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "short": "Country ISO 3166 2 letter code"
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kemkes.go.id/r4/StructureDefinition/Organization",
              "https://fhir.kemkes.go.id/r4/StructureDefinition/Practitioner",
              "https://fhir.kemkes.go.id/r4/StructureDefinition/PractitionerRole"
            ]
          }
        ]
      }
    ]
  }
}