{
  "resourceType": "StructureDefinition",
  "id": "EEBase-RelatedPerson",
  "url": "https://hl7.ee/fhir/StructureDefinition/EEBase-RelatedPerson",
  "version": "1.0.0",
  "name": "EEBaseRelatedPerson",
  "title": "EEBase RelatedPerson",
  "status": "draft",
  "date": "2022-11-21T13:22:24.2179018+00:00",
  "publisher": "HL7 EE",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "RelatedPerson",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "RelatedPerson.identifier",
        "path": "RelatedPerson.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "RelatedPerson.identifier:est-id",
        "path": "RelatedPerson.identifier",
        "sliceName": "est-id",
        "short": "Estonian personal identification",
        "definition": "Eesti isikukoodi identifikaator",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://hl7.ee/fhir/StructureDefinition/EEBase-ESTID"
            ]
          }
        ]
      },
      {
        "id": "RelatedPerson.identifier:tis-id",
        "path": "RelatedPerson.identifier",
        "sliceName": "tis-id",
        "short": "Person's unique code generated by National Health System",
        "definition": "Isiku unikaalne tunnus, mille alusel saab teda eristada teistest isikutest TIS-is. Saab kasutada nii välimaalaste kui ka tundmatu isiku jaoks (juhtudel, kui puudub Eesti isikukood). Mõeldud andmevahetuseks Tervise infosüsteemiga.",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://hl7.ee/fhir/StructureDefinition/EEBase-TISID"
            ]
          }
        ]
      },
      {
        "id": "RelatedPerson.patient",
        "path": "RelatedPerson.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://hl7.ee/fhir/StructureDefinition/EEBase-Patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "RelatedPerson.relationship",
        "path": "RelatedPerson.relationship",
        "mustSupport": true
      },
      {
        "id": "RelatedPerson.telecom",
        "path": "RelatedPerson.telecom",
        "mustSupport": true
      },
      {
        "id": "RelatedPerson.address",
        "path": "RelatedPerson.address",
        "type": [
          {
            "code": "Address",
            "profile": [
              "https://hl7.ee/fhir/StructureDefinition/EEBase-Address"
            ]
          }
        ]
      },
      {
        "id": "RelatedPerson.communication.language",
        "path": "RelatedPerson.communication.language",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "Language"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean": true
            }
          ],
          "strength": "preferred",
          "valueSet": "http://hl7.org/fhir/ValueSet/all-languages"
        }
      }
    ]
  }
}