{
  "resourceType": "StructureDefinition",
  "url": "https://lab.vvis.gov.lv/fhir/StructureDefinition/Composition/LaboratoryComposition",
  "name": "Composition",
  "status": "draft",
  "fhirVersion": "4.3.0",
  "kind": "resource",
  "abstract": false,
  "type": "Composition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Composition.meta",
        "path": "Composition.meta",
        "max": "0"
      },
      {
        "id": "Composition.implicitRules",
        "path": "Composition.implicitRules",
        "max": "0"
      },
      {
        "id": "Composition.language",
        "path": "Composition.language",
        "max": "0"
      },
      {
        "id": "Composition.contained",
        "path": "Composition.contained",
        "max": "0"
      },
      {
        "id": "Composition.identifier",
        "path": "Composition.identifier",
        "definition": "A version-independent identifier for the Composition. This identifier stays constant as the composition is changed over time.\r\n\r\n//Laboratorijas oriģinālais, piešķirtais kods. Viennozīmīgi sasaista Composition un DiagnosticReport dokumentu sēriju."
      },
      {
        "id": "Composition.identifier.extension",
        "path": "Composition.identifier.extension",
        "max": "0"
      },
      {
        "id": "Composition.identifier.use",
        "path": "Composition.identifier.use",
        "max": "0"
      },
      {
        "id": "Composition.identifier.type",
        "path": "Composition.identifier.type",
        "min": 1
      },
      {
        "id": "Composition.identifier.type.coding.extension",
        "path": "Composition.identifier.type.coding.extension",
        "max": "0"
      },
      {
        "id": "Composition.identifier.type.coding.system",
        "path": "Composition.identifier.type.coding.system",
        "max": "0"
      },
      {
        "id": "Composition.identifier.type.coding.version",
        "path": "Composition.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "Composition.identifier.type.coding.code",
        "path": "Composition.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "Composition.identifier.type.coding.display",
        "path": "Composition.identifier.type.coding.display",
        "min": 1
      },
      {
        "id": "Composition.identifier.type.coding.userSelected",
        "path": "Composition.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Composition.identifier.type.text",
        "path": "Composition.identifier.type.text",
        "max": "0"
      },
      {
        "id": "Composition.identifier.system",
        "path": "Composition.identifier.system",
        "max": "0"
      },
      {
        "id": "Composition.identifier.value",
        "path": "Composition.identifier.value",
        "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.\r\n\r\n//DiagnosticReport.Identifier.value - Laboratorijas oriģinālais, piešķirtais kods",
        "min": 1
      },
      {
        "id": "Composition.identifier.period",
        "path": "Composition.identifier.period",
        "max": "0"
      },
      {
        "id": "Composition.identifier.assigner",
        "path": "Composition.identifier.assigner",
        "min": 1
      },
      {
        "id": "Composition.identifier.assigner.extension",
        "path": "Composition.identifier.assigner.extension",
        "max": "0"
      },
      {
        "id": "Composition.identifier.assigner.identifier",
        "path": "Composition.identifier.assigner.identifier",
        "max": "0"
      },
      {
        "id": "Composition.identifier.assigner.display",
        "path": "Composition.identifier.assigner.display",
        "max": "0"
      },
      {
        "id": "Composition.status",
        "path": "Composition.status",
        "definition": "The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document.\r\n\r\n//DiagnosticReport.status. Composition tiek ģenerēts pie DR statusa \"final\"."
      },
      {
        "id": "Composition.type.extension",
        "path": "Composition.type.extension",
        "max": "0"
      },
      {
        "id": "Composition.type.coding",
        "path": "Composition.type.coding",
        "definition": "A reference to a code defined by a terminology system.\r\n\r\n////DiagnosticReport.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Composition.type.coding.extension",
        "path": "Composition.type.coding.extension",
        "max": "0"
      },
      {
        "id": "Composition.type.coding.system",
        "path": "Composition.type.coding.system",
        "max": "0"
      },
      {
        "id": "Composition.type.coding.version",
        "path": "Composition.type.coding.version",
        "max": "0"
      },
      {
        "id": "Composition.type.coding.code",
        "path": "Composition.type.coding.code",
        "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\r\n\r\n//DiagnosticReport.code.coding.code=LAB (11502-2 = Laboratory Report)",
        "min": 1
      },
      {
        "id": "Composition.type.coding.display",
        "path": "Composition.type.coding.display",
        "definition": "A representation of the meaning of the code in the system, following the rules of the system.\r\n\r\n//DiagnosticReport.code.coding.display=Laboratorisko rezultātu pārskats (11502-2 = Laboratory Report)",
        "min": 1
      },
      {
        "id": "Composition.type.coding.userSelected",
        "path": "Composition.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Composition.type.text",
        "path": "Composition.type.text",
        "max": "0"
      },
      {
        "id": "Composition.category",
        "path": "Composition.category",
        "max": "0"
      },
      {
        "id": "Composition.subject",
        "path": "Composition.subject",
        "min": 1
      },
      {
        "id": "Composition.subject.extension",
        "path": "Composition.subject.extension",
        "max": "0"
      },
      {
        "id": "Composition.subject.reference",
        "path": "Composition.subject.reference",
        "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.\r\n\r\n//Reference uz Patient",
        "min": 1
      },
      {
        "id": "Composition.subject.type",
        "path": "Composition.subject.type",
        "min": 1,
        "fixedUri": "Patient"
      },
      {
        "id": "Composition.subject.identifier",
        "path": "Composition.subject.identifier",
        "max": "0"
      },
      {
        "id": "Composition.subject.display",
        "path": "Composition.subject.display",
        "max": "0"
      },
      {
        "id": "Composition.encounter",
        "path": "Composition.encounter",
        "max": "0"
      },
      {
        "id": "Composition.author.extension",
        "path": "Composition.author.extension",
        "max": "0"
      },
      {
        "id": "Composition.author.reference",
        "path": "Composition.author.reference",
        "min": 1
      },
      {
        "id": "Composition.author.type",
        "path": "Composition.author.type",
        "min": 1
      },
      {
        "id": "Composition.author.identifier",
        "path": "Composition.author.identifier",
        "max": "0"
      },
      {
        "id": "Composition.author.display",
        "path": "Composition.author.display",
        "max": "0"
      },
      {
        "id": "Composition.title",
        "path": "Composition.title",
        "definition": "Official human-readable label for the composition.\r\n\r\n//DiagnosticReport.code.coding.display \"Laboratorisko rezultātu pārskats\" (tulkots uz \"Laboratory Report\")"
      },
      {
        "id": "Composition.attester",
        "path": "Composition.attester",
        "max": "0"
      },
      {
        "id": "Composition.custodian",
        "path": "Composition.custodian",
        "max": "0"
      },
      {
        "id": "Composition.relatesTo",
        "path": "Composition.relatesTo",
        "max": "0"
      },
      {
        "id": "Composition.event",
        "path": "Composition.event",
        "max": "0"
      },
      {
        "id": "Composition.section",
        "path": "Composition.section",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code.coding.system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Composition.section:lab-no-subsections",
        "path": "Composition.section",
        "sliceName": "lab-no-subsections"
      },
      {
        "id": "Composition.section:lab-no-subsections.extension",
        "path": "Composition.section.extension",
        "max": "0"
      },
      {
        "id": "Composition.section:lab-no-subsections.title",
        "path": "Composition.section.title",
        "definition": "The label for this particular section.  This will be part of the rendered content for the document, and is often used to build a table of contents.\r\n\r\n//Jomas nosaukums. DiagnosticReport.result.reference.category:minorCategory",
        "min": 1
      },
      {
        "id": "Composition.section:lab-no-subsections.code",
        "path": "Composition.section.code",
        "min": 1
      },
      {
        "id": "Composition.section:lab-no-subsections.code.extension",
        "path": "Composition.section.code.extension",
        "max": "0"
      },
      {
        "id": "Composition.section:lab-no-subsections.code.coding.system",
        "path": "Composition.section.code.coding.system",
        "max": "0"
      },
      {
        "id": "Composition.section:lab-no-subsections.code.coding.version",
        "path": "Composition.section.code.coding.version",
        "max": "0"
      },
      {
        "id": "Composition.section:lab-no-subsections.code.coding.code",
        "path": "Composition.section.code.coding.code",
        "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\r\n\r\n//DiagnosticReport.result.reference.category:minorCategory kods",
        "min": 1
      },
      {
        "id": "Composition.section:lab-no-subsections.code.coding.display",
        "path": "Composition.section.code.coding.display",
        "definition": "A representation of the meaning of the code in the system, following the rules of the system.\r\n\r\n\\\\DiagnosticReport.result.reference.category:minorCategory nosaukums",
        "min": 1
      },
      {
        "id": "Composition.section:lab-no-subsections.code.coding.userSelected",
        "path": "Composition.section.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Composition.section:lab-no-subsections.code.text",
        "path": "Composition.section.code.text",
        "max": "0"
      },
      {
        "id": "Composition.section:lab-no-subsections.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:lab-no-subsections.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:lab-no-subsections.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:lab-no-subsections.mode",
        "path": "Composition.section.mode",
        "max": "0"
      },
      {
        "id": "Composition.section:lab-no-subsections.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:lab-no-subsections.entry",
        "path": "Composition.section.entry",
        "min": 1
      },
      {
        "id": "Composition.section:lab-no-subsections.entry.reference",
        "path": "Composition.section.entry.reference",
        "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.\r\n\r\n//Reference uz observarion",
        "min": 1
      },
      {
        "id": "Composition.section:lab-no-subsections.entry.type",
        "path": "Composition.section.entry.type",
        "min": 1,
        "fixedUri": "Observation"
      },
      {
        "id": "Composition.section:lab-no-subsections.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:lab-no-subsections.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:lab-no-subsections.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:lab-no-subsections.section",
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:lab-subsections",
        "path": "Composition.section",
        "sliceName": "lab-subsections",
        "max": "0"
      }
    ]
  }
}