{
  "resourceType": "StructureDefinition",
  "url": "https://example1.org/fhir/StructureDefinition/MyPatient",
  "name": "MyPatient_v29",
  "status": "draft",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "code": [
          {
            "userSelected": true
          }
        ],
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "value"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.identifier:AK",
        "path": "Patient.identifier",
        "sliceName": "AK",
        "definition": "An identifier for this patient. // Lietuvos piliečio asmens kodas / Personal Code; Pastaba: jei asmuo turi asmens kodą",
        "max": "1"
      },
      {
        "id": "Patient.identifier:AK.system",
        "path": "Patient.identifier.system",
        "fixedUri": "http://esveikata.lt/Identifier/PersonalCode",
        "example": [
          {
            "label": "Lietuvos piliečio asmens kodas",
            "valueUri": "37512092729"
          }
        ]
      },
      {
        "id": "Patient.identifier:EHI",
        "path": "Patient.identifier",
        "sliceName": "EHI",
        "definition": "An identifier for this patient. // Unikalus paciento ESI numeris / Patient EHI No",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier:EHI.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://esveikata.lt/Identifier/Patient/ESI",
        "example": [
          {
            "label": "Unikalus paciento ESI numeris",
            "valueUri": "232233"
          }
        ]
      },
      {
        "id": "Patient.identifier:DIK",
        "path": "Patient.identifier",
        "sliceName": "DIK",
        "definition": "An identifier for this patient.// Asmens draudžiamojo identifikacinis kodas iš draudžiamųjų privalomuoju sveikatos draudimo registro / Insurance No.",
        "max": "1"
      },
      {
        "id": "Patient.identifier:DIK.system",
        "path": "Patient.identifier.system",
        "fixedUri": "http://esveikata.lt/Identifier/Patient/DIK",
        "example": [
          {
            "label": "Asmens draudžiamojo identifikacinis kodas iš draudžiamųjų privalomuoju sveikatos draudimo registro",
            "valueUri": "232233"
          }
        ]
      },
      {
        "id": "Patient.identifier:SVEIDRA",
        "path": "Patient.identifier",
        "sliceName": "SVEIDRA",
        "definition": "An identifier for this patient. // Asmens identifikatorius SVEIDRA IS / Person identifier in SVEIDRA IS.",
        "max": "1"
      },
      {
        "id": "Patient.identifier:SVEIDRA.system",
        "path": "Patient.identifier.system",
        "fixedUri": "http://esveikata.lt/Identifier/Patient/SveidraID",
        "example": [
          {
            "label": "Asmens identifikatorius SVEIDRA IS / Person identifier in SVEIDRA IS",
            "valueUri": "1073765"
          }
        ]
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "definition": "A name associated with the individual. // Paciento vardo/pavardės duomenys."
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "definition": "The part of a name that links to the genealogy. //Paciento pavardė (-ės)",
        "example": [
          {
            "label": "Pavardė",
            "valueString": "Pavardenis"
          }
        ]
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "definition": "Given name. // Paciento vardas (-ai).",
        "example": [
          {
            "label": "Vardas",
            "valueString": "Vardenis"
          }
        ]
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "value"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.telecom.value",
        "path": "Patient.telecom.value",
        "definition": "The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). //  Paciento telefono numeris",
        "max": "0"
      },
      {
        "id": "Patient.telecom:Telephone",
        "path": "Patient.telecom",
        "sliceName": "Telephone",
        "definition": "A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.// Paciento telefono numeris / Telephone number",
        "max": "1"
      },
      {
        "id": "Patient.telecom:Telephone.system",
        "path": "Patient.telecom.system",
        "max": "0"
      },
      {
        "id": "Patient.telecom:Telephone.value",
        "path": "Patient.telecom.value",
        "definition": "The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). // Paciento telefono numeris / Telephone number",
        "example": [
          {
            "label": "phone",
            "valueString": "+37067800000"
          }
        ]
      },
      {
        "id": "Patient.telecom:Telephone.use",
        "path": "Patient.telecom.use",
        "max": "0"
      },
      {
        "id": "Patient.telecom:Telephone.rank",
        "path": "Patient.telecom.rank",
        "max": "0"
      },
      {
        "id": "Patient.telecom:Email",
        "path": "Patient.telecom",
        "sliceName": "Email",
        "definition": "A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted. // Paciento elektroninio pašto adresas / E-mail address",
        "max": "1"
      },
      {
        "id": "Patient.telecom:Email.value",
        "path": "Patient.telecom.value",
        "definition": "The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). //Paciento elektroninio pašto adresas / E-mail address",
        "example": [
          {
            "label": "email",
            "valueString": "vardenis.pavardenis@nortal.com"
          }
        ]
      },
      {
        "id": "Patient.telecom:Email.use",
        "path": "Patient.telecom.use",
        "max": "0"
      },
      {
        "id": "Patient.telecom:Email.rank",
        "path": "Patient.telecom.rank",
        "max": "0"
      },
      {
        "id": "Patient.telecom:Email.period",
        "path": "Patient.telecom.period",
        "max": "0"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "definition": "Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes. // Paciento lytis.",
        "example": [
          {
            "label": "Paciento lytis",
            "valueCode": "Vyras"
          }
        ]
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "definition": "The date of birth for the individual. // Paciento gimimo diena / Patient birthday.",
        "example": [
          {
            "label": "Gimimo diena",
            "valueDate": "1984-04-02"
          }
        ]
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "definition": "Indicates if the individual is deceased or not. // Paciento mirties data / Date of death."
      },
      {
        "id": "Patient.address.extension:addressIdentifier",
        "path": "Patient.address.extension",
        "sliceName": "addressIdentifier",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example1.org/fhir/StructureDefinition/MyExtension"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.maritalStatus",
        "path": "Patient.maritalStatus",
        "definition": "This field contains a patient's most recent marital (civil) status. // Paciento šeimyninė padėtis.",
        "example": [
          {
            "label": "Šeimyninė padėtis",
            "valueCodeableConcept": {
              "coding": [
                {
                  "code": "M",
                  "display": "Vedęs / Ištekėjusi"
                }
              ]
            }
          }
        ]
      },
      {
        "id": "Patient.multipleBirth[x]",
        "path": "Patient.multipleBirth[x]",
        "definition": "Indicates whether the patient is part of a multiple (boolean) or indicates the actual birth order (integer). // Daugiavaisio nėštumo indikatorius"
      },
      {
        "id": "Patient.photo",
        "path": "Patient.photo",
        "definition": "Image of the patient. // Paciento veido atvaizdas / Patient photo",
        "max": "1"
      },
      {
        "id": "Patient.photo.url",
        "path": "Patient.photo.url",
        "fixedUrl": "http://esveikata.lt/Profile/ltnhr-patient#binaryPhoto",
        "example": [
          {
            "label": "Paciento veido atvaizdas",
            "valueUrl": "Media/123546789"
          }
        ]
      },
      {
        "id": "Patient.contact.relationship",
        "path": "Patient.contact.relationship",
        "definition": "The nature of the relationship between the patient and the contact person. // Nuoroda į susijusio asmens duomenis / Reference to related person."
      },
      {
        "id": "Patient.contact.telecom",
        "path": "Patient.contact.telecom",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "value"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.contact.telecom:Telephone",
        "path": "Patient.contact.telecom",
        "sliceName": "Telephone",
        "max": "1"
      },
      {
        "id": "Patient.contact.telecom:Telephone.value",
        "path": "Patient.contact.telecom.value",
        "definition": "The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). //Susijusio asmens telefono numeris / Related person telephone number.",
        "example": [
          {
            "label": "phone",
            "valueString": "+37067800000"
          }
        ]
      },
      {
        "id": "Patient.contact.telecom:Telephone.use",
        "path": "Patient.contact.telecom.use",
        "max": "0"
      },
      {
        "id": "Patient.contact.telecom:Telephone.rank",
        "path": "Patient.contact.telecom.rank",
        "max": "0"
      },
      {
        "id": "Patient.contact.telecom:Telephone.period",
        "path": "Patient.contact.telecom.period",
        "max": "0"
      },
      {
        "id": "Patient.contact.telecom:Email",
        "path": "Patient.contact.telecom",
        "sliceName": "Email"
      },
      {
        "id": "Patient.contact.telecom:Email.value",
        "path": "Patient.contact.telecom.value",
        "definition": "The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). // Susijusio asmens elektroninio pašto adresas / Related person e-mail.",
        "example": [
          {
            "label": "email",
            "valueString": "vardenis.pavardenis@nortal.com"
          }
        ]
      },
      {
        "id": "Patient.contact.telecom:Email.use",
        "path": "Patient.contact.telecom.use",
        "max": "0"
      },
      {
        "id": "Patient.contact.telecom:Email.rank",
        "path": "Patient.contact.telecom.rank",
        "max": "0"
      },
      {
        "id": "Patient.contact.telecom:Email.period",
        "path": "Patient.contact.telecom.period",
        "max": "0"
      },
      {
        "id": "Patient.contact.address",
        "path": "Patient.contact.address",
        "max": "0"
      },
      {
        "id": "Patient.contact.gender",
        "path": "Patient.contact.gender",
        "max": "0"
      }
    ]
  }
}