{
  "resourceType": "StructureDefinition",
  "url": "https://digives.gov.lv/fhir/StructureDefinition/MedicalMeta",
  "version": "0.1",
  "name": "MedicalMeta",
  "title": "Medicīnas metadati",
  "status": "draft",
  "date": "2025-05-30",
  "publisher": "LDVC",
  "fhirVersion": "5.0.0",
  "kind": "complex-type",
  "abstract": false,
  "type": "Meta",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Meta",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Meta.profile",
        "path": "Meta.profile",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Meta.tag",
        "path": "Meta.tag",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "closed"
        },
        "min": 2,
        "max": "4"
      },
      {
        "id": "Meta.tag:authorMedicalInstitution",
        "path": "Meta.tag",
        "sliceName": "authorMedicalInstitution",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Meta.tag:authorMedicalInstitution.id",
        "path": "Meta.tag.id",
        "fixedString": "authorMedicalInstitution"
      },
      {
        "id": "Meta.tag:authorMedicalInstitution.system",
        "path": "Meta.tag.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.23"
      },
      {
        "id": "Meta.tag:authorMedicalInstitution.code",
        "path": "Meta.tag.code",
        "min": 1
      },
      {
        "id": "Meta.tag:authorMedicalInstitution.display",
        "path": "Meta.tag.display",
        "min": 1
      },
      {
        "id": "Meta.tag:entererMedicalPerson",
        "path": "Meta.tag",
        "sliceName": "entererMedicalPerson",
        "max": "1"
      },
      {
        "id": "Meta.tag:entererMedicalPerson.id",
        "path": "Meta.tag.id",
        "min": 1,
        "fixedString": "entererMedicalPerson"
      },
      {
        "id": "Meta.tag:entererMedicalPerson.system",
        "path": "Meta.tag.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.1"
      },
      {
        "id": "Meta.tag:entererMedicalPerson.code",
        "path": "Meta.tag.code",
        "min": 1
      },
      {
        "id": "Meta.tag:entererMedicalPerson.display",
        "path": "Meta.tag.display",
        "min": 1
      },
      {
        "id": "Meta.tag:entererSystem",
        "path": "Meta.tag",
        "sliceName": "entererSystem",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Meta.tag:entererSystem.id",
        "path": "Meta.tag.id",
        "min": 1,
        "fixedString": "entererSystem"
      },
      {
        "id": "Meta.tag:entererSystem.system",
        "path": "Meta.tag.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.3"
      },
      {
        "id": "Meta.tag:entererSystem.code",
        "path": "Meta.tag.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://digives.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.3"
        }
      },
      {
        "id": "Meta.tag:entererSystem.display",
        "path": "Meta.tag.display",
        "min": 1
      },
      {
        "id": "Meta.tag:entererMedicalPersonRole",
        "path": "Meta.tag",
        "sliceName": "entererMedicalPersonRole"
      },
      {
        "id": "Meta.tag:entererMedicalPersonRole.id",
        "path": "Meta.tag.id",
        "min": 1,
        "fixedString": "entererMedicalPersonRole"
      },
      {
        "id": "Meta.tag:entererMedicalPersonRole.system",
        "path": "Meta.tag.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.37"
      },
      {
        "id": "Meta.tag:entererMedicalPersonRole.code",
        "path": "Meta.tag.code",
        "min": 1
      }
    ]
  }
}