{
  "resourceType": "StructureDefinition",
  "id": "profile-document-patient",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-document-patient",
  "name": "DocumentPatient",
  "title": "Document Patient Profile",
  "status": "active",
  "publisher": "Synapxe",
  "description": "Patient details as written in a clinical document (NEHR XML content/Patient), contained in the Composition and listed in its Patient demographics section (LOINC 79191-3). Kept as submitted; not used to identify or validate the patient, which is the Bundle's Patient entry (profile-patient).",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient",
        "path": "Patient",
        "definition": "Patient details as written in a clinical document (NEHR XML content/Patient), kept exactly as the source system submitted them. They are part of the clinical record, not the patient's identity: NEHR identifies and validates the patient from the message's patient block, which is the Bundle's Patient entry (profile-patient) and Composition.subject. The two may differ."
      },
      {
        "id": "Patient.extension:race",
        "path": "Patient.extension",
        "sliceName": "race",
        "definition": "Race of the patient as written in the document.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/ext-race"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "definition": "Patient identifier as written in the document.",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.identifier:nric",
        "path": "Patient.identifier",
        "sliceName": "nric",
        "definition": "NRIC as written in the document.",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier-nric"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier:fin",
        "path": "Patient.identifier",
        "sliceName": "fin",
        "definition": "FIN as written in the document.",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier-fin"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier:others",
        "path": "Patient.identifier",
        "sliceName": "others",
        "definition": "Other identification document (e.g. passport) as written in the document.",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier-others"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier:mrn",
        "path": "Patient.identifier",
        "sliceName": "mrn",
        "definition": "Medical Record Number as written in the document.",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier-mrn"
            ]
          }
        ]
      },
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "max": "0"
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "definition": "Name of the patient as written in the document.",
        "max": "1"
      },
      {
        "id": "Patient.name.id",
        "path": "Patient.name.id",
        "max": "0"
      },
      {
        "id": "Patient.name.extension",
        "path": "Patient.name.extension",
        "max": "0"
      },
      {
        "id": "Patient.name.use",
        "path": "Patient.name.use",
        "patternCode": "official"
      },
      {
        "id": "Patient.name.text",
        "path": "Patient.name.text",
        "definition": "Name of the patient."
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "max": "0"
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "max": "0"
      },
      {
        "id": "Patient.name.prefix",
        "path": "Patient.name.prefix",
        "max": "0"
      },
      {
        "id": "Patient.name.suffix",
        "path": "Patient.name.suffix",
        "max": "0"
      },
      {
        "id": "Patient.name.period",
        "path": "Patient.name.period",
        "max": "0"
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "max": "0"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "definition": "Gender of the patient as written in the document."
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "definition": "Date of birth of the patient as written in the document."
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "max": "0"
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "definition": "Address of the patient as written in the document.",
        "max": "1"
      },
      {
        "id": "Patient.address.id",
        "path": "Patient.address.id",
        "max": "0"
      },
      {
        "id": "Patient.address.extension",
        "path": "Patient.address.extension",
        "max": "0"
      },
      {
        "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",
        "definition": "Full address as text."
      },
      {
        "id": "Patient.address.line",
        "path": "Patient.address.line",
        "definition": "Address lines, in order."
      },
      {
        "id": "Patient.address.city",
        "path": "Patient.address.city",
        "definition": "City."
      },
      {
        "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",
        "definition": "Postal code."
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "definition": "Country."
      },
      {
        "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"
      }
    ]
  }
}