{
  "resourceType": "StructureDefinition",
  "id": "digidot-Observation-no",
  "url": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no",
  "version": "0.7.0",
  "name": "DigidotObservationNo",
  "title": "DigiDot Observation (NO)",
  "status": "draft",
  "date": "2026-11-02",
  "publisher": "Novari AS - DigiDOT",
  "description": "Readiness: [In review](https://simplifier.net/guide/Visual-overview/Home/Review-status-and-releases.page.md?version=current#readiness-observation).\n\nProfile base: FHIR R4 Observation (http://hl7.org/fhir/StructureDefinition/Observation).\n\nRepresents the result of a dental measurement or assessment, such as periodontal pocket depth or a patient-reported pain score. Use it to record what was assessed and the result, or why no result is available, together with the patient contact, time and relevant tooth or oral site. An observation can provide supporting evidence for a finding or diagnosis recorded as a Condition.",
  "purpose": "Use this profile for dental measurements, assessment results, patient-reported scores and calculated indicators with an agreed SNOMED CT representation. Record what was assessed in code and the result in value[x], or explain a missing result in dataAbsentReason. Link each result to the patient and the required Encounter. Record clinical time, the known performer, method and relevant anatomy. Use Condition for a clinically significant finding, diagnosis or problem; an Observation can provide evidence for that Condition. Generate structured anatomy and extended clinical meaning from the same clinical input and validate equal anatomical scope. Local assessment codes require an agreed terminology mapping; do not invent one.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "short": "Dental measurement, assessment result, patient-reported score or calculated indicator",
        "constraint": [
          {
            "key": "obs-result-or-absent-reason",
            "severity": "error",
            "human": "A DigiDOT Observation must contain one result value or one standard data absent reason.",
            "expression": "value.exists() or dataAbsentReason.exists()"
          },
          {
            "key": "observation-anatomy-same-release",
            "severity": "error",
            "human": "When bodySite is populated, SNOMED CT clinical codings use the selected Norwegian edition release 20260715.",
            "expression": "bodySite.empty() or code.coding.where(system = 'http://snomed.info/sct').all(version = 'http://snomed.info/sct/51000202101/version/20260715')"
          },
          {
            "key": "digidot-status-known",
            "severity": "error",
            "human": "Do not use unknown as a default or an unmapped lifecycle status.",
            "expression": "status != 'unknown'"
          },
          {
            "key": "observation-anatomy-version-match",
            "severity": "error",
            "human": "Every SNOMED CT anatomical coding in the inline body-structure extension must state the same edition release as SCTextended.",
            "expression": "bodySite.extension.where(url = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-ehds-body-structure').extension.value.ofType(CodeableConcept).coding.where(system = 'http://snomed.info/sct').all(version.exists() and version = %resource.code.coding.where(id = 'SCTextended').version)"
          }
        ]
      },
      {
        "id": "Observation.implicitRules",
        "path": "Observation.implicitRules",
        "short": "Not used in the current DigiDOT Observation draft",
        "definition": "The Central Storage representation follows the published DigiDOT profile and does not use resource-specific implicit rules.",
        "max": "0"
      },
      {
        "id": "Observation.contained",
        "path": "Observation.contained",
        "short": "Not used in the current DigiDOT Observation draft",
        "definition": "Central Storage uses independently identifiable and searchable resources. Supporting resources must be stored separately and referenced through an agreed profile relationship.",
        "max": "0"
      },
      {
        "id": "Observation.extension",
        "path": "Observation.extension",
        "short": "Not used in the current DigiDOT Observation draft",
        "definition": "No named and governed Observation extension is in scope. A future extension requires a documented use case and an explicit profile change.",
        "max": "0"
      },
      {
        "id": "Observation.modifierExtension",
        "path": "Observation.modifierExtension",
        "short": "Not used in the current DigiDOT Observation draft",
        "definition": "Modifier extensions can change the meaning of an Observation and require every consumer to understand them. No modifier extension is defined for the current DigiDOT scope.",
        "max": "0"
      },
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "short": "Stable source business identifiers when available",
        "definition": "Stable business identifiers for this record. If the source EHR or external system has a stable business identifier, it SHALL be included and preserved with its assigning system and value. The element is optional when no such identifier is available. Each supplied identifier SHALL contain system and value. Do not copy the local FHIR resource id merely to populate this element.",
        "mustSupport": true,
        "min": 0,
        "max": "*",
        "comment": "MustSupport requires producers to support conveying available source identifiers and receivers to support preserving them; it does not require inventing an identifier when none is available. Any additional identifier-assignment and matching requirements belong in the exchange contract. An integration-assigned identifier requires governed assignment and a persistent mapping across retries; never generate a fresh identifier on each submission. Different records retain their own identities, even when they share the same patient or care episode. Resource references and FHIR server id rules are unchanged."
      },
      {
        "id": "Observation.identifier.system",
        "path": "Observation.identifier.system",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.identifier.value",
        "path": "Observation.identifier.value",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "short": "Planned or requested service that this observation fulfils",
        "definition": "Use basedOn when the observation fulfils a planned, proposed or requested dental service, examination or assessment. When known, reference DigiDOT ServiceRequest.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-ServiceRequest-no"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.partOf",
        "path": "Observation.partOf",
        "short": "Not used in the current DigiDOT Observation draft",
        "definition": "Use Encounter for the dental contact and DiagnosticReport.result for an agreed imaging or diagnostic report relationship. No Observation.partOf relationship is currently modelled for Central Storage.",
        "max": "0"
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "short": "Lifecycle status for the observation",
        "definition": "Use final for a stable clinical result. Other valid FHIR Observation statuses remain available for preliminary, corrected, entered-in-error or migrated data when that lifecycle is known.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "short": "Optional standard category marker for the observation",
        "definition": "Use Observation.category as an optional standard marker for searching, sorting, display and comparison across systems. It is not the clinical observation code and does not replace Observation.code.",
        "min": 0,
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "When Observation.category is included, use one code from the standard FHIR Observation category value set.",
          "valueSet": "http://terminology.hl7.org/ValueSet/observation-category"
        }
      },
      {
        "id": "Observation.category.extension",
        "path": "Observation.category.extension",
        "short": "No extensions on the observation category",
        "definition": "The category is a single standard interoperable marker. Extensions on Observation.category are not used in the current DigiDOT draft.",
        "max": "0"
      },
      {
        "id": "Observation.category.coding",
        "path": "Observation.category.coding",
        "short": "Standard FHIR Observation category coding",
        "definition": "When Observation.category is populated, use exactly one coding from the standard FHIR Observation category code system.",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://terminology.hl7.org/CodeSystem/observation-category"
        }
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "short": "Observable entity",
        "definition": "Record what was measured or assessed in the SNOMED CT Observable entity hierarchy. The result belongs in value[x], not in the clinical code. Include exactly one SCTextended coding and optionally one SCTpre coding. SCTextended carries the complete intended meaning as either a single precoordinated SNOMED CT concept or a postcoordinated expression. SCTpre is an optional, directly usable concept representing the same clinical meaning at the same or a compatible broader level of detail. Do not add a duplicate companion merely to fill a slot. When both are present they must use the same edition release and must not contradict each other; the extended coding may add compatible precision. Compatible meaning must be checked through the terminology contract, not inferred from code equality. When bodySite is present, the extended coding must represent the same complete anatomical scope. Prefer a valid postcoordinated expression when additional clinical or anatomical detail needs to be represented. A single precoordinated concept is sufficient if its defined meaning already represents the complete intended scope. Validate concept membership, compositional grammar, MRCM, clinical templates and anatomical equivalence with the terminology service; a FHIR syntax guard cannot establish these semantic requirements.",
        "min": 1,
        "constraint": [
          {
            "key": "digidot-coding-same-release",
            "severity": "error",
            "human": "When SCTpre is present, both clinical codings must use the same SNOMED CT edition release.",
            "expression": "coding.where(id = 'SCTpre').empty() or coding.where(id = 'SCTpre').version = coding.where(id = 'SCTextended').version"
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "Required Observable entity scope for the clinical code. SCTpre accepts a single concept identifier; SCTextended accepts a concept identifier or a valid expression within this scope. This is a semantic scope, not a national dental reference-set selection.",
          "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-observation-codes"
        },
        "max": "1"
      },
      {
        "id": "Observation.code.extension",
        "path": "Observation.code.extension",
        "short": "No extensions on the clinical observation code",
        "definition": "Additional SNOMED CT precision is represented by the agreed SCTextended coding in Observation.code.coding. Extensions on Observation.code are not used in the current DigiDOT draft.",
        "max": "0"
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "id"
            }
          ],
          "rules": "closed"
        },
        "short": "One required extended coding and one optional precoordinated coding",
        "definition": "Include exactly one SCTextended coding and optionally one SCTpre coding. SCTextended carries the complete intended meaning as either a single precoordinated SNOMED CT concept or a postcoordinated expression. SCTpre is an optional, directly usable concept representing the same clinical meaning at the same or a compatible broader level of detail. Do not add a duplicate companion merely to fill a slot. When both are present they must use the same edition release and must not contradict each other; the extended coding may add compatible precision. Compatible meaning must be checked through the terminology contract, not inferred from code equality. Fixed Coding.id values distinguish the roles because a numeric concept can conform to both datatype profiles.",
        "min": 1,
        "max": "2"
      },
      {
        "id": "Observation.code.coding:SCTpre",
        "path": "Observation.code.coding",
        "sliceName": "SCTpre",
        "short": "Optional precoordinated SNOMED CT concept",
        "definition": "Optional single numeric SNOMED CT concept in the Observable entity scope, compatible with the complete meaning in SCTextended. The SCTpre datatype prohibits postcoordinated expressions, even though the shared ValueSet also supports them for SCTextended. Both codings must use the same edition release.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Coding",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Coding-SCTpre-no"
            ]
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "Required Observable entity scope, restricted here to a single concept by the SCTpre datatype. Postcoordinated expressions are not permitted in this slice.",
          "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-observation-codes"
        }
      },
      {
        "id": "Observation.code.coding:SCTpre.id",
        "path": "Observation.code.coding.id",
        "short": "SCTpre slot identifier",
        "definition": "Required technical element identifier SCTpre, used to select this coding slice. Preserve it when exchanging or transforming a conforming DigiDOT record. The identifier selects the coding role; it is not the SNOMED CT concept code.",
        "min": 1,
        "fixedString": "SCTpre"
      },
      {
        "id": "Observation.code.coding:SCTextended",
        "path": "Observation.code.coding",
        "sliceName": "SCTextended",
        "short": "Required extended SNOMED CT code: concept or expression",
        "definition": "The complete clinical meaning in the Observable entity scope, represented by one sufficiently specific SNOMED CT concept or a valid postcoordinated expression. A single concept is allowed; postcoordination is not mandatory. Follow the meaning and anatomy rules on Observation.code. Prefer postcoordination for additional clinical detail; do not add an identical SCTpre coding merely to fill the optional slice.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Coding-SCTpost-no"
            ]
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "Required Observable entity scope. This slice permits a single concept or a valid postcoordinated expression within that scope; expression syntax and meaning need terminology validation.",
          "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-observation-codes"
        }
      },
      {
        "id": "Observation.code.coding:SCTextended.id",
        "path": "Observation.code.coding.id",
        "short": "SCTextended slot identifier",
        "definition": "Required technical element identifier SCTextended, used to select this coding slice. Preserve it when exchanging or transforming a conforming DigiDOT record. The identifier selects the coding role; it is not the SNOMED CT concept code.",
        "min": 1,
        "fixedString": "SCTextended"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "short": "Patient the observation belongs to",
        "definition": "Reference the no-basis Patient that owns the dental observation. External data must be mapped to this agreed patient representation before it becomes a canonical DigiDOT Observation in Central Storage.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Patient"
            ]
          }
        ],
        "mustSupport": true,
        "comment": "Use a literal Reference.reference to a separately stored resource conforming to the permitted national target profile. Identifier-only and contained references are not permitted. Official identifiers belong on the target resource. Reuse a confirmed resource in central storage; if no matching resource exists, register it before persisting the clinical reference. The receiving service must check target existence and profile conformance; the profile alone does not perform identity matching or prove that a resource exists in central storage.",
        "constraint": [
          {
            "key": "observation-subject-literal",
            "severity": "error",
            "human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no"
          }
        ]
      },
      {
        "id": "Observation.subject.reference",
        "path": "Observation.subject.reference",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.subject.identifier",
        "path": "Observation.subject.identifier",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Observation.focus",
        "path": "Observation.focus",
        "short": "Not used in the current DigiDOT Observation draft",
        "definition": "Condition.evidence.detail is the authoritative explicit relationship from a clinical condition to its supporting Observation. Observation.bodySite references the patient-specific DigiDOT Dental BodyStructure when anatomy is known. Observation.focus is not used as an alternative link to Condition or BodyStructure.",
        "max": "0"
      },
      {
        "id": "Observation.encounter",
        "path": "Observation.encounter",
        "short": "Encounter where the observation was made",
        "definition": "Reference the DigiDOT Encounter during which the observation was measured, assessed or reported. Location and organisation context are resolved through the Encounter.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "short": "Time when the observed value was true",
        "definition": "Use effectiveDateTime for the clinically relevant time of a simple dental observation. This is normally when it was measured, assessed or reported, and may differ from when the record was created or imported.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "short": "Not used in the current DigiDOT Observation draft",
        "definition": "Use Observation.effectiveDateTime for the clinically relevant time. Source import, publication and record-history times are handled by resource metadata and Provenance rather than Observation.issued.",
        "max": "0"
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "short": "Known person responsible for the reported result",
        "definition": "The known person responsible for asserting the reported measurement or assessment. Use Practitioner for a clinician-performed or clinician-assessed result and Patient for a self-reported result. The person entering the record is not automatically the performer. Record the responsible clinician when known; a patient-reported score does not require an invented clinician performer. This element remains optional to allow results whose source does not identify a performer; do not infer one from the importing system.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner",
              "http://hl7.no/fhir/StructureDefinition/no-basis-Patient"
            ]
          }
        ],
        "mustSupport": true,
        "comment": "Use a literal Reference.reference to a separately stored resource conforming to the permitted national target profile. Identifier-only and contained references are not permitted. Official identifiers belong on the target resource. Reuse a confirmed resource in central storage; if no matching resource exists, register it before persisting the clinical reference. The receiving service must check target existence and profile conformance; the profile alone does not perform identity matching or prove that a resource exists in central storage.",
        "constraint": [
          {
            "key": "observation-performer-literal",
            "severity": "error",
            "human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no"
          }
        ]
      },
      {
        "id": "Observation.performer.reference",
        "path": "Observation.performer.reference",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.performer.identifier",
        "path": "Observation.performer.identifier",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "short": "Result value",
        "definition": "The single result of the observation. Use valueQuantity for a measured quantity, valueCodeableConcept for a coded categorical result, valueInteger for a score or calculated count, valueBoolean for a true/false result, and valueString only when no structured result can faithfully represent the source content. Do not use valueString to repeat structured codes, anatomy, status or method. When no result is available, use dataAbsentReason instead of leaving both elements empty.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]:valueBoolean",
        "path": "Observation.value[x]",
        "sliceName": "valueBoolean",
        "short": "True or false result",
        "definition": "Use valueBoolean for a clinically meaningful true/false result. Do not use it for a coded category with more than two possible results.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]:valueInteger",
        "path": "Observation.value[x]",
        "sliceName": "valueInteger",
        "short": "Whole-number score or count",
        "definition": "Use valueInteger for a discrete score, count or calculated index with no physical unit, such as DMFT or DMFS. Use valueQuantity when a unit of measure is required.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]:valueString",
        "path": "Observation.value[x]",
        "sliceName": "valueString",
        "short": "Source result without a faithful structured representation",
        "definition": "Use valueString only when the source result cannot faithfully be represented as a quantity, coded result, integer or Boolean. It is a controlled fallback, not a default result type. Record a mapping gap when the same unstructured result recurs and needs a governed representation.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.valueCodeableConcept",
        "path": "Observation.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "short": "Coded categorical result",
        "definition": "Use valueCodeableConcept for a categorical result that has a faithful code. The applicable code system and ValueSet depend on Observation.code. This field remains open for agreed SNOMED CT, national and other governed code systems; it is not restricted to one generic result ValueSet.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.valueCodeableConcept.extension",
        "path": "Observation.valueCodeableConcept.extension",
        "short": "No extensions on the coded result",
        "definition": "The coded result is represented by its coding and optional source text. Extensions are not used in the current DigiDOT draft.",
        "max": "0"
      },
      {
        "id": "Observation.valueCodeableConcept.coding",
        "path": "Observation.valueCodeableConcept.coding",
        "short": "Coded observation result",
        "definition": "When valueCodeableConcept is used, record at least one coded result. Use the code system and ValueSet that are appropriate for Observation.code; text may supplement but must not be the only result representation. When a coding uses SNOMED CT, it must be a direct precoordinated concept with the selected SNOMED CT edition release. SNOMED CT codings use the shared SCTpre profile. The slice is selected by system; no Coding.id marker is required. Other code systems remain subject to the existing field binding.",
        "min": 1,
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Observation.valueCodeableConcept.coding.extension",
        "path": "Observation.valueCodeableConcept.coding.extension",
        "short": "No extensions on the coded result coding",
        "definition": "A coded result uses the agreed code system directly. Extensions on the coding are not used in the current DigiDOT draft.",
        "max": "0"
      },
      {
        "id": "Observation.valueCodeableConcept.coding.system",
        "path": "Observation.valueCodeableConcept.coding.system",
        "short": "Code system for the coded result",
        "min": 1
      },
      {
        "id": "Observation.valueCodeableConcept.coding.code",
        "path": "Observation.valueCodeableConcept.coding.code",
        "short": "Code for the coded result",
        "min": 1
      },
      {
        "id": "Observation.valueCodeableConcept.coding.userSelected",
        "path": "Observation.valueCodeableConcept.coding.userSelected",
        "short": "Not used for the coded result",
        "definition": "The code is the agreed exchange representation. userSelected is not used in the current DigiDOT draft.",
        "max": "0"
      },
      {
        "id": "Observation.valueCodeableConcept.coding:SCTpre",
        "path": "Observation.valueCodeableConcept.coding",
        "sliceName": "SCTpre",
        "short": "Precoordinated SNOMED CT coding",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Coding-SCTpre-no"
            ]
          }
        ]
      },
      {
        "id": "Observation.valueCodeableConcept.coding:SCTpre.system",
        "path": "Observation.valueCodeableConcept.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.valueCodeableConcept.text",
        "path": "Observation.valueCodeableConcept.text",
        "short": "Supplementary source display text",
        "definition": "Text may preserve a useful source display, but it does not replace the required coding and must not introduce a different clinical result."
      },
      {
        "id": "Observation.value[x]:valueQuantity",
        "path": "Observation.value[x]",
        "sliceName": "valueQuantity",
        "short": "Measured quantity",
        "definition": "Use valueQuantity for a numeric observation with a physical unit. The value, UCUM system and UCUM code are required.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]:valueQuantity.extension",
        "path": "Observation.value[x].extension",
        "short": "No extensions on the measured quantity",
        "definition": "The measured quantity is represented by the standard Quantity fields. Extensions are not used in the current DigiDOT draft.",
        "max": "0"
      },
      {
        "id": "Observation.value[x]:valueQuantity.value",
        "path": "Observation.value[x].value",
        "short": "Measured value",
        "min": 1
      },
      {
        "id": "Observation.value[x]:valueQuantity.comparator",
        "path": "Observation.value[x].comparator",
        "short": "Measurement comparator when recorded",
        "definition": "Use the comparator only when it is part of the source measurement meaning, such as less than or greater than a stated value. Do not use it as a replacement for a coded qualitative result."
      },
      {
        "id": "Observation.value[x]:valueQuantity.unit",
        "path": "Observation.value[x].unit",
        "short": "Human-readable UCUM unit display",
        "definition": "Populate unit when the source provides a human-readable display. UCUM system and code remain the authoritative machine-readable unit representation."
      },
      {
        "id": "Observation.value[x]:valueQuantity.system",
        "path": "Observation.value[x].system",
        "short": "UCUM unit system",
        "min": 1,
        "fixedUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.value[x]:valueQuantity.code",
        "path": "Observation.value[x].code",
        "short": "UCUM unit code",
        "min": 1
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "short": "Reason a simple result is absent",
        "definition": "Use the standard FHIR data-absent-reason coding when an expected simple result is unavailable. Do not use it together with Observation.value[x]. This distinguishes an unavailable result from an omitted value.",
        "min": 0,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "Use one standard FHIR data absent reason code.",
          "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
        }
      },
      {
        "id": "Observation.dataAbsentReason.extension",
        "path": "Observation.dataAbsentReason.extension",
        "short": "No extensions on the absent-result reason",
        "definition": "The absent-result reason is represented by one standard FHIR code. Extensions on Observation.dataAbsentReason are not used in the current DigiDOT draft.",
        "max": "0"
      },
      {
        "id": "Observation.dataAbsentReason.coding",
        "path": "Observation.dataAbsentReason.coding",
        "short": "Coded reason the result is absent",
        "definition": "When dataAbsentReason is used, record exactly one standard FHIR data absent reason code.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.dataAbsentReason.coding.extension",
        "path": "Observation.dataAbsentReason.coding.extension",
        "short": "No extensions on the absent-result coding",
        "definition": "The absent-result coding uses the standard FHIR code system directly. Extensions on the coding are not used in the current DigiDOT draft.",
        "max": "0"
      },
      {
        "id": "Observation.dataAbsentReason.coding.system",
        "path": "Observation.dataAbsentReason.coding.system",
        "short": "Code system for the absent-result reason",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/data-absent-reason"
      },
      {
        "id": "Observation.dataAbsentReason.coding.code",
        "path": "Observation.dataAbsentReason.coding.code",
        "short": "Code for the absent-result reason",
        "min": 1
      },
      {
        "id": "Observation.dataAbsentReason.coding.userSelected",
        "path": "Observation.dataAbsentReason.coding.userSelected",
        "short": "Not used for the absent-result reason",
        "definition": "The standard absent-result reason is the agreed exchange code. userSelected is not used in the current DigiDOT draft.",
        "max": "0"
      },
      {
        "id": "Observation.dataAbsentReason.text",
        "path": "Observation.dataAbsentReason.text",
        "short": "No free text for the absent-result reason",
        "definition": "Use the standard coded reason. Free text is not used as a second absent-result representation.",
        "max": "0"
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "short": "Not used in the current DigiDOT Observation draft",
        "definition": "No governed dental interpretation terminology or cross-system mapping is agreed. Record a coded clinical result in valueCodeableConcept when that is the observation result; use a Condition for a clinically significant finding or diagnosis.",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Observation.note",
        "path": "Observation.note",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Observation.note.author[x]",
        "path": "Observation.note.author[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner",
              "http://hl7.no/fhir/StructureDefinition/no-basis-Patient",
              "http://hl7.no/fhir/StructureDefinition/no-basis-Organization"
            ]
          },
          {
            "code": "string"
          }
        ],
        "definition": "The author of this annotation, distinct from the performer of the observation. Use the identified individual where individual attribution is needed. A no-basis-Organization reference is permitted when the annotation is attributable to the organization and no individual attribution is needed. It does not replace the responsible clinician in performer.",
        "comment": "Use a literal Reference.reference to a separately stored resource conforming to the permitted national target profile. Identifier-only and contained references are not permitted. Official identifiers belong on the target resource. Reuse a confirmed resource in central storage; if no matching resource exists, register it before persisting the clinical reference. The receiving service must check target existence and profile conformance; the profile alone does not perform identity matching or prove that a resource exists in central storage. An authorString may be retained where this Annotation choice permits it; if authorReference is used, the literal-reference rule applies.",
        "constraint": [
          {
            "key": "observation-note-author-x-literal",
            "severity": "error",
            "human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no"
          }
        ]
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "short": "Inline Xt-EHR anatomy group",
        "definition": "One inline anatomical group in the shared DentalBodySite format: a complex extension containing location, repeated locationQualifier, laterality, morphology and description, matching the Xt-EHR logical field model. No independent BodyStructure resource is required. Clinical coding and dental workflow rules apply separately.",
        "comment": "FHIR R4 Observation permits at most one bodySite. Use one anatomical group for one site-specific result; record separate results for different teeth as separate Observations. A single aggregate result across several teeth must use a code and, if populated, an anatomical group that describe the aggregate scope. Do not assign an aggregate value to one representative tooth or encode an arbitrary list of tooth groups in this field. The anatomy in SCTextended must cover the same scope. See the shared Dental BodySite guidance for location, qualifiers and laterality.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-DentalBodySite-no"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "short": "How the observation was made or calculated",
        "definition": "Use method only when it adds information that is not already implicit in Observation.code. If the source records a clinically relevant method, it shall be populated. Prefer a suitable SNOMED CT code from the FHIR Observation Methods ValueSet. Another agreed standard method code may be used when it better represents the source meaning.",
        "min": 0,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "preferred",
          "description": "Prefer a suitable SNOMED CT method from the FHIR Observation Methods ValueSet. This does not require a local CodeSystem or a separate resource instance.",
          "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
        }
      },
      {
        "id": "Observation.method.extension",
        "path": "Observation.method.extension",
        "short": "No extensions on the observation method",
        "definition": "Method is represented by its coded value. Extensions on Observation.method are not used in the current DigiDOT draft.",
        "max": "0"
      },
      {
        "id": "Observation.method.coding",
        "path": "Observation.method.coding",
        "short": "Coded observation method",
        "definition": "When Observation.method is populated, use exactly one coded method. Prefer a suitable SNOMED CT code; retain the original code system and code. Another agreed standard method code is permitted by the preferred binding. SNOMED CT codings use the shared SCTpre profile. The slice is selected by system; no Coding.id marker is required. Other code systems remain subject to the existing field binding.",
        "min": 1,
        "max": "1",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Observation.method.coding.extension",
        "path": "Observation.method.coding.extension",
        "short": "No extensions on the observation method coding",
        "definition": "The observation method is represented by one agreed coding. Extensions on Observation.method.coding are not used in the current DigiDOT draft.",
        "max": "0"
      },
      {
        "id": "Observation.method.coding.system",
        "path": "Observation.method.coding.system",
        "short": "Code system for the observation method",
        "min": 1
      },
      {
        "id": "Observation.method.coding.code",
        "path": "Observation.method.coding.code",
        "short": "Code for the observation method",
        "min": 1
      },
      {
        "id": "Observation.method.coding.userSelected",
        "path": "Observation.method.coding.userSelected",
        "short": "Not used for the observation method",
        "definition": "The coded method is the agreed exchange representation. userSelected is not used in the current DigiDOT draft.",
        "max": "0"
      },
      {
        "id": "Observation.method.coding:SCTpre",
        "path": "Observation.method.coding",
        "sliceName": "SCTpre",
        "short": "Precoordinated SNOMED CT coding",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Coding",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Coding-SCTpre-no"
            ]
          }
        ]
      },
      {
        "id": "Observation.method.coding:SCTpre.system",
        "path": "Observation.method.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.method.text",
        "path": "Observation.method.text",
        "short": "No free text method",
        "definition": "Use the coded method. Free text is not used as a second method representation.",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "short": "Not used in the current DigiDOT Observation draft",
        "definition": "Specimen-based laboratory observations require a separate agreed model and are outside the current dental Observation scope.",
        "max": "0"
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "short": "Not used in the current DigiDOT Observation draft",
        "definition": "The current profile does not model device-generated measurements. Imaging and device context must use their own agreed resources and relationships.",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "short": "Not used in the current DigiDOT Observation draft",
        "definition": "No dental reference-range terminology or cross-system calculation model is agreed for the current scope.",
        "max": "0"
      },
      {
        "id": "Observation.hasMember",
        "path": "Observation.hasMember",
        "short": "Not used in the current DigiDOT Observation draft",
        "definition": "Use separate DigiDOT Observation resources when results need separate codes, anatomy, times or lifecycle states. Grouping and questionnaire modelling require separate agreed profiles.",
        "max": "0"
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "short": "Source document from which this result was derived",
        "definition": "Reference a no-basis DocumentReference for a source document or image from which this observation was obtained, for example a measurement transcribed from an original periodontal chart. Use this only for an actual derivation relationship, not for any related attachment or a report subsequently generated from this Observation. Patient-specific source documents must concern the same patient.",
        "max": "*",
        "min": 0,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-DocumentReference"
            ]
          }
        ],
        "constraint": [
          {
            "key": "observation-derivedfrom-literal",
            "severity": "error",
            "human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no"
          }
        ],
        "comment": "Use a literal reference to a separately stored permitted resource. The receiving service must check target existence, profile conformance and patient consistency. File access is through the document API, not a database table identifier."
      },
      {
        "id": "Observation.derivedFrom.reference",
        "path": "Observation.derivedFrom.reference",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.derivedFrom.identifier",
        "path": "Observation.derivedFrom.identifier",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "short": "Not used in the current DigiDOT Observation draft",
        "definition": "The current Central Storage draft represents one result per Observation. A multi-component dental index or assessment requires a governed component terminology and mapping model before Observation.component is reopened.",
        "max": "0"
      }
    ]
  }
}