{
  "resourceType": "StructureDefinition",
  "id": "Patient",
  "meta": {
    "lastUpdated": "2021-03-23T10:01:21.242+00:00"
  },
  "url": "http://dedalus-group.com/fhir/StructureDefinition/Patient",
  "name": "Patient",
  "status": "draft",
  "date": "2020-12-11T08:35:31.5591144+00:00",
  "description": "Patient in PatientAdmin",
  "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.meta",
        "path": "Patient.meta"
      },
      {
        "id": "Patient.meta.tag",
        "path": "Patient.meta.tag",
        "max": "0"
      },
      {
        "id": "Patient.implicitRules",
        "path": "Patient.implicitRules",
        "max": "0"
      },
      {
        "id": "Patient.language",
        "path": "Patient.language",
        "max": "0"
      },
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.extension:Religion",
        "path": "Patient.extension",
        "sliceName": "Religion",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/patient-religion"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-17"
          }
        ]
      },
      {
        "id": "Patient.extension:Religion.id",
        "path": "Patient.extension.id",
        "mustSupport": false
      },
      {
        "id": "Patient.extension:Religion.value[x]",
        "path": "Patient.extension.value[x]",
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-17"
          }
        ]
      },
      {
        "id": "Patient.extension:Religion.value[x].id",
        "path": "Patient.extension.value[x].id",
        "mustSupport": false
      },
      {
        "id": "Patient.extension:Religion.value[x].coding.id",
        "path": "Patient.extension.value[x].coding.id",
        "mustSupport": false
      },
      {
        "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.version",
        "path": "Patient.extension.value[x].coding.version",
        "max": "0"
      },
      {
        "id": "Patient.extension:Religion.value[x].coding.code",
        "path": "Patient.extension.value[x].coding.code",
        "min": 1,
        "binding": {
          "strength": "preferred",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-ReligiousAffiliation"
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-17.1"
          }
        ]
      },
      {
        "id": "Patient.extension:Religion.value[x].coding.display",
        "path": "Patient.extension.value[x].coding.display",
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-17.2"
          }
        ]
      },
      {
        "id": "Patient.extension:Religion.value[x].coding.userSelected",
        "path": "Patient.extension.value[x].coding.userSelected",
        "max": "0"
      },
      {
        "id": "Patient.extension:Nationality",
        "path": "Patient.extension",
        "sliceName": "Nationality",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/patient-nationality"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-28"
          }
        ]
      },
      {
        "id": "Patient.extension:Nationality.extension",
        "path": "Patient.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.extension:Nationality.extension:code",
        "path": "Patient.extension.extension",
        "sliceName": "code",
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-28"
          }
        ]
      },
      {
        "id": "Patient.extension:Nationality.extension:code.value[x].coding.code",
        "path": "Patient.extension.extension.value[x].coding.code",
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-28.1"
          }
        ]
      },
      {
        "id": "Patient.extension:Nationality.extension:code.value[x].coding.display",
        "path": "Patient.extension.extension.value[x].coding.display",
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-28.2"
          }
        ]
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type.coding.code"
            }
          ],
          "description": "Use for MR and SS",
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Patient.identifier.use",
        "path": "Patient.identifier.use",
        "fixedCode": "usual"
      },
      {
        "id": "Patient.identifier.type",
        "path": "Patient.identifier.type",
        "min": 1
      },
      {
        "id": "Patient.identifier.type.coding",
        "path": "Patient.identifier.type.coding",
        "min": 1
      },
      {
        "id": "Patient.identifier.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "min": 1
      },
      {
        "id": "Patient.identifier.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "label": "PV1-3.5",
        "min": 1
      },
      {
        "id": "Patient.identifier.type.coding.userSelected",
        "path": "Patient.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Patient.identifier.system",
        "path": "Patient.identifier.system",
        "label": "PV1-3.4 Assigning Authority",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.\r\nMapping of Assigning Authority to URL???",
        "min": 1
      },
      {
        "id": "Patient.identifier.value",
        "path": "Patient.identifier.value",
        "label": "PV1-3.1 PID",
        "min": 1
      },
      {
        "id": "Patient.identifier.assigner",
        "path": "Patient.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Patient.identifier:MR",
        "path": "Patient.identifier",
        "sliceName": "MR",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier:MR.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:MR.type.coding",
        "path": "Patient.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier:MR.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v2-0203"
      },
      {
        "id": "Patient.identifier:MR.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "MR"
      },
      {
        "id": "Patient.identifier:MR.type.coding.userSelected",
        "path": "Patient.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Patient.identifier:MR.system",
        "path": "Patient.identifier.system",
        "label": "PV1-3.4 Assigning Authority",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-3.4"
          }
        ]
      },
      {
        "id": "Patient.identifier:MR.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-3.1"
          }
        ]
      },
      {
        "id": "Patient.identifier:SSN",
        "path": "Patient.identifier",
        "sliceName": "SSN",
        "max": "1",
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-19"
          }
        ]
      },
      {
        "id": "Patient.identifier:SSN.type",
        "path": "Patient.identifier.type",
        "min": 1
      },
      {
        "id": "Patient.identifier:SSN.type.coding",
        "path": "Patient.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier:SSN.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v2-0203"
      },
      {
        "id": "Patient.identifier:SSN.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "SS",
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-3.5",
            "comment": "fix value, if SSN as identifier comes from PID-19"
          }
        ]
      },
      {
        "id": "Patient.identifier:SSN.type.coding.userSelected",
        "path": "Patient.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Patient.identifier:SSN.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-19, PID-3.1",
            "comment": "If comes from PID-3.1, PID-3.5 must be 'SS'"
          }
        ]
      },
      {
        "id": "Patient.identifier:SSN.period",
        "path": "Patient.identifier.period",
        "max": "0"
      },
      {
        "id": "Patient.identifier:SSN.assigner",
        "path": "Patient.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "max": "1"
      },
      {
        "id": "Patient.name.id",
        "path": "Patient.name.id",
        "max": "0"
      },
      {
        "id": "Patient.name.use",
        "path": "Patient.name.use",
        "fixedCode": "official"
      },
      {
        "id": "Patient.name.text",
        "path": "Patient.name.text",
        "mustSupport": false
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://fhir.de/StructureDefinition/humanname-namenszusatz"
        }
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "max": "1"
      },
      {
        "id": "Patient.name.prefix",
        "path": "Patient.name.prefix",
        "max": "1"
      },
      {
        "id": "Patient.name.suffix",
        "path": "Patient.name.suffix",
        "max": "1"
      },
      {
        "id": "Patient.name.period",
        "path": "Patient.name.period",
        "max": "0",
        "mustSupport": false
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "type": [
          {
            "code": "ContactPoint",
            "profile": [
              "http://dedalus-group.com/fhir/StructureDefinition/UContactPoint"
            ]
          }
        ]
      },
      {
        "id": "Patient.telecom.id",
        "path": "Patient.telecom.id",
        "mustSupport": false
      },
      {
        "id": "Patient.gender.extension",
        "path": "Patient.gender.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.gender.extension:gender-amtlich-de",
        "path": "Patient.gender.extension",
        "sliceName": "gender-amtlich-de",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.de/StructureDefinition/gender-amtlich-de"
            ]
          }
        ]
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-29 (DateTime), PID-30 (Boolean)"
          }
        ]
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://dedalus-group.com/fhir/StructureDefinition/UAddress"
            ]
          }
        ]
      },
      {
        "id": "Patient.maritalStatus",
        "path": "Patient.maritalStatus",
        "max": "0",
        "mustSupport": false
      },
      {
        "id": "Patient.maritalStatus.id",
        "path": "Patient.maritalStatus.id",
        "mustSupport": false
      },
      {
        "id": "Patient.maritalStatus.coding.id",
        "path": "Patient.maritalStatus.coding.id",
        "mustSupport": false
      },
      {
        "id": "Patient.maritalStatus.coding.system",
        "path": "Patient.maritalStatus.coding.system",
        "mustSupport": false
      },
      {
        "id": "Patient.maritalStatus.coding.version",
        "path": "Patient.maritalStatus.coding.version",
        "mustSupport": false
      },
      {
        "id": "Patient.maritalStatus.coding.code",
        "path": "Patient.maritalStatus.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/marital-status"
        }
      },
      {
        "id": "Patient.maritalStatus.coding.userSelected",
        "path": "Patient.maritalStatus.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Patient.multipleBirth[x]",
        "path": "Patient.multipleBirth[x]",
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-24"
          }
        ]
      },
      {
        "id": "Patient.photo",
        "path": "Patient.photo",
        "max": "0"
      },
      {
        "id": "Patient.contact",
        "path": "Patient.contact",
        "max": "0"
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-15"
          }
        ]
      },
      {
        "id": "Patient.communication.id",
        "path": "Patient.communication.id",
        "mustSupport": false
      },
      {
        "id": "Patient.communication.language.id",
        "path": "Patient.communication.language.id",
        "mustSupport": false
      },
      {
        "id": "Patient.communication.language.coding.id",
        "path": "Patient.communication.language.coding.id",
        "mustSupport": false
      },
      {
        "id": "Patient.communication.language.coding.system",
        "path": "Patient.communication.language.coding.system",
        "mustSupport": false
      },
      {
        "id": "Patient.communication.language.coding.version",
        "path": "Patient.communication.language.coding.version",
        "mustSupport": false
      },
      {
        "id": "Patient.communication.language.coding.code",
        "path": "Patient.communication.language.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/languages"
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-15.1"
          }
        ]
      },
      {
        "id": "Patient.communication.language.coding.display",
        "path": "Patient.communication.language.coding.display",
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-15.2"
          }
        ]
      },
      {
        "id": "Patient.communication.language.coding.userSelected",
        "path": "Patient.communication.language.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Patient.communication.language.text",
        "path": "Patient.communication.language.text",
        "mustSupport": false,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-15.2"
          }
        ]
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.generalPractitioner.reference",
        "path": "Patient.generalPractitioner.reference",
        "min": 1
      },
      {
        "id": "Patient.generalPractitioner.type",
        "path": "Patient.generalPractitioner.type",
        "min": 1
      },
      {
        "id": "Patient.generalPractitioner.identifier",
        "path": "Patient.generalPractitioner.identifier",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner.identifier.type.coding.version",
        "path": "Patient.generalPractitioner.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner.identifier.system",
        "path": "Patient.generalPractitioner.identifier.system",
        "fixedUri": "http://fhir.de/NamingSystem/kbv/lanr"
      },
      {
        "id": "Patient.generalPractitioner.identifier.value",
        "path": "Patient.generalPractitioner.identifier.value",
        "fixedString": "LANR"
      },
      {
        "id": "Patient.generalPractitioner.identifier.period",
        "path": "Patient.generalPractitioner.identifier.period",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner.identifier.assigner",
        "path": "Patient.generalPractitioner.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner.display",
        "path": "Patient.generalPractitioner.display",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner:Practitioner",
        "path": "Patient.generalPractitioner",
        "sliceName": "Practitioner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://dedalus-group.com/fhir/StructureDefinition/Practitioner"
            ]
          }
        ]
      },
      {
        "id": "Patient.generalPractitioner:Practitioner.reference",
        "path": "Patient.generalPractitioner.reference",
        "min": 1
      },
      {
        "id": "Patient.generalPractitioner:Practitioner.type",
        "path": "Patient.generalPractitioner.type",
        "min": 1,
        "fixedUri": "Practitioner"
      },
      {
        "id": "Patient.generalPractitioner:Practitioner.identifier",
        "path": "Patient.generalPractitioner.identifier",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner:Practitioner.display",
        "path": "Patient.generalPractitioner.display",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner:Organization",
        "path": "Patient.generalPractitioner",
        "sliceName": "Organization",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://dedalus-group.com/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "Patient.generalPractitioner:Organization.reference",
        "path": "Patient.generalPractitioner.reference",
        "min": 1
      },
      {
        "id": "Patient.generalPractitioner:Organization.type",
        "path": "Patient.generalPractitioner.type",
        "min": 1
      },
      {
        "id": "Patient.generalPractitioner:Organization.identifier",
        "path": "Patient.generalPractitioner.identifier",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner:Organization.display",
        "path": "Patient.generalPractitioner.display",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://dedalus-group.com/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "Patient.managingOrganization.reference",
        "path": "Patient.managingOrganization.reference",
        "min": 1
      },
      {
        "id": "Patient.managingOrganization.type",
        "path": "Patient.managingOrganization.type",
        "min": 1,
        "fixedUri": "Organization"
      },
      {
        "id": "Patient.managingOrganization.identifier",
        "path": "Patient.managingOrganization.identifier",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization.display",
        "path": "Patient.managingOrganization.display",
        "max": "0"
      }
    ]
  }
}