{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2024-05-16T11:08:43.535655+00:00"
  },
  "url": "http://fhir.alp/StructureDefinition/AlpCorePatient-copy",
  "name": "AlpCorePatient-copy",
  "status": "draft",
  "date": "2020-07-14T10:12:11.5436506+00:00",
  "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",
        "path": "Patient",
        "short": "Information about an individual receiving health care services",
        "definition": "Demographics and other administrative information about an individual receiving care or other health-related services.",
        "constraint": [
          {
            "key": "pat-lang-1",
            "severity": "error",
            "human": "Max one language shall be the preferred one.",
            "expression": "communication.where(preferred=true).count() <= 1"
          }
        ]
      },
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "min": 1
      },
      {
        "id": "Patient.extension:birthPlace",
        "path": "Patient.extension",
        "sliceName": "birthPlace",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/patient-birthPlace"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.extension:disability",
        "path": "Patient.extension",
        "sliceName": "disability",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/patient-disability"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:CitizenIdentifier",
        "path": "Patient.identifier",
        "sliceName": "CitizenIdentifier",
        "short": "The Alpha citizen id for this patient",
        "definition": "The Alpha citizen id for this patient as contained in the national citizen registry.",
        "max": "1"
      },
      {
        "id": "Patient.identifier:CitizenIdentifier.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://www.miniaf.alp/citreg"
      },
      {
        "id": "Patient.identifier:CitizenIdentifier.period",
        "path": "Patient.identifier.period",
        "max": "0"
      },
      {
        "id": "Patient.identifier:CitizenIdentifier.assigner",
        "path": "Patient.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "min": 1
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "min": 1
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "mustSupport": true
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://fhir.alp/StructureDefinition/AlpCoreAddress"
            ]
          }
        ]
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "condition": [
          "pat-lang-1"
        ]
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.alp/StructureDefinition/AlpCoreOrganization"
            ]
          }
        ]
      }
    ]
  }
}