{
  "resourceType": "StructureDefinition",
  "url": "http://fhir.cezih.hr/specifikacije/StructureDefinition/HRPatientEuLab",
  "name": "HRPatientEuLab",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.eu/fhir/laboratory/StructureDefinition/Patient-eu-lab",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.extension:sex-for-clinical-use",
        "path": "Patient.extension",
        "sliceName": "sex-for-clinical-use"
      },
      {
        "id": "Patient.extension:sex-for-clinical-use.extension",
        "path": "Patient.extension.extension",
        "min": 1
      },
      {
        "id": "Patient.extension:sex-for-clinical-use.value[x]",
        "path": "Patient.extension.value[x]",
        "type": [
          {
            "code": "base64Binary"
          },
          {
            "code": "boolean"
          },
          {
            "code": "canonical"
          },
          {
            "code": "code"
          },
          {
            "code": "date"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "decimal"
          },
          {
            "code": "id"
          },
          {
            "code": "instant"
          },
          {
            "code": "integer"
          },
          {
            "code": "integer64"
          },
          {
            "code": "markdown"
          },
          {
            "code": "oid"
          },
          {
            "code": "positiveInt"
          },
          {
            "code": "string"
          },
          {
            "code": "time"
          },
          {
            "code": "unsignedInt"
          },
          {
            "code": "uri"
          },
          {
            "code": "url"
          },
          {
            "code": "uuid"
          },
          {
            "code": "Address"
          },
          {
            "code": "Age"
          },
          {
            "code": "Annotation"
          },
          {
            "code": "Attachment"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "CodeableReference"
          },
          {
            "code": "Coding"
          },
          {
            "code": "ContactPoint"
          },
          {
            "code": "Count"
          },
          {
            "code": "Distance"
          },
          {
            "code": "Duration"
          },
          {
            "code": "HumanName"
          },
          {
            "code": "Identifier"
          },
          {
            "code": "Money"
          },
          {
            "code": "Period"
          },
          {
            "code": "Quantity"
          },
          {
            "code": "Range"
          },
          {
            "code": "Ratio"
          },
          {
            "code": "Reference"
          },
          {
            "code": "SampledData"
          },
          {
            "code": "Signature"
          },
          {
            "code": "Timing"
          },
          {
            "code": "ContactDetail"
          },
          {
            "code": "DataRequirement"
          },
          {
            "code": "Expression"
          },
          {
            "code": "ParameterDefinition"
          },
          {
            "code": "RelatedArtifact"
          },
          {
            "code": "TriggerDefinition"
          },
          {
            "code": "UsageContext"
          },
          {
            "code": "Dosage"
          },
          {
            "code": "Meta"
          }
        ]
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Patient.identifier:MBO",
        "path": "Patient.identifier",
        "sliceName": "MBO",
        "max": "1"
      },
      {
        "id": "Patient.identifier:MBO.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.cezih.hr/specifikacije/identifikatori/MBO"
      },
      {
        "id": "Patient.identifier:MBO.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:EuropskaKartica",
        "path": "Patient.identifier",
        "sliceName": "EuropskaKartica",
        "max": "1"
      },
      {
        "id": "Patient.identifier:EuropskaKartica.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.cezih.hr/specifikacije/identifikatori/europska-kartica"
      },
      {
        "id": "Patient.identifier:EuropskaKartica.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:Putovnica",
        "path": "Patient.identifier",
        "sliceName": "Putovnica",
        "max": "1"
      },
      {
        "id": "Patient.identifier:Putovnica.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.cezih.hr/specifikacije/identifikatori/putovnica"
      },
      {
        "id": "Patient.identifier:Putovnica.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:JedinstveniIdentifikatorPacijenta",
        "path": "Patient.identifier",
        "sliceName": "JedinstveniIdentifikatorPacijenta",
        "max": "1"
      },
      {
        "id": "Patient.identifier:JedinstveniIdentifikatorPacijenta.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.cezih.hr/specifikacije/identifikatori/jedinstveni-identifikator-pacijenta"
      },
      {
        "id": "Patient.identifier:JedinstveniIdentifikatorPacijenta.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:OIB",
        "path": "Patient.identifier",
        "sliceName": "OIB"
      },
      {
        "id": "Patient.identifier:OIB.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.cezih.hr/specifikacije/identifikatori/OIB"
      },
      {
        "id": "Patient.identifier:OIB.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:bolesnickiList",
        "path": "Patient.identifier",
        "sliceName": "bolesnickiList",
        "max": "1"
      },
      {
        "id": "Patient.identifier:bolesnickiList.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.cezih.hr/specifikacije/identifikatori/bolesnicki-list"
      },
      {
        "id": "Patient.identifier:bolesnickiList.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "short": "Ime i prezime pacijenta"
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "short": "Prezime pacijenta",
        "min": 1
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "short": "Ime pacijenta",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "short": "Spol",
        "definition": "Spol pacijenta",
        "min": 1
      },
      {
        "id": "Patient.contact.relationship.coding.display.extension:translation",
        "path": "Patient.contact.relationship.coding.display.extension",
        "sliceName": "translation"
      },
      {
        "id": "Patient.contact.relationship.coding.display.extension:translation.value[x]",
        "path": "Patient.contact.relationship.coding.display.extension.value[x]",
        "type": [
          {
            "code": "base64Binary"
          },
          {
            "code": "boolean"
          },
          {
            "code": "canonical"
          },
          {
            "code": "code"
          },
          {
            "code": "date"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "decimal"
          },
          {
            "code": "id"
          },
          {
            "code": "instant"
          },
          {
            "code": "integer"
          },
          {
            "code": "integer64"
          },
          {
            "code": "markdown"
          },
          {
            "code": "oid"
          },
          {
            "code": "positiveInt"
          },
          {
            "code": "string"
          },
          {
            "code": "time"
          },
          {
            "code": "unsignedInt"
          },
          {
            "code": "uri"
          },
          {
            "code": "url"
          },
          {
            "code": "uuid"
          },
          {
            "code": "Address"
          },
          {
            "code": "Age"
          },
          {
            "code": "Annotation"
          },
          {
            "code": "Attachment"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "CodeableReference"
          },
          {
            "code": "Coding"
          },
          {
            "code": "ContactPoint"
          },
          {
            "code": "Count"
          },
          {
            "code": "Distance"
          },
          {
            "code": "Duration"
          },
          {
            "code": "HumanName"
          },
          {
            "code": "Identifier"
          },
          {
            "code": "Money"
          },
          {
            "code": "Period"
          },
          {
            "code": "Quantity"
          },
          {
            "code": "Range"
          },
          {
            "code": "Ratio"
          },
          {
            "code": "Reference"
          },
          {
            "code": "SampledData"
          },
          {
            "code": "Signature"
          },
          {
            "code": "Timing"
          },
          {
            "code": "ContactDetail"
          },
          {
            "code": "DataRequirement"
          },
          {
            "code": "Expression"
          },
          {
            "code": "ParameterDefinition"
          },
          {
            "code": "RelatedArtifact"
          },
          {
            "code": "TriggerDefinition"
          },
          {
            "code": "UsageContext"
          },
          {
            "code": "Dosage"
          },
          {
            "code": "Meta"
          }
        ]
      },
      {
        "id": "Patient.contact.relationship.text.extension:translation",
        "path": "Patient.contact.relationship.text.extension",
        "sliceName": "translation"
      },
      {
        "id": "Patient.contact.relationship.text.extension:translation.value[x]",
        "path": "Patient.contact.relationship.text.extension.value[x]",
        "type": [
          {
            "code": "base64Binary"
          },
          {
            "code": "boolean"
          },
          {
            "code": "canonical"
          },
          {
            "code": "code"
          },
          {
            "code": "date"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "decimal"
          },
          {
            "code": "id"
          },
          {
            "code": "instant"
          },
          {
            "code": "integer"
          },
          {
            "code": "integer64"
          },
          {
            "code": "markdown"
          },
          {
            "code": "oid"
          },
          {
            "code": "positiveInt"
          },
          {
            "code": "string"
          },
          {
            "code": "time"
          },
          {
            "code": "unsignedInt"
          },
          {
            "code": "uri"
          },
          {
            "code": "url"
          },
          {
            "code": "uuid"
          },
          {
            "code": "Address"
          },
          {
            "code": "Age"
          },
          {
            "code": "Annotation"
          },
          {
            "code": "Attachment"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "CodeableReference"
          },
          {
            "code": "Coding"
          },
          {
            "code": "ContactPoint"
          },
          {
            "code": "Count"
          },
          {
            "code": "Distance"
          },
          {
            "code": "Duration"
          },
          {
            "code": "HumanName"
          },
          {
            "code": "Identifier"
          },
          {
            "code": "Money"
          },
          {
            "code": "Period"
          },
          {
            "code": "Quantity"
          },
          {
            "code": "Range"
          },
          {
            "code": "Ratio"
          },
          {
            "code": "Reference"
          },
          {
            "code": "SampledData"
          },
          {
            "code": "Signature"
          },
          {
            "code": "Timing"
          },
          {
            "code": "ContactDetail"
          },
          {
            "code": "DataRequirement"
          },
          {
            "code": "Expression"
          },
          {
            "code": "ParameterDefinition"
          },
          {
            "code": "RelatedArtifact"
          },
          {
            "code": "TriggerDefinition"
          },
          {
            "code": "UsageContext"
          },
          {
            "code": "Dosage"
          },
          {
            "code": "Meta"
          }
        ]
      }
    ]
  }
}